From c30c14ec84b7aacf1f94c587f9be2e30cd44e38c Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Thu, 13 Feb 2020 18:27:58 -0800 Subject: [PATCH] chore: update stage0 --- stage0/src/Init/Lean/Elab/App.lean | 29 +- stage0/src/Init/Lean/Elab/Binders.lean | 52 +- stage0/src/Init/Lean/Elab/Command.lean | 21 +- stage0/src/Init/Lean/Elab/Term.lean | 21 + stage0/src/Init/Lean/Elab/Util.lean | 14 +- stage0/src/Init/Lean/Expr.lean | 12 + stage0/src/Init/Lean/Parser/Tactic.lean | 27 - stage0/src/Init/Lean/Parser/Term.lean | 22 +- stage0/src/Init/Lean/Syntax.lean | 30 + stage0/src/Init/LeanInit.lean | 16 +- stage0/src/library/compiler/csimp.cpp | 1 - stage0/stdlib/Init/Lean/Elab/App.c | 11513 +++++++++------- stage0/stdlib/Init/Lean/Elab/Binders.c | 6327 ++++++--- .../stdlib/Init/Lean/Elab/BuiltinNotation.c | 74 +- stage0/stdlib/Init/Lean/Elab/Command.c | 4688 ++++--- stage0/stdlib/Init/Lean/Elab/Declaration.c | 2225 +-- stage0/stdlib/Init/Lean/Elab/Definition.c | 2354 ++-- stage0/stdlib/Init/Lean/Elab/DoNotation.c | 26 +- stage0/stdlib/Init/Lean/Elab/Frontend.c | 6 +- stage0/stdlib/Init/Lean/Elab/Quotation.c | 430 +- stage0/stdlib/Init/Lean/Elab/Syntax.c | 850 +- stage0/stdlib/Init/Lean/Elab/SyntheticMVars.c | 8 +- stage0/stdlib/Init/Lean/Elab/Tactic/Basic.c | 26 +- stage0/stdlib/Init/Lean/Elab/Term.c | 365 +- stage0/stdlib/Init/Lean/Elab/Util.c | 196 +- stage0/stdlib/Init/Lean/Expr.c | 122 +- stage0/stdlib/Init/Lean/Parser/Command.c | 237 +- stage0/stdlib/Init/Lean/Parser/Syntax.c | 30 +- stage0/stdlib/Init/Lean/Parser/Tactic.c | 2211 +-- stage0/stdlib/Init/Lean/Parser/Term.c | 3597 ++++- stage0/stdlib/Init/Lean/Syntax.c | 521 +- stage0/stdlib/Init/LeanInit.c | 28 + 32 files changed, 21254 insertions(+), 14825 deletions(-) diff --git a/stage0/src/Init/Lean/Elab/App.lean b/stage0/src/Init/Lean/Elab/App.lean index 57e574ec53..6e3b287193 100644 --- a/stage0/src/Init/Lean/Elab/App.lean +++ b/stage0/src/Init/Lean/Elab/App.lean @@ -98,10 +98,6 @@ structure ElabAppArgsCtx := (typeMVars : Array MVarId := #[]) -- metavariables for implicit arguments of the form `{α : Sort u}` that have already been processed (foundExplicit : Bool := false) -- true if an explicit argument has already been processed -private def isAutoOrOptParam (type : Expr) : Bool := --- TODO: add auto param -type.getOptParamDefault?.isSome - /- Auxiliary function for retrieving the resulting type of a function application. See `propagateExpectedType`. -/ private partial def getForallBody : Nat → Array NamedArg → Expr → Option Expr @@ -113,7 +109,7 @@ private partial def getForallBody : Nat → Array NamedArg → Expr → Option E getForallBody i namedArgs b else if i > 0 then getForallBody (i-1) namedArgs b - else if isAutoOrOptParam d then + else if d.isAutoParam || d.isOptParam then getForallBody i namedArgs b else some type @@ -227,10 +223,25 @@ private partial def elabAppArgsAux : ElabAppArgsCtx → Expr → Expr → TermEl if h : ctx.argIdx < ctx.args.size then do argElab ← elabArg ctx.ref e (ctx.args.get ⟨ctx.argIdx, h⟩) d; elabAppArgsAux { argIdx := ctx.argIdx + 1, .. ctx } (mkApp e argElab) (b.instantiate1 argElab) - else match ctx.explicit, d.getOptParamDefault? with - | false, some defVal => elabAppArgsAux ctx (mkApp e defVal) (b.instantiate1 defVal) - | _, _ => - -- TODO: tactic auto param + else match ctx.explicit, d.getOptParamDefault?, d.getAutoParamTactic? with + | false, some defVal, _ => elabAppArgsAux ctx (mkApp e defVal) (b.instantiate1 defVal) + | false, _, some (Expr.const tacticDecl _ _) => do + env ← getEnv; + match evalSyntaxConstant env tacticDecl with + | Except.error err => throwError ctx.ref err + | Except.ok tacticSyntax => do + tacticBlock ← `(begin $(tacticSyntax.getArgs)* end); + -- tacticBlock does not have any position information + -- use ctx.ref.getHeadInfo if available + let tacticBlock := match ctx.ref.getHeadInfo with + | some info => tacticBlock.replaceInfo info + | _ => tacticBlock; + let d := d.getArg! 0; -- `autoParam type := by tactic` ==> `type` + argElab ← elabArg ctx.ref e (Arg.stx tacticBlock) d; + elabAppArgsAux ctx (mkApp e argElab) (b.instantiate1 argElab) + | false, _, some _ => + throwError ctx.ref "invalid autoParam, argument must be a constant" + | _, _, _ => if ctx.namedArgs.isEmpty then finalize () else diff --git a/stage0/src/Init/Lean/Elab/Binders.lean b/stage0/src/Init/Lean/Elab/Binders.lean index 78b4dede52..f671e5e86c 100644 --- a/stage0/src/Init/Lean/Elab/Binders.lean +++ b/stage0/src/Init/Lean/Elab/Binders.lean @@ -5,6 +5,7 @@ Authors: Leonardo de Moura -/ prelude import Init.Lean.Elab.Term +import Init.Lean.Elab.Quotation namespace Lean namespace Elab @@ -37,11 +38,40 @@ else structure BinderView := (id : Syntax) (type : Syntax) (bi : BinderInfo) +partial def quoteAutoTactic : Syntax → TermElabM Syntax +| stx@(Syntax.ident _ _ _ _) => throwError stx "invalic auto tactic, identifier is not allowed" +| stx@(Syntax.node k args) => + if Quotation.isAntiquot stx then + throwError stx "invalic auto tactic, antiquotation is not allowed" + else do + empty ← `(Array.empty); + args ← args.foldlM (fun args arg => + if k == nullKind && Quotation.isAntiquotSplice arg then + throwError arg "invalic auto tactic, antiquotation is not allowed" + else do + arg ← quoteAutoTactic arg; + `(Array.push $args $arg)) empty; + `(Syntax.node $(quote k) $args) +| Syntax.atom info val => `(Syntax.atom none $(quote val)) +| Syntax.missing => unreachable! + +def declareTacticSyntax (tactic : Syntax) : TermElabM Name := +withFreshMacroScope $ do + name ← MonadQuotation.addMacroScope `_auto; + let type := Lean.mkConst `Lean.Syntax; + tactic ← quoteAutoTactic tactic; + val ← elabTerm tactic type; + val ← instantiateMVars tactic val; + trace `Elab.autoParam tactic $ fun _ => val; + let decl := Declaration.defnDecl { name := name, lparams := [], type := type, value := val, hints := ReducibilityHints.opaque, isUnsafe := false }; + addDecl tactic decl; + compileDecl tactic decl; + pure name /- -Expand `optional (binderDefault <|> binderTactic)` +Expand `optional (binderTactic <|> binderDefault)` +def binderTactic := parser! " := " >> " by " >> tacticParser def binderDefault := parser! " := " >> termParser -def binderTactic := parser! " . " >> termParser -/ private def expandBinderModifier (type : Syntax) (optBinderModifier : Syntax) : TermElabM Syntax := if optBinderModifier.isNone then pure type @@ -52,7 +82,9 @@ else let defaultVal := modifier.getArg 1; `(optParam $type $defaultVal) else if kind == `Lean.Parser.Term.binderTactic then do - throwError modifier "not implemented yet" + let tac := modifier.getArg 2; + name ← declareTacticSyntax tac; + `(autoParam $type $(mkTermIdFrom tac name)) else throwUnsupportedSyntax @@ -249,6 +281,13 @@ structure State := (expectedType? : Option Expr := none) (explicit : Bool := false) +private def checkNoOptAutoParam (ref : Syntax) (type : Expr) : TermElabM Unit := do +type ← instantiateMVars ref type; +when type.isOptParam $ + throwError ref "optParam is not allowed at 'fun/λ' binders"; +when type.isAutoParam $ + throwError ref "autoParam is not allowed at 'fun/λ' binders" + private def propagateExpectedType (ref : Syntax) (fvar : Expr) (fvarType : Expr) (s : State) : TermElabM State := do match s.expectedType? with | none => pure s @@ -257,6 +296,7 @@ match s.expectedType? with match expectedType with | Expr.forallE _ d b _ => do isDefEq ref fvarType d; + checkNoOptAutoParam ref fvarType; let b := b.instantiate1 fvar; pure { expectedType? := some b, .. s } | _ => pure { expectedType? := none, .. s } @@ -269,6 +309,7 @@ private partial def elabFunBinderViews (binderViews : Array BinderView) : Nat /- As soon as we find an explicit binder, we switch to `explict := true` mode. -/ let s := if binderView.bi.isExplicit then { explicit := true, .. s } else s; type ← elabType binderView.type; + checkNoOptAutoParam binderView.type type; fvarId ← mkFreshFVarId; let fvar := mkFVar fvarId; let s := { fvars := s.fvars.push fvar, .. s }; @@ -283,6 +324,11 @@ private partial def elabFunBinderViews (binderViews : Array BinderView) : Nat }; if s.explicit then do -- dbgTrace (toString binderView.id.getId ++ " : " ++ toString type); + /- + We do **not** want to support default and auto arguments in lambda abstractions. + Example: `fun (x : Nat := 10) => x+1`. + We do not believe this is an useful feature, and it would complicate the logic here. + -/ let lctx := s.lctx.mkLocalDecl fvarId binderView.id.getId type binderView.bi; s ← propagateExpectedType binderView.id fvar type s; continue { lctx := lctx, .. s } diff --git a/stage0/src/Init/Lean/Elab/Command.lean b/stage0/src/Init/Lean/Elab/Command.lean index 0176c77b63..edfd1ac92e 100644 --- a/stage0/src/Init/Lean/Elab/Command.lean +++ b/stage0/src/Init/Lean/Elab/Command.lean @@ -263,14 +263,17 @@ match result with instance CommandElabM.inhabited {α} : Inhabited (CommandElabM α) := ⟨throw $ arbitrary _⟩ -@[inline] def runTermElabM {α} (declName? : Option Name) (elab : Array Expr → TermElabM α) : CommandElabM α := do +@[inline] def liftTermElabM {α} (declName? : Option Name) (x : TermElabM α) : CommandElabM α := do ctx ← read; s ← get; -match (Term.elabBinders (getVarDecls s) elab (mkTermContext ctx s declName?)).run (mkTermState s) with +match (x $ mkTermContext ctx s declName?).run (mkTermState s) with | EStateM.Result.ok a newS => do modify $ fun s => { env := newS.env, messages := newS.messages, .. s }; pure a | EStateM.Result.error (Term.Exception.ex ex) newS => do modify $ fun s => { env := newS.env, messages := newS.messages, .. s }; throw ex | EStateM.Result.error Term.Exception.postpone newS => unreachable! +@[inline] def runTermElabM {α} (declName? : Option Name) (elab : Array Expr → TermElabM α) : CommandElabM α := do +s ← get; liftTermElabM declName? (Term.elabBinders (getVarDecls s) elab) + @[inline] def withLogging (x : CommandElabM Unit) : CommandElabM Unit := catch x (fun ex => match ex with | Exception.error ex => do logMessage ex; pure () @@ -643,18 +646,8 @@ let remaining := usedParams.filter (fun levelParam => !explicitParams.elem level let remaining := remaining.qsort Name.lt; result ++ remaining.toList -def addDecl (ref : Syntax) (decl : Declaration) : CommandElabM Unit := do -env ← getEnv; -match env.addDecl decl with -| Except.ok env => setEnv env -| Except.error kex => do opts ← getOptions; throwError ref (kex.toMessageData opts) - -def compileDecl (ref : Syntax) (decl : Declaration) : CommandElabM Unit := do -env ← getEnv; -opts ← getOptions; -match env.compileDecl opts decl with -| Except.ok env => setEnv env -| Except.error kex => throwError ref (kex.toMessageData opts) +def addDecl (ref : Syntax) (decl : Declaration) : CommandElabM Unit := liftTermElabM none $ Term.addDecl ref decl +def compileDecl (ref : Syntax) (decl : Declaration) : CommandElabM Unit := liftTermElabM none $ Term.compileDecl ref decl end Command end Elab diff --git a/stage0/src/Init/Lean/Elab/Term.lean b/stage0/src/Init/Lean/Elab/Term.lean index 2355fcd470..d4bd8e75bd 100644 --- a/stage0/src/Init/Lean/Elab/Term.lean +++ b/stage0/src/Init/Lean/Elab/Term.lean @@ -114,6 +114,8 @@ def getMCtx : TermElabM MetavarContext := do s ← get; pure s.mctx def getLCtx : TermElabM LocalContext := do ctx ← read; pure ctx.lctx def getLocalInsts : TermElabM LocalInstances := do ctx ← read; pure ctx.localInstances def getOptions : TermElabM Options := do ctx ← read; pure ctx.config.opts +def setEnv (newEnv : Environment) : TermElabM Unit := +modify $ fun s => { env := newEnv, .. s } def addContext (msg : MessageData) : TermElabM MessageData := do env ← getEnv; mctx ← getMCtx; lctx ← getLCtx; opts ← getOptions; @@ -876,6 +878,19 @@ u ← mkFreshLevelMVar stx; type ← elabTerm stx (mkSort u); ensureType stx type +def addDecl (ref : Syntax) (decl : Declaration) : TermElabM Unit := do +env ← getEnv; +match env.addDecl decl with +| Except.ok env => setEnv env +| Except.error kex => do opts ← getOptions; throwError ref (kex.toMessageData opts) + +def compileDecl (ref : Syntax) (decl : Declaration) : TermElabM Unit := do +env ← getEnv; +opts ← getOptions; +match env.compileDecl opts decl with +| Except.ok env => setEnv env +| Except.error kex => throwError ref (kex.toMessageData opts) + /- ======================================= Builtin elaboration functions ======================================= -/ @@ -909,6 +924,12 @@ fun stx expectedType? => | some expectedType => mkTacticMVar stx expectedType (stx.getArg 1) | none => throwError stx ("invalid tactic block, expected type has not been provided") +@[builtinTermElab byTactic] def elabByTactic : TermElab := +fun stx expectedType? => + match expectedType? with + | some expectedType => mkTacticMVar stx expectedType (stx.getArg 1) + | none => throwError stx ("invalid 'by' tactic, expected type has not been provided") + /-- Main loop for `mkPairs`. -/ private partial def mkPairsAux (elems : Array Syntax) : Nat → Syntax → MacroM Syntax | i, acc => diff --git a/stage0/src/Init/Lean/Elab/Util.lean b/stage0/src/Init/Lean/Elab/Util.lean index 4ddc1c76cc..97feb5e7e9 100644 --- a/stage0/src/Init/Lean/Elab/Util.lean +++ b/stage0/src/Init/Lean/Elab/Util.lean @@ -107,7 +107,7 @@ pure { table := table } private def throwUnexpectedElabType {γ} (typeName : Name) (constName : Name) : ExceptT String Id γ := throw ("unexpected elaborator type at '" ++ toString constName ++ "', `" ++ toString typeName ++ "` expected") -private unsafe def mkElabFnOfConstantUnsafe (γ) (env : Environment) (typeName : Name) (constName : Name) : ExceptT String Id γ := +private unsafe def evalConstantUnsafe (γ) (env : Environment) (typeName : Name) (constName : Name) : ExceptT String Id γ := match env.find? constName with | none => throw ("unknow constant '" ++ toString constName ++ "'") | some info => @@ -117,8 +117,12 @@ match env.find? constName with else env.evalConst γ constName | _ => throwUnexpectedElabType typeName constName -@[implementedBy mkElabFnOfConstantUnsafe] -constant mkElabFnOfConstant (γ : Type) (env : Environment) (typeName : Name) (constName : Name) : ExceptT String Id γ := throw "" +-- We mark `evalConstant` as private because it is only safe if `mkConst typeName` is definitionally equal to `γ`. +@[implementedBy evalConstantUnsafe] +private constant evalConstant (γ : Type) (env : Environment) (typeName : Name) (constName : Name) : ExceptT String Id γ := throw "" + +def evalSyntaxConstant (env : Environment) (constName : Name) : ExceptT String Id Syntax := +evalConstant Syntax env `Lean.Syntax constName private def ElabAttribute.addImportedParsers {γ} (typeName : Name) (builtinTableRef : IO.Ref (ElabFnTable γ)) (env : Environment) (es : Array (Array ElabAttributeOLeanEntry)) : IO (ElabAttributeExtensionState γ) := do @@ -127,7 +131,7 @@ table ← es.foldlM (fun table entries => entries.foldlM (fun (table : ElabFnTable γ) entry => - match mkElabFnOfConstant γ env typeName entry.constName with + match evalConstant γ env typeName entry.constName with | Except.ok f => pure $ table.insert entry.kind f | Except.error ex => throw (IO.userError ex)) table) @@ -139,7 +143,7 @@ private def ElabAttribute.addExtensionEntry {γ} (s : ElabAttributeExtensionStat private def ElabAttribute.add {γ} (parserNamespace : Name) (typeName : Name) (ext : ElabAttributeExtension γ) (env : Environment) (constName : Name) (arg : Syntax) (persistent : Bool) : IO Environment := do -match mkElabFnOfConstant γ env typeName constName with +match evalConstant γ env typeName constName with | Except.error ex => throw (IO.userError ex) | Except.ok f => do kind ← IO.ofExcept $ syntaxNodeKindOfAttrParam env parserNamespace arg; diff --git a/stage0/src/Init/Lean/Expr.lean b/stage0/src/Init/Lean/Expr.lean index 3552cc9118..a5ef75052b 100644 --- a/stage0/src/Init/Lean/Expr.lean +++ b/stage0/src/Init/Lean/Expr.lean @@ -733,6 +733,18 @@ if e.isAppOfArity `optParam 2 then else none +def getAutoParamTactic? (e : Expr) : Option Expr := +if e.isAppOfArity `autoParam 2 then + some e.appArg! +else + none + +def isOptParam (e : Expr) : Bool := +e.isAppOfArity `optParam 2 + +def isAutoParam (e : Expr) : Bool := +e.isAppOfArity `autoParam 2 + @[specialize] private partial def hasAnyFVarAux (p : FVarId → Bool) : Expr → Bool | e => if !e.hasFVar then false else match e with diff --git a/stage0/src/Init/Lean/Parser/Tactic.lean b/stage0/src/Init/Lean/Parser/Tactic.lean index 9156818665..7fa29ef081 100644 --- a/stage0/src/Init/Lean/Parser/Tactic.lean +++ b/stage0/src/Init/Lean/Parser/Tactic.lean @@ -8,17 +8,6 @@ import Init.Lean.Parser.Term namespace Lean namespace Parser - -@[init] def regBuiltinTacticParserAttr : IO Unit := -let leadingIdentAsSymbol := true; -registerBuiltinParserAttribute `builtinTacticParser `tactic leadingIdentAsSymbol - -@[init] def regTacticParserAttribute : IO Unit := -registerBuiltinDynamicParserAttribute `tacticParser `tactic - -@[inline] def tacticParser (rbp : Nat := 0) : Parser := -categoryParser `tactic rbp - namespace Tactic def underscoreFn : ParserFn := @@ -34,12 +23,6 @@ fun c s => def ident' : Parser := ident <|> underscore -/- - We must not use the `parser! t` macro here it because it expands into `mkAntiquot ... <|> t`, - but a tactic parser may start with an antiquotation. -/ -def seq : Parser := node `Lean.Parser.Tactic.seq $ sepBy tacticParser "; " true -def nonEmptySeq : Parser := node `Lean.Parser.Tactic.seq $ sepBy1 tacticParser "; " true - @[builtinTacticParser] def «intro» := parser! nonReservedSymbol "intro " >> optional ident' @[builtinTacticParser] def «intros» := parser! nonReservedSymbol "intros " >> many ident' @[builtinTacticParser] def «revert» := parser! nonReservedSymbol "revert " >> many1 ident @@ -60,15 +43,5 @@ def nonEmptySeq : Parser := node `Lean.Parser.Tactic.seq $ sepBy1 tacticParser " @[builtinTacticParser] def orelse := tparser! " <|> " >> tacticParser 1 end Tactic - -namespace Term - -@[builtinTermParser] def tacticBlock := parser! symbol "begin " appPrec >> Tactic.seq >> "end" -@[builtinTermParser] def byTactic := parser! symbol "by " leadPrec >> Tactic.nonEmptySeq --- Use `unboxSingleton` trick similar to the one used at Command.lean for `Term.stxQuot` -@[builtinTermParser] def tacticStxQuot : Parser := node `Lean.Parser.Term.stxQuot $ symbol "`(tactic|" appPrec >> sepBy1 tacticParser "; " true true >> ")" - -end Term - end Parser end Lean diff --git a/stage0/src/Init/Lean/Parser/Term.lean b/stage0/src/Init/Lean/Parser/Term.lean index 5beb5e0b1e..e43221a92d 100644 --- a/stage0/src/Init/Lean/Parser/Term.lean +++ b/stage0/src/Init/Lean/Parser/Term.lean @@ -10,6 +10,19 @@ import Init.Lean.Parser.Level namespace Lean namespace Parser +@[init] def regBuiltinTacticParserAttr : IO Unit := +let leadingIdentAsSymbol := true; +registerBuiltinParserAttribute `builtinTacticParser `tactic leadingIdentAsSymbol + +@[init] def regTacticParserAttribute : IO Unit := +registerBuiltinDynamicParserAttribute `tacticParser `tactic + +@[inline] def tacticParser (rbp : Nat := 0) : Parser := +categoryParser `tactic rbp + +def Tactic.seq : Parser := node `Lean.Parser.Tactic.seq $ sepBy tacticParser "; " true +def Tactic.nonEmptySeq : Parser := node `Lean.Parser.Tactic.seq $ sepBy1 tacticParser "; " true + def darrow : Parser := unicodeSymbol "⇒" "=>" namespace Term @@ -73,9 +86,9 @@ def optType : Parser := optional typeSpec @[builtinTermParser] def inaccessible := parser! symbol ".(" appPrec >> termParser >> ")" def binderIdent : Parser := ident <|> hole def binderType (requireType := false) : Parser := if requireType then group (" : " >> termParser) else optional (" : " >> termParser) +def binderTactic := parser! try (" := " >> " by ") >> Tactic.nonEmptySeq def binderDefault := parser! " := " >> termParser -def binderTactic := parser! " . " >> termParser -def explicitBinder (requireType := false) := parser! "(" >> many1 binderIdent >> binderType requireType >> optional (binderDefault <|> binderTactic) >> ")" +def explicitBinder (requireType := false) := parser! "(" >> many1 binderIdent >> binderType requireType >> optional (binderTactic <|> binderDefault) >> ")" def implicitBinder (requireType := false) := parser! "{" >> many1 binderIdent >> binderType requireType >> "}" def instBinder := parser! "[" >> optIdent >> termParser >> "]" def bracktedBinder (requireType := false) := explicitBinder requireType <|> implicitBinder requireType <|> instBinder @@ -189,6 +202,11 @@ def checkIsSort := checkStackTop (fun stx => stx.isOfKind `Lean.Parser.Term.type @[builtinTermParser] def mapConst := tparser! infixR " <$ " 100 @[builtinTermParser] def mapConstRev := tparser! infixR " $> " 100 +@[builtinTermParser] def tacticBlock := parser! symbol "begin " appPrec >> Tactic.seq >> "end" +@[builtinTermParser] def byTactic := parser! symbol "by " leadPrec >> Tactic.nonEmptySeq +-- Use `unboxSingleton` trick similar to the one used at Command.lean for `Term.stxQuot` +@[builtinTermParser] def tacticStxQuot : Parser := node `Lean.Parser.Term.stxQuot $ symbol "`(tactic|" appPrec >> sepBy1 tacticParser "; " true true >> ")" + end Term end Parser end Lean diff --git a/stage0/src/Init/Lean/Syntax.lean b/stage0/src/Init/Lean/Syntax.lean index 852466bba3..1658f2f37d 100644 --- a/stage0/src/Init/Lean/Syntax.lean +++ b/stage0/src/Init/Lean/Syntax.lean @@ -229,6 +229,36 @@ match stx.getTailInfo with | none => stx | some info => stx.setTailInfo info.truncateTrailing +@[specialize] private partial def updateFirst {α} [Inhabited α] (a : Array α) (f : α → Option α) : Nat → Option (Array α) +| i => + if h : i < a.size then + let v := a.get ⟨i, h⟩; + match f v with + | some v => some $ a.set ⟨i, h⟩ v + | none => updateFirst (i+1) + else + none + +partial def setHeadInfoAux (info : Option SourceInfo) : Syntax → Option Syntax +| atom _ val => some $ atom info val +| ident _ rawVal val pre => some $ ident info rawVal val pre +| node k args => + match updateFirst args setHeadInfoAux args.size with + | some args => some $ node k args + | noxne => none +| stx => none + +def setHeadInfo (stx : Syntax) (info : Option SourceInfo) : Syntax := +match setHeadInfoAux info stx with +| some stx => stx +| none => stx + +partial def replaceInfo (info : SourceInfo) : Syntax → Syntax +| atom _ val => atom info val +| ident _ rawVal val pre => ident info rawVal val pre +| node k args => node k $ args.map replaceInfo +| stx => stx + private def reprintLeaf : Option SourceInfo → String → String -- no source info => add gracious amounts of whitespace to definitely separate tokens -- Note that the proper pretty printer does not use this function. diff --git a/stage0/src/Init/LeanInit.lean b/stage0/src/Init/LeanInit.lean index 4d6956f167..6e03a2aab0 100644 --- a/stage0/src/Init/LeanInit.lean +++ b/stage0/src/Init/LeanInit.lean @@ -132,13 +132,6 @@ mkNameNum g.namePrefix g.idx end NameGenerator -/-- - Gadget for automatic parameter support. This is similar to the `optParam` gadget, but it uses - the tactic declaration name `tacName` to synthesize the argument. - Like `optParam`, this gadget only affects elaboration. - For example, the tactic will *not* be invoked during type class resolution. -/ -abbrev autoParam.{u} (α : Sort u) (tacName : Name) : Sort u := α - /- Small DSL for describing parsers. We implement an interpreter for it at `Parser.lean` -/ @@ -175,6 +168,8 @@ structure SourceInfo := (pos : String.Pos) (trailing : Substring) +instance SourceInfo.inhabited : Inhabited SourceInfo := ⟨⟨"".toSubstring, arbitrary _, "".toSubstring⟩⟩ + abbrev SyntaxNodeKind := Name /- Syntax AST -/ @@ -814,3 +809,10 @@ def mapSepElems (a : Array Syntax) (f : Syntax → Syntax) : Array Syntax := Id.run $ a.mapSepElemsM f end Array + +/-- + Gadget for automatic parameter support. This is similar to the `optParam` gadget, but it uses + the given tactic. + Like `optParam`, this gadget only affects elaboration. + For example, the tactic will *not* be invoked during type class resolution. -/ +abbrev autoParam.{u} (α : Sort u) (tactic : Lean.Syntax) : Sort u := α diff --git a/stage0/src/library/compiler/csimp.cpp b/stage0/src/library/compiler/csimp.cpp index b688bf6319..71b86c0434 100644 --- a/stage0/src/library/compiler/csimp.cpp +++ b/stage0/src/library/compiler/csimp.cpp @@ -330,7 +330,6 @@ class csimp_fn { }; void collect_cases_info(expr e, cases_info_result & result) { - lean_assert(m_before_erasure); while (true) { if (is_lambda(e)) e = binding_body(e); diff --git a/stage0/stdlib/Init/Lean/Elab/App.c b/stage0/stdlib/Init/Lean/Elab/App.c index e87ff6b2ec..1a35992f2b 100644 --- a/stage0/stdlib/Init/Lean/Elab/App.c +++ b/stage0/stdlib/Init/Lean/Elab/App.c @@ -13,140 +13,145 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l___private_Init_Lean_Elab_App_25__mergeFailures(lean_object*); lean_object* l___private_Init_Lean_Elab_App_4__tryCoeFun___closed__7; -lean_object* l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_8__hasOnlyTypeMVar___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__5; lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); extern lean_object* l_Lean_Name_toString___closed__1; +lean_object* l___private_Init_Lean_Elab_App_14__resolveLValLoop___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_fieldIdxKind; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); -lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_6__getForallBody___main___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_14__resolveLValLoop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__10; lean_object* l_Lean_Syntax_isNatLitAux(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabChoice___closed__3; extern lean_object* l_Lean_Parser_Term_explicit___elambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__1; +lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__5; lean_object* l_Lean_mkSort(lean_object*); lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; +lean_object* l___private_Init_Lean_Elab_App_24__mergeFailures(lean_object*); lean_object* l_Lean_Elab_Term_mkFreshExprMVar(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__8; lean_object* l_unreachable_x21___rarg(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__5; -uint8_t l___private_Init_Lean_Elab_App_10__nextArgIsHole(lean_object*); +lean_object* l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__4; lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_elabExplicitUniv___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_fieldIdxKind___closed__2; extern lean_object* l_Lean_MessageData_ofList___closed__3; lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); +uint8_t l___private_Init_Lean_Elab_App_9__nextArgIsHole(lean_object*); +lean_object* l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__2; lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__3(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__1; -lean_object* l___private_Init_Lean_Elab_App_17__mkBaseProjections___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +lean_object* l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__12; lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_26__expandApp(lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Init_Lean_Elab_App_21__elabAppFn___main___spec__1(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabId___closed__1; extern lean_object* l_Option_get_x21___rarg___closed__3; -lean_object* l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabId___closed__2; +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_24__mergeFailures___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_17__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_array_fswap(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_identKind___closed__2; extern lean_object* l_Prod_HasRepr___rarg___closed__1; -lean_object* l_Array_contains___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_27__expandApp(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAutoParamTactic_x3f(lean_object*); +lean_object* l___private_Init_Lean_Elab_App_12__throwLValError___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_PersistentHashMap_mkCollisionNode___rarg___closed__1; +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__20; +lean_object* l___private_Init_Lean_Elab_App_26__expandApp___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__3; -lean_object* l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_27__expandApp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); -lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_18__addLValArg___main___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__2; uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__10; -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__16; -lean_object* l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__3; +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(lean_object*, lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__20; +uint8_t l___private_Init_Lean_Elab_App_6__hasTypeMVar(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__7; -lean_object* l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__1; +lean_object* l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__10; +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_17__addLValArg___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_24__mergeFailures___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__10; +lean_object* l___private_Init_Lean_Elab_App_14__resolveLValLoop___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_namedArgument___elambda__1___closed__2; +lean_object* l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__1; uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar___boxed(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent(lean_object*); lean_object* lean_local_ctx_find_from_user_name(lean_object*, lean_object*); -lean_object* l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_8__hasOnlyTypeMVar___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__7; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_23__toMessageData___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_NamedArg_hasToString(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; lean_object* lean_array_get_size(lean_object*); -lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_6__getForallBody___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_19__elabAppLVals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__10; +lean_object* l___private_Init_Lean_Elab_App_23__toMessageData___closed__1; +lean_object* l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__11; +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__11; +extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; lean_object* l_Lean_Expr_getOptParamDefault_x3f(lean_object*); +lean_object* l___private_Init_Lean_Elab_App_25__elabAppAux___closed__3; lean_object* l_Lean_Expr_getAppFn___main(lean_object*); lean_object* l_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isTypeFormer(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__7; +extern lean_object* l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; extern lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__4; -lean_object* l___private_Init_Lean_Elab_App_20__elabAppLVals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__2; +lean_object* l___private_Init_Lean_Elab_App_19__elabAppLVals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__6; -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_25__mergeFailures___spec__1___closed__1; -lean_object* l_Array_forMAux___main___at___private_Init_Lean_Elab_App_15__resolveLValLoop___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_22__elabAppFn___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_23__toMessageData___closed__2; extern lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__2; -lean_object* l___private_Init_Lean_Elab_App_21__elabAppFnId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_25__mergeFailures___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*); lean_object* l_Lean_Elab_Term_NamedArg_inhabited; +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__4; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabId___closed__3; +lean_object* l___private_Init_Lean_Elab_App_20__elabAppFnId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__8; +lean_object* l___private_Init_Lean_Elab_App_15__resolveLVal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__3; extern lean_object* l_Lean_mkAppStx___closed__7; lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_16__resolveLVal(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* l___private_Init_Lean_Elab_App_5__isAutoOrOptParam___boxed(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_16__resolveLVal___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Lean_Syntax_foldSepRevArgsM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__10; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrayRef___closed__3; -lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__5; -lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_18__addLValArg___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_12__throwLValError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_9__propagateExpectedType(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Meta_Tactic_Apply_5__reorderNonDependentFirst___closed__1; extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; extern lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; extern uint8_t l___private_Init_Lean_Elab_Term_11__isExplicit___closed__1; -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_25__mergeFailures___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_15__resolveLValLoop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_13__throwLValError___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main___closed__1; +lean_object* l___private_Init_Lean_Elab_App_8__propagateExpectedType(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Format_repr___main___closed__13; extern lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__2; -lean_object* l___private_Init_Lean_Elab_App_22__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* l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__9; +lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); +lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_5__getForallBody___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_26__expandApp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__1; extern lean_object* l_Array_HasRepr___rarg___closed__1; +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__17; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrayRef___closed__1; lean_object* l_Lean_Elab_Term_elabLevel(lean_object*, lean_object*, lean_object*); -uint8_t l___private_Init_Lean_Elab_App_7__hasTypeMVar(lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main___closed__2; +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_declareBuiltinTermElab___closed__3; lean_object* l_Lean_mkProj(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__17; -lean_object* l___private_Init_Lean_Elab_App_13__throwLValError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabArrayRef(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__8; lean_object* l_Lean_Elab_Term_mkFreshAnonymousName___rarg(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_20__elabAppLVals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__3; +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__8; lean_object* l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabChoice___closed__2; +lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_App_23__toMessageData___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLevel(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabExplicit(lean_object*, lean_object*, lean_object*, lean_object*); @@ -154,272 +159,282 @@ lean_object* l_Lean_Elab_Term_getCurrNamespace(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(lean_object*); extern lean_object* l_Lean_choiceKind___closed__2; extern lean_object* l_Lean_MessageData_Inhabited; -lean_object* l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__5; +extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7; +lean_object* l_Array_filterAux___main___at___private_Init_Lean_Elab_App_22__getSuccess___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabId(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_15__resolveLVal___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__26; extern lean_object* l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; -lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_App_27__expandApp___spec__2___rarg(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* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__26; -uint8_t l___private_Init_Lean_Elab_App_5__isAutoOrOptParam(lean_object*); +lean_object* l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__1; +lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_App_20__elabAppFnId___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___regBuiltinTermElab_Lean_Elab_Term_elabChoice___closed__1; -lean_object* l___private_Init_Lean_Elab_App_7__hasTypeMVar___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__3; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_15__resolveLValLoop___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_App_27__expandApp___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_replaceInfo___main(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__12; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrayRef___closed__2; -lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__2; +lean_object* l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_NamedArg_inhabited___closed__1; lean_object* l_Lean_Elab_Term_elabExplicitUniv___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__12; +lean_object* l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Arg_hasToString(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__3; -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_21__elabAppFn___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__19; uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__19; +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_26__expandApp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__11; lean_object* l_Lean_Elab_Term_logTrace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7; -lean_object* l___private_Init_Lean_Elab_App_26__elabAppAux___closed__1; -lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_App_24__toMessageData___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); +lean_object* l___private_Init_Lean_Elab_App_5__getForallBody(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___private_Init_Lean_Elab_App_18__addLValArg___main___closed__12; -lean_object* l___private_Init_Lean_Elab_App_19__elabAppLValsAux(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__1; +lean_object* l_List_map___main___at___private_Init_Lean_Elab_App_20__elabAppFnId___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_18__addLValArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__2; -lean_object* l___private_Init_Lean_Elab_App_12__elabAppArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_6__getForallBody(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_17__addLValArg(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_elabAtom(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_App_4__tryCoeFun___closed__6; lean_object* l_Lean_getStructureFields(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_26__elabAppAux___closed__2; -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_App_21__elabAppFnId___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_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabSortApp___closed__1; -lean_object* l_Array_filterAux___main___at___private_Init_Lean_Elab_App_23__getSuccess___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__11; -lean_object* l_Array_forMAux___main___at___private_Init_Lean_Elab_App_15__resolveLValLoop___main___spec__1(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* l___private_Init_Lean_Elab_App_18__elabAppLValsAux(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Exception_toTraceMessageData___closed__4; -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__2; -lean_object* l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__1; +lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Options_empty; lean_object* lean_expr_dbg_to_string(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_12__elabAppArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__23; lean_object* l_Lean_Elab_Term_elabApp(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21; +lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__1; 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*); uint8_t l_coeDecidableEq(uint8_t); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__23; +uint8_t l___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_App_1__ensureArgType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Init_Lean_Elab_App_8__hasOnlyTypeMVar(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_6__hasTypeMVar___boxed(lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__1; +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_25__elabAppAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_27__regTraceClasses(lean_object*); 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* l_Array_contains___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_21__elabAppFn___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabApp(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_28__regTraceClasses(lean_object*); -lean_object* l_List_map___main___at___private_Init_Lean_Elab_App_21__elabAppFnId___spec__1(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_22__elabAppFn___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_findIdxAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__2; +lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_24__mergeFailures___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_formatEntry___closed__1; -lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; +lean_object* l_Array_forMAux___main___at___private_Init_Lean_Elab_App_14__resolveLValLoop___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_TermElabResult_inhabited; uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); -lean_object* l_Lean_Elab_Term_TermElabM_inhabited___boxed(lean_object*, lean_object*); -uint8_t l_Array_contains___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__1(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__8; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabExplicit___closed__1; +lean_object* l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__6; +uint8_t l_Lean_Expr_isAutoParam(lean_object*); extern lean_object* l_Lean_Parser_Term_arrayRef___elambda__1___closed__2; -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_App_23__toMessageData___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_replacePrefix___main(lean_object*, lean_object*, lean_object*); -lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_App_27__expandApp___spec__2(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_26__elabAppAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__8; +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__7; lean_object* l_Lean_Elab_Term_mkConst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_20__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* l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__10; +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; extern lean_object* l_Lean_nullKind___closed__2; +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabProj(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_25__elabAppAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_App_4__tryCoeFun___closed__4; lean_object* l_Lean_MessageData_ofArray(lean_object*); lean_object* l___private_Init_Lean_Elab_App_3__mkArrow(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_App_24__toMessageData___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Init_Lean_Elab_App_14__resolveLValLoop___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__4; +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__25; lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getHeadInfo___main(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabExplicit___closed__2; extern lean_object* l_Lean_mkAppStx___closed__3; -lean_object* l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__4; +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__6; lean_object* l___private_Init_Lean_Elab_App_2__elabArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_6__getForallBody___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_25__mergeFailures___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_21__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* l___private_Init_Lean_Elab_App_17__addLValArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Option_HasRepr___rarg___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabExplicit(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__27; +uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__2; extern lean_object* l_Lean_Meta_Exception_mkAppTypeMismatchMessage___closed__8; 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___regBuiltinTermElab_Lean_Elab_Term_elabId(lean_object*); extern lean_object* l_Lean_Syntax_inhabited; -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__2; -lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__7; +lean_object* l___private_Init_Lean_Elab_App_22__getSuccess(lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__4; +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__13; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabSortApp___closed__2; +lean_object* l___private_Init_Lean_Elab_App_25__elabAppAux___closed__2; extern lean_object* l_Lean_mkAppStx___closed__5; uint8_t l_Lean_BinderInfo_beq(uint8_t, uint8_t); -lean_object* l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabSortApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__1; -lean_object* l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__2; -lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; +lean_object* l___private_Init_Lean_Elab_App_25__elabAppAux___closed__1; lean_object* l_Lean_mkLevelSucc(lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__9; lean_object* l_Lean_Elab_Term_getLCtx(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabSortApp(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__9; +lean_object* l_Lean_Expr_getRevArg_x21___main(lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__27; uint8_t l_Lean_Expr_hasMVar(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabExplicit___closed__3; -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__4; +lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__2; lean_object* l_Lean_Syntax_getArgs(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_10__nextArgIsHole___boxed(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__1; uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); lean_object* l_Lean_Elab_Term_registerSyntheticMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__9; lean_object* l_Lean_Syntax_getKind(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__13; +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__14; +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__5; lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_App_4__tryCoeFun___closed__3; +lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabChoice(lean_object*); +lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_5__getForallBody___main___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__5; lean_object* l___private_Init_Lean_Elab_App_4__tryCoeFun___closed__5; lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Term_throwError___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_22__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* l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__9; +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__13; +lean_object* l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +lean_object* l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__1; lean_object* l_Lean_Elab_Term_whnfCore(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrayRef(lean_object*); extern lean_object* l___private_Init_Util_1__mkPanicMessage___closed__2; -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_26__elabAppAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__3; +lean_object* l_Lean_Elab_evalSyntaxConstant(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__1; extern lean_object* l_Lean_mkHole___closed__1; lean_object* l_Lean_Elab_Term_elabExplicitUniv(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__7; -lean_object* l___private_Init_Lean_Elab_App_23__getSuccess(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__8; -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__18; +lean_object* l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__2; +lean_object* l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__3; lean_object* l_Lean_Elab_Term_tryPostponeIfMVar(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__15; +lean_object* l___private_Init_Lean_Elab_App_16__mkBaseProjections(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__3; -lean_object* l___private_Init_Lean_Elab_App_24__toMessageData___closed__2; lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__8; lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_19__elabAppLValsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Tactic_seq___elambda__1___closed__4; extern lean_object* l_Lean_mkAppStx___closed__9; +lean_object* l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__2; +lean_object* l___private_Init_Lean_Elab_App_16__mkBaseProjections___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__15; +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__18; +lean_object* l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__1; lean_object* l_Lean_Elab_Term_whnfForall(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__3; -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__28; -lean_object* l___private_Init_Lean_Elab_App_15__resolveLValLoop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__5; lean_object* l___private_Init_Lean_Elab_App_4__tryCoeFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__9; 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_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_consumeMData___main(lean_object*); +lean_object* l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_24__toMessageData(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_23__toMessageData(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__1; -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__5; lean_object* l_Array_toList___rarg(lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_18__addLValArg___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addBuiltinTermElab(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__8; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__2; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__2; +lean_object* l___private_Init_Lean_Elab_App_9__nextArgIsHole___boxed(lean_object*); +uint8_t l_Lean_Expr_isOptParam(lean_object*); +lean_object* l___private_Init_Lean_Elab_App_5__getForallBody___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Arg_inhabited___closed__1; lean_object* l_Lean_Elab_Term_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; -lean_object* l___private_Init_Lean_Elab_App_22__elabAppFn___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_24__toMessageData___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24; +lean_object* l___private_Init_Lean_Elab_App_14__resolveLValLoop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__1; -lean_object* l___private_Init_Lean_Elab_App_27__expandApp___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_24__toMessageData___closed__1; -lean_object* l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__1; -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1___closed__2; +lean_object* l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__7; +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_App_20__elabAppFnId___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__16; lean_object* l_Lean_Elab_Term_addNamedArg___closed__2; -lean_object* l___private_Init_Lean_Elab_App_18__addLValArg___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Exception_toStr___closed__6; -lean_object* l___private_Init_Lean_Elab_App_8__hasOnlyTypeMVar___boxed(lean_object*, lean_object*); uint8_t l_Lean_Position_DecidableEq(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; -lean_object* l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__11; -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24; -lean_object* l___private_Init_Lean_Elab_App_15__resolveLValLoop___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_17__mkBaseProjections(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__3; +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__7; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabProj(lean_object*); lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Nat_Inhabited; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_26__elabAppAux___closed__3; lean_object* l_Lean_Elab_Term_applyResult(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); -extern lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; lean_object* l___private_Init_Lean_Elab_App_4__tryCoeFun___closed__2; -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__6; -lean_object* l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__3; lean_object* l_Lean_Elab_Term_elabRawIdent(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_18__addLValArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_App_4__tryCoeFun___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_13__throwLValError(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__3; +lean_object* l___private_Init_Lean_Elab_App_21__elabAppFn___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_findIdxAux___main___at___private_Init_Lean_Elab_App_17__addLValArg___main___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_12__throwLValError(lean_object*); uint8_t l_Lean_isStructureLike(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__11; +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__22; lean_object* l_Lean_indentExpr(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__4; +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__1; +lean_object* l___private_Init_Lean_Elab_App_18__elabAppLValsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_App_4__tryCoeFun___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabSortApp(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__25; -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1___closed__1; +lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__11; +uint8_t l_Array_contains___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_Format_repr___main___closed__16; +lean_object* l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__3; lean_object* l_Lean_mkConst(lean_object*, lean_object*); +lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__14; lean_object* l_Lean_Elab_Term_ensureHasTypeAux(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_List_foldlM___main___at___private_Init_Lean_Elab_App_21__elabAppFnId___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__28; lean_object* l_Lean_findField_x3f___main(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__6; +lean_object* l___private_Init_Lean_Elab_App_21__elabAppFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_sortApp___elambda__1___closed__2; -lean_object* l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__6; -lean_object* l___private_Init_Lean_Elab_App_22__elabAppFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_components(lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__22; extern lean_object* l_Lean_mkAppStx___closed__1; -lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_elabExplicitUniv___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__4; lean_object* l_Lean_Elab_Term_elabFunCore(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_21__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* l___private_Init_Lean_Elab_App_17__addLValArg___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabSortApp___closed__3; uint8_t l_Lean_isStructure(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_27__expandApp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_App_3__mkArrow___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__14; +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_21__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*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__3; 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*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__6; uint8_t l_Lean_Syntax_isIdent(lean_object*); -lean_object* l_List_map___main___at___private_Init_Lean_Elab_App_22__elabAppFn___main___spec__1(lean_object*); lean_object* _init_l_Lean_Elab_Term_Arg_inhabited___closed__1() { _start: { @@ -1363,37 +1378,7 @@ lean_dec(x_1); return x_6; } } -uint8_t l___private_Init_Lean_Elab_App_5__isAutoOrOptParam(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Expr_getOptParamDefault_x3f(x_1); -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_3; -x_3 = 0; -return x_3; -} -else -{ -uint8_t x_4; -lean_dec(x_2); -x_4 = 1; -return x_4; -} -} -} -lean_object* l___private_Init_Lean_Elab_App_5__isAutoOrOptParam___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = l___private_Init_Lean_Elab_App_5__isAutoOrOptParam(x_1); -lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; -} -} -lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_6__getForallBody___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_5__getForallBody___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -1435,7 +1420,7 @@ return x_13; } } } -lean_object* l___private_Init_Lean_Elab_App_6__getForallBody___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Elab_App_5__getForallBody___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 7) @@ -1449,7 +1434,7 @@ x_6 = lean_ctor_get(x_3, 2); lean_inc(x_6); x_7 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_6__getForallBody___main___spec__1(x_4, x_2, x_8); +x_9 = l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_5__getForallBody___main___spec__1(x_4, x_2, x_8); lean_dec(x_4); if (lean_obj_tag(x_9) == 0) { @@ -1470,17 +1455,21 @@ x_13 = lean_nat_dec_lt(x_8, x_1); if (x_13 == 0) { uint8_t x_14; -x_14 = l___private_Init_Lean_Elab_App_5__isAutoOrOptParam(x_5); -lean_dec(x_5); +x_14 = l_Lean_Expr_isAutoParam(x_5); if (x_14 == 0) { -lean_object* x_15; +uint8_t x_15; +x_15 = l_Lean_Expr_isOptParam(x_5); +lean_dec(x_5); +if (x_15 == 0) +{ +lean_object* x_16; lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_3); -return x_15; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_3); +return x_16; } else { @@ -1491,13 +1480,21 @@ goto _start; } else { -lean_object* x_17; lean_object* x_18; lean_dec(x_5); lean_dec(x_3); -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_sub(x_1, x_17); +x_3 = x_6; +goto _start; +} +} +else +{ +lean_object* x_19; lean_object* x_20; +lean_dec(x_5); +lean_dec(x_3); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_sub(x_1, x_19); lean_dec(x_1); -x_1 = x_18; +x_1 = x_20; x_3 = x_6; goto _start; } @@ -1505,75 +1502,75 @@ goto _start; } else { -lean_object* x_20; lean_object* x_21; +lean_object* x_22; lean_object* x_23; lean_dec(x_5); lean_dec(x_3); -x_20 = lean_ctor_get(x_9, 0); -lean_inc(x_20); +x_22 = lean_ctor_get(x_9, 0); +lean_inc(x_22); lean_dec(x_9); -x_21 = l_Array_eraseIdx___rarg(x_2, x_20); -lean_dec(x_20); -x_2 = x_21; +x_23 = l_Array_eraseIdx___rarg(x_2, x_22); +lean_dec(x_22); +x_2 = x_23; x_3 = x_6; goto _start; } } else { -lean_object* x_23; uint8_t x_24; -x_23 = lean_unsigned_to_nat(0u); -x_24 = lean_nat_dec_eq(x_1, x_23); +lean_object* x_25; uint8_t x_26; +x_25 = lean_unsigned_to_nat(0u); +x_26 = lean_nat_dec_eq(x_1, x_25); lean_dec(x_1); -if (x_24 == 0) -{ -lean_object* x_25; -lean_dec(x_3); -lean_dec(x_2); -x_25 = lean_box(0); -return x_25; -} -else -{ -uint8_t x_26; -x_26 = l_Array_isEmpty___rarg(x_2); -lean_dec(x_2); if (x_26 == 0) { lean_object* x_27; lean_dec(x_3); +lean_dec(x_2); x_27 = lean_box(0); return x_27; } else { -lean_object* x_28; -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_3); -return x_28; +uint8_t x_28; +x_28 = l_Array_isEmpty___rarg(x_2); +lean_dec(x_2); +if (x_28 == 0) +{ +lean_object* x_29; +lean_dec(x_3); +x_29 = lean_box(0); +return x_29; +} +else +{ +lean_object* x_30; +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_3); +return x_30; } } } } } -lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_6__getForallBody___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_5__getForallBody___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_6__getForallBody___main___spec__1(x_1, x_2, x_3); +x_4 = l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_5__getForallBody___main___spec__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_Lean_Elab_App_6__getForallBody(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Elab_App_5__getForallBody(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_Lean_Elab_App_6__getForallBody___main(x_1, x_2, x_3); +x_4 = l___private_Init_Lean_Elab_App_5__getForallBody___main(x_1, x_2, x_3); return x_4; } } -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; @@ -1608,18 +1605,18 @@ return x_9; } } } -uint8_t l_Array_contains___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__1(lean_object* x_1, lean_object* x_2) { +uint8_t l_Array_contains___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; x_3 = lean_array_get_size(x_1); x_4 = lean_unsigned_to_nat(0u); -x_5 = l_Array_anyRangeMAux___main___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__2(x_1, x_2, x_1, x_3, x_4); +x_5 = l_Array_anyRangeMAux___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__2(x_1, x_2, x_1, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { switch (lean_obj_tag(x_2)) { @@ -1630,7 +1627,7 @@ if (lean_obj_tag(x_3) == 0) lean_object* x_4; lean_object* x_5; uint8_t x_6; x_4 = lean_ctor_get(x_2, 0); x_5 = lean_ctor_get(x_1, 6); -x_6 = l_Array_contains___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__1(x_5, x_4); +x_6 = l_Array_contains___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__1(x_5, x_4); if (x_6 == 0) { return x_3; @@ -1674,7 +1671,7 @@ goto _start; else { lean_object* x_13; -x_13 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__3(x_1, x_8, x_3); +x_13 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__3(x_1, x_8, x_3); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -1726,7 +1723,7 @@ goto _start; else { lean_object* x_21; -x_21 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__3(x_1, x_16, x_3); +x_21 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__3(x_1, x_16, x_3); if (lean_obj_tag(x_21) == 0) { uint8_t x_22; @@ -1778,7 +1775,7 @@ goto _start; else { lean_object* x_29; -x_29 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__3(x_1, x_24, x_3); +x_29 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__3(x_1, x_24, x_3); if (lean_obj_tag(x_29) == 0) { uint8_t x_30; @@ -1823,7 +1820,7 @@ goto block_42; else { lean_object* x_44; -x_44 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__3(x_1, x_32, x_3); +x_44 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__3(x_1, x_32, x_3); if (lean_obj_tag(x_44) == 0) { x_35 = x_44; @@ -1868,7 +1865,7 @@ return x_35; else { lean_object* x_39; -x_39 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__3(x_1, x_33, x_35); +x_39 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__3(x_1, x_33, x_35); if (lean_obj_tag(x_39) == 0) { uint8_t x_40; @@ -1942,12 +1939,12 @@ return x_3; } } } -uint8_t l___private_Init_Lean_Elab_App_7__hasTypeMVar(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Init_Lean_Elab_App_6__hasTypeMVar(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = lean_box(0); -x_4 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__3(x_1, x_2, x_3); +x_4 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__3(x_1, x_2, x_3); if (lean_obj_tag(x_4) == 0) { uint8_t x_5; @@ -1963,11 +1960,11 @@ return x_6; } } } -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; -x_6 = l_Array_anyRangeMAux___main___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__2(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_anyRangeMAux___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__2(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -1976,39 +1973,39 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Array_contains___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_contains___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Array_contains___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__1(x_1, x_2); +x_3 = l_Array_contains___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__3___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_Init_Lean_Elab_App_7__hasTypeMVar___spec__3(x_1, x_2, x_3); +x_4 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__3(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_Lean_Elab_App_7__hasTypeMVar___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Lean_Elab_App_6__hasTypeMVar___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Init_Lean_Elab_App_7__hasTypeMVar(x_1, x_2); +x_3 = l___private_Init_Lean_Elab_App_6__hasTypeMVar(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_8__hasOnlyTypeMVar___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { switch (lean_obj_tag(x_2)) { @@ -2019,7 +2016,7 @@ if (lean_obj_tag(x_3) == 0) lean_object* x_4; lean_object* x_5; uint8_t x_6; x_4 = lean_ctor_get(x_2, 0); x_5 = lean_ctor_get(x_1, 6); -x_6 = l_Array_contains___at___private_Init_Lean_Elab_App_7__hasTypeMVar___spec__1(x_5, x_4); +x_6 = l_Array_contains___at___private_Init_Lean_Elab_App_6__hasTypeMVar___spec__1(x_5, x_4); if (x_6 == 0) { lean_object* x_7; @@ -2063,7 +2060,7 @@ goto _start; else { lean_object* x_13; -x_13 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_8__hasOnlyTypeMVar___spec__1(x_1, x_8, x_3); +x_13 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar___spec__1(x_1, x_8, x_3); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -2115,7 +2112,7 @@ goto _start; else { lean_object* x_21; -x_21 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_8__hasOnlyTypeMVar___spec__1(x_1, x_16, x_3); +x_21 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar___spec__1(x_1, x_16, x_3); if (lean_obj_tag(x_21) == 0) { uint8_t x_22; @@ -2167,7 +2164,7 @@ goto _start; else { lean_object* x_29; -x_29 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_8__hasOnlyTypeMVar___spec__1(x_1, x_24, x_3); +x_29 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar___spec__1(x_1, x_24, x_3); if (lean_obj_tag(x_29) == 0) { uint8_t x_30; @@ -2212,7 +2209,7 @@ goto block_42; else { lean_object* x_44; -x_44 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_8__hasOnlyTypeMVar___spec__1(x_1, x_32, x_3); +x_44 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar___spec__1(x_1, x_32, x_3); if (lean_obj_tag(x_44) == 0) { x_35 = x_44; @@ -2257,7 +2254,7 @@ return x_35; else { lean_object* x_39; -x_39 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_8__hasOnlyTypeMVar___spec__1(x_1, x_33, x_35); +x_39 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar___spec__1(x_1, x_33, x_35); if (lean_obj_tag(x_39) == 0) { uint8_t x_40; @@ -2331,12 +2328,12 @@ return x_3; } } } -uint8_t l___private_Init_Lean_Elab_App_8__hasOnlyTypeMVar(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = lean_box(0); -x_4 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_8__hasOnlyTypeMVar___spec__1(x_1, x_2, x_3); +x_4 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar___spec__1(x_1, x_2, x_3); if (lean_obj_tag(x_4) == 0) { uint8_t x_5; @@ -2352,28 +2349,28 @@ return x_6; } } } -lean_object* l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_8__hasOnlyTypeMVar___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar___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_Init_Lean_Elab_App_8__hasOnlyTypeMVar___spec__1(x_1, x_2, x_3); +x_4 = l_Lean_FindMVar_main___main___at___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar___spec__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_Lean_Elab_App_8__hasOnlyTypeMVar___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Init_Lean_Elab_App_8__hasOnlyTypeMVar(x_1, x_2); +x_3 = l___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar(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_Init_Lean_Elab_App_9__propagateExpectedType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_App_8__propagateExpectedType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -2423,7 +2420,7 @@ lean_dec(x_15); lean_dec(x_14); x_17 = lean_ctor_get(x_1, 4); lean_inc(x_17); -x_18 = l___private_Init_Lean_Elab_App_6__getForallBody___main(x_16, x_17, x_2); +x_18 = l___private_Init_Lean_Elab_App_5__getForallBody___main(x_16, x_17, x_2); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; lean_object* x_20; @@ -2446,7 +2443,7 @@ x_22 = l_Lean_Expr_hasLooseBVars(x_21); if (x_22 == 0) { uint8_t x_23; -x_23 = l___private_Init_Lean_Elab_App_7__hasTypeMVar(x_1, x_21); +x_23 = l___private_Init_Lean_Elab_App_6__hasTypeMVar(x_1, x_21); if (x_23 == 0) { lean_object* x_24; lean_object* x_25; @@ -2463,7 +2460,7 @@ return x_25; else { uint8_t x_26; -x_26 = l___private_Init_Lean_Elab_App_8__hasOnlyTypeMVar(x_1, x_21); +x_26 = l___private_Init_Lean_Elab_App_7__hasOnlyTypeMVar(x_1, x_21); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; @@ -2592,7 +2589,7 @@ return x_48; } } } -uint8_t l___private_Init_Lean_Elab_App_10__nextArgIsHole(lean_object* x_1) { +uint8_t l___private_Init_Lean_Elab_App_9__nextArgIsHole(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -2787,17 +2784,17 @@ return x_37; } } } -lean_object* l___private_Init_Lean_Elab_App_10__nextArgIsHole___boxed(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_App_9__nextArgIsHole___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Init_Lean_Elab_App_10__nextArgIsHole(x_1); +x_2 = l___private_Init_Lean_Elab_App_9__nextArgIsHole(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -2839,7 +2836,7 @@ return x_13; } } } -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -2875,17 +2872,17 @@ goto _start; } } } -lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +x_1 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; x_2 = l_Lean_mkAppStx___closed__7; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__2() { _start: { lean_object* x_1; @@ -2893,17 +2890,17 @@ x_1 = lean_mk_string("finalize"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__1; -x_2 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__2; +x_1 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__1; +x_2 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__2; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__4() { +lean_object* _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__4() { _start: { lean_object* x_1; @@ -2911,27 +2908,27 @@ x_1 = lean_mk_string("explicit parameter '"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__5() { +lean_object* _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__4; +x_1 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6() { +lean_object* _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__5; +x_1 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__7() { +lean_object* _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__7() { _start: { lean_object* x_1; @@ -2939,27 +2936,97 @@ x_1 = lean_mk_string("' is missing, unused named arguments "); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__8() { +lean_object* _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__7; +x_1 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__7; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9() { +lean_object* _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__8; +x_1 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__8; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__10() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid autoParam, argument must be a constant"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__10; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__11; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__13() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("begin"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__13; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_empty___closed__1; +x_2 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__14; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; @@ -3001,7 +3068,7 @@ x_92 = lean_ctor_get(x_16, 2); lean_inc(x_92); x_93 = lean_ctor_get_uint64(x_16, sizeof(void*)*3); x_94 = lean_unsigned_to_nat(0u); -x_95 = l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__1(x_90, x_11, x_94); +x_95 = l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__1(x_90, x_11, x_94); if (lean_obj_tag(x_95) == 0) { uint8_t x_96; @@ -3012,7 +3079,7 @@ case 0: lean_object* x_97; uint8_t x_98; lean_inc(x_4); lean_inc(x_1); -x_97 = l___private_Init_Lean_Elab_App_9__propagateExpectedType(x_1, x_16, x_4, x_17); +x_97 = l___private_Init_Lean_Elab_App_8__propagateExpectedType(x_1, x_16, x_4, x_17); x_98 = !lean_is_exclusive(x_1); if (x_98 == 0) { @@ -3058,224 +3125,228 @@ if (x_9 == 0) { lean_object* x_110; x_110 = l_Lean_Expr_getOptParamDefault_x3f(x_91); -lean_dec(x_91); if (lean_obj_tag(x_110) == 0) { -uint8_t x_111; +lean_object* x_111; +x_111 = l_Lean_Expr_getAutoParamTactic_x3f(x_91); +if (lean_obj_tag(x_111) == 0) +{ +uint8_t x_112; lean_dec(x_1); lean_dec(x_92); -x_111 = l_Array_isEmpty___rarg(x_11); -if (x_111 == 0) +lean_dec(x_91); +x_112 = l_Array_isEmpty___rarg(x_11); +if (x_112 == 0) { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_112 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_112, 0, x_90); -x_113 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; -x_114 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_112); -x_115 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; -x_116 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -x_117 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(x_94, x_11); -x_118 = l_Array_toList___rarg(x_117); -lean_dec(x_117); -x_119 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_118); -x_120 = l_Array_HasRepr___rarg___closed__1; -x_121 = lean_string_append(x_120, x_119); -lean_dec(x_119); -x_122 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_122, 0, x_121); -x_123 = lean_alloc_ctor(0, 1, 0); +x_113 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_113, 0, x_90); +x_114 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_115 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_113); +x_116 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_117 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +x_118 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_11); +x_119 = l_Array_toList___rarg(x_118); +lean_dec(x_118); +x_120 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_119); +x_121 = l_Array_HasRepr___rarg___closed__1; +x_122 = lean_string_append(x_121, x_120); +lean_dec(x_120); +x_123 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_123, 0, x_122); -x_124 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_124, 0, x_116); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Lean_Elab_Term_throwError___rarg(x_6, x_124, x_4, x_106); +x_124 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_124, 0, x_123); +x_125 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_125, 0, x_117); +lean_ctor_set(x_125, 1, x_124); +x_126 = l_Lean_Elab_Term_throwError___rarg(x_6, x_125, x_4, x_106); lean_dec(x_6); -return x_125; +return x_126; } else { -lean_object* x_126; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; +lean_object* x_127; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_dec(x_90); lean_dec(x_11); -x_153 = l_Lean_Elab_Term_getOptions(x_4, x_106); -x_154 = lean_ctor_get(x_153, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_153, 1); +x_154 = l_Lean_Elab_Term_getOptions(x_4, x_106); +x_155 = lean_ctor_get(x_154, 0); lean_inc(x_155); -lean_dec(x_153); -x_156 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; -x_157 = l_Lean_checkTraceOption(x_154, x_156); +x_156 = lean_ctor_get(x_154, 1); +lean_inc(x_156); lean_dec(x_154); -if (x_157 == 0) +x_157 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_158 = l_Lean_checkTraceOption(x_155, x_157); +lean_dec(x_155); +if (x_158 == 0) { -x_126 = x_155; -goto block_152; +x_127 = x_156; +goto block_153; } else { -lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_inc(x_2); -x_158 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_158, 0, x_2); -x_159 = l_Lean_Elab_Term_logTrace(x_156, x_6, x_158, x_4, x_155); -x_160 = lean_ctor_get(x_159, 1); -lean_inc(x_160); -lean_dec(x_159); -x_126 = x_160; -goto block_152; +x_159 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_159, 0, x_2); +x_160 = l_Lean_Elab_Term_logTrace(x_157, x_6, x_159, x_4, x_156); +x_161 = lean_ctor_get(x_160, 1); +lean_inc(x_161); +lean_dec(x_160); +x_127 = x_161; +goto block_153; } -block_152: +block_153: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_127; +lean_object* x_128; lean_dec(x_3); -x_127 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_126); +x_128 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_127); lean_dec(x_12); -if (lean_obj_tag(x_127) == 0) +if (lean_obj_tag(x_128) == 0) { -uint8_t x_128; -x_128 = !lean_is_exclusive(x_127); -if (x_128 == 0) +uint8_t x_129; +x_129 = !lean_is_exclusive(x_128); +if (x_129 == 0) { -lean_object* x_129; -x_129 = lean_ctor_get(x_127, 0); -lean_dec(x_129); -lean_ctor_set(x_127, 0, x_2); -return x_127; +lean_object* x_130; +x_130 = lean_ctor_get(x_128, 0); +lean_dec(x_130); +lean_ctor_set(x_128, 0, x_2); +return x_128; } else { -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(0, 2, 0); -lean_ctor_set(x_131, 0, x_2); -lean_ctor_set(x_131, 1, x_130); -return x_131; +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(0, 2, 0); +lean_ctor_set(x_132, 0, x_2); +lean_ctor_set(x_132, 1, x_131); +return x_132; } } else { -uint8_t x_132; +uint8_t x_133; lean_dec(x_2); -x_132 = !lean_is_exclusive(x_127); -if (x_132 == 0) +x_133 = !lean_is_exclusive(x_128); +if (x_133 == 0) { -return x_127; +return x_128; } else { -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_127, 0); -x_134 = lean_ctor_get(x_127, 1); +lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_134 = lean_ctor_get(x_128, 0); +x_135 = lean_ctor_get(x_128, 1); +lean_inc(x_135); lean_inc(x_134); -lean_inc(x_133); -lean_dec(x_127); -x_135 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set(x_135, 1, x_134); -return x_135; +lean_dec(x_128); +x_136 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_136, 0, x_134); +lean_ctor_set(x_136, 1, x_135); +return x_136; } } } else { -lean_object* x_136; lean_object* x_137; -x_136 = lean_ctor_get(x_8, 0); -lean_inc(x_136); +lean_object* x_137; lean_object* x_138; +x_137 = lean_ctor_get(x_8, 0); +lean_inc(x_137); lean_dec(x_8); lean_inc(x_4); -x_137 = l_Lean_Elab_Term_isDefEq(x_6, x_136, x_3, x_4, x_126); -if (lean_obj_tag(x_137) == 0) +x_138 = l_Lean_Elab_Term_isDefEq(x_6, x_137, x_3, x_4, x_127); +if (lean_obj_tag(x_138) == 0) { -lean_object* x_138; lean_object* x_139; -x_138 = lean_ctor_get(x_137, 1); -lean_inc(x_138); -lean_dec(x_137); -x_139 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_138); +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +lean_dec(x_138); +x_140 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_139); lean_dec(x_12); -if (lean_obj_tag(x_139) == 0) +if (lean_obj_tag(x_140) == 0) { -uint8_t x_140; -x_140 = !lean_is_exclusive(x_139); -if (x_140 == 0) +uint8_t x_141; +x_141 = !lean_is_exclusive(x_140); +if (x_141 == 0) { -lean_object* x_141; -x_141 = lean_ctor_get(x_139, 0); -lean_dec(x_141); -lean_ctor_set(x_139, 0, x_2); -return x_139; +lean_object* x_142; +x_142 = lean_ctor_get(x_140, 0); +lean_dec(x_142); +lean_ctor_set(x_140, 0, x_2); +return x_140; } else { -lean_object* x_142; lean_object* x_143; -x_142 = lean_ctor_get(x_139, 1); -lean_inc(x_142); -lean_dec(x_139); -x_143 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_143, 0, x_2); -lean_ctor_set(x_143, 1, x_142); -return x_143; +lean_object* x_143; lean_object* x_144; +x_143 = lean_ctor_get(x_140, 1); +lean_inc(x_143); +lean_dec(x_140); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_2); +lean_ctor_set(x_144, 1, x_143); +return x_144; } } else { -uint8_t x_144; +uint8_t x_145; lean_dec(x_2); -x_144 = !lean_is_exclusive(x_139); -if (x_144 == 0) +x_145 = !lean_is_exclusive(x_140); +if (x_145 == 0) { -return x_139; +return x_140; } else { -lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_139, 0); -x_146 = lean_ctor_get(x_139, 1); +lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_146 = lean_ctor_get(x_140, 0); +x_147 = lean_ctor_get(x_140, 1); +lean_inc(x_147); lean_inc(x_146); -lean_inc(x_145); -lean_dec(x_139); -x_147 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_147, 0, x_145); -lean_ctor_set(x_147, 1, x_146); -return x_147; +lean_dec(x_140); +x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_148, 0, x_146); +lean_ctor_set(x_148, 1, x_147); +return x_148; } } } else { -uint8_t x_148; +uint8_t x_149; lean_dec(x_12); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_148 = !lean_is_exclusive(x_137); -if (x_148 == 0) +x_149 = !lean_is_exclusive(x_138); +if (x_149 == 0) { -return x_137; +return x_138; } else { -lean_object* x_149; lean_object* x_150; lean_object* x_151; -x_149 = lean_ctor_get(x_137, 0); -x_150 = lean_ctor_get(x_137, 1); +lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_150 = lean_ctor_get(x_138, 0); +x_151 = lean_ctor_get(x_138, 1); +lean_inc(x_151); lean_inc(x_150); -lean_inc(x_149); -lean_dec(x_137); -x_151 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_151, 0, x_149); -lean_ctor_set(x_151, 1, x_150); -return x_151; +lean_dec(x_138); +x_152 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_152, 0, x_150); +lean_ctor_set(x_152, 1, x_151); +return x_152; } } } @@ -3284,245 +3355,460 @@ return x_151; } else { -lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_object* x_162; +lean_dec(x_90); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_3); +x_162 = lean_ctor_get(x_111, 0); +lean_inc(x_162); +lean_dec(x_111); +if (lean_obj_tag(x_162) == 4) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_163 = lean_ctor_get(x_162, 0); +lean_inc(x_163); +lean_dec(x_162); +x_164 = l_Lean_Elab_Term_getEnv___rarg(x_106); +x_165 = lean_ctor_get(x_164, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_164, 1); +lean_inc(x_166); +lean_dec(x_164); +x_167 = l_Lean_Elab_evalSyntaxConstant(x_165, x_163); +if (lean_obj_tag(x_167) == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +lean_dec(x_1); +lean_dec(x_92); +lean_dec(x_91); +lean_dec(x_2); +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +lean_dec(x_167); +x_169 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_169, 0, x_168); +x_170 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_170, 0, x_169); +x_171 = l_Lean_Elab_Term_throwError___rarg(x_6, x_170, x_4, x_166); +lean_dec(x_6); +return x_171; +} +else +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; +x_172 = lean_ctor_get(x_167, 0); +lean_inc(x_172); +lean_dec(x_167); +x_173 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_166); +x_174 = lean_ctor_get(x_173, 1); +lean_inc(x_174); +lean_dec(x_173); +x_175 = l_Lean_Elab_Term_getMainModule___rarg(x_174); +x_176 = lean_ctor_get(x_175, 1); +lean_inc(x_176); +lean_dec(x_175); +x_177 = l_Lean_Syntax_getArgs(x_172); +lean_dec(x_172); +x_178 = l_Array_empty___closed__1; +x_179 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_177, x_177, x_94, x_178); +lean_dec(x_177); +x_180 = l_Lean_nullKind___closed__2; +x_181 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_181, 0, x_180); +lean_ctor_set(x_181, 1, x_179); +x_182 = lean_array_push(x_178, x_181); +x_183 = l_Lean_Parser_Tactic_seq___elambda__1___closed__4; +x_184 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_182); +x_185 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_186 = lean_array_push(x_185, x_184); +x_187 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; +x_188 = lean_array_push(x_186, x_187); +x_189 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_190 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_188); +x_191 = l_Lean_Syntax_getHeadInfo___main(x_6); +x_192 = l_Lean_Expr_getAppNumArgsAux___main(x_91, x_94); +x_193 = lean_nat_sub(x_192, x_94); +lean_dec(x_192); +x_194 = lean_unsigned_to_nat(1u); +x_195 = lean_nat_sub(x_193, x_194); +lean_dec(x_193); +x_196 = l_Lean_Expr_getRevArg_x21___main(x_91, x_195); +lean_dec(x_91); +if (lean_obj_tag(x_191) == 0) +{ +lean_object* x_197; lean_object* x_198; +x_197 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_197, 0, x_190); +lean_inc(x_4); +lean_inc(x_2); +x_198 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_197, x_196, x_4, x_176); +if (lean_obj_tag(x_198) == 0) +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +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); +lean_inc(x_199); +x_201 = l_Lean_mkApp(x_2, x_199); +x_202 = lean_expr_instantiate1(x_92, x_199); +lean_dec(x_199); +lean_dec(x_92); +x_2 = x_201; +x_3 = x_202; +x_5 = x_200; +goto _start; +} +else +{ +uint8_t x_204; +lean_dec(x_1); +lean_dec(x_92); +lean_dec(x_4); +lean_dec(x_2); +x_204 = !lean_is_exclusive(x_198); +if (x_204 == 0) +{ +return x_198; +} +else +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; +x_205 = lean_ctor_get(x_198, 0); +x_206 = lean_ctor_get(x_198, 1); +lean_inc(x_206); +lean_inc(x_205); +lean_dec(x_198); +x_207 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_207, 0, x_205); +lean_ctor_set(x_207, 1, x_206); +return x_207; +} +} +} +else +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +x_208 = lean_ctor_get(x_191, 0); +lean_inc(x_208); +lean_dec(x_191); +x_209 = l_Lean_Syntax_replaceInfo___main(x_208, x_190); +x_210 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_210, 0, x_209); +lean_inc(x_4); +lean_inc(x_2); +x_211 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_210, x_196, x_4, x_176); +if (lean_obj_tag(x_211) == 0) +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +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); +lean_inc(x_212); +x_214 = l_Lean_mkApp(x_2, x_212); +x_215 = lean_expr_instantiate1(x_92, x_212); +lean_dec(x_212); +lean_dec(x_92); +x_2 = x_214; +x_3 = x_215; +x_5 = x_213; +goto _start; +} +else +{ +uint8_t x_217; +lean_dec(x_1); +lean_dec(x_92); +lean_dec(x_4); +lean_dec(x_2); +x_217 = !lean_is_exclusive(x_211); +if (x_217 == 0) +{ +return x_211; +} +else +{ +lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_218 = lean_ctor_get(x_211, 0); +x_219 = lean_ctor_get(x_211, 1); +lean_inc(x_219); +lean_inc(x_218); +lean_dec(x_211); +x_220 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_220, 0, x_218); +lean_ctor_set(x_220, 1, x_219); +return x_220; +} +} +} +} +} +else +{ +lean_object* x_221; lean_object* x_222; +lean_dec(x_162); +lean_dec(x_1); +lean_dec(x_92); +lean_dec(x_91); +lean_dec(x_2); +x_221 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_222 = l_Lean_Elab_Term_throwError___rarg(x_6, x_221, x_4, x_106); +lean_dec(x_6); +return x_222; +} +} +} +else +{ +lean_object* x_223; lean_object* x_224; lean_object* x_225; +lean_dec(x_91); lean_dec(x_90); lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); lean_dec(x_6); lean_dec(x_3); -x_161 = lean_ctor_get(x_110, 0); -lean_inc(x_161); +x_223 = lean_ctor_get(x_110, 0); +lean_inc(x_223); lean_dec(x_110); -lean_inc(x_161); -x_162 = l_Lean_mkApp(x_2, x_161); -x_163 = lean_expr_instantiate1(x_92, x_161); -lean_dec(x_161); +lean_inc(x_223); +x_224 = l_Lean_mkApp(x_2, x_223); +x_225 = lean_expr_instantiate1(x_92, x_223); +lean_dec(x_223); lean_dec(x_92); -x_2 = x_162; -x_3 = x_163; +x_2 = x_224; +x_3 = x_225; x_5 = x_106; goto _start; } } else { -uint8_t x_165; +uint8_t x_227; lean_dec(x_1); lean_dec(x_92); lean_dec(x_91); -x_165 = l_Array_isEmpty___rarg(x_11); -if (x_165 == 0) +x_227 = l_Array_isEmpty___rarg(x_11); +if (x_227 == 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; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +lean_object* x_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; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_166 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_166, 0, x_90); -x_167 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; -x_168 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_168, 0, x_167); -lean_ctor_set(x_168, 1, x_166); -x_169 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; -x_170 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_170, 0, x_168); -lean_ctor_set(x_170, 1, x_169); -x_171 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(x_94, x_11); -x_172 = l_Array_toList___rarg(x_171); -lean_dec(x_171); -x_173 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_172); -x_174 = l_Array_HasRepr___rarg___closed__1; -x_175 = lean_string_append(x_174, x_173); -lean_dec(x_173); -x_176 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_176, 0, x_175); -x_177 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_177, 0, x_176); -x_178 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_178, 0, x_170); -lean_ctor_set(x_178, 1, x_177); -x_179 = l_Lean_Elab_Term_throwError___rarg(x_6, x_178, x_4, x_106); +x_228 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_228, 0, x_90); +x_229 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_230 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_230, 0, x_229); +lean_ctor_set(x_230, 1, x_228); +x_231 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_232 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_232, 0, x_230); +lean_ctor_set(x_232, 1, x_231); +x_233 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_11); +x_234 = l_Array_toList___rarg(x_233); +lean_dec(x_233); +x_235 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_234); +x_236 = l_Array_HasRepr___rarg___closed__1; +x_237 = lean_string_append(x_236, x_235); +lean_dec(x_235); +x_238 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_238, 0, x_237); +x_239 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_239, 0, x_238); +x_240 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_240, 0, x_232); +lean_ctor_set(x_240, 1, x_239); +x_241 = l_Lean_Elab_Term_throwError___rarg(x_6, x_240, x_4, x_106); lean_dec(x_6); -return x_179; +return x_241; } else { -lean_object* x_180; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; +lean_object* x_242; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; uint8_t x_273; lean_dec(x_90); lean_dec(x_11); -x_207 = l_Lean_Elab_Term_getOptions(x_4, x_106); -x_208 = lean_ctor_get(x_207, 0); -lean_inc(x_208); -x_209 = lean_ctor_get(x_207, 1); -lean_inc(x_209); -lean_dec(x_207); -x_210 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; -x_211 = l_Lean_checkTraceOption(x_208, x_210); -lean_dec(x_208); -if (x_211 == 0) +x_269 = l_Lean_Elab_Term_getOptions(x_4, x_106); +x_270 = lean_ctor_get(x_269, 0); +lean_inc(x_270); +x_271 = lean_ctor_get(x_269, 1); +lean_inc(x_271); +lean_dec(x_269); +x_272 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_273 = l_Lean_checkTraceOption(x_270, x_272); +lean_dec(x_270); +if (x_273 == 0) { -x_180 = x_209; -goto block_206; +x_242 = x_271; +goto block_268; } else { -lean_object* x_212; lean_object* x_213; lean_object* x_214; +lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_inc(x_2); -x_212 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_212, 0, x_2); -x_213 = l_Lean_Elab_Term_logTrace(x_210, x_6, x_212, x_4, x_209); -x_214 = lean_ctor_get(x_213, 1); -lean_inc(x_214); -lean_dec(x_213); -x_180 = x_214; -goto block_206; +x_274 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_274, 0, x_2); +x_275 = l_Lean_Elab_Term_logTrace(x_272, x_6, x_274, x_4, x_271); +x_276 = lean_ctor_get(x_275, 1); +lean_inc(x_276); +lean_dec(x_275); +x_242 = x_276; +goto block_268; } -block_206: +block_268: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_181; +lean_object* x_243; lean_dec(x_3); -x_181 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_180); +x_243 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_242); lean_dec(x_12); -if (lean_obj_tag(x_181) == 0) +if (lean_obj_tag(x_243) == 0) { -uint8_t x_182; -x_182 = !lean_is_exclusive(x_181); -if (x_182 == 0) +uint8_t x_244; +x_244 = !lean_is_exclusive(x_243); +if (x_244 == 0) { -lean_object* x_183; -x_183 = lean_ctor_get(x_181, 0); -lean_dec(x_183); -lean_ctor_set(x_181, 0, x_2); -return x_181; +lean_object* x_245; +x_245 = lean_ctor_get(x_243, 0); +lean_dec(x_245); +lean_ctor_set(x_243, 0, x_2); +return x_243; } else { -lean_object* x_184; lean_object* x_185; -x_184 = lean_ctor_get(x_181, 1); -lean_inc(x_184); -lean_dec(x_181); -x_185 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_185, 0, x_2); -lean_ctor_set(x_185, 1, x_184); -return x_185; +lean_object* x_246; lean_object* x_247; +x_246 = lean_ctor_get(x_243, 1); +lean_inc(x_246); +lean_dec(x_243); +x_247 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_247, 0, x_2); +lean_ctor_set(x_247, 1, x_246); +return x_247; } } else { -uint8_t x_186; +uint8_t x_248; lean_dec(x_2); -x_186 = !lean_is_exclusive(x_181); -if (x_186 == 0) +x_248 = !lean_is_exclusive(x_243); +if (x_248 == 0) { -return x_181; +return x_243; } else { -lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_187 = lean_ctor_get(x_181, 0); -x_188 = lean_ctor_get(x_181, 1); -lean_inc(x_188); -lean_inc(x_187); -lean_dec(x_181); -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; +lean_object* x_249; lean_object* x_250; lean_object* x_251; +x_249 = lean_ctor_get(x_243, 0); +x_250 = lean_ctor_get(x_243, 1); +lean_inc(x_250); +lean_inc(x_249); +lean_dec(x_243); +x_251 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_251, 0, x_249); +lean_ctor_set(x_251, 1, x_250); +return x_251; } } } else { -lean_object* x_190; lean_object* x_191; -x_190 = lean_ctor_get(x_8, 0); -lean_inc(x_190); +lean_object* x_252; lean_object* x_253; +x_252 = lean_ctor_get(x_8, 0); +lean_inc(x_252); lean_dec(x_8); lean_inc(x_4); -x_191 = l_Lean_Elab_Term_isDefEq(x_6, x_190, x_3, x_4, x_180); -if (lean_obj_tag(x_191) == 0) +x_253 = l_Lean_Elab_Term_isDefEq(x_6, x_252, x_3, x_4, x_242); +if (lean_obj_tag(x_253) == 0) { -lean_object* x_192; lean_object* x_193; -x_192 = lean_ctor_get(x_191, 1); -lean_inc(x_192); -lean_dec(x_191); -x_193 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_192); +lean_object* x_254; lean_object* x_255; +x_254 = lean_ctor_get(x_253, 1); +lean_inc(x_254); +lean_dec(x_253); +x_255 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_254); lean_dec(x_12); -if (lean_obj_tag(x_193) == 0) +if (lean_obj_tag(x_255) == 0) { -uint8_t x_194; -x_194 = !lean_is_exclusive(x_193); -if (x_194 == 0) +uint8_t x_256; +x_256 = !lean_is_exclusive(x_255); +if (x_256 == 0) { -lean_object* x_195; -x_195 = lean_ctor_get(x_193, 0); -lean_dec(x_195); -lean_ctor_set(x_193, 0, x_2); -return x_193; +lean_object* x_257; +x_257 = lean_ctor_get(x_255, 0); +lean_dec(x_257); +lean_ctor_set(x_255, 0, x_2); +return x_255; } else { -lean_object* x_196; lean_object* x_197; -x_196 = lean_ctor_get(x_193, 1); -lean_inc(x_196); -lean_dec(x_193); -x_197 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_197, 0, x_2); -lean_ctor_set(x_197, 1, x_196); -return x_197; +lean_object* x_258; lean_object* x_259; +x_258 = lean_ctor_get(x_255, 1); +lean_inc(x_258); +lean_dec(x_255); +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_2); +lean_ctor_set(x_259, 1, x_258); +return x_259; } } else { -uint8_t x_198; +uint8_t x_260; lean_dec(x_2); -x_198 = !lean_is_exclusive(x_193); -if (x_198 == 0) +x_260 = !lean_is_exclusive(x_255); +if (x_260 == 0) { -return x_193; +return x_255; } else { -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_193, 0); -x_200 = lean_ctor_get(x_193, 1); -lean_inc(x_200); -lean_inc(x_199); -lean_dec(x_193); -x_201 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_201, 0, x_199); -lean_ctor_set(x_201, 1, x_200); -return x_201; +lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_261 = lean_ctor_get(x_255, 0); +x_262 = lean_ctor_get(x_255, 1); +lean_inc(x_262); +lean_inc(x_261); +lean_dec(x_255); +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; } } } else { -uint8_t x_202; +uint8_t x_264; lean_dec(x_12); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_202 = !lean_is_exclusive(x_191); -if (x_202 == 0) +x_264 = !lean_is_exclusive(x_253); +if (x_264 == 0) { -return x_191; +return x_253; } else { -lean_object* x_203; lean_object* x_204; lean_object* x_205; -x_203 = lean_ctor_get(x_191, 0); -x_204 = lean_ctor_get(x_191, 1); -lean_inc(x_204); -lean_inc(x_203); -lean_dec(x_191); -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; +lean_object* x_265; lean_object* x_266; lean_object* x_267; +x_265 = lean_ctor_get(x_253, 0); +x_266 = lean_ctor_get(x_253, 1); +lean_inc(x_266); +lean_inc(x_265); +lean_dec(x_253); +x_267 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_267, 0, x_265); +lean_ctor_set(x_267, 1, x_266); +return x_267; } } } @@ -3532,50 +3818,50 @@ return x_205; } else { -lean_object* x_215; lean_object* x_216; +lean_object* x_277; lean_object* x_278; lean_dec(x_1); lean_dec(x_90); lean_dec(x_3); -x_215 = lean_array_fget(x_7, x_10); +x_277 = lean_array_fget(x_7, x_10); lean_inc(x_4); lean_inc(x_2); lean_inc(x_6); -x_216 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_215, x_91, x_4, x_106); -if (lean_obj_tag(x_216) == 0) +x_278 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_277, x_91, x_4, x_106); +if (lean_obj_tag(x_278) == 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; lean_object* x_223; -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_unsigned_to_nat(1u); -x_220 = lean_nat_add(x_10, x_219); +lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; +x_279 = lean_ctor_get(x_278, 0); +lean_inc(x_279); +x_280 = lean_ctor_get(x_278, 1); +lean_inc(x_280); +lean_dec(x_278); +x_281 = lean_unsigned_to_nat(1u); +x_282 = lean_nat_add(x_10, x_281); lean_dec(x_10); -x_221 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_221, 0, x_6); -lean_ctor_set(x_221, 1, x_7); -lean_ctor_set(x_221, 2, x_8); -lean_ctor_set(x_221, 3, x_220); -lean_ctor_set(x_221, 4, x_11); -lean_ctor_set(x_221, 5, x_12); -lean_ctor_set(x_221, 6, x_13); -lean_ctor_set_uint8(x_221, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_221, sizeof(void*)*7 + 1, x_107); -lean_inc(x_217); -x_222 = l_Lean_mkApp(x_2, x_217); -x_223 = lean_expr_instantiate1(x_92, x_217); -lean_dec(x_217); +x_283 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_283, 0, x_6); +lean_ctor_set(x_283, 1, x_7); +lean_ctor_set(x_283, 2, x_8); +lean_ctor_set(x_283, 3, x_282); +lean_ctor_set(x_283, 4, x_11); +lean_ctor_set(x_283, 5, x_12); +lean_ctor_set(x_283, 6, x_13); +lean_ctor_set_uint8(x_283, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_283, sizeof(void*)*7 + 1, x_107); +lean_inc(x_279); +x_284 = l_Lean_mkApp(x_2, x_279); +x_285 = lean_expr_instantiate1(x_92, x_279); +lean_dec(x_279); lean_dec(x_92); -x_1 = x_221; -x_2 = x_222; -x_3 = x_223; -x_5 = x_218; +x_1 = x_283; +x_2 = x_284; +x_3 = x_285; +x_5 = x_280; goto _start; } else { -uint8_t x_225; +uint8_t x_287; lean_dec(x_92); lean_dec(x_13); lean_dec(x_12); @@ -3586,30 +3872,30 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_225 = !lean_is_exclusive(x_216); -if (x_225 == 0) +x_287 = !lean_is_exclusive(x_278); +if (x_287 == 0) { -return x_216; +return x_278; } else { -lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_226 = lean_ctor_get(x_216, 0); -x_227 = lean_ctor_get(x_216, 1); -lean_inc(x_227); -lean_inc(x_226); -lean_dec(x_216); -x_228 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_228, 0, x_226); -lean_ctor_set(x_228, 1, x_227); -return x_228; +lean_object* x_288; lean_object* x_289; lean_object* x_290; +x_288 = lean_ctor_get(x_278, 0); +x_289 = lean_ctor_get(x_278, 1); +lean_inc(x_289); +lean_inc(x_288); +lean_dec(x_278); +x_290 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_290, 0, x_288); +lean_ctor_set(x_290, 1, x_289); +return x_290; } } } } else { -uint8_t x_229; +uint8_t x_291; lean_free_object(x_1); lean_dec(x_92); lean_dec(x_91); @@ -3624,23 +3910,23 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_229 = !lean_is_exclusive(x_97); -if (x_229 == 0) +x_291 = !lean_is_exclusive(x_97); +if (x_291 == 0) { return x_97; } else { -lean_object* x_230; lean_object* x_231; lean_object* x_232; -x_230 = lean_ctor_get(x_97, 0); -x_231 = lean_ctor_get(x_97, 1); -lean_inc(x_231); -lean_inc(x_230); +lean_object* x_292; lean_object* x_293; lean_object* x_294; +x_292 = lean_ctor_get(x_97, 0); +x_293 = lean_ctor_get(x_97, 1); +lean_inc(x_293); +lean_inc(x_292); lean_dec(x_97); -x_232 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_232, 0, x_230); -lean_ctor_set(x_232, 1, x_231); -return x_232; +x_294 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_294, 0, x_292); +lean_ctor_set(x_294, 1, x_293); +return x_294; } } } @@ -3649,11 +3935,11 @@ else lean_dec(x_1); if (lean_obj_tag(x_97) == 0) { -lean_object* x_233; uint8_t x_234; lean_object* x_235; lean_object* x_236; uint8_t x_237; -x_233 = lean_ctor_get(x_97, 1); -lean_inc(x_233); +lean_object* x_295; uint8_t x_296; lean_object* x_297; lean_object* x_298; uint8_t x_299; +x_295 = lean_ctor_get(x_97, 1); +lean_inc(x_295); lean_dec(x_97); -x_234 = 1; +x_296 = 1; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -3661,422 +3947,112 @@ lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_235 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_235, 0, x_6); -lean_ctor_set(x_235, 1, x_7); -lean_ctor_set(x_235, 2, x_8); -lean_ctor_set(x_235, 3, x_10); -lean_ctor_set(x_235, 4, x_11); -lean_ctor_set(x_235, 5, x_12); -lean_ctor_set(x_235, 6, x_13); -lean_ctor_set_uint8(x_235, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_235, sizeof(void*)*7 + 1, x_234); -x_236 = lean_array_get_size(x_7); -x_237 = lean_nat_dec_lt(x_10, x_236); -lean_dec(x_236); -if (x_237 == 0) +x_297 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_297, 0, x_6); +lean_ctor_set(x_297, 1, x_7); +lean_ctor_set(x_297, 2, x_8); +lean_ctor_set(x_297, 3, x_10); +lean_ctor_set(x_297, 4, x_11); +lean_ctor_set(x_297, 5, x_12); +lean_ctor_set(x_297, 6, x_13); +lean_ctor_set_uint8(x_297, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_297, sizeof(void*)*7 + 1, x_296); +x_298 = lean_array_get_size(x_7); +x_299 = lean_nat_dec_lt(x_10, x_298); +lean_dec(x_298); +if (x_299 == 0) { lean_dec(x_13); lean_dec(x_10); lean_dec(x_7); if (x_9 == 0) { -lean_object* x_238; -x_238 = l_Lean_Expr_getOptParamDefault_x3f(x_91); -lean_dec(x_91); -if (lean_obj_tag(x_238) == 0) +lean_object* x_300; +x_300 = l_Lean_Expr_getOptParamDefault_x3f(x_91); +if (lean_obj_tag(x_300) == 0) { -uint8_t x_239; -lean_dec(x_235); -lean_dec(x_92); -x_239 = l_Array_isEmpty___rarg(x_11); -if (x_239 == 0) +lean_object* x_301; +x_301 = l_Lean_Expr_getAutoParamTactic_x3f(x_91); +if (lean_obj_tag(x_301) == 0) { -lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_240 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_240, 0, x_90); -x_241 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; -x_242 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_242, 0, x_241); -lean_ctor_set(x_242, 1, x_240); -x_243 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; -x_244 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_244, 0, x_242); -lean_ctor_set(x_244, 1, x_243); -x_245 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(x_94, x_11); -x_246 = l_Array_toList___rarg(x_245); -lean_dec(x_245); -x_247 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_246); -x_248 = l_Array_HasRepr___rarg___closed__1; -x_249 = lean_string_append(x_248, x_247); -lean_dec(x_247); -x_250 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_250, 0, x_249); -x_251 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_251, 0, x_250); -x_252 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_252, 0, x_244); -lean_ctor_set(x_252, 1, x_251); -x_253 = l_Lean_Elab_Term_throwError___rarg(x_6, x_252, x_4, x_233); -lean_dec(x_6); -return x_253; -} -else -{ -lean_object* x_254; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; -lean_dec(x_90); -lean_dec(x_11); -x_279 = l_Lean_Elab_Term_getOptions(x_4, x_233); -x_280 = lean_ctor_get(x_279, 0); -lean_inc(x_280); -x_281 = lean_ctor_get(x_279, 1); -lean_inc(x_281); -lean_dec(x_279); -x_282 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; -x_283 = l_Lean_checkTraceOption(x_280, x_282); -lean_dec(x_280); -if (x_283 == 0) -{ -x_254 = x_281; -goto block_278; -} -else -{ -lean_object* x_284; lean_object* x_285; lean_object* x_286; -lean_inc(x_2); -x_284 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_284, 0, x_2); -x_285 = l_Lean_Elab_Term_logTrace(x_282, x_6, x_284, x_4, x_281); -x_286 = lean_ctor_get(x_285, 1); -lean_inc(x_286); -lean_dec(x_285); -x_254 = x_286; -goto block_278; -} -block_278: -{ -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_255; -lean_dec(x_3); -x_255 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_254); -lean_dec(x_12); -if (lean_obj_tag(x_255) == 0) -{ -lean_object* x_256; lean_object* x_257; lean_object* x_258; -x_256 = lean_ctor_get(x_255, 1); -lean_inc(x_256); -if (lean_is_exclusive(x_255)) { - lean_ctor_release(x_255, 0); - lean_ctor_release(x_255, 1); - x_257 = x_255; -} else { - lean_dec_ref(x_255); - x_257 = lean_box(0); -} -if (lean_is_scalar(x_257)) { - x_258 = lean_alloc_ctor(0, 2, 0); -} else { - x_258 = x_257; -} -lean_ctor_set(x_258, 0, x_2); -lean_ctor_set(x_258, 1, x_256); -return x_258; -} -else -{ -lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; -lean_dec(x_2); -x_259 = lean_ctor_get(x_255, 0); -lean_inc(x_259); -x_260 = lean_ctor_get(x_255, 1); -lean_inc(x_260); -if (lean_is_exclusive(x_255)) { - lean_ctor_release(x_255, 0); - lean_ctor_release(x_255, 1); - x_261 = x_255; -} else { - lean_dec_ref(x_255); - x_261 = lean_box(0); -} -if (lean_is_scalar(x_261)) { - x_262 = lean_alloc_ctor(1, 2, 0); -} else { - x_262 = x_261; -} -lean_ctor_set(x_262, 0, x_259); -lean_ctor_set(x_262, 1, x_260); -return x_262; -} -} -else -{ -lean_object* x_263; lean_object* x_264; -x_263 = lean_ctor_get(x_8, 0); -lean_inc(x_263); -lean_dec(x_8); -lean_inc(x_4); -x_264 = l_Lean_Elab_Term_isDefEq(x_6, x_263, x_3, x_4, x_254); -if (lean_obj_tag(x_264) == 0) -{ -lean_object* x_265; lean_object* x_266; -x_265 = lean_ctor_get(x_264, 1); -lean_inc(x_265); -lean_dec(x_264); -x_266 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_265); -lean_dec(x_12); -if (lean_obj_tag(x_266) == 0) -{ -lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_267 = lean_ctor_get(x_266, 1); -lean_inc(x_267); -if (lean_is_exclusive(x_266)) { - lean_ctor_release(x_266, 0); - lean_ctor_release(x_266, 1); - x_268 = x_266; -} else { - lean_dec_ref(x_266); - x_268 = lean_box(0); -} -if (lean_is_scalar(x_268)) { - x_269 = lean_alloc_ctor(0, 2, 0); -} else { - x_269 = x_268; -} -lean_ctor_set(x_269, 0, x_2); -lean_ctor_set(x_269, 1, x_267); -return x_269; -} -else -{ -lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; -lean_dec(x_2); -x_270 = lean_ctor_get(x_266, 0); -lean_inc(x_270); -x_271 = lean_ctor_get(x_266, 1); -lean_inc(x_271); -if (lean_is_exclusive(x_266)) { - lean_ctor_release(x_266, 0); - lean_ctor_release(x_266, 1); - x_272 = x_266; -} else { - lean_dec_ref(x_266); - x_272 = lean_box(0); -} -if (lean_is_scalar(x_272)) { - x_273 = lean_alloc_ctor(1, 2, 0); -} else { - x_273 = x_272; -} -lean_ctor_set(x_273, 0, x_270); -lean_ctor_set(x_273, 1, x_271); -return x_273; -} -} -else -{ -lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; -lean_dec(x_12); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_274 = lean_ctor_get(x_264, 0); -lean_inc(x_274); -x_275 = lean_ctor_get(x_264, 1); -lean_inc(x_275); -if (lean_is_exclusive(x_264)) { - lean_ctor_release(x_264, 0); - lean_ctor_release(x_264, 1); - x_276 = x_264; -} else { - lean_dec_ref(x_264); - x_276 = lean_box(0); -} -if (lean_is_scalar(x_276)) { - x_277 = lean_alloc_ctor(1, 2, 0); -} else { - x_277 = x_276; -} -lean_ctor_set(x_277, 0, x_274); -lean_ctor_set(x_277, 1, x_275); -return x_277; -} -} -} -} -} -else -{ -lean_object* x_287; lean_object* x_288; lean_object* x_289; -lean_dec(x_90); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_3); -x_287 = lean_ctor_get(x_238, 0); -lean_inc(x_287); -lean_dec(x_238); -lean_inc(x_287); -x_288 = l_Lean_mkApp(x_2, x_287); -x_289 = lean_expr_instantiate1(x_92, x_287); -lean_dec(x_287); -lean_dec(x_92); -x_1 = x_235; -x_2 = x_288; -x_3 = x_289; -x_5 = x_233; -goto _start; -} -} -else -{ -uint8_t x_291; -lean_dec(x_235); -lean_dec(x_92); -lean_dec(x_91); -x_291 = l_Array_isEmpty___rarg(x_11); -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_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_12); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_292 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_292, 0, x_90); -x_293 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; -x_294 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_294, 0, x_293); -lean_ctor_set(x_294, 1, x_292); -x_295 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; -x_296 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_296, 0, x_294); -lean_ctor_set(x_296, 1, x_295); -x_297 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(x_94, x_11); -x_298 = l_Array_toList___rarg(x_297); +uint8_t x_302; lean_dec(x_297); -x_299 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_298); -x_300 = l_Array_HasRepr___rarg___closed__1; -x_301 = lean_string_append(x_300, x_299); -lean_dec(x_299); -x_302 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_302, 0, x_301); -x_303 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_303, 0, x_302); -x_304 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_304, 0, x_296); -lean_ctor_set(x_304, 1, x_303); -x_305 = l_Lean_Elab_Term_throwError___rarg(x_6, x_304, x_4, x_233); +lean_dec(x_92); +lean_dec(x_91); +x_302 = l_Array_isEmpty___rarg(x_11); +if (x_302 == 0) +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_303 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_303, 0, x_90); +x_304 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_305 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_305, 0, x_304); +lean_ctor_set(x_305, 1, x_303); +x_306 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_307 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_307, 0, x_305); +lean_ctor_set(x_307, 1, x_306); +x_308 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_11); +x_309 = l_Array_toList___rarg(x_308); +lean_dec(x_308); +x_310 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_309); +x_311 = l_Array_HasRepr___rarg___closed__1; +x_312 = lean_string_append(x_311, x_310); +lean_dec(x_310); +x_313 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_313, 0, x_312); +x_314 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_314, 0, x_313); +x_315 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_315, 0, x_307); +lean_ctor_set(x_315, 1, x_314); +x_316 = l_Lean_Elab_Term_throwError___rarg(x_6, x_315, x_4, x_295); lean_dec(x_6); -return x_305; +return x_316; } else { -lean_object* x_306; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; uint8_t x_335; +lean_object* x_317; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; uint8_t x_346; lean_dec(x_90); lean_dec(x_11); -x_331 = l_Lean_Elab_Term_getOptions(x_4, x_233); -x_332 = lean_ctor_get(x_331, 0); -lean_inc(x_332); -x_333 = lean_ctor_get(x_331, 1); -lean_inc(x_333); -lean_dec(x_331); -x_334 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; -x_335 = l_Lean_checkTraceOption(x_332, x_334); -lean_dec(x_332); -if (x_335 == 0) +x_342 = l_Lean_Elab_Term_getOptions(x_4, x_295); +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_345 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_346 = l_Lean_checkTraceOption(x_343, x_345); +lean_dec(x_343); +if (x_346 == 0) { -x_306 = x_333; -goto block_330; +x_317 = x_344; +goto block_341; } else { -lean_object* x_336; lean_object* x_337; lean_object* x_338; +lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_inc(x_2); -x_336 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_336, 0, x_2); -x_337 = l_Lean_Elab_Term_logTrace(x_334, x_6, x_336, x_4, x_333); -x_338 = lean_ctor_get(x_337, 1); -lean_inc(x_338); -lean_dec(x_337); -x_306 = x_338; -goto block_330; +x_347 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_347, 0, x_2); +x_348 = l_Lean_Elab_Term_logTrace(x_345, x_6, x_347, x_4, x_344); +x_349 = lean_ctor_get(x_348, 1); +lean_inc(x_349); +lean_dec(x_348); +x_317 = x_349; +goto block_341; } -block_330: +block_341: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_307; +lean_object* x_318; lean_dec(x_3); -x_307 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_306); -lean_dec(x_12); -if (lean_obj_tag(x_307) == 0) -{ -lean_object* x_308; lean_object* x_309; lean_object* x_310; -x_308 = lean_ctor_get(x_307, 1); -lean_inc(x_308); -if (lean_is_exclusive(x_307)) { - lean_ctor_release(x_307, 0); - lean_ctor_release(x_307, 1); - x_309 = x_307; -} else { - lean_dec_ref(x_307); - x_309 = lean_box(0); -} -if (lean_is_scalar(x_309)) { - x_310 = lean_alloc_ctor(0, 2, 0); -} else { - x_310 = x_309; -} -lean_ctor_set(x_310, 0, x_2); -lean_ctor_set(x_310, 1, x_308); -return x_310; -} -else -{ -lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; -lean_dec(x_2); -x_311 = lean_ctor_get(x_307, 0); -lean_inc(x_311); -x_312 = lean_ctor_get(x_307, 1); -lean_inc(x_312); -if (lean_is_exclusive(x_307)) { - lean_ctor_release(x_307, 0); - lean_ctor_release(x_307, 1); - x_313 = x_307; -} else { - lean_dec_ref(x_307); - x_313 = lean_box(0); -} -if (lean_is_scalar(x_313)) { - x_314 = lean_alloc_ctor(1, 2, 0); -} else { - x_314 = x_313; -} -lean_ctor_set(x_314, 0, x_311); -lean_ctor_set(x_314, 1, x_312); -return x_314; -} -} -else -{ -lean_object* x_315; lean_object* x_316; -x_315 = lean_ctor_get(x_8, 0); -lean_inc(x_315); -lean_dec(x_8); -lean_inc(x_4); -x_316 = l_Lean_Elab_Term_isDefEq(x_6, x_315, x_3, x_4, x_306); -if (lean_obj_tag(x_316) == 0) -{ -lean_object* x_317; lean_object* x_318; -x_317 = lean_ctor_get(x_316, 1); -lean_inc(x_317); -lean_dec(x_316); x_318 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_317); lean_dec(x_12); if (lean_obj_tag(x_318) == 0) @@ -4129,32 +4105,95 @@ return x_325; } else { -lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; +lean_object* x_326; lean_object* x_327; +x_326 = lean_ctor_get(x_8, 0); +lean_inc(x_326); +lean_dec(x_8); +lean_inc(x_4); +x_327 = l_Lean_Elab_Term_isDefEq(x_6, x_326, x_3, x_4, x_317); +if (lean_obj_tag(x_327) == 0) +{ +lean_object* x_328; lean_object* x_329; +x_328 = lean_ctor_get(x_327, 1); +lean_inc(x_328); +lean_dec(x_327); +x_329 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_328); +lean_dec(x_12); +if (lean_obj_tag(x_329) == 0) +{ +lean_object* x_330; lean_object* x_331; lean_object* x_332; +x_330 = lean_ctor_get(x_329, 1); +lean_inc(x_330); +if (lean_is_exclusive(x_329)) { + lean_ctor_release(x_329, 0); + lean_ctor_release(x_329, 1); + x_331 = x_329; +} else { + lean_dec_ref(x_329); + x_331 = lean_box(0); +} +if (lean_is_scalar(x_331)) { + x_332 = lean_alloc_ctor(0, 2, 0); +} else { + x_332 = x_331; +} +lean_ctor_set(x_332, 0, x_2); +lean_ctor_set(x_332, 1, x_330); +return x_332; +} +else +{ +lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; +lean_dec(x_2); +x_333 = lean_ctor_get(x_329, 0); +lean_inc(x_333); +x_334 = lean_ctor_get(x_329, 1); +lean_inc(x_334); +if (lean_is_exclusive(x_329)) { + lean_ctor_release(x_329, 0); + lean_ctor_release(x_329, 1); + x_335 = x_329; +} else { + lean_dec_ref(x_329); + x_335 = lean_box(0); +} +if (lean_is_scalar(x_335)) { + x_336 = lean_alloc_ctor(1, 2, 0); +} else { + x_336 = x_335; +} +lean_ctor_set(x_336, 0, x_333); +lean_ctor_set(x_336, 1, x_334); +return x_336; +} +} +else +{ +lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_dec(x_12); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_326 = lean_ctor_get(x_316, 0); -lean_inc(x_326); -x_327 = lean_ctor_get(x_316, 1); -lean_inc(x_327); -if (lean_is_exclusive(x_316)) { - lean_ctor_release(x_316, 0); - lean_ctor_release(x_316, 1); - x_328 = x_316; +x_337 = lean_ctor_get(x_327, 0); +lean_inc(x_337); +x_338 = lean_ctor_get(x_327, 1); +lean_inc(x_338); +if (lean_is_exclusive(x_327)) { + lean_ctor_release(x_327, 0); + lean_ctor_release(x_327, 1); + x_339 = x_327; } else { - lean_dec_ref(x_316); - x_328 = lean_box(0); + lean_dec_ref(x_327); + x_339 = lean_box(0); } -if (lean_is_scalar(x_328)) { - x_329 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_339)) { + x_340 = lean_alloc_ctor(1, 2, 0); } else { - x_329 = x_328; -} -lean_ctor_set(x_329, 0, x_326); -lean_ctor_set(x_329, 1, x_327); -return x_329; + x_340 = x_339; } +lean_ctor_set(x_340, 0, x_337); +lean_ctor_set(x_340, 1, x_338); +return x_340; } } } @@ -4162,50 +4201,522 @@ return x_329; } else { -lean_object* x_339; lean_object* x_340; -lean_dec(x_235); +lean_object* x_350; lean_dec(x_90); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); lean_dec(x_3); -x_339 = lean_array_fget(x_7, x_10); +x_350 = lean_ctor_get(x_301, 0); +lean_inc(x_350); +lean_dec(x_301); +if (lean_obj_tag(x_350) == 4) +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; +x_351 = lean_ctor_get(x_350, 0); +lean_inc(x_351); +lean_dec(x_350); +x_352 = l_Lean_Elab_Term_getEnv___rarg(x_295); +x_353 = lean_ctor_get(x_352, 0); +lean_inc(x_353); +x_354 = lean_ctor_get(x_352, 1); +lean_inc(x_354); +lean_dec(x_352); +x_355 = l_Lean_Elab_evalSyntaxConstant(x_353, x_351); +if (lean_obj_tag(x_355) == 0) +{ +lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; +lean_dec(x_297); +lean_dec(x_92); +lean_dec(x_91); +lean_dec(x_2); +x_356 = lean_ctor_get(x_355, 0); +lean_inc(x_356); +lean_dec(x_355); +x_357 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_357, 0, x_356); +x_358 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_358, 0, x_357); +x_359 = l_Lean_Elab_Term_throwError___rarg(x_6, x_358, x_4, x_354); +lean_dec(x_6); +return x_359; +} +else +{ +lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; +x_360 = lean_ctor_get(x_355, 0); +lean_inc(x_360); +lean_dec(x_355); +x_361 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_354); +x_362 = lean_ctor_get(x_361, 1); +lean_inc(x_362); +lean_dec(x_361); +x_363 = l_Lean_Elab_Term_getMainModule___rarg(x_362); +x_364 = lean_ctor_get(x_363, 1); +lean_inc(x_364); +lean_dec(x_363); +x_365 = l_Lean_Syntax_getArgs(x_360); +lean_dec(x_360); +x_366 = l_Array_empty___closed__1; +x_367 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_365, x_365, x_94, x_366); +lean_dec(x_365); +x_368 = l_Lean_nullKind___closed__2; +x_369 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_369, 0, x_368); +lean_ctor_set(x_369, 1, x_367); +x_370 = lean_array_push(x_366, x_369); +x_371 = l_Lean_Parser_Tactic_seq___elambda__1___closed__4; +x_372 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_372, 0, x_371); +lean_ctor_set(x_372, 1, x_370); +x_373 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_374 = lean_array_push(x_373, x_372); +x_375 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; +x_376 = lean_array_push(x_374, x_375); +x_377 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_378 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_378, 0, x_377); +lean_ctor_set(x_378, 1, x_376); +x_379 = l_Lean_Syntax_getHeadInfo___main(x_6); +x_380 = l_Lean_Expr_getAppNumArgsAux___main(x_91, x_94); +x_381 = lean_nat_sub(x_380, x_94); +lean_dec(x_380); +x_382 = lean_unsigned_to_nat(1u); +x_383 = lean_nat_sub(x_381, x_382); +lean_dec(x_381); +x_384 = l_Lean_Expr_getRevArg_x21___main(x_91, x_383); +lean_dec(x_91); +if (lean_obj_tag(x_379) == 0) +{ +lean_object* x_385; lean_object* x_386; +x_385 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_385, 0, x_378); lean_inc(x_4); lean_inc(x_2); -lean_inc(x_6); -x_340 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_339, x_91, x_4, x_233); -if (lean_obj_tag(x_340) == 0) +x_386 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_385, x_384, x_4, x_364); +if (lean_obj_tag(x_386) == 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; lean_object* x_347; -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_unsigned_to_nat(1u); -x_344 = lean_nat_add(x_10, x_343); -lean_dec(x_10); -x_345 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_345, 0, x_6); -lean_ctor_set(x_345, 1, x_7); -lean_ctor_set(x_345, 2, x_8); -lean_ctor_set(x_345, 3, x_344); -lean_ctor_set(x_345, 4, x_11); -lean_ctor_set(x_345, 5, x_12); -lean_ctor_set(x_345, 6, x_13); -lean_ctor_set_uint8(x_345, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_345, sizeof(void*)*7 + 1, x_234); -lean_inc(x_341); -x_346 = l_Lean_mkApp(x_2, x_341); -x_347 = lean_expr_instantiate1(x_92, x_341); -lean_dec(x_341); +lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; +x_387 = lean_ctor_get(x_386, 0); +lean_inc(x_387); +x_388 = lean_ctor_get(x_386, 1); +lean_inc(x_388); +lean_dec(x_386); +lean_inc(x_387); +x_389 = l_Lean_mkApp(x_2, x_387); +x_390 = lean_expr_instantiate1(x_92, x_387); +lean_dec(x_387); lean_dec(x_92); -x_1 = x_345; -x_2 = x_346; -x_3 = x_347; -x_5 = x_342; +x_1 = x_297; +x_2 = x_389; +x_3 = x_390; +x_5 = x_388; goto _start; } else { -lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; +lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; +lean_dec(x_297); +lean_dec(x_92); +lean_dec(x_4); +lean_dec(x_2); +x_392 = lean_ctor_get(x_386, 0); +lean_inc(x_392); +x_393 = lean_ctor_get(x_386, 1); +lean_inc(x_393); +if (lean_is_exclusive(x_386)) { + lean_ctor_release(x_386, 0); + lean_ctor_release(x_386, 1); + x_394 = x_386; +} else { + lean_dec_ref(x_386); + x_394 = lean_box(0); +} +if (lean_is_scalar(x_394)) { + x_395 = lean_alloc_ctor(1, 2, 0); +} else { + x_395 = x_394; +} +lean_ctor_set(x_395, 0, x_392); +lean_ctor_set(x_395, 1, x_393); +return x_395; +} +} +else +{ +lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; +x_396 = lean_ctor_get(x_379, 0); +lean_inc(x_396); +lean_dec(x_379); +x_397 = l_Lean_Syntax_replaceInfo___main(x_396, x_378); +x_398 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_398, 0, x_397); +lean_inc(x_4); +lean_inc(x_2); +x_399 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_398, x_384, x_4, x_364); +if (lean_obj_tag(x_399) == 0) +{ +lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; +x_400 = lean_ctor_get(x_399, 0); +lean_inc(x_400); +x_401 = lean_ctor_get(x_399, 1); +lean_inc(x_401); +lean_dec(x_399); +lean_inc(x_400); +x_402 = l_Lean_mkApp(x_2, x_400); +x_403 = lean_expr_instantiate1(x_92, x_400); +lean_dec(x_400); +lean_dec(x_92); +x_1 = x_297; +x_2 = x_402; +x_3 = x_403; +x_5 = x_401; +goto _start; +} +else +{ +lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; +lean_dec(x_297); +lean_dec(x_92); +lean_dec(x_4); +lean_dec(x_2); +x_405 = lean_ctor_get(x_399, 0); +lean_inc(x_405); +x_406 = lean_ctor_get(x_399, 1); +lean_inc(x_406); +if (lean_is_exclusive(x_399)) { + lean_ctor_release(x_399, 0); + lean_ctor_release(x_399, 1); + x_407 = x_399; +} else { + lean_dec_ref(x_399); + x_407 = lean_box(0); +} +if (lean_is_scalar(x_407)) { + x_408 = lean_alloc_ctor(1, 2, 0); +} else { + x_408 = x_407; +} +lean_ctor_set(x_408, 0, x_405); +lean_ctor_set(x_408, 1, x_406); +return x_408; +} +} +} +} +else +{ +lean_object* x_409; lean_object* x_410; +lean_dec(x_350); +lean_dec(x_297); +lean_dec(x_92); +lean_dec(x_91); +lean_dec(x_2); +x_409 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_410 = l_Lean_Elab_Term_throwError___rarg(x_6, x_409, x_4, x_295); +lean_dec(x_6); +return x_410; +} +} +} +else +{ +lean_object* x_411; lean_object* x_412; lean_object* x_413; +lean_dec(x_91); +lean_dec(x_90); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_3); +x_411 = lean_ctor_get(x_300, 0); +lean_inc(x_411); +lean_dec(x_300); +lean_inc(x_411); +x_412 = l_Lean_mkApp(x_2, x_411); +x_413 = lean_expr_instantiate1(x_92, x_411); +lean_dec(x_411); +lean_dec(x_92); +x_1 = x_297; +x_2 = x_412; +x_3 = x_413; +x_5 = x_295; +goto _start; +} +} +else +{ +uint8_t x_415; +lean_dec(x_297); +lean_dec(x_92); +lean_dec(x_91); +x_415 = l_Array_isEmpty___rarg(x_11); +if (x_415 == 0) +{ +lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_416 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_416, 0, x_90); +x_417 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_418 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_418, 0, x_417); +lean_ctor_set(x_418, 1, x_416); +x_419 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_420 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_420, 0, x_418); +lean_ctor_set(x_420, 1, x_419); +x_421 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_11); +x_422 = l_Array_toList___rarg(x_421); +lean_dec(x_421); +x_423 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_422); +x_424 = l_Array_HasRepr___rarg___closed__1; +x_425 = lean_string_append(x_424, x_423); +lean_dec(x_423); +x_426 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_426, 0, x_425); +x_427 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_427, 0, x_426); +x_428 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_428, 0, x_420); +lean_ctor_set(x_428, 1, x_427); +x_429 = l_Lean_Elab_Term_throwError___rarg(x_6, x_428, x_4, x_295); +lean_dec(x_6); +return x_429; +} +else +{ +lean_object* x_430; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; uint8_t x_459; +lean_dec(x_90); +lean_dec(x_11); +x_455 = l_Lean_Elab_Term_getOptions(x_4, x_295); +x_456 = lean_ctor_get(x_455, 0); +lean_inc(x_456); +x_457 = lean_ctor_get(x_455, 1); +lean_inc(x_457); +lean_dec(x_455); +x_458 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_459 = l_Lean_checkTraceOption(x_456, x_458); +lean_dec(x_456); +if (x_459 == 0) +{ +x_430 = x_457; +goto block_454; +} +else +{ +lean_object* x_460; lean_object* x_461; lean_object* x_462; +lean_inc(x_2); +x_460 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_460, 0, x_2); +x_461 = l_Lean_Elab_Term_logTrace(x_458, x_6, x_460, x_4, x_457); +x_462 = lean_ctor_get(x_461, 1); +lean_inc(x_462); +lean_dec(x_461); +x_430 = x_462; +goto block_454; +} +block_454: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_431; +lean_dec(x_3); +x_431 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_430); +lean_dec(x_12); +if (lean_obj_tag(x_431) == 0) +{ +lean_object* x_432; lean_object* x_433; lean_object* x_434; +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_2); +lean_ctor_set(x_434, 1, x_432); +return x_434; +} +else +{ +lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; +lean_dec(x_2); +x_435 = lean_ctor_get(x_431, 0); +lean_inc(x_435); +x_436 = lean_ctor_get(x_431, 1); +lean_inc(x_436); +if (lean_is_exclusive(x_431)) { + lean_ctor_release(x_431, 0); + lean_ctor_release(x_431, 1); + x_437 = x_431; +} else { + lean_dec_ref(x_431); + 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; +} +} +else +{ +lean_object* x_439; lean_object* x_440; +x_439 = lean_ctor_get(x_8, 0); +lean_inc(x_439); +lean_dec(x_8); +lean_inc(x_4); +x_440 = l_Lean_Elab_Term_isDefEq(x_6, x_439, x_3, x_4, x_430); +if (lean_obj_tag(x_440) == 0) +{ +lean_object* x_441; lean_object* x_442; +x_441 = lean_ctor_get(x_440, 1); +lean_inc(x_441); +lean_dec(x_440); +x_442 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_441); +lean_dec(x_12); +if (lean_obj_tag(x_442) == 0) +{ +lean_object* x_443; lean_object* x_444; lean_object* x_445; +x_443 = lean_ctor_get(x_442, 1); +lean_inc(x_443); +if (lean_is_exclusive(x_442)) { + lean_ctor_release(x_442, 0); + lean_ctor_release(x_442, 1); + x_444 = x_442; +} else { + lean_dec_ref(x_442); + x_444 = lean_box(0); +} +if (lean_is_scalar(x_444)) { + x_445 = lean_alloc_ctor(0, 2, 0); +} else { + x_445 = x_444; +} +lean_ctor_set(x_445, 0, x_2); +lean_ctor_set(x_445, 1, x_443); +return x_445; +} +else +{ +lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; +lean_dec(x_2); +x_446 = lean_ctor_get(x_442, 0); +lean_inc(x_446); +x_447 = lean_ctor_get(x_442, 1); +lean_inc(x_447); +if (lean_is_exclusive(x_442)) { + lean_ctor_release(x_442, 0); + lean_ctor_release(x_442, 1); + x_448 = x_442; +} else { + lean_dec_ref(x_442); + x_448 = lean_box(0); +} +if (lean_is_scalar(x_448)) { + x_449 = lean_alloc_ctor(1, 2, 0); +} else { + x_449 = x_448; +} +lean_ctor_set(x_449, 0, x_446); +lean_ctor_set(x_449, 1, x_447); +return x_449; +} +} +else +{ +lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; +lean_dec(x_12); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_450 = lean_ctor_get(x_440, 0); +lean_inc(x_450); +x_451 = lean_ctor_get(x_440, 1); +lean_inc(x_451); +if (lean_is_exclusive(x_440)) { + lean_ctor_release(x_440, 0); + lean_ctor_release(x_440, 1); + x_452 = x_440; +} else { + lean_dec_ref(x_440); + 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; +} +} +} +} +} +} +else +{ +lean_object* x_463; lean_object* x_464; +lean_dec(x_297); +lean_dec(x_90); +lean_dec(x_3); +x_463 = lean_array_fget(x_7, x_10); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_6); +x_464 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_463, x_91, x_4, x_295); +if (lean_obj_tag(x_464) == 0) +{ +lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; +x_465 = lean_ctor_get(x_464, 0); +lean_inc(x_465); +x_466 = lean_ctor_get(x_464, 1); +lean_inc(x_466); +lean_dec(x_464); +x_467 = lean_unsigned_to_nat(1u); +x_468 = lean_nat_add(x_10, x_467); +lean_dec(x_10); +x_469 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_469, 0, x_6); +lean_ctor_set(x_469, 1, x_7); +lean_ctor_set(x_469, 2, x_8); +lean_ctor_set(x_469, 3, x_468); +lean_ctor_set(x_469, 4, x_11); +lean_ctor_set(x_469, 5, x_12); +lean_ctor_set(x_469, 6, x_13); +lean_ctor_set_uint8(x_469, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_469, sizeof(void*)*7 + 1, x_296); +lean_inc(x_465); +x_470 = l_Lean_mkApp(x_2, x_465); +x_471 = lean_expr_instantiate1(x_92, x_465); +lean_dec(x_465); +lean_dec(x_92); +x_1 = x_469; +x_2 = x_470; +x_3 = x_471; +x_5 = x_466; +goto _start; +} +else +{ +lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_dec(x_92); lean_dec(x_13); lean_dec(x_12); @@ -4216,32 +4727,32 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_349 = lean_ctor_get(x_340, 0); -lean_inc(x_349); -x_350 = lean_ctor_get(x_340, 1); -lean_inc(x_350); -if (lean_is_exclusive(x_340)) { - lean_ctor_release(x_340, 0); - lean_ctor_release(x_340, 1); - x_351 = x_340; +x_473 = lean_ctor_get(x_464, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_464, 1); +lean_inc(x_474); +if (lean_is_exclusive(x_464)) { + lean_ctor_release(x_464, 0); + lean_ctor_release(x_464, 1); + x_475 = x_464; } else { - lean_dec_ref(x_340); - x_351 = lean_box(0); + lean_dec_ref(x_464); + x_475 = lean_box(0); } -if (lean_is_scalar(x_351)) { - x_352 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_475)) { + x_476 = lean_alloc_ctor(1, 2, 0); } else { - x_352 = x_351; + x_476 = x_475; } -lean_ctor_set(x_352, 0, x_349); -lean_ctor_set(x_352, 1, x_350); -return x_352; +lean_ctor_set(x_476, 0, x_473); +lean_ctor_set(x_476, 1, x_474); +return x_476; } } } else { -lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; +lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_dec(x_92); lean_dec(x_91); lean_dec(x_90); @@ -4255,26 +4766,26 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_353 = lean_ctor_get(x_97, 0); -lean_inc(x_353); -x_354 = lean_ctor_get(x_97, 1); -lean_inc(x_354); +x_477 = lean_ctor_get(x_97, 0); +lean_inc(x_477); +x_478 = lean_ctor_get(x_97, 1); +lean_inc(x_478); if (lean_is_exclusive(x_97)) { lean_ctor_release(x_97, 0); lean_ctor_release(x_97, 1); - x_355 = x_97; + x_479 = x_97; } else { lean_dec_ref(x_97); - x_355 = lean_box(0); + x_479 = lean_box(0); } -if (lean_is_scalar(x_355)) { - x_356 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_479)) { + x_480 = lean_alloc_ctor(1, 2, 0); } else { - x_356 = x_355; + x_480 = x_479; } -lean_ctor_set(x_356, 0, x_353); -lean_ctor_set(x_356, 1, x_354); -return x_356; +lean_ctor_set(x_480, 0, x_477); +lean_ctor_set(x_480, 1, x_478); +return x_480; } } } @@ -4282,89 +4793,89 @@ case 1: { if (x_9 == 0) { -uint8_t x_357; +uint8_t x_481; lean_dec(x_90); lean_dec(x_16); lean_dec(x_3); -x_357 = !lean_is_exclusive(x_1); -if (x_357 == 0) +x_481 = !lean_is_exclusive(x_1); +if (x_481 == 0) { -lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; uint8_t x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; -x_358 = lean_ctor_get(x_1, 6); -lean_dec(x_358); -x_359 = lean_ctor_get(x_1, 5); -lean_dec(x_359); -x_360 = lean_ctor_get(x_1, 4); -lean_dec(x_360); -x_361 = lean_ctor_get(x_1, 3); -lean_dec(x_361); -x_362 = lean_ctor_get(x_1, 2); -lean_dec(x_362); -x_363 = lean_ctor_get(x_1, 1); -lean_dec(x_363); -x_364 = lean_ctor_get(x_1, 0); -lean_dec(x_364); -x_365 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_365, 0, x_91); -x_366 = 0; -x_367 = lean_box(0); +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; uint8_t x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; +x_482 = lean_ctor_get(x_1, 6); +lean_dec(x_482); +x_483 = lean_ctor_get(x_1, 5); +lean_dec(x_483); +x_484 = lean_ctor_get(x_1, 4); +lean_dec(x_484); +x_485 = lean_ctor_get(x_1, 3); +lean_dec(x_485); +x_486 = lean_ctor_get(x_1, 2); +lean_dec(x_486); +x_487 = lean_ctor_get(x_1, 1); +lean_dec(x_487); +x_488 = lean_ctor_get(x_1, 0); +lean_dec(x_488); +x_489 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_489, 0, x_91); +x_490 = 0; +x_491 = lean_box(0); lean_inc(x_4); -x_368 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_365, x_366, x_367, x_4, x_17); -x_369 = lean_ctor_get(x_368, 0); -lean_inc(x_369); -x_370 = lean_ctor_get(x_368, 1); -lean_inc(x_370); -lean_dec(x_368); +x_492 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_489, x_490, x_491, x_4, x_17); +x_493 = lean_ctor_get(x_492, 0); +lean_inc(x_493); +x_494 = lean_ctor_get(x_492, 1); +lean_inc(x_494); +lean_dec(x_492); lean_inc(x_4); -lean_inc(x_369); -x_371 = l_Lean_Elab_Term_isTypeFormer(x_6, x_369, x_4, x_370); -if (lean_obj_tag(x_371) == 0) +lean_inc(x_493); +x_495 = l_Lean_Elab_Term_isTypeFormer(x_6, x_493, x_4, x_494); +if (lean_obj_tag(x_495) == 0) { -lean_object* x_372; uint8_t x_373; -x_372 = lean_ctor_get(x_371, 0); -lean_inc(x_372); -x_373 = lean_unbox(x_372); -lean_dec(x_372); -if (x_373 == 0) +lean_object* x_496; uint8_t x_497; +x_496 = lean_ctor_get(x_495, 0); +lean_inc(x_496); +x_497 = lean_unbox(x_496); +lean_dec(x_496); +if (x_497 == 0) { -lean_object* x_374; lean_object* x_375; lean_object* x_376; -x_374 = lean_ctor_get(x_371, 1); -lean_inc(x_374); -lean_dec(x_371); -lean_inc(x_369); -x_375 = l_Lean_mkApp(x_2, x_369); -x_376 = lean_expr_instantiate1(x_92, x_369); -lean_dec(x_369); +lean_object* x_498; lean_object* x_499; lean_object* x_500; +x_498 = lean_ctor_get(x_495, 1); +lean_inc(x_498); +lean_dec(x_495); +lean_inc(x_493); +x_499 = l_Lean_mkApp(x_2, x_493); +x_500 = lean_expr_instantiate1(x_92, x_493); +lean_dec(x_493); lean_dec(x_92); -x_2 = x_375; -x_3 = x_376; -x_5 = x_374; +x_2 = x_499; +x_3 = x_500; +x_5 = x_498; goto _start; } else { -lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; -x_378 = lean_ctor_get(x_371, 1); -lean_inc(x_378); -lean_dec(x_371); -x_379 = l_Lean_Expr_mvarId_x21(x_369); -x_380 = lean_array_push(x_13, x_379); -lean_ctor_set(x_1, 6, x_380); -lean_inc(x_369); -x_381 = l_Lean_mkApp(x_2, x_369); -x_382 = lean_expr_instantiate1(x_92, x_369); -lean_dec(x_369); +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_495, 1); +lean_inc(x_502); +lean_dec(x_495); +x_503 = l_Lean_Expr_mvarId_x21(x_493); +x_504 = lean_array_push(x_13, x_503); +lean_ctor_set(x_1, 6, x_504); +lean_inc(x_493); +x_505 = l_Lean_mkApp(x_2, x_493); +x_506 = lean_expr_instantiate1(x_92, x_493); +lean_dec(x_493); lean_dec(x_92); -x_2 = x_381; -x_3 = x_382; -x_5 = x_378; +x_2 = x_505; +x_3 = x_506; +x_5 = x_502; goto _start; } } else { -uint8_t x_384; -lean_dec(x_369); +uint8_t x_508; +lean_dec(x_493); lean_free_object(x_1); lean_dec(x_92); lean_dec(x_13); @@ -4376,112 +4887,112 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_384 = !lean_is_exclusive(x_371); -if (x_384 == 0) +x_508 = !lean_is_exclusive(x_495); +if (x_508 == 0) { -return x_371; +return x_495; } else { -lean_object* x_385; lean_object* x_386; lean_object* x_387; -x_385 = lean_ctor_get(x_371, 0); -x_386 = lean_ctor_get(x_371, 1); -lean_inc(x_386); -lean_inc(x_385); -lean_dec(x_371); -x_387 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_387, 0, x_385); -lean_ctor_set(x_387, 1, x_386); -return x_387; +lean_object* x_509; lean_object* x_510; lean_object* x_511; +x_509 = lean_ctor_get(x_495, 0); +x_510 = lean_ctor_get(x_495, 1); +lean_inc(x_510); +lean_inc(x_509); +lean_dec(x_495); +x_511 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_511, 0, x_509); +lean_ctor_set(x_511, 1, x_510); +return x_511; } } } else { -lean_object* x_388; uint8_t x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; +lean_object* x_512; uint8_t x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_dec(x_1); -x_388 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_388, 0, x_91); -x_389 = 0; -x_390 = lean_box(0); +x_512 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_512, 0, x_91); +x_513 = 0; +x_514 = lean_box(0); lean_inc(x_4); -x_391 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_388, x_389, x_390, x_4, x_17); -x_392 = lean_ctor_get(x_391, 0); -lean_inc(x_392); -x_393 = lean_ctor_get(x_391, 1); -lean_inc(x_393); -lean_dec(x_391); +x_515 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_512, x_513, x_514, x_4, x_17); +x_516 = lean_ctor_get(x_515, 0); +lean_inc(x_516); +x_517 = lean_ctor_get(x_515, 1); +lean_inc(x_517); +lean_dec(x_515); lean_inc(x_4); -lean_inc(x_392); -x_394 = l_Lean_Elab_Term_isTypeFormer(x_6, x_392, x_4, x_393); -if (lean_obj_tag(x_394) == 0) +lean_inc(x_516); +x_518 = l_Lean_Elab_Term_isTypeFormer(x_6, x_516, x_4, x_517); +if (lean_obj_tag(x_518) == 0) { -lean_object* x_395; uint8_t x_396; -x_395 = lean_ctor_get(x_394, 0); -lean_inc(x_395); -x_396 = lean_unbox(x_395); -lean_dec(x_395); -if (x_396 == 0) +lean_object* x_519; uint8_t x_520; +x_519 = lean_ctor_get(x_518, 0); +lean_inc(x_519); +x_520 = lean_unbox(x_519); +lean_dec(x_519); +if (x_520 == 0) { -lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; -x_397 = lean_ctor_get(x_394, 1); -lean_inc(x_397); -lean_dec(x_394); -x_398 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_398, 0, x_6); -lean_ctor_set(x_398, 1, x_7); -lean_ctor_set(x_398, 2, x_8); -lean_ctor_set(x_398, 3, x_10); -lean_ctor_set(x_398, 4, x_11); -lean_ctor_set(x_398, 5, x_12); -lean_ctor_set(x_398, 6, x_13); -lean_ctor_set_uint8(x_398, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_398, sizeof(void*)*7 + 1, x_14); -lean_inc(x_392); -x_399 = l_Lean_mkApp(x_2, x_392); -x_400 = lean_expr_instantiate1(x_92, x_392); -lean_dec(x_392); +lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; +x_521 = lean_ctor_get(x_518, 1); +lean_inc(x_521); +lean_dec(x_518); +x_522 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_522, 0, x_6); +lean_ctor_set(x_522, 1, x_7); +lean_ctor_set(x_522, 2, x_8); +lean_ctor_set(x_522, 3, x_10); +lean_ctor_set(x_522, 4, x_11); +lean_ctor_set(x_522, 5, x_12); +lean_ctor_set(x_522, 6, x_13); +lean_ctor_set_uint8(x_522, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_522, sizeof(void*)*7 + 1, x_14); +lean_inc(x_516); +x_523 = l_Lean_mkApp(x_2, x_516); +x_524 = lean_expr_instantiate1(x_92, x_516); +lean_dec(x_516); lean_dec(x_92); -x_1 = x_398; -x_2 = x_399; -x_3 = x_400; -x_5 = x_397; +x_1 = x_522; +x_2 = x_523; +x_3 = x_524; +x_5 = x_521; goto _start; } else { -lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; -x_402 = lean_ctor_get(x_394, 1); -lean_inc(x_402); -lean_dec(x_394); -x_403 = l_Lean_Expr_mvarId_x21(x_392); -x_404 = lean_array_push(x_13, x_403); -x_405 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_405, 0, x_6); -lean_ctor_set(x_405, 1, x_7); -lean_ctor_set(x_405, 2, x_8); -lean_ctor_set(x_405, 3, x_10); -lean_ctor_set(x_405, 4, x_11); -lean_ctor_set(x_405, 5, x_12); -lean_ctor_set(x_405, 6, x_404); -lean_ctor_set_uint8(x_405, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_405, sizeof(void*)*7 + 1, x_14); -lean_inc(x_392); -x_406 = l_Lean_mkApp(x_2, x_392); -x_407 = lean_expr_instantiate1(x_92, x_392); -lean_dec(x_392); +lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; +x_526 = lean_ctor_get(x_518, 1); +lean_inc(x_526); +lean_dec(x_518); +x_527 = l_Lean_Expr_mvarId_x21(x_516); +x_528 = lean_array_push(x_13, x_527); +x_529 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_529, 0, x_6); +lean_ctor_set(x_529, 1, x_7); +lean_ctor_set(x_529, 2, x_8); +lean_ctor_set(x_529, 3, x_10); +lean_ctor_set(x_529, 4, x_11); +lean_ctor_set(x_529, 5, x_12); +lean_ctor_set(x_529, 6, x_528); +lean_ctor_set_uint8(x_529, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_529, sizeof(void*)*7 + 1, x_14); +lean_inc(x_516); +x_530 = l_Lean_mkApp(x_2, x_516); +x_531 = lean_expr_instantiate1(x_92, x_516); +lean_dec(x_516); lean_dec(x_92); -x_1 = x_405; -x_2 = x_406; -x_3 = x_407; -x_5 = x_402; +x_1 = x_529; +x_2 = x_530; +x_3 = x_531; +x_5 = x_526; goto _start; } } else { -lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; -lean_dec(x_392); +lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; +lean_dec(x_516); lean_dec(x_92); lean_dec(x_13); lean_dec(x_12); @@ -4492,283 +5003,283 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_409 = lean_ctor_get(x_394, 0); -lean_inc(x_409); -x_410 = lean_ctor_get(x_394, 1); -lean_inc(x_410); -if (lean_is_exclusive(x_394)) { - lean_ctor_release(x_394, 0); - lean_ctor_release(x_394, 1); - x_411 = x_394; +x_533 = lean_ctor_get(x_518, 0); +lean_inc(x_533); +x_534 = lean_ctor_get(x_518, 1); +lean_inc(x_534); +if (lean_is_exclusive(x_518)) { + lean_ctor_release(x_518, 0); + lean_ctor_release(x_518, 1); + x_535 = x_518; } else { - lean_dec_ref(x_394); - x_411 = lean_box(0); + lean_dec_ref(x_518); + x_535 = lean_box(0); } -if (lean_is_scalar(x_411)) { - x_412 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_535)) { + x_536 = lean_alloc_ctor(1, 2, 0); } else { - x_412 = x_411; + x_536 = x_535; } -lean_ctor_set(x_412, 0, x_409); -lean_ctor_set(x_412, 1, x_410); -return x_412; +lean_ctor_set(x_536, 0, x_533); +lean_ctor_set(x_536, 1, x_534); +return x_536; } } } else { -lean_object* x_413; uint8_t x_414; +lean_object* x_537; uint8_t x_538; lean_inc(x_4); lean_inc(x_1); -x_413 = l___private_Init_Lean_Elab_App_9__propagateExpectedType(x_1, x_16, x_4, x_17); -x_414 = !lean_is_exclusive(x_1); -if (x_414 == 0) +x_537 = l___private_Init_Lean_Elab_App_8__propagateExpectedType(x_1, x_16, x_4, x_17); +x_538 = !lean_is_exclusive(x_1); +if (x_538 == 0) { -lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; -x_415 = lean_ctor_get(x_1, 6); -lean_dec(x_415); -x_416 = lean_ctor_get(x_1, 5); -lean_dec(x_416); -x_417 = lean_ctor_get(x_1, 4); -lean_dec(x_417); -x_418 = lean_ctor_get(x_1, 3); -lean_dec(x_418); -x_419 = lean_ctor_get(x_1, 2); -lean_dec(x_419); -x_420 = lean_ctor_get(x_1, 1); -lean_dec(x_420); -x_421 = lean_ctor_get(x_1, 0); -lean_dec(x_421); -if (lean_obj_tag(x_413) == 0) +lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; +x_539 = lean_ctor_get(x_1, 6); +lean_dec(x_539); +x_540 = lean_ctor_get(x_1, 5); +lean_dec(x_540); +x_541 = lean_ctor_get(x_1, 4); +lean_dec(x_541); +x_542 = lean_ctor_get(x_1, 3); +lean_dec(x_542); +x_543 = lean_ctor_get(x_1, 2); +lean_dec(x_543); +x_544 = lean_ctor_get(x_1, 1); +lean_dec(x_544); +x_545 = lean_ctor_get(x_1, 0); +lean_dec(x_545); +if (lean_obj_tag(x_537) == 0) { -lean_object* x_422; lean_object* x_423; uint8_t x_424; -x_422 = lean_ctor_get(x_413, 1); -lean_inc(x_422); -lean_dec(x_413); -x_423 = lean_array_get_size(x_7); -x_424 = lean_nat_dec_lt(x_10, x_423); -lean_dec(x_423); -if (x_424 == 0) +lean_object* x_546; lean_object* x_547; uint8_t x_548; +x_546 = lean_ctor_get(x_537, 1); +lean_inc(x_546); +lean_dec(x_537); +x_547 = lean_array_get_size(x_7); +x_548 = lean_nat_dec_lt(x_10, x_547); +lean_dec(x_547); +if (x_548 == 0) { -uint8_t x_425; +uint8_t x_549; lean_free_object(x_1); lean_dec(x_92); lean_dec(x_91); lean_dec(x_13); lean_dec(x_10); lean_dec(x_7); -x_425 = l_Array_isEmpty___rarg(x_11); -if (x_425 == 0) +x_549 = l_Array_isEmpty___rarg(x_11); +if (x_549 == 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; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; +lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_426 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_426, 0, x_90); -x_427 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; -x_428 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_428, 0, x_427); -lean_ctor_set(x_428, 1, x_426); -x_429 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; -x_430 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_430, 0, x_428); -lean_ctor_set(x_430, 1, x_429); -x_431 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(x_94, x_11); -x_432 = l_Array_toList___rarg(x_431); -lean_dec(x_431); -x_433 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_432); -x_434 = l_Array_HasRepr___rarg___closed__1; -x_435 = lean_string_append(x_434, x_433); -lean_dec(x_433); -x_436 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_436, 0, x_435); -x_437 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_437, 0, x_436); -x_438 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_438, 0, x_430); -lean_ctor_set(x_438, 1, x_437); -x_439 = l_Lean_Elab_Term_throwError___rarg(x_6, x_438, x_4, x_422); +x_550 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_550, 0, x_90); +x_551 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_552 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_552, 0, x_551); +lean_ctor_set(x_552, 1, x_550); +x_553 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_554 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_554, 0, x_552); +lean_ctor_set(x_554, 1, x_553); +x_555 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_11); +x_556 = l_Array_toList___rarg(x_555); +lean_dec(x_555); +x_557 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_556); +x_558 = l_Array_HasRepr___rarg___closed__1; +x_559 = lean_string_append(x_558, x_557); +lean_dec(x_557); +x_560 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_560, 0, x_559); +x_561 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_561, 0, x_560); +x_562 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_562, 0, x_554); +lean_ctor_set(x_562, 1, x_561); +x_563 = l_Lean_Elab_Term_throwError___rarg(x_6, x_562, x_4, x_546); lean_dec(x_6); -return x_439; +return x_563; } else { -lean_object* x_440; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; uint8_t x_471; +lean_object* x_564; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; uint8_t x_595; lean_dec(x_90); lean_dec(x_11); -x_467 = l_Lean_Elab_Term_getOptions(x_4, x_422); -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_470 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; -x_471 = l_Lean_checkTraceOption(x_468, x_470); -lean_dec(x_468); -if (x_471 == 0) +x_591 = l_Lean_Elab_Term_getOptions(x_4, x_546); +x_592 = lean_ctor_get(x_591, 0); +lean_inc(x_592); +x_593 = lean_ctor_get(x_591, 1); +lean_inc(x_593); +lean_dec(x_591); +x_594 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_595 = l_Lean_checkTraceOption(x_592, x_594); +lean_dec(x_592); +if (x_595 == 0) { -x_440 = x_469; -goto block_466; +x_564 = x_593; +goto block_590; } else { -lean_object* x_472; lean_object* x_473; lean_object* x_474; +lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_inc(x_2); -x_472 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_472, 0, x_2); -x_473 = l_Lean_Elab_Term_logTrace(x_470, x_6, x_472, x_4, x_469); -x_474 = lean_ctor_get(x_473, 1); -lean_inc(x_474); -lean_dec(x_473); -x_440 = x_474; -goto block_466; +x_596 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_596, 0, x_2); +x_597 = l_Lean_Elab_Term_logTrace(x_594, x_6, x_596, x_4, x_593); +x_598 = lean_ctor_get(x_597, 1); +lean_inc(x_598); +lean_dec(x_597); +x_564 = x_598; +goto block_590; } -block_466: +block_590: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_441; +lean_object* x_565; lean_dec(x_3); -x_441 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_440); +x_565 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_564); lean_dec(x_12); -if (lean_obj_tag(x_441) == 0) +if (lean_obj_tag(x_565) == 0) { -uint8_t x_442; -x_442 = !lean_is_exclusive(x_441); -if (x_442 == 0) +uint8_t x_566; +x_566 = !lean_is_exclusive(x_565); +if (x_566 == 0) { -lean_object* x_443; -x_443 = lean_ctor_get(x_441, 0); -lean_dec(x_443); -lean_ctor_set(x_441, 0, x_2); -return x_441; +lean_object* x_567; +x_567 = lean_ctor_get(x_565, 0); +lean_dec(x_567); +lean_ctor_set(x_565, 0, x_2); +return x_565; } else { -lean_object* x_444; lean_object* x_445; -x_444 = lean_ctor_get(x_441, 1); -lean_inc(x_444); -lean_dec(x_441); -x_445 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_445, 0, x_2); -lean_ctor_set(x_445, 1, x_444); -return x_445; +lean_object* x_568; lean_object* x_569; +x_568 = lean_ctor_get(x_565, 1); +lean_inc(x_568); +lean_dec(x_565); +x_569 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_569, 0, x_2); +lean_ctor_set(x_569, 1, x_568); +return x_569; } } else { -uint8_t x_446; +uint8_t x_570; lean_dec(x_2); -x_446 = !lean_is_exclusive(x_441); -if (x_446 == 0) +x_570 = !lean_is_exclusive(x_565); +if (x_570 == 0) { -return x_441; +return x_565; } else { -lean_object* x_447; lean_object* x_448; lean_object* x_449; -x_447 = lean_ctor_get(x_441, 0); -x_448 = lean_ctor_get(x_441, 1); -lean_inc(x_448); -lean_inc(x_447); -lean_dec(x_441); -x_449 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_449, 0, x_447); -lean_ctor_set(x_449, 1, x_448); -return x_449; +lean_object* x_571; lean_object* x_572; lean_object* x_573; +x_571 = lean_ctor_get(x_565, 0); +x_572 = lean_ctor_get(x_565, 1); +lean_inc(x_572); +lean_inc(x_571); +lean_dec(x_565); +x_573 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_573, 0, x_571); +lean_ctor_set(x_573, 1, x_572); +return x_573; } } } else { -lean_object* x_450; lean_object* x_451; -x_450 = lean_ctor_get(x_8, 0); -lean_inc(x_450); +lean_object* x_574; lean_object* x_575; +x_574 = lean_ctor_get(x_8, 0); +lean_inc(x_574); lean_dec(x_8); lean_inc(x_4); -x_451 = l_Lean_Elab_Term_isDefEq(x_6, x_450, x_3, x_4, x_440); -if (lean_obj_tag(x_451) == 0) +x_575 = l_Lean_Elab_Term_isDefEq(x_6, x_574, x_3, x_4, x_564); +if (lean_obj_tag(x_575) == 0) { -lean_object* x_452; lean_object* x_453; -x_452 = lean_ctor_get(x_451, 1); -lean_inc(x_452); -lean_dec(x_451); -x_453 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_452); +lean_object* x_576; lean_object* x_577; +x_576 = lean_ctor_get(x_575, 1); +lean_inc(x_576); +lean_dec(x_575); +x_577 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_576); lean_dec(x_12); -if (lean_obj_tag(x_453) == 0) +if (lean_obj_tag(x_577) == 0) { -uint8_t x_454; -x_454 = !lean_is_exclusive(x_453); -if (x_454 == 0) +uint8_t x_578; +x_578 = !lean_is_exclusive(x_577); +if (x_578 == 0) { -lean_object* x_455; -x_455 = lean_ctor_get(x_453, 0); -lean_dec(x_455); -lean_ctor_set(x_453, 0, x_2); -return x_453; +lean_object* x_579; +x_579 = lean_ctor_get(x_577, 0); +lean_dec(x_579); +lean_ctor_set(x_577, 0, x_2); +return x_577; } else { -lean_object* x_456; lean_object* x_457; -x_456 = lean_ctor_get(x_453, 1); -lean_inc(x_456); -lean_dec(x_453); -x_457 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_457, 0, x_2); -lean_ctor_set(x_457, 1, x_456); -return x_457; +lean_object* x_580; lean_object* x_581; +x_580 = lean_ctor_get(x_577, 1); +lean_inc(x_580); +lean_dec(x_577); +x_581 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_581, 0, x_2); +lean_ctor_set(x_581, 1, x_580); +return x_581; } } else { -uint8_t x_458; +uint8_t x_582; lean_dec(x_2); -x_458 = !lean_is_exclusive(x_453); -if (x_458 == 0) +x_582 = !lean_is_exclusive(x_577); +if (x_582 == 0) { -return x_453; +return x_577; } else { -lean_object* x_459; lean_object* x_460; lean_object* x_461; -x_459 = lean_ctor_get(x_453, 0); -x_460 = lean_ctor_get(x_453, 1); -lean_inc(x_460); -lean_inc(x_459); -lean_dec(x_453); -x_461 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_461, 0, x_459); -lean_ctor_set(x_461, 1, x_460); -return x_461; +lean_object* x_583; lean_object* x_584; lean_object* x_585; +x_583 = lean_ctor_get(x_577, 0); +x_584 = lean_ctor_get(x_577, 1); +lean_inc(x_584); +lean_inc(x_583); +lean_dec(x_577); +x_585 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_585, 0, x_583); +lean_ctor_set(x_585, 1, x_584); +return x_585; } } } else { -uint8_t x_462; +uint8_t x_586; lean_dec(x_12); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_462 = !lean_is_exclusive(x_451); -if (x_462 == 0) +x_586 = !lean_is_exclusive(x_575); +if (x_586 == 0) { -return x_451; +return x_575; } else { -lean_object* x_463; lean_object* x_464; lean_object* x_465; -x_463 = lean_ctor_get(x_451, 0); -x_464 = lean_ctor_get(x_451, 1); -lean_inc(x_464); -lean_inc(x_463); -lean_dec(x_451); -x_465 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_465, 0, x_463); -lean_ctor_set(x_465, 1, x_464); -return x_465; +lean_object* x_587; lean_object* x_588; lean_object* x_589; +x_587 = lean_ctor_get(x_575, 0); +x_588 = lean_ctor_get(x_575, 1); +lean_inc(x_588); +lean_inc(x_587); +lean_dec(x_575); +x_589 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_589, 0, x_587); +lean_ctor_set(x_589, 1, x_588); +return x_589; } } } @@ -4777,41 +5288,41 @@ return x_465; } else { -lean_object* x_475; lean_object* x_476; +lean_object* x_599; lean_object* x_600; lean_dec(x_90); lean_dec(x_3); -x_475 = lean_array_fget(x_7, x_10); +x_599 = lean_array_fget(x_7, x_10); lean_inc(x_4); lean_inc(x_2); lean_inc(x_6); -x_476 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_475, x_91, x_4, x_422); -if (lean_obj_tag(x_476) == 0) +x_600 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_599, x_91, x_4, x_546); +if (lean_obj_tag(x_600) == 0) { -lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; lean_object* x_482; lean_object* x_483; -x_477 = lean_ctor_get(x_476, 0); -lean_inc(x_477); -x_478 = lean_ctor_get(x_476, 1); -lean_inc(x_478); -lean_dec(x_476); -x_479 = lean_unsigned_to_nat(1u); -x_480 = lean_nat_add(x_10, x_479); +lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; uint8_t x_605; lean_object* x_606; lean_object* x_607; +x_601 = lean_ctor_get(x_600, 0); +lean_inc(x_601); +x_602 = lean_ctor_get(x_600, 1); +lean_inc(x_602); +lean_dec(x_600); +x_603 = lean_unsigned_to_nat(1u); +x_604 = lean_nat_add(x_10, x_603); lean_dec(x_10); -x_481 = 1; -lean_ctor_set(x_1, 3, x_480); -lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_481); -lean_inc(x_477); -x_482 = l_Lean_mkApp(x_2, x_477); -x_483 = lean_expr_instantiate1(x_92, x_477); -lean_dec(x_477); +x_605 = 1; +lean_ctor_set(x_1, 3, x_604); +lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_605); +lean_inc(x_601); +x_606 = l_Lean_mkApp(x_2, x_601); +x_607 = lean_expr_instantiate1(x_92, x_601); +lean_dec(x_601); lean_dec(x_92); -x_2 = x_482; -x_3 = x_483; -x_5 = x_478; +x_2 = x_606; +x_3 = x_607; +x_5 = x_602; goto _start; } else { -uint8_t x_485; +uint8_t x_609; lean_free_object(x_1); lean_dec(x_92); lean_dec(x_13); @@ -4823,30 +5334,30 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_485 = !lean_is_exclusive(x_476); -if (x_485 == 0) +x_609 = !lean_is_exclusive(x_600); +if (x_609 == 0) { -return x_476; +return x_600; } else { -lean_object* x_486; lean_object* x_487; lean_object* x_488; -x_486 = lean_ctor_get(x_476, 0); -x_487 = lean_ctor_get(x_476, 1); -lean_inc(x_487); -lean_inc(x_486); -lean_dec(x_476); -x_488 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_488, 0, x_486); -lean_ctor_set(x_488, 1, x_487); -return x_488; +lean_object* x_610; lean_object* x_611; lean_object* x_612; +x_610 = lean_ctor_get(x_600, 0); +x_611 = lean_ctor_get(x_600, 1); +lean_inc(x_611); +lean_inc(x_610); +lean_dec(x_600); +x_612 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_612, 0, x_610); +lean_ctor_set(x_612, 1, x_611); +return x_612; } } } } else { -uint8_t x_489; +uint8_t x_613; lean_free_object(x_1); lean_dec(x_92); lean_dec(x_91); @@ -4861,261 +5372,261 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_489 = !lean_is_exclusive(x_413); -if (x_489 == 0) +x_613 = !lean_is_exclusive(x_537); +if (x_613 == 0) { -return x_413; +return x_537; } else { -lean_object* x_490; lean_object* x_491; lean_object* x_492; -x_490 = lean_ctor_get(x_413, 0); -x_491 = lean_ctor_get(x_413, 1); -lean_inc(x_491); -lean_inc(x_490); -lean_dec(x_413); -x_492 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_492, 0, x_490); -lean_ctor_set(x_492, 1, x_491); -return x_492; +lean_object* x_614; lean_object* x_615; lean_object* x_616; +x_614 = lean_ctor_get(x_537, 0); +x_615 = lean_ctor_get(x_537, 1); +lean_inc(x_615); +lean_inc(x_614); +lean_dec(x_537); +x_616 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_616, 0, x_614); +lean_ctor_set(x_616, 1, x_615); +return x_616; } } } else { lean_dec(x_1); -if (lean_obj_tag(x_413) == 0) +if (lean_obj_tag(x_537) == 0) { -lean_object* x_493; lean_object* x_494; uint8_t x_495; -x_493 = lean_ctor_get(x_413, 1); -lean_inc(x_493); -lean_dec(x_413); -x_494 = lean_array_get_size(x_7); -x_495 = lean_nat_dec_lt(x_10, x_494); -lean_dec(x_494); -if (x_495 == 0) +lean_object* x_617; lean_object* x_618; uint8_t x_619; +x_617 = lean_ctor_get(x_537, 1); +lean_inc(x_617); +lean_dec(x_537); +x_618 = lean_array_get_size(x_7); +x_619 = lean_nat_dec_lt(x_10, x_618); +lean_dec(x_618); +if (x_619 == 0) { -uint8_t x_496; +uint8_t x_620; lean_dec(x_92); lean_dec(x_91); lean_dec(x_13); lean_dec(x_10); lean_dec(x_7); -x_496 = l_Array_isEmpty___rarg(x_11); -if (x_496 == 0) +x_620 = l_Array_isEmpty___rarg(x_11); +if (x_620 == 0) { -lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; +lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_497 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_497, 0, x_90); -x_498 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; -x_499 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_499, 0, x_498); -lean_ctor_set(x_499, 1, x_497); -x_500 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; -x_501 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_501, 0, x_499); -lean_ctor_set(x_501, 1, x_500); -x_502 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(x_94, x_11); -x_503 = l_Array_toList___rarg(x_502); -lean_dec(x_502); -x_504 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_503); -x_505 = l_Array_HasRepr___rarg___closed__1; -x_506 = lean_string_append(x_505, x_504); -lean_dec(x_504); -x_507 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_507, 0, x_506); -x_508 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_508, 0, x_507); -x_509 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_509, 0, x_501); -lean_ctor_set(x_509, 1, x_508); -x_510 = l_Lean_Elab_Term_throwError___rarg(x_6, x_509, x_4, x_493); +x_621 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_621, 0, x_90); +x_622 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_623 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_623, 0, x_622); +lean_ctor_set(x_623, 1, x_621); +x_624 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_625 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_625, 0, x_623); +lean_ctor_set(x_625, 1, x_624); +x_626 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_11); +x_627 = l_Array_toList___rarg(x_626); +lean_dec(x_626); +x_628 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_627); +x_629 = l_Array_HasRepr___rarg___closed__1; +x_630 = lean_string_append(x_629, x_628); +lean_dec(x_628); +x_631 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_631, 0, x_630); +x_632 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_632, 0, x_631); +x_633 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_633, 0, x_625); +lean_ctor_set(x_633, 1, x_632); +x_634 = l_Lean_Elab_Term_throwError___rarg(x_6, x_633, x_4, x_617); lean_dec(x_6); -return x_510; +return x_634; } else { -lean_object* x_511; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; uint8_t x_540; +lean_object* x_635; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; uint8_t x_664; lean_dec(x_90); lean_dec(x_11); -x_536 = l_Lean_Elab_Term_getOptions(x_4, x_493); -x_537 = lean_ctor_get(x_536, 0); -lean_inc(x_537); -x_538 = lean_ctor_get(x_536, 1); -lean_inc(x_538); -lean_dec(x_536); -x_539 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; -x_540 = l_Lean_checkTraceOption(x_537, x_539); -lean_dec(x_537); -if (x_540 == 0) +x_660 = l_Lean_Elab_Term_getOptions(x_4, x_617); +x_661 = lean_ctor_get(x_660, 0); +lean_inc(x_661); +x_662 = lean_ctor_get(x_660, 1); +lean_inc(x_662); +lean_dec(x_660); +x_663 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_664 = l_Lean_checkTraceOption(x_661, x_663); +lean_dec(x_661); +if (x_664 == 0) { -x_511 = x_538; -goto block_535; +x_635 = x_662; +goto block_659; } else { -lean_object* x_541; lean_object* x_542; lean_object* x_543; +lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_inc(x_2); -x_541 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_541, 0, x_2); -x_542 = l_Lean_Elab_Term_logTrace(x_539, x_6, x_541, x_4, x_538); -x_543 = lean_ctor_get(x_542, 1); -lean_inc(x_543); -lean_dec(x_542); -x_511 = x_543; -goto block_535; +x_665 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_665, 0, x_2); +x_666 = l_Lean_Elab_Term_logTrace(x_663, x_6, x_665, x_4, x_662); +x_667 = lean_ctor_get(x_666, 1); +lean_inc(x_667); +lean_dec(x_666); +x_635 = x_667; +goto block_659; } -block_535: +block_659: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_512; +lean_object* x_636; lean_dec(x_3); -x_512 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_511); +x_636 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_635); lean_dec(x_12); -if (lean_obj_tag(x_512) == 0) +if (lean_obj_tag(x_636) == 0) { -lean_object* x_513; lean_object* x_514; lean_object* x_515; -x_513 = lean_ctor_get(x_512, 1); -lean_inc(x_513); -if (lean_is_exclusive(x_512)) { - lean_ctor_release(x_512, 0); - lean_ctor_release(x_512, 1); - x_514 = x_512; +lean_object* x_637; lean_object* x_638; lean_object* x_639; +x_637 = lean_ctor_get(x_636, 1); +lean_inc(x_637); +if (lean_is_exclusive(x_636)) { + lean_ctor_release(x_636, 0); + lean_ctor_release(x_636, 1); + x_638 = x_636; } else { - lean_dec_ref(x_512); - x_514 = lean_box(0); + lean_dec_ref(x_636); + x_638 = lean_box(0); } -if (lean_is_scalar(x_514)) { - x_515 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_638)) { + x_639 = lean_alloc_ctor(0, 2, 0); } else { - x_515 = x_514; + x_639 = x_638; } -lean_ctor_set(x_515, 0, x_2); -lean_ctor_set(x_515, 1, x_513); -return x_515; +lean_ctor_set(x_639, 0, x_2); +lean_ctor_set(x_639, 1, x_637); +return x_639; } else { -lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; +lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_dec(x_2); -x_516 = lean_ctor_get(x_512, 0); -lean_inc(x_516); -x_517 = lean_ctor_get(x_512, 1); -lean_inc(x_517); -if (lean_is_exclusive(x_512)) { - lean_ctor_release(x_512, 0); - lean_ctor_release(x_512, 1); - x_518 = x_512; +x_640 = lean_ctor_get(x_636, 0); +lean_inc(x_640); +x_641 = lean_ctor_get(x_636, 1); +lean_inc(x_641); +if (lean_is_exclusive(x_636)) { + lean_ctor_release(x_636, 0); + lean_ctor_release(x_636, 1); + x_642 = x_636; } else { - lean_dec_ref(x_512); - x_518 = lean_box(0); + lean_dec_ref(x_636); + x_642 = lean_box(0); } -if (lean_is_scalar(x_518)) { - x_519 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_642)) { + x_643 = lean_alloc_ctor(1, 2, 0); } else { - x_519 = x_518; + x_643 = x_642; } -lean_ctor_set(x_519, 0, x_516); -lean_ctor_set(x_519, 1, x_517); -return x_519; +lean_ctor_set(x_643, 0, x_640); +lean_ctor_set(x_643, 1, x_641); +return x_643; } } else { -lean_object* x_520; lean_object* x_521; -x_520 = lean_ctor_get(x_8, 0); -lean_inc(x_520); +lean_object* x_644; lean_object* x_645; +x_644 = lean_ctor_get(x_8, 0); +lean_inc(x_644); lean_dec(x_8); lean_inc(x_4); -x_521 = l_Lean_Elab_Term_isDefEq(x_6, x_520, x_3, x_4, x_511); -if (lean_obj_tag(x_521) == 0) +x_645 = l_Lean_Elab_Term_isDefEq(x_6, x_644, x_3, x_4, x_635); +if (lean_obj_tag(x_645) == 0) { -lean_object* x_522; lean_object* x_523; -x_522 = lean_ctor_get(x_521, 1); -lean_inc(x_522); -lean_dec(x_521); -x_523 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_522); +lean_object* x_646; lean_object* x_647; +x_646 = lean_ctor_get(x_645, 1); +lean_inc(x_646); +lean_dec(x_645); +x_647 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_646); lean_dec(x_12); -if (lean_obj_tag(x_523) == 0) +if (lean_obj_tag(x_647) == 0) { -lean_object* x_524; lean_object* x_525; lean_object* x_526; -x_524 = lean_ctor_get(x_523, 1); -lean_inc(x_524); -if (lean_is_exclusive(x_523)) { - lean_ctor_release(x_523, 0); - lean_ctor_release(x_523, 1); - x_525 = x_523; +lean_object* x_648; lean_object* x_649; lean_object* x_650; +x_648 = lean_ctor_get(x_647, 1); +lean_inc(x_648); +if (lean_is_exclusive(x_647)) { + lean_ctor_release(x_647, 0); + lean_ctor_release(x_647, 1); + x_649 = x_647; } else { - lean_dec_ref(x_523); - x_525 = lean_box(0); + lean_dec_ref(x_647); + x_649 = lean_box(0); } -if (lean_is_scalar(x_525)) { - x_526 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_649)) { + x_650 = lean_alloc_ctor(0, 2, 0); } else { - x_526 = x_525; + x_650 = x_649; } -lean_ctor_set(x_526, 0, x_2); -lean_ctor_set(x_526, 1, x_524); -return x_526; +lean_ctor_set(x_650, 0, x_2); +lean_ctor_set(x_650, 1, x_648); +return x_650; } else { -lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; +lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_dec(x_2); -x_527 = lean_ctor_get(x_523, 0); -lean_inc(x_527); -x_528 = lean_ctor_get(x_523, 1); -lean_inc(x_528); -if (lean_is_exclusive(x_523)) { - lean_ctor_release(x_523, 0); - lean_ctor_release(x_523, 1); - x_529 = x_523; +x_651 = lean_ctor_get(x_647, 0); +lean_inc(x_651); +x_652 = lean_ctor_get(x_647, 1); +lean_inc(x_652); +if (lean_is_exclusive(x_647)) { + lean_ctor_release(x_647, 0); + lean_ctor_release(x_647, 1); + x_653 = x_647; } else { - lean_dec_ref(x_523); - x_529 = lean_box(0); + lean_dec_ref(x_647); + x_653 = lean_box(0); } -if (lean_is_scalar(x_529)) { - x_530 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_653)) { + x_654 = lean_alloc_ctor(1, 2, 0); } else { - x_530 = x_529; + x_654 = x_653; } -lean_ctor_set(x_530, 0, x_527); -lean_ctor_set(x_530, 1, x_528); -return x_530; +lean_ctor_set(x_654, 0, x_651); +lean_ctor_set(x_654, 1, x_652); +return x_654; } } else { -lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; +lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_dec(x_12); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_531 = lean_ctor_get(x_521, 0); -lean_inc(x_531); -x_532 = lean_ctor_get(x_521, 1); -lean_inc(x_532); -if (lean_is_exclusive(x_521)) { - lean_ctor_release(x_521, 0); - lean_ctor_release(x_521, 1); - x_533 = x_521; +x_655 = lean_ctor_get(x_645, 0); +lean_inc(x_655); +x_656 = lean_ctor_get(x_645, 1); +lean_inc(x_656); +if (lean_is_exclusive(x_645)) { + lean_ctor_release(x_645, 0); + lean_ctor_release(x_645, 1); + x_657 = x_645; } else { - lean_dec_ref(x_521); - x_533 = lean_box(0); + lean_dec_ref(x_645); + x_657 = lean_box(0); } -if (lean_is_scalar(x_533)) { - x_534 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_657)) { + x_658 = lean_alloc_ctor(1, 2, 0); } else { - x_534 = x_533; + x_658 = x_657; } -lean_ctor_set(x_534, 0, x_531); -lean_ctor_set(x_534, 1, x_532); -return x_534; +lean_ctor_set(x_658, 0, x_655); +lean_ctor_set(x_658, 1, x_656); +return x_658; } } } @@ -5123,50 +5634,50 @@ return x_534; } else { -lean_object* x_544; lean_object* x_545; +lean_object* x_668; lean_object* x_669; lean_dec(x_90); lean_dec(x_3); -x_544 = lean_array_fget(x_7, x_10); +x_668 = lean_array_fget(x_7, x_10); lean_inc(x_4); lean_inc(x_2); lean_inc(x_6); -x_545 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_544, x_91, x_4, x_493); -if (lean_obj_tag(x_545) == 0) +x_669 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_668, x_91, x_4, x_617); +if (lean_obj_tag(x_669) == 0) { -lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; uint8_t x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; -x_546 = lean_ctor_get(x_545, 0); -lean_inc(x_546); -x_547 = lean_ctor_get(x_545, 1); -lean_inc(x_547); -lean_dec(x_545); -x_548 = lean_unsigned_to_nat(1u); -x_549 = lean_nat_add(x_10, x_548); +lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; uint8_t x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; +x_670 = lean_ctor_get(x_669, 0); +lean_inc(x_670); +x_671 = lean_ctor_get(x_669, 1); +lean_inc(x_671); +lean_dec(x_669); +x_672 = lean_unsigned_to_nat(1u); +x_673 = lean_nat_add(x_10, x_672); lean_dec(x_10); -x_550 = 1; -x_551 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_551, 0, x_6); -lean_ctor_set(x_551, 1, x_7); -lean_ctor_set(x_551, 2, x_8); -lean_ctor_set(x_551, 3, x_549); -lean_ctor_set(x_551, 4, x_11); -lean_ctor_set(x_551, 5, x_12); -lean_ctor_set(x_551, 6, x_13); -lean_ctor_set_uint8(x_551, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_551, sizeof(void*)*7 + 1, x_550); -lean_inc(x_546); -x_552 = l_Lean_mkApp(x_2, x_546); -x_553 = lean_expr_instantiate1(x_92, x_546); -lean_dec(x_546); +x_674 = 1; +x_675 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_675, 0, x_6); +lean_ctor_set(x_675, 1, x_7); +lean_ctor_set(x_675, 2, x_8); +lean_ctor_set(x_675, 3, x_673); +lean_ctor_set(x_675, 4, x_11); +lean_ctor_set(x_675, 5, x_12); +lean_ctor_set(x_675, 6, x_13); +lean_ctor_set_uint8(x_675, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_675, sizeof(void*)*7 + 1, x_674); +lean_inc(x_670); +x_676 = l_Lean_mkApp(x_2, x_670); +x_677 = lean_expr_instantiate1(x_92, x_670); +lean_dec(x_670); lean_dec(x_92); -x_1 = x_551; -x_2 = x_552; -x_3 = x_553; -x_5 = x_547; +x_1 = x_675; +x_2 = x_676; +x_3 = x_677; +x_5 = x_671; goto _start; } else { -lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; +lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_dec(x_92); lean_dec(x_13); lean_dec(x_12); @@ -5177,32 +5688,32 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_555 = lean_ctor_get(x_545, 0); -lean_inc(x_555); -x_556 = lean_ctor_get(x_545, 1); -lean_inc(x_556); -if (lean_is_exclusive(x_545)) { - lean_ctor_release(x_545, 0); - lean_ctor_release(x_545, 1); - x_557 = x_545; +x_679 = lean_ctor_get(x_669, 0); +lean_inc(x_679); +x_680 = lean_ctor_get(x_669, 1); +lean_inc(x_680); +if (lean_is_exclusive(x_669)) { + lean_ctor_release(x_669, 0); + lean_ctor_release(x_669, 1); + x_681 = x_669; } else { - lean_dec_ref(x_545); - x_557 = lean_box(0); + lean_dec_ref(x_669); + x_681 = lean_box(0); } -if (lean_is_scalar(x_557)) { - x_558 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_681)) { + x_682 = lean_alloc_ctor(1, 2, 0); } else { - x_558 = x_557; + x_682 = x_681; } -lean_ctor_set(x_558, 0, x_555); -lean_ctor_set(x_558, 1, x_556); -return x_558; +lean_ctor_set(x_682, 0, x_679); +lean_ctor_set(x_682, 1, x_680); +return x_682; } } } else { -lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; +lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_dec(x_92); lean_dec(x_91); lean_dec(x_90); @@ -5216,61 +5727,61 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_559 = lean_ctor_get(x_413, 0); -lean_inc(x_559); -x_560 = lean_ctor_get(x_413, 1); -lean_inc(x_560); -if (lean_is_exclusive(x_413)) { - lean_ctor_release(x_413, 0); - lean_ctor_release(x_413, 1); - x_561 = x_413; +x_683 = lean_ctor_get(x_537, 0); +lean_inc(x_683); +x_684 = lean_ctor_get(x_537, 1); +lean_inc(x_684); +if (lean_is_exclusive(x_537)) { + lean_ctor_release(x_537, 0); + lean_ctor_release(x_537, 1); + x_685 = x_537; } else { - lean_dec_ref(x_413); - x_561 = lean_box(0); + lean_dec_ref(x_537); + x_685 = lean_box(0); } -if (lean_is_scalar(x_561)) { - x_562 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_685)) { + x_686 = lean_alloc_ctor(1, 2, 0); } else { - x_562 = x_561; + x_686 = x_685; } -lean_ctor_set(x_562, 0, x_559); -lean_ctor_set(x_562, 1, x_560); -return x_562; +lean_ctor_set(x_686, 0, x_683); +lean_ctor_set(x_686, 1, x_684); +return x_686; } } } } case 2: { -lean_object* x_563; uint8_t x_564; +lean_object* x_687; uint8_t x_688; lean_inc(x_4); lean_inc(x_1); -x_563 = l___private_Init_Lean_Elab_App_9__propagateExpectedType(x_1, x_16, x_4, x_17); -x_564 = !lean_is_exclusive(x_1); -if (x_564 == 0) +x_687 = l___private_Init_Lean_Elab_App_8__propagateExpectedType(x_1, x_16, x_4, x_17); +x_688 = !lean_is_exclusive(x_1); +if (x_688 == 0) { -lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; -x_565 = lean_ctor_get(x_1, 6); -lean_dec(x_565); -x_566 = lean_ctor_get(x_1, 5); -lean_dec(x_566); -x_567 = lean_ctor_get(x_1, 4); -lean_dec(x_567); -x_568 = lean_ctor_get(x_1, 3); -lean_dec(x_568); -x_569 = lean_ctor_get(x_1, 2); -lean_dec(x_569); -x_570 = lean_ctor_get(x_1, 1); -lean_dec(x_570); -x_571 = lean_ctor_get(x_1, 0); -lean_dec(x_571); -if (lean_obj_tag(x_563) == 0) +lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; +x_689 = lean_ctor_get(x_1, 6); +lean_dec(x_689); +x_690 = lean_ctor_get(x_1, 5); +lean_dec(x_690); +x_691 = lean_ctor_get(x_1, 4); +lean_dec(x_691); +x_692 = lean_ctor_get(x_1, 3); +lean_dec(x_692); +x_693 = lean_ctor_get(x_1, 2); +lean_dec(x_693); +x_694 = lean_ctor_get(x_1, 1); +lean_dec(x_694); +x_695 = lean_ctor_get(x_1, 0); +lean_dec(x_695); +if (lean_obj_tag(x_687) == 0) { -lean_object* x_572; uint8_t x_573; lean_object* x_574; uint8_t x_575; -x_572 = lean_ctor_get(x_563, 1); -lean_inc(x_572); -lean_dec(x_563); -x_573 = 1; +lean_object* x_696; uint8_t x_697; lean_object* x_698; uint8_t x_699; +x_696 = lean_ctor_get(x_687, 1); +lean_inc(x_696); +lean_dec(x_687); +x_697 = 1; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -5278,237 +5789,241 @@ lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_573); -x_574 = lean_array_get_size(x_7); -x_575 = lean_nat_dec_lt(x_10, x_574); -lean_dec(x_574); -if (x_575 == 0) +lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_697); +x_698 = lean_array_get_size(x_7); +x_699 = lean_nat_dec_lt(x_10, x_698); +lean_dec(x_698); +if (x_699 == 0) { lean_dec(x_13); lean_dec(x_10); lean_dec(x_7); if (x_9 == 0) { -lean_object* x_576; -x_576 = l_Lean_Expr_getOptParamDefault_x3f(x_91); -lean_dec(x_91); -if (lean_obj_tag(x_576) == 0) +lean_object* x_700; +x_700 = l_Lean_Expr_getOptParamDefault_x3f(x_91); +if (lean_obj_tag(x_700) == 0) { -uint8_t x_577; +lean_object* x_701; +x_701 = l_Lean_Expr_getAutoParamTactic_x3f(x_91); +if (lean_obj_tag(x_701) == 0) +{ +uint8_t x_702; lean_dec(x_1); lean_dec(x_92); -x_577 = l_Array_isEmpty___rarg(x_11); -if (x_577 == 0) +lean_dec(x_91); +x_702 = l_Array_isEmpty___rarg(x_11); +if (x_702 == 0) { -lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; +lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_578 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_578, 0, x_90); -x_579 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; -x_580 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_580, 0, x_579); -lean_ctor_set(x_580, 1, x_578); -x_581 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; -x_582 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_582, 0, x_580); -lean_ctor_set(x_582, 1, x_581); -x_583 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(x_94, x_11); -x_584 = l_Array_toList___rarg(x_583); -lean_dec(x_583); -x_585 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_584); -x_586 = l_Array_HasRepr___rarg___closed__1; -x_587 = lean_string_append(x_586, x_585); -lean_dec(x_585); -x_588 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_588, 0, x_587); -x_589 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_589, 0, x_588); -x_590 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_590, 0, x_582); -lean_ctor_set(x_590, 1, x_589); -x_591 = l_Lean_Elab_Term_throwError___rarg(x_6, x_590, x_4, x_572); +x_703 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_703, 0, x_90); +x_704 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_705 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_705, 0, x_704); +lean_ctor_set(x_705, 1, x_703); +x_706 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_707 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_707, 0, x_705); +lean_ctor_set(x_707, 1, x_706); +x_708 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_11); +x_709 = l_Array_toList___rarg(x_708); +lean_dec(x_708); +x_710 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_709); +x_711 = l_Array_HasRepr___rarg___closed__1; +x_712 = lean_string_append(x_711, x_710); +lean_dec(x_710); +x_713 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_713, 0, x_712); +x_714 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_714, 0, x_713); +x_715 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_715, 0, x_707); +lean_ctor_set(x_715, 1, x_714); +x_716 = l_Lean_Elab_Term_throwError___rarg(x_6, x_715, x_4, x_696); lean_dec(x_6); -return x_591; +return x_716; } else { -lean_object* x_592; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; uint8_t x_623; +lean_object* x_717; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; uint8_t x_748; lean_dec(x_90); lean_dec(x_11); -x_619 = l_Lean_Elab_Term_getOptions(x_4, x_572); -x_620 = lean_ctor_get(x_619, 0); -lean_inc(x_620); -x_621 = lean_ctor_get(x_619, 1); -lean_inc(x_621); -lean_dec(x_619); -x_622 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; -x_623 = l_Lean_checkTraceOption(x_620, x_622); -lean_dec(x_620); -if (x_623 == 0) +x_744 = l_Lean_Elab_Term_getOptions(x_4, x_696); +x_745 = lean_ctor_get(x_744, 0); +lean_inc(x_745); +x_746 = lean_ctor_get(x_744, 1); +lean_inc(x_746); +lean_dec(x_744); +x_747 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_748 = l_Lean_checkTraceOption(x_745, x_747); +lean_dec(x_745); +if (x_748 == 0) { -x_592 = x_621; -goto block_618; +x_717 = x_746; +goto block_743; } else { -lean_object* x_624; lean_object* x_625; lean_object* x_626; +lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_inc(x_2); -x_624 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_624, 0, x_2); -x_625 = l_Lean_Elab_Term_logTrace(x_622, x_6, x_624, x_4, x_621); -x_626 = lean_ctor_get(x_625, 1); -lean_inc(x_626); -lean_dec(x_625); -x_592 = x_626; -goto block_618; +x_749 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_749, 0, x_2); +x_750 = l_Lean_Elab_Term_logTrace(x_747, x_6, x_749, x_4, x_746); +x_751 = lean_ctor_get(x_750, 1); +lean_inc(x_751); +lean_dec(x_750); +x_717 = x_751; +goto block_743; } -block_618: +block_743: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_593; +lean_object* x_718; lean_dec(x_3); -x_593 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_592); +x_718 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_717); lean_dec(x_12); -if (lean_obj_tag(x_593) == 0) +if (lean_obj_tag(x_718) == 0) { -uint8_t x_594; -x_594 = !lean_is_exclusive(x_593); -if (x_594 == 0) +uint8_t x_719; +x_719 = !lean_is_exclusive(x_718); +if (x_719 == 0) { -lean_object* x_595; -x_595 = lean_ctor_get(x_593, 0); -lean_dec(x_595); -lean_ctor_set(x_593, 0, x_2); -return x_593; +lean_object* x_720; +x_720 = lean_ctor_get(x_718, 0); +lean_dec(x_720); +lean_ctor_set(x_718, 0, x_2); +return x_718; } else { -lean_object* x_596; lean_object* x_597; -x_596 = lean_ctor_get(x_593, 1); -lean_inc(x_596); -lean_dec(x_593); -x_597 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_597, 0, x_2); -lean_ctor_set(x_597, 1, x_596); -return x_597; +lean_object* x_721; lean_object* x_722; +x_721 = lean_ctor_get(x_718, 1); +lean_inc(x_721); +lean_dec(x_718); +x_722 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_722, 0, x_2); +lean_ctor_set(x_722, 1, x_721); +return x_722; } } else { -uint8_t x_598; +uint8_t x_723; lean_dec(x_2); -x_598 = !lean_is_exclusive(x_593); -if (x_598 == 0) +x_723 = !lean_is_exclusive(x_718); +if (x_723 == 0) { -return x_593; +return x_718; } else { -lean_object* x_599; lean_object* x_600; lean_object* x_601; -x_599 = lean_ctor_get(x_593, 0); -x_600 = lean_ctor_get(x_593, 1); -lean_inc(x_600); -lean_inc(x_599); -lean_dec(x_593); -x_601 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_601, 0, x_599); -lean_ctor_set(x_601, 1, x_600); -return x_601; +lean_object* x_724; lean_object* x_725; lean_object* x_726; +x_724 = lean_ctor_get(x_718, 0); +x_725 = lean_ctor_get(x_718, 1); +lean_inc(x_725); +lean_inc(x_724); +lean_dec(x_718); +x_726 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_726, 0, x_724); +lean_ctor_set(x_726, 1, x_725); +return x_726; } } } else { -lean_object* x_602; lean_object* x_603; -x_602 = lean_ctor_get(x_8, 0); -lean_inc(x_602); +lean_object* x_727; lean_object* x_728; +x_727 = lean_ctor_get(x_8, 0); +lean_inc(x_727); lean_dec(x_8); lean_inc(x_4); -x_603 = l_Lean_Elab_Term_isDefEq(x_6, x_602, x_3, x_4, x_592); -if (lean_obj_tag(x_603) == 0) +x_728 = l_Lean_Elab_Term_isDefEq(x_6, x_727, x_3, x_4, x_717); +if (lean_obj_tag(x_728) == 0) { -lean_object* x_604; lean_object* x_605; -x_604 = lean_ctor_get(x_603, 1); -lean_inc(x_604); -lean_dec(x_603); -x_605 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_604); +lean_object* x_729; lean_object* x_730; +x_729 = lean_ctor_get(x_728, 1); +lean_inc(x_729); +lean_dec(x_728); +x_730 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_729); lean_dec(x_12); -if (lean_obj_tag(x_605) == 0) +if (lean_obj_tag(x_730) == 0) { -uint8_t x_606; -x_606 = !lean_is_exclusive(x_605); -if (x_606 == 0) +uint8_t x_731; +x_731 = !lean_is_exclusive(x_730); +if (x_731 == 0) { -lean_object* x_607; -x_607 = lean_ctor_get(x_605, 0); -lean_dec(x_607); -lean_ctor_set(x_605, 0, x_2); -return x_605; +lean_object* x_732; +x_732 = lean_ctor_get(x_730, 0); +lean_dec(x_732); +lean_ctor_set(x_730, 0, x_2); +return x_730; } else { -lean_object* x_608; lean_object* x_609; -x_608 = lean_ctor_get(x_605, 1); -lean_inc(x_608); -lean_dec(x_605); -x_609 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_609, 0, x_2); -lean_ctor_set(x_609, 1, x_608); -return x_609; +lean_object* x_733; lean_object* x_734; +x_733 = lean_ctor_get(x_730, 1); +lean_inc(x_733); +lean_dec(x_730); +x_734 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_734, 0, x_2); +lean_ctor_set(x_734, 1, x_733); +return x_734; } } else { -uint8_t x_610; +uint8_t x_735; lean_dec(x_2); -x_610 = !lean_is_exclusive(x_605); -if (x_610 == 0) +x_735 = !lean_is_exclusive(x_730); +if (x_735 == 0) { -return x_605; +return x_730; } else { -lean_object* x_611; lean_object* x_612; lean_object* x_613; -x_611 = lean_ctor_get(x_605, 0); -x_612 = lean_ctor_get(x_605, 1); -lean_inc(x_612); -lean_inc(x_611); -lean_dec(x_605); -x_613 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_613, 0, x_611); -lean_ctor_set(x_613, 1, x_612); -return x_613; +lean_object* x_736; lean_object* x_737; lean_object* x_738; +x_736 = lean_ctor_get(x_730, 0); +x_737 = lean_ctor_get(x_730, 1); +lean_inc(x_737); +lean_inc(x_736); +lean_dec(x_730); +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; } } } else { -uint8_t x_614; +uint8_t x_739; lean_dec(x_12); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_614 = !lean_is_exclusive(x_603); -if (x_614 == 0) +x_739 = !lean_is_exclusive(x_728); +if (x_739 == 0) { -return x_603; +return x_728; } else { -lean_object* x_615; lean_object* x_616; lean_object* x_617; -x_615 = lean_ctor_get(x_603, 0); -x_616 = lean_ctor_get(x_603, 1); -lean_inc(x_616); -lean_inc(x_615); -lean_dec(x_603); -x_617 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_617, 0, x_615); -lean_ctor_set(x_617, 1, x_616); -return x_617; +lean_object* x_740; lean_object* x_741; lean_object* x_742; +x_740 = lean_ctor_get(x_728, 0); +x_741 = lean_ctor_get(x_728, 1); +lean_inc(x_741); +lean_inc(x_740); +lean_dec(x_728); +x_742 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_742, 0, x_740); +lean_ctor_set(x_742, 1, x_741); +return x_742; } } } @@ -5517,245 +6032,460 @@ return x_617; } else { -lean_object* x_627; lean_object* x_628; lean_object* x_629; +lean_object* x_752; +lean_dec(x_90); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_3); +x_752 = lean_ctor_get(x_701, 0); +lean_inc(x_752); +lean_dec(x_701); +if (lean_obj_tag(x_752) == 4) +{ +lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; +x_753 = lean_ctor_get(x_752, 0); +lean_inc(x_753); +lean_dec(x_752); +x_754 = l_Lean_Elab_Term_getEnv___rarg(x_696); +x_755 = lean_ctor_get(x_754, 0); +lean_inc(x_755); +x_756 = lean_ctor_get(x_754, 1); +lean_inc(x_756); +lean_dec(x_754); +x_757 = l_Lean_Elab_evalSyntaxConstant(x_755, x_753); +if (lean_obj_tag(x_757) == 0) +{ +lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; +lean_dec(x_1); +lean_dec(x_92); +lean_dec(x_91); +lean_dec(x_2); +x_758 = lean_ctor_get(x_757, 0); +lean_inc(x_758); +lean_dec(x_757); +x_759 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_759, 0, x_758); +x_760 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_760, 0, x_759); +x_761 = l_Lean_Elab_Term_throwError___rarg(x_6, x_760, x_4, x_756); +lean_dec(x_6); +return x_761; +} +else +{ +lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; 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; lean_object* x_786; +x_762 = lean_ctor_get(x_757, 0); +lean_inc(x_762); +lean_dec(x_757); +x_763 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_756); +x_764 = lean_ctor_get(x_763, 1); +lean_inc(x_764); +lean_dec(x_763); +x_765 = l_Lean_Elab_Term_getMainModule___rarg(x_764); +x_766 = lean_ctor_get(x_765, 1); +lean_inc(x_766); +lean_dec(x_765); +x_767 = l_Lean_Syntax_getArgs(x_762); +lean_dec(x_762); +x_768 = l_Array_empty___closed__1; +x_769 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_767, x_767, x_94, x_768); +lean_dec(x_767); +x_770 = l_Lean_nullKind___closed__2; +x_771 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_771, 0, x_770); +lean_ctor_set(x_771, 1, x_769); +x_772 = lean_array_push(x_768, x_771); +x_773 = l_Lean_Parser_Tactic_seq___elambda__1___closed__4; +x_774 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_774, 0, x_773); +lean_ctor_set(x_774, 1, x_772); +x_775 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_776 = lean_array_push(x_775, x_774); +x_777 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; +x_778 = lean_array_push(x_776, x_777); +x_779 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_780 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_780, 0, x_779); +lean_ctor_set(x_780, 1, x_778); +x_781 = l_Lean_Syntax_getHeadInfo___main(x_6); +x_782 = l_Lean_Expr_getAppNumArgsAux___main(x_91, x_94); +x_783 = lean_nat_sub(x_782, x_94); +lean_dec(x_782); +x_784 = lean_unsigned_to_nat(1u); +x_785 = lean_nat_sub(x_783, x_784); +lean_dec(x_783); +x_786 = l_Lean_Expr_getRevArg_x21___main(x_91, x_785); +lean_dec(x_91); +if (lean_obj_tag(x_781) == 0) +{ +lean_object* x_787; lean_object* x_788; +x_787 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_787, 0, x_780); +lean_inc(x_4); +lean_inc(x_2); +x_788 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_787, x_786, x_4, x_766); +if (lean_obj_tag(x_788) == 0) +{ +lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; +x_789 = lean_ctor_get(x_788, 0); +lean_inc(x_789); +x_790 = lean_ctor_get(x_788, 1); +lean_inc(x_790); +lean_dec(x_788); +lean_inc(x_789); +x_791 = l_Lean_mkApp(x_2, x_789); +x_792 = lean_expr_instantiate1(x_92, x_789); +lean_dec(x_789); +lean_dec(x_92); +x_2 = x_791; +x_3 = x_792; +x_5 = x_790; +goto _start; +} +else +{ +uint8_t x_794; +lean_dec(x_1); +lean_dec(x_92); +lean_dec(x_4); +lean_dec(x_2); +x_794 = !lean_is_exclusive(x_788); +if (x_794 == 0) +{ +return x_788; +} +else +{ +lean_object* x_795; lean_object* x_796; lean_object* x_797; +x_795 = lean_ctor_get(x_788, 0); +x_796 = lean_ctor_get(x_788, 1); +lean_inc(x_796); +lean_inc(x_795); +lean_dec(x_788); +x_797 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_797, 0, x_795); +lean_ctor_set(x_797, 1, x_796); +return x_797; +} +} +} +else +{ +lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; +x_798 = lean_ctor_get(x_781, 0); +lean_inc(x_798); +lean_dec(x_781); +x_799 = l_Lean_Syntax_replaceInfo___main(x_798, x_780); +x_800 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_800, 0, x_799); +lean_inc(x_4); +lean_inc(x_2); +x_801 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_800, x_786, x_4, x_766); +if (lean_obj_tag(x_801) == 0) +{ +lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; +x_802 = lean_ctor_get(x_801, 0); +lean_inc(x_802); +x_803 = lean_ctor_get(x_801, 1); +lean_inc(x_803); +lean_dec(x_801); +lean_inc(x_802); +x_804 = l_Lean_mkApp(x_2, x_802); +x_805 = lean_expr_instantiate1(x_92, x_802); +lean_dec(x_802); +lean_dec(x_92); +x_2 = x_804; +x_3 = x_805; +x_5 = x_803; +goto _start; +} +else +{ +uint8_t x_807; +lean_dec(x_1); +lean_dec(x_92); +lean_dec(x_4); +lean_dec(x_2); +x_807 = !lean_is_exclusive(x_801); +if (x_807 == 0) +{ +return x_801; +} +else +{ +lean_object* x_808; lean_object* x_809; lean_object* x_810; +x_808 = lean_ctor_get(x_801, 0); +x_809 = lean_ctor_get(x_801, 1); +lean_inc(x_809); +lean_inc(x_808); +lean_dec(x_801); +x_810 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_810, 0, x_808); +lean_ctor_set(x_810, 1, x_809); +return x_810; +} +} +} +} +} +else +{ +lean_object* x_811; lean_object* x_812; +lean_dec(x_752); +lean_dec(x_1); +lean_dec(x_92); +lean_dec(x_91); +lean_dec(x_2); +x_811 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_812 = l_Lean_Elab_Term_throwError___rarg(x_6, x_811, x_4, x_696); +lean_dec(x_6); +return x_812; +} +} +} +else +{ +lean_object* x_813; lean_object* x_814; lean_object* x_815; +lean_dec(x_91); lean_dec(x_90); lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); lean_dec(x_6); lean_dec(x_3); -x_627 = lean_ctor_get(x_576, 0); -lean_inc(x_627); -lean_dec(x_576); -lean_inc(x_627); -x_628 = l_Lean_mkApp(x_2, x_627); -x_629 = lean_expr_instantiate1(x_92, x_627); -lean_dec(x_627); +x_813 = lean_ctor_get(x_700, 0); +lean_inc(x_813); +lean_dec(x_700); +lean_inc(x_813); +x_814 = l_Lean_mkApp(x_2, x_813); +x_815 = lean_expr_instantiate1(x_92, x_813); +lean_dec(x_813); lean_dec(x_92); -x_2 = x_628; -x_3 = x_629; -x_5 = x_572; +x_2 = x_814; +x_3 = x_815; +x_5 = x_696; goto _start; } } else { -uint8_t x_631; +uint8_t x_817; lean_dec(x_1); lean_dec(x_92); lean_dec(x_91); -x_631 = l_Array_isEmpty___rarg(x_11); -if (x_631 == 0) +x_817 = l_Array_isEmpty___rarg(x_11); +if (x_817 == 0) { -lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; +lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_632 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_632, 0, x_90); -x_633 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; -x_634 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_634, 0, x_633); -lean_ctor_set(x_634, 1, x_632); -x_635 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; -x_636 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_636, 0, x_634); -lean_ctor_set(x_636, 1, x_635); -x_637 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(x_94, x_11); -x_638 = l_Array_toList___rarg(x_637); -lean_dec(x_637); -x_639 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_638); -x_640 = l_Array_HasRepr___rarg___closed__1; -x_641 = lean_string_append(x_640, x_639); -lean_dec(x_639); -x_642 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_642, 0, x_641); -x_643 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_643, 0, x_642); -x_644 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_644, 0, x_636); -lean_ctor_set(x_644, 1, x_643); -x_645 = l_Lean_Elab_Term_throwError___rarg(x_6, x_644, x_4, x_572); +x_818 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_818, 0, x_90); +x_819 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_820 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_820, 0, x_819); +lean_ctor_set(x_820, 1, x_818); +x_821 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_822 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_822, 0, x_820); +lean_ctor_set(x_822, 1, x_821); +x_823 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_11); +x_824 = l_Array_toList___rarg(x_823); +lean_dec(x_823); +x_825 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_824); +x_826 = l_Array_HasRepr___rarg___closed__1; +x_827 = lean_string_append(x_826, x_825); +lean_dec(x_825); +x_828 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_828, 0, x_827); +x_829 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_829, 0, x_828); +x_830 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_830, 0, x_822); +lean_ctor_set(x_830, 1, x_829); +x_831 = l_Lean_Elab_Term_throwError___rarg(x_6, x_830, x_4, x_696); lean_dec(x_6); -return x_645; +return x_831; } else { -lean_object* x_646; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; uint8_t x_677; +lean_object* x_832; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; uint8_t x_863; lean_dec(x_90); lean_dec(x_11); -x_673 = l_Lean_Elab_Term_getOptions(x_4, x_572); -x_674 = lean_ctor_get(x_673, 0); -lean_inc(x_674); -x_675 = lean_ctor_get(x_673, 1); -lean_inc(x_675); -lean_dec(x_673); -x_676 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; -x_677 = l_Lean_checkTraceOption(x_674, x_676); -lean_dec(x_674); -if (x_677 == 0) +x_859 = l_Lean_Elab_Term_getOptions(x_4, x_696); +x_860 = lean_ctor_get(x_859, 0); +lean_inc(x_860); +x_861 = lean_ctor_get(x_859, 1); +lean_inc(x_861); +lean_dec(x_859); +x_862 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_863 = l_Lean_checkTraceOption(x_860, x_862); +lean_dec(x_860); +if (x_863 == 0) { -x_646 = x_675; -goto block_672; +x_832 = x_861; +goto block_858; } else { -lean_object* x_678; lean_object* x_679; lean_object* x_680; +lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_inc(x_2); -x_678 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_678, 0, x_2); -x_679 = l_Lean_Elab_Term_logTrace(x_676, x_6, x_678, x_4, x_675); -x_680 = lean_ctor_get(x_679, 1); -lean_inc(x_680); -lean_dec(x_679); -x_646 = x_680; -goto block_672; +x_864 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_864, 0, x_2); +x_865 = l_Lean_Elab_Term_logTrace(x_862, x_6, x_864, x_4, x_861); +x_866 = lean_ctor_get(x_865, 1); +lean_inc(x_866); +lean_dec(x_865); +x_832 = x_866; +goto block_858; } -block_672: +block_858: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_647; +lean_object* x_833; lean_dec(x_3); -x_647 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_646); +x_833 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_832); lean_dec(x_12); -if (lean_obj_tag(x_647) == 0) +if (lean_obj_tag(x_833) == 0) { -uint8_t x_648; -x_648 = !lean_is_exclusive(x_647); -if (x_648 == 0) +uint8_t x_834; +x_834 = !lean_is_exclusive(x_833); +if (x_834 == 0) { -lean_object* x_649; -x_649 = lean_ctor_get(x_647, 0); -lean_dec(x_649); -lean_ctor_set(x_647, 0, x_2); -return x_647; +lean_object* x_835; +x_835 = lean_ctor_get(x_833, 0); +lean_dec(x_835); +lean_ctor_set(x_833, 0, x_2); +return x_833; } else { -lean_object* x_650; lean_object* x_651; -x_650 = lean_ctor_get(x_647, 1); -lean_inc(x_650); -lean_dec(x_647); -x_651 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_651, 0, x_2); -lean_ctor_set(x_651, 1, x_650); -return x_651; +lean_object* x_836; lean_object* x_837; +x_836 = lean_ctor_get(x_833, 1); +lean_inc(x_836); +lean_dec(x_833); +x_837 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_837, 0, x_2); +lean_ctor_set(x_837, 1, x_836); +return x_837; } } else { -uint8_t x_652; +uint8_t x_838; lean_dec(x_2); -x_652 = !lean_is_exclusive(x_647); -if (x_652 == 0) +x_838 = !lean_is_exclusive(x_833); +if (x_838 == 0) { -return x_647; +return x_833; } else { -lean_object* x_653; lean_object* x_654; lean_object* x_655; -x_653 = lean_ctor_get(x_647, 0); -x_654 = lean_ctor_get(x_647, 1); -lean_inc(x_654); -lean_inc(x_653); -lean_dec(x_647); -x_655 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_655, 0, x_653); -lean_ctor_set(x_655, 1, x_654); -return x_655; +lean_object* x_839; lean_object* x_840; lean_object* x_841; +x_839 = lean_ctor_get(x_833, 0); +x_840 = lean_ctor_get(x_833, 1); +lean_inc(x_840); +lean_inc(x_839); +lean_dec(x_833); +x_841 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_841, 0, x_839); +lean_ctor_set(x_841, 1, x_840); +return x_841; } } } else { -lean_object* x_656; lean_object* x_657; -x_656 = lean_ctor_get(x_8, 0); -lean_inc(x_656); +lean_object* x_842; lean_object* x_843; +x_842 = lean_ctor_get(x_8, 0); +lean_inc(x_842); lean_dec(x_8); lean_inc(x_4); -x_657 = l_Lean_Elab_Term_isDefEq(x_6, x_656, x_3, x_4, x_646); -if (lean_obj_tag(x_657) == 0) +x_843 = l_Lean_Elab_Term_isDefEq(x_6, x_842, x_3, x_4, x_832); +if (lean_obj_tag(x_843) == 0) { -lean_object* x_658; lean_object* x_659; -x_658 = lean_ctor_get(x_657, 1); -lean_inc(x_658); -lean_dec(x_657); -x_659 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_658); +lean_object* x_844; lean_object* x_845; +x_844 = lean_ctor_get(x_843, 1); +lean_inc(x_844); +lean_dec(x_843); +x_845 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_844); lean_dec(x_12); -if (lean_obj_tag(x_659) == 0) +if (lean_obj_tag(x_845) == 0) { -uint8_t x_660; -x_660 = !lean_is_exclusive(x_659); -if (x_660 == 0) +uint8_t x_846; +x_846 = !lean_is_exclusive(x_845); +if (x_846 == 0) { -lean_object* x_661; -x_661 = lean_ctor_get(x_659, 0); -lean_dec(x_661); -lean_ctor_set(x_659, 0, x_2); -return x_659; +lean_object* x_847; +x_847 = lean_ctor_get(x_845, 0); +lean_dec(x_847); +lean_ctor_set(x_845, 0, x_2); +return x_845; } else { -lean_object* x_662; lean_object* x_663; -x_662 = lean_ctor_get(x_659, 1); -lean_inc(x_662); -lean_dec(x_659); -x_663 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_663, 0, x_2); -lean_ctor_set(x_663, 1, x_662); -return x_663; +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(0, 2, 0); +lean_ctor_set(x_849, 0, x_2); +lean_ctor_set(x_849, 1, x_848); +return x_849; } } else { -uint8_t x_664; +uint8_t x_850; lean_dec(x_2); -x_664 = !lean_is_exclusive(x_659); -if (x_664 == 0) +x_850 = !lean_is_exclusive(x_845); +if (x_850 == 0) { -return x_659; +return x_845; } else { -lean_object* x_665; lean_object* x_666; lean_object* x_667; -x_665 = lean_ctor_get(x_659, 0); -x_666 = lean_ctor_get(x_659, 1); -lean_inc(x_666); -lean_inc(x_665); -lean_dec(x_659); -x_667 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_667, 0, x_665); -lean_ctor_set(x_667, 1, x_666); -return x_667; +lean_object* x_851; lean_object* x_852; lean_object* x_853; +x_851 = lean_ctor_get(x_845, 0); +x_852 = lean_ctor_get(x_845, 1); +lean_inc(x_852); +lean_inc(x_851); +lean_dec(x_845); +x_853 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_853, 0, x_851); +lean_ctor_set(x_853, 1, x_852); +return x_853; } } } else { -uint8_t x_668; +uint8_t x_854; lean_dec(x_12); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_668 = !lean_is_exclusive(x_657); -if (x_668 == 0) +x_854 = !lean_is_exclusive(x_843); +if (x_854 == 0) { -return x_657; +return x_843; } else { -lean_object* x_669; lean_object* x_670; lean_object* x_671; -x_669 = lean_ctor_get(x_657, 0); -x_670 = lean_ctor_get(x_657, 1); -lean_inc(x_670); -lean_inc(x_669); -lean_dec(x_657); -x_671 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_671, 0, x_669); -lean_ctor_set(x_671, 1, x_670); -return x_671; +lean_object* x_855; lean_object* x_856; lean_object* x_857; +x_855 = lean_ctor_get(x_843, 0); +x_856 = lean_ctor_get(x_843, 1); +lean_inc(x_856); +lean_inc(x_855); +lean_dec(x_843); +x_857 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_857, 0, x_855); +lean_ctor_set(x_857, 1, x_856); +return x_857; } } } @@ -5765,50 +6495,50 @@ return x_671; } else { -lean_object* x_681; lean_object* x_682; +lean_object* x_867; lean_object* x_868; lean_dec(x_1); lean_dec(x_90); lean_dec(x_3); -x_681 = lean_array_fget(x_7, x_10); +x_867 = lean_array_fget(x_7, x_10); lean_inc(x_4); lean_inc(x_2); lean_inc(x_6); -x_682 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_681, x_91, x_4, x_572); -if (lean_obj_tag(x_682) == 0) +x_868 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_867, x_91, x_4, x_696); +if (lean_obj_tag(x_868) == 0) { -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_683 = lean_ctor_get(x_682, 0); -lean_inc(x_683); -x_684 = lean_ctor_get(x_682, 1); -lean_inc(x_684); -lean_dec(x_682); -x_685 = lean_unsigned_to_nat(1u); -x_686 = lean_nat_add(x_10, x_685); +lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; +x_869 = lean_ctor_get(x_868, 0); +lean_inc(x_869); +x_870 = lean_ctor_get(x_868, 1); +lean_inc(x_870); +lean_dec(x_868); +x_871 = lean_unsigned_to_nat(1u); +x_872 = lean_nat_add(x_10, x_871); lean_dec(x_10); -x_687 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_687, 0, x_6); -lean_ctor_set(x_687, 1, x_7); -lean_ctor_set(x_687, 2, x_8); -lean_ctor_set(x_687, 3, x_686); -lean_ctor_set(x_687, 4, x_11); -lean_ctor_set(x_687, 5, x_12); -lean_ctor_set(x_687, 6, x_13); -lean_ctor_set_uint8(x_687, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_687, sizeof(void*)*7 + 1, x_573); -lean_inc(x_683); -x_688 = l_Lean_mkApp(x_2, x_683); -x_689 = lean_expr_instantiate1(x_92, x_683); -lean_dec(x_683); +x_873 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_873, 0, x_6); +lean_ctor_set(x_873, 1, x_7); +lean_ctor_set(x_873, 2, x_8); +lean_ctor_set(x_873, 3, x_872); +lean_ctor_set(x_873, 4, x_11); +lean_ctor_set(x_873, 5, x_12); +lean_ctor_set(x_873, 6, x_13); +lean_ctor_set_uint8(x_873, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_873, sizeof(void*)*7 + 1, x_697); +lean_inc(x_869); +x_874 = l_Lean_mkApp(x_2, x_869); +x_875 = lean_expr_instantiate1(x_92, x_869); +lean_dec(x_869); lean_dec(x_92); -x_1 = x_687; -x_2 = x_688; -x_3 = x_689; -x_5 = x_684; +x_1 = x_873; +x_2 = x_874; +x_3 = x_875; +x_5 = x_870; goto _start; } else { -uint8_t x_691; +uint8_t x_877; lean_dec(x_92); lean_dec(x_13); lean_dec(x_12); @@ -5819,30 +6549,30 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_691 = !lean_is_exclusive(x_682); -if (x_691 == 0) +x_877 = !lean_is_exclusive(x_868); +if (x_877 == 0) { -return x_682; +return x_868; } else { -lean_object* x_692; lean_object* x_693; lean_object* x_694; -x_692 = lean_ctor_get(x_682, 0); -x_693 = lean_ctor_get(x_682, 1); -lean_inc(x_693); -lean_inc(x_692); -lean_dec(x_682); -x_694 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_694, 0, x_692); -lean_ctor_set(x_694, 1, x_693); -return x_694; +lean_object* x_878; lean_object* x_879; lean_object* x_880; +x_878 = lean_ctor_get(x_868, 0); +x_879 = lean_ctor_get(x_868, 1); +lean_inc(x_879); +lean_inc(x_878); +lean_dec(x_868); +x_880 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_880, 0, x_878); +lean_ctor_set(x_880, 1, x_879); +return x_880; } } } } else { -uint8_t x_695; +uint8_t x_881; lean_free_object(x_1); lean_dec(x_92); lean_dec(x_91); @@ -5857,36 +6587,36 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_695 = !lean_is_exclusive(x_563); -if (x_695 == 0) +x_881 = !lean_is_exclusive(x_687); +if (x_881 == 0) { -return x_563; +return x_687; } else { -lean_object* x_696; lean_object* x_697; lean_object* x_698; -x_696 = lean_ctor_get(x_563, 0); -x_697 = lean_ctor_get(x_563, 1); -lean_inc(x_697); -lean_inc(x_696); -lean_dec(x_563); -x_698 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_698, 0, x_696); -lean_ctor_set(x_698, 1, x_697); -return x_698; +lean_object* x_882; lean_object* x_883; lean_object* x_884; +x_882 = lean_ctor_get(x_687, 0); +x_883 = lean_ctor_get(x_687, 1); +lean_inc(x_883); +lean_inc(x_882); +lean_dec(x_687); +x_884 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_884, 0, x_882); +lean_ctor_set(x_884, 1, x_883); +return x_884; } } } else { lean_dec(x_1); -if (lean_obj_tag(x_563) == 0) +if (lean_obj_tag(x_687) == 0) { -lean_object* x_699; uint8_t x_700; lean_object* x_701; lean_object* x_702; uint8_t x_703; -x_699 = lean_ctor_get(x_563, 1); -lean_inc(x_699); -lean_dec(x_563); -x_700 = 1; +lean_object* x_885; uint8_t x_886; lean_object* x_887; lean_object* x_888; uint8_t x_889; +x_885 = lean_ctor_get(x_687, 1); +lean_inc(x_885); +lean_dec(x_687); +x_886 = 1; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -5894,249 +6624,253 @@ lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_701 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_701, 0, x_6); -lean_ctor_set(x_701, 1, x_7); -lean_ctor_set(x_701, 2, x_8); -lean_ctor_set(x_701, 3, x_10); -lean_ctor_set(x_701, 4, x_11); -lean_ctor_set(x_701, 5, x_12); -lean_ctor_set(x_701, 6, x_13); -lean_ctor_set_uint8(x_701, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_701, sizeof(void*)*7 + 1, x_700); -x_702 = lean_array_get_size(x_7); -x_703 = lean_nat_dec_lt(x_10, x_702); -lean_dec(x_702); -if (x_703 == 0) +x_887 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_887, 0, x_6); +lean_ctor_set(x_887, 1, x_7); +lean_ctor_set(x_887, 2, x_8); +lean_ctor_set(x_887, 3, x_10); +lean_ctor_set(x_887, 4, x_11); +lean_ctor_set(x_887, 5, x_12); +lean_ctor_set(x_887, 6, x_13); +lean_ctor_set_uint8(x_887, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_887, sizeof(void*)*7 + 1, x_886); +x_888 = lean_array_get_size(x_7); +x_889 = lean_nat_dec_lt(x_10, x_888); +lean_dec(x_888); +if (x_889 == 0) { lean_dec(x_13); lean_dec(x_10); lean_dec(x_7); if (x_9 == 0) { -lean_object* x_704; -x_704 = l_Lean_Expr_getOptParamDefault_x3f(x_91); -lean_dec(x_91); -if (lean_obj_tag(x_704) == 0) +lean_object* x_890; +x_890 = l_Lean_Expr_getOptParamDefault_x3f(x_91); +if (lean_obj_tag(x_890) == 0) { -uint8_t x_705; -lean_dec(x_701); +lean_object* x_891; +x_891 = l_Lean_Expr_getAutoParamTactic_x3f(x_91); +if (lean_obj_tag(x_891) == 0) +{ +uint8_t x_892; +lean_dec(x_887); lean_dec(x_92); -x_705 = l_Array_isEmpty___rarg(x_11); -if (x_705 == 0) +lean_dec(x_91); +x_892 = l_Array_isEmpty___rarg(x_11); +if (x_892 == 0) { -lean_object* x_706; lean_object* x_707; 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; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; +lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_706 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_706, 0, x_90); -x_707 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; -x_708 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_708, 0, x_707); -lean_ctor_set(x_708, 1, x_706); -x_709 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; -x_710 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_710, 0, x_708); -lean_ctor_set(x_710, 1, x_709); -x_711 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(x_94, x_11); -x_712 = l_Array_toList___rarg(x_711); -lean_dec(x_711); -x_713 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_712); -x_714 = l_Array_HasRepr___rarg___closed__1; -x_715 = lean_string_append(x_714, x_713); -lean_dec(x_713); -x_716 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_716, 0, x_715); -x_717 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_717, 0, x_716); -x_718 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_718, 0, x_710); -lean_ctor_set(x_718, 1, x_717); -x_719 = l_Lean_Elab_Term_throwError___rarg(x_6, x_718, x_4, x_699); +x_893 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_893, 0, x_90); +x_894 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_895 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_895, 0, x_894); +lean_ctor_set(x_895, 1, x_893); +x_896 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_897 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_897, 0, x_895); +lean_ctor_set(x_897, 1, x_896); +x_898 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_11); +x_899 = l_Array_toList___rarg(x_898); +lean_dec(x_898); +x_900 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_899); +x_901 = l_Array_HasRepr___rarg___closed__1; +x_902 = lean_string_append(x_901, x_900); +lean_dec(x_900); +x_903 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_903, 0, x_902); +x_904 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_904, 0, x_903); +x_905 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_905, 0, x_897); +lean_ctor_set(x_905, 1, x_904); +x_906 = l_Lean_Elab_Term_throwError___rarg(x_6, x_905, x_4, x_885); lean_dec(x_6); -return x_719; +return x_906; } else { -lean_object* x_720; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; uint8_t x_749; +lean_object* x_907; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; uint8_t x_936; lean_dec(x_90); lean_dec(x_11); -x_745 = l_Lean_Elab_Term_getOptions(x_4, x_699); -x_746 = lean_ctor_get(x_745, 0); -lean_inc(x_746); -x_747 = lean_ctor_get(x_745, 1); -lean_inc(x_747); -lean_dec(x_745); -x_748 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; -x_749 = l_Lean_checkTraceOption(x_746, x_748); -lean_dec(x_746); -if (x_749 == 0) +x_932 = l_Lean_Elab_Term_getOptions(x_4, x_885); +x_933 = lean_ctor_get(x_932, 0); +lean_inc(x_933); +x_934 = lean_ctor_get(x_932, 1); +lean_inc(x_934); +lean_dec(x_932); +x_935 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_936 = l_Lean_checkTraceOption(x_933, x_935); +lean_dec(x_933); +if (x_936 == 0) { -x_720 = x_747; -goto block_744; +x_907 = x_934; +goto block_931; } else { -lean_object* x_750; lean_object* x_751; lean_object* x_752; +lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_inc(x_2); -x_750 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_750, 0, x_2); -x_751 = l_Lean_Elab_Term_logTrace(x_748, x_6, x_750, x_4, x_747); -x_752 = lean_ctor_get(x_751, 1); -lean_inc(x_752); -lean_dec(x_751); -x_720 = x_752; -goto block_744; +x_937 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_937, 0, x_2); +x_938 = l_Lean_Elab_Term_logTrace(x_935, x_6, x_937, x_4, x_934); +x_939 = lean_ctor_get(x_938, 1); +lean_inc(x_939); +lean_dec(x_938); +x_907 = x_939; +goto block_931; } -block_744: +block_931: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_721; +lean_object* x_908; lean_dec(x_3); -x_721 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_720); +x_908 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_907); lean_dec(x_12); -if (lean_obj_tag(x_721) == 0) +if (lean_obj_tag(x_908) == 0) { -lean_object* x_722; lean_object* x_723; lean_object* x_724; -x_722 = lean_ctor_get(x_721, 1); -lean_inc(x_722); -if (lean_is_exclusive(x_721)) { - lean_ctor_release(x_721, 0); - lean_ctor_release(x_721, 1); - x_723 = x_721; +lean_object* x_909; lean_object* x_910; lean_object* x_911; +x_909 = lean_ctor_get(x_908, 1); +lean_inc(x_909); +if (lean_is_exclusive(x_908)) { + lean_ctor_release(x_908, 0); + lean_ctor_release(x_908, 1); + x_910 = x_908; } else { - lean_dec_ref(x_721); - x_723 = lean_box(0); + lean_dec_ref(x_908); + x_910 = lean_box(0); } -if (lean_is_scalar(x_723)) { - x_724 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_910)) { + x_911 = lean_alloc_ctor(0, 2, 0); } else { - x_724 = x_723; + x_911 = x_910; } -lean_ctor_set(x_724, 0, x_2); -lean_ctor_set(x_724, 1, x_722); -return x_724; +lean_ctor_set(x_911, 0, x_2); +lean_ctor_set(x_911, 1, x_909); +return x_911; } else { -lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; +lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_dec(x_2); -x_725 = lean_ctor_get(x_721, 0); -lean_inc(x_725); -x_726 = lean_ctor_get(x_721, 1); -lean_inc(x_726); -if (lean_is_exclusive(x_721)) { - lean_ctor_release(x_721, 0); - lean_ctor_release(x_721, 1); - x_727 = x_721; +x_912 = lean_ctor_get(x_908, 0); +lean_inc(x_912); +x_913 = lean_ctor_get(x_908, 1); +lean_inc(x_913); +if (lean_is_exclusive(x_908)) { + lean_ctor_release(x_908, 0); + lean_ctor_release(x_908, 1); + x_914 = x_908; } else { - lean_dec_ref(x_721); - x_727 = lean_box(0); + lean_dec_ref(x_908); + x_914 = lean_box(0); } -if (lean_is_scalar(x_727)) { - x_728 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_914)) { + x_915 = lean_alloc_ctor(1, 2, 0); } else { - x_728 = x_727; + x_915 = x_914; } -lean_ctor_set(x_728, 0, x_725); -lean_ctor_set(x_728, 1, x_726); -return x_728; +lean_ctor_set(x_915, 0, x_912); +lean_ctor_set(x_915, 1, x_913); +return x_915; } } else { -lean_object* x_729; lean_object* x_730; -x_729 = lean_ctor_get(x_8, 0); -lean_inc(x_729); +lean_object* x_916; lean_object* x_917; +x_916 = lean_ctor_get(x_8, 0); +lean_inc(x_916); lean_dec(x_8); lean_inc(x_4); -x_730 = l_Lean_Elab_Term_isDefEq(x_6, x_729, x_3, x_4, x_720); -if (lean_obj_tag(x_730) == 0) +x_917 = l_Lean_Elab_Term_isDefEq(x_6, x_916, x_3, x_4, x_907); +if (lean_obj_tag(x_917) == 0) { -lean_object* x_731; lean_object* x_732; -x_731 = lean_ctor_get(x_730, 1); -lean_inc(x_731); -lean_dec(x_730); -x_732 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_731); +lean_object* x_918; lean_object* x_919; +x_918 = lean_ctor_get(x_917, 1); +lean_inc(x_918); +lean_dec(x_917); +x_919 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_918); lean_dec(x_12); -if (lean_obj_tag(x_732) == 0) +if (lean_obj_tag(x_919) == 0) { -lean_object* x_733; lean_object* x_734; lean_object* x_735; -x_733 = lean_ctor_get(x_732, 1); -lean_inc(x_733); -if (lean_is_exclusive(x_732)) { - lean_ctor_release(x_732, 0); - lean_ctor_release(x_732, 1); - x_734 = x_732; +lean_object* x_920; lean_object* x_921; lean_object* x_922; +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_732); - x_734 = lean_box(0); + lean_dec_ref(x_919); + x_921 = lean_box(0); } -if (lean_is_scalar(x_734)) { - x_735 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_921)) { + x_922 = lean_alloc_ctor(0, 2, 0); } else { - x_735 = x_734; + x_922 = x_921; } -lean_ctor_set(x_735, 0, x_2); -lean_ctor_set(x_735, 1, x_733); -return x_735; +lean_ctor_set(x_922, 0, x_2); +lean_ctor_set(x_922, 1, x_920); +return x_922; } else { -lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; +lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_dec(x_2); -x_736 = lean_ctor_get(x_732, 0); -lean_inc(x_736); -x_737 = lean_ctor_get(x_732, 1); -lean_inc(x_737); -if (lean_is_exclusive(x_732)) { - lean_ctor_release(x_732, 0); - lean_ctor_release(x_732, 1); - x_738 = x_732; +x_923 = lean_ctor_get(x_919, 0); +lean_inc(x_923); +x_924 = lean_ctor_get(x_919, 1); +lean_inc(x_924); +if (lean_is_exclusive(x_919)) { + lean_ctor_release(x_919, 0); + lean_ctor_release(x_919, 1); + x_925 = x_919; } else { - lean_dec_ref(x_732); - x_738 = lean_box(0); + lean_dec_ref(x_919); + x_925 = lean_box(0); } -if (lean_is_scalar(x_738)) { - x_739 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_925)) { + x_926 = lean_alloc_ctor(1, 2, 0); } else { - x_739 = x_738; + x_926 = x_925; } -lean_ctor_set(x_739, 0, x_736); -lean_ctor_set(x_739, 1, x_737); -return x_739; +lean_ctor_set(x_926, 0, x_923); +lean_ctor_set(x_926, 1, x_924); +return x_926; } } else { -lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; +lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_dec(x_12); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_740 = lean_ctor_get(x_730, 0); -lean_inc(x_740); -x_741 = lean_ctor_get(x_730, 1); -lean_inc(x_741); -if (lean_is_exclusive(x_730)) { - lean_ctor_release(x_730, 0); - lean_ctor_release(x_730, 1); - x_742 = x_730; +x_927 = lean_ctor_get(x_917, 0); +lean_inc(x_927); +x_928 = lean_ctor_get(x_917, 1); +lean_inc(x_928); +if (lean_is_exclusive(x_917)) { + lean_ctor_release(x_917, 0); + lean_ctor_release(x_917, 1); + x_929 = x_917; } else { - lean_dec_ref(x_730); - x_742 = lean_box(0); + lean_dec_ref(x_917); + x_929 = lean_box(0); } -if (lean_is_scalar(x_742)) { - x_743 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_929)) { + x_930 = lean_alloc_ctor(1, 2, 0); } else { - x_743 = x_742; + x_930 = x_929; } -lean_ctor_set(x_743, 0, x_740); -lean_ctor_set(x_743, 1, x_741); -return x_743; +lean_ctor_set(x_930, 0, x_927); +lean_ctor_set(x_930, 1, x_928); +return x_930; } } } @@ -6144,249 +6878,470 @@ return x_743; } else { -lean_object* x_753; lean_object* x_754; lean_object* x_755; +lean_object* x_940; +lean_dec(x_90); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_3); +x_940 = lean_ctor_get(x_891, 0); +lean_inc(x_940); +lean_dec(x_891); +if (lean_obj_tag(x_940) == 4) +{ +lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; +x_941 = lean_ctor_get(x_940, 0); +lean_inc(x_941); +lean_dec(x_940); +x_942 = l_Lean_Elab_Term_getEnv___rarg(x_885); +x_943 = lean_ctor_get(x_942, 0); +lean_inc(x_943); +x_944 = lean_ctor_get(x_942, 1); +lean_inc(x_944); +lean_dec(x_942); +x_945 = l_Lean_Elab_evalSyntaxConstant(x_943, x_941); +if (lean_obj_tag(x_945) == 0) +{ +lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; +lean_dec(x_887); +lean_dec(x_92); +lean_dec(x_91); +lean_dec(x_2); +x_946 = lean_ctor_get(x_945, 0); +lean_inc(x_946); +lean_dec(x_945); +x_947 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_947, 0, x_946); +x_948 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_948, 0, x_947); +x_949 = l_Lean_Elab_Term_throwError___rarg(x_6, x_948, x_4, x_944); +lean_dec(x_6); +return x_949; +} +else +{ +lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; +x_950 = lean_ctor_get(x_945, 0); +lean_inc(x_950); +lean_dec(x_945); +x_951 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_944); +x_952 = lean_ctor_get(x_951, 1); +lean_inc(x_952); +lean_dec(x_951); +x_953 = l_Lean_Elab_Term_getMainModule___rarg(x_952); +x_954 = lean_ctor_get(x_953, 1); +lean_inc(x_954); +lean_dec(x_953); +x_955 = l_Lean_Syntax_getArgs(x_950); +lean_dec(x_950); +x_956 = l_Array_empty___closed__1; +x_957 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_955, x_955, x_94, x_956); +lean_dec(x_955); +x_958 = l_Lean_nullKind___closed__2; +x_959 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_959, 0, x_958); +lean_ctor_set(x_959, 1, x_957); +x_960 = lean_array_push(x_956, x_959); +x_961 = l_Lean_Parser_Tactic_seq___elambda__1___closed__4; +x_962 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_962, 0, x_961); +lean_ctor_set(x_962, 1, x_960); +x_963 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_964 = lean_array_push(x_963, x_962); +x_965 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; +x_966 = lean_array_push(x_964, x_965); +x_967 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_968 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_968, 0, x_967); +lean_ctor_set(x_968, 1, x_966); +x_969 = l_Lean_Syntax_getHeadInfo___main(x_6); +x_970 = l_Lean_Expr_getAppNumArgsAux___main(x_91, x_94); +x_971 = lean_nat_sub(x_970, x_94); +lean_dec(x_970); +x_972 = lean_unsigned_to_nat(1u); +x_973 = lean_nat_sub(x_971, x_972); +lean_dec(x_971); +x_974 = l_Lean_Expr_getRevArg_x21___main(x_91, x_973); +lean_dec(x_91); +if (lean_obj_tag(x_969) == 0) +{ +lean_object* x_975; lean_object* x_976; +x_975 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_975, 0, x_968); +lean_inc(x_4); +lean_inc(x_2); +x_976 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_975, x_974, x_4, x_954); +if (lean_obj_tag(x_976) == 0) +{ +lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; +x_977 = lean_ctor_get(x_976, 0); +lean_inc(x_977); +x_978 = lean_ctor_get(x_976, 1); +lean_inc(x_978); +lean_dec(x_976); +lean_inc(x_977); +x_979 = l_Lean_mkApp(x_2, x_977); +x_980 = lean_expr_instantiate1(x_92, x_977); +lean_dec(x_977); +lean_dec(x_92); +x_1 = x_887; +x_2 = x_979; +x_3 = x_980; +x_5 = x_978; +goto _start; +} +else +{ +lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; +lean_dec(x_887); +lean_dec(x_92); +lean_dec(x_4); +lean_dec(x_2); +x_982 = lean_ctor_get(x_976, 0); +lean_inc(x_982); +x_983 = lean_ctor_get(x_976, 1); +lean_inc(x_983); +if (lean_is_exclusive(x_976)) { + lean_ctor_release(x_976, 0); + lean_ctor_release(x_976, 1); + x_984 = x_976; +} else { + lean_dec_ref(x_976); + x_984 = lean_box(0); +} +if (lean_is_scalar(x_984)) { + x_985 = lean_alloc_ctor(1, 2, 0); +} else { + x_985 = x_984; +} +lean_ctor_set(x_985, 0, x_982); +lean_ctor_set(x_985, 1, x_983); +return x_985; +} +} +else +{ +lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; +x_986 = lean_ctor_get(x_969, 0); +lean_inc(x_986); +lean_dec(x_969); +x_987 = l_Lean_Syntax_replaceInfo___main(x_986, x_968); +x_988 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_988, 0, x_987); +lean_inc(x_4); +lean_inc(x_2); +x_989 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_988, x_974, x_4, x_954); +if (lean_obj_tag(x_989) == 0) +{ +lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; +x_990 = lean_ctor_get(x_989, 0); +lean_inc(x_990); +x_991 = lean_ctor_get(x_989, 1); +lean_inc(x_991); +lean_dec(x_989); +lean_inc(x_990); +x_992 = l_Lean_mkApp(x_2, x_990); +x_993 = lean_expr_instantiate1(x_92, x_990); +lean_dec(x_990); +lean_dec(x_92); +x_1 = x_887; +x_2 = x_992; +x_3 = x_993; +x_5 = x_991; +goto _start; +} +else +{ +lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; +lean_dec(x_887); +lean_dec(x_92); +lean_dec(x_4); +lean_dec(x_2); +x_995 = lean_ctor_get(x_989, 0); +lean_inc(x_995); +x_996 = lean_ctor_get(x_989, 1); +lean_inc(x_996); +if (lean_is_exclusive(x_989)) { + lean_ctor_release(x_989, 0); + lean_ctor_release(x_989, 1); + x_997 = x_989; +} else { + lean_dec_ref(x_989); + x_997 = lean_box(0); +} +if (lean_is_scalar(x_997)) { + x_998 = lean_alloc_ctor(1, 2, 0); +} else { + x_998 = x_997; +} +lean_ctor_set(x_998, 0, x_995); +lean_ctor_set(x_998, 1, x_996); +return x_998; +} +} +} +} +else +{ +lean_object* x_999; lean_object* x_1000; +lean_dec(x_940); +lean_dec(x_887); +lean_dec(x_92); +lean_dec(x_91); +lean_dec(x_2); +x_999 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_1000 = l_Lean_Elab_Term_throwError___rarg(x_6, x_999, x_4, x_885); +lean_dec(x_6); +return x_1000; +} +} +} +else +{ +lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; +lean_dec(x_91); lean_dec(x_90); lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); lean_dec(x_6); lean_dec(x_3); -x_753 = lean_ctor_get(x_704, 0); -lean_inc(x_753); -lean_dec(x_704); -lean_inc(x_753); -x_754 = l_Lean_mkApp(x_2, x_753); -x_755 = lean_expr_instantiate1(x_92, x_753); -lean_dec(x_753); +x_1001 = lean_ctor_get(x_890, 0); +lean_inc(x_1001); +lean_dec(x_890); +lean_inc(x_1001); +x_1002 = l_Lean_mkApp(x_2, x_1001); +x_1003 = lean_expr_instantiate1(x_92, x_1001); +lean_dec(x_1001); lean_dec(x_92); -x_1 = x_701; -x_2 = x_754; -x_3 = x_755; -x_5 = x_699; +x_1 = x_887; +x_2 = x_1002; +x_3 = x_1003; +x_5 = x_885; goto _start; } } else { -uint8_t x_757; -lean_dec(x_701); +uint8_t x_1005; +lean_dec(x_887); lean_dec(x_92); lean_dec(x_91); -x_757 = l_Array_isEmpty___rarg(x_11); -if (x_757 == 0) +x_1005 = l_Array_isEmpty___rarg(x_11); +if (x_1005 == 0) { -lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; +lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_758 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_758, 0, x_90); -x_759 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; -x_760 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_760, 0, x_759); -lean_ctor_set(x_760, 1, x_758); -x_761 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; -x_762 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_762, 0, x_760); -lean_ctor_set(x_762, 1, x_761); -x_763 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(x_94, x_11); -x_764 = l_Array_toList___rarg(x_763); -lean_dec(x_763); -x_765 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_764); -x_766 = l_Array_HasRepr___rarg___closed__1; -x_767 = lean_string_append(x_766, x_765); -lean_dec(x_765); -x_768 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_768, 0, x_767); -x_769 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_769, 0, x_768); -x_770 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_770, 0, x_762); -lean_ctor_set(x_770, 1, x_769); -x_771 = l_Lean_Elab_Term_throwError___rarg(x_6, x_770, x_4, x_699); +x_1006 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1006, 0, x_90); +x_1007 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1008 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1008, 0, x_1007); +lean_ctor_set(x_1008, 1, x_1006); +x_1009 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1010 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1010, 0, x_1008); +lean_ctor_set(x_1010, 1, x_1009); +x_1011 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_11); +x_1012 = l_Array_toList___rarg(x_1011); +lean_dec(x_1011); +x_1013 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1012); +x_1014 = l_Array_HasRepr___rarg___closed__1; +x_1015 = lean_string_append(x_1014, x_1013); +lean_dec(x_1013); +x_1016 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1016, 0, x_1015); +x_1017 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1017, 0, x_1016); +x_1018 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1018, 0, x_1010); +lean_ctor_set(x_1018, 1, x_1017); +x_1019 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1018, x_4, x_885); lean_dec(x_6); -return x_771; +return x_1019; } else { -lean_object* x_772; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; uint8_t x_801; +lean_object* x_1020; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; uint8_t x_1049; lean_dec(x_90); lean_dec(x_11); -x_797 = l_Lean_Elab_Term_getOptions(x_4, x_699); -x_798 = lean_ctor_get(x_797, 0); -lean_inc(x_798); -x_799 = lean_ctor_get(x_797, 1); -lean_inc(x_799); -lean_dec(x_797); -x_800 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; -x_801 = l_Lean_checkTraceOption(x_798, x_800); -lean_dec(x_798); -if (x_801 == 0) +x_1045 = l_Lean_Elab_Term_getOptions(x_4, x_885); +x_1046 = lean_ctor_get(x_1045, 0); +lean_inc(x_1046); +x_1047 = lean_ctor_get(x_1045, 1); +lean_inc(x_1047); +lean_dec(x_1045); +x_1048 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1049 = l_Lean_checkTraceOption(x_1046, x_1048); +lean_dec(x_1046); +if (x_1049 == 0) { -x_772 = x_799; -goto block_796; +x_1020 = x_1047; +goto block_1044; } else { -lean_object* x_802; lean_object* x_803; lean_object* x_804; +lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_inc(x_2); -x_802 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_802, 0, x_2); -x_803 = l_Lean_Elab_Term_logTrace(x_800, x_6, x_802, x_4, x_799); -x_804 = lean_ctor_get(x_803, 1); -lean_inc(x_804); -lean_dec(x_803); -x_772 = x_804; -goto block_796; +x_1050 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1050, 0, x_2); +x_1051 = l_Lean_Elab_Term_logTrace(x_1048, x_6, x_1050, x_4, x_1047); +x_1052 = lean_ctor_get(x_1051, 1); +lean_inc(x_1052); +lean_dec(x_1051); +x_1020 = x_1052; +goto block_1044; } -block_796: +block_1044: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_773; +lean_object* x_1021; lean_dec(x_3); -x_773 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_772); +x_1021 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1020); lean_dec(x_12); -if (lean_obj_tag(x_773) == 0) +if (lean_obj_tag(x_1021) == 0) { -lean_object* x_774; lean_object* x_775; lean_object* x_776; -x_774 = lean_ctor_get(x_773, 1); -lean_inc(x_774); -if (lean_is_exclusive(x_773)) { - lean_ctor_release(x_773, 0); - lean_ctor_release(x_773, 1); - x_775 = x_773; +lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; +x_1022 = lean_ctor_get(x_1021, 1); +lean_inc(x_1022); +if (lean_is_exclusive(x_1021)) { + lean_ctor_release(x_1021, 0); + lean_ctor_release(x_1021, 1); + x_1023 = x_1021; } else { - lean_dec_ref(x_773); - x_775 = lean_box(0); + lean_dec_ref(x_1021); + x_1023 = lean_box(0); } -if (lean_is_scalar(x_775)) { - x_776 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_1023)) { + x_1024 = lean_alloc_ctor(0, 2, 0); } else { - x_776 = x_775; + x_1024 = x_1023; } -lean_ctor_set(x_776, 0, x_2); -lean_ctor_set(x_776, 1, x_774); -return x_776; +lean_ctor_set(x_1024, 0, x_2); +lean_ctor_set(x_1024, 1, x_1022); +return x_1024; } else { -lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; +lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_dec(x_2); -x_777 = lean_ctor_get(x_773, 0); -lean_inc(x_777); -x_778 = lean_ctor_get(x_773, 1); -lean_inc(x_778); -if (lean_is_exclusive(x_773)) { - lean_ctor_release(x_773, 0); - lean_ctor_release(x_773, 1); - x_779 = x_773; +x_1025 = lean_ctor_get(x_1021, 0); +lean_inc(x_1025); +x_1026 = lean_ctor_get(x_1021, 1); +lean_inc(x_1026); +if (lean_is_exclusive(x_1021)) { + lean_ctor_release(x_1021, 0); + lean_ctor_release(x_1021, 1); + x_1027 = x_1021; } else { - lean_dec_ref(x_773); - x_779 = lean_box(0); + lean_dec_ref(x_1021); + x_1027 = lean_box(0); } -if (lean_is_scalar(x_779)) { - x_780 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1027)) { + x_1028 = lean_alloc_ctor(1, 2, 0); } else { - x_780 = x_779; + x_1028 = x_1027; } -lean_ctor_set(x_780, 0, x_777); -lean_ctor_set(x_780, 1, x_778); -return x_780; +lean_ctor_set(x_1028, 0, x_1025); +lean_ctor_set(x_1028, 1, x_1026); +return x_1028; } } else { -lean_object* x_781; lean_object* x_782; -x_781 = lean_ctor_get(x_8, 0); -lean_inc(x_781); +lean_object* x_1029; lean_object* x_1030; +x_1029 = lean_ctor_get(x_8, 0); +lean_inc(x_1029); lean_dec(x_8); lean_inc(x_4); -x_782 = l_Lean_Elab_Term_isDefEq(x_6, x_781, x_3, x_4, x_772); -if (lean_obj_tag(x_782) == 0) +x_1030 = l_Lean_Elab_Term_isDefEq(x_6, x_1029, x_3, x_4, x_1020); +if (lean_obj_tag(x_1030) == 0) { -lean_object* x_783; lean_object* x_784; -x_783 = lean_ctor_get(x_782, 1); -lean_inc(x_783); -lean_dec(x_782); -x_784 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_783); +lean_object* x_1031; lean_object* x_1032; +x_1031 = lean_ctor_get(x_1030, 1); +lean_inc(x_1031); +lean_dec(x_1030); +x_1032 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1031); lean_dec(x_12); -if (lean_obj_tag(x_784) == 0) +if (lean_obj_tag(x_1032) == 0) { -lean_object* x_785; lean_object* x_786; lean_object* x_787; -x_785 = lean_ctor_get(x_784, 1); -lean_inc(x_785); -if (lean_is_exclusive(x_784)) { - lean_ctor_release(x_784, 0); - lean_ctor_release(x_784, 1); - x_786 = x_784; +lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; +x_1033 = lean_ctor_get(x_1032, 1); +lean_inc(x_1033); +if (lean_is_exclusive(x_1032)) { + lean_ctor_release(x_1032, 0); + lean_ctor_release(x_1032, 1); + x_1034 = x_1032; } else { - lean_dec_ref(x_784); - x_786 = lean_box(0); + lean_dec_ref(x_1032); + x_1034 = lean_box(0); } -if (lean_is_scalar(x_786)) { - x_787 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_1034)) { + x_1035 = lean_alloc_ctor(0, 2, 0); } else { - x_787 = x_786; + x_1035 = x_1034; } -lean_ctor_set(x_787, 0, x_2); -lean_ctor_set(x_787, 1, x_785); -return x_787; +lean_ctor_set(x_1035, 0, x_2); +lean_ctor_set(x_1035, 1, x_1033); +return x_1035; } else { -lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; +lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_dec(x_2); -x_788 = lean_ctor_get(x_784, 0); -lean_inc(x_788); -x_789 = lean_ctor_get(x_784, 1); -lean_inc(x_789); -if (lean_is_exclusive(x_784)) { - lean_ctor_release(x_784, 0); - lean_ctor_release(x_784, 1); - x_790 = x_784; +x_1036 = lean_ctor_get(x_1032, 0); +lean_inc(x_1036); +x_1037 = lean_ctor_get(x_1032, 1); +lean_inc(x_1037); +if (lean_is_exclusive(x_1032)) { + lean_ctor_release(x_1032, 0); + lean_ctor_release(x_1032, 1); + x_1038 = x_1032; } else { - lean_dec_ref(x_784); - x_790 = lean_box(0); + lean_dec_ref(x_1032); + x_1038 = lean_box(0); } -if (lean_is_scalar(x_790)) { - x_791 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1038)) { + x_1039 = lean_alloc_ctor(1, 2, 0); } else { - x_791 = x_790; + x_1039 = x_1038; } -lean_ctor_set(x_791, 0, x_788); -lean_ctor_set(x_791, 1, x_789); -return x_791; +lean_ctor_set(x_1039, 0, x_1036); +lean_ctor_set(x_1039, 1, x_1037); +return x_1039; } } else { -lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; +lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_dec(x_12); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_792 = lean_ctor_get(x_782, 0); -lean_inc(x_792); -x_793 = lean_ctor_get(x_782, 1); -lean_inc(x_793); -if (lean_is_exclusive(x_782)) { - lean_ctor_release(x_782, 0); - lean_ctor_release(x_782, 1); - x_794 = x_782; +x_1040 = lean_ctor_get(x_1030, 0); +lean_inc(x_1040); +x_1041 = lean_ctor_get(x_1030, 1); +lean_inc(x_1041); +if (lean_is_exclusive(x_1030)) { + lean_ctor_release(x_1030, 0); + lean_ctor_release(x_1030, 1); + x_1042 = x_1030; } else { - lean_dec_ref(x_782); - x_794 = lean_box(0); + lean_dec_ref(x_1030); + x_1042 = lean_box(0); } -if (lean_is_scalar(x_794)) { - x_795 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1042)) { + x_1043 = lean_alloc_ctor(1, 2, 0); } else { - x_795 = x_794; + x_1043 = x_1042; } -lean_ctor_set(x_795, 0, x_792); -lean_ctor_set(x_795, 1, x_793); -return x_795; +lean_ctor_set(x_1043, 0, x_1040); +lean_ctor_set(x_1043, 1, x_1041); +return x_1043; } } } @@ -6395,50 +7350,50 @@ return x_795; } else { -lean_object* x_805; lean_object* x_806; -lean_dec(x_701); +lean_object* x_1053; lean_object* x_1054; +lean_dec(x_887); lean_dec(x_90); lean_dec(x_3); -x_805 = lean_array_fget(x_7, x_10); +x_1053 = lean_array_fget(x_7, x_10); lean_inc(x_4); lean_inc(x_2); lean_inc(x_6); -x_806 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_805, x_91, x_4, x_699); -if (lean_obj_tag(x_806) == 0) +x_1054 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_1053, x_91, x_4, x_885); +if (lean_obj_tag(x_1054) == 0) { -lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; -x_807 = lean_ctor_get(x_806, 0); -lean_inc(x_807); -x_808 = lean_ctor_get(x_806, 1); -lean_inc(x_808); -lean_dec(x_806); -x_809 = lean_unsigned_to_nat(1u); -x_810 = lean_nat_add(x_10, x_809); +lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; +x_1055 = lean_ctor_get(x_1054, 0); +lean_inc(x_1055); +x_1056 = lean_ctor_get(x_1054, 1); +lean_inc(x_1056); +lean_dec(x_1054); +x_1057 = lean_unsigned_to_nat(1u); +x_1058 = lean_nat_add(x_10, x_1057); lean_dec(x_10); -x_811 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_811, 0, x_6); -lean_ctor_set(x_811, 1, x_7); -lean_ctor_set(x_811, 2, x_8); -lean_ctor_set(x_811, 3, x_810); -lean_ctor_set(x_811, 4, x_11); -lean_ctor_set(x_811, 5, x_12); -lean_ctor_set(x_811, 6, x_13); -lean_ctor_set_uint8(x_811, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_811, sizeof(void*)*7 + 1, x_700); -lean_inc(x_807); -x_812 = l_Lean_mkApp(x_2, x_807); -x_813 = lean_expr_instantiate1(x_92, x_807); -lean_dec(x_807); +x_1059 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_1059, 0, x_6); +lean_ctor_set(x_1059, 1, x_7); +lean_ctor_set(x_1059, 2, x_8); +lean_ctor_set(x_1059, 3, x_1058); +lean_ctor_set(x_1059, 4, x_11); +lean_ctor_set(x_1059, 5, x_12); +lean_ctor_set(x_1059, 6, x_13); +lean_ctor_set_uint8(x_1059, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1059, sizeof(void*)*7 + 1, x_886); +lean_inc(x_1055); +x_1060 = l_Lean_mkApp(x_2, x_1055); +x_1061 = lean_expr_instantiate1(x_92, x_1055); +lean_dec(x_1055); lean_dec(x_92); -x_1 = x_811; -x_2 = x_812; -x_3 = x_813; -x_5 = x_808; +x_1 = x_1059; +x_2 = x_1060; +x_3 = x_1061; +x_5 = x_1056; goto _start; } else { -lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; +lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_dec(x_92); lean_dec(x_13); lean_dec(x_12); @@ -6449,32 +7404,32 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_815 = lean_ctor_get(x_806, 0); -lean_inc(x_815); -x_816 = lean_ctor_get(x_806, 1); -lean_inc(x_816); -if (lean_is_exclusive(x_806)) { - lean_ctor_release(x_806, 0); - lean_ctor_release(x_806, 1); - x_817 = x_806; +x_1063 = lean_ctor_get(x_1054, 0); +lean_inc(x_1063); +x_1064 = lean_ctor_get(x_1054, 1); +lean_inc(x_1064); +if (lean_is_exclusive(x_1054)) { + lean_ctor_release(x_1054, 0); + lean_ctor_release(x_1054, 1); + x_1065 = x_1054; } else { - lean_dec_ref(x_806); - x_817 = lean_box(0); + lean_dec_ref(x_1054); + x_1065 = lean_box(0); } -if (lean_is_scalar(x_817)) { - x_818 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1065)) { + x_1066 = lean_alloc_ctor(1, 2, 0); } else { - x_818 = x_817; + x_1066 = x_1065; } -lean_ctor_set(x_818, 0, x_815); -lean_ctor_set(x_818, 1, x_816); -return x_818; +lean_ctor_set(x_1066, 0, x_1063); +lean_ctor_set(x_1066, 1, x_1064); +return x_1066; } } } else { -lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; +lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_dec(x_92); lean_dec(x_91); lean_dec(x_90); @@ -6488,26 +7443,26 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_819 = lean_ctor_get(x_563, 0); -lean_inc(x_819); -x_820 = lean_ctor_get(x_563, 1); -lean_inc(x_820); -if (lean_is_exclusive(x_563)) { - lean_ctor_release(x_563, 0); - lean_ctor_release(x_563, 1); - x_821 = x_563; +x_1067 = lean_ctor_get(x_687, 0); +lean_inc(x_1067); +x_1068 = lean_ctor_get(x_687, 1); +lean_inc(x_1068); +if (lean_is_exclusive(x_687)) { + lean_ctor_release(x_687, 0); + lean_ctor_release(x_687, 1); + x_1069 = x_687; } else { - lean_dec_ref(x_563); - x_821 = lean_box(0); + lean_dec_ref(x_687); + x_1069 = lean_box(0); } -if (lean_is_scalar(x_821)) { - x_822 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1069)) { + x_1070 = lean_alloc_ctor(1, 2, 0); } else { - x_822 = x_821; + x_1070 = x_1069; } -lean_ctor_set(x_822, 0, x_819); -lean_ctor_set(x_822, 1, x_820); -return x_822; +lean_ctor_set(x_1070, 0, x_1067); +lean_ctor_set(x_1070, 1, x_1068); +return x_1070; } } } @@ -6515,1432 +7470,349 @@ case 3: { if (x_9 == 0) { -uint8_t x_823; -lean_dec(x_90); -lean_dec(x_16); -lean_dec(x_3); -x_823 = !lean_is_exclusive(x_1); -if (x_823 == 0) -{ -lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; uint8_t x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; -x_824 = lean_ctor_get(x_1, 6); -lean_dec(x_824); -x_825 = lean_ctor_get(x_1, 5); -lean_dec(x_825); -x_826 = lean_ctor_get(x_1, 4); -lean_dec(x_826); -x_827 = lean_ctor_get(x_1, 3); -lean_dec(x_827); -x_828 = lean_ctor_get(x_1, 2); -lean_dec(x_828); -x_829 = lean_ctor_get(x_1, 1); -lean_dec(x_829); -x_830 = lean_ctor_get(x_1, 0); -lean_dec(x_830); -x_831 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_831, 0, x_91); -x_832 = 1; -x_833 = lean_box(0); -lean_inc(x_4); -x_834 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_831, x_832, x_833, x_4, x_17); -x_835 = lean_ctor_get(x_834, 0); -lean_inc(x_835); -x_836 = lean_ctor_get(x_834, 1); -lean_inc(x_836); -lean_dec(x_834); -x_837 = l_Lean_Expr_mvarId_x21(x_835); -x_838 = lean_array_push(x_12, x_837); -lean_ctor_set(x_1, 5, x_838); -lean_inc(x_835); -x_839 = l_Lean_mkApp(x_2, x_835); -x_840 = lean_expr_instantiate1(x_92, x_835); -lean_dec(x_835); -lean_dec(x_92); -x_2 = x_839; -x_3 = x_840; -x_5 = x_836; -goto _start; -} -else -{ -lean_object* x_842; uint8_t x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; -lean_dec(x_1); -x_842 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_842, 0, x_91); -x_843 = 1; -x_844 = lean_box(0); -lean_inc(x_4); -x_845 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_842, x_843, x_844, x_4, x_17); -x_846 = lean_ctor_get(x_845, 0); -lean_inc(x_846); -x_847 = lean_ctor_get(x_845, 1); -lean_inc(x_847); -lean_dec(x_845); -x_848 = l_Lean_Expr_mvarId_x21(x_846); -x_849 = lean_array_push(x_12, x_848); -x_850 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_850, 0, x_6); -lean_ctor_set(x_850, 1, x_7); -lean_ctor_set(x_850, 2, x_8); -lean_ctor_set(x_850, 3, x_10); -lean_ctor_set(x_850, 4, x_11); -lean_ctor_set(x_850, 5, x_849); -lean_ctor_set(x_850, 6, x_13); -lean_ctor_set_uint8(x_850, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_850, sizeof(void*)*7 + 1, x_14); -lean_inc(x_846); -x_851 = l_Lean_mkApp(x_2, x_846); -x_852 = lean_expr_instantiate1(x_92, x_846); -lean_dec(x_846); -lean_dec(x_92); -x_1 = x_850; -x_2 = x_851; -x_3 = x_852; -x_5 = x_847; -goto _start; -} -} -else -{ -uint8_t x_854; -x_854 = l___private_Init_Lean_Elab_App_10__nextArgIsHole(x_1); -if (x_854 == 0) -{ -lean_object* x_855; uint8_t x_856; -lean_inc(x_4); -lean_inc(x_1); -x_855 = l___private_Init_Lean_Elab_App_9__propagateExpectedType(x_1, x_16, x_4, x_17); -x_856 = !lean_is_exclusive(x_1); -if (x_856 == 0) -{ -lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; -x_857 = lean_ctor_get(x_1, 6); -lean_dec(x_857); -x_858 = lean_ctor_get(x_1, 5); -lean_dec(x_858); -x_859 = lean_ctor_get(x_1, 4); -lean_dec(x_859); -x_860 = lean_ctor_get(x_1, 3); -lean_dec(x_860); -x_861 = lean_ctor_get(x_1, 2); -lean_dec(x_861); -x_862 = lean_ctor_get(x_1, 1); -lean_dec(x_862); -x_863 = lean_ctor_get(x_1, 0); -lean_dec(x_863); -if (lean_obj_tag(x_855) == 0) -{ -lean_object* x_864; lean_object* x_865; uint8_t x_866; -x_864 = lean_ctor_get(x_855, 1); -lean_inc(x_864); -lean_dec(x_855); -x_865 = lean_array_get_size(x_7); -x_866 = lean_nat_dec_lt(x_10, x_865); -lean_dec(x_865); -if (x_866 == 0) -{ -uint8_t x_867; -lean_free_object(x_1); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_13); -lean_dec(x_10); -lean_dec(x_7); -x_867 = l_Array_isEmpty___rarg(x_11); -if (x_867 == 0) -{ -lean_object* x_868; lean_object* x_869; lean_object* x_870; 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; lean_object* x_879; lean_object* x_880; lean_object* x_881; -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_868 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_868, 0, x_90); -x_869 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; -x_870 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_870, 0, x_869); -lean_ctor_set(x_870, 1, x_868); -x_871 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; -x_872 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_872, 0, x_870); -lean_ctor_set(x_872, 1, x_871); -x_873 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(x_94, x_11); -x_874 = l_Array_toList___rarg(x_873); -lean_dec(x_873); -x_875 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_874); -x_876 = l_Array_HasRepr___rarg___closed__1; -x_877 = lean_string_append(x_876, x_875); -lean_dec(x_875); -x_878 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_878, 0, x_877); -x_879 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_879, 0, x_878); -x_880 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_880, 0, x_872); -lean_ctor_set(x_880, 1, x_879); -x_881 = l_Lean_Elab_Term_throwError___rarg(x_6, x_880, x_4, x_864); -lean_dec(x_6); -return x_881; -} -else -{ -lean_object* x_882; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; uint8_t x_913; -lean_dec(x_90); -lean_dec(x_11); -x_909 = l_Lean_Elab_Term_getOptions(x_4, x_864); -x_910 = lean_ctor_get(x_909, 0); -lean_inc(x_910); -x_911 = lean_ctor_get(x_909, 1); -lean_inc(x_911); -lean_dec(x_909); -x_912 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; -x_913 = l_Lean_checkTraceOption(x_910, x_912); -lean_dec(x_910); -if (x_913 == 0) -{ -x_882 = x_911; -goto block_908; -} -else -{ -lean_object* x_914; lean_object* x_915; lean_object* x_916; -lean_inc(x_2); -x_914 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_914, 0, x_2); -x_915 = l_Lean_Elab_Term_logTrace(x_912, x_6, x_914, x_4, x_911); -x_916 = lean_ctor_get(x_915, 1); -lean_inc(x_916); -lean_dec(x_915); -x_882 = x_916; -goto block_908; -} -block_908: -{ -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_883; -lean_dec(x_3); -x_883 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_882); -lean_dec(x_12); -if (lean_obj_tag(x_883) == 0) -{ -uint8_t x_884; -x_884 = !lean_is_exclusive(x_883); -if (x_884 == 0) -{ -lean_object* x_885; -x_885 = lean_ctor_get(x_883, 0); -lean_dec(x_885); -lean_ctor_set(x_883, 0, x_2); -return x_883; -} -else -{ -lean_object* x_886; lean_object* x_887; -x_886 = lean_ctor_get(x_883, 1); -lean_inc(x_886); -lean_dec(x_883); -x_887 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_887, 0, x_2); -lean_ctor_set(x_887, 1, x_886); -return x_887; -} -} -else -{ -uint8_t x_888; -lean_dec(x_2); -x_888 = !lean_is_exclusive(x_883); -if (x_888 == 0) -{ -return x_883; -} -else -{ -lean_object* x_889; lean_object* x_890; lean_object* x_891; -x_889 = lean_ctor_get(x_883, 0); -x_890 = lean_ctor_get(x_883, 1); -lean_inc(x_890); -lean_inc(x_889); -lean_dec(x_883); -x_891 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_891, 0, x_889); -lean_ctor_set(x_891, 1, x_890); -return x_891; -} -} -} -else -{ -lean_object* x_892; lean_object* x_893; -x_892 = lean_ctor_get(x_8, 0); -lean_inc(x_892); -lean_dec(x_8); -lean_inc(x_4); -x_893 = l_Lean_Elab_Term_isDefEq(x_6, x_892, x_3, x_4, x_882); -if (lean_obj_tag(x_893) == 0) -{ -lean_object* x_894; lean_object* x_895; -x_894 = lean_ctor_get(x_893, 1); -lean_inc(x_894); -lean_dec(x_893); -x_895 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_894); -lean_dec(x_12); -if (lean_obj_tag(x_895) == 0) -{ -uint8_t x_896; -x_896 = !lean_is_exclusive(x_895); -if (x_896 == 0) -{ -lean_object* x_897; -x_897 = lean_ctor_get(x_895, 0); -lean_dec(x_897); -lean_ctor_set(x_895, 0, x_2); -return x_895; -} -else -{ -lean_object* x_898; lean_object* x_899; -x_898 = lean_ctor_get(x_895, 1); -lean_inc(x_898); -lean_dec(x_895); -x_899 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_899, 0, x_2); -lean_ctor_set(x_899, 1, x_898); -return x_899; -} -} -else -{ -uint8_t x_900; -lean_dec(x_2); -x_900 = !lean_is_exclusive(x_895); -if (x_900 == 0) -{ -return x_895; -} -else -{ -lean_object* x_901; lean_object* x_902; lean_object* x_903; -x_901 = lean_ctor_get(x_895, 0); -x_902 = lean_ctor_get(x_895, 1); -lean_inc(x_902); -lean_inc(x_901); -lean_dec(x_895); -x_903 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_903, 0, x_901); -lean_ctor_set(x_903, 1, x_902); -return x_903; -} -} -} -else -{ -uint8_t x_904; -lean_dec(x_12); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_904 = !lean_is_exclusive(x_893); -if (x_904 == 0) -{ -return x_893; -} -else -{ -lean_object* x_905; lean_object* x_906; lean_object* x_907; -x_905 = lean_ctor_get(x_893, 0); -x_906 = lean_ctor_get(x_893, 1); -lean_inc(x_906); -lean_inc(x_905); -lean_dec(x_893); -x_907 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_907, 0, x_905); -lean_ctor_set(x_907, 1, x_906); -return x_907; -} -} -} -} -} -} -else -{ -lean_object* x_917; lean_object* x_918; -lean_dec(x_90); -lean_dec(x_3); -x_917 = lean_array_fget(x_7, x_10); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_6); -x_918 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_917, x_91, x_4, x_864); -if (lean_obj_tag(x_918) == 0) -{ -lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; uint8_t x_923; lean_object* x_924; lean_object* x_925; -x_919 = lean_ctor_get(x_918, 0); -lean_inc(x_919); -x_920 = lean_ctor_get(x_918, 1); -lean_inc(x_920); -lean_dec(x_918); -x_921 = lean_unsigned_to_nat(1u); -x_922 = lean_nat_add(x_10, x_921); -lean_dec(x_10); -x_923 = 1; -lean_ctor_set(x_1, 3, x_922); -lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_923); -lean_inc(x_919); -x_924 = l_Lean_mkApp(x_2, x_919); -x_925 = lean_expr_instantiate1(x_92, x_919); -lean_dec(x_919); -lean_dec(x_92); -x_2 = x_924; -x_3 = x_925; -x_5 = x_920; -goto _start; -} -else -{ -uint8_t x_927; -lean_free_object(x_1); -lean_dec(x_92); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_927 = !lean_is_exclusive(x_918); -if (x_927 == 0) -{ -return x_918; -} -else -{ -lean_object* x_928; lean_object* x_929; lean_object* x_930; -x_928 = lean_ctor_get(x_918, 0); -x_929 = lean_ctor_get(x_918, 1); -lean_inc(x_929); -lean_inc(x_928); -lean_dec(x_918); -x_930 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_930, 0, x_928); -lean_ctor_set(x_930, 1, x_929); -return x_930; -} -} -} -} -else -{ -uint8_t x_931; -lean_free_object(x_1); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_90); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_931 = !lean_is_exclusive(x_855); -if (x_931 == 0) -{ -return x_855; -} -else -{ -lean_object* x_932; lean_object* x_933; lean_object* x_934; -x_932 = lean_ctor_get(x_855, 0); -x_933 = lean_ctor_get(x_855, 1); -lean_inc(x_933); -lean_inc(x_932); -lean_dec(x_855); -x_934 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_934, 0, x_932); -lean_ctor_set(x_934, 1, x_933); -return x_934; -} -} -} -else -{ -lean_dec(x_1); -if (lean_obj_tag(x_855) == 0) -{ -lean_object* x_935; lean_object* x_936; uint8_t x_937; -x_935 = lean_ctor_get(x_855, 1); -lean_inc(x_935); -lean_dec(x_855); -x_936 = lean_array_get_size(x_7); -x_937 = lean_nat_dec_lt(x_10, x_936); -lean_dec(x_936); -if (x_937 == 0) -{ -uint8_t x_938; -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_13); -lean_dec(x_10); -lean_dec(x_7); -x_938 = l_Array_isEmpty___rarg(x_11); -if (x_938 == 0) -{ -lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_939 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_939, 0, x_90); -x_940 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; -x_941 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_941, 0, x_940); -lean_ctor_set(x_941, 1, x_939); -x_942 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; -x_943 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_943, 0, x_941); -lean_ctor_set(x_943, 1, x_942); -x_944 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(x_94, x_11); -x_945 = l_Array_toList___rarg(x_944); -lean_dec(x_944); -x_946 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_945); -x_947 = l_Array_HasRepr___rarg___closed__1; -x_948 = lean_string_append(x_947, x_946); -lean_dec(x_946); -x_949 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_949, 0, x_948); -x_950 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_950, 0, x_949); -x_951 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_951, 0, x_943); -lean_ctor_set(x_951, 1, x_950); -x_952 = l_Lean_Elab_Term_throwError___rarg(x_6, x_951, x_4, x_935); -lean_dec(x_6); -return x_952; -} -else -{ -lean_object* x_953; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; uint8_t x_982; -lean_dec(x_90); -lean_dec(x_11); -x_978 = l_Lean_Elab_Term_getOptions(x_4, x_935); -x_979 = lean_ctor_get(x_978, 0); -lean_inc(x_979); -x_980 = lean_ctor_get(x_978, 1); -lean_inc(x_980); -lean_dec(x_978); -x_981 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; -x_982 = l_Lean_checkTraceOption(x_979, x_981); -lean_dec(x_979); -if (x_982 == 0) -{ -x_953 = x_980; -goto block_977; -} -else -{ -lean_object* x_983; lean_object* x_984; lean_object* x_985; -lean_inc(x_2); -x_983 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_983, 0, x_2); -x_984 = l_Lean_Elab_Term_logTrace(x_981, x_6, x_983, x_4, x_980); -x_985 = lean_ctor_get(x_984, 1); -lean_inc(x_985); -lean_dec(x_984); -x_953 = x_985; -goto block_977; -} -block_977: -{ -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_954; -lean_dec(x_3); -x_954 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_953); -lean_dec(x_12); -if (lean_obj_tag(x_954) == 0) -{ -lean_object* x_955; lean_object* x_956; lean_object* x_957; -x_955 = lean_ctor_get(x_954, 1); -lean_inc(x_955); -if (lean_is_exclusive(x_954)) { - lean_ctor_release(x_954, 0); - lean_ctor_release(x_954, 1); - x_956 = x_954; -} else { - lean_dec_ref(x_954); - x_956 = lean_box(0); -} -if (lean_is_scalar(x_956)) { - x_957 = lean_alloc_ctor(0, 2, 0); -} else { - x_957 = x_956; -} -lean_ctor_set(x_957, 0, x_2); -lean_ctor_set(x_957, 1, x_955); -return x_957; -} -else -{ -lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; -lean_dec(x_2); -x_958 = lean_ctor_get(x_954, 0); -lean_inc(x_958); -x_959 = lean_ctor_get(x_954, 1); -lean_inc(x_959); -if (lean_is_exclusive(x_954)) { - lean_ctor_release(x_954, 0); - lean_ctor_release(x_954, 1); - x_960 = x_954; -} else { - lean_dec_ref(x_954); - x_960 = lean_box(0); -} -if (lean_is_scalar(x_960)) { - x_961 = lean_alloc_ctor(1, 2, 0); -} else { - x_961 = x_960; -} -lean_ctor_set(x_961, 0, x_958); -lean_ctor_set(x_961, 1, x_959); -return x_961; -} -} -else -{ -lean_object* x_962; lean_object* x_963; -x_962 = lean_ctor_get(x_8, 0); -lean_inc(x_962); -lean_dec(x_8); -lean_inc(x_4); -x_963 = l_Lean_Elab_Term_isDefEq(x_6, x_962, x_3, x_4, x_953); -if (lean_obj_tag(x_963) == 0) -{ -lean_object* x_964; lean_object* x_965; -x_964 = lean_ctor_get(x_963, 1); -lean_inc(x_964); -lean_dec(x_963); -x_965 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_964); -lean_dec(x_12); -if (lean_obj_tag(x_965) == 0) -{ -lean_object* x_966; lean_object* x_967; lean_object* x_968; -x_966 = lean_ctor_get(x_965, 1); -lean_inc(x_966); -if (lean_is_exclusive(x_965)) { - lean_ctor_release(x_965, 0); - lean_ctor_release(x_965, 1); - x_967 = x_965; -} else { - lean_dec_ref(x_965); - x_967 = lean_box(0); -} -if (lean_is_scalar(x_967)) { - x_968 = lean_alloc_ctor(0, 2, 0); -} else { - x_968 = x_967; -} -lean_ctor_set(x_968, 0, x_2); -lean_ctor_set(x_968, 1, x_966); -return x_968; -} -else -{ -lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; -lean_dec(x_2); -x_969 = lean_ctor_get(x_965, 0); -lean_inc(x_969); -x_970 = lean_ctor_get(x_965, 1); -lean_inc(x_970); -if (lean_is_exclusive(x_965)) { - lean_ctor_release(x_965, 0); - lean_ctor_release(x_965, 1); - x_971 = x_965; -} else { - lean_dec_ref(x_965); - x_971 = lean_box(0); -} -if (lean_is_scalar(x_971)) { - x_972 = lean_alloc_ctor(1, 2, 0); -} else { - x_972 = x_971; -} -lean_ctor_set(x_972, 0, x_969); -lean_ctor_set(x_972, 1, x_970); -return x_972; -} -} -else -{ -lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; -lean_dec(x_12); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_973 = lean_ctor_get(x_963, 0); -lean_inc(x_973); -x_974 = lean_ctor_get(x_963, 1); -lean_inc(x_974); -if (lean_is_exclusive(x_963)) { - lean_ctor_release(x_963, 0); - lean_ctor_release(x_963, 1); - x_975 = x_963; -} else { - lean_dec_ref(x_963); - x_975 = lean_box(0); -} -if (lean_is_scalar(x_975)) { - x_976 = lean_alloc_ctor(1, 2, 0); -} else { - x_976 = x_975; -} -lean_ctor_set(x_976, 0, x_973); -lean_ctor_set(x_976, 1, x_974); -return x_976; -} -} -} -} -} -else -{ -lean_object* x_986; lean_object* x_987; -lean_dec(x_90); -lean_dec(x_3); -x_986 = lean_array_fget(x_7, x_10); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_6); -x_987 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_986, x_91, x_4, x_935); -if (lean_obj_tag(x_987) == 0) -{ -lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; uint8_t x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; -x_988 = lean_ctor_get(x_987, 0); -lean_inc(x_988); -x_989 = lean_ctor_get(x_987, 1); -lean_inc(x_989); -lean_dec(x_987); -x_990 = lean_unsigned_to_nat(1u); -x_991 = lean_nat_add(x_10, x_990); -lean_dec(x_10); -x_992 = 1; -x_993 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_993, 0, x_6); -lean_ctor_set(x_993, 1, x_7); -lean_ctor_set(x_993, 2, x_8); -lean_ctor_set(x_993, 3, x_991); -lean_ctor_set(x_993, 4, x_11); -lean_ctor_set(x_993, 5, x_12); -lean_ctor_set(x_993, 6, x_13); -lean_ctor_set_uint8(x_993, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_993, sizeof(void*)*7 + 1, x_992); -lean_inc(x_988); -x_994 = l_Lean_mkApp(x_2, x_988); -x_995 = lean_expr_instantiate1(x_92, x_988); -lean_dec(x_988); -lean_dec(x_92); -x_1 = x_993; -x_2 = x_994; -x_3 = x_995; -x_5 = x_989; -goto _start; -} -else -{ -lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; -lean_dec(x_92); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_997 = lean_ctor_get(x_987, 0); -lean_inc(x_997); -x_998 = lean_ctor_get(x_987, 1); -lean_inc(x_998); -if (lean_is_exclusive(x_987)) { - lean_ctor_release(x_987, 0); - lean_ctor_release(x_987, 1); - x_999 = x_987; -} else { - lean_dec_ref(x_987); - 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(x_1000, 0, x_997); -lean_ctor_set(x_1000, 1, x_998); -return x_1000; -} -} -} -else -{ -lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_90); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1001 = lean_ctor_get(x_855, 0); -lean_inc(x_1001); -x_1002 = lean_ctor_get(x_855, 1); -lean_inc(x_1002); -if (lean_is_exclusive(x_855)) { - lean_ctor_release(x_855, 0); - lean_ctor_release(x_855, 1); - x_1003 = x_855; -} else { - lean_dec_ref(x_855); - x_1003 = lean_box(0); -} -if (lean_is_scalar(x_1003)) { - x_1004 = lean_alloc_ctor(1, 2, 0); -} else { - x_1004 = x_1003; -} -lean_ctor_set(x_1004, 0, x_1001); -lean_ctor_set(x_1004, 1, x_1002); -return x_1004; -} -} -} -else -{ -uint8_t x_1005; -lean_dec(x_90); -lean_dec(x_16); -lean_dec(x_3); -x_1005 = !lean_is_exclusive(x_1); -if (x_1005 == 0) -{ -lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; uint8_t x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; -x_1006 = lean_ctor_get(x_1, 6); -lean_dec(x_1006); -x_1007 = lean_ctor_get(x_1, 5); -lean_dec(x_1007); -x_1008 = lean_ctor_get(x_1, 4); -lean_dec(x_1008); -x_1009 = lean_ctor_get(x_1, 3); -lean_dec(x_1009); -x_1010 = lean_ctor_get(x_1, 2); -lean_dec(x_1010); -x_1011 = lean_ctor_get(x_1, 1); -lean_dec(x_1011); -x_1012 = lean_ctor_get(x_1, 0); -lean_dec(x_1012); -x_1013 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1013, 0, x_91); -x_1014 = 1; -x_1015 = lean_box(0); -lean_inc(x_4); -x_1016 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_1013, x_1014, x_1015, x_4, x_17); -x_1017 = lean_ctor_get(x_1016, 0); -lean_inc(x_1017); -x_1018 = lean_ctor_get(x_1016, 1); -lean_inc(x_1018); -lean_dec(x_1016); -x_1019 = lean_unsigned_to_nat(1u); -x_1020 = lean_nat_add(x_10, x_1019); -lean_dec(x_10); -x_1021 = l_Lean_Expr_mvarId_x21(x_1017); -x_1022 = lean_array_push(x_12, x_1021); -lean_ctor_set(x_1, 5, x_1022); -lean_ctor_set(x_1, 3, x_1020); -lean_inc(x_1017); -x_1023 = l_Lean_mkApp(x_2, x_1017); -x_1024 = lean_expr_instantiate1(x_92, x_1017); -lean_dec(x_1017); -lean_dec(x_92); -x_2 = x_1023; -x_3 = x_1024; -x_5 = x_1018; -goto _start; -} -else -{ -lean_object* x_1026; uint8_t 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; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; -lean_dec(x_1); -x_1026 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1026, 0, x_91); -x_1027 = 1; -x_1028 = lean_box(0); -lean_inc(x_4); -x_1029 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_1026, x_1027, x_1028, x_4, x_17); -x_1030 = lean_ctor_get(x_1029, 0); -lean_inc(x_1030); -x_1031 = lean_ctor_get(x_1029, 1); -lean_inc(x_1031); -lean_dec(x_1029); -x_1032 = lean_unsigned_to_nat(1u); -x_1033 = lean_nat_add(x_10, x_1032); -lean_dec(x_10); -x_1034 = l_Lean_Expr_mvarId_x21(x_1030); -x_1035 = lean_array_push(x_12, x_1034); -x_1036 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_1036, 0, x_6); -lean_ctor_set(x_1036, 1, x_7); -lean_ctor_set(x_1036, 2, x_8); -lean_ctor_set(x_1036, 3, x_1033); -lean_ctor_set(x_1036, 4, x_11); -lean_ctor_set(x_1036, 5, x_1035); -lean_ctor_set(x_1036, 6, x_13); -lean_ctor_set_uint8(x_1036, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_1036, sizeof(void*)*7 + 1, x_14); -lean_inc(x_1030); -x_1037 = l_Lean_mkApp(x_2, x_1030); -x_1038 = lean_expr_instantiate1(x_92, x_1030); -lean_dec(x_1030); -lean_dec(x_92); -x_1 = x_1036; -x_2 = x_1037; -x_3 = x_1038; -x_5 = x_1031; -goto _start; -} -} -} -} -default: -{ -lean_object* x_1040; uint8_t x_1041; -lean_inc(x_4); -lean_inc(x_1); -x_1040 = l___private_Init_Lean_Elab_App_9__propagateExpectedType(x_1, x_16, x_4, x_17); -x_1041 = !lean_is_exclusive(x_1); -if (x_1041 == 0) -{ -lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; -x_1042 = lean_ctor_get(x_1, 6); -lean_dec(x_1042); -x_1043 = lean_ctor_get(x_1, 5); -lean_dec(x_1043); -x_1044 = lean_ctor_get(x_1, 4); -lean_dec(x_1044); -x_1045 = lean_ctor_get(x_1, 3); -lean_dec(x_1045); -x_1046 = lean_ctor_get(x_1, 2); -lean_dec(x_1046); -x_1047 = lean_ctor_get(x_1, 1); -lean_dec(x_1047); -x_1048 = lean_ctor_get(x_1, 0); -lean_dec(x_1048); -if (lean_obj_tag(x_1040) == 0) -{ -lean_object* x_1049; uint8_t x_1050; lean_object* x_1051; uint8_t x_1052; -x_1049 = lean_ctor_get(x_1040, 1); -lean_inc(x_1049); -lean_dec(x_1040); -x_1050 = 1; -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_1050); -x_1051 = lean_array_get_size(x_7); -x_1052 = lean_nat_dec_lt(x_10, x_1051); -lean_dec(x_1051); -if (x_1052 == 0) -{ -lean_dec(x_13); -lean_dec(x_10); -lean_dec(x_7); -if (x_9 == 0) -{ -lean_object* x_1053; -x_1053 = l_Lean_Expr_getOptParamDefault_x3f(x_91); -lean_dec(x_91); -if (lean_obj_tag(x_1053) == 0) -{ -uint8_t x_1054; -lean_dec(x_1); -lean_dec(x_92); -x_1054 = l_Array_isEmpty___rarg(x_11); -if (x_1054 == 0) -{ -lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_1055 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1055, 0, x_90); -x_1056 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; -x_1057 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1057, 0, x_1056); -lean_ctor_set(x_1057, 1, x_1055); -x_1058 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; -x_1059 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1059, 0, x_1057); -lean_ctor_set(x_1059, 1, x_1058); -x_1060 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(x_94, x_11); -x_1061 = l_Array_toList___rarg(x_1060); -lean_dec(x_1060); -x_1062 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1061); -x_1063 = l_Array_HasRepr___rarg___closed__1; -x_1064 = lean_string_append(x_1063, x_1062); -lean_dec(x_1062); -x_1065 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1065, 0, x_1064); -x_1066 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1066, 0, x_1065); -x_1067 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1067, 0, x_1059); -lean_ctor_set(x_1067, 1, x_1066); -x_1068 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1067, x_4, x_1049); -lean_dec(x_6); -return x_1068; -} -else -{ -lean_object* x_1069; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; uint8_t x_1100; -lean_dec(x_90); -lean_dec(x_11); -x_1096 = l_Lean_Elab_Term_getOptions(x_4, x_1049); -x_1097 = lean_ctor_get(x_1096, 0); -lean_inc(x_1097); -x_1098 = lean_ctor_get(x_1096, 1); -lean_inc(x_1098); -lean_dec(x_1096); -x_1099 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; -x_1100 = l_Lean_checkTraceOption(x_1097, x_1099); -lean_dec(x_1097); -if (x_1100 == 0) -{ -x_1069 = x_1098; -goto block_1095; -} -else -{ -lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; -lean_inc(x_2); -x_1101 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1101, 0, x_2); -x_1102 = l_Lean_Elab_Term_logTrace(x_1099, x_6, x_1101, x_4, x_1098); -x_1103 = lean_ctor_get(x_1102, 1); -lean_inc(x_1103); -lean_dec(x_1102); -x_1069 = x_1103; -goto block_1095; -} -block_1095: -{ -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_1070; -lean_dec(x_3); -x_1070 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1069); -lean_dec(x_12); -if (lean_obj_tag(x_1070) == 0) -{ uint8_t x_1071; -x_1071 = !lean_is_exclusive(x_1070); +lean_dec(x_90); +lean_dec(x_16); +lean_dec(x_3); +x_1071 = !lean_is_exclusive(x_1); if (x_1071 == 0) { -lean_object* x_1072; -x_1072 = lean_ctor_get(x_1070, 0); +lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; uint8_t x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; +x_1072 = lean_ctor_get(x_1, 6); lean_dec(x_1072); -lean_ctor_set(x_1070, 0, x_2); -return x_1070; -} -else -{ -lean_object* x_1073; lean_object* x_1074; -x_1073 = lean_ctor_get(x_1070, 1); -lean_inc(x_1073); -lean_dec(x_1070); -x_1074 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1074, 0, x_2); -lean_ctor_set(x_1074, 1, x_1073); -return x_1074; -} -} -else -{ -uint8_t x_1075; -lean_dec(x_2); -x_1075 = !lean_is_exclusive(x_1070); -if (x_1075 == 0) -{ -return x_1070; -} -else -{ -lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; -x_1076 = lean_ctor_get(x_1070, 0); -x_1077 = lean_ctor_get(x_1070, 1); -lean_inc(x_1077); -lean_inc(x_1076); -lean_dec(x_1070); -x_1078 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1078, 0, x_1076); -lean_ctor_set(x_1078, 1, x_1077); -return x_1078; -} -} -} -else -{ -lean_object* x_1079; lean_object* x_1080; -x_1079 = lean_ctor_get(x_8, 0); -lean_inc(x_1079); -lean_dec(x_8); +x_1073 = lean_ctor_get(x_1, 5); +lean_dec(x_1073); +x_1074 = lean_ctor_get(x_1, 4); +lean_dec(x_1074); +x_1075 = lean_ctor_get(x_1, 3); +lean_dec(x_1075); +x_1076 = lean_ctor_get(x_1, 2); +lean_dec(x_1076); +x_1077 = lean_ctor_get(x_1, 1); +lean_dec(x_1077); +x_1078 = lean_ctor_get(x_1, 0); +lean_dec(x_1078); +x_1079 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1079, 0, x_91); +x_1080 = 1; +x_1081 = lean_box(0); lean_inc(x_4); -x_1080 = l_Lean_Elab_Term_isDefEq(x_6, x_1079, x_3, x_4, x_1069); -if (lean_obj_tag(x_1080) == 0) -{ -lean_object* x_1081; lean_object* x_1082; -x_1081 = lean_ctor_get(x_1080, 1); -lean_inc(x_1081); -lean_dec(x_1080); -x_1082 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1081); -lean_dec(x_12); -if (lean_obj_tag(x_1082) == 0) -{ -uint8_t x_1083; -x_1083 = !lean_is_exclusive(x_1082); -if (x_1083 == 0) -{ -lean_object* x_1084; -x_1084 = lean_ctor_get(x_1082, 0); -lean_dec(x_1084); -lean_ctor_set(x_1082, 0, x_2); -return x_1082; -} -else -{ -lean_object* x_1085; lean_object* x_1086; -x_1085 = lean_ctor_get(x_1082, 1); -lean_inc(x_1085); +x_1082 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_1079, x_1080, x_1081, x_4, x_17); +x_1083 = lean_ctor_get(x_1082, 0); +lean_inc(x_1083); +x_1084 = lean_ctor_get(x_1082, 1); +lean_inc(x_1084); lean_dec(x_1082); -x_1086 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1086, 0, x_2); -lean_ctor_set(x_1086, 1, x_1085); -return x_1086; -} -} -else -{ -uint8_t x_1087; -lean_dec(x_2); -x_1087 = !lean_is_exclusive(x_1082); -if (x_1087 == 0) -{ -return x_1082; -} -else -{ -lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; -x_1088 = lean_ctor_get(x_1082, 0); -x_1089 = lean_ctor_get(x_1082, 1); -lean_inc(x_1089); -lean_inc(x_1088); -lean_dec(x_1082); -x_1090 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1090, 0, x_1088); -lean_ctor_set(x_1090, 1, x_1089); -return x_1090; -} -} -} -else -{ -uint8_t x_1091; -lean_dec(x_12); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_1091 = !lean_is_exclusive(x_1080); -if (x_1091 == 0) -{ -return x_1080; -} -else -{ -lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; -x_1092 = lean_ctor_get(x_1080, 0); -x_1093 = lean_ctor_get(x_1080, 1); -lean_inc(x_1093); -lean_inc(x_1092); -lean_dec(x_1080); -x_1094 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1094, 0, x_1092); -lean_ctor_set(x_1094, 1, x_1093); -return x_1094; -} -} -} -} -} -} -else -{ -lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; -lean_dec(x_90); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_3); -x_1104 = lean_ctor_get(x_1053, 0); -lean_inc(x_1104); -lean_dec(x_1053); -lean_inc(x_1104); -x_1105 = l_Lean_mkApp(x_2, x_1104); -x_1106 = lean_expr_instantiate1(x_92, x_1104); -lean_dec(x_1104); +x_1085 = l_Lean_Expr_mvarId_x21(x_1083); +x_1086 = lean_array_push(x_12, x_1085); +lean_ctor_set(x_1, 5, x_1086); +lean_inc(x_1083); +x_1087 = l_Lean_mkApp(x_2, x_1083); +x_1088 = lean_expr_instantiate1(x_92, x_1083); +lean_dec(x_1083); lean_dec(x_92); -x_2 = x_1105; -x_3 = x_1106; -x_5 = x_1049; +x_2 = x_1087; +x_3 = x_1088; +x_5 = x_1084; +goto _start; +} +else +{ +lean_object* x_1090; uint8_t x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; +lean_dec(x_1); +x_1090 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1090, 0, x_91); +x_1091 = 1; +x_1092 = lean_box(0); +lean_inc(x_4); +x_1093 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_1090, x_1091, x_1092, x_4, x_17); +x_1094 = lean_ctor_get(x_1093, 0); +lean_inc(x_1094); +x_1095 = lean_ctor_get(x_1093, 1); +lean_inc(x_1095); +lean_dec(x_1093); +x_1096 = l_Lean_Expr_mvarId_x21(x_1094); +x_1097 = lean_array_push(x_12, x_1096); +x_1098 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_1098, 0, x_6); +lean_ctor_set(x_1098, 1, x_7); +lean_ctor_set(x_1098, 2, x_8); +lean_ctor_set(x_1098, 3, x_10); +lean_ctor_set(x_1098, 4, x_11); +lean_ctor_set(x_1098, 5, x_1097); +lean_ctor_set(x_1098, 6, x_13); +lean_ctor_set_uint8(x_1098, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1098, sizeof(void*)*7 + 1, x_14); +lean_inc(x_1094); +x_1099 = l_Lean_mkApp(x_2, x_1094); +x_1100 = lean_expr_instantiate1(x_92, x_1094); +lean_dec(x_1094); +lean_dec(x_92); +x_1 = x_1098; +x_2 = x_1099; +x_3 = x_1100; +x_5 = x_1095; goto _start; } } else { -uint8_t x_1108; -lean_dec(x_1); +uint8_t x_1102; +x_1102 = l___private_Init_Lean_Elab_App_9__nextArgIsHole(x_1); +if (x_1102 == 0) +{ +lean_object* x_1103; uint8_t x_1104; +lean_inc(x_4); +lean_inc(x_1); +x_1103 = l___private_Init_Lean_Elab_App_8__propagateExpectedType(x_1, x_16, x_4, x_17); +x_1104 = !lean_is_exclusive(x_1); +if (x_1104 == 0) +{ +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; +x_1105 = lean_ctor_get(x_1, 6); +lean_dec(x_1105); +x_1106 = lean_ctor_get(x_1, 5); +lean_dec(x_1106); +x_1107 = lean_ctor_get(x_1, 4); +lean_dec(x_1107); +x_1108 = lean_ctor_get(x_1, 3); +lean_dec(x_1108); +x_1109 = lean_ctor_get(x_1, 2); +lean_dec(x_1109); +x_1110 = lean_ctor_get(x_1, 1); +lean_dec(x_1110); +x_1111 = lean_ctor_get(x_1, 0); +lean_dec(x_1111); +if (lean_obj_tag(x_1103) == 0) +{ +lean_object* x_1112; lean_object* x_1113; uint8_t x_1114; +x_1112 = lean_ctor_get(x_1103, 1); +lean_inc(x_1112); +lean_dec(x_1103); +x_1113 = lean_array_get_size(x_7); +x_1114 = lean_nat_dec_lt(x_10, x_1113); +lean_dec(x_1113); +if (x_1114 == 0) +{ +uint8_t x_1115; +lean_free_object(x_1); lean_dec(x_92); lean_dec(x_91); -x_1108 = l_Array_isEmpty___rarg(x_11); -if (x_1108 == 0) +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +x_1115 = l_Array_isEmpty___rarg(x_11); +if (x_1115 == 0) { -lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; +lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_1109 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1109, 0, x_90); -x_1110 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; -x_1111 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1111, 0, x_1110); -lean_ctor_set(x_1111, 1, x_1109); -x_1112 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; -x_1113 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1113, 0, x_1111); -lean_ctor_set(x_1113, 1, x_1112); -x_1114 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(x_94, x_11); -x_1115 = l_Array_toList___rarg(x_1114); -lean_dec(x_1114); -x_1116 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1115); -x_1117 = l_Array_HasRepr___rarg___closed__1; -x_1118 = lean_string_append(x_1117, x_1116); -lean_dec(x_1116); -x_1119 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1119, 0, x_1118); -x_1120 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1120, 0, x_1119); -x_1121 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1121, 0, x_1113); -lean_ctor_set(x_1121, 1, x_1120); -x_1122 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1121, x_4, x_1049); +x_1116 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1116, 0, x_90); +x_1117 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1118 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1118, 0, x_1117); +lean_ctor_set(x_1118, 1, x_1116); +x_1119 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1120 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1120, 0, x_1118); +lean_ctor_set(x_1120, 1, x_1119); +x_1121 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_11); +x_1122 = l_Array_toList___rarg(x_1121); +lean_dec(x_1121); +x_1123 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1122); +x_1124 = l_Array_HasRepr___rarg___closed__1; +x_1125 = lean_string_append(x_1124, x_1123); +lean_dec(x_1123); +x_1126 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1126, 0, x_1125); +x_1127 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1127, 0, x_1126); +x_1128 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1128, 0, x_1120); +lean_ctor_set(x_1128, 1, x_1127); +x_1129 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1128, x_4, x_1112); lean_dec(x_6); -return x_1122; +return x_1129; } else { -lean_object* x_1123; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; uint8_t x_1154; +lean_object* x_1130; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; uint8_t x_1161; lean_dec(x_90); lean_dec(x_11); -x_1150 = l_Lean_Elab_Term_getOptions(x_4, x_1049); -x_1151 = lean_ctor_get(x_1150, 0); -lean_inc(x_1151); -x_1152 = lean_ctor_get(x_1150, 1); -lean_inc(x_1152); -lean_dec(x_1150); -x_1153 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; -x_1154 = l_Lean_checkTraceOption(x_1151, x_1153); -lean_dec(x_1151); -if (x_1154 == 0) +x_1157 = l_Lean_Elab_Term_getOptions(x_4, x_1112); +x_1158 = lean_ctor_get(x_1157, 0); +lean_inc(x_1158); +x_1159 = lean_ctor_get(x_1157, 1); +lean_inc(x_1159); +lean_dec(x_1157); +x_1160 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1161 = l_Lean_checkTraceOption(x_1158, x_1160); +lean_dec(x_1158); +if (x_1161 == 0) { -x_1123 = x_1152; -goto block_1149; +x_1130 = x_1159; +goto block_1156; } else { -lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; +lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_inc(x_2); -x_1155 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1155, 0, x_2); -x_1156 = l_Lean_Elab_Term_logTrace(x_1153, x_6, x_1155, x_4, x_1152); -x_1157 = lean_ctor_get(x_1156, 1); -lean_inc(x_1157); -lean_dec(x_1156); -x_1123 = x_1157; -goto block_1149; +x_1162 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1162, 0, x_2); +x_1163 = l_Lean_Elab_Term_logTrace(x_1160, x_6, x_1162, x_4, x_1159); +x_1164 = lean_ctor_get(x_1163, 1); +lean_inc(x_1164); +lean_dec(x_1163); +x_1130 = x_1164; +goto block_1156; } -block_1149: +block_1156: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_1124; +lean_object* x_1131; lean_dec(x_3); -x_1124 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1123); +x_1131 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1130); lean_dec(x_12); -if (lean_obj_tag(x_1124) == 0) +if (lean_obj_tag(x_1131) == 0) { -uint8_t x_1125; -x_1125 = !lean_is_exclusive(x_1124); -if (x_1125 == 0) +uint8_t x_1132; +x_1132 = !lean_is_exclusive(x_1131); +if (x_1132 == 0) { -lean_object* x_1126; -x_1126 = lean_ctor_get(x_1124, 0); -lean_dec(x_1126); -lean_ctor_set(x_1124, 0, x_2); -return x_1124; +lean_object* x_1133; +x_1133 = lean_ctor_get(x_1131, 0); +lean_dec(x_1133); +lean_ctor_set(x_1131, 0, x_2); +return x_1131; } else { -lean_object* x_1127; lean_object* x_1128; -x_1127 = lean_ctor_get(x_1124, 1); -lean_inc(x_1127); -lean_dec(x_1124); -x_1128 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1128, 0, x_2); -lean_ctor_set(x_1128, 1, x_1127); -return x_1128; +lean_object* x_1134; lean_object* x_1135; +x_1134 = lean_ctor_get(x_1131, 1); +lean_inc(x_1134); +lean_dec(x_1131); +x_1135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1135, 0, x_2); +lean_ctor_set(x_1135, 1, x_1134); +return x_1135; } } else { -uint8_t x_1129; +uint8_t x_1136; lean_dec(x_2); -x_1129 = !lean_is_exclusive(x_1124); -if (x_1129 == 0) +x_1136 = !lean_is_exclusive(x_1131); +if (x_1136 == 0) { -return x_1124; +return x_1131; } else { -lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; -x_1130 = lean_ctor_get(x_1124, 0); -x_1131 = lean_ctor_get(x_1124, 1); -lean_inc(x_1131); -lean_inc(x_1130); -lean_dec(x_1124); -x_1132 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1132, 0, x_1130); -lean_ctor_set(x_1132, 1, x_1131); -return x_1132; +lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; +x_1137 = lean_ctor_get(x_1131, 0); +x_1138 = lean_ctor_get(x_1131, 1); +lean_inc(x_1138); +lean_inc(x_1137); +lean_dec(x_1131); +x_1139 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1139, 0, x_1137); +lean_ctor_set(x_1139, 1, x_1138); +return x_1139; } } } else { -lean_object* x_1133; lean_object* x_1134; -x_1133 = lean_ctor_get(x_8, 0); -lean_inc(x_1133); +lean_object* x_1140; lean_object* x_1141; +x_1140 = lean_ctor_get(x_8, 0); +lean_inc(x_1140); lean_dec(x_8); lean_inc(x_4); -x_1134 = l_Lean_Elab_Term_isDefEq(x_6, x_1133, x_3, x_4, x_1123); -if (lean_obj_tag(x_1134) == 0) +x_1141 = l_Lean_Elab_Term_isDefEq(x_6, x_1140, x_3, x_4, x_1130); +if (lean_obj_tag(x_1141) == 0) { -lean_object* x_1135; lean_object* x_1136; -x_1135 = lean_ctor_get(x_1134, 1); -lean_inc(x_1135); -lean_dec(x_1134); -x_1136 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1135); -lean_dec(x_12); -if (lean_obj_tag(x_1136) == 0) -{ -uint8_t x_1137; -x_1137 = !lean_is_exclusive(x_1136); -if (x_1137 == 0) -{ -lean_object* x_1138; -x_1138 = lean_ctor_get(x_1136, 0); -lean_dec(x_1138); -lean_ctor_set(x_1136, 0, x_2); -return x_1136; -} -else -{ -lean_object* x_1139; lean_object* x_1140; -x_1139 = lean_ctor_get(x_1136, 1); -lean_inc(x_1139); -lean_dec(x_1136); -x_1140 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1140, 0, x_2); -lean_ctor_set(x_1140, 1, x_1139); -return x_1140; -} -} -else -{ -uint8_t x_1141; -lean_dec(x_2); -x_1141 = !lean_is_exclusive(x_1136); -if (x_1141 == 0) -{ -return x_1136; -} -else -{ -lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; -x_1142 = lean_ctor_get(x_1136, 0); -x_1143 = lean_ctor_get(x_1136, 1); -lean_inc(x_1143); +lean_object* x_1142; lean_object* x_1143; +x_1142 = lean_ctor_get(x_1141, 1); lean_inc(x_1142); -lean_dec(x_1136); -x_1144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1144, 0, x_1142); -lean_ctor_set(x_1144, 1, x_1143); -return x_1144; +lean_dec(x_1141); +x_1143 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1142); +lean_dec(x_12); +if (lean_obj_tag(x_1143) == 0) +{ +uint8_t x_1144; +x_1144 = !lean_is_exclusive(x_1143); +if (x_1144 == 0) +{ +lean_object* x_1145; +x_1145 = lean_ctor_get(x_1143, 0); +lean_dec(x_1145); +lean_ctor_set(x_1143, 0, x_2); +return x_1143; +} +else +{ +lean_object* x_1146; lean_object* x_1147; +x_1146 = lean_ctor_get(x_1143, 1); +lean_inc(x_1146); +lean_dec(x_1143); +x_1147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1147, 0, x_2); +lean_ctor_set(x_1147, 1, x_1146); +return x_1147; +} +} +else +{ +uint8_t x_1148; +lean_dec(x_2); +x_1148 = !lean_is_exclusive(x_1143); +if (x_1148 == 0) +{ +return x_1143; +} +else +{ +lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; +x_1149 = lean_ctor_get(x_1143, 0); +x_1150 = lean_ctor_get(x_1143, 1); +lean_inc(x_1150); +lean_inc(x_1149); +lean_dec(x_1143); +x_1151 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1151, 0, x_1149); +lean_ctor_set(x_1151, 1, x_1150); +return x_1151; } } } else { -uint8_t x_1145; +uint8_t x_1152; lean_dec(x_12); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_1145 = !lean_is_exclusive(x_1134); -if (x_1145 == 0) +x_1152 = !lean_is_exclusive(x_1141); +if (x_1152 == 0) { -return x_1134; +return x_1141; } else { -lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; -x_1146 = lean_ctor_get(x_1134, 0); -x_1147 = lean_ctor_get(x_1134, 1); -lean_inc(x_1147); -lean_inc(x_1146); -lean_dec(x_1134); -x_1148 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1148, 0, x_1146); -lean_ctor_set(x_1148, 1, x_1147); -return x_1148; -} +lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; +x_1153 = lean_ctor_get(x_1141, 0); +x_1154 = lean_ctor_get(x_1141, 1); +lean_inc(x_1154); +lean_inc(x_1153); +lean_dec(x_1141); +x_1155 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1155, 0, x_1153); +lean_ctor_set(x_1155, 1, x_1154); +return x_1155; } } } @@ -7949,50 +7821,42 @@ return x_1148; } else { -lean_object* x_1158; lean_object* x_1159; -lean_dec(x_1); +lean_object* x_1165; lean_object* x_1166; lean_dec(x_90); lean_dec(x_3); -x_1158 = lean_array_fget(x_7, x_10); +x_1165 = lean_array_fget(x_7, x_10); lean_inc(x_4); lean_inc(x_2); lean_inc(x_6); -x_1159 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_1158, x_91, x_4, x_1049); -if (lean_obj_tag(x_1159) == 0) +x_1166 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_1165, x_91, x_4, x_1112); +if (lean_obj_tag(x_1166) == 0) { -lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; -x_1160 = lean_ctor_get(x_1159, 0); -lean_inc(x_1160); -x_1161 = lean_ctor_get(x_1159, 1); -lean_inc(x_1161); -lean_dec(x_1159); -x_1162 = lean_unsigned_to_nat(1u); -x_1163 = lean_nat_add(x_10, x_1162); +lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; uint8_t x_1171; lean_object* x_1172; lean_object* x_1173; +x_1167 = lean_ctor_get(x_1166, 0); +lean_inc(x_1167); +x_1168 = lean_ctor_get(x_1166, 1); +lean_inc(x_1168); +lean_dec(x_1166); +x_1169 = lean_unsigned_to_nat(1u); +x_1170 = lean_nat_add(x_10, x_1169); lean_dec(x_10); -x_1164 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_1164, 0, x_6); -lean_ctor_set(x_1164, 1, x_7); -lean_ctor_set(x_1164, 2, x_8); -lean_ctor_set(x_1164, 3, x_1163); -lean_ctor_set(x_1164, 4, x_11); -lean_ctor_set(x_1164, 5, x_12); -lean_ctor_set(x_1164, 6, x_13); -lean_ctor_set_uint8(x_1164, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_1164, sizeof(void*)*7 + 1, x_1050); -lean_inc(x_1160); -x_1165 = l_Lean_mkApp(x_2, x_1160); -x_1166 = lean_expr_instantiate1(x_92, x_1160); -lean_dec(x_1160); +x_1171 = 1; +lean_ctor_set(x_1, 3, x_1170); +lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_1171); +lean_inc(x_1167); +x_1172 = l_Lean_mkApp(x_2, x_1167); +x_1173 = lean_expr_instantiate1(x_92, x_1167); +lean_dec(x_1167); lean_dec(x_92); -x_1 = x_1164; -x_2 = x_1165; -x_3 = x_1166; -x_5 = x_1161; +x_2 = x_1172; +x_3 = x_1173; +x_5 = x_1168; goto _start; } else { -uint8_t x_1168; +uint8_t x_1175; +lean_free_object(x_1); lean_dec(x_92); lean_dec(x_13); lean_dec(x_12); @@ -8003,30 +7867,30 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_1168 = !lean_is_exclusive(x_1159); -if (x_1168 == 0) +x_1175 = !lean_is_exclusive(x_1166); +if (x_1175 == 0) { -return x_1159; +return x_1166; } else { -lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; -x_1169 = lean_ctor_get(x_1159, 0); -x_1170 = lean_ctor_get(x_1159, 1); -lean_inc(x_1170); -lean_inc(x_1169); -lean_dec(x_1159); -x_1171 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1171, 0, x_1169); -lean_ctor_set(x_1171, 1, x_1170); -return x_1171; +lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; +x_1176 = lean_ctor_get(x_1166, 0); +x_1177 = lean_ctor_get(x_1166, 1); +lean_inc(x_1177); +lean_inc(x_1176); +lean_dec(x_1166); +x_1178 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1178, 0, x_1176); +lean_ctor_set(x_1178, 1, x_1177); +return x_1178; } } } } else { -uint8_t x_1172; +uint8_t x_1179; lean_free_object(x_1); lean_dec(x_92); lean_dec(x_91); @@ -8041,276 +7905,222 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_1172 = !lean_is_exclusive(x_1040); -if (x_1172 == 0) +x_1179 = !lean_is_exclusive(x_1103); +if (x_1179 == 0) { -return x_1040; +return x_1103; } else { -lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; -x_1173 = lean_ctor_get(x_1040, 0); -x_1174 = lean_ctor_get(x_1040, 1); -lean_inc(x_1174); -lean_inc(x_1173); -lean_dec(x_1040); -x_1175 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1175, 0, x_1173); -lean_ctor_set(x_1175, 1, x_1174); -return x_1175; +lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; +x_1180 = lean_ctor_get(x_1103, 0); +x_1181 = lean_ctor_get(x_1103, 1); +lean_inc(x_1181); +lean_inc(x_1180); +lean_dec(x_1103); +x_1182 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1182, 0, x_1180); +lean_ctor_set(x_1182, 1, x_1181); +return x_1182; } } } else { lean_dec(x_1); -if (lean_obj_tag(x_1040) == 0) +if (lean_obj_tag(x_1103) == 0) { -lean_object* x_1176; uint8_t x_1177; lean_object* x_1178; lean_object* x_1179; uint8_t x_1180; -x_1176 = lean_ctor_get(x_1040, 1); -lean_inc(x_1176); -lean_dec(x_1040); -x_1177 = 1; -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_1178 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_1178, 0, x_6); -lean_ctor_set(x_1178, 1, x_7); -lean_ctor_set(x_1178, 2, x_8); -lean_ctor_set(x_1178, 3, x_10); -lean_ctor_set(x_1178, 4, x_11); -lean_ctor_set(x_1178, 5, x_12); -lean_ctor_set(x_1178, 6, x_13); -lean_ctor_set_uint8(x_1178, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_1178, sizeof(void*)*7 + 1, x_1177); -x_1179 = lean_array_get_size(x_7); -x_1180 = lean_nat_dec_lt(x_10, x_1179); -lean_dec(x_1179); -if (x_1180 == 0) +lean_object* x_1183; lean_object* x_1184; uint8_t x_1185; +x_1183 = lean_ctor_get(x_1103, 1); +lean_inc(x_1183); +lean_dec(x_1103); +x_1184 = lean_array_get_size(x_7); +x_1185 = lean_nat_dec_lt(x_10, x_1184); +lean_dec(x_1184); +if (x_1185 == 0) { +uint8_t x_1186; +lean_dec(x_92); +lean_dec(x_91); lean_dec(x_13); lean_dec(x_10); lean_dec(x_7); -if (x_9 == 0) +x_1186 = l_Array_isEmpty___rarg(x_11); +if (x_1186 == 0) { -lean_object* x_1181; -x_1181 = l_Lean_Expr_getOptParamDefault_x3f(x_91); -lean_dec(x_91); -if (lean_obj_tag(x_1181) == 0) -{ -uint8_t x_1182; -lean_dec(x_1178); -lean_dec(x_92); -x_1182 = l_Array_isEmpty___rarg(x_11); -if (x_1182 == 0) -{ -lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; +lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_1183 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1183, 0, x_90); -x_1184 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; -x_1185 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1185, 0, x_1184); -lean_ctor_set(x_1185, 1, x_1183); -x_1186 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; -x_1187 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1187, 0, x_1185); -lean_ctor_set(x_1187, 1, x_1186); -x_1188 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(x_94, x_11); -x_1189 = l_Array_toList___rarg(x_1188); -lean_dec(x_1188); -x_1190 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1189); -x_1191 = l_Array_HasRepr___rarg___closed__1; -x_1192 = lean_string_append(x_1191, x_1190); -lean_dec(x_1190); -x_1193 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1193, 0, x_1192); -x_1194 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1194, 0, x_1193); -x_1195 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1195, 0, x_1187); -lean_ctor_set(x_1195, 1, x_1194); -x_1196 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1195, x_4, x_1176); +x_1187 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1187, 0, x_90); +x_1188 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1189 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1189, 0, x_1188); +lean_ctor_set(x_1189, 1, x_1187); +x_1190 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1191 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1191, 0, x_1189); +lean_ctor_set(x_1191, 1, x_1190); +x_1192 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_11); +x_1193 = l_Array_toList___rarg(x_1192); +lean_dec(x_1192); +x_1194 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1193); +x_1195 = l_Array_HasRepr___rarg___closed__1; +x_1196 = lean_string_append(x_1195, x_1194); +lean_dec(x_1194); +x_1197 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1197, 0, x_1196); +x_1198 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1198, 0, x_1197); +x_1199 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1199, 0, x_1191); +lean_ctor_set(x_1199, 1, x_1198); +x_1200 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1199, x_4, x_1183); lean_dec(x_6); -return x_1196; +return x_1200; } else { -lean_object* x_1197; lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; uint8_t x_1226; +lean_object* x_1201; lean_object* x_1226; lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; uint8_t x_1230; lean_dec(x_90); lean_dec(x_11); -x_1222 = l_Lean_Elab_Term_getOptions(x_4, x_1176); -x_1223 = lean_ctor_get(x_1222, 0); -lean_inc(x_1223); -x_1224 = lean_ctor_get(x_1222, 1); -lean_inc(x_1224); -lean_dec(x_1222); -x_1225 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; -x_1226 = l_Lean_checkTraceOption(x_1223, x_1225); -lean_dec(x_1223); -if (x_1226 == 0) +x_1226 = l_Lean_Elab_Term_getOptions(x_4, x_1183); +x_1227 = lean_ctor_get(x_1226, 0); +lean_inc(x_1227); +x_1228 = lean_ctor_get(x_1226, 1); +lean_inc(x_1228); +lean_dec(x_1226); +x_1229 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1230 = l_Lean_checkTraceOption(x_1227, x_1229); +lean_dec(x_1227); +if (x_1230 == 0) { -x_1197 = x_1224; -goto block_1221; +x_1201 = x_1228; +goto block_1225; } else { -lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; +lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_inc(x_2); -x_1227 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1227, 0, x_2); -x_1228 = l_Lean_Elab_Term_logTrace(x_1225, x_6, x_1227, x_4, x_1224); -x_1229 = lean_ctor_get(x_1228, 1); -lean_inc(x_1229); -lean_dec(x_1228); -x_1197 = x_1229; -goto block_1221; +x_1231 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1231, 0, x_2); +x_1232 = l_Lean_Elab_Term_logTrace(x_1229, x_6, x_1231, x_4, x_1228); +x_1233 = lean_ctor_get(x_1232, 1); +lean_inc(x_1233); +lean_dec(x_1232); +x_1201 = x_1233; +goto block_1225; } -block_1221: +block_1225: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_1198; +lean_object* x_1202; lean_dec(x_3); -x_1198 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1197); +x_1202 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1201); lean_dec(x_12); -if (lean_obj_tag(x_1198) == 0) +if (lean_obj_tag(x_1202) == 0) { -lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; -x_1199 = lean_ctor_get(x_1198, 1); -lean_inc(x_1199); -if (lean_is_exclusive(x_1198)) { - lean_ctor_release(x_1198, 0); - lean_ctor_release(x_1198, 1); - x_1200 = x_1198; -} else { - lean_dec_ref(x_1198); - x_1200 = lean_box(0); -} -if (lean_is_scalar(x_1200)) { - x_1201 = lean_alloc_ctor(0, 2, 0); -} else { - x_1201 = x_1200; -} -lean_ctor_set(x_1201, 0, x_2); -lean_ctor_set(x_1201, 1, x_1199); -return x_1201; -} -else -{ -lean_object* x_1202; lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; -lean_dec(x_2); -x_1202 = lean_ctor_get(x_1198, 0); -lean_inc(x_1202); -x_1203 = lean_ctor_get(x_1198, 1); +lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; +x_1203 = lean_ctor_get(x_1202, 1); lean_inc(x_1203); -if (lean_is_exclusive(x_1198)) { - lean_ctor_release(x_1198, 0); - lean_ctor_release(x_1198, 1); - x_1204 = x_1198; +if (lean_is_exclusive(x_1202)) { + lean_ctor_release(x_1202, 0); + lean_ctor_release(x_1202, 1); + x_1204 = x_1202; } else { - lean_dec_ref(x_1198); + lean_dec_ref(x_1202); x_1204 = lean_box(0); } if (lean_is_scalar(x_1204)) { - x_1205 = lean_alloc_ctor(1, 2, 0); + x_1205 = lean_alloc_ctor(0, 2, 0); } else { x_1205 = x_1204; } -lean_ctor_set(x_1205, 0, x_1202); +lean_ctor_set(x_1205, 0, x_2); lean_ctor_set(x_1205, 1, x_1203); return x_1205; } +else +{ +lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; +lean_dec(x_2); +x_1206 = lean_ctor_get(x_1202, 0); +lean_inc(x_1206); +x_1207 = lean_ctor_get(x_1202, 1); +lean_inc(x_1207); +if (lean_is_exclusive(x_1202)) { + lean_ctor_release(x_1202, 0); + lean_ctor_release(x_1202, 1); + x_1208 = x_1202; +} else { + lean_dec_ref(x_1202); + x_1208 = lean_box(0); +} +if (lean_is_scalar(x_1208)) { + x_1209 = lean_alloc_ctor(1, 2, 0); +} else { + x_1209 = x_1208; +} +lean_ctor_set(x_1209, 0, x_1206); +lean_ctor_set(x_1209, 1, x_1207); +return x_1209; +} } else { -lean_object* x_1206; lean_object* x_1207; -x_1206 = lean_ctor_get(x_8, 0); -lean_inc(x_1206); +lean_object* x_1210; lean_object* x_1211; +x_1210 = lean_ctor_get(x_8, 0); +lean_inc(x_1210); lean_dec(x_8); lean_inc(x_4); -x_1207 = l_Lean_Elab_Term_isDefEq(x_6, x_1206, x_3, x_4, x_1197); -if (lean_obj_tag(x_1207) == 0) +x_1211 = l_Lean_Elab_Term_isDefEq(x_6, x_1210, x_3, x_4, x_1201); +if (lean_obj_tag(x_1211) == 0) { -lean_object* x_1208; lean_object* x_1209; -x_1208 = lean_ctor_get(x_1207, 1); -lean_inc(x_1208); -lean_dec(x_1207); -x_1209 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1208); +lean_object* x_1212; lean_object* x_1213; +x_1212 = lean_ctor_get(x_1211, 1); +lean_inc(x_1212); +lean_dec(x_1211); +x_1213 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1212); lean_dec(x_12); -if (lean_obj_tag(x_1209) == 0) +if (lean_obj_tag(x_1213) == 0) { -lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; -x_1210 = lean_ctor_get(x_1209, 1); -lean_inc(x_1210); -if (lean_is_exclusive(x_1209)) { - lean_ctor_release(x_1209, 0); - lean_ctor_release(x_1209, 1); - x_1211 = x_1209; -} else { - lean_dec_ref(x_1209); - x_1211 = lean_box(0); -} -if (lean_is_scalar(x_1211)) { - x_1212 = lean_alloc_ctor(0, 2, 0); -} else { - x_1212 = x_1211; -} -lean_ctor_set(x_1212, 0, x_2); -lean_ctor_set(x_1212, 1, x_1210); -return x_1212; -} -else -{ -lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; -lean_dec(x_2); -x_1213 = lean_ctor_get(x_1209, 0); -lean_inc(x_1213); -x_1214 = lean_ctor_get(x_1209, 1); +lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; +x_1214 = lean_ctor_get(x_1213, 1); lean_inc(x_1214); -if (lean_is_exclusive(x_1209)) { - lean_ctor_release(x_1209, 0); - lean_ctor_release(x_1209, 1); - x_1215 = x_1209; +if (lean_is_exclusive(x_1213)) { + lean_ctor_release(x_1213, 0); + lean_ctor_release(x_1213, 1); + x_1215 = x_1213; } else { - lean_dec_ref(x_1209); + lean_dec_ref(x_1213); x_1215 = lean_box(0); } if (lean_is_scalar(x_1215)) { - x_1216 = lean_alloc_ctor(1, 2, 0); + x_1216 = lean_alloc_ctor(0, 2, 0); } else { x_1216 = x_1215; } -lean_ctor_set(x_1216, 0, x_1213); +lean_ctor_set(x_1216, 0, x_2); lean_ctor_set(x_1216, 1, x_1214); return x_1216; } -} else { lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; -lean_dec(x_12); -lean_dec(x_6); -lean_dec(x_4); lean_dec(x_2); -x_1217 = lean_ctor_get(x_1207, 0); +x_1217 = lean_ctor_get(x_1213, 0); lean_inc(x_1217); -x_1218 = lean_ctor_get(x_1207, 1); +x_1218 = lean_ctor_get(x_1213, 1); lean_inc(x_1218); -if (lean_is_exclusive(x_1207)) { - lean_ctor_release(x_1207, 0); - lean_ctor_release(x_1207, 1); - x_1219 = x_1207; +if (lean_is_exclusive(x_1213)) { + lean_ctor_release(x_1213, 0); + lean_ctor_release(x_1213, 1); + x_1219 = x_1213; } else { - lean_dec_ref(x_1207); + lean_dec_ref(x_1213); x_1219 = lean_box(0); } if (lean_is_scalar(x_1219)) { @@ -8323,254 +8133,525 @@ lean_ctor_set(x_1220, 1, x_1218); return x_1220; } } +else +{ +lean_object* x_1221; lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; +lean_dec(x_12); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_1221 = lean_ctor_get(x_1211, 0); +lean_inc(x_1221); +x_1222 = lean_ctor_get(x_1211, 1); +lean_inc(x_1222); +if (lean_is_exclusive(x_1211)) { + lean_ctor_release(x_1211, 0); + lean_ctor_release(x_1211, 1); + x_1223 = x_1211; +} else { + lean_dec_ref(x_1211); + x_1223 = lean_box(0); +} +if (lean_is_scalar(x_1223)) { + x_1224 = lean_alloc_ctor(1, 2, 0); +} else { + x_1224 = x_1223; +} +lean_ctor_set(x_1224, 0, x_1221); +lean_ctor_set(x_1224, 1, x_1222); +return x_1224; +} +} } } } else { -lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; +lean_object* x_1234; lean_object* x_1235; lean_dec(x_90); +lean_dec(x_3); +x_1234 = lean_array_fget(x_7, x_10); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_6); +x_1235 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_1234, x_91, x_4, x_1183); +if (lean_obj_tag(x_1235) == 0) +{ +lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; uint8_t x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; +x_1236 = lean_ctor_get(x_1235, 0); +lean_inc(x_1236); +x_1237 = lean_ctor_get(x_1235, 1); +lean_inc(x_1237); +lean_dec(x_1235); +x_1238 = lean_unsigned_to_nat(1u); +x_1239 = lean_nat_add(x_10, x_1238); +lean_dec(x_10); +x_1240 = 1; +x_1241 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_1241, 0, x_6); +lean_ctor_set(x_1241, 1, x_7); +lean_ctor_set(x_1241, 2, x_8); +lean_ctor_set(x_1241, 3, x_1239); +lean_ctor_set(x_1241, 4, x_11); +lean_ctor_set(x_1241, 5, x_12); +lean_ctor_set(x_1241, 6, x_13); +lean_ctor_set_uint8(x_1241, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1241, sizeof(void*)*7 + 1, x_1240); +lean_inc(x_1236); +x_1242 = l_Lean_mkApp(x_2, x_1236); +x_1243 = lean_expr_instantiate1(x_92, x_1236); +lean_dec(x_1236); +lean_dec(x_92); +x_1 = x_1241; +x_2 = x_1242; +x_3 = x_1243; +x_5 = x_1237; +goto _start; +} +else +{ +lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; +lean_dec(x_92); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); +lean_dec(x_10); lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); -lean_dec(x_3); -x_1230 = lean_ctor_get(x_1181, 0); -lean_inc(x_1230); -lean_dec(x_1181); -lean_inc(x_1230); -x_1231 = l_Lean_mkApp(x_2, x_1230); -x_1232 = lean_expr_instantiate1(x_92, x_1230); -lean_dec(x_1230); +lean_dec(x_4); +lean_dec(x_2); +x_1245 = lean_ctor_get(x_1235, 0); +lean_inc(x_1245); +x_1246 = lean_ctor_get(x_1235, 1); +lean_inc(x_1246); +if (lean_is_exclusive(x_1235)) { + lean_ctor_release(x_1235, 0); + lean_ctor_release(x_1235, 1); + x_1247 = x_1235; +} else { + lean_dec_ref(x_1235); + x_1247 = lean_box(0); +} +if (lean_is_scalar(x_1247)) { + x_1248 = lean_alloc_ctor(1, 2, 0); +} else { + x_1248 = x_1247; +} +lean_ctor_set(x_1248, 0, x_1245); +lean_ctor_set(x_1248, 1, x_1246); +return x_1248; +} +} +} +else +{ +lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; lean_object* x_1252; lean_dec(x_92); -x_1 = x_1178; -x_2 = x_1231; -x_3 = x_1232; -x_5 = x_1176; +lean_dec(x_91); +lean_dec(x_90); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_1249 = lean_ctor_get(x_1103, 0); +lean_inc(x_1249); +x_1250 = lean_ctor_get(x_1103, 1); +lean_inc(x_1250); +if (lean_is_exclusive(x_1103)) { + lean_ctor_release(x_1103, 0); + lean_ctor_release(x_1103, 1); + x_1251 = x_1103; +} else { + lean_dec_ref(x_1103); + x_1251 = lean_box(0); +} +if (lean_is_scalar(x_1251)) { + x_1252 = lean_alloc_ctor(1, 2, 0); +} else { + x_1252 = x_1251; +} +lean_ctor_set(x_1252, 0, x_1249); +lean_ctor_set(x_1252, 1, x_1250); +return x_1252; +} +} +} +else +{ +uint8_t x_1253; +lean_dec(x_90); +lean_dec(x_16); +lean_dec(x_3); +x_1253 = !lean_is_exclusive(x_1); +if (x_1253 == 0) +{ +lean_object* x_1254; lean_object* x_1255; lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; lean_object* x_1260; lean_object* x_1261; uint8_t x_1262; lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; +x_1254 = lean_ctor_get(x_1, 6); +lean_dec(x_1254); +x_1255 = lean_ctor_get(x_1, 5); +lean_dec(x_1255); +x_1256 = lean_ctor_get(x_1, 4); +lean_dec(x_1256); +x_1257 = lean_ctor_get(x_1, 3); +lean_dec(x_1257); +x_1258 = lean_ctor_get(x_1, 2); +lean_dec(x_1258); +x_1259 = lean_ctor_get(x_1, 1); +lean_dec(x_1259); +x_1260 = lean_ctor_get(x_1, 0); +lean_dec(x_1260); +x_1261 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1261, 0, x_91); +x_1262 = 1; +x_1263 = lean_box(0); +lean_inc(x_4); +x_1264 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_1261, x_1262, x_1263, x_4, x_17); +x_1265 = lean_ctor_get(x_1264, 0); +lean_inc(x_1265); +x_1266 = lean_ctor_get(x_1264, 1); +lean_inc(x_1266); +lean_dec(x_1264); +x_1267 = lean_unsigned_to_nat(1u); +x_1268 = lean_nat_add(x_10, x_1267); +lean_dec(x_10); +x_1269 = l_Lean_Expr_mvarId_x21(x_1265); +x_1270 = lean_array_push(x_12, x_1269); +lean_ctor_set(x_1, 5, x_1270); +lean_ctor_set(x_1, 3, x_1268); +lean_inc(x_1265); +x_1271 = l_Lean_mkApp(x_2, x_1265); +x_1272 = lean_expr_instantiate1(x_92, x_1265); +lean_dec(x_1265); +lean_dec(x_92); +x_2 = x_1271; +x_3 = x_1272; +x_5 = x_1266; +goto _start; +} +else +{ +lean_object* x_1274; uint8_t x_1275; lean_object* x_1276; lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; lean_object* x_1281; lean_object* x_1282; lean_object* x_1283; lean_object* x_1284; lean_object* x_1285; lean_object* x_1286; +lean_dec(x_1); +x_1274 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1274, 0, x_91); +x_1275 = 1; +x_1276 = lean_box(0); +lean_inc(x_4); +x_1277 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_1274, x_1275, x_1276, x_4, x_17); +x_1278 = lean_ctor_get(x_1277, 0); +lean_inc(x_1278); +x_1279 = lean_ctor_get(x_1277, 1); +lean_inc(x_1279); +lean_dec(x_1277); +x_1280 = lean_unsigned_to_nat(1u); +x_1281 = lean_nat_add(x_10, x_1280); +lean_dec(x_10); +x_1282 = l_Lean_Expr_mvarId_x21(x_1278); +x_1283 = lean_array_push(x_12, x_1282); +x_1284 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_1284, 0, x_6); +lean_ctor_set(x_1284, 1, x_7); +lean_ctor_set(x_1284, 2, x_8); +lean_ctor_set(x_1284, 3, x_1281); +lean_ctor_set(x_1284, 4, x_11); +lean_ctor_set(x_1284, 5, x_1283); +lean_ctor_set(x_1284, 6, x_13); +lean_ctor_set_uint8(x_1284, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1284, sizeof(void*)*7 + 1, x_14); +lean_inc(x_1278); +x_1285 = l_Lean_mkApp(x_2, x_1278); +x_1286 = lean_expr_instantiate1(x_92, x_1278); +lean_dec(x_1278); +lean_dec(x_92); +x_1 = x_1284; +x_2 = x_1285; +x_3 = x_1286; +x_5 = x_1279; goto _start; } } -else +} +} +default: { -uint8_t x_1234; -lean_dec(x_1178); +lean_object* x_1288; uint8_t x_1289; +lean_inc(x_4); +lean_inc(x_1); +x_1288 = l___private_Init_Lean_Elab_App_8__propagateExpectedType(x_1, x_16, x_4, x_17); +x_1289 = !lean_is_exclusive(x_1); +if (x_1289 == 0) +{ +lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; lean_object* x_1295; lean_object* x_1296; +x_1290 = lean_ctor_get(x_1, 6); +lean_dec(x_1290); +x_1291 = lean_ctor_get(x_1, 5); +lean_dec(x_1291); +x_1292 = lean_ctor_get(x_1, 4); +lean_dec(x_1292); +x_1293 = lean_ctor_get(x_1, 3); +lean_dec(x_1293); +x_1294 = lean_ctor_get(x_1, 2); +lean_dec(x_1294); +x_1295 = lean_ctor_get(x_1, 1); +lean_dec(x_1295); +x_1296 = lean_ctor_get(x_1, 0); +lean_dec(x_1296); +if (lean_obj_tag(x_1288) == 0) +{ +lean_object* x_1297; uint8_t x_1298; lean_object* x_1299; uint8_t x_1300; +x_1297 = lean_ctor_get(x_1288, 1); +lean_inc(x_1297); +lean_dec(x_1288); +x_1298 = 1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_1298); +x_1299 = lean_array_get_size(x_7); +x_1300 = lean_nat_dec_lt(x_10, x_1299); +lean_dec(x_1299); +if (x_1300 == 0) +{ +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +if (x_9 == 0) +{ +lean_object* x_1301; +x_1301 = l_Lean_Expr_getOptParamDefault_x3f(x_91); +if (lean_obj_tag(x_1301) == 0) +{ +lean_object* x_1302; +x_1302 = l_Lean_Expr_getAutoParamTactic_x3f(x_91); +if (lean_obj_tag(x_1302) == 0) +{ +uint8_t x_1303; +lean_dec(x_1); lean_dec(x_92); lean_dec(x_91); -x_1234 = l_Array_isEmpty___rarg(x_11); -if (x_1234 == 0) +x_1303 = l_Array_isEmpty___rarg(x_11); +if (x_1303 == 0) { -lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; +lean_object* x_1304; lean_object* x_1305; lean_object* x_1306; lean_object* x_1307; lean_object* x_1308; lean_object* x_1309; lean_object* x_1310; lean_object* x_1311; lean_object* x_1312; lean_object* x_1313; lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_1235 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1235, 0, x_90); -x_1236 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6; -x_1237 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1237, 0, x_1236); -lean_ctor_set(x_1237, 1, x_1235); -x_1238 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9; -x_1239 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1239, 0, x_1237); -lean_ctor_set(x_1239, 1, x_1238); -x_1240 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__2(x_94, x_11); -x_1241 = l_Array_toList___rarg(x_1240); -lean_dec(x_1240); -x_1242 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1241); -x_1243 = l_Array_HasRepr___rarg___closed__1; -x_1244 = lean_string_append(x_1243, x_1242); -lean_dec(x_1242); -x_1245 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1245, 0, x_1244); -x_1246 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1246, 0, x_1245); -x_1247 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1247, 0, x_1239); -lean_ctor_set(x_1247, 1, x_1246); -x_1248 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1247, x_4, x_1176); +x_1304 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1304, 0, x_90); +x_1305 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1306 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1306, 0, x_1305); +lean_ctor_set(x_1306, 1, x_1304); +x_1307 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1308 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1308, 0, x_1306); +lean_ctor_set(x_1308, 1, x_1307); +x_1309 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_11); +x_1310 = l_Array_toList___rarg(x_1309); +lean_dec(x_1309); +x_1311 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1310); +x_1312 = l_Array_HasRepr___rarg___closed__1; +x_1313 = lean_string_append(x_1312, x_1311); +lean_dec(x_1311); +x_1314 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1314, 0, x_1313); +x_1315 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1315, 0, x_1314); +x_1316 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1316, 0, x_1308); +lean_ctor_set(x_1316, 1, x_1315); +x_1317 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1316, x_4, x_1297); lean_dec(x_6); -return x_1248; +return x_1317; } else { -lean_object* x_1249; lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; uint8_t x_1278; +lean_object* x_1318; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; uint8_t x_1349; lean_dec(x_90); lean_dec(x_11); -x_1274 = l_Lean_Elab_Term_getOptions(x_4, x_1176); -x_1275 = lean_ctor_get(x_1274, 0); -lean_inc(x_1275); -x_1276 = lean_ctor_get(x_1274, 1); -lean_inc(x_1276); -lean_dec(x_1274); -x_1277 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; -x_1278 = l_Lean_checkTraceOption(x_1275, x_1277); -lean_dec(x_1275); -if (x_1278 == 0) +x_1345 = l_Lean_Elab_Term_getOptions(x_4, x_1297); +x_1346 = lean_ctor_get(x_1345, 0); +lean_inc(x_1346); +x_1347 = lean_ctor_get(x_1345, 1); +lean_inc(x_1347); +lean_dec(x_1345); +x_1348 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1349 = l_Lean_checkTraceOption(x_1346, x_1348); +lean_dec(x_1346); +if (x_1349 == 0) { -x_1249 = x_1276; -goto block_1273; +x_1318 = x_1347; +goto block_1344; } else { -lean_object* x_1279; lean_object* x_1280; lean_object* x_1281; +lean_object* x_1350; lean_object* x_1351; lean_object* x_1352; lean_inc(x_2); -x_1279 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1279, 0, x_2); -x_1280 = l_Lean_Elab_Term_logTrace(x_1277, x_6, x_1279, x_4, x_1276); -x_1281 = lean_ctor_get(x_1280, 1); -lean_inc(x_1281); -lean_dec(x_1280); -x_1249 = x_1281; -goto block_1273; +x_1350 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1350, 0, x_2); +x_1351 = l_Lean_Elab_Term_logTrace(x_1348, x_6, x_1350, x_4, x_1347); +x_1352 = lean_ctor_get(x_1351, 1); +lean_inc(x_1352); +lean_dec(x_1351); +x_1318 = x_1352; +goto block_1344; } -block_1273: +block_1344: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_1250; +lean_object* x_1319; lean_dec(x_3); -x_1250 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1249); +x_1319 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1318); lean_dec(x_12); -if (lean_obj_tag(x_1250) == 0) +if (lean_obj_tag(x_1319) == 0) { -lean_object* x_1251; lean_object* x_1252; lean_object* x_1253; -x_1251 = lean_ctor_get(x_1250, 1); -lean_inc(x_1251); -if (lean_is_exclusive(x_1250)) { - lean_ctor_release(x_1250, 0); - lean_ctor_release(x_1250, 1); - x_1252 = x_1250; -} else { - lean_dec_ref(x_1250); - x_1252 = lean_box(0); -} -if (lean_is_scalar(x_1252)) { - x_1253 = lean_alloc_ctor(0, 2, 0); -} else { - x_1253 = x_1252; -} -lean_ctor_set(x_1253, 0, x_2); -lean_ctor_set(x_1253, 1, x_1251); -return x_1253; +uint8_t x_1320; +x_1320 = !lean_is_exclusive(x_1319); +if (x_1320 == 0) +{ +lean_object* x_1321; +x_1321 = lean_ctor_get(x_1319, 0); +lean_dec(x_1321); +lean_ctor_set(x_1319, 0, x_2); +return x_1319; } else { -lean_object* x_1254; lean_object* x_1255; lean_object* x_1256; lean_object* x_1257; +lean_object* x_1322; lean_object* x_1323; +x_1322 = lean_ctor_get(x_1319, 1); +lean_inc(x_1322); +lean_dec(x_1319); +x_1323 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1323, 0, x_2); +lean_ctor_set(x_1323, 1, x_1322); +return x_1323; +} +} +else +{ +uint8_t x_1324; lean_dec(x_2); -x_1254 = lean_ctor_get(x_1250, 0); -lean_inc(x_1254); -x_1255 = lean_ctor_get(x_1250, 1); -lean_inc(x_1255); -if (lean_is_exclusive(x_1250)) { - lean_ctor_release(x_1250, 0); - lean_ctor_release(x_1250, 1); - x_1256 = x_1250; -} else { - lean_dec_ref(x_1250); - x_1256 = lean_box(0); +x_1324 = !lean_is_exclusive(x_1319); +if (x_1324 == 0) +{ +return x_1319; } -if (lean_is_scalar(x_1256)) { - x_1257 = lean_alloc_ctor(1, 2, 0); -} else { - x_1257 = x_1256; +else +{ +lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; +x_1325 = lean_ctor_get(x_1319, 0); +x_1326 = lean_ctor_get(x_1319, 1); +lean_inc(x_1326); +lean_inc(x_1325); +lean_dec(x_1319); +x_1327 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1327, 0, x_1325); +lean_ctor_set(x_1327, 1, x_1326); +return x_1327; } -lean_ctor_set(x_1257, 0, x_1254); -lean_ctor_set(x_1257, 1, x_1255); -return x_1257; } } else { -lean_object* x_1258; lean_object* x_1259; -x_1258 = lean_ctor_get(x_8, 0); -lean_inc(x_1258); +lean_object* x_1328; lean_object* x_1329; +x_1328 = lean_ctor_get(x_8, 0); +lean_inc(x_1328); lean_dec(x_8); lean_inc(x_4); -x_1259 = l_Lean_Elab_Term_isDefEq(x_6, x_1258, x_3, x_4, x_1249); -if (lean_obj_tag(x_1259) == 0) +x_1329 = l_Lean_Elab_Term_isDefEq(x_6, x_1328, x_3, x_4, x_1318); +if (lean_obj_tag(x_1329) == 0) { -lean_object* x_1260; lean_object* x_1261; -x_1260 = lean_ctor_get(x_1259, 1); -lean_inc(x_1260); -lean_dec(x_1259); -x_1261 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1260); +lean_object* x_1330; lean_object* x_1331; +x_1330 = lean_ctor_get(x_1329, 1); +lean_inc(x_1330); +lean_dec(x_1329); +x_1331 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1330); lean_dec(x_12); -if (lean_obj_tag(x_1261) == 0) +if (lean_obj_tag(x_1331) == 0) { -lean_object* x_1262; lean_object* x_1263; lean_object* x_1264; -x_1262 = lean_ctor_get(x_1261, 1); -lean_inc(x_1262); -if (lean_is_exclusive(x_1261)) { - lean_ctor_release(x_1261, 0); - lean_ctor_release(x_1261, 1); - x_1263 = x_1261; -} else { - lean_dec_ref(x_1261); - x_1263 = lean_box(0); -} -if (lean_is_scalar(x_1263)) { - x_1264 = lean_alloc_ctor(0, 2, 0); -} else { - x_1264 = x_1263; -} -lean_ctor_set(x_1264, 0, x_2); -lean_ctor_set(x_1264, 1, x_1262); -return x_1264; +uint8_t x_1332; +x_1332 = !lean_is_exclusive(x_1331); +if (x_1332 == 0) +{ +lean_object* x_1333; +x_1333 = lean_ctor_get(x_1331, 0); +lean_dec(x_1333); +lean_ctor_set(x_1331, 0, x_2); +return x_1331; } else { -lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; +lean_object* x_1334; lean_object* x_1335; +x_1334 = lean_ctor_get(x_1331, 1); +lean_inc(x_1334); +lean_dec(x_1331); +x_1335 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1335, 0, x_2); +lean_ctor_set(x_1335, 1, x_1334); +return x_1335; +} +} +else +{ +uint8_t x_1336; lean_dec(x_2); -x_1265 = lean_ctor_get(x_1261, 0); -lean_inc(x_1265); -x_1266 = lean_ctor_get(x_1261, 1); -lean_inc(x_1266); -if (lean_is_exclusive(x_1261)) { - lean_ctor_release(x_1261, 0); - lean_ctor_release(x_1261, 1); - x_1267 = x_1261; -} else { - lean_dec_ref(x_1261); - x_1267 = lean_box(0); +x_1336 = !lean_is_exclusive(x_1331); +if (x_1336 == 0) +{ +return x_1331; } -if (lean_is_scalar(x_1267)) { - x_1268 = lean_alloc_ctor(1, 2, 0); -} else { - x_1268 = x_1267; +else +{ +lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; +x_1337 = lean_ctor_get(x_1331, 0); +x_1338 = lean_ctor_get(x_1331, 1); +lean_inc(x_1338); +lean_inc(x_1337); +lean_dec(x_1331); +x_1339 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1339, 0, x_1337); +lean_ctor_set(x_1339, 1, x_1338); +return x_1339; } -lean_ctor_set(x_1268, 0, x_1265); -lean_ctor_set(x_1268, 1, x_1266); -return x_1268; } } else { -lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; +uint8_t x_1340; lean_dec(x_12); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_1269 = lean_ctor_get(x_1259, 0); -lean_inc(x_1269); -x_1270 = lean_ctor_get(x_1259, 1); -lean_inc(x_1270); -if (lean_is_exclusive(x_1259)) { - lean_ctor_release(x_1259, 0); - lean_ctor_release(x_1259, 1); - x_1271 = x_1259; -} else { - lean_dec_ref(x_1259); - x_1271 = lean_box(0); +x_1340 = !lean_is_exclusive(x_1329); +if (x_1340 == 0) +{ +return x_1329; } -if (lean_is_scalar(x_1271)) { - x_1272 = lean_alloc_ctor(1, 2, 0); -} else { - x_1272 = x_1271; -} -lean_ctor_set(x_1272, 0, x_1269); -lean_ctor_set(x_1272, 1, x_1270); -return x_1272; +else +{ +lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; +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 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1343, 0, x_1341); +lean_ctor_set(x_1343, 1, x_1342); +return x_1343; } } } @@ -8579,50 +8660,513 @@ return x_1272; } else { -lean_object* x_1282; lean_object* x_1283; -lean_dec(x_1178); +lean_object* x_1353; lean_dec(x_90); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); lean_dec(x_3); -x_1282 = lean_array_fget(x_7, x_10); +x_1353 = lean_ctor_get(x_1302, 0); +lean_inc(x_1353); +lean_dec(x_1302); +if (lean_obj_tag(x_1353) == 4) +{ +lean_object* x_1354; lean_object* x_1355; lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; +x_1354 = lean_ctor_get(x_1353, 0); +lean_inc(x_1354); +lean_dec(x_1353); +x_1355 = l_Lean_Elab_Term_getEnv___rarg(x_1297); +x_1356 = lean_ctor_get(x_1355, 0); +lean_inc(x_1356); +x_1357 = lean_ctor_get(x_1355, 1); +lean_inc(x_1357); +lean_dec(x_1355); +x_1358 = l_Lean_Elab_evalSyntaxConstant(x_1356, x_1354); +if (lean_obj_tag(x_1358) == 0) +{ +lean_object* x_1359; lean_object* x_1360; lean_object* x_1361; lean_object* x_1362; +lean_dec(x_1); +lean_dec(x_92); +lean_dec(x_91); +lean_dec(x_2); +x_1359 = lean_ctor_get(x_1358, 0); +lean_inc(x_1359); +lean_dec(x_1358); +x_1360 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1360, 0, x_1359); +x_1361 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1361, 0, x_1360); +x_1362 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1361, x_4, x_1357); +lean_dec(x_6); +return x_1362; +} +else +{ +lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; lean_object* x_1366; lean_object* x_1367; lean_object* x_1368; lean_object* x_1369; lean_object* x_1370; lean_object* x_1371; lean_object* x_1372; lean_object* x_1373; 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; lean_object* x_1381; lean_object* x_1382; lean_object* x_1383; lean_object* x_1384; lean_object* x_1385; lean_object* x_1386; lean_object* x_1387; +x_1363 = lean_ctor_get(x_1358, 0); +lean_inc(x_1363); +lean_dec(x_1358); +x_1364 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1357); +x_1365 = lean_ctor_get(x_1364, 1); +lean_inc(x_1365); +lean_dec(x_1364); +x_1366 = l_Lean_Elab_Term_getMainModule___rarg(x_1365); +x_1367 = lean_ctor_get(x_1366, 1); +lean_inc(x_1367); +lean_dec(x_1366); +x_1368 = l_Lean_Syntax_getArgs(x_1363); +lean_dec(x_1363); +x_1369 = l_Array_empty___closed__1; +x_1370 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1368, x_1368, x_94, x_1369); +lean_dec(x_1368); +x_1371 = l_Lean_nullKind___closed__2; +x_1372 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1372, 0, x_1371); +lean_ctor_set(x_1372, 1, x_1370); +x_1373 = lean_array_push(x_1369, x_1372); +x_1374 = l_Lean_Parser_Tactic_seq___elambda__1___closed__4; +x_1375 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1375, 0, x_1374); +lean_ctor_set(x_1375, 1, x_1373); +x_1376 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_1377 = lean_array_push(x_1376, x_1375); +x_1378 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; +x_1379 = lean_array_push(x_1377, x_1378); +x_1380 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_1381 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1381, 0, x_1380); +lean_ctor_set(x_1381, 1, x_1379); +x_1382 = l_Lean_Syntax_getHeadInfo___main(x_6); +x_1383 = l_Lean_Expr_getAppNumArgsAux___main(x_91, x_94); +x_1384 = lean_nat_sub(x_1383, x_94); +lean_dec(x_1383); +x_1385 = lean_unsigned_to_nat(1u); +x_1386 = lean_nat_sub(x_1384, x_1385); +lean_dec(x_1384); +x_1387 = l_Lean_Expr_getRevArg_x21___main(x_91, x_1386); +lean_dec(x_91); +if (lean_obj_tag(x_1382) == 0) +{ +lean_object* x_1388; lean_object* x_1389; +x_1388 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1388, 0, x_1381); lean_inc(x_4); lean_inc(x_2); -lean_inc(x_6); -x_1283 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_1282, x_91, x_4, x_1176); -if (lean_obj_tag(x_1283) == 0) +x_1389 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_1388, x_1387, x_4, x_1367); +if (lean_obj_tag(x_1389) == 0) { -lean_object* x_1284; lean_object* x_1285; lean_object* x_1286; lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; -x_1284 = lean_ctor_get(x_1283, 0); -lean_inc(x_1284); -x_1285 = lean_ctor_get(x_1283, 1); -lean_inc(x_1285); -lean_dec(x_1283); -x_1286 = lean_unsigned_to_nat(1u); -x_1287 = lean_nat_add(x_10, x_1286); -lean_dec(x_10); -x_1288 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_1288, 0, x_6); -lean_ctor_set(x_1288, 1, x_7); -lean_ctor_set(x_1288, 2, x_8); -lean_ctor_set(x_1288, 3, x_1287); -lean_ctor_set(x_1288, 4, x_11); -lean_ctor_set(x_1288, 5, x_12); -lean_ctor_set(x_1288, 6, x_13); -lean_ctor_set_uint8(x_1288, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_1288, sizeof(void*)*7 + 1, x_1177); -lean_inc(x_1284); -x_1289 = l_Lean_mkApp(x_2, x_1284); -x_1290 = lean_expr_instantiate1(x_92, x_1284); -lean_dec(x_1284); +lean_object* x_1390; lean_object* x_1391; lean_object* x_1392; lean_object* x_1393; +x_1390 = lean_ctor_get(x_1389, 0); +lean_inc(x_1390); +x_1391 = lean_ctor_get(x_1389, 1); +lean_inc(x_1391); +lean_dec(x_1389); +lean_inc(x_1390); +x_1392 = l_Lean_mkApp(x_2, x_1390); +x_1393 = lean_expr_instantiate1(x_92, x_1390); +lean_dec(x_1390); lean_dec(x_92); -x_1 = x_1288; -x_2 = x_1289; -x_3 = x_1290; -x_5 = x_1285; +x_2 = x_1392; +x_3 = x_1393; +x_5 = x_1391; goto _start; } else { -lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; lean_object* x_1295; +uint8_t x_1395; +lean_dec(x_1); +lean_dec(x_92); +lean_dec(x_4); +lean_dec(x_2); +x_1395 = !lean_is_exclusive(x_1389); +if (x_1395 == 0) +{ +return x_1389; +} +else +{ +lean_object* x_1396; lean_object* x_1397; lean_object* x_1398; +x_1396 = lean_ctor_get(x_1389, 0); +x_1397 = lean_ctor_get(x_1389, 1); +lean_inc(x_1397); +lean_inc(x_1396); +lean_dec(x_1389); +x_1398 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1398, 0, x_1396); +lean_ctor_set(x_1398, 1, x_1397); +return x_1398; +} +} +} +else +{ +lean_object* x_1399; lean_object* x_1400; lean_object* x_1401; lean_object* x_1402; +x_1399 = lean_ctor_get(x_1382, 0); +lean_inc(x_1399); +lean_dec(x_1382); +x_1400 = l_Lean_Syntax_replaceInfo___main(x_1399, x_1381); +x_1401 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1401, 0, x_1400); +lean_inc(x_4); +lean_inc(x_2); +x_1402 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_1401, x_1387, x_4, x_1367); +if (lean_obj_tag(x_1402) == 0) +{ +lean_object* x_1403; lean_object* x_1404; lean_object* x_1405; lean_object* x_1406; +x_1403 = lean_ctor_get(x_1402, 0); +lean_inc(x_1403); +x_1404 = lean_ctor_get(x_1402, 1); +lean_inc(x_1404); +lean_dec(x_1402); +lean_inc(x_1403); +x_1405 = l_Lean_mkApp(x_2, x_1403); +x_1406 = lean_expr_instantiate1(x_92, x_1403); +lean_dec(x_1403); +lean_dec(x_92); +x_2 = x_1405; +x_3 = x_1406; +x_5 = x_1404; +goto _start; +} +else +{ +uint8_t x_1408; +lean_dec(x_1); +lean_dec(x_92); +lean_dec(x_4); +lean_dec(x_2); +x_1408 = !lean_is_exclusive(x_1402); +if (x_1408 == 0) +{ +return x_1402; +} +else +{ +lean_object* x_1409; lean_object* x_1410; lean_object* x_1411; +x_1409 = lean_ctor_get(x_1402, 0); +x_1410 = lean_ctor_get(x_1402, 1); +lean_inc(x_1410); +lean_inc(x_1409); +lean_dec(x_1402); +x_1411 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1411, 0, x_1409); +lean_ctor_set(x_1411, 1, x_1410); +return x_1411; +} +} +} +} +} +else +{ +lean_object* x_1412; lean_object* x_1413; +lean_dec(x_1353); +lean_dec(x_1); +lean_dec(x_92); +lean_dec(x_91); +lean_dec(x_2); +x_1412 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_1413 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1412, x_4, x_1297); +lean_dec(x_6); +return x_1413; +} +} +} +else +{ +lean_object* x_1414; lean_object* x_1415; lean_object* x_1416; +lean_dec(x_91); +lean_dec(x_90); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_3); +x_1414 = lean_ctor_get(x_1301, 0); +lean_inc(x_1414); +lean_dec(x_1301); +lean_inc(x_1414); +x_1415 = l_Lean_mkApp(x_2, x_1414); +x_1416 = lean_expr_instantiate1(x_92, x_1414); +lean_dec(x_1414); +lean_dec(x_92); +x_2 = x_1415; +x_3 = x_1416; +x_5 = x_1297; +goto _start; +} +} +else +{ +uint8_t x_1418; +lean_dec(x_1); +lean_dec(x_92); +lean_dec(x_91); +x_1418 = l_Array_isEmpty___rarg(x_11); +if (x_1418 == 0) +{ +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; lean_object* x_1427; lean_object* x_1428; lean_object* x_1429; lean_object* x_1430; lean_object* x_1431; lean_object* x_1432; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_1419 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1419, 0, x_90); +x_1420 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1421 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1421, 0, x_1420); +lean_ctor_set(x_1421, 1, x_1419); +x_1422 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1423 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1423, 0, x_1421); +lean_ctor_set(x_1423, 1, x_1422); +x_1424 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_11); +x_1425 = l_Array_toList___rarg(x_1424); +lean_dec(x_1424); +x_1426 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1425); +x_1427 = l_Array_HasRepr___rarg___closed__1; +x_1428 = lean_string_append(x_1427, x_1426); +lean_dec(x_1426); +x_1429 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1429, 0, x_1428); +x_1430 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1430, 0, x_1429); +x_1431 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1431, 0, x_1423); +lean_ctor_set(x_1431, 1, x_1430); +x_1432 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1431, x_4, x_1297); +lean_dec(x_6); +return x_1432; +} +else +{ +lean_object* x_1433; lean_object* x_1460; lean_object* x_1461; lean_object* x_1462; lean_object* x_1463; uint8_t x_1464; +lean_dec(x_90); +lean_dec(x_11); +x_1460 = l_Lean_Elab_Term_getOptions(x_4, x_1297); +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); +x_1463 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1464 = l_Lean_checkTraceOption(x_1461, x_1463); +lean_dec(x_1461); +if (x_1464 == 0) +{ +x_1433 = x_1462; +goto block_1459; +} +else +{ +lean_object* x_1465; lean_object* x_1466; lean_object* x_1467; +lean_inc(x_2); +x_1465 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1465, 0, x_2); +x_1466 = l_Lean_Elab_Term_logTrace(x_1463, x_6, x_1465, x_4, x_1462); +x_1467 = lean_ctor_get(x_1466, 1); +lean_inc(x_1467); +lean_dec(x_1466); +x_1433 = x_1467; +goto block_1459; +} +block_1459: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_1434; +lean_dec(x_3); +x_1434 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1433); +lean_dec(x_12); +if (lean_obj_tag(x_1434) == 0) +{ +uint8_t x_1435; +x_1435 = !lean_is_exclusive(x_1434); +if (x_1435 == 0) +{ +lean_object* x_1436; +x_1436 = lean_ctor_get(x_1434, 0); +lean_dec(x_1436); +lean_ctor_set(x_1434, 0, x_2); +return x_1434; +} +else +{ +lean_object* x_1437; lean_object* x_1438; +x_1437 = lean_ctor_get(x_1434, 1); +lean_inc(x_1437); +lean_dec(x_1434); +x_1438 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1438, 0, x_2); +lean_ctor_set(x_1438, 1, x_1437); +return x_1438; +} +} +else +{ +uint8_t x_1439; +lean_dec(x_2); +x_1439 = !lean_is_exclusive(x_1434); +if (x_1439 == 0) +{ +return x_1434; +} +else +{ +lean_object* x_1440; lean_object* x_1441; lean_object* x_1442; +x_1440 = lean_ctor_get(x_1434, 0); +x_1441 = lean_ctor_get(x_1434, 1); +lean_inc(x_1441); +lean_inc(x_1440); +lean_dec(x_1434); +x_1442 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1442, 0, x_1440); +lean_ctor_set(x_1442, 1, x_1441); +return x_1442; +} +} +} +else +{ +lean_object* x_1443; lean_object* x_1444; +x_1443 = lean_ctor_get(x_8, 0); +lean_inc(x_1443); +lean_dec(x_8); +lean_inc(x_4); +x_1444 = l_Lean_Elab_Term_isDefEq(x_6, x_1443, x_3, x_4, x_1433); +if (lean_obj_tag(x_1444) == 0) +{ +lean_object* x_1445; lean_object* x_1446; +x_1445 = lean_ctor_get(x_1444, 1); +lean_inc(x_1445); +lean_dec(x_1444); +x_1446 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1445); +lean_dec(x_12); +if (lean_obj_tag(x_1446) == 0) +{ +uint8_t x_1447; +x_1447 = !lean_is_exclusive(x_1446); +if (x_1447 == 0) +{ +lean_object* x_1448; +x_1448 = lean_ctor_get(x_1446, 0); +lean_dec(x_1448); +lean_ctor_set(x_1446, 0, x_2); +return x_1446; +} +else +{ +lean_object* x_1449; lean_object* x_1450; +x_1449 = lean_ctor_get(x_1446, 1); +lean_inc(x_1449); +lean_dec(x_1446); +x_1450 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1450, 0, x_2); +lean_ctor_set(x_1450, 1, x_1449); +return x_1450; +} +} +else +{ +uint8_t x_1451; +lean_dec(x_2); +x_1451 = !lean_is_exclusive(x_1446); +if (x_1451 == 0) +{ +return x_1446; +} +else +{ +lean_object* x_1452; lean_object* x_1453; lean_object* x_1454; +x_1452 = lean_ctor_get(x_1446, 0); +x_1453 = lean_ctor_get(x_1446, 1); +lean_inc(x_1453); +lean_inc(x_1452); +lean_dec(x_1446); +x_1454 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1454, 0, x_1452); +lean_ctor_set(x_1454, 1, x_1453); +return x_1454; +} +} +} +else +{ +uint8_t x_1455; +lean_dec(x_12); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_1455 = !lean_is_exclusive(x_1444); +if (x_1455 == 0) +{ +return x_1444; +} +else +{ +lean_object* x_1456; lean_object* x_1457; lean_object* x_1458; +x_1456 = lean_ctor_get(x_1444, 0); +x_1457 = lean_ctor_get(x_1444, 1); +lean_inc(x_1457); +lean_inc(x_1456); +lean_dec(x_1444); +x_1458 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1458, 0, x_1456); +lean_ctor_set(x_1458, 1, x_1457); +return x_1458; +} +} +} +} +} +} +} +else +{ +lean_object* x_1468; lean_object* x_1469; +lean_dec(x_1); +lean_dec(x_90); +lean_dec(x_3); +x_1468 = lean_array_fget(x_7, x_10); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_6); +x_1469 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_1468, x_91, x_4, x_1297); +if (lean_obj_tag(x_1469) == 0) +{ +lean_object* x_1470; lean_object* x_1471; lean_object* x_1472; lean_object* x_1473; lean_object* x_1474; lean_object* x_1475; lean_object* x_1476; +x_1470 = lean_ctor_get(x_1469, 0); +lean_inc(x_1470); +x_1471 = lean_ctor_get(x_1469, 1); +lean_inc(x_1471); +lean_dec(x_1469); +x_1472 = lean_unsigned_to_nat(1u); +x_1473 = lean_nat_add(x_10, x_1472); +lean_dec(x_10); +x_1474 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_1474, 0, x_6); +lean_ctor_set(x_1474, 1, x_7); +lean_ctor_set(x_1474, 2, x_8); +lean_ctor_set(x_1474, 3, x_1473); +lean_ctor_set(x_1474, 4, x_11); +lean_ctor_set(x_1474, 5, x_12); +lean_ctor_set(x_1474, 6, x_13); +lean_ctor_set_uint8(x_1474, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1474, sizeof(void*)*7 + 1, x_1298); +lean_inc(x_1470); +x_1475 = l_Lean_mkApp(x_2, x_1470); +x_1476 = lean_expr_instantiate1(x_92, x_1470); +lean_dec(x_1470); +lean_dec(x_92); +x_1 = x_1474; +x_2 = x_1475; +x_3 = x_1476; +x_5 = x_1471; +goto _start; +} +else +{ +uint8_t x_1478; lean_dec(x_92); lean_dec(x_13); lean_dec(x_12); @@ -8633,32 +9177,31 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_1292 = lean_ctor_get(x_1283, 0); -lean_inc(x_1292); -x_1293 = lean_ctor_get(x_1283, 1); -lean_inc(x_1293); -if (lean_is_exclusive(x_1283)) { - lean_ctor_release(x_1283, 0); - lean_ctor_release(x_1283, 1); - x_1294 = x_1283; -} else { - lean_dec_ref(x_1283); - x_1294 = lean_box(0); +x_1478 = !lean_is_exclusive(x_1469); +if (x_1478 == 0) +{ +return x_1469; } -if (lean_is_scalar(x_1294)) { - x_1295 = lean_alloc_ctor(1, 2, 0); -} else { - x_1295 = x_1294; +else +{ +lean_object* x_1479; lean_object* x_1480; lean_object* x_1481; +x_1479 = lean_ctor_get(x_1469, 0); +x_1480 = lean_ctor_get(x_1469, 1); +lean_inc(x_1480); +lean_inc(x_1479); +lean_dec(x_1469); +x_1481 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1481, 0, x_1479); +lean_ctor_set(x_1481, 1, x_1480); +return x_1481; } -lean_ctor_set(x_1295, 0, x_1292); -lean_ctor_set(x_1295, 1, x_1293); -return x_1295; } } } else { -lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; lean_object* x_1299; +uint8_t x_1482; +lean_free_object(x_1); lean_dec(x_92); lean_dec(x_91); lean_dec(x_90); @@ -8672,169 +9215,960 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_1296 = lean_ctor_get(x_1040, 0); -lean_inc(x_1296); -x_1297 = lean_ctor_get(x_1040, 1); -lean_inc(x_1297); -if (lean_is_exclusive(x_1040)) { - lean_ctor_release(x_1040, 0); - lean_ctor_release(x_1040, 1); - x_1298 = x_1040; -} else { - lean_dec_ref(x_1040); - x_1298 = lean_box(0); -} -if (lean_is_scalar(x_1298)) { - x_1299 = lean_alloc_ctor(1, 2, 0); -} else { - x_1299 = x_1298; -} -lean_ctor_set(x_1299, 0, x_1296); -lean_ctor_set(x_1299, 1, x_1297); -return x_1299; -} -} -} -} +x_1482 = !lean_is_exclusive(x_1288); +if (x_1482 == 0) +{ +return x_1288; } else { -lean_object* x_1300; lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; -lean_dec(x_90); -lean_dec(x_3); -x_1300 = lean_ctor_get(x_95, 0); -lean_inc(x_1300); -lean_dec(x_95); -x_1301 = l_Lean_Elab_Term_NamedArg_inhabited; -x_1302 = lean_array_get(x_1301, x_11, x_1300); -x_1303 = l_Array_eraseIdx___rarg(x_11, x_1300); -lean_dec(x_1300); -x_1304 = lean_ctor_get(x_1302, 1); -lean_inc(x_1304); -lean_dec(x_1302); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_6); -x_1305 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_1304, x_91, x_4, x_17); -if (lean_obj_tag(x_1305) == 0) -{ -lean_object* x_1306; lean_object* x_1307; lean_object* x_1308; uint8_t x_1309; -x_1306 = lean_ctor_get(x_1305, 0); -lean_inc(x_1306); -x_1307 = lean_ctor_get(x_1305, 1); -lean_inc(x_1307); -lean_dec(x_1305); -lean_inc(x_4); -lean_inc(x_1); -x_1308 = l___private_Init_Lean_Elab_App_9__propagateExpectedType(x_1, x_16, x_4, x_1307); -x_1309 = !lean_is_exclusive(x_1); -if (x_1309 == 0) -{ -lean_object* x_1310; lean_object* x_1311; lean_object* x_1312; lean_object* x_1313; lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; -x_1310 = lean_ctor_get(x_1, 6); -lean_dec(x_1310); -x_1311 = lean_ctor_get(x_1, 5); -lean_dec(x_1311); -x_1312 = lean_ctor_get(x_1, 4); -lean_dec(x_1312); -x_1313 = lean_ctor_get(x_1, 3); -lean_dec(x_1313); -x_1314 = lean_ctor_get(x_1, 2); -lean_dec(x_1314); -x_1315 = lean_ctor_get(x_1, 1); -lean_dec(x_1315); -x_1316 = lean_ctor_get(x_1, 0); -lean_dec(x_1316); -if (lean_obj_tag(x_1308) == 0) -{ -lean_object* x_1317; uint8_t x_1318; lean_object* x_1319; lean_object* x_1320; -x_1317 = lean_ctor_get(x_1308, 1); -lean_inc(x_1317); -lean_dec(x_1308); -x_1318 = 1; -lean_ctor_set(x_1, 4, x_1303); -lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_1318); -lean_inc(x_1306); -x_1319 = l_Lean_mkApp(x_2, x_1306); -x_1320 = lean_expr_instantiate1(x_92, x_1306); -lean_dec(x_1306); -lean_dec(x_92); -x_2 = x_1319; -x_3 = x_1320; -x_5 = x_1317; -goto _start; -} -else -{ -uint8_t x_1322; -lean_free_object(x_1); -lean_dec(x_1306); -lean_dec(x_1303); -lean_dec(x_92); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_1322 = !lean_is_exclusive(x_1308); -if (x_1322 == 0) -{ -return x_1308; -} -else -{ -lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; -x_1323 = lean_ctor_get(x_1308, 0); -x_1324 = lean_ctor_get(x_1308, 1); -lean_inc(x_1324); -lean_inc(x_1323); -lean_dec(x_1308); -x_1325 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1325, 0, x_1323); -lean_ctor_set(x_1325, 1, x_1324); -return x_1325; +lean_object* x_1483; lean_object* x_1484; lean_object* x_1485; +x_1483 = lean_ctor_get(x_1288, 0); +x_1484 = lean_ctor_get(x_1288, 1); +lean_inc(x_1484); +lean_inc(x_1483); +lean_dec(x_1288); +x_1485 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1485, 0, x_1483); +lean_ctor_set(x_1485, 1, x_1484); +return x_1485; } } } else { lean_dec(x_1); -if (lean_obj_tag(x_1308) == 0) +if (lean_obj_tag(x_1288) == 0) { -lean_object* x_1326; uint8_t x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; -x_1326 = lean_ctor_get(x_1308, 1); -lean_inc(x_1326); -lean_dec(x_1308); -x_1327 = 1; -x_1328 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_1328, 0, x_6); -lean_ctor_set(x_1328, 1, x_7); -lean_ctor_set(x_1328, 2, x_8); -lean_ctor_set(x_1328, 3, x_10); -lean_ctor_set(x_1328, 4, x_1303); -lean_ctor_set(x_1328, 5, x_12); -lean_ctor_set(x_1328, 6, x_13); -lean_ctor_set_uint8(x_1328, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_1328, sizeof(void*)*7 + 1, x_1327); -lean_inc(x_1306); -x_1329 = l_Lean_mkApp(x_2, x_1306); -x_1330 = lean_expr_instantiate1(x_92, x_1306); -lean_dec(x_1306); +lean_object* x_1486; uint8_t x_1487; lean_object* x_1488; lean_object* x_1489; uint8_t x_1490; +x_1486 = lean_ctor_get(x_1288, 1); +lean_inc(x_1486); +lean_dec(x_1288); +x_1487 = 1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_1488 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_1488, 0, x_6); +lean_ctor_set(x_1488, 1, x_7); +lean_ctor_set(x_1488, 2, x_8); +lean_ctor_set(x_1488, 3, x_10); +lean_ctor_set(x_1488, 4, x_11); +lean_ctor_set(x_1488, 5, x_12); +lean_ctor_set(x_1488, 6, x_13); +lean_ctor_set_uint8(x_1488, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1488, sizeof(void*)*7 + 1, x_1487); +x_1489 = lean_array_get_size(x_7); +x_1490 = lean_nat_dec_lt(x_10, x_1489); +lean_dec(x_1489); +if (x_1490 == 0) +{ +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +if (x_9 == 0) +{ +lean_object* x_1491; +x_1491 = l_Lean_Expr_getOptParamDefault_x3f(x_91); +if (lean_obj_tag(x_1491) == 0) +{ +lean_object* x_1492; +x_1492 = l_Lean_Expr_getAutoParamTactic_x3f(x_91); +if (lean_obj_tag(x_1492) == 0) +{ +uint8_t x_1493; +lean_dec(x_1488); lean_dec(x_92); -x_1 = x_1328; -x_2 = x_1329; -x_3 = x_1330; -x_5 = x_1326; +lean_dec(x_91); +x_1493 = l_Array_isEmpty___rarg(x_11); +if (x_1493 == 0) +{ +lean_object* x_1494; 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; lean_object* x_1503; lean_object* x_1504; lean_object* x_1505; lean_object* x_1506; lean_object* x_1507; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_1494 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1494, 0, x_90); +x_1495 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1496 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1496, 0, x_1495); +lean_ctor_set(x_1496, 1, x_1494); +x_1497 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1498 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1498, 0, x_1496); +lean_ctor_set(x_1498, 1, x_1497); +x_1499 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_11); +x_1500 = l_Array_toList___rarg(x_1499); +lean_dec(x_1499); +x_1501 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1500); +x_1502 = l_Array_HasRepr___rarg___closed__1; +x_1503 = lean_string_append(x_1502, x_1501); +lean_dec(x_1501); +x_1504 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1504, 0, x_1503); +x_1505 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1505, 0, x_1504); +x_1506 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1506, 0, x_1498); +lean_ctor_set(x_1506, 1, x_1505); +x_1507 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1506, x_4, x_1486); +lean_dec(x_6); +return x_1507; +} +else +{ +lean_object* x_1508; lean_object* x_1533; lean_object* x_1534; lean_object* x_1535; lean_object* x_1536; uint8_t x_1537; +lean_dec(x_90); +lean_dec(x_11); +x_1533 = l_Lean_Elab_Term_getOptions(x_4, x_1486); +x_1534 = lean_ctor_get(x_1533, 0); +lean_inc(x_1534); +x_1535 = lean_ctor_get(x_1533, 1); +lean_inc(x_1535); +lean_dec(x_1533); +x_1536 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1537 = l_Lean_checkTraceOption(x_1534, x_1536); +lean_dec(x_1534); +if (x_1537 == 0) +{ +x_1508 = x_1535; +goto block_1532; +} +else +{ +lean_object* x_1538; lean_object* x_1539; lean_object* x_1540; +lean_inc(x_2); +x_1538 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1538, 0, x_2); +x_1539 = l_Lean_Elab_Term_logTrace(x_1536, x_6, x_1538, x_4, x_1535); +x_1540 = lean_ctor_get(x_1539, 1); +lean_inc(x_1540); +lean_dec(x_1539); +x_1508 = x_1540; +goto block_1532; +} +block_1532: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_1509; +lean_dec(x_3); +x_1509 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1508); +lean_dec(x_12); +if (lean_obj_tag(x_1509) == 0) +{ +lean_object* x_1510; lean_object* x_1511; lean_object* x_1512; +x_1510 = lean_ctor_get(x_1509, 1); +lean_inc(x_1510); +if (lean_is_exclusive(x_1509)) { + lean_ctor_release(x_1509, 0); + lean_ctor_release(x_1509, 1); + x_1511 = x_1509; +} else { + lean_dec_ref(x_1509); + x_1511 = lean_box(0); +} +if (lean_is_scalar(x_1511)) { + x_1512 = lean_alloc_ctor(0, 2, 0); +} else { + x_1512 = x_1511; +} +lean_ctor_set(x_1512, 0, x_2); +lean_ctor_set(x_1512, 1, x_1510); +return x_1512; +} +else +{ +lean_object* x_1513; lean_object* x_1514; lean_object* x_1515; lean_object* x_1516; +lean_dec(x_2); +x_1513 = lean_ctor_get(x_1509, 0); +lean_inc(x_1513); +x_1514 = lean_ctor_get(x_1509, 1); +lean_inc(x_1514); +if (lean_is_exclusive(x_1509)) { + lean_ctor_release(x_1509, 0); + lean_ctor_release(x_1509, 1); + x_1515 = x_1509; +} else { + lean_dec_ref(x_1509); + x_1515 = lean_box(0); +} +if (lean_is_scalar(x_1515)) { + x_1516 = lean_alloc_ctor(1, 2, 0); +} else { + x_1516 = x_1515; +} +lean_ctor_set(x_1516, 0, x_1513); +lean_ctor_set(x_1516, 1, x_1514); +return x_1516; +} +} +else +{ +lean_object* x_1517; lean_object* x_1518; +x_1517 = lean_ctor_get(x_8, 0); +lean_inc(x_1517); +lean_dec(x_8); +lean_inc(x_4); +x_1518 = l_Lean_Elab_Term_isDefEq(x_6, x_1517, x_3, x_4, x_1508); +if (lean_obj_tag(x_1518) == 0) +{ +lean_object* x_1519; lean_object* x_1520; +x_1519 = lean_ctor_get(x_1518, 1); +lean_inc(x_1519); +lean_dec(x_1518); +x_1520 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1519); +lean_dec(x_12); +if (lean_obj_tag(x_1520) == 0) +{ +lean_object* x_1521; lean_object* x_1522; lean_object* x_1523; +x_1521 = lean_ctor_get(x_1520, 1); +lean_inc(x_1521); +if (lean_is_exclusive(x_1520)) { + lean_ctor_release(x_1520, 0); + lean_ctor_release(x_1520, 1); + x_1522 = x_1520; +} else { + lean_dec_ref(x_1520); + x_1522 = lean_box(0); +} +if (lean_is_scalar(x_1522)) { + x_1523 = lean_alloc_ctor(0, 2, 0); +} else { + x_1523 = x_1522; +} +lean_ctor_set(x_1523, 0, x_2); +lean_ctor_set(x_1523, 1, x_1521); +return x_1523; +} +else +{ +lean_object* x_1524; lean_object* x_1525; lean_object* x_1526; lean_object* x_1527; +lean_dec(x_2); +x_1524 = lean_ctor_get(x_1520, 0); +lean_inc(x_1524); +x_1525 = lean_ctor_get(x_1520, 1); +lean_inc(x_1525); +if (lean_is_exclusive(x_1520)) { + lean_ctor_release(x_1520, 0); + lean_ctor_release(x_1520, 1); + x_1526 = x_1520; +} else { + lean_dec_ref(x_1520); + x_1526 = lean_box(0); +} +if (lean_is_scalar(x_1526)) { + x_1527 = lean_alloc_ctor(1, 2, 0); +} else { + x_1527 = x_1526; +} +lean_ctor_set(x_1527, 0, x_1524); +lean_ctor_set(x_1527, 1, x_1525); +return x_1527; +} +} +else +{ +lean_object* x_1528; lean_object* x_1529; lean_object* x_1530; lean_object* x_1531; +lean_dec(x_12); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_1528 = lean_ctor_get(x_1518, 0); +lean_inc(x_1528); +x_1529 = lean_ctor_get(x_1518, 1); +lean_inc(x_1529); +if (lean_is_exclusive(x_1518)) { + lean_ctor_release(x_1518, 0); + lean_ctor_release(x_1518, 1); + x_1530 = x_1518; +} else { + lean_dec_ref(x_1518); + x_1530 = lean_box(0); +} +if (lean_is_scalar(x_1530)) { + x_1531 = lean_alloc_ctor(1, 2, 0); +} else { + x_1531 = x_1530; +} +lean_ctor_set(x_1531, 0, x_1528); +lean_ctor_set(x_1531, 1, x_1529); +return x_1531; +} +} +} +} +} +else +{ +lean_object* x_1541; +lean_dec(x_90); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_3); +x_1541 = lean_ctor_get(x_1492, 0); +lean_inc(x_1541); +lean_dec(x_1492); +if (lean_obj_tag(x_1541) == 4) +{ +lean_object* x_1542; lean_object* x_1543; lean_object* x_1544; lean_object* x_1545; lean_object* x_1546; +x_1542 = lean_ctor_get(x_1541, 0); +lean_inc(x_1542); +lean_dec(x_1541); +x_1543 = l_Lean_Elab_Term_getEnv___rarg(x_1486); +x_1544 = lean_ctor_get(x_1543, 0); +lean_inc(x_1544); +x_1545 = lean_ctor_get(x_1543, 1); +lean_inc(x_1545); +lean_dec(x_1543); +x_1546 = l_Lean_Elab_evalSyntaxConstant(x_1544, x_1542); +if (lean_obj_tag(x_1546) == 0) +{ +lean_object* x_1547; lean_object* x_1548; lean_object* x_1549; lean_object* x_1550; +lean_dec(x_1488); +lean_dec(x_92); +lean_dec(x_91); +lean_dec(x_2); +x_1547 = lean_ctor_get(x_1546, 0); +lean_inc(x_1547); +lean_dec(x_1546); +x_1548 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1548, 0, x_1547); +x_1549 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1549, 0, x_1548); +x_1550 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1549, x_4, x_1545); +lean_dec(x_6); +return x_1550; +} +else +{ +lean_object* x_1551; lean_object* x_1552; lean_object* x_1553; lean_object* x_1554; lean_object* x_1555; lean_object* x_1556; lean_object* x_1557; 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; lean_object* x_1566; lean_object* x_1567; lean_object* x_1568; lean_object* x_1569; lean_object* x_1570; lean_object* x_1571; lean_object* x_1572; lean_object* x_1573; lean_object* x_1574; lean_object* x_1575; +x_1551 = lean_ctor_get(x_1546, 0); +lean_inc(x_1551); +lean_dec(x_1546); +x_1552 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1545); +x_1553 = lean_ctor_get(x_1552, 1); +lean_inc(x_1553); +lean_dec(x_1552); +x_1554 = l_Lean_Elab_Term_getMainModule___rarg(x_1553); +x_1555 = lean_ctor_get(x_1554, 1); +lean_inc(x_1555); +lean_dec(x_1554); +x_1556 = l_Lean_Syntax_getArgs(x_1551); +lean_dec(x_1551); +x_1557 = l_Array_empty___closed__1; +x_1558 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1556, x_1556, x_94, x_1557); +lean_dec(x_1556); +x_1559 = l_Lean_nullKind___closed__2; +x_1560 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1560, 0, x_1559); +lean_ctor_set(x_1560, 1, x_1558); +x_1561 = lean_array_push(x_1557, x_1560); +x_1562 = l_Lean_Parser_Tactic_seq___elambda__1___closed__4; +x_1563 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1563, 0, x_1562); +lean_ctor_set(x_1563, 1, x_1561); +x_1564 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_1565 = lean_array_push(x_1564, x_1563); +x_1566 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; +x_1567 = lean_array_push(x_1565, x_1566); +x_1568 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_1569 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1569, 0, x_1568); +lean_ctor_set(x_1569, 1, x_1567); +x_1570 = l_Lean_Syntax_getHeadInfo___main(x_6); +x_1571 = l_Lean_Expr_getAppNumArgsAux___main(x_91, x_94); +x_1572 = lean_nat_sub(x_1571, x_94); +lean_dec(x_1571); +x_1573 = lean_unsigned_to_nat(1u); +x_1574 = lean_nat_sub(x_1572, x_1573); +lean_dec(x_1572); +x_1575 = l_Lean_Expr_getRevArg_x21___main(x_91, x_1574); +lean_dec(x_91); +if (lean_obj_tag(x_1570) == 0) +{ +lean_object* x_1576; lean_object* x_1577; +x_1576 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1576, 0, x_1569); +lean_inc(x_4); +lean_inc(x_2); +x_1577 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_1576, x_1575, x_4, x_1555); +if (lean_obj_tag(x_1577) == 0) +{ +lean_object* x_1578; lean_object* x_1579; lean_object* x_1580; lean_object* x_1581; +x_1578 = lean_ctor_get(x_1577, 0); +lean_inc(x_1578); +x_1579 = lean_ctor_get(x_1577, 1); +lean_inc(x_1579); +lean_dec(x_1577); +lean_inc(x_1578); +x_1580 = l_Lean_mkApp(x_2, x_1578); +x_1581 = lean_expr_instantiate1(x_92, x_1578); +lean_dec(x_1578); +lean_dec(x_92); +x_1 = x_1488; +x_2 = x_1580; +x_3 = x_1581; +x_5 = x_1579; goto _start; } else { -lean_object* x_1332; lean_object* x_1333; lean_object* x_1334; lean_object* x_1335; -lean_dec(x_1306); -lean_dec(x_1303); +lean_object* x_1583; lean_object* x_1584; lean_object* x_1585; lean_object* x_1586; +lean_dec(x_1488); +lean_dec(x_92); +lean_dec(x_4); +lean_dec(x_2); +x_1583 = lean_ctor_get(x_1577, 0); +lean_inc(x_1583); +x_1584 = lean_ctor_get(x_1577, 1); +lean_inc(x_1584); +if (lean_is_exclusive(x_1577)) { + lean_ctor_release(x_1577, 0); + lean_ctor_release(x_1577, 1); + x_1585 = x_1577; +} else { + lean_dec_ref(x_1577); + x_1585 = lean_box(0); +} +if (lean_is_scalar(x_1585)) { + x_1586 = lean_alloc_ctor(1, 2, 0); +} else { + x_1586 = x_1585; +} +lean_ctor_set(x_1586, 0, x_1583); +lean_ctor_set(x_1586, 1, x_1584); +return x_1586; +} +} +else +{ +lean_object* x_1587; lean_object* x_1588; lean_object* x_1589; lean_object* x_1590; +x_1587 = lean_ctor_get(x_1570, 0); +lean_inc(x_1587); +lean_dec(x_1570); +x_1588 = l_Lean_Syntax_replaceInfo___main(x_1587, x_1569); +x_1589 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1589, 0, x_1588); +lean_inc(x_4); +lean_inc(x_2); +x_1590 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_1589, x_1575, x_4, x_1555); +if (lean_obj_tag(x_1590) == 0) +{ +lean_object* x_1591; lean_object* x_1592; lean_object* x_1593; lean_object* x_1594; +x_1591 = lean_ctor_get(x_1590, 0); +lean_inc(x_1591); +x_1592 = lean_ctor_get(x_1590, 1); +lean_inc(x_1592); +lean_dec(x_1590); +lean_inc(x_1591); +x_1593 = l_Lean_mkApp(x_2, x_1591); +x_1594 = lean_expr_instantiate1(x_92, x_1591); +lean_dec(x_1591); +lean_dec(x_92); +x_1 = x_1488; +x_2 = x_1593; +x_3 = x_1594; +x_5 = x_1592; +goto _start; +} +else +{ +lean_object* x_1596; lean_object* x_1597; lean_object* x_1598; lean_object* x_1599; +lean_dec(x_1488); +lean_dec(x_92); +lean_dec(x_4); +lean_dec(x_2); +x_1596 = lean_ctor_get(x_1590, 0); +lean_inc(x_1596); +x_1597 = lean_ctor_get(x_1590, 1); +lean_inc(x_1597); +if (lean_is_exclusive(x_1590)) { + lean_ctor_release(x_1590, 0); + lean_ctor_release(x_1590, 1); + x_1598 = x_1590; +} else { + lean_dec_ref(x_1590); + x_1598 = lean_box(0); +} +if (lean_is_scalar(x_1598)) { + x_1599 = lean_alloc_ctor(1, 2, 0); +} else { + x_1599 = x_1598; +} +lean_ctor_set(x_1599, 0, x_1596); +lean_ctor_set(x_1599, 1, x_1597); +return x_1599; +} +} +} +} +else +{ +lean_object* x_1600; lean_object* x_1601; +lean_dec(x_1541); +lean_dec(x_1488); +lean_dec(x_92); +lean_dec(x_91); +lean_dec(x_2); +x_1600 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_1601 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1600, x_4, x_1486); +lean_dec(x_6); +return x_1601; +} +} +} +else +{ +lean_object* x_1602; lean_object* x_1603; lean_object* x_1604; +lean_dec(x_91); +lean_dec(x_90); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_3); +x_1602 = lean_ctor_get(x_1491, 0); +lean_inc(x_1602); +lean_dec(x_1491); +lean_inc(x_1602); +x_1603 = l_Lean_mkApp(x_2, x_1602); +x_1604 = lean_expr_instantiate1(x_92, x_1602); +lean_dec(x_1602); +lean_dec(x_92); +x_1 = x_1488; +x_2 = x_1603; +x_3 = x_1604; +x_5 = x_1486; +goto _start; +} +} +else +{ +uint8_t x_1606; +lean_dec(x_1488); +lean_dec(x_92); +lean_dec(x_91); +x_1606 = l_Array_isEmpty___rarg(x_11); +if (x_1606 == 0) +{ +lean_object* x_1607; lean_object* x_1608; lean_object* x_1609; lean_object* x_1610; lean_object* x_1611; lean_object* x_1612; lean_object* x_1613; lean_object* x_1614; lean_object* x_1615; lean_object* x_1616; lean_object* x_1617; lean_object* x_1618; lean_object* x_1619; lean_object* x_1620; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_1607 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1607, 0, x_90); +x_1608 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1609 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1609, 0, x_1608); +lean_ctor_set(x_1609, 1, x_1607); +x_1610 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1611 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1611, 0, x_1609); +lean_ctor_set(x_1611, 1, x_1610); +x_1612 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_11); +x_1613 = l_Array_toList___rarg(x_1612); +lean_dec(x_1612); +x_1614 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1613); +x_1615 = l_Array_HasRepr___rarg___closed__1; +x_1616 = lean_string_append(x_1615, x_1614); +lean_dec(x_1614); +x_1617 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1617, 0, x_1616); +x_1618 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1618, 0, x_1617); +x_1619 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1619, 0, x_1611); +lean_ctor_set(x_1619, 1, x_1618); +x_1620 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1619, x_4, x_1486); +lean_dec(x_6); +return x_1620; +} +else +{ +lean_object* x_1621; lean_object* x_1646; lean_object* x_1647; lean_object* x_1648; lean_object* x_1649; uint8_t x_1650; +lean_dec(x_90); +lean_dec(x_11); +x_1646 = l_Lean_Elab_Term_getOptions(x_4, x_1486); +x_1647 = lean_ctor_get(x_1646, 0); +lean_inc(x_1647); +x_1648 = lean_ctor_get(x_1646, 1); +lean_inc(x_1648); +lean_dec(x_1646); +x_1649 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1650 = l_Lean_checkTraceOption(x_1647, x_1649); +lean_dec(x_1647); +if (x_1650 == 0) +{ +x_1621 = x_1648; +goto block_1645; +} +else +{ +lean_object* x_1651; lean_object* x_1652; lean_object* x_1653; +lean_inc(x_2); +x_1651 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1651, 0, x_2); +x_1652 = l_Lean_Elab_Term_logTrace(x_1649, x_6, x_1651, x_4, x_1648); +x_1653 = lean_ctor_get(x_1652, 1); +lean_inc(x_1653); +lean_dec(x_1652); +x_1621 = x_1653; +goto block_1645; +} +block_1645: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_1622; +lean_dec(x_3); +x_1622 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1621); +lean_dec(x_12); +if (lean_obj_tag(x_1622) == 0) +{ +lean_object* x_1623; lean_object* x_1624; lean_object* x_1625; +x_1623 = lean_ctor_get(x_1622, 1); +lean_inc(x_1623); +if (lean_is_exclusive(x_1622)) { + lean_ctor_release(x_1622, 0); + lean_ctor_release(x_1622, 1); + x_1624 = x_1622; +} else { + lean_dec_ref(x_1622); + x_1624 = lean_box(0); +} +if (lean_is_scalar(x_1624)) { + x_1625 = lean_alloc_ctor(0, 2, 0); +} else { + x_1625 = x_1624; +} +lean_ctor_set(x_1625, 0, x_2); +lean_ctor_set(x_1625, 1, x_1623); +return x_1625; +} +else +{ +lean_object* x_1626; lean_object* x_1627; lean_object* x_1628; lean_object* x_1629; +lean_dec(x_2); +x_1626 = lean_ctor_get(x_1622, 0); +lean_inc(x_1626); +x_1627 = lean_ctor_get(x_1622, 1); +lean_inc(x_1627); +if (lean_is_exclusive(x_1622)) { + lean_ctor_release(x_1622, 0); + lean_ctor_release(x_1622, 1); + x_1628 = x_1622; +} else { + lean_dec_ref(x_1622); + x_1628 = lean_box(0); +} +if (lean_is_scalar(x_1628)) { + x_1629 = lean_alloc_ctor(1, 2, 0); +} else { + x_1629 = x_1628; +} +lean_ctor_set(x_1629, 0, x_1626); +lean_ctor_set(x_1629, 1, x_1627); +return x_1629; +} +} +else +{ +lean_object* x_1630; lean_object* x_1631; +x_1630 = lean_ctor_get(x_8, 0); +lean_inc(x_1630); +lean_dec(x_8); +lean_inc(x_4); +x_1631 = l_Lean_Elab_Term_isDefEq(x_6, x_1630, x_3, x_4, x_1621); +if (lean_obj_tag(x_1631) == 0) +{ +lean_object* x_1632; lean_object* x_1633; +x_1632 = lean_ctor_get(x_1631, 1); +lean_inc(x_1632); +lean_dec(x_1631); +x_1633 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1632); +lean_dec(x_12); +if (lean_obj_tag(x_1633) == 0) +{ +lean_object* x_1634; lean_object* x_1635; lean_object* x_1636; +x_1634 = lean_ctor_get(x_1633, 1); +lean_inc(x_1634); +if (lean_is_exclusive(x_1633)) { + lean_ctor_release(x_1633, 0); + lean_ctor_release(x_1633, 1); + x_1635 = x_1633; +} else { + lean_dec_ref(x_1633); + x_1635 = lean_box(0); +} +if (lean_is_scalar(x_1635)) { + x_1636 = lean_alloc_ctor(0, 2, 0); +} else { + x_1636 = x_1635; +} +lean_ctor_set(x_1636, 0, x_2); +lean_ctor_set(x_1636, 1, x_1634); +return x_1636; +} +else +{ +lean_object* x_1637; lean_object* x_1638; lean_object* x_1639; lean_object* x_1640; +lean_dec(x_2); +x_1637 = lean_ctor_get(x_1633, 0); +lean_inc(x_1637); +x_1638 = lean_ctor_get(x_1633, 1); +lean_inc(x_1638); +if (lean_is_exclusive(x_1633)) { + lean_ctor_release(x_1633, 0); + lean_ctor_release(x_1633, 1); + x_1639 = x_1633; +} else { + lean_dec_ref(x_1633); + x_1639 = lean_box(0); +} +if (lean_is_scalar(x_1639)) { + x_1640 = lean_alloc_ctor(1, 2, 0); +} else { + x_1640 = x_1639; +} +lean_ctor_set(x_1640, 0, x_1637); +lean_ctor_set(x_1640, 1, x_1638); +return x_1640; +} +} +else +{ +lean_object* x_1641; lean_object* x_1642; lean_object* x_1643; lean_object* x_1644; +lean_dec(x_12); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_1641 = lean_ctor_get(x_1631, 0); +lean_inc(x_1641); +x_1642 = lean_ctor_get(x_1631, 1); +lean_inc(x_1642); +if (lean_is_exclusive(x_1631)) { + lean_ctor_release(x_1631, 0); + lean_ctor_release(x_1631, 1); + x_1643 = x_1631; +} else { + lean_dec_ref(x_1631); + x_1643 = lean_box(0); +} +if (lean_is_scalar(x_1643)) { + x_1644 = lean_alloc_ctor(1, 2, 0); +} else { + x_1644 = x_1643; +} +lean_ctor_set(x_1644, 0, x_1641); +lean_ctor_set(x_1644, 1, x_1642); +return x_1644; +} +} +} +} +} +} +else +{ +lean_object* x_1654; lean_object* x_1655; +lean_dec(x_1488); +lean_dec(x_90); +lean_dec(x_3); +x_1654 = lean_array_fget(x_7, x_10); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_6); +x_1655 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_1654, x_91, x_4, x_1486); +if (lean_obj_tag(x_1655) == 0) +{ +lean_object* x_1656; lean_object* x_1657; lean_object* x_1658; lean_object* x_1659; lean_object* x_1660; lean_object* x_1661; lean_object* x_1662; +x_1656 = lean_ctor_get(x_1655, 0); +lean_inc(x_1656); +x_1657 = lean_ctor_get(x_1655, 1); +lean_inc(x_1657); +lean_dec(x_1655); +x_1658 = lean_unsigned_to_nat(1u); +x_1659 = lean_nat_add(x_10, x_1658); +lean_dec(x_10); +x_1660 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_1660, 0, x_6); +lean_ctor_set(x_1660, 1, x_7); +lean_ctor_set(x_1660, 2, x_8); +lean_ctor_set(x_1660, 3, x_1659); +lean_ctor_set(x_1660, 4, x_11); +lean_ctor_set(x_1660, 5, x_12); +lean_ctor_set(x_1660, 6, x_13); +lean_ctor_set_uint8(x_1660, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1660, sizeof(void*)*7 + 1, x_1487); +lean_inc(x_1656); +x_1661 = l_Lean_mkApp(x_2, x_1656); +x_1662 = lean_expr_instantiate1(x_92, x_1656); +lean_dec(x_1656); +lean_dec(x_92); +x_1 = x_1660; +x_2 = x_1661; +x_3 = x_1662; +x_5 = x_1657; +goto _start; +} +else +{ +lean_object* x_1664; lean_object* x_1665; lean_object* x_1666; lean_object* x_1667; +lean_dec(x_92); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_1664 = lean_ctor_get(x_1655, 0); +lean_inc(x_1664); +x_1665 = lean_ctor_get(x_1655, 1); +lean_inc(x_1665); +if (lean_is_exclusive(x_1655)) { + lean_ctor_release(x_1655, 0); + lean_ctor_release(x_1655, 1); + x_1666 = x_1655; +} else { + lean_dec_ref(x_1655); + x_1666 = lean_box(0); +} +if (lean_is_scalar(x_1666)) { + x_1667 = lean_alloc_ctor(1, 2, 0); +} else { + x_1667 = x_1666; +} +lean_ctor_set(x_1667, 0, x_1664); +lean_ctor_set(x_1667, 1, x_1665); +return x_1667; +} +} +} +else +{ +lean_object* x_1668; lean_object* x_1669; lean_object* x_1670; lean_object* x_1671; +lean_dec(x_92); +lean_dec(x_91); +lean_dec(x_90); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_1668 = lean_ctor_get(x_1288, 0); +lean_inc(x_1668); +x_1669 = lean_ctor_get(x_1288, 1); +lean_inc(x_1669); +if (lean_is_exclusive(x_1288)) { + lean_ctor_release(x_1288, 0); + lean_ctor_release(x_1288, 1); + x_1670 = x_1288; +} else { + lean_dec_ref(x_1288); + x_1670 = lean_box(0); +} +if (lean_is_scalar(x_1670)) { + x_1671 = lean_alloc_ctor(1, 2, 0); +} else { + x_1671 = x_1670; +} +lean_ctor_set(x_1671, 0, x_1668); +lean_ctor_set(x_1671, 1, x_1669); +return x_1671; +} +} +} +} +} +else +{ +lean_object* x_1672; lean_object* x_1673; lean_object* x_1674; lean_object* x_1675; lean_object* x_1676; lean_object* x_1677; +lean_dec(x_90); +lean_dec(x_3); +x_1672 = lean_ctor_get(x_95, 0); +lean_inc(x_1672); +lean_dec(x_95); +x_1673 = l_Lean_Elab_Term_NamedArg_inhabited; +x_1674 = lean_array_get(x_1673, x_11, x_1672); +x_1675 = l_Array_eraseIdx___rarg(x_11, x_1672); +lean_dec(x_1672); +x_1676 = lean_ctor_get(x_1674, 1); +lean_inc(x_1676); +lean_dec(x_1674); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_6); +x_1677 = l___private_Init_Lean_Elab_App_2__elabArg(x_6, x_2, x_1676, x_91, x_4, x_17); +if (lean_obj_tag(x_1677) == 0) +{ +lean_object* x_1678; lean_object* x_1679; lean_object* x_1680; uint8_t x_1681; +x_1678 = lean_ctor_get(x_1677, 0); +lean_inc(x_1678); +x_1679 = lean_ctor_get(x_1677, 1); +lean_inc(x_1679); +lean_dec(x_1677); +lean_inc(x_4); +lean_inc(x_1); +x_1680 = l___private_Init_Lean_Elab_App_8__propagateExpectedType(x_1, x_16, x_4, x_1679); +x_1681 = !lean_is_exclusive(x_1); +if (x_1681 == 0) +{ +lean_object* x_1682; lean_object* x_1683; lean_object* x_1684; lean_object* x_1685; lean_object* x_1686; lean_object* x_1687; lean_object* x_1688; +x_1682 = lean_ctor_get(x_1, 6); +lean_dec(x_1682); +x_1683 = lean_ctor_get(x_1, 5); +lean_dec(x_1683); +x_1684 = lean_ctor_get(x_1, 4); +lean_dec(x_1684); +x_1685 = lean_ctor_get(x_1, 3); +lean_dec(x_1685); +x_1686 = lean_ctor_get(x_1, 2); +lean_dec(x_1686); +x_1687 = lean_ctor_get(x_1, 1); +lean_dec(x_1687); +x_1688 = lean_ctor_get(x_1, 0); +lean_dec(x_1688); +if (lean_obj_tag(x_1680) == 0) +{ +lean_object* x_1689; uint8_t x_1690; lean_object* x_1691; lean_object* x_1692; +x_1689 = lean_ctor_get(x_1680, 1); +lean_inc(x_1689); +lean_dec(x_1680); +x_1690 = 1; +lean_ctor_set(x_1, 4, x_1675); +lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_1690); +lean_inc(x_1678); +x_1691 = l_Lean_mkApp(x_2, x_1678); +x_1692 = lean_expr_instantiate1(x_92, x_1678); +lean_dec(x_1678); +lean_dec(x_92); +x_2 = x_1691; +x_3 = x_1692; +x_5 = x_1689; +goto _start; +} +else +{ +uint8_t x_1694; +lean_free_object(x_1); +lean_dec(x_1678); +lean_dec(x_1675); lean_dec(x_92); lean_dec(x_13); lean_dec(x_12); @@ -8844,33 +10178,98 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_1332 = lean_ctor_get(x_1308, 0); -lean_inc(x_1332); -x_1333 = lean_ctor_get(x_1308, 1); -lean_inc(x_1333); -if (lean_is_exclusive(x_1308)) { - lean_ctor_release(x_1308, 0); - lean_ctor_release(x_1308, 1); - x_1334 = x_1308; -} else { - lean_dec_ref(x_1308); - x_1334 = lean_box(0); +x_1694 = !lean_is_exclusive(x_1680); +if (x_1694 == 0) +{ +return x_1680; } -if (lean_is_scalar(x_1334)) { - x_1335 = lean_alloc_ctor(1, 2, 0); -} else { - x_1335 = x_1334; -} -lean_ctor_set(x_1335, 0, x_1332); -lean_ctor_set(x_1335, 1, x_1333); -return x_1335; +else +{ +lean_object* x_1695; lean_object* x_1696; lean_object* x_1697; +x_1695 = lean_ctor_get(x_1680, 0); +x_1696 = lean_ctor_get(x_1680, 1); +lean_inc(x_1696); +lean_inc(x_1695); +lean_dec(x_1680); +x_1697 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1697, 0, x_1695); +lean_ctor_set(x_1697, 1, x_1696); +return x_1697; } } } else { -uint8_t x_1336; -lean_dec(x_1303); +lean_dec(x_1); +if (lean_obj_tag(x_1680) == 0) +{ +lean_object* x_1698; uint8_t x_1699; lean_object* x_1700; lean_object* x_1701; lean_object* x_1702; +x_1698 = lean_ctor_get(x_1680, 1); +lean_inc(x_1698); +lean_dec(x_1680); +x_1699 = 1; +x_1700 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_1700, 0, x_6); +lean_ctor_set(x_1700, 1, x_7); +lean_ctor_set(x_1700, 2, x_8); +lean_ctor_set(x_1700, 3, x_10); +lean_ctor_set(x_1700, 4, x_1675); +lean_ctor_set(x_1700, 5, x_12); +lean_ctor_set(x_1700, 6, x_13); +lean_ctor_set_uint8(x_1700, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1700, sizeof(void*)*7 + 1, x_1699); +lean_inc(x_1678); +x_1701 = l_Lean_mkApp(x_2, x_1678); +x_1702 = lean_expr_instantiate1(x_92, x_1678); +lean_dec(x_1678); +lean_dec(x_92); +x_1 = x_1700; +x_2 = x_1701; +x_3 = x_1702; +x_5 = x_1698; +goto _start; +} +else +{ +lean_object* x_1704; lean_object* x_1705; lean_object* x_1706; lean_object* x_1707; +lean_dec(x_1678); +lean_dec(x_1675); +lean_dec(x_92); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_1704 = lean_ctor_get(x_1680, 0); +lean_inc(x_1704); +x_1705 = lean_ctor_get(x_1680, 1); +lean_inc(x_1705); +if (lean_is_exclusive(x_1680)) { + lean_ctor_release(x_1680, 0); + lean_ctor_release(x_1680, 1); + x_1706 = x_1680; +} else { + lean_dec_ref(x_1680); + x_1706 = lean_box(0); +} +if (lean_is_scalar(x_1706)) { + x_1707 = lean_alloc_ctor(1, 2, 0); +} else { + x_1707 = x_1706; +} +lean_ctor_set(x_1707, 0, x_1704); +lean_ctor_set(x_1707, 1, x_1705); +return x_1707; +} +} +} +else +{ +uint8_t x_1708; +lean_dec(x_1675); lean_dec(x_92); lean_dec(x_16); lean_dec(x_13); @@ -8882,33 +10281,33 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_1336 = !lean_is_exclusive(x_1305); -if (x_1336 == 0) +x_1708 = !lean_is_exclusive(x_1677); +if (x_1708 == 0) { -return x_1305; +return x_1677; } else { -lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; -x_1337 = lean_ctor_get(x_1305, 0); -x_1338 = lean_ctor_get(x_1305, 1); -lean_inc(x_1338); -lean_inc(x_1337); -lean_dec(x_1305); -x_1339 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1339, 0, x_1337); -lean_ctor_set(x_1339, 1, x_1338); -return x_1339; +lean_object* x_1709; lean_object* x_1710; lean_object* x_1711; +x_1709 = lean_ctor_get(x_1677, 0); +x_1710 = lean_ctor_get(x_1677, 1); +lean_inc(x_1710); +lean_inc(x_1709); +lean_dec(x_1677); +x_1711 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1711, 0, x_1709); +lean_ctor_set(x_1711, 1, x_1710); +return x_1711; } } } } else { -lean_object* x_1340; +lean_object* x_1712; lean_dec(x_13); -x_1340 = lean_box(0); -x_18 = x_1340; +x_1712 = lean_box(0); +x_18 = x_1712; goto block_89; } block_89: @@ -9108,7 +10507,7 @@ lean_inc(x_82); x_83 = lean_ctor_get(x_81, 1); lean_inc(x_83); lean_dec(x_81); -x_84 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3; +x_84 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; x_85 = l_Lean_checkTraceOption(x_82, x_84); lean_dec(x_82); if (x_85 == 0) @@ -9285,7 +10684,7 @@ return x_79; } else { -uint8_t x_1341; +uint8_t x_1713; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -9297,46 +10696,46 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_1341 = !lean_is_exclusive(x_15); -if (x_1341 == 0) +x_1713 = !lean_is_exclusive(x_15); +if (x_1713 == 0) { return x_15; } else { -lean_object* x_1342; lean_object* x_1343; lean_object* x_1344; -x_1342 = lean_ctor_get(x_15, 0); -x_1343 = lean_ctor_get(x_15, 1); -lean_inc(x_1343); -lean_inc(x_1342); +lean_object* x_1714; lean_object* x_1715; lean_object* x_1716; +x_1714 = lean_ctor_get(x_15, 0); +x_1715 = lean_ctor_get(x_15, 1); +lean_inc(x_1715); +lean_inc(x_1714); lean_dec(x_15); -x_1344 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1344, 0, x_1342); -lean_ctor_set(x_1344, 1, x_1343); -return x_1344; +x_1716 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1716, 0, x_1714); +lean_ctor_set(x_1716, 1, x_1715); +return x_1716; } } } } -lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___spec__1(x_1, x_2, x_3); +x_4 = l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___spec__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_Lean_Elab_App_11__elabAppArgsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_App_10__elabAppArgsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__1() { _start: { lean_object* x_1; @@ -9344,17 +10743,17 @@ x_1 = lean_mk_string("args"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__1; -x_2 = l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__1; +x_1 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__1; +x_2 = l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__3() { _start: { lean_object* x_1; @@ -9362,27 +10761,27 @@ x_1 = lean_mk_string("explicit: "); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__4() { +lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__3; +x_1 = l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__3; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__5() { +lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__4; +x_1 = l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__4; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__6() { +lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__6() { _start: { lean_object* x_1; lean_object* x_2; @@ -9392,23 +10791,23 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__7() { +lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__5; -x_2 = l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__6; +x_1 = l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__5; +x_2 = l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__6; x_3 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__8() { +lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__7; +x_1 = l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__7; x_2 = l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; x_3 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -9416,7 +10815,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__9() { +lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__9() { _start: { lean_object* x_1; lean_object* x_2; @@ -9426,23 +10825,23 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__10() { +lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__5; -x_2 = l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__9; +x_1 = l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__5; +x_2 = l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__9; x_3 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__11() { +lean_object* _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__10; +x_1 = l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__10; x_2 = l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; x_3 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -9450,7 +10849,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l___private_Init_Lean_Elab_App_12__elabAppArgs(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* l___private_Init_Lean_Elab_App_11__elabAppArgs(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) { _start: { lean_object* x_9; @@ -9478,7 +10877,7 @@ lean_inc(x_47); x_48 = lean_ctor_get(x_46, 1); lean_inc(x_48); lean_dec(x_46); -x_49 = l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__2; +x_49 = l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__2; x_50 = l_Lean_checkTraceOption(x_47, x_49); lean_dec(x_47); if (x_50 == 0) @@ -9498,7 +10897,7 @@ lean_ctor_set(x_52, 0, x_13); if (x_6 == 0) { lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_53 = l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__8; +x_53 = l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__8; x_54 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_51); @@ -9519,7 +10918,7 @@ goto block_45; else { lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_60 = l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__11; +x_60 = l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__11; x_61 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_61, 0, x_60); lean_ctor_set(x_61, 1, x_51); @@ -9565,7 +10964,7 @@ lean_ctor_set(x_22, 5, x_20); lean_ctor_set(x_22, 6, x_20); lean_ctor_set_uint8(x_22, sizeof(void*)*7, x_6); lean_ctor_set_uint8(x_22, sizeof(void*)*7 + 1, x_21); -x_23 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main(x_22, x_2, x_13, x_7, x_18); +x_23 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main(x_22, x_2, x_13, x_7, x_18); return x_23; } else @@ -9625,7 +11024,7 @@ lean_ctor_set(x_34, 5, x_32); lean_ctor_set(x_34, 6, x_32); lean_ctor_set_uint8(x_34, sizeof(void*)*7, x_6); lean_ctor_set_uint8(x_34, sizeof(void*)*7 + 1, x_33); -x_35 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main(x_34, x_2, x_13, x_7, x_30); +x_35 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main(x_34, x_2, x_13, x_7, x_30); return x_35; } else @@ -9674,7 +11073,7 @@ lean_ctor_set(x_43, 5, x_41); lean_ctor_set(x_43, 6, x_41); lean_ctor_set_uint8(x_43, sizeof(void*)*7, x_6); lean_ctor_set_uint8(x_43, sizeof(void*)*7 + 1, x_42); -x_44 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main(x_43, x_2, x_13, x_7, x_15); +x_44 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main(x_43, x_2, x_13, x_7, x_15); return x_44; } } @@ -9710,17 +11109,17 @@ return x_70; } } } -lean_object* l___private_Init_Lean_Elab_App_12__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* l___private_Init_Lean_Elab_App_11__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) { _start: { uint8_t x_9; lean_object* x_10; x_9 = lean_unbox(x_6); lean_dec(x_6); -x_10 = l___private_Init_Lean_Elab_App_12__elabAppArgs(x_1, x_2, x_3, x_4, x_5, x_9, x_7, x_8); +x_10 = l___private_Init_Lean_Elab_App_11__elabAppArgs(x_1, x_2, x_3, x_4, x_5, x_9, x_7, x_8); return x_10; } } -lean_object* l___private_Init_Lean_Elab_App_13__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* l___private_Init_Lean_Elab_App_12__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) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; @@ -9748,24 +11147,24 @@ x_17 = l_Lean_Elab_Term_throwError___rarg(x_1, x_16, x_5, x_6); return x_17; } } -lean_object* l___private_Init_Lean_Elab_App_13__throwLValError(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_App_12__throwLValError(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_App_13__throwLValError___rarg___boxed), 6, 0); +x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_App_12__throwLValError___rarg___boxed), 6, 0); return x_2; } } -lean_object* l___private_Init_Lean_Elab_App_13__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* l___private_Init_Lean_Elab_App_12__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) { _start: { lean_object* x_7; -x_7 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_1); return x_7; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__1() { _start: { lean_object* x_1; @@ -9773,27 +11172,27 @@ x_1 = lean_mk_string("invalid field notation, type is not of the form (C ...) wh return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__1; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__2; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__4() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__4() { _start: { lean_object* x_1; @@ -9801,27 +11200,27 @@ x_1 = lean_mk_string("invalid [..] notation, type is not of the form (C ...) whe return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__5() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__4; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__6() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__5; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__7() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__7() { _start: { lean_object* x_1; @@ -9829,27 +11228,27 @@ x_1 = lean_mk_string("invalid projection, structure has only "); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__8() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__7; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__7; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__9() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__8; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__8; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__10() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__10() { _start: { lean_object* x_1; @@ -9857,27 +11256,27 @@ x_1 = lean_mk_string(" field(s)"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__11() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__10; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__10; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__12() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__12() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__11; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__11; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__13() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__13() { _start: { lean_object* x_1; @@ -9885,27 +11284,27 @@ x_1 = lean_mk_string("invalid projection, structure expected"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__14() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__14() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__13; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__13; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__15() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__15() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__14; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__14; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__16() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__16() { _start: { lean_object* x_1; @@ -9913,27 +11312,27 @@ x_1 = lean_mk_string("invalid projection, index must be greater than 0"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__17() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__17() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__16; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__16; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__18() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__18() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__17; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__17; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__19() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__19() { _start: { lean_object* x_1; @@ -9941,27 +11340,27 @@ x_1 = lean_mk_string("invalid field notation, '"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__20() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__20() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__19; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__19; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__20; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__20; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__22() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__22() { _start: { lean_object* x_1; @@ -9969,27 +11368,27 @@ x_1 = lean_mk_string("' is not a valid \"field\" because environment does not co return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__23() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__23() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__22; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__22; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__23; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__23; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__25() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__25() { _start: { lean_object* x_1; @@ -9997,7 +11396,7 @@ x_1 = lean_mk_string("getOp"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__26() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__26() { _start: { lean_object* x_1; @@ -10005,27 +11404,27 @@ x_1 = lean_mk_string("invalid [..] notation because environment does not contain return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__27() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__27() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__26; +x_1 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__26; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__28() { +lean_object* _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__28() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__27; +x_1 = l___private_Init_Lean_Elab_App_13__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_Init_Lean_Elab_App_14__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* l___private_Init_Lean_Elab_App_13__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) { _start: { lean_object* x_7; lean_object* x_13; @@ -10070,8 +11469,8 @@ lean_dec(x_21); lean_dec(x_19); lean_dec(x_15); lean_dec(x_14); -x_44 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__15; -x_45 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_44, x_5, x_20); +x_44 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__15; +x_45 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_44, x_5, x_20); x_46 = !lean_is_exclusive(x_45); if (x_46 == 0) { @@ -10120,15 +11519,15 @@ x_29 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_29, 0, x_28); x_30 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_30, 0, x_29); -x_31 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__9; +x_31 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__9; x_32 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); -x_33 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__12; +x_33 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__12; x_34 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_34, 0, x_32); lean_ctor_set(x_34, 1, x_33); -x_35 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_34, x_5, x_22); +x_35 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_34, x_5, x_22); return x_35; } else @@ -10186,7 +11585,7 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_3); lean_dec(x_2); -x_50 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__18; +x_50 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__18; x_51 = l_Lean_Elab_Term_throwError___rarg(x_1, x_50, x_5, x_6); x_52 = !lean_is_exclusive(x_51); if (x_52 == 0) @@ -10266,11 +11665,11 @@ x_76 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_76, 0, x_57); x_77 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_77, 0, x_76); -x_78 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21; +x_78 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21; x_79 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_79, 0, x_78); lean_ctor_set(x_79, 1, x_77); -x_80 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24; +x_80 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24; x_81 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_81, 0, x_79); lean_ctor_set(x_81, 1, x_80); @@ -10283,7 +11682,7 @@ x_84 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; x_85 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_85, 0, x_83); lean_ctor_set(x_85, 1, x_84); -x_86 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_85, x_5, x_73); +x_86 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_85, x_5, x_73); return x_86; } else @@ -10325,11 +11724,11 @@ x_93 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_93, 0, x_57); x_94 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_94, 0, x_93); -x_95 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21; +x_95 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21; x_96 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_96, 0, x_95); lean_ctor_set(x_96, 1, x_94); -x_97 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24; +x_97 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24; x_98 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_98, 0, x_96); lean_ctor_set(x_98, 1, x_97); @@ -10342,7 +11741,7 @@ x_101 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; x_102 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_102, 0, x_100); lean_ctor_set(x_102, 1, x_101); -x_103 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_102, x_5, x_73); +x_103 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_102, x_5, x_73); return x_103; } else @@ -10401,11 +11800,11 @@ x_111 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_111, 0, x_57); x_112 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_112, 0, x_111); -x_113 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21; +x_113 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21; x_114 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_114, 0, x_113); lean_ctor_set(x_114, 1, x_112); -x_115 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24; +x_115 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24; x_116 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_116, 0, x_114); lean_ctor_set(x_116, 1, x_115); @@ -10418,7 +11817,7 @@ x_119 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; x_120 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_120, 0, x_118); lean_ctor_set(x_120, 1, x_119); -x_121 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_120, x_5, x_108); +x_121 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_120, x_5, x_108); return x_121; } else @@ -10461,11 +11860,11 @@ x_129 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_129, 0, x_57); x_130 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_130, 0, x_129); -x_131 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21; +x_131 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21; x_132 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_132, 0, x_131); lean_ctor_set(x_132, 1, x_130); -x_133 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24; +x_133 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24; x_134 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_134, 0, x_132); lean_ctor_set(x_134, 1, x_133); @@ -10478,7 +11877,7 @@ x_137 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; x_138 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_138, 0, x_136); lean_ctor_set(x_138, 1, x_137); -x_139 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_138, x_5, x_108); +x_139 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_138, x_5, x_108); return x_139; } else @@ -10565,11 +11964,11 @@ x_159 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_159, 0, x_57); x_160 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_160, 0, x_159); -x_161 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21; +x_161 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21; x_162 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_162, 0, x_161); lean_ctor_set(x_162, 1, x_160); -x_163 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24; +x_163 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24; x_164 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_164, 0, x_162); lean_ctor_set(x_164, 1, x_163); @@ -10582,7 +11981,7 @@ x_167 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; x_168 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_168, 0, x_166); lean_ctor_set(x_168, 1, x_167); -x_169 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_168, x_5, x_156); +x_169 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_168, x_5, x_156); return x_169; } else @@ -10624,11 +12023,11 @@ x_176 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_176, 0, x_57); x_177 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_177, 0, x_176); -x_178 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21; +x_178 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21; x_179 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_179, 0, x_178); lean_ctor_set(x_179, 1, x_177); -x_180 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24; +x_180 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24; x_181 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_181, 0, x_179); lean_ctor_set(x_181, 1, x_180); @@ -10641,7 +12040,7 @@ x_184 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; x_185 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_185, 0, x_183); lean_ctor_set(x_185, 1, x_184); -x_186 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_185, x_5, x_156); +x_186 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_185, x_5, x_156); return x_186; } else @@ -10700,11 +12099,11 @@ x_194 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_194, 0, x_57); x_195 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_195, 0, x_194); -x_196 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21; +x_196 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21; x_197 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_197, 0, x_196); lean_ctor_set(x_197, 1, x_195); -x_198 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24; +x_198 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24; x_199 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_199, 0, x_197); lean_ctor_set(x_199, 1, x_198); @@ -10717,7 +12116,7 @@ x_202 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; x_203 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_203, 0, x_201); lean_ctor_set(x_203, 1, x_202); -x_204 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_203, x_5, x_191); +x_204 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_203, x_5, x_191); return x_204; } else @@ -10760,11 +12159,11 @@ x_212 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_212, 0, x_57); x_213 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_213, 0, x_212); -x_214 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21; +x_214 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21; x_215 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_215, 0, x_214); lean_ctor_set(x_215, 1, x_213); -x_216 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24; +x_216 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24; x_217 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_217, 0, x_215); lean_ctor_set(x_217, 1, x_216); @@ -10777,7 +12176,7 @@ x_220 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; x_221 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_221, 0, x_219); lean_ctor_set(x_221, 1, x_220); -x_222 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_221, x_5, x_191); +x_222 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_221, x_5, x_191); return x_222; } else @@ -10894,11 +12293,11 @@ x_246 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_246, 0, x_57); x_247 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_247, 0, x_246); -x_248 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21; +x_248 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21; x_249 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_249, 0, x_248); lean_ctor_set(x_249, 1, x_247); -x_250 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24; +x_250 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24; x_251 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_251, 0, x_249); lean_ctor_set(x_251, 1, x_250); @@ -10911,7 +12310,7 @@ x_254 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; x_255 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_255, 0, x_253); lean_ctor_set(x_255, 1, x_254); -x_256 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_255, x_5, x_242); +x_256 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_255, x_5, x_242); return x_256; } else @@ -10959,11 +12358,11 @@ x_264 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_264, 0, x_57); x_265 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_265, 0, x_264); -x_266 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21; +x_266 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21; x_267 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_267, 0, x_266); lean_ctor_set(x_267, 1, x_265); -x_268 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24; +x_268 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24; x_269 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_269, 0, x_267); lean_ctor_set(x_269, 1, x_268); @@ -10976,7 +12375,7 @@ x_272 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; x_273 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_273, 0, x_271); lean_ctor_set(x_273, 1, x_272); -x_274 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_273, x_5, x_242); +x_274 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_273, x_5, x_242); return x_274; } else @@ -11075,11 +12474,11 @@ x_294 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_294, 0, x_57); x_295 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_295, 0, x_294); -x_296 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21; +x_296 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21; x_297 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_297, 0, x_296); lean_ctor_set(x_297, 1, x_295); -x_298 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24; +x_298 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24; x_299 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_299, 0, x_297); lean_ctor_set(x_299, 1, x_298); @@ -11092,7 +12491,7 @@ x_302 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; x_303 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_303, 0, x_301); lean_ctor_set(x_303, 1, x_302); -x_304 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_303, x_5, x_290); +x_304 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_303, x_5, x_290); return x_304; } else @@ -11140,11 +12539,11 @@ x_312 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_312, 0, x_57); x_313 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_313, 0, x_312); -x_314 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21; +x_314 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21; x_315 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_315, 0, x_314); lean_ctor_set(x_315, 1, x_313); -x_316 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24; +x_316 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24; x_317 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_317, 0, x_315); lean_ctor_set(x_317, 1, x_316); @@ -11157,7 +12556,7 @@ x_320 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; x_321 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_321, 0, x_319); lean_ctor_set(x_321, 1, x_320); -x_322 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_321, x_5, x_290); +x_322 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_321, x_5, x_290); return x_322; } else @@ -11245,7 +12644,7 @@ if (x_334 == 0) lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; x_335 = lean_ctor_get(x_333, 0); x_336 = lean_ctor_get(x_333, 1); -x_337 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__25; +x_337 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__25; x_338 = lean_name_mk_string(x_331, x_337); lean_inc(x_338); x_339 = lean_environment_find(x_335, x_338); @@ -11256,7 +12655,7 @@ lean_free_object(x_333); lean_dec(x_332); x_340 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_340, 0, x_338); -x_341 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__28; +x_341 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__28; x_342 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_342, 0, x_341); lean_ctor_set(x_342, 1, x_340); @@ -11264,7 +12663,7 @@ x_343 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; x_344 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_344, 0, x_342); lean_ctor_set(x_344, 1, x_343); -x_345 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_344, x_5, x_336); +x_345 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_344, x_5, x_336); return x_345; } else @@ -11289,7 +12688,7 @@ x_348 = lean_ctor_get(x_333, 1); lean_inc(x_348); lean_inc(x_347); lean_dec(x_333); -x_349 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__25; +x_349 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__25; x_350 = lean_name_mk_string(x_331, x_349); lean_inc(x_350); x_351 = lean_environment_find(x_347, x_350); @@ -11299,7 +12698,7 @@ lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_dec(x_332); x_352 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_352, 0, x_350); -x_353 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__28; +x_353 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__28; x_354 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_354, 0, x_353); lean_ctor_set(x_354, 1, x_352); @@ -11307,7 +12706,7 @@ x_355 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; x_356 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_356, 0, x_354); lean_ctor_set(x_356, 1, x_355); -x_357 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_356, x_5, x_348); +x_357 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_356, x_5, x_348); return x_357; } else @@ -11344,31 +12743,31 @@ if (lean_obj_tag(x_4) == 2) { lean_object* x_8; lean_object* x_9; lean_dec(x_4); -x_8 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__6; -x_9 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_8, x_5, x_6); +x_8 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__6; +x_9 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_8, x_5, x_6); return x_9; } else { lean_object* x_10; lean_object* x_11; lean_dec(x_4); -x_10 = l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__3; -x_11 = l___private_Init_Lean_Elab_App_13__throwLValError___rarg(x_1, x_2, x_3, x_10, x_5, x_6); +x_10 = l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__3; +x_11 = l___private_Init_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_10, x_5, x_6); return x_11; } } } } -lean_object* l___private_Init_Lean_Elab_App_14__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* l___private_Init_Lean_Elab_App_13__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) { _start: { lean_object* x_7; -x_7 = l___private_Init_Lean_Elab_App_14__resolveLValAux(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Init_Lean_Elab_App_13__resolveLValAux(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_1); return x_7; } } -lean_object* l_Array_forMAux___main___at___private_Init_Lean_Elab_App_15__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* l_Array_forMAux___main___at___private_Init_Lean_Elab_App_14__resolveLValLoop___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -11438,7 +12837,7 @@ goto _start; } } } -lean_object* l___private_Init_Lean_Elab_App_15__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* l___private_Init_Lean_Elab_App_14__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) { _start: { lean_object* x_8; @@ -11463,7 +12862,7 @@ lean_inc(x_6); lean_inc(x_3); lean_inc(x_9); lean_inc(x_2); -x_13 = l___private_Init_Lean_Elab_App_14__resolveLValAux(x_1, x_2, x_9, x_3, x_6, x_12); +x_13 = l___private_Init_Lean_Elab_App_13__resolveLValAux(x_1, x_2, x_9, x_3, x_6, x_12); if (lean_obj_tag(x_13) == 0) { lean_dec(x_9); @@ -11505,7 +12904,7 @@ x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec(x_18); x_21 = lean_unsigned_to_nat(0u); -x_22 = l_Array_forMAux___main___at___private_Init_Lean_Elab_App_15__resolveLValLoop___main___spec__1(x_17, x_5, x_21, x_6, x_20); +x_22 = l_Array_forMAux___main___at___private_Init_Lean_Elab_App_14__resolveLValLoop___main___spec__1(x_17, x_5, x_21, x_6, x_20); lean_dec(x_6); lean_dec(x_5); x_23 = !lean_is_exclusive(x_22); @@ -11662,43 +13061,43 @@ return x_46; } } } -lean_object* l_Array_forMAux___main___at___private_Init_Lean_Elab_App_15__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* l_Array_forMAux___main___at___private_Init_Lean_Elab_App_14__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) { _start: { lean_object* x_6; -x_6 = l_Array_forMAux___main___at___private_Init_Lean_Elab_App_15__resolveLValLoop___main___spec__1(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_forMAux___main___at___private_Init_Lean_Elab_App_14__resolveLValLoop___main___spec__1(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_2); return x_6; } } -lean_object* l___private_Init_Lean_Elab_App_15__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* l___private_Init_Lean_Elab_App_14__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) { _start: { lean_object* x_8; -x_8 = l___private_Init_Lean_Elab_App_15__resolveLValLoop___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Init_Lean_Elab_App_14__resolveLValLoop___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_1); return x_8; } } -lean_object* l___private_Init_Lean_Elab_App_15__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* l___private_Init_Lean_Elab_App_14__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) { _start: { lean_object* x_8; -x_8 = l___private_Init_Lean_Elab_App_15__resolveLValLoop___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Init_Lean_Elab_App_14__resolveLValLoop___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); return x_8; } } -lean_object* l___private_Init_Lean_Elab_App_15__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* l___private_Init_Lean_Elab_App_14__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) { _start: { lean_object* x_8; -x_8 = l___private_Init_Lean_Elab_App_15__resolveLValLoop(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Init_Lean_Elab_App_14__resolveLValLoop(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_1); return x_8; } } -lean_object* l___private_Init_Lean_Elab_App_16__resolveLVal(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_App_15__resolveLVal(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; @@ -11714,7 +13113,7 @@ x_8 = lean_ctor_get(x_6, 1); lean_inc(x_8); lean_dec(x_6); x_9 = l_Array_empty___closed__1; -x_10 = l___private_Init_Lean_Elab_App_15__resolveLValLoop___main(x_1, x_2, x_3, x_7, x_9, x_4, x_8); +x_10 = l___private_Init_Lean_Elab_App_14__resolveLValLoop___main(x_1, x_2, x_3, x_7, x_9, x_4, x_8); return x_10; } else @@ -11744,16 +13143,16 @@ return x_14; } } } -lean_object* l___private_Init_Lean_Elab_App_16__resolveLVal___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_App_15__resolveLVal___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Init_Lean_Elab_App_16__resolveLVal(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_Lean_Elab_App_15__resolveLVal(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } } -lean_object* _init_l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1___closed__1() { +lean_object* _init_l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__1() { _start: { lean_object* x_1; @@ -11761,17 +13160,17 @@ x_1 = lean_mk_string("self"); return x_1; } } -lean_object* _init_l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1___closed__2() { +lean_object* _init_l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__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_Init_Lean_Elab_App_17__mkBaseProjections___spec__1___closed__1; +x_2 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__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_Init_Lean_Elab_App_17__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* l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1(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) == 0) @@ -11805,7 +13204,7 @@ lean_inc(x_12); lean_dec(x_10); x_13 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_13, 0, x_2); -x_14 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1___closed__2; +x_14 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; x_15 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); @@ -11816,7 +13215,7 @@ x_19 = l_Array_empty___closed__1; x_20 = 0; lean_inc(x_4); lean_inc(x_1); -x_21 = l___private_Init_Lean_Elab_App_12__elabAppArgs(x_1, x_11, x_17, x_19, x_18, x_20, x_4, x_12); +x_21 = l___private_Init_Lean_Elab_App_11__elabAppArgs(x_1, x_11, x_17, x_19, x_18, x_20, x_4, x_12); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; lean_object* x_23; @@ -11885,7 +13284,7 @@ return x_32; } } } -lean_object* _init_l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__1() { _start: { lean_object* x_1; @@ -11893,27 +13292,27 @@ x_1 = lean_mk_string("failed to access field in parent structure"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__1; +x_1 = l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__2; +x_1 = l___private_Init_Lean_Elab_App_16__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_Init_Lean_Elab_App_17__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* l___private_Init_Lean_Elab_App_16__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) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; @@ -11928,7 +13327,7 @@ if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; lean_dec(x_4); -x_11 = l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__3; +x_11 = l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__3; x_12 = l_Lean_Elab_Term_throwError___rarg(x_1, x_11, x_5, x_9); lean_dec(x_1); return x_12; @@ -11939,21 +13338,21 @@ lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_10, 0); lean_inc(x_13); lean_dec(x_10); -x_14 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1(x_1, x_4, x_13, x_5, x_9); +x_14 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1(x_1, x_4, x_13, x_5, x_9); return x_14; } } } -lean_object* l___private_Init_Lean_Elab_App_17__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* l___private_Init_Lean_Elab_App_16__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) { _start: { lean_object* x_7; -x_7 = l___private_Init_Lean_Elab_App_17__mkBaseProjections(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Init_Lean_Elab_App_16__mkBaseProjections(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); return x_7; } } -lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_18__addLValArg___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_17__addLValArg___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -11995,7 +13394,7 @@ return x_13; } } } -lean_object* _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__1() { _start: { lean_object* x_1; @@ -12003,27 +13402,27 @@ x_1 = lean_mk_string("invalid field notation, function '"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__1; +x_1 = l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__2; +x_1 = l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__4() { +lean_object* _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__4() { _start: { lean_object* x_1; @@ -12031,27 +13430,27 @@ x_1 = lean_mk_string("' does not have explicit argument with type ("); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__5() { +lean_object* _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__4; +x_1 = l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__6() { +lean_object* _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__5; +x_1 = l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__7() { +lean_object* _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__7() { _start: { lean_object* x_1; @@ -12059,27 +13458,27 @@ x_1 = lean_mk_string(" ...)"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__8() { +lean_object* _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__7; +x_1 = l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__7; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__9() { +lean_object* _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__8; +x_1 = l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__8; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__10() { +lean_object* _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__10() { _start: { lean_object* x_1; @@ -12087,27 +13486,27 @@ x_1 = lean_mk_string("invalid field notation, insufficient number of arguments f return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__11() { +lean_object* _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__10; +x_1 = l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__10; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__12() { +lean_object* _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__12() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__11; +x_1 = l___private_Init_Lean_Elab_App_17__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_Init_Lean_Elab_App_18__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* l___private_Init_Lean_Elab_App_17__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) { _start: { lean_object* x_11; @@ -12129,7 +13528,7 @@ else { lean_object* x_30; lean_object* x_31; x_30 = lean_unsigned_to_nat(0u); -x_31 = l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_18__addLValArg___main___spec__1(x_23, x_7, x_30); +x_31 = l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_17__addLValArg___main___spec__1(x_23, x_7, x_30); if (lean_obj_tag(x_31) == 0) { lean_object* x_32; uint8_t x_33; @@ -12152,7 +13551,7 @@ lean_dec(x_4); lean_dec(x_2); x_36 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_36, 0, x_3); -x_37 = l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__12; +x_37 = l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__12; x_38 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_38, 0, x_37); lean_ctor_set(x_38, 1, x_36); @@ -12222,11 +13621,11 @@ lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean lean_dec(x_11); x_12 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_12, 0, x_3); -x_13 = l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__3; +x_13 = l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__3; x_14 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_12); -x_15 = l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__6; +x_15 = l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__6; x_16 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); @@ -12235,7 +13634,7 @@ lean_ctor_set(x_17, 0, x_2); x_18 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); -x_19 = l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__9; +x_19 = l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__9; x_20 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); @@ -12244,45 +13643,45 @@ return x_21; } } } -lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_18__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_Init_Lean_Elab_App_17__addLValArg___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_18__addLValArg___main___spec__1(x_1, x_2, x_3); +x_4 = l_Array_findIdxAux___main___at___private_Init_Lean_Elab_App_17__addLValArg___main___spec__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_Lean_Elab_App_18__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* l___private_Init_Lean_Elab_App_17__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) { _start: { lean_object* x_11; -x_11 = l___private_Init_Lean_Elab_App_18__addLValArg___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Init_Lean_Elab_App_17__addLValArg___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_8); lean_dec(x_1); return x_11; } } -lean_object* l___private_Init_Lean_Elab_App_18__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* l___private_Init_Lean_Elab_App_17__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) { _start: { lean_object* x_11; -x_11 = l___private_Init_Lean_Elab_App_18__addLValArg___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Init_Lean_Elab_App_17__addLValArg___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_11; } } -lean_object* l___private_Init_Lean_Elab_App_18__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* l___private_Init_Lean_Elab_App_17__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) { _start: { lean_object* x_11; -x_11 = l___private_Init_Lean_Elab_App_18__addLValArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Init_Lean_Elab_App_17__addLValArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_8); lean_dec(x_1); return x_11; } } -lean_object* _init_l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__1() { _start: { lean_object* x_1; @@ -12290,23 +13689,23 @@ x_1 = lean_mk_string("idx"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main___closed__1; +x_2 = l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main(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* l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { if (lean_obj_tag(x_7) == 0) { lean_object* x_10; -x_10 = l___private_Init_Lean_Elab_App_12__elabAppArgs(x_1, x_6, x_2, x_3, x_4, x_5, x_8, x_9); +x_10 = l___private_Init_Lean_Elab_App_11__elabAppArgs(x_1, x_6, x_2, x_3, x_4, x_5, x_8, x_9); return x_10; } else @@ -12319,7 +13718,7 @@ lean_inc(x_12); lean_dec(x_7); lean_inc(x_8); lean_inc(x_6); -x_13 = l___private_Init_Lean_Elab_App_16__resolveLVal(x_1, x_6, x_11, x_8, x_9); +x_13 = l___private_Init_Lean_Elab_App_15__resolveLVal(x_1, x_6, x_11, x_8, x_9); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; @@ -12341,7 +13740,7 @@ lean_inc(x_18); lean_dec(x_14); lean_inc(x_8); lean_inc(x_1); -x_19 = l___private_Init_Lean_Elab_App_17__mkBaseProjections(x_1, x_16, x_17, x_6, x_8, x_15); +x_19 = l___private_Init_Lean_Elab_App_16__mkBaseProjections(x_1, x_16, x_17, x_6, x_8, x_15); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; @@ -12369,7 +13768,7 @@ if (x_27 == 0) 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; x_28 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_28, 0, x_20); -x_29 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1___closed__2; +x_29 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; x_30 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_30, 0, x_29); lean_ctor_set(x_30, 1, x_28); @@ -12380,7 +13779,7 @@ x_34 = l_Array_empty___closed__1; x_35 = 0; lean_inc(x_8); lean_inc(x_1); -x_36 = l___private_Init_Lean_Elab_App_12__elabAppArgs(x_1, x_25, x_32, x_34, x_33, x_35, x_8, x_26); +x_36 = l___private_Init_Lean_Elab_App_11__elabAppArgs(x_1, x_25, x_32, x_34, x_33, x_35, x_8, x_26); if (lean_obj_tag(x_36) == 0) { lean_object* x_37; lean_object* x_38; @@ -12429,7 +13828,7 @@ lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_dec(x_12); x_44 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_44, 0, x_20); -x_45 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1___closed__2; +x_45 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; x_46 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_46, 0, x_45); lean_ctor_set(x_46, 1, x_44); @@ -12443,7 +13842,7 @@ lean_inc(x_48); x_49 = lean_ctor_get(x_47, 1); lean_inc(x_49); lean_dec(x_47); -x_50 = l___private_Init_Lean_Elab_App_12__elabAppArgs(x_1, x_25, x_48, x_3, x_4, x_5, x_8, x_49); +x_50 = l___private_Init_Lean_Elab_App_11__elabAppArgs(x_1, x_25, x_48, x_3, x_4, x_5, x_8, x_49); return x_50; } else @@ -12591,7 +13990,7 @@ x_80 = l_Array_empty___closed__1; x_81 = 0; lean_inc(x_8); lean_inc(x_1); -x_82 = l___private_Init_Lean_Elab_App_12__elabAppArgs(x_1, x_73, x_80, x_78, x_79, x_81, x_8, x_74); +x_82 = l___private_Init_Lean_Elab_App_11__elabAppArgs(x_1, x_73, x_80, x_78, x_79, x_81, x_8, x_74); if (lean_obj_tag(x_82) == 0) { lean_object* x_83; lean_object* x_84; @@ -12652,7 +14051,7 @@ lean_dec(x_90); x_93 = lean_unsigned_to_nat(0u); lean_inc(x_8); lean_inc(x_2); -x_94 = l___private_Init_Lean_Elab_App_18__addLValArg___main(x_1, x_69, x_70, x_6, x_3, x_93, x_2, x_91, x_8, x_92); +x_94 = l___private_Init_Lean_Elab_App_17__addLValArg___main(x_1, x_69, x_70, x_6, x_3, x_93, x_2, x_91, x_8, x_92); lean_dec(x_91); if (lean_obj_tag(x_94) == 0) { @@ -12662,7 +14061,7 @@ lean_inc(x_95); x_96 = lean_ctor_get(x_94, 1); lean_inc(x_96); lean_dec(x_94); -x_97 = l___private_Init_Lean_Elab_App_12__elabAppArgs(x_1, x_73, x_2, x_95, x_4, x_5, x_8, x_96); +x_97 = l___private_Init_Lean_Elab_App_11__elabAppArgs(x_1, x_73, x_2, x_95, x_4, x_5, x_8, x_96); return x_97; } else @@ -12786,7 +14185,7 @@ x_119 = l_Array_empty___closed__1; x_120 = 0; lean_inc(x_8); lean_inc(x_1); -x_121 = l___private_Init_Lean_Elab_App_12__elabAppArgs(x_1, x_113, x_119, x_117, x_118, x_120, x_8, x_110); +x_121 = l___private_Init_Lean_Elab_App_11__elabAppArgs(x_1, x_113, x_119, x_117, x_118, x_120, x_8, x_110); if (lean_obj_tag(x_121) == 0) { lean_object* x_122; lean_object* x_123; @@ -12847,7 +14246,7 @@ lean_dec(x_129); x_132 = lean_unsigned_to_nat(0u); lean_inc(x_8); lean_inc(x_2); -x_133 = l___private_Init_Lean_Elab_App_18__addLValArg___main(x_1, x_111, x_112, x_6, x_3, x_132, x_2, x_130, x_8, x_131); +x_133 = l___private_Init_Lean_Elab_App_17__addLValArg___main(x_1, x_111, x_112, x_6, x_3, x_132, x_2, x_130, x_8, x_131); lean_dec(x_130); if (lean_obj_tag(x_133) == 0) { @@ -12857,7 +14256,7 @@ lean_inc(x_134); x_135 = lean_ctor_get(x_133, 1); lean_inc(x_135); lean_dec(x_133); -x_136 = l___private_Init_Lean_Elab_App_12__elabAppArgs(x_1, x_113, x_2, x_134, x_4, x_5, x_8, x_135); +x_136 = l___private_Init_Lean_Elab_App_11__elabAppArgs(x_1, x_113, x_2, x_134, x_4, x_5, x_8, x_135); return x_136; } else @@ -12949,13 +14348,13 @@ if (x_152 == 0) lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; lean_object* x_165; x_153 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_153, 0, x_6); -x_154 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1___closed__2; +x_154 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; x_155 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_155, 0, x_154); lean_ctor_set(x_155, 1, x_153); x_156 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_156, 0, x_147); -x_157 = l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main___closed__2; +x_157 = l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__2; x_158 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_158, 0, x_157); lean_ctor_set(x_158, 1, x_156); @@ -12967,7 +14366,7 @@ x_163 = l_Array_empty___closed__1; x_164 = 0; lean_inc(x_8); lean_inc(x_1); -x_165 = l___private_Init_Lean_Elab_App_12__elabAppArgs(x_1, x_150, x_161, x_163, x_162, x_164, x_8, x_151); +x_165 = l___private_Init_Lean_Elab_App_11__elabAppArgs(x_1, x_150, x_161, x_163, x_162, x_164, x_8, x_151); if (lean_obj_tag(x_165) == 0) { lean_object* x_166; lean_object* x_167; @@ -13016,7 +14415,7 @@ lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_dec(x_12); x_173 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_173, 0, x_6); -x_174 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1___closed__2; +x_174 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; x_175 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_175, 0, x_174); lean_ctor_set(x_175, 1, x_173); @@ -13032,7 +14431,7 @@ lean_inc(x_178); lean_dec(x_176); x_179 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_179, 0, x_147); -x_180 = l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main___closed__2; +x_180 = l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__2; x_181 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_181, 0, x_180); lean_ctor_set(x_181, 1, x_179); @@ -13046,7 +14445,7 @@ lean_inc(x_183); x_184 = lean_ctor_get(x_182, 1); lean_inc(x_184); lean_dec(x_182); -x_185 = l___private_Init_Lean_Elab_App_12__elabAppArgs(x_1, x_150, x_183, x_3, x_4, x_5, x_8, x_184); +x_185 = l___private_Init_Lean_Elab_App_11__elabAppArgs(x_1, x_150, x_183, x_3, x_4, x_5, x_8, x_184); return x_185; } else @@ -13172,35 +14571,35 @@ return x_201; } } } -lean_object* l___private_Init_Lean_Elab_App_19__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* l___private_Init_Lean_Elab_App_18__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) { _start: { uint8_t x_10; lean_object* x_11; x_10 = lean_unbox(x_5); lean_dec(x_5); -x_11 = l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +x_11 = l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); return x_11; } } -lean_object* l___private_Init_Lean_Elab_App_19__elabAppLValsAux(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* l___private_Init_Lean_Elab_App_18__elabAppLValsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Init_Lean_Elab_App_18__elabAppLValsAux___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_Init_Lean_Elab_App_19__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* l___private_Init_Lean_Elab_App_18__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) { _start: { uint8_t x_10; lean_object* x_11; x_10 = lean_unbox(x_5); lean_dec(x_5); -x_11 = l___private_Init_Lean_Elab_App_19__elabAppLValsAux(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +x_11 = l___private_Init_Lean_Elab_App_18__elabAppLValsAux(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); return x_11; } } -lean_object* _init_l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__1() { _start: { lean_object* x_1; @@ -13208,27 +14607,27 @@ x_1 = lean_mk_string("invalid use of field notation with `@` modifier"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__1; +x_1 = l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__2; +x_1 = l___private_Init_Lean_Elab_App_19__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_Init_Lean_Elab_App_20__elabAppLVals(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Init_Lean_Elab_App_19__elabAppLVals(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9) { _start: { uint8_t x_10; @@ -13238,7 +14637,7 @@ if (x_10 == 0) if (x_7 == 0) { lean_object* x_11; -x_11 = l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main(x_1, x_4, x_5, x_6, x_7, x_2, x_3, x_8, x_9); +x_11 = l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main(x_1, x_4, x_5, x_6, x_7, x_2, x_3, x_8, x_9); return x_11; } else @@ -13249,7 +14648,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_12 = l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__3; +x_12 = l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__3; x_13 = l_Lean_Elab_Term_throwError___rarg(x_1, x_12, x_8, x_9); lean_dec(x_1); x_14 = !lean_is_exclusive(x_13); @@ -13275,18 +14674,18 @@ return x_17; else { lean_object* x_18; -x_18 = l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main(x_1, x_4, x_5, x_6, x_7, x_2, x_3, x_8, x_9); +x_18 = l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main(x_1, x_4, x_5, x_6, x_7, x_2, x_3, x_8, x_9); return x_18; } } } -lean_object* l___private_Init_Lean_Elab_App_20__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* l___private_Init_Lean_Elab_App_19__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) { _start: { uint8_t x_10; lean_object* x_11; x_10 = lean_unbox(x_7); lean_dec(x_7); -x_11 = l___private_Init_Lean_Elab_App_20__elabAppLVals(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_8, x_9); +x_11 = l___private_Init_Lean_Elab_App_19__elabAppLVals(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_8, x_9); return x_11; } } @@ -13398,7 +14797,7 @@ lean_dec(x_1); return x_4; } } -lean_object* l_List_map___main___at___private_Init_Lean_Elab_App_21__elabAppFnId___spec__1(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Init_Lean_Elab_App_20__elabAppFnId___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -13418,7 +14817,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_Init_Lean_Elab_App_21__elabAppFnId___spec__1(x_5); +x_7 = l_List_map___main___at___private_Init_Lean_Elab_App_20__elabAppFnId___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -13433,7 +14832,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_Init_Lean_Elab_App_21__elabAppFnId___spec__1(x_9); +x_11 = l_List_map___main___at___private_Init_Lean_Elab_App_20__elabAppFnId___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -13442,7 +14841,7 @@ return x_12; } } } -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_App_21__elabAppFnId___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* l_List_foldlM___main___at___private_Init_Lean_Elab_App_20__elabAppFnId___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) { _start: { if (lean_obj_tag(x_8) == 0) @@ -13472,7 +14871,7 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_12, 1); lean_inc(x_15); lean_dec(x_12); -x_16 = l_List_map___main___at___private_Init_Lean_Elab_App_21__elabAppFnId___spec__1(x_15); +x_16 = l_List_map___main___at___private_Init_Lean_Elab_App_20__elabAppFnId___spec__1(x_15); lean_inc(x_2); x_17 = l_List_append___rarg(x_16, x_2); lean_inc(x_10); @@ -13481,7 +14880,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_18 = l___private_Init_Lean_Elab_App_20__elabAppLVals(x_1, x_14, x_17, x_3, x_4, x_5, x_6, x_9, x_10); +x_18 = l___private_Init_Lean_Elab_App_19__elabAppLVals(x_1, x_14, x_17, x_3, x_4, x_5, x_6, x_9, x_10); if (lean_obj_tag(x_18) == 0) { uint8_t x_19; @@ -13627,7 +15026,7 @@ return x_46; } } } -lean_object* l___private_Init_Lean_Elab_App_21__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, lean_object* x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Init_Lean_Elab_App_20__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, lean_object* x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { if (lean_obj_tag(x_2) == 3) @@ -13648,7 +15047,7 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); -x_17 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_21__elabAppFnId___spec__2(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_15, x_10, x_16); +x_17 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_20__elabAppFnId___spec__2(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_15, x_10, x_16); return x_17; } else @@ -13698,27 +15097,27 @@ return x_22; } } } -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_App_21__elabAppFnId___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_List_foldlM___main___at___private_Init_Lean_Elab_App_20__elabAppFnId___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_6); lean_dec(x_6); -x_12 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_21__elabAppFnId___spec__2(x_1, x_2, x_3, x_4, x_5, x_11, x_7, x_8, x_9, x_10); +x_12 = l_List_foldlM___main___at___private_Init_Lean_Elab_App_20__elabAppFnId___spec__2(x_1, x_2, x_3, x_4, x_5, x_11, x_7, x_8, x_9, x_10); return x_12; } } -lean_object* l___private_Init_Lean_Elab_App_21__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* l___private_Init_Lean_Elab_App_20__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) { _start: { uint8_t x_12; lean_object* x_13; x_12 = lean_unbox(x_8); lean_dec(x_8); -x_13 = l___private_Init_Lean_Elab_App_21__elabAppFnId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_9, x_10, x_11); +x_13 = l___private_Init_Lean_Elab_App_20__elabAppFnId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_9, x_10, x_11); return x_13; } } -lean_object* l_List_map___main___at___private_Init_Lean_Elab_App_22__elabAppFn___main___spec__1(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Init_Lean_Elab_App_21__elabAppFn___main___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -13740,7 +15139,7 @@ x_6 = l_Lean_Name_toString___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_Init_Lean_Elab_App_22__elabAppFn___main___spec__1(x_5); +x_9 = l_List_map___main___at___private_Init_Lean_Elab_App_21__elabAppFn___main___spec__1(x_5); lean_ctor_set(x_1, 1, x_9); lean_ctor_set(x_1, 0, x_8); return x_1; @@ -13757,7 +15156,7 @@ x_12 = l_Lean_Name_toString___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_Init_Lean_Elab_App_22__elabAppFn___main___spec__1(x_11); +x_15 = l_List_map___main___at___private_Init_Lean_Elab_App_21__elabAppFn___main___spec__1(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); @@ -13766,7 +15165,7 @@ return x_16; } } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_22__elabAppFn___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_21__elabAppFn___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; uint8_t x_14; @@ -13801,7 +15200,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_19 = l___private_Init_Lean_Elab_App_22__elabAppFn___main(x_1, x_16, x_3, x_4, x_5, x_6, x_7, x_10, x_11, x_12); +x_19 = l___private_Init_Lean_Elab_App_21__elabAppFn___main(x_1, x_16, x_3, x_4, x_5, x_6, x_7, x_10, x_11, x_12); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; lean_object* x_21; @@ -13847,7 +15246,7 @@ return x_26; } } } -lean_object* l___private_Init_Lean_Elab_App_22__elabAppFn___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, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Init_Lean_Elab_App_21__elabAppFn___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, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; @@ -13935,7 +15334,7 @@ if (x_22 == 0) 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); -x_25 = l___private_Init_Lean_Elab_App_20__elabAppLVals(x_1, x_23, x_3, x_4, x_5, x_6, x_7, x_9, x_24); +x_25 = l___private_Init_Lean_Elab_App_19__elabAppLVals(x_1, x_23, x_3, x_4, x_5, x_6, x_7, x_9, x_24); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; @@ -14075,7 +15474,7 @@ x_51 = lean_ctor_get(x_21, 1); lean_inc(x_51); lean_inc(x_50); lean_dec(x_21); -x_52 = l___private_Init_Lean_Elab_App_20__elabAppLVals(x_1, x_50, x_3, x_4, x_5, x_6, x_7, x_9, x_51); +x_52 = l___private_Init_Lean_Elab_App_19__elabAppLVals(x_1, x_50, x_3, x_4, x_5, x_6, x_7, x_9, x_51); if (lean_obj_tag(x_52) == 0) { lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; @@ -14328,7 +15727,7 @@ if (x_100 == 0) lean_object* x_101; lean_object* x_102; lean_object* x_103; x_101 = lean_ctor_get(x_99, 0); x_102 = lean_ctor_get(x_99, 1); -x_103 = l___private_Init_Lean_Elab_App_20__elabAppLVals(x_1, x_101, x_3, x_4, x_5, x_6, x_7, x_9, x_102); +x_103 = l___private_Init_Lean_Elab_App_19__elabAppLVals(x_1, x_101, x_3, x_4, x_5, x_6, x_7, x_9, x_102); if (lean_obj_tag(x_103) == 0) { uint8_t x_104; @@ -14468,7 +15867,7 @@ x_129 = lean_ctor_get(x_99, 1); lean_inc(x_129); lean_inc(x_128); lean_dec(x_99); -x_130 = l___private_Init_Lean_Elab_App_20__elabAppLVals(x_1, x_128, x_3, x_4, x_5, x_6, x_7, x_9, x_129); +x_130 = l___private_Init_Lean_Elab_App_19__elabAppLVals(x_1, x_128, x_3, x_4, x_5, x_6, x_7, x_9, x_129); if (lean_obj_tag(x_130) == 0) { lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; @@ -14762,7 +16161,7 @@ if (x_190 == 0) lean_object* x_191; lean_object* x_192; lean_object* x_193; x_191 = lean_ctor_get(x_189, 0); x_192 = lean_ctor_get(x_189, 1); -x_193 = l___private_Init_Lean_Elab_App_20__elabAppLVals(x_1, x_191, x_3, x_4, x_5, x_6, x_7, x_9, x_192); +x_193 = l___private_Init_Lean_Elab_App_19__elabAppLVals(x_1, x_191, x_3, x_4, x_5, x_6, x_7, x_9, x_192); if (lean_obj_tag(x_193) == 0) { uint8_t x_194; @@ -14902,7 +16301,7 @@ x_219 = lean_ctor_get(x_189, 1); lean_inc(x_219); lean_inc(x_218); lean_dec(x_189); -x_220 = l___private_Init_Lean_Elab_App_20__elabAppLVals(x_1, x_218, x_3, x_4, x_5, x_6, x_7, x_9, x_219); +x_220 = l___private_Init_Lean_Elab_App_19__elabAppLVals(x_1, x_218, x_3, x_4, x_5, x_6, x_7, x_9, x_219); if (lean_obj_tag(x_220) == 0) { lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; @@ -15153,7 +16552,7 @@ lean_inc(x_267); x_268 = lean_ctor_get(x_266, 1); lean_inc(x_268); lean_dec(x_266); -x_269 = l___private_Init_Lean_Elab_App_21__elabAppFnId(x_1, x_183, x_267, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_268); +x_269 = l___private_Init_Lean_Elab_App_20__elabAppFnId(x_1, x_183, x_267, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_268); return x_269; } else @@ -15192,7 +16591,7 @@ else lean_object* x_274; lean_object* x_275; lean_dec(x_262); x_274 = lean_box(0); -x_275 = l___private_Init_Lean_Elab_App_21__elabAppFnId(x_1, x_183, x_274, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_275 = l___private_Init_Lean_Elab_App_20__elabAppFnId(x_1, x_183, x_274, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_275; } } @@ -15281,7 +16680,7 @@ if (x_312 == 0) lean_object* x_313; lean_object* x_314; lean_object* x_315; x_313 = lean_ctor_get(x_311, 0); x_314 = lean_ctor_get(x_311, 1); -x_315 = l___private_Init_Lean_Elab_App_20__elabAppLVals(x_1, x_313, x_3, x_4, x_5, x_6, x_7, x_9, x_314); +x_315 = l___private_Init_Lean_Elab_App_19__elabAppLVals(x_1, x_313, x_3, x_4, x_5, x_6, x_7, x_9, x_314); if (lean_obj_tag(x_315) == 0) { uint8_t x_316; @@ -15421,7 +16820,7 @@ x_341 = lean_ctor_get(x_311, 1); lean_inc(x_341); lean_inc(x_340); lean_dec(x_311); -x_342 = l___private_Init_Lean_Elab_App_20__elabAppLVals(x_1, x_340, x_3, x_4, x_5, x_6, x_7, x_9, x_341); +x_342 = l___private_Init_Lean_Elab_App_19__elabAppLVals(x_1, x_340, x_3, x_4, x_5, x_6, x_7, x_9, x_341); if (lean_obj_tag(x_342) == 0) { lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; @@ -15653,7 +17052,7 @@ lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; x_382 = l_Lean_Syntax_getId(x_302); lean_dec(x_302); x_383 = l_Lean_Name_components(x_382); -x_384 = l_List_map___main___at___private_Init_Lean_Elab_App_22__elabAppFn___main___spec__1(x_383); +x_384 = l_List_map___main___at___private_Init_Lean_Elab_App_21__elabAppFn___main___spec__1(x_383); x_385 = lean_unsigned_to_nat(0u); x_386 = l_Lean_Syntax_getArg(x_2, x_385); lean_dec(x_2); @@ -15711,7 +17110,7 @@ else lean_object* x_411; lean_object* x_412; lean_object* x_413; x_411 = l_Lean_Syntax_getArgs(x_2); x_412 = lean_unsigned_to_nat(0u); -x_413 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_22__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_411, x_412, x_8, x_9, x_10); +x_413 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_21__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_411, x_412, x_8, x_9, x_10); lean_dec(x_411); lean_dec(x_2); return x_413; @@ -15721,52 +17120,52 @@ else { lean_object* x_414; lean_object* x_415; x_414 = lean_box(0); -x_415 = l___private_Init_Lean_Elab_App_21__elabAppFnId(x_1, x_2, x_414, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_415 = l___private_Init_Lean_Elab_App_20__elabAppFnId(x_1, x_2, x_414, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_415; } } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_22__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* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_21__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) { _start: { uint8_t x_13; lean_object* x_14; x_13 = lean_unbox(x_7); lean_dec(x_7); -x_14 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_22__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_13, x_8, x_9, x_10, x_11, x_12); +x_14 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_21__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_13, x_8, x_9, x_10, x_11, x_12); lean_dec(x_8); lean_dec(x_2); return x_14; } } -lean_object* l___private_Init_Lean_Elab_App_22__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* l___private_Init_Lean_Elab_App_21__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) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_7); lean_dec(x_7); -x_12 = l___private_Init_Lean_Elab_App_22__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8, x_9, x_10); +x_12 = l___private_Init_Lean_Elab_App_21__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8, x_9, x_10); return x_12; } } -lean_object* l___private_Init_Lean_Elab_App_22__elabAppFn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Init_Lean_Elab_App_21__elabAppFn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Init_Lean_Elab_App_22__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Init_Lean_Elab_App_21__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_11; } } -lean_object* l___private_Init_Lean_Elab_App_22__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* l___private_Init_Lean_Elab_App_21__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) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_7); lean_dec(x_7); -x_12 = l___private_Init_Lean_Elab_App_22__elabAppFn(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8, x_9, x_10); +x_12 = l___private_Init_Lean_Elab_App_21__elabAppFn(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8, x_9, x_10); return x_12; } } -lean_object* l_Array_filterAux___main___at___private_Init_Lean_Elab_App_23__getSuccess___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_filterAux___main___at___private_Init_Lean_Elab_App_22__getSuccess___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -15830,16 +17229,16 @@ goto _start; } } } -lean_object* l___private_Init_Lean_Elab_App_23__getSuccess(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_App_22__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_Init_Lean_Elab_App_23__getSuccess___spec__1(x_1, x_2, x_2); +x_3 = l_Array_filterAux___main___at___private_Init_Lean_Elab_App_22__getSuccess___spec__1(x_1, x_2, x_2); return x_3; } } -lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_App_24__toMessageData___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_App_23__toMessageData___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -15866,7 +17265,7 @@ return x_11; } } } -lean_object* _init_l___private_Init_Lean_Elab_App_24__toMessageData___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_App_23__toMessageData___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -15876,17 +17275,17 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_24__toMessageData___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_App_23__toMessageData___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_24__toMessageData___closed__1; +x_1 = l___private_Init_Lean_Elab_App_23__toMessageData___closed__1; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Init_Lean_Elab_App_24__toMessageData(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_App_23__toMessageData(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; uint8_t x_10; @@ -15898,7 +17297,7 @@ lean_inc(x_7); lean_dec(x_5); x_8 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_8, 0, x_6); -x_9 = l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_App_24__toMessageData___spec__1(x_8, x_3, x_7); +x_9 = l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_App_23__toMessageData___spec__1(x_8, x_3, x_7); lean_dec(x_8); x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) @@ -15919,7 +17318,7 @@ x_16 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_16, 0, x_15); x_17 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_17, 0, x_16); -x_18 = l___private_Init_Lean_Elab_App_24__toMessageData___closed__2; +x_18 = l___private_Init_Lean_Elab_App_23__toMessageData___closed__2; x_19 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); @@ -15980,7 +17379,7 @@ x_36 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_36, 0, x_35); x_37 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_37, 0, x_36); -x_38 = l___private_Init_Lean_Elab_App_24__toMessageData___closed__2; +x_38 = l___private_Init_Lean_Elab_App_23__toMessageData___closed__2; x_39 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_39, 0, x_37); lean_ctor_set(x_39, 1, x_38); @@ -16025,36 +17424,27 @@ return x_51; } } } -lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_App_24__toMessageData___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_App_23__toMessageData___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_App_24__toMessageData___spec__1(x_1, x_2, x_3); +x_4 = l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_App_23__toMessageData___spec__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_Lean_Elab_App_24__toMessageData___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_App_23__toMessageData___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Elab_App_24__toMessageData(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Elab_App_23__toMessageData(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; } } -lean_object* _init_l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_25__mergeFailures___spec__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_TermElabM_inhabited___boxed), 2, 1); -lean_closure_set(x_1, 0, lean_box(0)); -return x_1; -} -} -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_25__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* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_24__mergeFailures___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -16083,7 +17473,7 @@ x_14 = lean_array_fset(x_3, x_2, x_13); if (lean_obj_tag(x_11) == 0) { lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_25__mergeFailures___spec__1___closed__1; +x_15 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; x_16 = l_unreachable_x21___rarg(x_15); lean_inc(x_4); x_17 = lean_apply_2(x_16, x_4, x_5); @@ -16138,7 +17528,7 @@ else lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; x_29 = lean_ctor_get(x_11, 0); lean_inc(x_29); -x_30 = l___private_Init_Lean_Elab_App_24__toMessageData(x_29, x_1, x_4, x_5); +x_30 = l___private_Init_Lean_Elab_App_23__toMessageData(x_29, x_1, x_4, x_5); x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); @@ -16158,7 +17548,7 @@ goto _start; } } } -lean_object* _init_l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__1() { _start: { lean_object* x_1; @@ -16166,33 +17556,33 @@ x_1 = lean_mk_string("overloaded, errors "); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__1; +x_1 = l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__2; +x_1 = l___private_Init_Lean_Elab_App_24__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_Init_Lean_Elab_App_25__mergeFailures___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_App_24__mergeFailures___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; x_5 = lean_unsigned_to_nat(0u); lean_inc(x_3); -x_6 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_25__mergeFailures___spec__1(x_2, x_5, x_1, x_3, x_4); +x_6 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_24__mergeFailures___spec__1(x_2, x_5, x_1, x_3, x_4); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; @@ -16203,7 +17593,7 @@ lean_inc(x_8); lean_dec(x_6); x_9 = l_Lean_MessageData_ofArray(x_7); lean_dec(x_7); -x_10 = l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__3; +x_10 = l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__3; x_11 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); @@ -16235,33 +17625,33 @@ return x_16; } } } -lean_object* l___private_Init_Lean_Elab_App_25__mergeFailures(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_App_24__mergeFailures(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___boxed), 4, 0); return x_2; } } -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_25__mergeFailures___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* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_24__mergeFailures___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_25__mergeFailures___spec__1(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_24__mergeFailures___spec__1(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } } -lean_object* l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Elab_App_25__mergeFailures___rarg(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Elab_App_24__mergeFailures___rarg(x_1, x_2, x_3, x_4); lean_dec(x_2); return x_5; } } -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_26__elabAppAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_25__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; @@ -16338,7 +17728,7 @@ goto _start; } } } -lean_object* _init_l___private_Init_Lean_Elab_App_26__elabAppAux___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_App_25__elabAppAux___closed__1() { _start: { lean_object* x_1; @@ -16346,27 +17736,27 @@ x_1 = lean_mk_string("ambiguous, possible interpretations "); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_App_26__elabAppAux___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_App_25__elabAppAux___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_26__elabAppAux___closed__1; +x_1 = l___private_Init_Lean_Elab_App_25__elabAppAux___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_App_26__elabAppAux___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_App_25__elabAppAux___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_26__elabAppAux___closed__2; +x_1 = l___private_Init_Lean_Elab_App_25__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_Init_Lean_Elab_App_26__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* l___private_Init_Lean_Elab_App_25__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) { _start: { lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; @@ -16375,7 +17765,7 @@ x_9 = 0; x_10 = l_Array_empty___closed__1; lean_inc(x_6); lean_inc(x_2); -x_11 = l___private_Init_Lean_Elab_App_22__elabAppFn___main(x_1, x_2, x_8, x_3, x_4, x_5, x_9, x_10, x_6, x_7); +x_11 = l___private_Init_Lean_Elab_App_21__elabAppFn___main(x_1, x_2, x_8, x_3, x_4, x_5, x_9, x_10, x_6, x_7); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; @@ -16393,7 +17783,7 @@ if (x_16 == 0) lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; x_17 = lean_unsigned_to_nat(0u); lean_inc(x_12); -x_18 = l_Array_filterAux___main___at___private_Init_Lean_Elab_App_23__getSuccess___spec__1(x_12, x_17, x_17); +x_18 = l_Array_filterAux___main___at___private_Init_Lean_Elab_App_22__getSuccess___spec__1(x_12, x_17, x_17); x_19 = lean_array_get_size(x_18); x_20 = lean_nat_dec_eq(x_19, x_15); if (x_20 == 0) @@ -16405,7 +17795,7 @@ if (x_21 == 0) { lean_object* x_22; lean_dec(x_18); -x_22 = l___private_Init_Lean_Elab_App_25__mergeFailures___rarg(x_12, x_2, x_6, x_13); +x_22 = l___private_Init_Lean_Elab_App_24__mergeFailures___rarg(x_12, x_2, x_6, x_13); lean_dec(x_2); return x_22; } @@ -16425,10 +17815,10 @@ lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); -x_29 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_26__elabAppAux___spec__1(x_24, x_27, x_17, x_18); +x_29 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_25__elabAppAux___spec__1(x_24, x_27, x_17, x_18); x_30 = l_Lean_MessageData_ofArray(x_29); lean_dec(x_29); -x_31 = l___private_Init_Lean_Elab_App_26__elabAppAux___closed__3; +x_31 = l___private_Init_Lean_Elab_App_25__elabAppAux___closed__3; x_32 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); @@ -16492,7 +17882,7 @@ return x_44; } } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_27__expandApp___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_26__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) { _start: { lean_object* x_7; uint8_t x_8; @@ -16684,25 +18074,7 @@ return x_59; } } } -lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_App_27__expandApp___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_3); -return x_4; -} -} -lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_App_27__expandApp___spec__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_ReaderT_pure___at___private_Init_Lean_Elab_App_27__expandApp___spec__2___rarg___boxed), 3, 0); -return x_2; -} -} -lean_object* l___private_Init_Lean_Elab_App_27__expandApp(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Elab_App_26__expandApp(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; @@ -16713,7 +18085,7 @@ x_7 = l_Lean_Syntax_getArg(x_1, x_6); x_8 = l_Lean_Syntax_getArgs(x_7); lean_dec(x_7); x_9 = l___private_Init_Lean_Meta_Tactic_Apply_5__reorderNonDependentFirst___closed__1; -x_10 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_27__expandApp___spec__1(x_1, x_8, x_4, x_9, x_2, x_3); +x_10 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_26__expandApp___spec__1(x_1, x_8, x_4, x_9, x_2, x_3); lean_dec(x_8); if (lean_obj_tag(x_10) == 0) { @@ -16771,30 +18143,21 @@ return x_21; } } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_27__expandApp___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_26__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) { _start: { lean_object* x_7; -x_7 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_27__expandApp___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_App_26__expandApp___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); lean_dec(x_1); return x_7; } } -lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_App_27__expandApp___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Elab_App_26__expandApp___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_ReaderT_pure___at___private_Init_Lean_Elab_App_27__expandApp___spec__2___rarg(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; -} -} -lean_object* l___private_Init_Lean_Elab_App_27__expandApp___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l___private_Init_Lean_Elab_App_27__expandApp(x_1, x_2, x_3); +x_4 = l___private_Init_Lean_Elab_App_26__expandApp(x_1, x_2, x_3); lean_dec(x_1); return x_4; } @@ -16804,7 +18167,7 @@ _start: { lean_object* x_5; lean_inc(x_3); -x_5 = l___private_Init_Lean_Elab_App_27__expandApp(x_1, x_3, x_4); +x_5 = l___private_Init_Lean_Elab_App_26__expandApp(x_1, x_3, x_4); if (lean_obj_tag(x_5) == 0) { lean_object* 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; @@ -16823,7 +18186,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_7, 1); lean_inc(x_11); lean_dec(x_7); -x_12 = l___private_Init_Lean_Elab_App_26__elabAppAux(x_1, x_9, x_10, x_11, x_2, x_3, x_8); +x_12 = l___private_Init_Lean_Elab_App_25__elabAppAux(x_1, x_9, x_10, x_11, x_2, x_3, x_8); return x_12; } else @@ -16896,7 +18259,7 @@ _start: lean_object* x_5; lean_object* x_6; x_5 = l_Array_empty___closed__1; lean_inc(x_1); -x_6 = l___private_Init_Lean_Elab_App_26__elabAppAux(x_1, x_1, x_5, x_5, x_2, x_3, x_4); +x_6 = l___private_Init_Lean_Elab_App_25__elabAppAux(x_1, x_1, x_5, x_5, x_2, x_3, x_4); return x_6; } } @@ -17770,11 +19133,11 @@ x_5 = l_Lean_Elab_Term_addBuiltinTermElab(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l___private_Init_Lean_Elab_App_28__regTraceClasses(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_App_27__regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__1; +x_2 = l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); if (lean_obj_tag(x_3) == 0) { @@ -17873,164 +19236,176 @@ l___private_Init_Lean_Elab_App_4__tryCoeFun___closed__6 = _init_l___private_Init lean_mark_persistent(l___private_Init_Lean_Elab_App_4__tryCoeFun___closed__6); l___private_Init_Lean_Elab_App_4__tryCoeFun___closed__7 = _init_l___private_Init_Lean_Elab_App_4__tryCoeFun___closed__7(); lean_mark_persistent(l___private_Init_Lean_Elab_App_4__tryCoeFun___closed__7); -l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__1 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__1); -l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__2 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__2); -l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__3); -l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__4 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__4(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__4); -l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__5 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__5(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__5); -l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__6); -l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__7 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__7(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__7); -l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__8 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__8(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__8); -l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgsAux___main___closed__9); -l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__1 = _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__1); -l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__2 = _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__2); -l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__3 = _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__3); -l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__4 = _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__4(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__4); -l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__5 = _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__5(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__5); -l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__6 = _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__6(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__6); -l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__7 = _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__7(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__7); -l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__8 = _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__8(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__8); -l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__9 = _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__9(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__9); -l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__10 = _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__10(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__10); -l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__11 = _init_l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__11(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_12__elabAppArgs___closed__11); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__1 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__1); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__2 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__2); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__3 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__3); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__4 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__4(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__4); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__5 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__5(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__5); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__6 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__6(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__6); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__7 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__7(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__7); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__8 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__8(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__8); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__9 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__9(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__9); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__10 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__10(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__10); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__11 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__11(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__11); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__12 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__12(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__12); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__13 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__13(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__13); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__14 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__14(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__14); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__15 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__15(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__15); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__16 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__16(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__16); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__17 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__17(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__17); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__18 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__18(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__18); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__19 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__19(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__19); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__20 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__20(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__20); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__21); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__22 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__22(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__22); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__23 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__23(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__23); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__24); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__25 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__25(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__25); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__26 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__26(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__26); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__27 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__27(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__27); -l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__28 = _init_l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__28(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_14__resolveLValAux___closed__28); -l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1___closed__1 = _init_l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1___closed__1(); -lean_mark_persistent(l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1___closed__1); -l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1___closed__2 = _init_l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1___closed__2(); -lean_mark_persistent(l_List_foldlM___main___at___private_Init_Lean_Elab_App_17__mkBaseProjections___spec__1___closed__2); -l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__1 = _init_l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__1); -l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__2 = _init_l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__2); -l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__3 = _init_l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_17__mkBaseProjections___closed__3); -l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__1 = _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__1); -l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__2 = _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__2); -l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__3 = _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__3); -l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__4 = _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__4(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__4); -l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__5 = _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__5(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__5); -l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__6 = _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__6(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__6); -l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__7 = _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__7(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__7); -l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__8 = _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__8(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__8); -l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__9 = _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__9(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__9); -l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__10 = _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__10(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__10); -l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__11 = _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__11(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__11); -l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__12 = _init_l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__12(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_18__addLValArg___main___closed__12); -l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main___closed__1 = _init_l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main___closed__1); -l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main___closed__2 = _init_l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_19__elabAppLValsAux___main___closed__2); -l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__1 = _init_l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__1); -l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__2 = _init_l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__2); -l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__3 = _init_l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_20__elabAppLVals___closed__3); -l___private_Init_Lean_Elab_App_24__toMessageData___closed__1 = _init_l___private_Init_Lean_Elab_App_24__toMessageData___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_24__toMessageData___closed__1); -l___private_Init_Lean_Elab_App_24__toMessageData___closed__2 = _init_l___private_Init_Lean_Elab_App_24__toMessageData___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_24__toMessageData___closed__2); -l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_25__mergeFailures___spec__1___closed__1 = _init_l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_25__mergeFailures___spec__1___closed__1(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Init_Lean_Elab_App_25__mergeFailures___spec__1___closed__1); -l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__1 = _init_l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__1); -l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__2 = _init_l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__2); -l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__3 = _init_l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_25__mergeFailures___rarg___closed__3); -l___private_Init_Lean_Elab_App_26__elabAppAux___closed__1 = _init_l___private_Init_Lean_Elab_App_26__elabAppAux___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_26__elabAppAux___closed__1); -l___private_Init_Lean_Elab_App_26__elabAppAux___closed__2 = _init_l___private_Init_Lean_Elab_App_26__elabAppAux___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_26__elabAppAux___closed__2); -l___private_Init_Lean_Elab_App_26__elabAppAux___closed__3 = _init_l___private_Init_Lean_Elab_App_26__elabAppAux___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_App_26__elabAppAux___closed__3); +l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__1 = _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__1); +l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__2 = _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__2); +l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3 = _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__3); +l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__4 = _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__4); +l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__5 = _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__5(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__5); +l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6 = _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__6); +l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__7 = _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__7(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__7); +l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__8 = _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__8(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__8); +l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9 = _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__9); +l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__10 = _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__10(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__10); +l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__11 = _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__11(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__11); +l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__12 = _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__12(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__12); +l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__13 = _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__13(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__13); +l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__14 = _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__14(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__14); +l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__15 = _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__15(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__15); +l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__16 = _init_l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__16(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_10__elabAppArgsAux___main___closed__16); +l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__1 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__1); +l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__2 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__2); +l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__3 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__3); +l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__4 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__4); +l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__5 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__5(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__5); +l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__6 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__6(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__6); +l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__7 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__7(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__7); +l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__8 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__8(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__8); +l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__9 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__9(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__9); +l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__10 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__10(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__10); +l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__11 = _init_l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__11(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_11__elabAppArgs___closed__11); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__1 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__1); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__2 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__2); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__3 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__3); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__4 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__4); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__5 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__5(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__5); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__6 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__6(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__6); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__7 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__7(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__7); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__8 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__8(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__8); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__9 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__9(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__9); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__10 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__10(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__10); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__11 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__11(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__11); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__12 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__12(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__12); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__13 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__13(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__13); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__14 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__14(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__14); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__15 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__15(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__15); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__16 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__16(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__16); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__17 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__17(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__17); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__18 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__18(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__18); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__19 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__19(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__19); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__20 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__20(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__20); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__21); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__22 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__22(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__22); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__23 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__23(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__23); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__24); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__25 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__25(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__25); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__26 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__26(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__26); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__27 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__27(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__27); +l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__28 = _init_l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__28(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_13__resolveLValAux___closed__28); +l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__1 = _init_l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__1(); +lean_mark_persistent(l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__1); +l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2 = _init_l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2(); +lean_mark_persistent(l_List_foldlM___main___at___private_Init_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2); +l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__1 = _init_l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__1); +l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__2 = _init_l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__2); +l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__3 = _init_l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_16__mkBaseProjections___closed__3); +l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__1 = _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__1); +l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__2 = _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__2); +l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__3 = _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__3); +l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__4 = _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__4); +l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__5 = _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__5(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__5); +l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__6 = _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__6(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__6); +l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__7 = _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__7(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__7); +l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__8 = _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__8(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__8); +l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__9 = _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__9(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__9); +l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__10 = _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__10(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__10); +l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__11 = _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__11(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__11); +l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__12 = _init_l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__12(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_17__addLValArg___main___closed__12); +l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__1 = _init_l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__1); +l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__2 = _init_l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__2); +l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__1 = _init_l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__1); +l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__2 = _init_l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__2); +l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__3 = _init_l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_19__elabAppLVals___closed__3); +l___private_Init_Lean_Elab_App_23__toMessageData___closed__1 = _init_l___private_Init_Lean_Elab_App_23__toMessageData___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_23__toMessageData___closed__1); +l___private_Init_Lean_Elab_App_23__toMessageData___closed__2 = _init_l___private_Init_Lean_Elab_App_23__toMessageData___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_23__toMessageData___closed__2); +l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__1 = _init_l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__1); +l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__2 = _init_l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__2); +l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__3 = _init_l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_24__mergeFailures___rarg___closed__3); +l___private_Init_Lean_Elab_App_25__elabAppAux___closed__1 = _init_l___private_Init_Lean_Elab_App_25__elabAppAux___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_25__elabAppAux___closed__1); +l___private_Init_Lean_Elab_App_25__elabAppAux___closed__2 = _init_l___private_Init_Lean_Elab_App_25__elabAppAux___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_25__elabAppAux___closed__2); +l___private_Init_Lean_Elab_App_25__elabAppAux___closed__3 = _init_l___private_Init_Lean_Elab_App_25__elabAppAux___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_App_25__elabAppAux___closed__3); l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__1(); lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__2(); @@ -18103,7 +19478,7 @@ lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabSortApp___closed_ res = l___regBuiltinTermElab_Lean_Elab_Term_elabSortApp(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l___private_Init_Lean_Elab_App_28__regTraceClasses(lean_io_mk_world()); +res = l___private_Init_Lean_Elab_App_27__regTraceClasses(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_mk_io_result(lean_box(0)); diff --git a/stage0/stdlib/Init/Lean/Elab/Binders.c b/stage0/stdlib/Init/Lean/Elab/Binders.c index ffc2d97f02..3933212cf4 100644 --- a/stage0/stdlib/Init/Lean/Elab/Binders.c +++ b/stage0/stdlib/Init/Lean/Elab/Binders.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Lean.Elab.Binders -// Imports: Init.Lean.Elab.Term +// Imports: Init.Lean.Elab.Term Init.Lean.Elab.Quotation #include "runtime/lean.h" #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -16,24 +16,29 @@ extern "C" { lean_object* l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__6; lean_object* l_Lean_Elab_Term_elabBinder___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders(lean_object*); -lean_object* l___private_Init_Lean_Elab_Binders_12__elabFunBinderViews___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_2__expandBinderIdent___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLetDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabLetDecl___closed__5; +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__13; lean_object* l_Lean_Elab_Term_elabDepArrow___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshExprMVar(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_2__expandBinderIdent(lean_object*, lean_object*, lean_object*); +lean_object* l_unreachable_x21___rarg(lean_object*); +extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Elab_Term_elabDepArrow(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabArrow___closed__1; +lean_object* l_Lean_Elab_Term_declareTacticSyntax___closed__5; lean_object* l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabFun___closed__1; +lean_object* l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__3; +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__6; extern lean_object* l_Lean_List_format___rarg___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabFunCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; +lean_object* l___private_Init_Lean_Elab_Binders_13__elabFunBinderViews(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); lean_object* lean_local_ctx_mk_let_decl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_1__expandBinderType___boxed(lean_object*); @@ -46,49 +51,67 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabFun___closed__2; lean_object* l_Lean_Elab_Term_elabForall___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__1; extern lean_object* l_Lean_Parser_Term_match___elambda__1___closed__1; -extern lean_object* l_Prod_HasRepr___rarg___closed__1; extern lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; +lean_object* l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__5; lean_object* l_Lean_Elab_Term_expandFunBinders___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Elab_Term_FunBinders_elabFunBindersAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_declareTacticSyntax___closed__1; lean_object* l_Lean_Elab_Term_elabLetDeclAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__3; -lean_object* l___private_Init_Lean_Elab_Binders_11__propagateExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabFunBinders___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_declareTacticSyntax___closed__2; lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabForall(lean_object*); +lean_object* l_Lean_Elab_Term_compileDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; lean_object* lean_array_get_size(lean_object*); extern lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__2; +extern lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__3; +extern lean_object* l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; extern lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; +lean_object* l_Lean_Elab_Term_declareTacticSyntax___closed__3; lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l_Lean_Elab_Term_withLetDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__18; +extern lean_object* l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__17; lean_object* l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_1__expandBinderType(lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Binders_5__matchBinder___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__5; lean_object* l___private_Init_Lean_Elab_Binders_7__elabBindersAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__8; +extern lean_object* l_Lean_mkAppStx___closed__7; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabLetDecl___closed__2; +lean_object* l___private_Init_Lean_Elab_Binders_13__elabFunBinderViews___boxed(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* l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__2; lean_object* l_Lean_Elab_Term_mkFreshAnonymousIdent(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; +lean_object* l___private_Init_Lean_Elab_Binders_13__elabFunBinderViews___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; +lean_object* l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__8; lean_object* l_Lean_Syntax_isSimpleTermId_x3f(lean_object*, uint8_t); extern uint8_t l___private_Init_Lean_Elab_Term_11__isExplicit___closed__1; lean_object* l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__4; +lean_object* l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__6; lean_object* l_Lean_Elab_Term_elabFunCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_evalSyntaxConstant___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabLetDecl(lean_object*); lean_object* l_Lean_Elab_Term_FunBinders_elabFunBindersAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__3; extern lean_object* l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabFun___closed__3; lean_object* lean_array_fget(lean_object*, lean_object*); @@ -96,31 +119,37 @@ extern lean_object* l_Lean_Elab_Term_declareBuiltinTermElab___closed__3; extern lean_object* l_Lean_Expr_getOptParamDefault_x3f___closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__2; +lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__1; +lean_object* l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__2; lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrow___closed__2; lean_object* l___private_Init_Lean_Elab_Binders_7__elabBindersAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrow___closed__1; lean_object* l_Lean_Elab_Term_mkFreshFVarId___rarg(lean_object*); +lean_object* l_Lean_Elab_Term_declareTacticSyntax(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(lean_object*); extern lean_object* l_Lean_Parser_Term_implicitBinder___elambda__1___closed__1; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Binders_5__matchBinder___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25; lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__1; extern lean_object* l_Lean_Parser_Term_instBinder___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__1; lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabLetDecl___closed__9; lean_object* l_Lean_Elab_Term_elabForall___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLetDeclAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabLetDecl___closed__4; +lean_object* l___private_Init_Lean_Elab_Binders_14__regTraceClasses(lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabFunCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Binders_13__regTraceClasses(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDepArrow___closed__3; lean_object* l___private_Init_Lean_Elab_Binders_6__elabBinderViews(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___closed__6; lean_object* l___private_Init_Lean_Elab_Binders_6__elabBinderViews___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___closed__2; +extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; lean_object* l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_6__elabBinderViews___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__3; @@ -143,9 +172,11 @@ extern lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__1; lean_object* l_Lean_Elab_Term_elabBinder___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__2; lean_object* l_Lean_Elab_Term_expandOptType(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__6; +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; +extern lean_object* l_Lean_mkAppStx___closed__6; uint8_t l_coeDecidableEq(uint8_t); uint8_t l_Array_isEmpty___rarg(lean_object*); extern lean_object* l_Lean_Parser_Term_arrow___elambda__1___closed__2; @@ -157,15 +188,21 @@ lean_object* l_Lean_Elab_Term_getLocalInsts(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshInstanceName___rarg(lean_object*); lean_object* l_Lean_Elab_Term_isClass(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__8; +uint8_t l_Lean_Elab_Term_Quotation_isAntiquot(lean_object*); lean_object* l_Lean_mkFVar(lean_object*); +extern lean_object* l_Lean_Expr_getAutoParamTactic_x3f___closed__1; +lean_object* l_Lean_Elab_Term_quoteAutoTactic(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Binders_5__matchBinder___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__1; lean_object* l___private_Init_Lean_Elab_Binders_4__expandBinderModifier(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isAutoParam(lean_object*); +extern lean_object* l_Lean_Expr_getAutoParamTactic_x3f___closed__2; lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Binders_12__propagateExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_5__matchBinder(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Binders_11__propagateExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__6; lean_object* l_Lean_Elab_Term_expandOptType___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; @@ -176,64 +213,74 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrow___closed__3; lean_object* l___private_Init_Lean_Elab_Binders_3__expandOptIdent___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__3; +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__4; lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___spec__1(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Option_HasRepr___rarg___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabForall___closed__1; extern lean_object* l_Lean_Parser_Term_implicitBinder___elambda__1___closed__2; +extern lean_object* l_Lean_Parser_Term_str___elambda__1___closed__2; extern lean_object* l_Lean_Syntax_inhabited; lean_object* l_Lean_Elab_Term_elabArrow(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__5; extern lean_object* l_Lean_mkAppStx___closed__5; +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__8; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabForall___closed__3; lean_object* l_Lean_Syntax_getNumArgs(lean_object*); lean_object* l_Lean_mkHole(lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_9__getFunBinderIds_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLCtx(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabFunBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Binders_12__elabFunBinderViews___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_getOptParamDefault_x3f___closed__1; lean_object* l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___closed__7; lean_object* l_Lean_Elab_Term_elabLetIdDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLetDecl___closed__2; extern lean_object* l_Lean_Parser_Term_match___elambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_Binders_8__getFunBinderIdsAux_x3f(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabLetDecl___closed__6; lean_object* l_Lean_Syntax_isTermId_x3f(lean_object*, uint8_t); extern lean_object* l_Lean_Parser_Term_let___elambda__1___closed__1; lean_object* l_Lean_Syntax_getArgs(lean_object*); uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_Elab_Term_elabLetDecl___closed__1; +lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Binders_13__elabFunBinderViews___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___closed__5; lean_object* l___private_Init_Lean_Elab_Binders_8__getFunBinderIdsAux_x3f___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Util_1__mkPanicMessage___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabLetDecl___closed__1; +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__10; extern lean_object* l_Lean_mkHole___closed__1; lean_object* l_Lean_Elab_Term_mkExplicitBinder(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Binders_5__matchBinder___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_adaptExpander(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkStxStrLit(lean_object*, lean_object*); +uint8_t l_Lean_Elab_Term_Quotation_isAntiquotSplice(lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__7; -lean_object* l_Lean_Elab_Term_elabLetDecl___closed__8; lean_object* l_Lean_Elab_Term_FunBinders_elabFunBindersAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___closed__3; lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__7; extern lean_object* l_Lean_Parser_Term_letIdDecl___closed__2; lean_object* l_Lean_Elab_Term_expandFunBinders(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; lean_object* l___private_Init_Lean_Elab_Binders_5__matchBinder___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_whnfForall(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLetIdDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24; lean_object* l_Lean_Elab_Term_resetSynthInstanceCache___rarg(lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__15; +lean_object* l_Lean_mkTermIdFrom(lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_matchAlts___elambda__1___spec__2___closed__1; +extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; extern lean_object* l_Lean_Parser_Term_matchAlt___closed__2; extern lean_object* l_Lean_Parser_Term_binderDefault___elambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited; lean_object* l_Lean_Elab_Term_addBuiltinTermElab(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__3; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); +uint8_t l_Lean_Expr_isOptParam(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDepArrow___closed__2; extern lean_object* l_Lean_mkHole___closed__2; lean_object* l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___closed__4; @@ -241,32 +288,38 @@ lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lea lean_object* l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___closed__9; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; +lean_object* l_Lean_Elab_Term_declareTacticSyntax___closed__4; lean_object* l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___closed__8; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabLetDecl___closed__3; extern lean_object* l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +lean_object* l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +extern lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__4; +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__28; lean_object* l_Lean_Elab_Term_elabArrow___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Binders_12__elabFunBinderViews(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Binders_12__elabFunBinderViews___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__3; -extern lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; lean_object* l_Lean_Elab_Term_elabForall(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrow(lean_object*); lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; lean_object* l___private_Init_Lean_Elab_Binders_8__getFunBinderIdsAux_x3f___main(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_quoteAutoTactic___main(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__1; -lean_object* l_Lean_Elab_Term_elabLetDecl___closed__7; +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; +lean_object* l_Lean_mkConst(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__4; extern lean_object* l_Lean_mkAppStx___closed__1; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Binders_5__matchBinder___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabFunCore(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__1; lean_object* l___private_Init_Lean_Elab_Binders_9__getFunBinderIds_x3f___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_8__getFunBinderIdsAux_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabLetDecl___closed__3; lean_object* l___private_Init_Lean_Elab_Binders_3__expandOptIdent(lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Binders_12__propagateExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; lean_object* l_Lean_Elab_Term_elabBinder(lean_object*); @@ -423,50 +476,1805 @@ lean_dec(x_1); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__1() { +lean_object* _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("not implemented yet"); +x_1 = lean_mk_string("invalic auto tactic, antiquotation is not allowed"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__2() { +lean_object* _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__1; +x_1 = l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__3() { +lean_object* _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__2; +x_1 = l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* 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; +x_17 = lean_array_get_size(x_12); +x_18 = lean_nat_dec_lt(x_13, x_17); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_object* x_19; +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_14); +lean_ctor_set(x_19, 1, x_16); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_57; uint8_t x_58; +x_20 = lean_array_fget(x_12, x_13); +x_21 = lean_unsigned_to_nat(1u); +x_22 = lean_nat_add(x_13, x_21); +lean_dec(x_13); +x_57 = l_Lean_nullKind; +x_58 = lean_name_eq(x_1, x_57); +if (x_58 == 0) +{ +lean_object* x_59; +x_59 = lean_box(0); +x_23 = x_59; +goto block_56; +} +else +{ +uint8_t x_60; +x_60 = l_Lean_Elab_Term_Quotation_isAntiquotSplice(x_20); +if (x_60 == 0) +{ +lean_object* x_61; +x_61 = lean_box(0); +x_23 = x_61; +goto block_56; +} +else +{ +lean_object* x_62; lean_object* x_63; uint8_t x_64; +lean_dec(x_22); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_62 = l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__3; +x_63 = l_Lean_Elab_Term_throwError___rarg(x_20, x_62, x_15, x_16); +lean_dec(x_20); +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +return x_63; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_63, 0); +x_66 = lean_ctor_get(x_63, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_63); +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; +} +} +} +block_56: +{ +lean_object* x_24; +lean_dec(x_23); +lean_inc(x_15); +x_24 = l_Lean_Elab_Term_quoteAutoTactic___main(x_20, x_15, x_16); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = l_Lean_Elab_Term_getCurrMacroScope(x_15, x_26); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = l_Lean_Elab_Term_getMainModule___rarg(x_29); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = l_Lean_mkAppStx___closed__7; +lean_inc(x_3); +x_34 = lean_name_mk_string(x_3, x_33); +x_35 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__4; +lean_inc(x_7); +x_36 = lean_name_mk_string(x_7, x_35); +lean_inc(x_36); +x_37 = l_Lean_addMacroScope(x_31, x_36, x_28); +lean_inc(x_8); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_8); +lean_inc(x_9); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_9); +x_40 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__3; +lean_inc(x_6); +x_41 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_41, 0, x_6); +lean_ctor_set(x_41, 1, x_40); +lean_ctor_set(x_41, 2, x_37); +lean_ctor_set(x_41, 3, x_39); +lean_inc(x_5); +x_42 = lean_array_push(x_5, x_41); +lean_inc(x_11); +x_43 = lean_array_push(x_42, x_11); +lean_inc(x_4); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_4); +lean_ctor_set(x_44, 1, x_43); +lean_inc(x_5); +x_45 = lean_array_push(x_5, x_44); +lean_inc(x_5); +x_46 = lean_array_push(x_5, x_14); +x_47 = lean_array_push(x_46, x_25); +lean_inc(x_10); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_10); +lean_ctor_set(x_48, 1, x_47); +x_49 = lean_array_push(x_45, x_48); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_34); +lean_ctor_set(x_50, 1, x_49); +x_13 = x_22; +x_14 = x_50; +x_16 = x_32; +goto _start; +} +else +{ +uint8_t x_52; +lean_dec(x_22); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_52 = !lean_is_exclusive(x_24); +if (x_52 == 0) +{ +return x_24; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_24, 0); +x_54 = lean_ctor_get(x_24, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_24); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +} +} +} +lean_object* _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalic auto tactic, identifier is not allowed"); +return x_1; +} +} +lean_object* _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_quoteAutoTactic___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; +x_5 = l_unreachable_x21___rarg(x_4); +x_6 = lean_apply_2(x_5, x_2, x_3); +return x_6; +} +case 1: +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +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 = l_Lean_Elab_Term_Quotation_isAntiquot(x_1); +if (x_9 == 0) +{ +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; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_11 = lean_ctor_get(x_1, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_1, 0); +lean_dec(x_12); +x_13 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3); +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_Elab_Term_getMainModule___rarg(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_19 = lean_box(0); +x_20 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__8; +x_21 = l_Lean_addMacroScope(x_17, x_20, x_14); +x_22 = lean_box(0); +x_23 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__4; +x_24 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__10; +x_25 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_25, 0, x_19); +lean_ctor_set(x_25, 1, x_23); +lean_ctor_set(x_25, 2, x_21); +lean_ctor_set(x_25, 3, x_24); +x_26 = l_Array_empty___closed__1; +x_27 = lean_array_push(x_26, x_25); +x_28 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_29 = lean_array_push(x_27, x_28); +x_30 = l_Lean_mkTermIdFromIdent___closed__2; +lean_ctor_set(x_1, 1, x_29); +lean_ctor_set(x_1, 0, x_30); +x_31 = l_Lean_mkAppStx___closed__6; +x_32 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__6; +x_33 = l_Lean_nullKind___closed__2; +x_34 = lean_unsigned_to_nat(0u); +lean_inc(x_2); +x_35 = l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1(x_7, x_8, x_31, x_30, x_26, x_19, x_32, x_22, x_22, x_33, x_28, x_8, x_34, x_1, x_2, x_18); +lean_dec(x_8); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_37); +lean_dec(x_2); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = l_Lean_Elab_Term_getMainModule___rarg(x_40); +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_43 = lean_ctor_get(x_41, 0); +x_44 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__15; +x_45 = l_Lean_addMacroScope(x_43, x_44, x_39); +x_46 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__13; +x_47 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__18; +x_48 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_48, 0, x_19); +lean_ctor_set(x_48, 1, x_46); +lean_ctor_set(x_48, 2, x_45); +lean_ctor_set(x_48, 3, x_47); +x_49 = lean_array_push(x_26, x_48); +x_50 = lean_array_push(x_49, x_28); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_30); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_array_push(x_26, x_51); +x_53 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_7); +x_54 = lean_array_push(x_26, x_53); +x_55 = lean_array_push(x_54, x_36); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_33); +lean_ctor_set(x_56, 1, x_55); +x_57 = lean_array_push(x_52, x_56); +x_58 = l_Lean_mkAppStx___closed__8; +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_57); +lean_ctor_set(x_41, 0, x_59); +return x_41; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; 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; +x_60 = lean_ctor_get(x_41, 0); +x_61 = lean_ctor_get(x_41, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_41); +x_62 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__15; +x_63 = l_Lean_addMacroScope(x_60, x_62, x_39); +x_64 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__13; +x_65 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__18; +x_66 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_66, 0, x_19); +lean_ctor_set(x_66, 1, x_64); +lean_ctor_set(x_66, 2, x_63); +lean_ctor_set(x_66, 3, x_65); +x_67 = lean_array_push(x_26, x_66); +x_68 = lean_array_push(x_67, x_28); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_30); +lean_ctor_set(x_69, 1, x_68); +x_70 = lean_array_push(x_26, x_69); +x_71 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_7); +x_72 = lean_array_push(x_26, x_71); +x_73 = lean_array_push(x_72, x_36); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_33); +lean_ctor_set(x_74, 1, x_73); +x_75 = lean_array_push(x_70, x_74); +x_76 = l_Lean_mkAppStx___closed__8; +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_75); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_61); +return x_78; +} +} +else +{ +uint8_t x_79; +lean_dec(x_7); +lean_dec(x_2); +x_79 = !lean_is_exclusive(x_35); +if (x_79 == 0) +{ +return x_35; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_35, 0); +x_81 = lean_ctor_get(x_35, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_35); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_dec(x_1); +x_83 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = l_Lean_Elab_Term_getMainModule___rarg(x_85); +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_box(0); +x_90 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__8; +x_91 = l_Lean_addMacroScope(x_87, x_90, x_84); +x_92 = lean_box(0); +x_93 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__4; +x_94 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__10; +x_95 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_95, 0, x_89); +lean_ctor_set(x_95, 1, x_93); +lean_ctor_set(x_95, 2, x_91); +lean_ctor_set(x_95, 3, x_94); +x_96 = l_Array_empty___closed__1; +x_97 = lean_array_push(x_96, x_95); +x_98 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_99 = lean_array_push(x_97, x_98); +x_100 = l_Lean_mkTermIdFromIdent___closed__2; +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_99); +x_102 = l_Lean_mkAppStx___closed__6; +x_103 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__6; +x_104 = l_Lean_nullKind___closed__2; +x_105 = lean_unsigned_to_nat(0u); +lean_inc(x_2); +x_106 = l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1(x_7, x_8, x_102, x_100, x_96, x_89, x_103, x_92, x_92, x_104, x_98, x_8, x_105, x_101, x_2, x_88); +lean_dec(x_8); +if (lean_obj_tag(x_106) == 0) +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +lean_dec(x_106); +x_109 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_108); +lean_dec(x_2); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +lean_dec(x_109); +x_112 = l_Lean_Elab_Term_getMainModule___rarg(x_111); +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_115 = x_112; +} else { + lean_dec_ref(x_112); + x_115 = lean_box(0); +} +x_116 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__15; +x_117 = l_Lean_addMacroScope(x_113, x_116, x_110); +x_118 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__13; +x_119 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__18; +x_120 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_120, 0, x_89); +lean_ctor_set(x_120, 1, x_118); +lean_ctor_set(x_120, 2, x_117); +lean_ctor_set(x_120, 3, x_119); +x_121 = lean_array_push(x_96, x_120); +x_122 = lean_array_push(x_121, x_98); +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_100); +lean_ctor_set(x_123, 1, x_122); +x_124 = lean_array_push(x_96, x_123); +x_125 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_7); +x_126 = lean_array_push(x_96, x_125); +x_127 = lean_array_push(x_126, x_107); +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_104); +lean_ctor_set(x_128, 1, x_127); +x_129 = lean_array_push(x_124, x_128); +x_130 = l_Lean_mkAppStx___closed__8; +x_131 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_131, 0, x_130); +lean_ctor_set(x_131, 1, x_129); +if (lean_is_scalar(x_115)) { + x_132 = lean_alloc_ctor(0, 2, 0); +} else { + x_132 = x_115; +} +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_114); +return x_132; +} +else +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +lean_dec(x_7); +lean_dec(x_2); +x_133 = lean_ctor_get(x_106, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_106, 1); +lean_inc(x_134); +if (lean_is_exclusive(x_106)) { + lean_ctor_release(x_106, 0); + lean_ctor_release(x_106, 1); + x_135 = x_106; +} else { + lean_dec_ref(x_106); + x_135 = lean_box(0); +} +if (lean_is_scalar(x_135)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_135; +} +lean_ctor_set(x_136, 0, x_133); +lean_ctor_set(x_136, 1, x_134); +return x_136; +} +} +} +else +{ +lean_object* x_137; lean_object* x_138; +lean_dec(x_8); +lean_dec(x_7); +x_137 = l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__3; +x_138 = l_Lean_Elab_Term_throwError___rarg(x_1, x_137, x_2, x_3); +lean_dec(x_1); +return x_138; +} +} +case 2: +{ +uint8_t x_139; +x_139 = !lean_is_exclusive(x_1); +if (x_139 == 0) +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; +x_140 = lean_ctor_get(x_1, 1); +x_141 = lean_ctor_get(x_1, 0); +lean_dec(x_141); +x_142 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3); +lean_dec(x_2); +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 = l_Lean_Elab_Term_getMainModule___rarg(x_144); +x_146 = !lean_is_exclusive(x_145); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_147 = lean_ctor_get(x_145, 0); +x_148 = lean_box(0); +x_149 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25; +lean_inc(x_143); +lean_inc(x_147); +x_150 = l_Lean_addMacroScope(x_147, x_149, x_143); +x_151 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24; +x_152 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__28; +x_153 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_153, 0, x_148); +lean_ctor_set(x_153, 1, x_151); +lean_ctor_set(x_153, 2, x_150); +lean_ctor_set(x_153, 3, x_152); +x_154 = l_Array_empty___closed__1; +x_155 = lean_array_push(x_154, x_153); +x_156 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_157 = lean_array_push(x_155, x_156); +x_158 = l_Lean_mkTermIdFromIdent___closed__2; +lean_ctor_set_tag(x_1, 1); +lean_ctor_set(x_1, 1, x_157); +lean_ctor_set(x_1, 0, x_158); +x_159 = lean_array_push(x_154, x_1); +x_160 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; +x_161 = l_Lean_addMacroScope(x_147, x_160, x_143); +x_162 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; +x_163 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; +x_164 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_164, 0, x_148); +lean_ctor_set(x_164, 1, x_162); +lean_ctor_set(x_164, 2, x_161); +lean_ctor_set(x_164, 3, x_163); +x_165 = lean_array_push(x_154, x_164); +x_166 = lean_array_push(x_165, x_156); +x_167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_167, 0, x_158); +lean_ctor_set(x_167, 1, x_166); +x_168 = lean_array_push(x_154, x_167); +x_169 = l_Lean_mkStxStrLit(x_140, x_148); +x_170 = l_Lean_mkOptionalNode___closed__2; +x_171 = lean_array_push(x_170, x_169); +x_172 = l_Lean_Parser_Term_str___elambda__1___closed__2; +x_173 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_171); +x_174 = lean_array_push(x_168, x_173); +x_175 = l_Lean_nullKind___closed__2; +x_176 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_176, 0, x_175); +lean_ctor_set(x_176, 1, x_174); +x_177 = lean_array_push(x_159, x_176); +x_178 = l_Lean_mkAppStx___closed__8; +x_179 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_179, 0, x_178); +lean_ctor_set(x_179, 1, x_177); +lean_ctor_set(x_145, 0, x_179); +return x_145; +} +else +{ +lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_180 = lean_ctor_get(x_145, 0); +x_181 = lean_ctor_get(x_145, 1); +lean_inc(x_181); +lean_inc(x_180); +lean_dec(x_145); +x_182 = lean_box(0); +x_183 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25; +lean_inc(x_143); +lean_inc(x_180); +x_184 = l_Lean_addMacroScope(x_180, x_183, x_143); +x_185 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24; +x_186 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__28; +x_187 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_187, 0, x_182); +lean_ctor_set(x_187, 1, x_185); +lean_ctor_set(x_187, 2, x_184); +lean_ctor_set(x_187, 3, x_186); +x_188 = l_Array_empty___closed__1; +x_189 = lean_array_push(x_188, x_187); +x_190 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_191 = lean_array_push(x_189, x_190); +x_192 = l_Lean_mkTermIdFromIdent___closed__2; +lean_ctor_set_tag(x_1, 1); +lean_ctor_set(x_1, 1, x_191); +lean_ctor_set(x_1, 0, x_192); +x_193 = lean_array_push(x_188, x_1); +x_194 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; +x_195 = l_Lean_addMacroScope(x_180, x_194, x_143); +x_196 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; +x_197 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; +x_198 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_198, 0, x_182); +lean_ctor_set(x_198, 1, x_196); +lean_ctor_set(x_198, 2, x_195); +lean_ctor_set(x_198, 3, x_197); +x_199 = lean_array_push(x_188, x_198); +x_200 = lean_array_push(x_199, x_190); +x_201 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_201, 0, x_192); +lean_ctor_set(x_201, 1, x_200); +x_202 = lean_array_push(x_188, x_201); +x_203 = l_Lean_mkStxStrLit(x_140, x_182); +x_204 = l_Lean_mkOptionalNode___closed__2; +x_205 = lean_array_push(x_204, x_203); +x_206 = l_Lean_Parser_Term_str___elambda__1___closed__2; +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_202, x_207); +x_209 = l_Lean_nullKind___closed__2; +x_210 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_210, 0, x_209); +lean_ctor_set(x_210, 1, x_208); +x_211 = lean_array_push(x_193, x_210); +x_212 = l_Lean_mkAppStx___closed__8; +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_212); +lean_ctor_set(x_213, 1, x_211); +x_214 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_214, 0, x_213); +lean_ctor_set(x_214, 1, x_181); +return x_214; +} +} +else +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; +x_215 = lean_ctor_get(x_1, 1); +lean_inc(x_215); +lean_dec(x_1); +x_216 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3); +lean_dec(x_2); +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 = l_Lean_Elab_Term_getMainModule___rarg(x_218); +x_220 = lean_ctor_get(x_219, 0); +lean_inc(x_220); +x_221 = lean_ctor_get(x_219, 1); +lean_inc(x_221); +if (lean_is_exclusive(x_219)) { + lean_ctor_release(x_219, 0); + lean_ctor_release(x_219, 1); + x_222 = x_219; +} else { + lean_dec_ref(x_219); + x_222 = lean_box(0); +} +x_223 = lean_box(0); +x_224 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25; +lean_inc(x_217); +lean_inc(x_220); +x_225 = l_Lean_addMacroScope(x_220, x_224, x_217); +x_226 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24; +x_227 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__28; +x_228 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_228, 0, x_223); +lean_ctor_set(x_228, 1, x_226); +lean_ctor_set(x_228, 2, x_225); +lean_ctor_set(x_228, 3, x_227); +x_229 = l_Array_empty___closed__1; +x_230 = lean_array_push(x_229, x_228); +x_231 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_232 = lean_array_push(x_230, x_231); +x_233 = l_Lean_mkTermIdFromIdent___closed__2; +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_233); +lean_ctor_set(x_234, 1, x_232); +x_235 = lean_array_push(x_229, x_234); +x_236 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; +x_237 = l_Lean_addMacroScope(x_220, x_236, x_217); +x_238 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; +x_239 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; +x_240 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_240, 0, x_223); +lean_ctor_set(x_240, 1, x_238); +lean_ctor_set(x_240, 2, x_237); +lean_ctor_set(x_240, 3, x_239); +x_241 = lean_array_push(x_229, x_240); +x_242 = lean_array_push(x_241, x_231); +x_243 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_243, 0, x_233); +lean_ctor_set(x_243, 1, x_242); +x_244 = lean_array_push(x_229, x_243); +x_245 = l_Lean_mkStxStrLit(x_215, x_223); +x_246 = l_Lean_mkOptionalNode___closed__2; +x_247 = lean_array_push(x_246, x_245); +x_248 = l_Lean_Parser_Term_str___elambda__1___closed__2; +x_249 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_249, 0, x_248); +lean_ctor_set(x_249, 1, x_247); +x_250 = lean_array_push(x_244, x_249); +x_251 = l_Lean_nullKind___closed__2; +x_252 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_252, 0, x_251); +lean_ctor_set(x_252, 1, x_250); +x_253 = lean_array_push(x_235, x_252); +x_254 = l_Lean_mkAppStx___closed__8; +x_255 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_255, 0, x_254); +lean_ctor_set(x_255, 1, x_253); +if (lean_is_scalar(x_222)) { + x_256 = lean_alloc_ctor(0, 2, 0); +} else { + x_256 = x_222; +} +lean_ctor_set(x_256, 0, x_255); +lean_ctor_set(x_256, 1, x_221); +return x_256; +} +} +default: +{ +lean_object* x_257; lean_object* x_258; +x_257 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__3; +x_258 = l_Lean_Elab_Term_throwError___rarg(x_1, x_257, x_2, x_3); +lean_dec(x_1); +return x_258; +} +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +lean_object* x_17; +x_17 = l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_12); +lean_dec(x_2); +lean_dec(x_1); +return x_17; +} +} +lean_object* l_Lean_Elab_Term_quoteAutoTactic(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_Term_quoteAutoTactic___main(x_1, x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Elab_Term_declareTacticSyntax___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("_auto"); +return x_1; +} +} +lean_object* _init_l_Lean_Elab_Term_declareTacticSyntax___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_declareTacticSyntax___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Elab_Term_declareTacticSyntax___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_evalSyntaxConstant___closed__1; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +lean_object* _init_l_Lean_Elab_Term_declareTacticSyntax___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_declareTacticSyntax___closed__3; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Elab_Term_declareTacticSyntax___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; +x_2 = l_Lean_Expr_getAutoParamTactic_x3f___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Elab_Term_declareTacticSyntax(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_5 = lean_ctor_get(x_3, 5); +x_6 = lean_unsigned_to_nat(1u); +x_7 = lean_nat_add(x_5, x_6); +lean_ctor_set(x_3, 5, x_7); +x_8 = !lean_is_exclusive(x_2); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_9 = lean_ctor_get(x_2, 9); +lean_dec(x_9); +lean_ctor_set(x_2, 9, x_5); +x_10 = l_Lean_Elab_Term_getMainModule___rarg(x_3); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_Elab_Term_declareTacticSyntax___closed__2; +x_17 = l_Lean_addMacroScope(x_11, x_16, x_14); +x_18 = lean_box(0); +lean_inc(x_2); +x_19 = l_Lean_Elab_Term_quoteAutoTactic___main(x_1, x_2, x_15); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_Elab_Term_declareTacticSyntax___closed__4; +x_23 = 1; +lean_inc(x_2); +lean_inc(x_20); +x_24 = l_Lean_Elab_Term_elabTerm(x_20, x_22, x_23, x_2, x_21); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +lean_inc(x_2); +x_27 = l_Lean_Elab_Term_instantiateMVars(x_20, x_25, x_2, x_26); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_53 = l_Lean_Elab_Term_getOptions(x_2, x_29); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = l_Lean_Elab_Term_declareTacticSyntax___closed__5; +x_57 = l_Lean_checkTraceOption(x_54, x_56); +lean_dec(x_54); +if (x_57 == 0) +{ +x_30 = x_55; +goto block_52; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +lean_inc(x_28); +x_58 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_58, 0, x_28); +x_59 = l_Lean_Elab_Term_logTrace(x_56, x_20, x_58, x_2, x_55); +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +lean_dec(x_59); +x_30 = x_60; +goto block_52; +} +block_52: +{ +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_31 = l_Lean_Elab_Term_declareTacticSyntax___closed__3; +lean_inc(x_17); +x_32 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_32, 0, x_17); +lean_ctor_set(x_32, 1, x_18); +lean_ctor_set(x_32, 2, x_31); +x_33 = lean_box(0); +x_34 = 0; +x_35 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_35, 0, x_32); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_33); +lean_ctor_set_uint8(x_35, sizeof(void*)*3, x_34); +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_35); +lean_inc(x_2); +x_37 = l_Lean_Elab_Term_addDecl(x_20, x_36, x_2, x_30); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_37); +x_39 = l_Lean_Elab_Term_compileDecl(x_20, x_36, x_2, x_38); +lean_dec(x_36); +lean_dec(x_20); +if (lean_obj_tag(x_39) == 0) +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) +{ +lean_object* x_41; +x_41 = lean_ctor_get(x_39, 0); +lean_dec(x_41); +lean_ctor_set(x_39, 0, x_17); +return x_39; +} +else +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_17); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +else +{ +uint8_t x_44; +lean_dec(x_17); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +return x_39; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_39, 0); +x_46 = lean_ctor_get(x_39, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_39); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +uint8_t x_48; +lean_dec(x_36); +lean_dec(x_20); +lean_dec(x_17); +lean_dec(x_2); +x_48 = !lean_is_exclusive(x_37); +if (x_48 == 0) +{ +return x_37; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_37, 0); +x_50 = lean_ctor_get(x_37, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_37); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +} +else +{ +uint8_t x_61; +lean_dec(x_20); +lean_dec(x_17); +lean_dec(x_2); +x_61 = !lean_is_exclusive(x_24); +if (x_61 == 0) +{ +return x_24; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_24, 0); +x_63 = lean_ctor_get(x_24, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_24); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +return x_64; +} +} +} +else +{ +uint8_t x_65; +lean_dec(x_17); +lean_dec(x_2); +x_65 = !lean_is_exclusive(x_19); +if (x_65 == 0) +{ +return x_19; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_19, 0); +x_67 = lean_ctor_get(x_19, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_19); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +else +{ +lean_object* x_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; uint8_t x_78; uint8_t x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_69 = lean_ctor_get(x_2, 0); +x_70 = lean_ctor_get(x_2, 1); +x_71 = lean_ctor_get(x_2, 2); +x_72 = lean_ctor_get(x_2, 3); +x_73 = lean_ctor_get(x_2, 4); +x_74 = lean_ctor_get(x_2, 5); +x_75 = lean_ctor_get(x_2, 6); +x_76 = lean_ctor_get(x_2, 7); +x_77 = lean_ctor_get(x_2, 8); +x_78 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_79 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +x_80 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); +lean_inc(x_77); +lean_inc(x_76); +lean_inc(x_75); +lean_inc(x_74); +lean_inc(x_73); +lean_inc(x_72); +lean_inc(x_71); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_2); +x_81 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_81, 0, x_69); +lean_ctor_set(x_81, 1, x_70); +lean_ctor_set(x_81, 2, x_71); +lean_ctor_set(x_81, 3, x_72); +lean_ctor_set(x_81, 4, x_73); +lean_ctor_set(x_81, 5, x_74); +lean_ctor_set(x_81, 6, x_75); +lean_ctor_set(x_81, 7, x_76); +lean_ctor_set(x_81, 8, x_77); +lean_ctor_set(x_81, 9, x_5); +lean_ctor_set_uint8(x_81, sizeof(void*)*10, x_78); +lean_ctor_set_uint8(x_81, sizeof(void*)*10 + 1, x_79); +lean_ctor_set_uint8(x_81, sizeof(void*)*10 + 2, x_80); +x_82 = l_Lean_Elab_Term_getMainModule___rarg(x_3); +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_Lean_Elab_Term_getCurrMacroScope(x_81, x_84); +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_Lean_Elab_Term_declareTacticSyntax___closed__2; +x_89 = l_Lean_addMacroScope(x_83, x_88, x_86); +x_90 = lean_box(0); +lean_inc(x_81); +x_91 = l_Lean_Elab_Term_quoteAutoTactic___main(x_1, x_81, x_87); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; lean_object* x_96; +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec(x_91); +x_94 = l_Lean_Elab_Term_declareTacticSyntax___closed__4; +x_95 = 1; +lean_inc(x_81); +lean_inc(x_92); +x_96 = l_Lean_Elab_Term_elabTerm(x_92, x_94, x_95, x_81, x_93); +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_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; +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); +lean_inc(x_81); +x_99 = l_Lean_Elab_Term_instantiateMVars(x_92, x_97, x_81, x_98); +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec(x_99); +x_124 = l_Lean_Elab_Term_getOptions(x_81, x_101); +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_Lean_Elab_Term_declareTacticSyntax___closed__5; +x_128 = l_Lean_checkTraceOption(x_125, x_127); +lean_dec(x_125); +if (x_128 == 0) +{ +x_102 = x_126; +goto block_123; +} +else +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; +lean_inc(x_100); +x_129 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_129, 0, x_100); +x_130 = l_Lean_Elab_Term_logTrace(x_127, x_92, x_129, x_81, x_126); +x_131 = lean_ctor_get(x_130, 1); +lean_inc(x_131); +lean_dec(x_130); +x_102 = x_131; +goto block_123; +} +block_123: +{ +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_103 = l_Lean_Elab_Term_declareTacticSyntax___closed__3; +lean_inc(x_89); +x_104 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_104, 0, x_89); +lean_ctor_set(x_104, 1, x_90); +lean_ctor_set(x_104, 2, x_103); +x_105 = lean_box(0); +x_106 = 0; +x_107 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_107, 0, x_104); +lean_ctor_set(x_107, 1, x_100); +lean_ctor_set(x_107, 2, x_105); +lean_ctor_set_uint8(x_107, sizeof(void*)*3, x_106); +x_108 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_108, 0, x_107); +lean_inc(x_81); +x_109 = l_Lean_Elab_Term_addDecl(x_92, x_108, x_81, x_102); +if (lean_obj_tag(x_109) == 0) +{ +lean_object* x_110; lean_object* x_111; +x_110 = lean_ctor_get(x_109, 1); +lean_inc(x_110); +lean_dec(x_109); +x_111 = l_Lean_Elab_Term_compileDecl(x_92, x_108, x_81, x_110); +lean_dec(x_108); +lean_dec(x_92); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_113 = x_111; +} else { + lean_dec_ref(x_111); + x_113 = lean_box(0); +} +if (lean_is_scalar(x_113)) { + x_114 = lean_alloc_ctor(0, 2, 0); +} else { + x_114 = x_113; +} +lean_ctor_set(x_114, 0, x_89); +lean_ctor_set(x_114, 1, x_112); +return x_114; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_89); +x_115 = lean_ctor_get(x_111, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_111, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_117 = x_111; +} else { + lean_dec_ref(x_111); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +lean_dec(x_108); +lean_dec(x_92); +lean_dec(x_89); +lean_dec(x_81); +x_119 = lean_ctor_get(x_109, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_109, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_121 = x_109; +} else { + lean_dec_ref(x_109); + x_121 = lean_box(0); +} +if (lean_is_scalar(x_121)) { + x_122 = lean_alloc_ctor(1, 2, 0); +} else { + x_122 = x_121; +} +lean_ctor_set(x_122, 0, x_119); +lean_ctor_set(x_122, 1, x_120); +return x_122; +} +} +} +else +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +lean_dec(x_92); +lean_dec(x_89); +lean_dec(x_81); +x_132 = lean_ctor_get(x_96, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_96, 1); +lean_inc(x_133); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_134 = x_96; +} else { + lean_dec_ref(x_96); + x_134 = lean_box(0); +} +if (lean_is_scalar(x_134)) { + x_135 = lean_alloc_ctor(1, 2, 0); +} else { + x_135 = x_134; +} +lean_ctor_set(x_135, 0, x_132); +lean_ctor_set(x_135, 1, x_133); +return x_135; +} +} +else +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_dec(x_89); +lean_dec(x_81); +x_136 = lean_ctor_get(x_91, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_91, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_138 = x_91; +} else { + lean_dec_ref(x_91); + x_138 = lean_box(0); +} +if (lean_is_scalar(x_138)) { + x_139 = lean_alloc_ctor(1, 2, 0); +} else { + x_139 = x_138; +} +lean_ctor_set(x_139, 0, x_136); +lean_ctor_set(x_139, 1, x_137); +return x_139; +} +} +} +else +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; uint8_t x_159; uint8_t x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_140 = lean_ctor_get(x_3, 0); +x_141 = lean_ctor_get(x_3, 1); +x_142 = lean_ctor_get(x_3, 2); +x_143 = lean_ctor_get(x_3, 3); +x_144 = lean_ctor_get(x_3, 4); +x_145 = lean_ctor_get(x_3, 5); +lean_inc(x_145); +lean_inc(x_144); +lean_inc(x_143); +lean_inc(x_142); +lean_inc(x_141); +lean_inc(x_140); +lean_dec(x_3); +x_146 = lean_unsigned_to_nat(1u); +x_147 = lean_nat_add(x_145, x_146); +x_148 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_148, 0, x_140); +lean_ctor_set(x_148, 1, x_141); +lean_ctor_set(x_148, 2, x_142); +lean_ctor_set(x_148, 3, x_143); +lean_ctor_set(x_148, 4, x_144); +lean_ctor_set(x_148, 5, x_147); +x_149 = lean_ctor_get(x_2, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_2, 1); +lean_inc(x_150); +x_151 = lean_ctor_get(x_2, 2); +lean_inc(x_151); +x_152 = lean_ctor_get(x_2, 3); +lean_inc(x_152); +x_153 = lean_ctor_get(x_2, 4); +lean_inc(x_153); +x_154 = lean_ctor_get(x_2, 5); +lean_inc(x_154); +x_155 = lean_ctor_get(x_2, 6); +lean_inc(x_155); +x_156 = lean_ctor_get(x_2, 7); +lean_inc(x_156); +x_157 = lean_ctor_get(x_2, 8); +lean_inc(x_157); +x_158 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_159 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +x_160 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + lean_ctor_release(x_2, 2); + lean_ctor_release(x_2, 3); + lean_ctor_release(x_2, 4); + lean_ctor_release(x_2, 5); + lean_ctor_release(x_2, 6); + lean_ctor_release(x_2, 7); + lean_ctor_release(x_2, 8); + lean_ctor_release(x_2, 9); + x_161 = x_2; +} else { + lean_dec_ref(x_2); + x_161 = lean_box(0); +} +if (lean_is_scalar(x_161)) { + x_162 = lean_alloc_ctor(0, 10, 3); +} else { + x_162 = x_161; +} +lean_ctor_set(x_162, 0, x_149); +lean_ctor_set(x_162, 1, x_150); +lean_ctor_set(x_162, 2, x_151); +lean_ctor_set(x_162, 3, x_152); +lean_ctor_set(x_162, 4, x_153); +lean_ctor_set(x_162, 5, x_154); +lean_ctor_set(x_162, 6, x_155); +lean_ctor_set(x_162, 7, x_156); +lean_ctor_set(x_162, 8, x_157); +lean_ctor_set(x_162, 9, x_145); +lean_ctor_set_uint8(x_162, sizeof(void*)*10, x_158); +lean_ctor_set_uint8(x_162, sizeof(void*)*10 + 1, x_159); +lean_ctor_set_uint8(x_162, sizeof(void*)*10 + 2, x_160); +x_163 = l_Lean_Elab_Term_getMainModule___rarg(x_148); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +lean_dec(x_163); +x_166 = l_Lean_Elab_Term_getCurrMacroScope(x_162, x_165); +x_167 = lean_ctor_get(x_166, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_166, 1); +lean_inc(x_168); +lean_dec(x_166); +x_169 = l_Lean_Elab_Term_declareTacticSyntax___closed__2; +x_170 = l_Lean_addMacroScope(x_164, x_169, x_167); +x_171 = lean_box(0); +lean_inc(x_162); +x_172 = l_Lean_Elab_Term_quoteAutoTactic___main(x_1, x_162, x_168); +if (lean_obj_tag(x_172) == 0) +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; lean_object* x_177; +x_173 = lean_ctor_get(x_172, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_172, 1); +lean_inc(x_174); +lean_dec(x_172); +x_175 = l_Lean_Elab_Term_declareTacticSyntax___closed__4; +x_176 = 1; +lean_inc(x_162); +lean_inc(x_173); +x_177 = l_Lean_Elab_Term_elabTerm(x_173, x_175, x_176, x_162, x_174); +if (lean_obj_tag(x_177) == 0) +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; uint8_t x_209; +x_178 = lean_ctor_get(x_177, 0); +lean_inc(x_178); +x_179 = lean_ctor_get(x_177, 1); +lean_inc(x_179); +lean_dec(x_177); +lean_inc(x_162); +x_180 = l_Lean_Elab_Term_instantiateMVars(x_173, x_178, x_162, x_179); +x_181 = lean_ctor_get(x_180, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_180, 1); +lean_inc(x_182); +lean_dec(x_180); +x_205 = l_Lean_Elab_Term_getOptions(x_162, x_182); +x_206 = lean_ctor_get(x_205, 0); +lean_inc(x_206); +x_207 = lean_ctor_get(x_205, 1); +lean_inc(x_207); +lean_dec(x_205); +x_208 = l_Lean_Elab_Term_declareTacticSyntax___closed__5; +x_209 = l_Lean_checkTraceOption(x_206, x_208); +lean_dec(x_206); +if (x_209 == 0) +{ +x_183 = x_207; +goto block_204; +} +else +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; +lean_inc(x_181); +x_210 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_210, 0, x_181); +x_211 = l_Lean_Elab_Term_logTrace(x_208, x_173, x_210, x_162, x_207); +x_212 = lean_ctor_get(x_211, 1); +lean_inc(x_212); +lean_dec(x_211); +x_183 = x_212; +goto block_204; +} +block_204: +{ +lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; +x_184 = l_Lean_Elab_Term_declareTacticSyntax___closed__3; +lean_inc(x_170); +x_185 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_185, 0, x_170); +lean_ctor_set(x_185, 1, x_171); +lean_ctor_set(x_185, 2, x_184); +x_186 = lean_box(0); +x_187 = 0; +x_188 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_188, 0, x_185); +lean_ctor_set(x_188, 1, x_181); +lean_ctor_set(x_188, 2, x_186); +lean_ctor_set_uint8(x_188, sizeof(void*)*3, x_187); +x_189 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_189, 0, x_188); +lean_inc(x_162); +x_190 = l_Lean_Elab_Term_addDecl(x_173, x_189, x_162, x_183); +if (lean_obj_tag(x_190) == 0) +{ +lean_object* x_191; lean_object* x_192; +x_191 = lean_ctor_get(x_190, 1); +lean_inc(x_191); +lean_dec(x_190); +x_192 = l_Lean_Elab_Term_compileDecl(x_173, x_189, x_162, x_191); +lean_dec(x_189); +lean_dec(x_173); +if (lean_obj_tag(x_192) == 0) +{ +lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_193 = lean_ctor_get(x_192, 1); +lean_inc(x_193); +if (lean_is_exclusive(x_192)) { + lean_ctor_release(x_192, 0); + lean_ctor_release(x_192, 1); + x_194 = x_192; +} else { + lean_dec_ref(x_192); + x_194 = lean_box(0); +} +if (lean_is_scalar(x_194)) { + x_195 = lean_alloc_ctor(0, 2, 0); +} else { + x_195 = x_194; +} +lean_ctor_set(x_195, 0, x_170); +lean_ctor_set(x_195, 1, x_193); +return x_195; +} +else +{ +lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +lean_dec(x_170); +x_196 = lean_ctor_get(x_192, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_192, 1); +lean_inc(x_197); +if (lean_is_exclusive(x_192)) { + lean_ctor_release(x_192, 0); + lean_ctor_release(x_192, 1); + x_198 = x_192; +} else { + lean_dec_ref(x_192); + 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(x_199, 0, x_196); +lean_ctor_set(x_199, 1, x_197); +return x_199; +} +} +else +{ +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; +lean_dec(x_189); +lean_dec(x_173); +lean_dec(x_170); +lean_dec(x_162); +x_200 = lean_ctor_get(x_190, 0); +lean_inc(x_200); +x_201 = lean_ctor_get(x_190, 1); +lean_inc(x_201); +if (lean_is_exclusive(x_190)) { + lean_ctor_release(x_190, 0); + lean_ctor_release(x_190, 1); + x_202 = x_190; +} else { + lean_dec_ref(x_190); + x_202 = lean_box(0); +} +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(1, 2, 0); +} else { + x_203 = x_202; +} +lean_ctor_set(x_203, 0, x_200); +lean_ctor_set(x_203, 1, x_201); +return x_203; +} +} +} +else +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +lean_dec(x_173); +lean_dec(x_170); +lean_dec(x_162); +x_213 = lean_ctor_get(x_177, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_177, 1); +lean_inc(x_214); +if (lean_is_exclusive(x_177)) { + lean_ctor_release(x_177, 0); + lean_ctor_release(x_177, 1); + x_215 = x_177; +} else { + lean_dec_ref(x_177); + x_215 = lean_box(0); +} +if (lean_is_scalar(x_215)) { + x_216 = lean_alloc_ctor(1, 2, 0); +} else { + x_216 = x_215; +} +lean_ctor_set(x_216, 0, x_213); +lean_ctor_set(x_216, 1, x_214); +return x_216; +} +} +else +{ +lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; +lean_dec(x_170); +lean_dec(x_162); +x_217 = lean_ctor_get(x_172, 0); +lean_inc(x_217); +x_218 = lean_ctor_get(x_172, 1); +lean_inc(x_218); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_219 = x_172; +} else { + lean_dec_ref(x_172); + x_219 = lean_box(0); +} +if (lean_is_scalar(x_219)) { + x_220 = lean_alloc_ctor(1, 2, 0); +} else { + x_220 = x_219; +} +lean_ctor_set(x_220, 0, x_217); +lean_ctor_set(x_220, 1, x_218); +return x_220; +} +} +} +} +lean_object* _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Expr_getAutoParamTactic_x3f___closed__1; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Expr_getAutoParamTactic_x3f___closed__1; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__1; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Expr_getAutoParamTactic_x3f___closed__2; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} lean_object* _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__4() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__3; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__5() { +_start: +{ lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Expr_getOptParamDefault_x3f___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__5() { +lean_object* _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Expr_getOptParamDefault_x3f___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__4; +x_3 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__5; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -474,7 +2282,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__6() { +lean_object* _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -486,12 +2294,12 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__7() { +lean_object* _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__6; +x_2 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__7; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -515,7 +2323,6 @@ x_10 = lean_name_eq(x_8, x_9); if (x_10 == 0) { lean_object* x_11; uint8_t x_12; -lean_dec(x_1); x_11 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; x_12 = lean_name_eq(x_8, x_11); lean_dec(x_8); @@ -524,124 +2331,254 @@ if (x_12 == 0) lean_object* x_13; lean_dec(x_7); lean_dec(x_3); +lean_dec(x_1); x_13 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_4); return x_13; } else { -lean_object* x_14; lean_object* x_15; -x_14 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__3; -x_15 = l_Lean_Elab_Term_throwError___rarg(x_7, x_14, x_3, x_4); +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_unsigned_to_nat(2u); +x_15 = l_Lean_Syntax_getArg(x_7, x_14); lean_dec(x_7); -return x_15; -} -} -else +lean_inc(x_3); +lean_inc(x_15); +x_16 = l_Lean_Elab_Term_declareTacticSyntax(x_15, x_3, x_4); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -lean_dec(x_8); -x_16 = lean_unsigned_to_nat(1u); -x_17 = l_Lean_Syntax_getArg(x_7, x_16); -lean_dec(x_7); -x_18 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_18); lean_dec(x_3); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_Elab_Term_getMainModule___rarg(x_20); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_Elab_Term_getMainModule___rarg(x_21); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_23 = lean_ctor_get(x_21, 0); -x_24 = lean_box(0); -x_25 = l_Lean_Expr_getOptParamDefault_x3f___closed__2; -x_26 = l_Lean_addMacroScope(x_23, x_25, x_19); -x_27 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__5; -x_28 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__7; -x_29 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_29, 0, x_24); -lean_ctor_set(x_29, 1, x_27); -lean_ctor_set(x_29, 2, x_26); -lean_ctor_set(x_29, 3, x_28); -x_30 = l_Array_empty___closed__1; -x_31 = lean_array_push(x_30, x_29); -x_32 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_33 = lean_array_push(x_31, x_32); -x_34 = l_Lean_mkTermIdFromIdent___closed__2; -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = lean_array_push(x_30, x_35); -x_37 = lean_array_push(x_30, x_1); -x_38 = lean_array_push(x_37, x_17); -x_39 = l_Lean_nullKind___closed__2; -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = lean_array_push(x_36, x_40); -x_42 = l_Lean_mkAppStx___closed__8; -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); -lean_ctor_set(x_21, 0, x_43); -return x_21; +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_box(0); +x_26 = l_Lean_Expr_getAutoParamTactic_x3f___closed__2; +x_27 = l_Lean_addMacroScope(x_24, x_26, x_20); +x_28 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__2; +x_29 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__4; +x_30 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_30, 0, x_25); +lean_ctor_set(x_30, 1, x_28); +lean_ctor_set(x_30, 2, x_27); +lean_ctor_set(x_30, 3, x_29); +x_31 = l_Array_empty___closed__1; +x_32 = lean_array_push(x_31, x_30); +x_33 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_34 = lean_array_push(x_32, x_33); +x_35 = l_Lean_mkTermIdFromIdent___closed__2; +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +x_37 = lean_array_push(x_31, x_36); +x_38 = lean_array_push(x_31, x_1); +x_39 = l_Lean_mkTermIdFrom(x_15, x_17); +lean_dec(x_15); +x_40 = lean_array_push(x_38, x_39); +x_41 = l_Lean_nullKind___closed__2; +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +x_43 = lean_array_push(x_37, x_42); +x_44 = l_Lean_mkAppStx___closed__8; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_43); +lean_ctor_set(x_22, 0, x_45); +return x_22; } 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; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_44 = lean_ctor_get(x_21, 0); -x_45 = lean_ctor_get(x_21, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_21); -x_46 = lean_box(0); -x_47 = l_Lean_Expr_getOptParamDefault_x3f___closed__2; -x_48 = l_Lean_addMacroScope(x_44, x_47, x_19); -x_49 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__5; -x_50 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__7; -x_51 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_51, 0, x_46); -lean_ctor_set(x_51, 1, x_49); -lean_ctor_set(x_51, 2, x_48); -lean_ctor_set(x_51, 3, x_50); -x_52 = l_Array_empty___closed__1; -x_53 = lean_array_push(x_52, x_51); -x_54 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_55 = lean_array_push(x_53, x_54); -x_56 = l_Lean_mkTermIdFromIdent___closed__2; -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_55); -x_58 = lean_array_push(x_52, x_57); -x_59 = lean_array_push(x_52, x_1); -x_60 = lean_array_push(x_59, x_17); -x_61 = l_Lean_nullKind___closed__2; -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -x_63 = lean_array_push(x_58, x_62); -x_64 = l_Lean_mkAppStx___closed__8; +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_46 = lean_ctor_get(x_22, 0); +x_47 = lean_ctor_get(x_22, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_22); +x_48 = lean_box(0); +x_49 = l_Lean_Expr_getAutoParamTactic_x3f___closed__2; +x_50 = l_Lean_addMacroScope(x_46, x_49, x_20); +x_51 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__2; +x_52 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__4; +x_53 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_53, 0, x_48); +lean_ctor_set(x_53, 1, x_51); +lean_ctor_set(x_53, 2, x_50); +lean_ctor_set(x_53, 3, x_52); +x_54 = l_Array_empty___closed__1; +x_55 = lean_array_push(x_54, x_53); +x_56 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_57 = lean_array_push(x_55, x_56); +x_58 = l_Lean_mkTermIdFromIdent___closed__2; +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_57); +x_60 = lean_array_push(x_54, x_59); +x_61 = lean_array_push(x_54, x_1); +x_62 = l_Lean_mkTermIdFrom(x_15, x_17); +lean_dec(x_15); +x_63 = lean_array_push(x_61, x_62); +x_64 = l_Lean_nullKind___closed__2; x_65 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_65, 0, x_64); lean_ctor_set(x_65, 1, x_63); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_45); -return x_66; +x_66 = lean_array_push(x_60, x_65); +x_67 = l_Lean_mkAppStx___closed__8; +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_47); +return x_69; +} +} +else +{ +uint8_t x_70; +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_70 = !lean_is_exclusive(x_16); +if (x_70 == 0) +{ +return x_16; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_16, 0); +x_72 = lean_ctor_get(x_16, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_16); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; +} } } } else { -lean_object* x_67; +lean_object* x_74; 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_dec(x_8); +x_74 = lean_unsigned_to_nat(1u); +x_75 = l_Lean_Syntax_getArg(x_7, x_74); +lean_dec(x_7); +x_76 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); lean_dec(x_3); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_1); -lean_ctor_set(x_67, 1, x_4); -return x_67; +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +x_79 = l_Lean_Elab_Term_getMainModule___rarg(x_78); +x_80 = !lean_is_exclusive(x_79); +if (x_80 == 0) +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_81 = lean_ctor_get(x_79, 0); +x_82 = lean_box(0); +x_83 = l_Lean_Expr_getOptParamDefault_x3f___closed__2; +x_84 = l_Lean_addMacroScope(x_81, x_83, x_77); +x_85 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__6; +x_86 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__8; +x_87 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_87, 0, x_82); +lean_ctor_set(x_87, 1, x_85); +lean_ctor_set(x_87, 2, x_84); +lean_ctor_set(x_87, 3, x_86); +x_88 = l_Array_empty___closed__1; +x_89 = lean_array_push(x_88, x_87); +x_90 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_91 = lean_array_push(x_89, x_90); +x_92 = l_Lean_mkTermIdFromIdent___closed__2; +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_91); +x_94 = lean_array_push(x_88, x_93); +x_95 = lean_array_push(x_88, x_1); +x_96 = lean_array_push(x_95, x_75); +x_97 = l_Lean_nullKind___closed__2; +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_96); +x_99 = lean_array_push(x_94, x_98); +x_100 = l_Lean_mkAppStx___closed__8; +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_99); +lean_ctor_set(x_79, 0, x_101); +return x_79; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_102 = lean_ctor_get(x_79, 0); +x_103 = lean_ctor_get(x_79, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_79); +x_104 = lean_box(0); +x_105 = l_Lean_Expr_getOptParamDefault_x3f___closed__2; +x_106 = l_Lean_addMacroScope(x_102, x_105, x_77); +x_107 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__6; +x_108 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__8; +x_109 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_109, 0, x_104); +lean_ctor_set(x_109, 1, x_107); +lean_ctor_set(x_109, 2, x_106); +lean_ctor_set(x_109, 3, x_108); +x_110 = l_Array_empty___closed__1; +x_111 = lean_array_push(x_110, x_109); +x_112 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_113 = lean_array_push(x_111, x_112); +x_114 = l_Lean_mkTermIdFromIdent___closed__2; +x_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_113); +x_116 = lean_array_push(x_110, x_115); +x_117 = lean_array_push(x_110, x_1); +x_118 = lean_array_push(x_117, x_75); +x_119 = l_Lean_nullKind___closed__2; +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_118); +x_121 = lean_array_push(x_116, x_120); +x_122 = l_Lean_mkAppStx___closed__8; +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_121); +x_124 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_103); +return x_124; +} +} +} +else +{ +lean_object* x_125; +lean_dec(x_3); +x_125 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_125, 0, x_1); +lean_ctor_set(x_125, 1, x_4); +return x_125; } } } @@ -3363,7 +5300,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Prod_HasRepr___rarg___closed__1; +x_2 = l___private_Init_Util_1__mkPanicMessage___closed__2; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -3385,40 +5322,6 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Util_1__mkPanicMessage___closed__2; -x_3 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Term_elabArrow___lambda__1___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_Lean_Elab_Term_elabArrow___lambda__1___closed__5; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Term_elabArrow___lambda__1___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Option_HasRepr___rarg___closed__3; -x_3 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Term_elabArrow___lambda__1___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); x_2 = l_Lean_List_format___rarg___closed__2; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -3499,9 +5402,9 @@ x_25 = l_Lean_nullKind___closed__2; x_26 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); -x_27 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; +x_27 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_28 = lean_array_push(x_27, x_26); -x_29 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__6; +x_29 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; x_30 = lean_array_push(x_29, x_8); x_31 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_31, 0, x_25); @@ -3509,7 +5412,7 @@ lean_ctor_set(x_31, 1, x_30); x_32 = lean_array_push(x_28, x_31); x_33 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; x_34 = lean_array_push(x_32, x_33); -x_35 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__7; +x_35 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_36 = lean_array_push(x_34, x_35); x_37 = l_Lean_Parser_Term_explicitBinder___elambda__1___closed__2; x_38 = lean_alloc_ctor(1, 2, 0); @@ -3521,7 +5424,7 @@ lean_ctor_set(x_40, 0, x_25); lean_ctor_set(x_40, 1, x_39); x_41 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__2; x_42 = lean_array_push(x_41, x_40); -x_43 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__8; +x_43 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__5; x_44 = lean_array_push(x_42, x_43); x_45 = lean_array_push(x_44, x_10); x_46 = l_Lean_Parser_Term_forall___elambda__1___closed__2; @@ -3555,9 +5458,9 @@ x_58 = l_Lean_nullKind___closed__2; x_59 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_59, 0, x_58); lean_ctor_set(x_59, 1, x_57); -x_60 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; +x_60 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_61 = lean_array_push(x_60, x_59); -x_62 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__6; +x_62 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; x_63 = lean_array_push(x_62, x_8); x_64 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_64, 0, x_58); @@ -3565,7 +5468,7 @@ lean_ctor_set(x_64, 1, x_63); x_65 = lean_array_push(x_61, x_64); x_66 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; x_67 = lean_array_push(x_65, x_66); -x_68 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__7; +x_68 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_69 = lean_array_push(x_67, x_68); x_70 = l_Lean_Parser_Term_explicitBinder___elambda__1___closed__2; x_71 = lean_alloc_ctor(1, 2, 0); @@ -3577,7 +5480,7 @@ lean_ctor_set(x_73, 0, x_58); lean_ctor_set(x_73, 1, x_72); x_74 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__2; x_75 = lean_array_push(x_74, x_73); -x_76 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__8; +x_76 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__5; x_77 = lean_array_push(x_75, x_76); x_78 = lean_array_push(x_77, x_10); x_79 = l_Lean_Parser_Term_forall___elambda__1___closed__2; @@ -16991,7 +18894,196 @@ lean_dec(x_1); return x_5; } } -lean_object* l___private_Init_Lean_Elab_Binders_11__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* _init_l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("autoParam is not allowed at 'fun/λ' binders"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("optParam is not allowed at 'fun/λ' binders"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__4; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__5; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +lean_inc(x_3); +x_5 = l_Lean_Elab_Term_instantiateMVars(x_1, x_2, x_3, x_4); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_5, 0); +x_8 = lean_ctor_get(x_5, 1); +x_9 = l_Lean_Expr_isOptParam(x_7); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = l_Lean_Expr_isAutoParam(x_7); +lean_dec(x_7); +if (x_10 == 0) +{ +lean_object* x_11; +lean_dec(x_3); +x_11 = lean_box(0); +lean_ctor_set(x_5, 0, x_11); +return x_5; +} +else +{ +lean_object* x_12; lean_object* x_13; +lean_free_object(x_5); +x_12 = l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__3; +x_13 = l_Lean_Elab_Term_throwError___rarg(x_1, x_12, x_3, x_8); +return x_13; +} +} +else +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_free_object(x_5); +lean_dec(x_7); +x_14 = l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__6; +x_15 = l_Lean_Elab_Term_throwError___rarg(x_1, x_14, x_3, x_8); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +return x_15; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_15); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +else +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_5, 0); +x_21 = lean_ctor_get(x_5, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_5); +x_22 = l_Lean_Expr_isOptParam(x_20); +if (x_22 == 0) +{ +uint8_t x_23; +x_23 = l_Lean_Expr_isAutoParam(x_20); +lean_dec(x_20); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_3); +x_24 = lean_box(0); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_21); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; +x_26 = l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__3; +x_27 = l_Lean_Elab_Term_throwError___rarg(x_1, x_26, x_3, x_21); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_20); +x_28 = l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__6; +x_29 = l_Lean_Elab_Term_throwError___rarg(x_1, x_28, x_3, x_21); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_32 = x_29; +} else { + lean_dec_ref(x_29); + x_32 = lean_box(0); +} +if (lean_is_scalar(x_32)) { + x_33 = lean_alloc_ctor(1, 2, 0); +} else { + x_33 = x_32; +} +lean_ctor_set(x_33, 0, x_30); +lean_ctor_set(x_33, 1, x_31); +return x_33; +} +} +} +} +lean_object* l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Init_Lean_Elab_Binders_12__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) { _start: { lean_object* x_7; @@ -17059,86 +19151,125 @@ lean_inc(x_25); x_26 = lean_ctor_get(x_17, 2); lean_inc(x_26); lean_dec(x_17); +lean_inc(x_5); +lean_inc(x_3); x_27 = l_Lean_Elab_Term_isDefEq(x_1, x_3, x_25, x_5, x_18); if (lean_obj_tag(x_27) == 0) { -uint8_t x_28; -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_27, 0); -lean_dec(x_29); -x_30 = lean_expr_instantiate1(x_26, x_2); -lean_dec(x_26); -lean_ctor_set(x_7, 0, x_30); -x_31 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_31, 0, x_9); -lean_ctor_set(x_31, 1, x_10); -lean_ctor_set(x_31, 2, x_11); -lean_ctor_set(x_31, 3, x_7); -lean_ctor_set_uint8(x_31, sizeof(void*)*4, x_12); -lean_ctor_set(x_27, 0, x_31); -return x_27; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_32 = lean_ctor_get(x_27, 1); -lean_inc(x_32); +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); lean_dec(x_27); -x_33 = lean_expr_instantiate1(x_26, x_2); +x_29 = l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam(x_1, x_3, x_5, x_28); +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; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +x_32 = lean_expr_instantiate1(x_26, x_2); lean_dec(x_26); -lean_ctor_set(x_7, 0, x_33); -x_34 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_34, 0, x_9); -lean_ctor_set(x_34, 1, x_10); -lean_ctor_set(x_34, 2, x_11); -lean_ctor_set(x_34, 3, x_7); -lean_ctor_set_uint8(x_34, sizeof(void*)*4, x_12); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_32); -return x_35; +lean_ctor_set(x_7, 0, x_32); +x_33 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_33, 0, x_9); +lean_ctor_set(x_33, 1, x_10); +lean_ctor_set(x_33, 2, x_11); +lean_ctor_set(x_33, 3, x_7); +lean_ctor_set_uint8(x_33, sizeof(void*)*4, x_12); +lean_ctor_set(x_29, 0, x_33); +return x_29; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_34 = lean_ctor_get(x_29, 1); +lean_inc(x_34); +lean_dec(x_29); +x_35 = lean_expr_instantiate1(x_26, x_2); +lean_dec(x_26); +lean_ctor_set(x_7, 0, x_35); +x_36 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_36, 0, x_9); +lean_ctor_set(x_36, 1, x_10); +lean_ctor_set(x_36, 2, x_11); +lean_ctor_set(x_36, 3, x_7); +lean_ctor_set_uint8(x_36, sizeof(void*)*4, x_12); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_34); +return x_37; } } else { -uint8_t x_36; +uint8_t x_38; lean_dec(x_26); lean_free_object(x_7); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_36 = !lean_is_exclusive(x_27); -if (x_36 == 0) +x_38 = !lean_is_exclusive(x_29); +if (x_38 == 0) +{ +return x_29; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_29, 0); +x_40 = lean_ctor_get(x_29, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_29); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +} +else +{ +uint8_t x_42; +lean_dec(x_26); +lean_free_object(x_7); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_3); +x_42 = !lean_is_exclusive(x_27); +if (x_42 == 0) { return x_27; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_27, 0); -x_38 = lean_ctor_get(x_27, 1); -lean_inc(x_38); -lean_inc(x_37); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_27, 0); +x_44 = lean_ctor_get(x_27, 1); +lean_inc(x_44); +lean_inc(x_43); lean_dec(x_27); -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; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } else { -lean_object* x_40; +lean_object* x_46; lean_dec(x_17); lean_free_object(x_7); lean_dec(x_5); lean_dec(x_3); -x_40 = lean_box(0); -x_20 = x_40; +x_46 = lean_box(0); +x_20 = x_46; goto block_24; } block_24: @@ -17168,7 +19299,7 @@ return x_23; } else { -uint8_t x_41; +uint8_t x_47; lean_free_object(x_7); lean_dec(x_13); lean_dec(x_11); @@ -17176,201 +19307,241 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_5); lean_dec(x_3); -x_41 = !lean_is_exclusive(x_16); -if (x_41 == 0) +x_47 = !lean_is_exclusive(x_16); +if (x_47 == 0) { return x_16; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_16, 0); -x_43 = lean_ctor_get(x_16, 1); -lean_inc(x_43); -lean_inc(x_42); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_16, 0); +x_49 = lean_ctor_get(x_16, 1); +lean_inc(x_49); +lean_inc(x_48); lean_dec(x_16); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; } } } else { -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_7, 0); -lean_inc(x_45); +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_7, 0); +lean_inc(x_51); lean_dec(x_7); lean_inc(x_5); -x_46 = l_Lean_Elab_Term_whnfForall(x_1, x_45, x_5, x_6); -if (lean_obj_tag(x_46) == 0) +x_52 = l_Lean_Elab_Term_whnfForall(x_1, x_51, x_5, x_6); +if (lean_obj_tag(x_52) == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_49 = x_46; +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_55 = x_52; } else { - lean_dec_ref(x_46); - x_49 = lean_box(0); + lean_dec_ref(x_52); + x_55 = lean_box(0); } -if (lean_obj_tag(x_47) == 7) +if (lean_obj_tag(x_53) == 7) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -lean_dec(x_49); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec(x_55); lean_dec(x_13); -x_55 = lean_ctor_get(x_47, 1); -lean_inc(x_55); -x_56 = lean_ctor_get(x_47, 2); -lean_inc(x_56); -lean_dec(x_47); -x_57 = l_Lean_Elab_Term_isDefEq(x_1, x_3, x_55, x_5, x_48); -if (lean_obj_tag(x_57) == 0) +x_61 = lean_ctor_get(x_53, 1); +lean_inc(x_61); +x_62 = lean_ctor_get(x_53, 2); +lean_inc(x_62); +lean_dec(x_53); +lean_inc(x_5); +lean_inc(x_3); +x_63 = l_Lean_Elab_Term_isDefEq(x_1, x_3, x_61, x_5, x_54); +if (lean_obj_tag(x_63) == 0) { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_58 = lean_ctor_get(x_57, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_59 = x_57; -} else { - lean_dec_ref(x_57); - x_59 = lean_box(0); -} -x_60 = lean_expr_instantiate1(x_56, x_2); -lean_dec(x_56); -x_61 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_61, 0, x_60); -x_62 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_62, 0, x_9); -lean_ctor_set(x_62, 1, x_10); -lean_ctor_set(x_62, 2, x_11); -lean_ctor_set(x_62, 3, x_61); -lean_ctor_set_uint8(x_62, sizeof(void*)*4, x_12); -if (lean_is_scalar(x_59)) { - x_63 = lean_alloc_ctor(0, 2, 0); -} else { - x_63 = x_59; -} -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_58); -return x_63; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_56); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_64 = lean_ctor_get(x_57, 0); +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_63, 1); lean_inc(x_64); -x_65 = lean_ctor_get(x_57, 1); -lean_inc(x_65); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_66 = x_57; +lean_dec(x_63); +x_65 = l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam(x_1, x_3, x_5, x_64); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_67 = x_65; } else { - lean_dec_ref(x_57); - x_66 = lean_box(0); + lean_dec_ref(x_65); + x_67 = lean_box(0); } -if (lean_is_scalar(x_66)) { - x_67 = lean_alloc_ctor(1, 2, 0); +x_68 = lean_expr_instantiate1(x_62, x_2); +lean_dec(x_62); +x_69 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_69, 0, x_68); +x_70 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_70, 0, x_9); +lean_ctor_set(x_70, 1, x_10); +lean_ctor_set(x_70, 2, x_11); +lean_ctor_set(x_70, 3, x_69); +lean_ctor_set_uint8(x_70, sizeof(void*)*4, x_12); +if (lean_is_scalar(x_67)) { + x_71 = lean_alloc_ctor(0, 2, 0); } else { - x_67 = x_66; + x_71 = x_67; } -lean_ctor_set(x_67, 0, x_64); -lean_ctor_set(x_67, 1, x_65); -return x_67; +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_66); +return x_71; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_62); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_72 = lean_ctor_get(x_65, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_65, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_74 = x_65; +} else { + lean_dec_ref(x_65); + x_74 = lean_box(0); +} +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(1, 2, 0); +} else { + x_75 = x_74; +} +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_73); +return x_75; } } else { -lean_object* x_68; -lean_dec(x_47); +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_dec(x_62); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); lean_dec(x_5); lean_dec(x_3); -x_68 = lean_box(0); -x_50 = x_68; -goto block_54; -} -block_54: -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -lean_dec(x_50); -x_51 = lean_box(0); -if (lean_is_scalar(x_13)) { - x_52 = lean_alloc_ctor(0, 4, 1); +x_76 = lean_ctor_get(x_63, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_63, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_78 = x_63; } else { - x_52 = x_13; + lean_dec_ref(x_63); + x_78 = lean_box(0); } -lean_ctor_set(x_52, 0, x_9); -lean_ctor_set(x_52, 1, x_10); -lean_ctor_set(x_52, 2, x_11); -lean_ctor_set(x_52, 3, x_51); -lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_12); -if (lean_is_scalar(x_49)) { - x_53 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); } else { - x_53 = x_49; + x_79 = x_78; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_48); -return x_53; +lean_ctor_set(x_79, 0, x_76); +lean_ctor_set(x_79, 1, x_77); +return x_79; } } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_object* x_80; +lean_dec(x_53); +lean_dec(x_5); +lean_dec(x_3); +x_80 = lean_box(0); +x_56 = x_80; +goto block_60; +} +block_60: +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_56); +x_57 = lean_box(0); +if (lean_is_scalar(x_13)) { + x_58 = lean_alloc_ctor(0, 4, 1); +} else { + x_58 = x_13; +} +lean_ctor_set(x_58, 0, x_9); +lean_ctor_set(x_58, 1, x_10); +lean_ctor_set(x_58, 2, x_11); +lean_ctor_set(x_58, 3, x_57); +lean_ctor_set_uint8(x_58, sizeof(void*)*4, x_12); +if (lean_is_scalar(x_55)) { + x_59 = lean_alloc_ctor(0, 2, 0); +} else { + x_59 = x_55; +} +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_54); +return x_59; +} +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_dec(x_13); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_5); lean_dec(x_3); -x_69 = lean_ctor_get(x_46, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_46, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_71 = x_46; +x_81 = lean_ctor_get(x_52, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_52, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_83 = x_52; } else { - lean_dec_ref(x_46); - x_71 = lean_box(0); + lean_dec_ref(x_52); + x_83 = lean_box(0); } -if (lean_is_scalar(x_71)) { - x_72 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_83)) { + x_84 = lean_alloc_ctor(1, 2, 0); } else { - x_72 = x_71; + x_84 = x_83; } -lean_ctor_set(x_72, 0, x_69); -lean_ctor_set(x_72, 1, x_70); -return x_72; +lean_ctor_set(x_84, 0, x_81); +lean_ctor_set(x_84, 1, x_82); +return x_84; } } } } } -lean_object* l___private_Init_Lean_Elab_Binders_11__propagateExpectedType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Init_Lean_Elab_Binders_12__propagateExpectedType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l___private_Init_Lean_Elab_Binders_11__propagateExpectedType(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Init_Lean_Elab_Binders_12__propagateExpectedType(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); lean_dec(x_1); return x_7; } } -lean_object* l___private_Init_Lean_Elab_Binders_12__elabFunBinderViews___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_Binders_13__elabFunBinderViews___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -17434,78 +19605,78 @@ lean_dec(x_11); lean_dec(x_10); if (lean_obj_tag(x_23) == 0) { -lean_object* x_202; lean_object* x_203; -x_202 = lean_ctor_get(x_23, 0); -lean_inc(x_202); -x_203 = lean_ctor_get(x_23, 1); -lean_inc(x_203); +lean_object* x_208; lean_object* x_209; +x_208 = lean_ctor_get(x_23, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_23, 1); +lean_inc(x_209); lean_dec(x_23); x_24 = x_3; -x_25 = x_202; -x_26 = x_203; -goto block_201; +x_25 = x_208; +x_26 = x_209; +goto block_207; } else { -uint8_t x_204; +uint8_t x_210; lean_dec(x_4); lean_dec(x_17); lean_dec(x_9); lean_dec(x_3); lean_dec(x_2); -x_204 = !lean_is_exclusive(x_23); -if (x_204 == 0) +x_210 = !lean_is_exclusive(x_23); +if (x_210 == 0) { return x_23; } else { -lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_205 = lean_ctor_get(x_23, 0); -x_206 = lean_ctor_get(x_23, 1); -lean_inc(x_206); -lean_inc(x_205); +lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_211 = lean_ctor_get(x_23, 0); +x_212 = lean_ctor_get(x_23, 1); +lean_inc(x_212); +lean_inc(x_211); lean_dec(x_23); -x_207 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_207, 0, x_205); -lean_ctor_set(x_207, 1, x_206); -return x_207; +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_211); +lean_ctor_set(x_213, 1, x_212); +return x_213; } } } else { -uint8_t x_208; -x_208 = !lean_is_exclusive(x_3); -if (x_208 == 0) +uint8_t x_214; +x_214 = !lean_is_exclusive(x_3); +if (x_214 == 0) { -lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; -x_209 = lean_ctor_get(x_3, 3); -lean_dec(x_209); -x_210 = lean_ctor_get(x_3, 2); -lean_dec(x_210); -x_211 = lean_ctor_get(x_3, 1); -lean_dec(x_211); -x_212 = lean_ctor_get(x_3, 0); -lean_dec(x_212); +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_215 = lean_ctor_get(x_3, 3); +lean_dec(x_215); +x_216 = lean_ctor_get(x_3, 2); +lean_dec(x_216); +x_217 = lean_ctor_get(x_3, 1); +lean_dec(x_217); +x_218 = lean_ctor_get(x_3, 0); +lean_dec(x_218); if (lean_obj_tag(x_23) == 0) { -lean_object* x_213; lean_object* x_214; uint8_t x_215; -x_213 = lean_ctor_get(x_23, 0); -lean_inc(x_213); -x_214 = lean_ctor_get(x_23, 1); -lean_inc(x_214); +lean_object* x_219; lean_object* x_220; uint8_t x_221; +x_219 = lean_ctor_get(x_23, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_23, 1); +lean_inc(x_220); lean_dec(x_23); -x_215 = 1; -lean_ctor_set_uint8(x_3, sizeof(void*)*4, x_215); +x_221 = 1; +lean_ctor_set_uint8(x_3, sizeof(void*)*4, x_221); x_24 = x_3; -x_25 = x_213; -x_26 = x_214; -goto block_201; +x_25 = x_219; +x_26 = x_220; +goto block_207; } else { -uint8_t x_216; +uint8_t x_222; lean_free_object(x_3); lean_dec(x_4); lean_dec(x_17); @@ -17515,23 +19686,23 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_2); -x_216 = !lean_is_exclusive(x_23); -if (x_216 == 0) +x_222 = !lean_is_exclusive(x_23); +if (x_222 == 0) { return x_23; } else { -lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_217 = lean_ctor_get(x_23, 0); -x_218 = lean_ctor_get(x_23, 1); -lean_inc(x_218); -lean_inc(x_217); +lean_object* x_223; lean_object* x_224; lean_object* x_225; +x_223 = lean_ctor_get(x_23, 0); +x_224 = lean_ctor_get(x_23, 1); +lean_inc(x_224); +lean_inc(x_223); lean_dec(x_23); -x_219 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_219, 0, x_217); -lean_ctor_set(x_219, 1, x_218); -return x_219; +x_225 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_225, 0, x_223); +lean_ctor_set(x_225, 1, x_224); +return x_225; } } } @@ -17540,27 +19711,27 @@ else lean_dec(x_3); if (lean_obj_tag(x_23) == 0) { -lean_object* x_220; lean_object* x_221; uint8_t x_222; lean_object* x_223; -x_220 = lean_ctor_get(x_23, 0); -lean_inc(x_220); -x_221 = lean_ctor_get(x_23, 1); -lean_inc(x_221); +lean_object* x_226; lean_object* x_227; uint8_t x_228; lean_object* x_229; +x_226 = lean_ctor_get(x_23, 0); +lean_inc(x_226); +x_227 = lean_ctor_get(x_23, 1); +lean_inc(x_227); lean_dec(x_23); -x_222 = 1; -x_223 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_223, 0, x_10); -lean_ctor_set(x_223, 1, x_11); -lean_ctor_set(x_223, 2, x_12); -lean_ctor_set(x_223, 3, x_13); -lean_ctor_set_uint8(x_223, sizeof(void*)*4, x_222); -x_24 = x_223; -x_25 = x_220; -x_26 = x_221; -goto block_201; +x_228 = 1; +x_229 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_229, 0, x_10); +lean_ctor_set(x_229, 1, x_11); +lean_ctor_set(x_229, 2, x_12); +lean_ctor_set(x_229, 3, x_13); +lean_ctor_set_uint8(x_229, sizeof(void*)*4, x_228); +x_24 = x_229; +x_25 = x_226; +x_26 = x_227; +goto block_207; } else { -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_dec(x_4); lean_dec(x_17); lean_dec(x_13); @@ -17569,882 +19740,920 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_2); -x_224 = lean_ctor_get(x_23, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_23, 1); -lean_inc(x_225); +x_230 = lean_ctor_get(x_23, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_23, 1); +lean_inc(x_231); if (lean_is_exclusive(x_23)) { lean_ctor_release(x_23, 0); lean_ctor_release(x_23, 1); - x_226 = x_23; + x_232 = x_23; } else { lean_dec_ref(x_23); - x_226 = lean_box(0); + x_232 = lean_box(0); } -if (lean_is_scalar(x_226)) { - x_227 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_232)) { + x_233 = lean_alloc_ctor(1, 2, 0); } else { - x_227 = x_226; + x_233 = x_232; } -lean_ctor_set(x_227, 0, x_224); -lean_ctor_set(x_227, 1, x_225); -return x_227; +lean_ctor_set(x_233, 0, x_230); +lean_ctor_set(x_233, 1, x_231); +return x_233; } } } -block_201: +block_207: { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_27 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_26); -x_28 = lean_ctor_get(x_27, 0); +lean_object* x_27; +lean_inc(x_4); +lean_inc(x_25); +x_27 = l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam(x_17, x_25, x_4, x_26); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_28 = lean_ctor_get(x_27, 1); lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); lean_dec(x_27); -lean_inc(x_28); -x_30 = l_Lean_mkFVar(x_28); -x_31 = !lean_is_exclusive(x_24); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; -x_32 = lean_ctor_get(x_24, 0); -x_33 = lean_ctor_get(x_24, 1); -x_34 = lean_ctor_get(x_24, 2); -x_35 = lean_ctor_get(x_24, 3); -x_36 = lean_ctor_get_uint8(x_24, sizeof(void*)*4); +x_29 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_28); +x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); -x_37 = lean_array_push(x_32, x_30); -if (x_36 == 0) +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +lean_inc(x_30); +x_32 = l_Lean_mkFVar(x_30); +x_33 = !lean_is_exclusive(x_24); +if (x_33 == 0) { -lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_38 = lean_ctor_get(x_9, 0); -lean_inc(x_38); +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; +x_34 = lean_ctor_get(x_24, 0); +x_35 = lean_ctor_get(x_24, 1); +x_36 = lean_ctor_get(x_24, 2); +x_37 = lean_ctor_get(x_24, 3); +x_38 = lean_ctor_get_uint8(x_24, sizeof(void*)*4); +lean_inc(x_32); +x_39 = lean_array_push(x_34, x_32); +if (x_38 == 0) +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_40 = lean_ctor_get(x_9, 0); +lean_inc(x_40); lean_dec(x_9); lean_inc(x_25); -x_39 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_39, 0, x_25); -x_40 = 0; -x_41 = lean_box(0); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_25); +x_42 = 0; +x_43 = lean_box(0); lean_inc(x_4); -x_42 = l_Lean_Elab_Term_mkFreshExprMVar(x_38, x_39, x_40, x_41, x_4, x_29); -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = l_Lean_Syntax_getId(x_38); -lean_dec(x_38); -lean_inc(x_25); -x_46 = lean_local_ctx_mk_let_decl(x_33, x_28, x_45, x_25, x_43); -lean_inc(x_35); -lean_inc(x_34); +x_44 = l_Lean_Elab_Term_mkFreshExprMVar(x_40, x_41, x_42, x_43, x_4, x_31); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); lean_inc(x_46); +lean_dec(x_44); +x_47 = l_Lean_Syntax_getId(x_40); +lean_dec(x_40); +lean_inc(x_25); +x_48 = lean_local_ctx_mk_let_decl(x_35, x_30, x_47, x_25, x_45); lean_inc(x_37); -lean_ctor_set(x_24, 1, x_46); -lean_ctor_set(x_24, 0, x_37); -lean_inc(x_4); -x_47 = l_Lean_Elab_Term_isClass(x_17, x_25, x_4, x_44); -lean_dec(x_17); -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_48; -x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_36); lean_inc(x_48); -if (lean_obj_tag(x_48) == 0) +lean_inc(x_39); +lean_ctor_set(x_24, 1, x_48); +lean_ctor_set(x_24, 0, x_39); +lean_inc(x_4); +x_49 = l_Lean_Elab_Term_isClass(x_17, x_25, x_4, x_46); +lean_dec(x_17); +if (lean_obj_tag(x_49) == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -lean_dec(x_46); -lean_dec(x_37); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_30); -x_49 = lean_ctor_get(x_47, 1); -lean_inc(x_49); -lean_dec(x_47); -x_50 = lean_unsigned_to_nat(1u); -x_51 = lean_nat_add(x_2, x_50); -lean_dec(x_2); -x_2 = x_51; -x_3 = x_24; -x_5 = x_49; -goto _start; -} -else +lean_object* x_50; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +if (lean_obj_tag(x_50) == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -lean_dec(x_24); -x_53 = lean_ctor_get(x_47, 1); -lean_inc(x_53); -lean_dec(x_47); -x_54 = lean_ctor_get(x_48, 0); -lean_inc(x_54); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_dec(x_48); -x_55 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_53); -x_56 = lean_ctor_get(x_55, 1); -lean_inc(x_56); -lean_dec(x_55); -x_57 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_57, 0, x_54); -lean_ctor_set(x_57, 1, x_30); -x_58 = lean_array_push(x_34, x_57); -x_59 = lean_unsigned_to_nat(1u); -x_60 = lean_nat_add(x_2, x_59); -lean_dec(x_2); -x_61 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_61, 0, x_37); -lean_ctor_set(x_61, 1, x_46); -lean_ctor_set(x_61, 2, x_58); -lean_ctor_set(x_61, 3, x_35); -lean_ctor_set_uint8(x_61, sizeof(void*)*4, x_36); -x_2 = x_60; -x_3 = x_61; -x_5 = x_56; -goto _start; -} -} -else -{ -uint8_t x_63; -lean_dec(x_24); -lean_dec(x_46); +lean_dec(x_39); lean_dec(x_37); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_30); -lean_dec(x_4); +lean_dec(x_36); +lean_dec(x_32); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_52 = lean_unsigned_to_nat(1u); +x_53 = lean_nat_add(x_2, x_52); lean_dec(x_2); -x_63 = !lean_is_exclusive(x_47); -if (x_63 == 0) -{ -return x_47; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_47, 0); -x_65 = lean_ctor_get(x_47, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_47); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -return x_66; -} -} -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -lean_inc(x_33); -lean_ctor_set(x_24, 0, x_37); -x_67 = lean_ctor_get(x_9, 0); -lean_inc(x_67); -lean_dec(x_9); -x_68 = l_Lean_Syntax_getId(x_67); -lean_inc(x_25); -x_69 = lean_local_ctx_mk_local_decl(x_33, x_28, x_68, x_25, x_14); -lean_inc(x_4); -lean_inc(x_25); -x_70 = l___private_Init_Lean_Elab_Binders_11__propagateExpectedType(x_67, x_30, x_25, x_24, x_4, x_29); -lean_dec(x_67); -if (lean_obj_tag(x_70) == 0) -{ -lean_object* x_71; lean_object* x_72; uint8_t x_73; -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; lean_object* x_78; lean_object* x_79; -x_74 = lean_ctor_get(x_71, 0); -x_75 = lean_ctor_get(x_71, 2); -x_76 = lean_ctor_get(x_71, 3); -x_77 = lean_ctor_get_uint8(x_71, sizeof(void*)*4); -x_78 = lean_ctor_get(x_71, 1); -lean_dec(x_78); -lean_inc(x_76); -lean_inc(x_75); -lean_inc(x_69); -lean_inc(x_74); -lean_ctor_set(x_71, 1, x_69); -lean_inc(x_4); -x_79 = l_Lean_Elab_Term_isClass(x_17, x_25, x_4, x_72); -lean_dec(x_17); -if (lean_obj_tag(x_79) == 0) -{ -lean_object* x_80; -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -if (lean_obj_tag(x_80) == 0) -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_74); -lean_dec(x_69); -lean_dec(x_30); -x_81 = lean_ctor_get(x_79, 1); -lean_inc(x_81); -lean_dec(x_79); -x_82 = lean_unsigned_to_nat(1u); -x_83 = lean_nat_add(x_2, x_82); -lean_dec(x_2); -x_2 = x_83; -x_3 = x_71; -x_5 = x_81; +x_2 = x_53; +x_3 = x_24; +x_5 = x_51; goto _start; } 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_dec(x_71); -x_85 = lean_ctor_get(x_79, 1); -lean_inc(x_85); -lean_dec(x_79); -x_86 = lean_ctor_get(x_80, 0); -lean_inc(x_86); -lean_dec(x_80); -x_87 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_85); -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -lean_dec(x_87); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_86); -lean_ctor_set(x_89, 1, x_30); -x_90 = lean_array_push(x_75, x_89); -x_91 = lean_unsigned_to_nat(1u); -x_92 = lean_nat_add(x_2, x_91); -lean_dec(x_2); -x_93 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_93, 0, x_74); -lean_ctor_set(x_93, 1, x_69); -lean_ctor_set(x_93, 2, x_90); -lean_ctor_set(x_93, 3, x_76); -lean_ctor_set_uint8(x_93, sizeof(void*)*4, x_77); -x_2 = x_92; -x_3 = x_93; -x_5 = x_88; -goto _start; -} -} -else -{ -uint8_t x_95; -lean_dec(x_71); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_74); -lean_dec(x_69); -lean_dec(x_30); -lean_dec(x_4); -lean_dec(x_2); -x_95 = !lean_is_exclusive(x_79); -if (x_95 == 0) -{ -return x_79; -} -else -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_79, 0); -x_97 = lean_ctor_get(x_79, 1); -lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_79); -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set(x_98, 1, x_97); -return x_98; -} -} -} -else -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; lean_object* x_104; -x_99 = lean_ctor_get(x_71, 0); -x_100 = lean_ctor_get(x_71, 2); -x_101 = lean_ctor_get(x_71, 3); -x_102 = lean_ctor_get_uint8(x_71, sizeof(void*)*4); -lean_inc(x_101); -lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_71); -lean_inc(x_101); -lean_inc(x_100); -lean_inc(x_69); -lean_inc(x_99); -x_103 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_103, 0, x_99); -lean_ctor_set(x_103, 1, x_69); -lean_ctor_set(x_103, 2, x_100); -lean_ctor_set(x_103, 3, x_101); -lean_ctor_set_uint8(x_103, sizeof(void*)*4, x_102); -lean_inc(x_4); -x_104 = l_Lean_Elab_Term_isClass(x_17, x_25, x_4, x_72); -lean_dec(x_17); -if (lean_obj_tag(x_104) == 0) -{ -lean_object* x_105; -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -if (lean_obj_tag(x_105) == 0) -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_101); -lean_dec(x_100); -lean_dec(x_99); -lean_dec(x_69); -lean_dec(x_30); -x_106 = lean_ctor_get(x_104, 1); -lean_inc(x_106); -lean_dec(x_104); -x_107 = lean_unsigned_to_nat(1u); -x_108 = lean_nat_add(x_2, x_107); -lean_dec(x_2); -x_2 = x_108; -x_3 = x_103; -x_5 = x_106; -goto _start; -} -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -lean_dec(x_103); -x_110 = lean_ctor_get(x_104, 1); -lean_inc(x_110); -lean_dec(x_104); -x_111 = lean_ctor_get(x_105, 0); -lean_inc(x_111); -lean_dec(x_105); -x_112 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_110); -x_113 = lean_ctor_get(x_112, 1); -lean_inc(x_113); -lean_dec(x_112); -x_114 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_114, 0, x_111); -lean_ctor_set(x_114, 1, x_30); -x_115 = lean_array_push(x_100, x_114); -x_116 = lean_unsigned_to_nat(1u); -x_117 = lean_nat_add(x_2, x_116); -lean_dec(x_2); -x_118 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_118, 0, x_99); -lean_ctor_set(x_118, 1, x_69); -lean_ctor_set(x_118, 2, x_115); -lean_ctor_set(x_118, 3, x_101); -lean_ctor_set_uint8(x_118, sizeof(void*)*4, x_102); -x_2 = x_117; -x_3 = x_118; -x_5 = x_113; -goto _start; -} -} -else -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -lean_dec(x_103); -lean_dec(x_101); -lean_dec(x_100); -lean_dec(x_99); -lean_dec(x_69); -lean_dec(x_30); -lean_dec(x_4); -lean_dec(x_2); -x_120 = lean_ctor_get(x_104, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_104, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_122 = x_104; -} else { - lean_dec_ref(x_104); - x_122 = lean_box(0); -} -if (lean_is_scalar(x_122)) { - x_123 = lean_alloc_ctor(1, 2, 0); -} else { - x_123 = x_122; -} -lean_ctor_set(x_123, 0, x_120); -lean_ctor_set(x_123, 1, x_121); -return x_123; -} -} -} -else -{ -uint8_t x_124; -lean_dec(x_69); -lean_dec(x_30); -lean_dec(x_25); -lean_dec(x_4); -lean_dec(x_17); -lean_dec(x_2); -x_124 = !lean_is_exclusive(x_70); -if (x_124 == 0) -{ -return x_70; -} -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_70, 0); -x_126 = lean_ctor_get(x_70, 1); -lean_inc(x_126); -lean_inc(x_125); -lean_dec(x_70); -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_126); -return x_127; -} -} -} -} -else -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; -x_128 = lean_ctor_get(x_24, 0); -x_129 = lean_ctor_get(x_24, 1); -x_130 = lean_ctor_get(x_24, 2); -x_131 = lean_ctor_get(x_24, 3); -x_132 = lean_ctor_get_uint8(x_24, sizeof(void*)*4); -lean_inc(x_131); -lean_inc(x_130); -lean_inc(x_129); -lean_inc(x_128); +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_dec(x_24); -lean_inc(x_30); -x_133 = lean_array_push(x_128, x_30); -if (x_132 == 0) -{ -lean_object* x_134; lean_object* x_135; uint8_t x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_134 = lean_ctor_get(x_9, 0); -lean_inc(x_134); -lean_dec(x_9); -lean_inc(x_25); -x_135 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_135, 0, x_25); -x_136 = 0; -x_137 = lean_box(0); -lean_inc(x_4); -x_138 = l_Lean_Elab_Term_mkFreshExprMVar(x_134, x_135, x_136, x_137, x_4, x_29); -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_141 = l_Lean_Syntax_getId(x_134); -lean_dec(x_134); -lean_inc(x_25); -x_142 = lean_local_ctx_mk_let_decl(x_129, x_28, x_141, x_25, x_139); -lean_inc(x_131); -lean_inc(x_130); -lean_inc(x_142); -lean_inc(x_133); -x_143 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_143, 0, x_133); -lean_ctor_set(x_143, 1, x_142); -lean_ctor_set(x_143, 2, x_130); -lean_ctor_set(x_143, 3, x_131); -lean_ctor_set_uint8(x_143, sizeof(void*)*4, x_132); -lean_inc(x_4); -x_144 = l_Lean_Elab_Term_isClass(x_17, x_25, x_4, x_140); -lean_dec(x_17); -if (lean_obj_tag(x_144) == 0) -{ -lean_object* x_145; -x_145 = lean_ctor_get(x_144, 0); -lean_inc(x_145); -if (lean_obj_tag(x_145) == 0) -{ -lean_object* x_146; lean_object* x_147; lean_object* x_148; -lean_dec(x_142); -lean_dec(x_133); -lean_dec(x_131); -lean_dec(x_130); -lean_dec(x_30); -x_146 = lean_ctor_get(x_144, 1); -lean_inc(x_146); -lean_dec(x_144); -x_147 = lean_unsigned_to_nat(1u); -x_148 = lean_nat_add(x_2, x_147); +x_55 = lean_ctor_get(x_49, 1); +lean_inc(x_55); +lean_dec(x_49); +x_56 = lean_ctor_get(x_50, 0); +lean_inc(x_56); +lean_dec(x_50); +x_57 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_55); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +lean_dec(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_32); +x_60 = lean_array_push(x_36, x_59); +x_61 = lean_unsigned_to_nat(1u); +x_62 = lean_nat_add(x_2, x_61); lean_dec(x_2); -x_2 = x_148; -x_3 = x_143; -x_5 = x_146; -goto _start; -} -else -{ -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_dec(x_143); -x_150 = lean_ctor_get(x_144, 1); -lean_inc(x_150); -lean_dec(x_144); -x_151 = lean_ctor_get(x_145, 0); -lean_inc(x_151); -lean_dec(x_145); -x_152 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_150); -x_153 = lean_ctor_get(x_152, 1); -lean_inc(x_153); -lean_dec(x_152); -x_154 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_154, 0, x_151); -lean_ctor_set(x_154, 1, x_30); -x_155 = lean_array_push(x_130, x_154); -x_156 = lean_unsigned_to_nat(1u); -x_157 = lean_nat_add(x_2, x_156); -lean_dec(x_2); -x_158 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_158, 0, x_133); -lean_ctor_set(x_158, 1, x_142); -lean_ctor_set(x_158, 2, x_155); -lean_ctor_set(x_158, 3, x_131); -lean_ctor_set_uint8(x_158, sizeof(void*)*4, x_132); -x_2 = x_157; -x_3 = x_158; -x_5 = x_153; +x_63 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_63, 0, x_39); +lean_ctor_set(x_63, 1, x_48); +lean_ctor_set(x_63, 2, x_60); +lean_ctor_set(x_63, 3, x_37); +lean_ctor_set_uint8(x_63, sizeof(void*)*4, x_38); +x_2 = x_62; +x_3 = x_63; +x_5 = x_58; goto _start; } } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; -lean_dec(x_143); -lean_dec(x_142); -lean_dec(x_133); -lean_dec(x_131); -lean_dec(x_130); -lean_dec(x_30); +uint8_t x_65; +lean_dec(x_24); +lean_dec(x_48); +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_36); +lean_dec(x_32); lean_dec(x_4); lean_dec(x_2); -x_160 = lean_ctor_get(x_144, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_144, 1); -lean_inc(x_161); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_162 = x_144; -} else { - lean_dec_ref(x_144); - x_162 = lean_box(0); +x_65 = !lean_is_exclusive(x_49); +if (x_65 == 0) +{ +return x_49; } -if (lean_is_scalar(x_162)) { - x_163 = lean_alloc_ctor(1, 2, 0); -} else { - x_163 = x_162; +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_49, 0); +x_67 = lean_ctor_get(x_49, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_49); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; } -lean_ctor_set(x_163, 0, x_160); -lean_ctor_set(x_163, 1, x_161); -return x_163; } } else { -lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -lean_inc(x_129); -x_164 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_164, 0, x_133); -lean_ctor_set(x_164, 1, x_129); -lean_ctor_set(x_164, 2, x_130); -lean_ctor_set(x_164, 3, x_131); -lean_ctor_set_uint8(x_164, sizeof(void*)*4, x_132); -x_165 = lean_ctor_get(x_9, 0); -lean_inc(x_165); +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_inc(x_35); +lean_ctor_set(x_24, 0, x_39); +x_69 = lean_ctor_get(x_9, 0); +lean_inc(x_69); lean_dec(x_9); -x_166 = l_Lean_Syntax_getId(x_165); +x_70 = l_Lean_Syntax_getId(x_69); lean_inc(x_25); -x_167 = lean_local_ctx_mk_local_decl(x_129, x_28, x_166, x_25, x_14); +x_71 = lean_local_ctx_mk_local_decl(x_35, x_30, x_70, x_25, x_14); lean_inc(x_4); lean_inc(x_25); -x_168 = l___private_Init_Lean_Elab_Binders_11__propagateExpectedType(x_165, x_30, x_25, x_164, x_4, x_29); -lean_dec(x_165); -if (lean_obj_tag(x_168) == 0) +x_72 = l___private_Init_Lean_Elab_Binders_12__propagateExpectedType(x_69, x_32, x_25, x_24, x_4, x_31); +lean_dec(x_69); +if (lean_obj_tag(x_72) == 0) { -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; -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_ctor_get(x_169, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_169, 2); -lean_inc(x_172); -x_173 = lean_ctor_get(x_169, 3); -lean_inc(x_173); -x_174 = lean_ctor_get_uint8(x_169, sizeof(void*)*4); -if (lean_is_exclusive(x_169)) { - lean_ctor_release(x_169, 0); - lean_ctor_release(x_169, 1); - lean_ctor_release(x_169, 2); - lean_ctor_release(x_169, 3); - x_175 = x_169; -} else { - lean_dec_ref(x_169); - x_175 = lean_box(0); -} -lean_inc(x_173); -lean_inc(x_172); -lean_inc(x_167); -lean_inc(x_171); -if (lean_is_scalar(x_175)) { - x_176 = lean_alloc_ctor(0, 4, 1); -} else { - x_176 = x_175; -} -lean_ctor_set(x_176, 0, x_171); -lean_ctor_set(x_176, 1, x_167); -lean_ctor_set(x_176, 2, x_172); -lean_ctor_set(x_176, 3, x_173); -lean_ctor_set_uint8(x_176, sizeof(void*)*4, x_174); +lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = !lean_is_exclusive(x_73); +if (x_75 == 0) +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; lean_object* x_80; lean_object* x_81; +x_76 = lean_ctor_get(x_73, 0); +x_77 = lean_ctor_get(x_73, 2); +x_78 = lean_ctor_get(x_73, 3); +x_79 = lean_ctor_get_uint8(x_73, sizeof(void*)*4); +x_80 = lean_ctor_get(x_73, 1); +lean_dec(x_80); +lean_inc(x_78); +lean_inc(x_77); +lean_inc(x_71); +lean_inc(x_76); +lean_ctor_set(x_73, 1, x_71); lean_inc(x_4); -x_177 = l_Lean_Elab_Term_isClass(x_17, x_25, x_4, x_170); +x_81 = l_Lean_Elab_Term_isClass(x_17, x_25, x_4, x_74); lean_dec(x_17); -if (lean_obj_tag(x_177) == 0) +if (lean_obj_tag(x_81) == 0) { -lean_object* x_178; -x_178 = lean_ctor_get(x_177, 0); -lean_inc(x_178); -if (lean_obj_tag(x_178) == 0) +lean_object* x_82; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +if (lean_obj_tag(x_82) == 0) { -lean_object* x_179; lean_object* x_180; lean_object* x_181; -lean_dec(x_173); -lean_dec(x_172); -lean_dec(x_171); -lean_dec(x_167); -lean_dec(x_30); -x_179 = lean_ctor_get(x_177, 1); -lean_inc(x_179); -lean_dec(x_177); -x_180 = lean_unsigned_to_nat(1u); -x_181 = lean_nat_add(x_2, x_180); +lean_object* x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_78); +lean_dec(x_77); +lean_dec(x_76); +lean_dec(x_71); +lean_dec(x_32); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = lean_unsigned_to_nat(1u); +x_85 = lean_nat_add(x_2, x_84); lean_dec(x_2); -x_2 = x_181; -x_3 = x_176; -x_5 = x_179; +x_2 = x_85; +x_3 = x_73; +x_5 = x_83; goto _start; } else { -lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; -lean_dec(x_176); -x_183 = lean_ctor_get(x_177, 1); -lean_inc(x_183); -lean_dec(x_177); -x_184 = lean_ctor_get(x_178, 0); -lean_inc(x_184); -lean_dec(x_178); -x_185 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_183); -x_186 = lean_ctor_get(x_185, 1); -lean_inc(x_186); -lean_dec(x_185); -x_187 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_187, 0, x_184); -lean_ctor_set(x_187, 1, x_30); -x_188 = lean_array_push(x_172, x_187); -x_189 = lean_unsigned_to_nat(1u); -x_190 = lean_nat_add(x_2, x_189); +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_dec(x_73); +x_87 = lean_ctor_get(x_81, 1); +lean_inc(x_87); +lean_dec(x_81); +x_88 = lean_ctor_get(x_82, 0); +lean_inc(x_88); +lean_dec(x_82); +x_89 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_87); +x_90 = lean_ctor_get(x_89, 1); +lean_inc(x_90); +lean_dec(x_89); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_88); +lean_ctor_set(x_91, 1, x_32); +x_92 = lean_array_push(x_77, x_91); +x_93 = lean_unsigned_to_nat(1u); +x_94 = lean_nat_add(x_2, x_93); lean_dec(x_2); -x_191 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_191, 0, x_171); -lean_ctor_set(x_191, 1, x_167); -lean_ctor_set(x_191, 2, x_188); -lean_ctor_set(x_191, 3, x_173); -lean_ctor_set_uint8(x_191, sizeof(void*)*4, x_174); -x_2 = x_190; -x_3 = x_191; -x_5 = x_186; +x_95 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_95, 0, x_76); +lean_ctor_set(x_95, 1, x_71); +lean_ctor_set(x_95, 2, x_92); +lean_ctor_set(x_95, 3, x_78); +lean_ctor_set_uint8(x_95, sizeof(void*)*4, x_79); +x_2 = x_94; +x_3 = x_95; +x_5 = x_90; goto _start; } } else { -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; -lean_dec(x_176); -lean_dec(x_173); -lean_dec(x_172); -lean_dec(x_171); -lean_dec(x_167); -lean_dec(x_30); +uint8_t x_97; +lean_dec(x_73); +lean_dec(x_78); +lean_dec(x_77); +lean_dec(x_76); +lean_dec(x_71); +lean_dec(x_32); lean_dec(x_4); lean_dec(x_2); -x_193 = lean_ctor_get(x_177, 0); -lean_inc(x_193); -x_194 = lean_ctor_get(x_177, 1); -lean_inc(x_194); -if (lean_is_exclusive(x_177)) { - lean_ctor_release(x_177, 0); - lean_ctor_release(x_177, 1); - x_195 = x_177; -} else { - lean_dec_ref(x_177); - x_195 = lean_box(0); +x_97 = !lean_is_exclusive(x_81); +if (x_97 == 0) +{ +return x_81; } -if (lean_is_scalar(x_195)) { - x_196 = lean_alloc_ctor(1, 2, 0); -} else { - x_196 = x_195; +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_81, 0); +x_99 = lean_ctor_get(x_81, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_81); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +return x_100; } -lean_ctor_set(x_196, 0, x_193); -lean_ctor_set(x_196, 1, x_194); -return x_196; } } else { -lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; -lean_dec(x_167); -lean_dec(x_30); +lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; lean_object* x_106; +x_101 = lean_ctor_get(x_73, 0); +x_102 = lean_ctor_get(x_73, 2); +x_103 = lean_ctor_get(x_73, 3); +x_104 = lean_ctor_get_uint8(x_73, sizeof(void*)*4); +lean_inc(x_103); +lean_inc(x_102); +lean_inc(x_101); +lean_dec(x_73); +lean_inc(x_103); +lean_inc(x_102); +lean_inc(x_71); +lean_inc(x_101); +x_105 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_105, 0, x_101); +lean_ctor_set(x_105, 1, x_71); +lean_ctor_set(x_105, 2, x_102); +lean_ctor_set(x_105, 3, x_103); +lean_ctor_set_uint8(x_105, sizeof(void*)*4, x_104); +lean_inc(x_4); +x_106 = l_Lean_Elab_Term_isClass(x_17, x_25, x_4, x_74); +lean_dec(x_17); +if (lean_obj_tag(x_106) == 0) +{ +lean_object* x_107; +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +if (lean_obj_tag(x_107) == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; +lean_dec(x_103); +lean_dec(x_102); +lean_dec(x_101); +lean_dec(x_71); +lean_dec(x_32); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +lean_dec(x_106); +x_109 = lean_unsigned_to_nat(1u); +x_110 = lean_nat_add(x_2, x_109); +lean_dec(x_2); +x_2 = x_110; +x_3 = x_105; +x_5 = x_108; +goto _start; +} +else +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +lean_dec(x_105); +x_112 = lean_ctor_get(x_106, 1); +lean_inc(x_112); +lean_dec(x_106); +x_113 = lean_ctor_get(x_107, 0); +lean_inc(x_113); +lean_dec(x_107); +x_114 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_112); +x_115 = lean_ctor_get(x_114, 1); +lean_inc(x_115); +lean_dec(x_114); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_113); +lean_ctor_set(x_116, 1, x_32); +x_117 = lean_array_push(x_102, x_116); +x_118 = lean_unsigned_to_nat(1u); +x_119 = lean_nat_add(x_2, x_118); +lean_dec(x_2); +x_120 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_120, 0, x_101); +lean_ctor_set(x_120, 1, x_71); +lean_ctor_set(x_120, 2, x_117); +lean_ctor_set(x_120, 3, x_103); +lean_ctor_set_uint8(x_120, sizeof(void*)*4, x_104); +x_2 = x_119; +x_3 = x_120; +x_5 = x_115; +goto _start; +} +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +lean_dec(x_105); +lean_dec(x_103); +lean_dec(x_102); +lean_dec(x_101); +lean_dec(x_71); +lean_dec(x_32); +lean_dec(x_4); +lean_dec(x_2); +x_122 = lean_ctor_get(x_106, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_106, 1); +lean_inc(x_123); +if (lean_is_exclusive(x_106)) { + lean_ctor_release(x_106, 0); + lean_ctor_release(x_106, 1); + x_124 = x_106; +} else { + lean_dec_ref(x_106); + x_124 = lean_box(0); +} +if (lean_is_scalar(x_124)) { + x_125 = lean_alloc_ctor(1, 2, 0); +} else { + x_125 = x_124; +} +lean_ctor_set(x_125, 0, x_122); +lean_ctor_set(x_125, 1, x_123); +return x_125; +} +} +} +else +{ +uint8_t x_126; +lean_dec(x_71); +lean_dec(x_32); lean_dec(x_25); lean_dec(x_4); lean_dec(x_17); lean_dec(x_2); -x_197 = lean_ctor_get(x_168, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_168, 1); -lean_inc(x_198); -if (lean_is_exclusive(x_168)) { - lean_ctor_release(x_168, 0); - lean_ctor_release(x_168, 1); - x_199 = x_168; -} else { - lean_dec_ref(x_168); - x_199 = lean_box(0); -} -if (lean_is_scalar(x_199)) { - x_200 = lean_alloc_ctor(1, 2, 0); -} else { - x_200 = x_199; -} -lean_ctor_set(x_200, 0, x_197); -lean_ctor_set(x_200, 1, x_198); -return x_200; +x_126 = !lean_is_exclusive(x_72); +if (x_126 == 0) +{ +return x_72; } +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_127 = lean_ctor_get(x_72, 0); +x_128 = lean_ctor_get(x_72, 1); +lean_inc(x_128); +lean_inc(x_127); +lean_dec(x_72); +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_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_16, 0); -x_229 = lean_ctor_get(x_16, 3); -x_230 = lean_ctor_get(x_16, 4); -lean_inc(x_230); -lean_inc(x_229); -lean_inc(x_228); +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; lean_object* x_135; +x_130 = lean_ctor_get(x_24, 0); +x_131 = lean_ctor_get(x_24, 1); +x_132 = lean_ctor_get(x_24, 2); +x_133 = lean_ctor_get(x_24, 3); +x_134 = lean_ctor_get_uint8(x_24, sizeof(void*)*4); +lean_inc(x_133); +lean_inc(x_132); +lean_inc(x_131); +lean_inc(x_130); +lean_dec(x_24); +lean_inc(x_32); +x_135 = lean_array_push(x_130, x_32); +if (x_134 == 0) +{ +lean_object* x_136; lean_object* x_137; uint8_t x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_136 = lean_ctor_get(x_9, 0); +lean_inc(x_136); +lean_dec(x_9); +lean_inc(x_25); +x_137 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_137, 0, x_25); +x_138 = 0; +x_139 = lean_box(0); +lean_inc(x_4); +x_140 = l_Lean_Elab_Term_mkFreshExprMVar(x_136, x_137, x_138, x_139, x_4, x_31); +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +lean_dec(x_140); +x_143 = l_Lean_Syntax_getId(x_136); +lean_dec(x_136); +lean_inc(x_25); +x_144 = lean_local_ctx_mk_let_decl(x_131, x_30, x_143, x_25, x_141); +lean_inc(x_133); +lean_inc(x_132); +lean_inc(x_144); +lean_inc(x_135); +x_145 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_145, 0, x_135); +lean_ctor_set(x_145, 1, x_144); +lean_ctor_set(x_145, 2, x_132); +lean_ctor_set(x_145, 3, x_133); +lean_ctor_set_uint8(x_145, sizeof(void*)*4, x_134); +lean_inc(x_4); +x_146 = l_Lean_Elab_Term_isClass(x_17, x_25, x_4, x_142); +lean_dec(x_17); +if (lean_obj_tag(x_146) == 0) +{ +lean_object* x_147; +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +if (lean_obj_tag(x_147) == 0) +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; +lean_dec(x_144); +lean_dec(x_135); +lean_dec(x_133); +lean_dec(x_132); +lean_dec(x_32); +x_148 = lean_ctor_get(x_146, 1); +lean_inc(x_148); +lean_dec(x_146); +x_149 = lean_unsigned_to_nat(1u); +x_150 = lean_nat_add(x_2, x_149); +lean_dec(x_2); +x_2 = x_150; +x_3 = x_145; +x_5 = x_148; +goto _start; +} +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; lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_dec(x_145); +x_152 = lean_ctor_get(x_146, 1); +lean_inc(x_152); +lean_dec(x_146); +x_153 = lean_ctor_get(x_147, 0); +lean_inc(x_153); +lean_dec(x_147); +x_154 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_152); +x_155 = lean_ctor_get(x_154, 1); +lean_inc(x_155); +lean_dec(x_154); +x_156 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_156, 0, x_153); +lean_ctor_set(x_156, 1, x_32); +x_157 = lean_array_push(x_132, x_156); +x_158 = lean_unsigned_to_nat(1u); +x_159 = lean_nat_add(x_2, x_158); +lean_dec(x_2); +x_160 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_160, 0, x_135); +lean_ctor_set(x_160, 1, x_144); +lean_ctor_set(x_160, 2, x_157); +lean_ctor_set(x_160, 3, x_133); +lean_ctor_set_uint8(x_160, sizeof(void*)*4, x_134); +x_2 = x_159; +x_3 = x_160; +x_5 = x_155; +goto _start; +} +} +else +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_145); +lean_dec(x_144); +lean_dec(x_135); +lean_dec(x_133); +lean_dec(x_132); +lean_dec(x_32); +lean_dec(x_4); +lean_dec(x_2); +x_162 = lean_ctor_get(x_146, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_146, 1); +lean_inc(x_163); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_164 = x_146; +} else { + lean_dec_ref(x_146); + x_164 = lean_box(0); +} +if (lean_is_scalar(x_164)) { + x_165 = lean_alloc_ctor(1, 2, 0); +} else { + x_165 = x_164; +} +lean_ctor_set(x_165, 0, x_162); +lean_ctor_set(x_165, 1, x_163); +return x_165; +} +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +lean_inc(x_131); +x_166 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_166, 0, x_135); +lean_ctor_set(x_166, 1, x_131); +lean_ctor_set(x_166, 2, x_132); +lean_ctor_set(x_166, 3, x_133); +lean_ctor_set_uint8(x_166, sizeof(void*)*4, x_134); +x_167 = lean_ctor_get(x_9, 0); +lean_inc(x_167); +lean_dec(x_9); +x_168 = l_Lean_Syntax_getId(x_167); +lean_inc(x_25); +x_169 = lean_local_ctx_mk_local_decl(x_131, x_30, x_168, x_25, x_14); +lean_inc(x_4); +lean_inc(x_25); +x_170 = l___private_Init_Lean_Elab_Binders_12__propagateExpectedType(x_167, x_32, x_25, x_166, x_4, x_31); +lean_dec(x_167); +if (lean_obj_tag(x_170) == 0) +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_171 = lean_ctor_get(x_170, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_170, 1); +lean_inc(x_172); +lean_dec(x_170); +x_173 = lean_ctor_get(x_171, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_171, 2); +lean_inc(x_174); +x_175 = lean_ctor_get(x_171, 3); +lean_inc(x_175); +x_176 = lean_ctor_get_uint8(x_171, sizeof(void*)*4); +if (lean_is_exclusive(x_171)) { + lean_ctor_release(x_171, 0); + lean_ctor_release(x_171, 1); + lean_ctor_release(x_171, 2); + lean_ctor_release(x_171, 3); + x_177 = x_171; +} else { + lean_dec_ref(x_171); + x_177 = lean_box(0); +} +lean_inc(x_175); +lean_inc(x_174); +lean_inc(x_169); +lean_inc(x_173); +if (lean_is_scalar(x_177)) { + x_178 = lean_alloc_ctor(0, 4, 1); +} else { + x_178 = x_177; +} +lean_ctor_set(x_178, 0, x_173); +lean_ctor_set(x_178, 1, x_169); +lean_ctor_set(x_178, 2, x_174); +lean_ctor_set(x_178, 3, x_175); +lean_ctor_set_uint8(x_178, sizeof(void*)*4, x_176); +lean_inc(x_4); +x_179 = l_Lean_Elab_Term_isClass(x_17, x_25, x_4, x_172); +lean_dec(x_17); +if (lean_obj_tag(x_179) == 0) +{ +lean_object* x_180; +x_180 = lean_ctor_get(x_179, 0); +lean_inc(x_180); +if (lean_obj_tag(x_180) == 0) +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; +lean_dec(x_175); +lean_dec(x_174); +lean_dec(x_173); +lean_dec(x_169); +lean_dec(x_32); +x_181 = lean_ctor_get(x_179, 1); +lean_inc(x_181); +lean_dec(x_179); +x_182 = lean_unsigned_to_nat(1u); +x_183 = lean_nat_add(x_2, x_182); +lean_dec(x_2); +x_2 = x_183; +x_3 = x_178; +x_5 = x_181; +goto _start; +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; +lean_dec(x_178); +x_185 = lean_ctor_get(x_179, 1); +lean_inc(x_185); +lean_dec(x_179); +x_186 = lean_ctor_get(x_180, 0); +lean_inc(x_186); +lean_dec(x_180); +x_187 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_185); +x_188 = lean_ctor_get(x_187, 1); +lean_inc(x_188); +lean_dec(x_187); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_186); +lean_ctor_set(x_189, 1, x_32); +x_190 = lean_array_push(x_174, x_189); +x_191 = lean_unsigned_to_nat(1u); +x_192 = lean_nat_add(x_2, x_191); +lean_dec(x_2); +x_193 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_193, 0, x_173); +lean_ctor_set(x_193, 1, x_169); +lean_ctor_set(x_193, 2, x_190); +lean_ctor_set(x_193, 3, x_175); +lean_ctor_set_uint8(x_193, sizeof(void*)*4, x_176); +x_2 = x_192; +x_3 = x_193; +x_5 = x_188; +goto _start; +} +} +else +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; +lean_dec(x_178); +lean_dec(x_175); +lean_dec(x_174); +lean_dec(x_173); +lean_dec(x_169); +lean_dec(x_32); +lean_dec(x_4); +lean_dec(x_2); +x_195 = lean_ctor_get(x_179, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_179, 1); +lean_inc(x_196); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_197 = x_179; +} else { + lean_dec_ref(x_179); + x_197 = lean_box(0); +} +if (lean_is_scalar(x_197)) { + x_198 = lean_alloc_ctor(1, 2, 0); +} else { + x_198 = x_197; +} +lean_ctor_set(x_198, 0, x_195); +lean_ctor_set(x_198, 1, x_196); +return x_198; +} +} +else +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +lean_dec(x_169); +lean_dec(x_32); +lean_dec(x_25); +lean_dec(x_4); +lean_dec(x_17); +lean_dec(x_2); +x_199 = lean_ctor_get(x_170, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_170, 1); +lean_inc(x_200); +if (lean_is_exclusive(x_170)) { + lean_ctor_release(x_170, 0); + lean_ctor_release(x_170, 1); + x_201 = x_170; +} else { + lean_dec_ref(x_170); + x_201 = lean_box(0); +} +if (lean_is_scalar(x_201)) { + x_202 = lean_alloc_ctor(1, 2, 0); +} else { + x_202 = x_201; +} +lean_ctor_set(x_202, 0, x_199); +lean_ctor_set(x_202, 1, x_200); +return x_202; +} +} +} +} +else +{ +uint8_t x_203; +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_4); +lean_dec(x_17); +lean_dec(x_9); +lean_dec(x_2); +x_203 = !lean_is_exclusive(x_27); +if (x_203 == 0) +{ +return x_27; +} +else +{ +lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_204 = lean_ctor_get(x_27, 0); +x_205 = lean_ctor_get(x_27, 1); +lean_inc(x_205); +lean_inc(x_204); +lean_dec(x_27); +x_206 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_206, 0, x_204); +lean_ctor_set(x_206, 1, x_205); +return x_206; +} +} +} +} +else +{ +lean_object* x_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; +x_234 = lean_ctor_get(x_16, 0); +x_235 = lean_ctor_get(x_16, 3); +x_236 = lean_ctor_get(x_16, 4); +lean_inc(x_236); +lean_inc(x_235); +lean_inc(x_234); lean_dec(x_16); lean_inc(x_12); lean_inc(x_11); -x_231 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_231, 0, x_228); -lean_ctor_set(x_231, 1, x_11); -lean_ctor_set(x_231, 2, x_12); -lean_ctor_set(x_231, 3, x_229); -lean_ctor_set(x_231, 4, x_230); -lean_ctor_set(x_4, 0, x_231); +x_237 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_237, 0, x_234); +lean_ctor_set(x_237, 1, x_11); +lean_ctor_set(x_237, 2, x_12); +lean_ctor_set(x_237, 3, x_235); +lean_ctor_set(x_237, 4, x_236); +lean_ctor_set(x_4, 0, x_237); lean_inc(x_4); lean_inc(x_17); -x_232 = l_Lean_Elab_Term_elabType(x_17, x_4, x_5); +x_238 = l_Lean_Elab_Term_elabType(x_17, x_4, x_5); if (x_15 == 0) { lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -if (lean_obj_tag(x_232) == 0) +if (lean_obj_tag(x_238) == 0) { -lean_object* x_315; lean_object* x_316; -x_315 = lean_ctor_get(x_232, 0); -lean_inc(x_315); -x_316 = lean_ctor_get(x_232, 1); -lean_inc(x_316); -lean_dec(x_232); -x_233 = x_3; -x_234 = x_315; -x_235 = x_316; -goto block_314; +lean_object* x_327; lean_object* x_328; +x_327 = lean_ctor_get(x_238, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_238, 1); +lean_inc(x_328); +lean_dec(x_238); +x_239 = x_3; +x_240 = x_327; +x_241 = x_328; +goto block_326; } else { -lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; +lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_dec(x_4); lean_dec(x_17); lean_dec(x_9); lean_dec(x_3); lean_dec(x_2); -x_317 = lean_ctor_get(x_232, 0); -lean_inc(x_317); -x_318 = lean_ctor_get(x_232, 1); -lean_inc(x_318); -if (lean_is_exclusive(x_232)) { - lean_ctor_release(x_232, 0); - lean_ctor_release(x_232, 1); - x_319 = x_232; +x_329 = lean_ctor_get(x_238, 0); +lean_inc(x_329); +x_330 = lean_ctor_get(x_238, 1); +lean_inc(x_330); +if (lean_is_exclusive(x_238)) { + lean_ctor_release(x_238, 0); + lean_ctor_release(x_238, 1); + x_331 = x_238; } else { - lean_dec_ref(x_232); - x_319 = lean_box(0); + lean_dec_ref(x_238); + x_331 = lean_box(0); } -if (lean_is_scalar(x_319)) { - x_320 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_331)) { + x_332 = lean_alloc_ctor(1, 2, 0); } else { - x_320 = x_319; + x_332 = x_331; } -lean_ctor_set(x_320, 0, x_317); -lean_ctor_set(x_320, 1, x_318); -return x_320; +lean_ctor_set(x_332, 0, x_329); +lean_ctor_set(x_332, 1, x_330); +return x_332; } } else { -lean_object* x_321; +lean_object* x_333; if (lean_is_exclusive(x_3)) { lean_ctor_release(x_3, 0); lean_ctor_release(x_3, 1); lean_ctor_release(x_3, 2); lean_ctor_release(x_3, 3); - x_321 = x_3; + x_333 = x_3; } else { lean_dec_ref(x_3); - x_321 = lean_box(0); + x_333 = lean_box(0); } -if (lean_obj_tag(x_232) == 0) +if (lean_obj_tag(x_238) == 0) { -lean_object* x_322; lean_object* x_323; uint8_t x_324; lean_object* x_325; -x_322 = lean_ctor_get(x_232, 0); -lean_inc(x_322); -x_323 = lean_ctor_get(x_232, 1); -lean_inc(x_323); -lean_dec(x_232); -x_324 = 1; -if (lean_is_scalar(x_321)) { - x_325 = lean_alloc_ctor(0, 4, 1); +lean_object* x_334; lean_object* x_335; uint8_t x_336; lean_object* x_337; +x_334 = lean_ctor_get(x_238, 0); +lean_inc(x_334); +x_335 = lean_ctor_get(x_238, 1); +lean_inc(x_335); +lean_dec(x_238); +x_336 = 1; +if (lean_is_scalar(x_333)) { + x_337 = lean_alloc_ctor(0, 4, 1); } else { - x_325 = x_321; + x_337 = x_333; } -lean_ctor_set(x_325, 0, x_10); -lean_ctor_set(x_325, 1, x_11); -lean_ctor_set(x_325, 2, x_12); -lean_ctor_set(x_325, 3, x_13); -lean_ctor_set_uint8(x_325, sizeof(void*)*4, x_324); -x_233 = x_325; -x_234 = x_322; -x_235 = x_323; -goto block_314; +lean_ctor_set(x_337, 0, x_10); +lean_ctor_set(x_337, 1, x_11); +lean_ctor_set(x_337, 2, x_12); +lean_ctor_set(x_337, 3, x_13); +lean_ctor_set_uint8(x_337, sizeof(void*)*4, x_336); +x_239 = x_337; +x_240 = x_334; +x_241 = x_335; +goto block_326; } else { -lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; -lean_dec(x_321); +lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; +lean_dec(x_333); lean_dec(x_4); lean_dec(x_17); lean_dec(x_13); @@ -18453,541 +20662,581 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_2); -x_326 = lean_ctor_get(x_232, 0); -lean_inc(x_326); -x_327 = lean_ctor_get(x_232, 1); -lean_inc(x_327); -if (lean_is_exclusive(x_232)) { - lean_ctor_release(x_232, 0); - lean_ctor_release(x_232, 1); - x_328 = x_232; +x_338 = lean_ctor_get(x_238, 0); +lean_inc(x_338); +x_339 = lean_ctor_get(x_238, 1); +lean_inc(x_339); +if (lean_is_exclusive(x_238)) { + lean_ctor_release(x_238, 0); + lean_ctor_release(x_238, 1); + x_340 = x_238; } else { - lean_dec_ref(x_232); - x_328 = lean_box(0); + lean_dec_ref(x_238); + x_340 = lean_box(0); } -if (lean_is_scalar(x_328)) { - x_329 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_340)) { + x_341 = lean_alloc_ctor(1, 2, 0); } else { - x_329 = x_328; + x_341 = x_340; } -lean_ctor_set(x_329, 0, x_326); -lean_ctor_set(x_329, 1, x_327); -return x_329; +lean_ctor_set(x_341, 0, x_338); +lean_ctor_set(x_341, 1, x_339); +return x_341; } } -block_314: +block_326: { -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; uint8_t x_244; lean_object* x_245; lean_object* x_246; -x_236 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_235); -x_237 = lean_ctor_get(x_236, 0); -lean_inc(x_237); -x_238 = lean_ctor_get(x_236, 1); -lean_inc(x_238); -lean_dec(x_236); -lean_inc(x_237); -x_239 = l_Lean_mkFVar(x_237); -x_240 = lean_ctor_get(x_233, 0); +lean_object* x_242; +lean_inc(x_4); lean_inc(x_240); -x_241 = lean_ctor_get(x_233, 1); -lean_inc(x_241); -x_242 = lean_ctor_get(x_233, 2); -lean_inc(x_242); -x_243 = lean_ctor_get(x_233, 3); -lean_inc(x_243); -x_244 = lean_ctor_get_uint8(x_233, sizeof(void*)*4); -if (lean_is_exclusive(x_233)) { - lean_ctor_release(x_233, 0); - lean_ctor_release(x_233, 1); - lean_ctor_release(x_233, 2); - lean_ctor_release(x_233, 3); - x_245 = x_233; -} else { - lean_dec_ref(x_233); - x_245 = lean_box(0); -} -lean_inc(x_239); -x_246 = lean_array_push(x_240, x_239); -if (x_244 == 0) +x_242 = l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam(x_17, x_240, x_4, x_241); +if (lean_obj_tag(x_242) == 0) { -lean_object* x_247; lean_object* x_248; uint8_t x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; -x_247 = lean_ctor_get(x_9, 0); -lean_inc(x_247); -lean_dec(x_9); -lean_inc(x_234); -x_248 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_248, 0, x_234); -x_249 = 0; -x_250 = lean_box(0); -lean_inc(x_4); -x_251 = l_Lean_Elab_Term_mkFreshExprMVar(x_247, x_248, x_249, x_250, x_4, x_238); -x_252 = lean_ctor_get(x_251, 0); -lean_inc(x_252); -x_253 = lean_ctor_get(x_251, 1); -lean_inc(x_253); -lean_dec(x_251); -x_254 = l_Lean_Syntax_getId(x_247); -lean_dec(x_247); -lean_inc(x_234); -x_255 = lean_local_ctx_mk_let_decl(x_241, x_237, x_254, x_234, x_252); +lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; uint8_t x_252; lean_object* x_253; lean_object* x_254; +x_243 = lean_ctor_get(x_242, 1); lean_inc(x_243); -lean_inc(x_242); -lean_inc(x_255); +lean_dec(x_242); +x_244 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_243); +x_245 = lean_ctor_get(x_244, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_244, 1); lean_inc(x_246); -if (lean_is_scalar(x_245)) { - x_256 = lean_alloc_ctor(0, 4, 1); +lean_dec(x_244); +lean_inc(x_245); +x_247 = l_Lean_mkFVar(x_245); +x_248 = lean_ctor_get(x_239, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_239, 1); +lean_inc(x_249); +x_250 = lean_ctor_get(x_239, 2); +lean_inc(x_250); +x_251 = lean_ctor_get(x_239, 3); +lean_inc(x_251); +x_252 = lean_ctor_get_uint8(x_239, sizeof(void*)*4); +if (lean_is_exclusive(x_239)) { + lean_ctor_release(x_239, 0); + lean_ctor_release(x_239, 1); + lean_ctor_release(x_239, 2); + lean_ctor_release(x_239, 3); + x_253 = x_239; } else { - x_256 = x_245; + lean_dec_ref(x_239); + x_253 = lean_box(0); } -lean_ctor_set(x_256, 0, x_246); -lean_ctor_set(x_256, 1, x_255); -lean_ctor_set(x_256, 2, x_242); -lean_ctor_set(x_256, 3, x_243); -lean_ctor_set_uint8(x_256, sizeof(void*)*4, x_244); -lean_inc(x_4); -x_257 = l_Lean_Elab_Term_isClass(x_17, x_234, x_4, x_253); -lean_dec(x_17); -if (lean_obj_tag(x_257) == 0) +lean_inc(x_247); +x_254 = lean_array_push(x_248, x_247); +if (x_252 == 0) { -lean_object* x_258; -x_258 = lean_ctor_get(x_257, 0); -lean_inc(x_258); -if (lean_obj_tag(x_258) == 0) -{ -lean_object* x_259; lean_object* x_260; lean_object* x_261; -lean_dec(x_255); -lean_dec(x_246); -lean_dec(x_243); -lean_dec(x_242); -lean_dec(x_239); -x_259 = lean_ctor_get(x_257, 1); -lean_inc(x_259); -lean_dec(x_257); -x_260 = lean_unsigned_to_nat(1u); -x_261 = lean_nat_add(x_2, x_260); -lean_dec(x_2); -x_2 = x_261; -x_3 = x_256; -x_5 = x_259; -goto _start; -} -else -{ -lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; -lean_dec(x_256); -x_263 = lean_ctor_get(x_257, 1); -lean_inc(x_263); -lean_dec(x_257); -x_264 = lean_ctor_get(x_258, 0); -lean_inc(x_264); -lean_dec(x_258); -x_265 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_263); -x_266 = lean_ctor_get(x_265, 1); -lean_inc(x_266); -lean_dec(x_265); -x_267 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_267, 0, x_264); -lean_ctor_set(x_267, 1, x_239); -x_268 = lean_array_push(x_242, x_267); -x_269 = lean_unsigned_to_nat(1u); -x_270 = lean_nat_add(x_2, x_269); -lean_dec(x_2); -x_271 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_271, 0, x_246); -lean_ctor_set(x_271, 1, x_255); -lean_ctor_set(x_271, 2, x_268); -lean_ctor_set(x_271, 3, x_243); -lean_ctor_set_uint8(x_271, sizeof(void*)*4, x_244); -x_2 = x_270; -x_3 = x_271; -x_5 = x_266; -goto _start; -} -} -else -{ -lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; -lean_dec(x_256); -lean_dec(x_255); -lean_dec(x_246); -lean_dec(x_243); -lean_dec(x_242); -lean_dec(x_239); -lean_dec(x_4); -lean_dec(x_2); -x_273 = lean_ctor_get(x_257, 0); -lean_inc(x_273); -x_274 = lean_ctor_get(x_257, 1); -lean_inc(x_274); -if (lean_is_exclusive(x_257)) { - lean_ctor_release(x_257, 0); - lean_ctor_release(x_257, 1); - x_275 = x_257; -} else { - lean_dec_ref(x_257); - x_275 = lean_box(0); -} -if (lean_is_scalar(x_275)) { - x_276 = lean_alloc_ctor(1, 2, 0); -} else { - x_276 = x_275; -} -lean_ctor_set(x_276, 0, x_273); -lean_ctor_set(x_276, 1, x_274); -return x_276; -} -} -else -{ -lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; -lean_inc(x_241); -if (lean_is_scalar(x_245)) { - x_277 = lean_alloc_ctor(0, 4, 1); -} else { - x_277 = x_245; -} -lean_ctor_set(x_277, 0, x_246); -lean_ctor_set(x_277, 1, x_241); -lean_ctor_set(x_277, 2, x_242); -lean_ctor_set(x_277, 3, x_243); -lean_ctor_set_uint8(x_277, sizeof(void*)*4, x_244); -x_278 = lean_ctor_get(x_9, 0); -lean_inc(x_278); +lean_object* x_255; lean_object* x_256; uint8_t 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; +x_255 = lean_ctor_get(x_9, 0); +lean_inc(x_255); lean_dec(x_9); -x_279 = l_Lean_Syntax_getId(x_278); -lean_inc(x_234); -x_280 = lean_local_ctx_mk_local_decl(x_241, x_237, x_279, x_234, x_14); +lean_inc(x_240); +x_256 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_256, 0, x_240); +x_257 = 0; +x_258 = lean_box(0); lean_inc(x_4); -lean_inc(x_234); -x_281 = l___private_Init_Lean_Elab_Binders_11__propagateExpectedType(x_278, x_239, x_234, x_277, x_4, x_238); -lean_dec(x_278); -if (lean_obj_tag(x_281) == 0) -{ -lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; uint8_t x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; -x_282 = lean_ctor_get(x_281, 0); -lean_inc(x_282); -x_283 = lean_ctor_get(x_281, 1); -lean_inc(x_283); -lean_dec(x_281); -x_284 = lean_ctor_get(x_282, 0); -lean_inc(x_284); -x_285 = lean_ctor_get(x_282, 2); -lean_inc(x_285); -x_286 = lean_ctor_get(x_282, 3); -lean_inc(x_286); -x_287 = lean_ctor_get_uint8(x_282, sizeof(void*)*4); -if (lean_is_exclusive(x_282)) { - lean_ctor_release(x_282, 0); - lean_ctor_release(x_282, 1); - lean_ctor_release(x_282, 2); - lean_ctor_release(x_282, 3); - x_288 = x_282; +x_259 = l_Lean_Elab_Term_mkFreshExprMVar(x_255, x_256, x_257, x_258, x_4, x_246); +x_260 = lean_ctor_get(x_259, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_259, 1); +lean_inc(x_261); +lean_dec(x_259); +x_262 = l_Lean_Syntax_getId(x_255); +lean_dec(x_255); +lean_inc(x_240); +x_263 = lean_local_ctx_mk_let_decl(x_249, x_245, x_262, x_240, x_260); +lean_inc(x_251); +lean_inc(x_250); +lean_inc(x_263); +lean_inc(x_254); +if (lean_is_scalar(x_253)) { + x_264 = lean_alloc_ctor(0, 4, 1); } else { - lean_dec_ref(x_282); - x_288 = lean_box(0); + x_264 = x_253; } -lean_inc(x_286); -lean_inc(x_285); -lean_inc(x_280); -lean_inc(x_284); -if (lean_is_scalar(x_288)) { - x_289 = lean_alloc_ctor(0, 4, 1); -} else { - x_289 = x_288; -} -lean_ctor_set(x_289, 0, x_284); -lean_ctor_set(x_289, 1, x_280); -lean_ctor_set(x_289, 2, x_285); -lean_ctor_set(x_289, 3, x_286); -lean_ctor_set_uint8(x_289, sizeof(void*)*4, x_287); +lean_ctor_set(x_264, 0, x_254); +lean_ctor_set(x_264, 1, x_263); +lean_ctor_set(x_264, 2, x_250); +lean_ctor_set(x_264, 3, x_251); +lean_ctor_set_uint8(x_264, sizeof(void*)*4, x_252); lean_inc(x_4); -x_290 = l_Lean_Elab_Term_isClass(x_17, x_234, x_4, x_283); +x_265 = l_Lean_Elab_Term_isClass(x_17, x_240, x_4, x_261); lean_dec(x_17); -if (lean_obj_tag(x_290) == 0) +if (lean_obj_tag(x_265) == 0) { -lean_object* x_291; -x_291 = lean_ctor_get(x_290, 0); -lean_inc(x_291); -if (lean_obj_tag(x_291) == 0) +lean_object* x_266; +x_266 = lean_ctor_get(x_265, 0); +lean_inc(x_266); +if (lean_obj_tag(x_266) == 0) { -lean_object* x_292; lean_object* x_293; lean_object* x_294; -lean_dec(x_286); -lean_dec(x_285); -lean_dec(x_284); -lean_dec(x_280); -lean_dec(x_239); -x_292 = lean_ctor_get(x_290, 1); -lean_inc(x_292); -lean_dec(x_290); -x_293 = lean_unsigned_to_nat(1u); -x_294 = lean_nat_add(x_2, x_293); +lean_object* x_267; lean_object* x_268; lean_object* x_269; +lean_dec(x_263); +lean_dec(x_254); +lean_dec(x_251); +lean_dec(x_250); +lean_dec(x_247); +x_267 = lean_ctor_get(x_265, 1); +lean_inc(x_267); +lean_dec(x_265); +x_268 = lean_unsigned_to_nat(1u); +x_269 = lean_nat_add(x_2, x_268); lean_dec(x_2); -x_2 = x_294; -x_3 = x_289; -x_5 = x_292; +x_2 = x_269; +x_3 = x_264; +x_5 = x_267; goto _start; } 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_object* x_304; -lean_dec(x_289); -x_296 = lean_ctor_get(x_290, 1); -lean_inc(x_296); -lean_dec(x_290); -x_297 = lean_ctor_get(x_291, 0); -lean_inc(x_297); -lean_dec(x_291); -x_298 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_296); -x_299 = lean_ctor_get(x_298, 1); -lean_inc(x_299); -lean_dec(x_298); -x_300 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_300, 0, x_297); -lean_ctor_set(x_300, 1, x_239); -x_301 = lean_array_push(x_285, x_300); -x_302 = lean_unsigned_to_nat(1u); -x_303 = lean_nat_add(x_2, x_302); +lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; +lean_dec(x_264); +x_271 = lean_ctor_get(x_265, 1); +lean_inc(x_271); +lean_dec(x_265); +x_272 = lean_ctor_get(x_266, 0); +lean_inc(x_272); +lean_dec(x_266); +x_273 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_271); +x_274 = lean_ctor_get(x_273, 1); +lean_inc(x_274); +lean_dec(x_273); +x_275 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_275, 0, x_272); +lean_ctor_set(x_275, 1, x_247); +x_276 = lean_array_push(x_250, x_275); +x_277 = lean_unsigned_to_nat(1u); +x_278 = lean_nat_add(x_2, x_277); lean_dec(x_2); -x_304 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_304, 0, x_284); -lean_ctor_set(x_304, 1, x_280); -lean_ctor_set(x_304, 2, x_301); -lean_ctor_set(x_304, 3, x_286); -lean_ctor_set_uint8(x_304, sizeof(void*)*4, x_287); -x_2 = x_303; -x_3 = x_304; -x_5 = x_299; +x_279 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_279, 0, x_254); +lean_ctor_set(x_279, 1, x_263); +lean_ctor_set(x_279, 2, x_276); +lean_ctor_set(x_279, 3, x_251); +lean_ctor_set_uint8(x_279, sizeof(void*)*4, x_252); +x_2 = x_278; +x_3 = x_279; +x_5 = x_274; goto _start; } } else { -lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; -lean_dec(x_289); -lean_dec(x_286); -lean_dec(x_285); -lean_dec(x_284); -lean_dec(x_280); -lean_dec(x_239); +lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; +lean_dec(x_264); +lean_dec(x_263); +lean_dec(x_254); +lean_dec(x_251); +lean_dec(x_250); +lean_dec(x_247); lean_dec(x_4); lean_dec(x_2); -x_306 = lean_ctor_get(x_290, 0); -lean_inc(x_306); -x_307 = lean_ctor_get(x_290, 1); -lean_inc(x_307); +x_281 = lean_ctor_get(x_265, 0); +lean_inc(x_281); +x_282 = lean_ctor_get(x_265, 1); +lean_inc(x_282); +if (lean_is_exclusive(x_265)) { + lean_ctor_release(x_265, 0); + lean_ctor_release(x_265, 1); + x_283 = x_265; +} else { + lean_dec_ref(x_265); + 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; +} +} +else +{ +lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; +lean_inc(x_249); +if (lean_is_scalar(x_253)) { + x_285 = lean_alloc_ctor(0, 4, 1); +} else { + x_285 = x_253; +} +lean_ctor_set(x_285, 0, x_254); +lean_ctor_set(x_285, 1, x_249); +lean_ctor_set(x_285, 2, x_250); +lean_ctor_set(x_285, 3, x_251); +lean_ctor_set_uint8(x_285, sizeof(void*)*4, x_252); +x_286 = lean_ctor_get(x_9, 0); +lean_inc(x_286); +lean_dec(x_9); +x_287 = l_Lean_Syntax_getId(x_286); +lean_inc(x_240); +x_288 = lean_local_ctx_mk_local_decl(x_249, x_245, x_287, x_240, x_14); +lean_inc(x_4); +lean_inc(x_240); +x_289 = l___private_Init_Lean_Elab_Binders_12__propagateExpectedType(x_286, x_247, x_240, x_285, x_4, x_246); +lean_dec(x_286); +if (lean_obj_tag(x_289) == 0) +{ +lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; uint8_t x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; +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 = lean_ctor_get(x_290, 0); +lean_inc(x_292); +x_293 = lean_ctor_get(x_290, 2); +lean_inc(x_293); +x_294 = lean_ctor_get(x_290, 3); +lean_inc(x_294); +x_295 = lean_ctor_get_uint8(x_290, sizeof(void*)*4); if (lean_is_exclusive(x_290)) { lean_ctor_release(x_290, 0); lean_ctor_release(x_290, 1); - x_308 = x_290; + lean_ctor_release(x_290, 2); + lean_ctor_release(x_290, 3); + x_296 = x_290; } else { lean_dec_ref(x_290); - x_308 = lean_box(0); + x_296 = lean_box(0); } -if (lean_is_scalar(x_308)) { - x_309 = lean_alloc_ctor(1, 2, 0); +lean_inc(x_294); +lean_inc(x_293); +lean_inc(x_288); +lean_inc(x_292); +if (lean_is_scalar(x_296)) { + x_297 = lean_alloc_ctor(0, 4, 1); } else { - x_309 = x_308; + x_297 = x_296; } -lean_ctor_set(x_309, 0, x_306); -lean_ctor_set(x_309, 1, x_307); -return x_309; +lean_ctor_set(x_297, 0, x_292); +lean_ctor_set(x_297, 1, x_288); +lean_ctor_set(x_297, 2, x_293); +lean_ctor_set(x_297, 3, x_294); +lean_ctor_set_uint8(x_297, sizeof(void*)*4, x_295); +lean_inc(x_4); +x_298 = l_Lean_Elab_Term_isClass(x_17, x_240, x_4, x_291); +lean_dec(x_17); +if (lean_obj_tag(x_298) == 0) +{ +lean_object* x_299; +x_299 = lean_ctor_get(x_298, 0); +lean_inc(x_299); +if (lean_obj_tag(x_299) == 0) +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; +lean_dec(x_294); +lean_dec(x_293); +lean_dec(x_292); +lean_dec(x_288); +lean_dec(x_247); +x_300 = lean_ctor_get(x_298, 1); +lean_inc(x_300); +lean_dec(x_298); +x_301 = lean_unsigned_to_nat(1u); +x_302 = lean_nat_add(x_2, x_301); +lean_dec(x_2); +x_2 = x_302; +x_3 = x_297; +x_5 = x_300; +goto _start; +} +else +{ +lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; +lean_dec(x_297); +x_304 = lean_ctor_get(x_298, 1); +lean_inc(x_304); +lean_dec(x_298); +x_305 = lean_ctor_get(x_299, 0); +lean_inc(x_305); +lean_dec(x_299); +x_306 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_304); +x_307 = lean_ctor_get(x_306, 1); +lean_inc(x_307); +lean_dec(x_306); +x_308 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_308, 0, x_305); +lean_ctor_set(x_308, 1, x_247); +x_309 = lean_array_push(x_293, x_308); +x_310 = lean_unsigned_to_nat(1u); +x_311 = lean_nat_add(x_2, x_310); +lean_dec(x_2); +x_312 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_312, 0, x_292); +lean_ctor_set(x_312, 1, x_288); +lean_ctor_set(x_312, 2, x_309); +lean_ctor_set(x_312, 3, x_294); +lean_ctor_set_uint8(x_312, sizeof(void*)*4, x_295); +x_2 = x_311; +x_3 = x_312; +x_5 = x_307; +goto _start; } } else { -lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; -lean_dec(x_280); -lean_dec(x_239); -lean_dec(x_234); +lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; +lean_dec(x_297); +lean_dec(x_294); +lean_dec(x_293); +lean_dec(x_292); +lean_dec(x_288); +lean_dec(x_247); +lean_dec(x_4); +lean_dec(x_2); +x_314 = lean_ctor_get(x_298, 0); +lean_inc(x_314); +x_315 = lean_ctor_get(x_298, 1); +lean_inc(x_315); +if (lean_is_exclusive(x_298)) { + lean_ctor_release(x_298, 0); + lean_ctor_release(x_298, 1); + x_316 = x_298; +} else { + lean_dec_ref(x_298); + x_316 = lean_box(0); +} +if (lean_is_scalar(x_316)) { + x_317 = lean_alloc_ctor(1, 2, 0); +} else { + x_317 = x_316; +} +lean_ctor_set(x_317, 0, x_314); +lean_ctor_set(x_317, 1, x_315); +return x_317; +} +} +else +{ +lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; +lean_dec(x_288); +lean_dec(x_247); +lean_dec(x_240); lean_dec(x_4); lean_dec(x_17); lean_dec(x_2); -x_310 = lean_ctor_get(x_281, 0); -lean_inc(x_310); -x_311 = lean_ctor_get(x_281, 1); -lean_inc(x_311); -if (lean_is_exclusive(x_281)) { - lean_ctor_release(x_281, 0); - lean_ctor_release(x_281, 1); - x_312 = x_281; +x_318 = lean_ctor_get(x_289, 0); +lean_inc(x_318); +x_319 = lean_ctor_get(x_289, 1); +lean_inc(x_319); +if (lean_is_exclusive(x_289)) { + lean_ctor_release(x_289, 0); + lean_ctor_release(x_289, 1); + x_320 = x_289; } else { - lean_dec_ref(x_281); - x_312 = lean_box(0); + lean_dec_ref(x_289); + x_320 = lean_box(0); } -if (lean_is_scalar(x_312)) { - x_313 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_320)) { + x_321 = lean_alloc_ctor(1, 2, 0); } else { - x_313 = x_312; + x_321 = x_320; } -lean_ctor_set(x_313, 0, x_310); -lean_ctor_set(x_313, 1, x_311); -return x_313; +lean_ctor_set(x_321, 0, x_318); +lean_ctor_set(x_321, 1, x_319); +return x_321; } } } +else +{ +lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; +lean_dec(x_240); +lean_dec(x_239); +lean_dec(x_4); +lean_dec(x_17); +lean_dec(x_9); +lean_dec(x_2); +x_322 = lean_ctor_get(x_242, 0); +lean_inc(x_322); +x_323 = lean_ctor_get(x_242, 1); +lean_inc(x_323); +if (lean_is_exclusive(x_242)) { + lean_ctor_release(x_242, 0); + lean_ctor_release(x_242, 1); + x_324 = x_242; +} else { + lean_dec_ref(x_242); + x_324 = lean_box(0); +} +if (lean_is_scalar(x_324)) { + x_325 = lean_alloc_ctor(1, 2, 0); +} else { + x_325 = x_324; +} +lean_ctor_set(x_325, 0, x_322); +lean_ctor_set(x_325, 1, x_323); +return x_325; +} +} } } 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; uint8_t x_339; uint8_t x_340; uint8_t x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; -x_330 = lean_ctor_get(x_4, 1); -x_331 = lean_ctor_get(x_4, 2); -x_332 = lean_ctor_get(x_4, 3); -x_333 = lean_ctor_get(x_4, 4); -x_334 = lean_ctor_get(x_4, 5); -x_335 = lean_ctor_get(x_4, 6); -x_336 = lean_ctor_get(x_4, 7); -x_337 = lean_ctor_get(x_4, 8); -x_338 = lean_ctor_get(x_4, 9); -x_339 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_340 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_341 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -lean_inc(x_338); -lean_inc(x_337); -lean_inc(x_336); -lean_inc(x_335); -lean_inc(x_334); -lean_inc(x_333); -lean_inc(x_332); -lean_inc(x_331); -lean_inc(x_330); -lean_dec(x_4); -x_342 = lean_ctor_get(x_16, 0); -lean_inc(x_342); -x_343 = lean_ctor_get(x_16, 3); -lean_inc(x_343); -x_344 = lean_ctor_get(x_16, 4); +lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; uint8_t x_351; uint8_t x_352; uint8_t x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; +x_342 = lean_ctor_get(x_4, 1); +x_343 = lean_ctor_get(x_4, 2); +x_344 = lean_ctor_get(x_4, 3); +x_345 = lean_ctor_get(x_4, 4); +x_346 = lean_ctor_get(x_4, 5); +x_347 = lean_ctor_get(x_4, 6); +x_348 = lean_ctor_get(x_4, 7); +x_349 = lean_ctor_get(x_4, 8); +x_350 = lean_ctor_get(x_4, 9); +x_351 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_352 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); +x_353 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); +lean_inc(x_350); +lean_inc(x_349); +lean_inc(x_348); +lean_inc(x_347); +lean_inc(x_346); +lean_inc(x_345); lean_inc(x_344); +lean_inc(x_343); +lean_inc(x_342); +lean_dec(x_4); +x_354 = lean_ctor_get(x_16, 0); +lean_inc(x_354); +x_355 = lean_ctor_get(x_16, 3); +lean_inc(x_355); +x_356 = lean_ctor_get(x_16, 4); +lean_inc(x_356); if (lean_is_exclusive(x_16)) { lean_ctor_release(x_16, 0); lean_ctor_release(x_16, 1); lean_ctor_release(x_16, 2); lean_ctor_release(x_16, 3); lean_ctor_release(x_16, 4); - x_345 = x_16; + x_357 = x_16; } else { lean_dec_ref(x_16); - x_345 = lean_box(0); + x_357 = lean_box(0); } lean_inc(x_12); lean_inc(x_11); -if (lean_is_scalar(x_345)) { - x_346 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_357)) { + x_358 = lean_alloc_ctor(0, 5, 0); } else { - x_346 = x_345; + x_358 = x_357; } -lean_ctor_set(x_346, 0, x_342); -lean_ctor_set(x_346, 1, x_11); -lean_ctor_set(x_346, 2, x_12); -lean_ctor_set(x_346, 3, x_343); -lean_ctor_set(x_346, 4, x_344); -x_347 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_347, 0, x_346); -lean_ctor_set(x_347, 1, x_330); -lean_ctor_set(x_347, 2, x_331); -lean_ctor_set(x_347, 3, x_332); -lean_ctor_set(x_347, 4, x_333); -lean_ctor_set(x_347, 5, x_334); -lean_ctor_set(x_347, 6, x_335); -lean_ctor_set(x_347, 7, x_336); -lean_ctor_set(x_347, 8, x_337); -lean_ctor_set(x_347, 9, x_338); -lean_ctor_set_uint8(x_347, sizeof(void*)*10, x_339); -lean_ctor_set_uint8(x_347, sizeof(void*)*10 + 1, x_340); -lean_ctor_set_uint8(x_347, sizeof(void*)*10 + 2, x_341); -lean_inc(x_347); +lean_ctor_set(x_358, 0, x_354); +lean_ctor_set(x_358, 1, x_11); +lean_ctor_set(x_358, 2, x_12); +lean_ctor_set(x_358, 3, x_355); +lean_ctor_set(x_358, 4, x_356); +x_359 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_359, 0, x_358); +lean_ctor_set(x_359, 1, x_342); +lean_ctor_set(x_359, 2, x_343); +lean_ctor_set(x_359, 3, x_344); +lean_ctor_set(x_359, 4, x_345); +lean_ctor_set(x_359, 5, x_346); +lean_ctor_set(x_359, 6, x_347); +lean_ctor_set(x_359, 7, x_348); +lean_ctor_set(x_359, 8, x_349); +lean_ctor_set(x_359, 9, x_350); +lean_ctor_set_uint8(x_359, sizeof(void*)*10, x_351); +lean_ctor_set_uint8(x_359, sizeof(void*)*10 + 1, x_352); +lean_ctor_set_uint8(x_359, sizeof(void*)*10 + 2, x_353); +lean_inc(x_359); lean_inc(x_17); -x_348 = l_Lean_Elab_Term_elabType(x_17, x_347, x_5); +x_360 = l_Lean_Elab_Term_elabType(x_17, x_359, x_5); if (x_15 == 0) { lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -if (lean_obj_tag(x_348) == 0) +if (lean_obj_tag(x_360) == 0) { -lean_object* x_431; lean_object* x_432; -x_431 = lean_ctor_get(x_348, 0); -lean_inc(x_431); -x_432 = lean_ctor_get(x_348, 1); -lean_inc(x_432); -lean_dec(x_348); -x_349 = x_3; -x_350 = x_431; -x_351 = x_432; -goto block_430; +lean_object* x_449; lean_object* x_450; +x_449 = lean_ctor_get(x_360, 0); +lean_inc(x_449); +x_450 = lean_ctor_get(x_360, 1); +lean_inc(x_450); +lean_dec(x_360); +x_361 = x_3; +x_362 = x_449; +x_363 = x_450; +goto block_448; } else { -lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; -lean_dec(x_347); +lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; +lean_dec(x_359); lean_dec(x_17); lean_dec(x_9); lean_dec(x_3); lean_dec(x_2); -x_433 = lean_ctor_get(x_348, 0); -lean_inc(x_433); -x_434 = lean_ctor_get(x_348, 1); -lean_inc(x_434); -if (lean_is_exclusive(x_348)) { - lean_ctor_release(x_348, 0); - lean_ctor_release(x_348, 1); - x_435 = x_348; +x_451 = lean_ctor_get(x_360, 0); +lean_inc(x_451); +x_452 = lean_ctor_get(x_360, 1); +lean_inc(x_452); +if (lean_is_exclusive(x_360)) { + lean_ctor_release(x_360, 0); + lean_ctor_release(x_360, 1); + x_453 = x_360; } else { - lean_dec_ref(x_348); - x_435 = lean_box(0); + lean_dec_ref(x_360); + x_453 = lean_box(0); } -if (lean_is_scalar(x_435)) { - x_436 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_453)) { + x_454 = lean_alloc_ctor(1, 2, 0); } else { - x_436 = x_435; + x_454 = x_453; } -lean_ctor_set(x_436, 0, x_433); -lean_ctor_set(x_436, 1, x_434); -return x_436; +lean_ctor_set(x_454, 0, x_451); +lean_ctor_set(x_454, 1, x_452); +return x_454; } } else { -lean_object* x_437; +lean_object* x_455; if (lean_is_exclusive(x_3)) { lean_ctor_release(x_3, 0); lean_ctor_release(x_3, 1); lean_ctor_release(x_3, 2); lean_ctor_release(x_3, 3); - x_437 = x_3; + x_455 = x_3; } else { lean_dec_ref(x_3); - x_437 = lean_box(0); + x_455 = lean_box(0); } -if (lean_obj_tag(x_348) == 0) +if (lean_obj_tag(x_360) == 0) { -lean_object* x_438; lean_object* x_439; uint8_t x_440; lean_object* x_441; -x_438 = lean_ctor_get(x_348, 0); -lean_inc(x_438); -x_439 = lean_ctor_get(x_348, 1); -lean_inc(x_439); -lean_dec(x_348); -x_440 = 1; -if (lean_is_scalar(x_437)) { - x_441 = lean_alloc_ctor(0, 4, 1); +lean_object* x_456; lean_object* x_457; uint8_t x_458; lean_object* x_459; +x_456 = lean_ctor_get(x_360, 0); +lean_inc(x_456); +x_457 = lean_ctor_get(x_360, 1); +lean_inc(x_457); +lean_dec(x_360); +x_458 = 1; +if (lean_is_scalar(x_455)) { + x_459 = lean_alloc_ctor(0, 4, 1); } else { - x_441 = x_437; + x_459 = x_455; } -lean_ctor_set(x_441, 0, x_10); -lean_ctor_set(x_441, 1, x_11); -lean_ctor_set(x_441, 2, x_12); -lean_ctor_set(x_441, 3, x_13); -lean_ctor_set_uint8(x_441, sizeof(void*)*4, x_440); -x_349 = x_441; -x_350 = x_438; -x_351 = x_439; -goto block_430; +lean_ctor_set(x_459, 0, x_10); +lean_ctor_set(x_459, 1, x_11); +lean_ctor_set(x_459, 2, x_12); +lean_ctor_set(x_459, 3, x_13); +lean_ctor_set_uint8(x_459, sizeof(void*)*4, x_458); +x_361 = x_459; +x_362 = x_456; +x_363 = x_457; +goto block_448; } else { -lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; -lean_dec(x_437); -lean_dec(x_347); +lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; +lean_dec(x_455); +lean_dec(x_359); lean_dec(x_17); lean_dec(x_13); lean_dec(x_12); @@ -18995,407 +21244,447 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_2); -x_442 = lean_ctor_get(x_348, 0); -lean_inc(x_442); -x_443 = lean_ctor_get(x_348, 1); -lean_inc(x_443); -if (lean_is_exclusive(x_348)) { - lean_ctor_release(x_348, 0); - lean_ctor_release(x_348, 1); - x_444 = x_348; +x_460 = lean_ctor_get(x_360, 0); +lean_inc(x_460); +x_461 = lean_ctor_get(x_360, 1); +lean_inc(x_461); +if (lean_is_exclusive(x_360)) { + lean_ctor_release(x_360, 0); + lean_ctor_release(x_360, 1); + x_462 = x_360; } else { - lean_dec_ref(x_348); - x_444 = lean_box(0); + lean_dec_ref(x_360); + x_462 = lean_box(0); } -if (lean_is_scalar(x_444)) { - x_445 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_462)) { + x_463 = lean_alloc_ctor(1, 2, 0); } else { - x_445 = x_444; + x_463 = x_462; } -lean_ctor_set(x_445, 0, x_442); -lean_ctor_set(x_445, 1, x_443); -return x_445; +lean_ctor_set(x_463, 0, x_460); +lean_ctor_set(x_463, 1, x_461); +return x_463; } } -block_430: +block_448: { -lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; uint8_t x_360; lean_object* x_361; lean_object* x_362; -x_352 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_351); -x_353 = lean_ctor_get(x_352, 0); -lean_inc(x_353); -x_354 = lean_ctor_get(x_352, 1); -lean_inc(x_354); -lean_dec(x_352); -lean_inc(x_353); -x_355 = l_Lean_mkFVar(x_353); -x_356 = lean_ctor_get(x_349, 0); -lean_inc(x_356); -x_357 = lean_ctor_get(x_349, 1); -lean_inc(x_357); -x_358 = lean_ctor_get(x_349, 2); -lean_inc(x_358); -x_359 = lean_ctor_get(x_349, 3); +lean_object* x_364; lean_inc(x_359); -x_360 = lean_ctor_get_uint8(x_349, sizeof(void*)*4); -if (lean_is_exclusive(x_349)) { - lean_ctor_release(x_349, 0); - lean_ctor_release(x_349, 1); - lean_ctor_release(x_349, 2); - lean_ctor_release(x_349, 3); - x_361 = x_349; -} else { - lean_dec_ref(x_349); - x_361 = lean_box(0); -} -lean_inc(x_355); -x_362 = lean_array_push(x_356, x_355); -if (x_360 == 0) -{ -lean_object* x_363; lean_object* x_364; uint8_t x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; -x_363 = lean_ctor_get(x_9, 0); -lean_inc(x_363); -lean_dec(x_9); -lean_inc(x_350); -x_364 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_364, 0, x_350); -x_365 = 0; -x_366 = lean_box(0); -lean_inc(x_347); -x_367 = l_Lean_Elab_Term_mkFreshExprMVar(x_363, x_364, x_365, x_366, x_347, x_354); -x_368 = lean_ctor_get(x_367, 0); -lean_inc(x_368); -x_369 = lean_ctor_get(x_367, 1); -lean_inc(x_369); -lean_dec(x_367); -x_370 = l_Lean_Syntax_getId(x_363); -lean_dec(x_363); -lean_inc(x_350); -x_371 = lean_local_ctx_mk_let_decl(x_357, x_353, x_370, x_350, x_368); -lean_inc(x_359); -lean_inc(x_358); -lean_inc(x_371); lean_inc(x_362); -if (lean_is_scalar(x_361)) { - x_372 = lean_alloc_ctor(0, 4, 1); +x_364 = l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam(x_17, x_362, x_359, x_363); +if (lean_obj_tag(x_364) == 0) +{ +lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; uint8_t x_374; lean_object* x_375; lean_object* x_376; +x_365 = lean_ctor_get(x_364, 1); +lean_inc(x_365); +lean_dec(x_364); +x_366 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_365); +x_367 = lean_ctor_get(x_366, 0); +lean_inc(x_367); +x_368 = lean_ctor_get(x_366, 1); +lean_inc(x_368); +lean_dec(x_366); +lean_inc(x_367); +x_369 = l_Lean_mkFVar(x_367); +x_370 = lean_ctor_get(x_361, 0); +lean_inc(x_370); +x_371 = lean_ctor_get(x_361, 1); +lean_inc(x_371); +x_372 = lean_ctor_get(x_361, 2); +lean_inc(x_372); +x_373 = lean_ctor_get(x_361, 3); +lean_inc(x_373); +x_374 = lean_ctor_get_uint8(x_361, sizeof(void*)*4); +if (lean_is_exclusive(x_361)) { + lean_ctor_release(x_361, 0); + lean_ctor_release(x_361, 1); + lean_ctor_release(x_361, 2); + lean_ctor_release(x_361, 3); + x_375 = x_361; } else { - x_372 = x_361; + lean_dec_ref(x_361); + x_375 = lean_box(0); } -lean_ctor_set(x_372, 0, x_362); -lean_ctor_set(x_372, 1, x_371); -lean_ctor_set(x_372, 2, x_358); -lean_ctor_set(x_372, 3, x_359); -lean_ctor_set_uint8(x_372, sizeof(void*)*4, x_360); -lean_inc(x_347); -x_373 = l_Lean_Elab_Term_isClass(x_17, x_350, x_347, x_369); -lean_dec(x_17); -if (lean_obj_tag(x_373) == 0) +lean_inc(x_369); +x_376 = lean_array_push(x_370, x_369); +if (x_374 == 0) { -lean_object* x_374; -x_374 = lean_ctor_get(x_373, 0); -lean_inc(x_374); -if (lean_obj_tag(x_374) == 0) -{ -lean_object* x_375; lean_object* x_376; lean_object* x_377; -lean_dec(x_371); -lean_dec(x_362); -lean_dec(x_359); -lean_dec(x_358); -lean_dec(x_355); -x_375 = lean_ctor_get(x_373, 1); -lean_inc(x_375); -lean_dec(x_373); -x_376 = lean_unsigned_to_nat(1u); -x_377 = lean_nat_add(x_2, x_376); -lean_dec(x_2); -x_2 = x_377; -x_3 = x_372; -x_4 = x_347; -x_5 = x_375; -goto _start; -} -else -{ -lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; -lean_dec(x_372); -x_379 = lean_ctor_get(x_373, 1); -lean_inc(x_379); -lean_dec(x_373); -x_380 = lean_ctor_get(x_374, 0); -lean_inc(x_380); -lean_dec(x_374); -x_381 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_379); -x_382 = lean_ctor_get(x_381, 1); -lean_inc(x_382); -lean_dec(x_381); -x_383 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_383, 0, x_380); -lean_ctor_set(x_383, 1, x_355); -x_384 = lean_array_push(x_358, x_383); -x_385 = lean_unsigned_to_nat(1u); -x_386 = lean_nat_add(x_2, x_385); -lean_dec(x_2); -x_387 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_387, 0, x_362); -lean_ctor_set(x_387, 1, x_371); -lean_ctor_set(x_387, 2, x_384); -lean_ctor_set(x_387, 3, x_359); -lean_ctor_set_uint8(x_387, sizeof(void*)*4, x_360); -x_2 = x_386; -x_3 = x_387; -x_4 = x_347; -x_5 = x_382; -goto _start; -} -} -else -{ -lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; -lean_dec(x_372); -lean_dec(x_371); -lean_dec(x_362); -lean_dec(x_359); -lean_dec(x_358); -lean_dec(x_355); -lean_dec(x_347); -lean_dec(x_2); -x_389 = lean_ctor_get(x_373, 0); -lean_inc(x_389); -x_390 = lean_ctor_get(x_373, 1); -lean_inc(x_390); -if (lean_is_exclusive(x_373)) { - lean_ctor_release(x_373, 0); - lean_ctor_release(x_373, 1); - x_391 = x_373; -} else { - lean_dec_ref(x_373); - x_391 = lean_box(0); -} -if (lean_is_scalar(x_391)) { - x_392 = lean_alloc_ctor(1, 2, 0); -} else { - x_392 = x_391; -} -lean_ctor_set(x_392, 0, x_389); -lean_ctor_set(x_392, 1, x_390); -return x_392; -} -} -else -{ -lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; -lean_inc(x_357); -if (lean_is_scalar(x_361)) { - x_393 = lean_alloc_ctor(0, 4, 1); -} else { - x_393 = x_361; -} -lean_ctor_set(x_393, 0, x_362); -lean_ctor_set(x_393, 1, x_357); -lean_ctor_set(x_393, 2, x_358); -lean_ctor_set(x_393, 3, x_359); -lean_ctor_set_uint8(x_393, sizeof(void*)*4, x_360); -x_394 = lean_ctor_get(x_9, 0); -lean_inc(x_394); +lean_object* x_377; lean_object* x_378; uint8_t x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; +x_377 = lean_ctor_get(x_9, 0); +lean_inc(x_377); lean_dec(x_9); -x_395 = l_Lean_Syntax_getId(x_394); -lean_inc(x_350); -x_396 = lean_local_ctx_mk_local_decl(x_357, x_353, x_395, x_350, x_14); -lean_inc(x_347); -lean_inc(x_350); -x_397 = l___private_Init_Lean_Elab_Binders_11__propagateExpectedType(x_394, x_355, x_350, x_393, x_347, x_354); -lean_dec(x_394); -if (lean_obj_tag(x_397) == 0) -{ -lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; uint8_t x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; -x_398 = lean_ctor_get(x_397, 0); -lean_inc(x_398); -x_399 = lean_ctor_get(x_397, 1); -lean_inc(x_399); -lean_dec(x_397); -x_400 = lean_ctor_get(x_398, 0); -lean_inc(x_400); -x_401 = lean_ctor_get(x_398, 2); -lean_inc(x_401); -x_402 = lean_ctor_get(x_398, 3); -lean_inc(x_402); -x_403 = lean_ctor_get_uint8(x_398, sizeof(void*)*4); -if (lean_is_exclusive(x_398)) { - lean_ctor_release(x_398, 0); - lean_ctor_release(x_398, 1); - lean_ctor_release(x_398, 2); - lean_ctor_release(x_398, 3); - x_404 = x_398; +lean_inc(x_362); +x_378 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_378, 0, x_362); +x_379 = 0; +x_380 = lean_box(0); +lean_inc(x_359); +x_381 = l_Lean_Elab_Term_mkFreshExprMVar(x_377, x_378, x_379, x_380, x_359, x_368); +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_384 = l_Lean_Syntax_getId(x_377); +lean_dec(x_377); +lean_inc(x_362); +x_385 = lean_local_ctx_mk_let_decl(x_371, x_367, x_384, x_362, x_382); +lean_inc(x_373); +lean_inc(x_372); +lean_inc(x_385); +lean_inc(x_376); +if (lean_is_scalar(x_375)) { + x_386 = lean_alloc_ctor(0, 4, 1); } else { - lean_dec_ref(x_398); - x_404 = lean_box(0); + x_386 = x_375; } -lean_inc(x_402); -lean_inc(x_401); +lean_ctor_set(x_386, 0, x_376); +lean_ctor_set(x_386, 1, x_385); +lean_ctor_set(x_386, 2, x_372); +lean_ctor_set(x_386, 3, x_373); +lean_ctor_set_uint8(x_386, sizeof(void*)*4, x_374); +lean_inc(x_359); +x_387 = l_Lean_Elab_Term_isClass(x_17, x_362, x_359, x_383); +lean_dec(x_17); +if (lean_obj_tag(x_387) == 0) +{ +lean_object* x_388; +x_388 = lean_ctor_get(x_387, 0); +lean_inc(x_388); +if (lean_obj_tag(x_388) == 0) +{ +lean_object* x_389; lean_object* x_390; lean_object* x_391; +lean_dec(x_385); +lean_dec(x_376); +lean_dec(x_373); +lean_dec(x_372); +lean_dec(x_369); +x_389 = lean_ctor_get(x_387, 1); +lean_inc(x_389); +lean_dec(x_387); +x_390 = lean_unsigned_to_nat(1u); +x_391 = lean_nat_add(x_2, x_390); +lean_dec(x_2); +x_2 = x_391; +x_3 = x_386; +x_4 = x_359; +x_5 = x_389; +goto _start; +} +else +{ +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_400; lean_object* x_401; +lean_dec(x_386); +x_393 = lean_ctor_get(x_387, 1); +lean_inc(x_393); +lean_dec(x_387); +x_394 = lean_ctor_get(x_388, 0); +lean_inc(x_394); +lean_dec(x_388); +x_395 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_393); +x_396 = lean_ctor_get(x_395, 1); lean_inc(x_396); -lean_inc(x_400); -if (lean_is_scalar(x_404)) { - x_405 = lean_alloc_ctor(0, 4, 1); -} else { - x_405 = x_404; +lean_dec(x_395); +x_397 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_397, 0, x_394); +lean_ctor_set(x_397, 1, x_369); +x_398 = lean_array_push(x_372, x_397); +x_399 = lean_unsigned_to_nat(1u); +x_400 = lean_nat_add(x_2, x_399); +lean_dec(x_2); +x_401 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_401, 0, x_376); +lean_ctor_set(x_401, 1, x_385); +lean_ctor_set(x_401, 2, x_398); +lean_ctor_set(x_401, 3, x_373); +lean_ctor_set_uint8(x_401, sizeof(void*)*4, x_374); +x_2 = x_400; +x_3 = x_401; +x_4 = x_359; +x_5 = x_396; +goto _start; } -lean_ctor_set(x_405, 0, x_400); -lean_ctor_set(x_405, 1, x_396); -lean_ctor_set(x_405, 2, x_401); -lean_ctor_set(x_405, 3, x_402); -lean_ctor_set_uint8(x_405, sizeof(void*)*4, x_403); -lean_inc(x_347); -x_406 = l_Lean_Elab_Term_isClass(x_17, x_350, x_347, x_399); -lean_dec(x_17); -if (lean_obj_tag(x_406) == 0) +} +else { -lean_object* x_407; -x_407 = lean_ctor_get(x_406, 0); -lean_inc(x_407); -if (lean_obj_tag(x_407) == 0) +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; +lean_dec(x_386); +lean_dec(x_385); +lean_dec(x_376); +lean_dec(x_373); +lean_dec(x_372); +lean_dec(x_369); +lean_dec(x_359); +lean_dec(x_2); +x_403 = lean_ctor_get(x_387, 0); +lean_inc(x_403); +x_404 = lean_ctor_get(x_387, 1); +lean_inc(x_404); +if (lean_is_exclusive(x_387)) { + lean_ctor_release(x_387, 0); + lean_ctor_release(x_387, 1); + x_405 = x_387; +} else { + lean_dec_ref(x_387); + 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_408; lean_object* x_409; lean_object* x_410; -lean_dec(x_402); -lean_dec(x_401); -lean_dec(x_400); -lean_dec(x_396); -lean_dec(x_355); -x_408 = lean_ctor_get(x_406, 1); +lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; +lean_inc(x_371); +if (lean_is_scalar(x_375)) { + x_407 = lean_alloc_ctor(0, 4, 1); +} else { + x_407 = x_375; +} +lean_ctor_set(x_407, 0, x_376); +lean_ctor_set(x_407, 1, x_371); +lean_ctor_set(x_407, 2, x_372); +lean_ctor_set(x_407, 3, x_373); +lean_ctor_set_uint8(x_407, sizeof(void*)*4, x_374); +x_408 = lean_ctor_get(x_9, 0); lean_inc(x_408); -lean_dec(x_406); -x_409 = lean_unsigned_to_nat(1u); -x_410 = lean_nat_add(x_2, x_409); -lean_dec(x_2); -x_2 = x_410; -x_3 = x_405; -x_4 = x_347; -x_5 = x_408; -goto _start; -} -else +lean_dec(x_9); +x_409 = l_Lean_Syntax_getId(x_408); +lean_inc(x_362); +x_410 = lean_local_ctx_mk_local_decl(x_371, x_367, x_409, x_362, x_14); +lean_inc(x_359); +lean_inc(x_362); +x_411 = l___private_Init_Lean_Elab_Binders_12__propagateExpectedType(x_408, x_369, x_362, x_407, x_359, x_368); +lean_dec(x_408); +if (lean_obj_tag(x_411) == 0) { -lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; -lean_dec(x_405); -x_412 = lean_ctor_get(x_406, 1); +lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; uint8_t x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; +x_412 = lean_ctor_get(x_411, 0); lean_inc(x_412); -lean_dec(x_406); -x_413 = lean_ctor_get(x_407, 0); +x_413 = lean_ctor_get(x_411, 1); lean_inc(x_413); -lean_dec(x_407); -x_414 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_412); -x_415 = lean_ctor_get(x_414, 1); +lean_dec(x_411); +x_414 = lean_ctor_get(x_412, 0); +lean_inc(x_414); +x_415 = lean_ctor_get(x_412, 2); lean_inc(x_415); +x_416 = lean_ctor_get(x_412, 3); +lean_inc(x_416); +x_417 = lean_ctor_get_uint8(x_412, sizeof(void*)*4); +if (lean_is_exclusive(x_412)) { + lean_ctor_release(x_412, 0); + lean_ctor_release(x_412, 1); + lean_ctor_release(x_412, 2); + lean_ctor_release(x_412, 3); + x_418 = x_412; +} else { + lean_dec_ref(x_412); + x_418 = lean_box(0); +} +lean_inc(x_416); +lean_inc(x_415); +lean_inc(x_410); +lean_inc(x_414); +if (lean_is_scalar(x_418)) { + x_419 = lean_alloc_ctor(0, 4, 1); +} else { + x_419 = x_418; +} +lean_ctor_set(x_419, 0, x_414); +lean_ctor_set(x_419, 1, x_410); +lean_ctor_set(x_419, 2, x_415); +lean_ctor_set(x_419, 3, x_416); +lean_ctor_set_uint8(x_419, sizeof(void*)*4, x_417); +lean_inc(x_359); +x_420 = l_Lean_Elab_Term_isClass(x_17, x_362, x_359, x_413); +lean_dec(x_17); +if (lean_obj_tag(x_420) == 0) +{ +lean_object* x_421; +x_421 = lean_ctor_get(x_420, 0); +lean_inc(x_421); +if (lean_obj_tag(x_421) == 0) +{ +lean_object* x_422; lean_object* x_423; lean_object* x_424; +lean_dec(x_416); +lean_dec(x_415); lean_dec(x_414); -x_416 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_416, 0, x_413); -lean_ctor_set(x_416, 1, x_355); -x_417 = lean_array_push(x_401, x_416); -x_418 = lean_unsigned_to_nat(1u); -x_419 = lean_nat_add(x_2, x_418); +lean_dec(x_410); +lean_dec(x_369); +x_422 = lean_ctor_get(x_420, 1); +lean_inc(x_422); +lean_dec(x_420); +x_423 = lean_unsigned_to_nat(1u); +x_424 = lean_nat_add(x_2, x_423); lean_dec(x_2); -x_420 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_420, 0, x_400); -lean_ctor_set(x_420, 1, x_396); -lean_ctor_set(x_420, 2, x_417); -lean_ctor_set(x_420, 3, x_402); -lean_ctor_set_uint8(x_420, sizeof(void*)*4, x_403); -x_2 = x_419; -x_3 = x_420; -x_4 = x_347; -x_5 = x_415; +x_2 = x_424; +x_3 = x_419; +x_4 = x_359; +x_5 = x_422; +goto _start; +} +else +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; +lean_dec(x_419); +x_426 = lean_ctor_get(x_420, 1); +lean_inc(x_426); +lean_dec(x_420); +x_427 = lean_ctor_get(x_421, 0); +lean_inc(x_427); +lean_dec(x_421); +x_428 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_426); +x_429 = lean_ctor_get(x_428, 1); +lean_inc(x_429); +lean_dec(x_428); +x_430 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_430, 0, x_427); +lean_ctor_set(x_430, 1, x_369); +x_431 = lean_array_push(x_415, x_430); +x_432 = lean_unsigned_to_nat(1u); +x_433 = lean_nat_add(x_2, x_432); +lean_dec(x_2); +x_434 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_434, 0, x_414); +lean_ctor_set(x_434, 1, x_410); +lean_ctor_set(x_434, 2, x_431); +lean_ctor_set(x_434, 3, x_416); +lean_ctor_set_uint8(x_434, sizeof(void*)*4, x_417); +x_2 = x_433; +x_3 = x_434; +x_4 = x_359; +x_5 = x_429; goto _start; } } else { -lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; -lean_dec(x_405); -lean_dec(x_402); -lean_dec(x_401); -lean_dec(x_400); -lean_dec(x_396); -lean_dec(x_355); -lean_dec(x_347); +lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; +lean_dec(x_419); +lean_dec(x_416); +lean_dec(x_415); +lean_dec(x_414); +lean_dec(x_410); +lean_dec(x_369); +lean_dec(x_359); lean_dec(x_2); -x_422 = lean_ctor_get(x_406, 0); -lean_inc(x_422); -x_423 = lean_ctor_get(x_406, 1); -lean_inc(x_423); -if (lean_is_exclusive(x_406)) { - lean_ctor_release(x_406, 0); - lean_ctor_release(x_406, 1); - x_424 = x_406; +x_436 = lean_ctor_get(x_420, 0); +lean_inc(x_436); +x_437 = lean_ctor_get(x_420, 1); +lean_inc(x_437); +if (lean_is_exclusive(x_420)) { + lean_ctor_release(x_420, 0); + lean_ctor_release(x_420, 1); + x_438 = x_420; } else { - lean_dec_ref(x_406); - x_424 = lean_box(0); + lean_dec_ref(x_420); + x_438 = lean_box(0); } -if (lean_is_scalar(x_424)) { - x_425 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_438)) { + x_439 = lean_alloc_ctor(1, 2, 0); } else { - x_425 = x_424; + x_439 = x_438; } -lean_ctor_set(x_425, 0, x_422); -lean_ctor_set(x_425, 1, x_423); -return x_425; +lean_ctor_set(x_439, 0, x_436); +lean_ctor_set(x_439, 1, x_437); +return x_439; } } else { -lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; -lean_dec(x_396); -lean_dec(x_355); -lean_dec(x_350); -lean_dec(x_347); +lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; +lean_dec(x_410); +lean_dec(x_369); +lean_dec(x_362); +lean_dec(x_359); lean_dec(x_17); lean_dec(x_2); -x_426 = lean_ctor_get(x_397, 0); -lean_inc(x_426); -x_427 = lean_ctor_get(x_397, 1); -lean_inc(x_427); -if (lean_is_exclusive(x_397)) { - lean_ctor_release(x_397, 0); - lean_ctor_release(x_397, 1); - x_428 = x_397; +x_440 = lean_ctor_get(x_411, 0); +lean_inc(x_440); +x_441 = lean_ctor_get(x_411, 1); +lean_inc(x_441); +if (lean_is_exclusive(x_411)) { + lean_ctor_release(x_411, 0); + lean_ctor_release(x_411, 1); + x_442 = x_411; } else { - lean_dec_ref(x_397); - x_428 = lean_box(0); + lean_dec_ref(x_411); + x_442 = lean_box(0); } -if (lean_is_scalar(x_428)) { - x_429 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_442)) { + x_443 = lean_alloc_ctor(1, 2, 0); } else { - x_429 = x_428; + x_443 = x_442; } -lean_ctor_set(x_429, 0, x_426); -lean_ctor_set(x_429, 1, x_427); -return x_429; +lean_ctor_set(x_443, 0, x_440); +lean_ctor_set(x_443, 1, x_441); +return x_443; +} +} +} +else +{ +lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; +lean_dec(x_362); +lean_dec(x_361); +lean_dec(x_359); +lean_dec(x_17); +lean_dec(x_9); +lean_dec(x_2); +x_444 = lean_ctor_get(x_364, 0); +lean_inc(x_444); +x_445 = lean_ctor_get(x_364, 1); +lean_inc(x_445); +if (lean_is_exclusive(x_364)) { + lean_ctor_release(x_364, 0); + lean_ctor_release(x_364, 1); + x_446 = x_364; +} else { + lean_dec_ref(x_364); + x_446 = lean_box(0); +} +if (lean_is_scalar(x_446)) { + x_447 = lean_alloc_ctor(1, 2, 0); +} else { + x_447 = x_446; +} +lean_ctor_set(x_447, 0, x_444); +lean_ctor_set(x_447, 1, x_445); +return x_447; } } } } } } -} -lean_object* l___private_Init_Lean_Elab_Binders_12__elabFunBinderViews___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_Binders_13__elabFunBinderViews___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Init_Lean_Elab_Binders_12__elabFunBinderViews___main(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_Lean_Elab_Binders_13__elabFunBinderViews___main(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } } -lean_object* l___private_Init_Lean_Elab_Binders_12__elabFunBinderViews(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_Binders_13__elabFunBinderViews(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Init_Lean_Elab_Binders_12__elabFunBinderViews___main(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_Lean_Elab_Binders_13__elabFunBinderViews___main(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l___private_Init_Lean_Elab_Binders_12__elabFunBinderViews___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_Binders_13__elabFunBinderViews___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Init_Lean_Elab_Binders_12__elabFunBinderViews(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_Lean_Elab_Binders_13__elabFunBinderViews(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } @@ -19434,7 +21723,7 @@ lean_inc(x_12); lean_dec(x_10); x_13 = lean_unsigned_to_nat(0u); lean_inc(x_4); -x_14 = l___private_Init_Lean_Elab_Binders_12__elabFunBinderViews___main(x_11, x_13, x_3, x_4, x_12); +x_14 = l___private_Init_Lean_Elab_Binders_13__elabFunBinderViews___main(x_11, x_13, x_3, x_4, x_12); lean_dec(x_11); if (lean_obj_tag(x_14) == 0) { @@ -21361,7 +23650,7 @@ lean_object* _init_l_Lean_Elab_Term_elabLetDeclAux___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +x_1 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; x_2 = l_Lean_Parser_Term_let___elambda__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -21559,41 +23848,19 @@ return x_7; lean_object* _init_l_Lean_Elab_Term_elabLetDecl___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_let___elambda__1___closed__1; -x_3 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Term_elabLetDecl___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_empty___closed__1; -x_2 = l_Lean_Elab_Term_elabLetDecl___closed__1; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Term_elabLetDecl___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l_Lean_Elab_Term_elabLetDecl___closed__4() { +lean_object* _init_l_Lean_Elab_Term_elabLetDecl___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_elabLetDecl___closed__3; +x_3 = l_Lean_Elab_Term_elabLetDecl___closed__1; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -21601,58 +23868,6 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l_Lean_Elab_Term_elabLetDecl___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_nullKind___closed__2; -x_2 = l_Array_empty___closed__1; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Term_elabLetDecl___closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(":="); -return x_1; -} -} -lean_object* _init_l_Lean_Elab_Term_elabLetDecl___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_elabLetDecl___closed__6; -x_3 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Term_elabLetDecl___closed__8() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(";"); -return x_1; -} -} -lean_object* _init_l_Lean_Elab_Term_elabLetDecl___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_elabLetDecl___closed__8; -x_3 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} lean_object* l_Lean_Elab_Term_elabLetDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -21894,7 +24109,7 @@ x_42 = lean_box(0); x_43 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_44 = l_Lean_addMacroScope(x_40, x_43, x_37); x_45 = lean_box(0); -x_46 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_46 = l_Lean_Elab_Term_elabLetDecl___closed__2; x_47 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_47, 0, x_42); lean_ctor_set(x_47, 1, x_46); @@ -21902,9 +24117,9 @@ lean_ctor_set(x_47, 2, x_44); lean_ctor_set(x_47, 3, x_45); x_48 = l_Array_empty___closed__1; x_49 = lean_array_push(x_48, x_47); -x_50 = l_Lean_Elab_Term_elabLetDecl___closed__5; +x_50 = l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__17; x_51 = lean_array_push(x_49, x_50); -x_52 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__6; +x_52 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; x_53 = lean_array_push(x_52, x_31); x_54 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; x_55 = lean_alloc_ctor(1, 2, 0); @@ -21917,16 +24132,16 @@ lean_ctor_set(x_58, 0, x_57); lean_ctor_set(x_58, 1, x_56); lean_inc(x_51); x_59 = lean_array_push(x_51, x_58); -x_60 = l_Lean_Elab_Term_elabLetDecl___closed__7; +x_60 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; x_61 = lean_array_push(x_59, x_60); x_62 = lean_array_push(x_61, x_33); x_63 = l_Lean_Parser_Term_letIdDecl___closed__2; x_64 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_64, 0, x_63); lean_ctor_set(x_64, 1, x_62); -x_65 = l_Lean_Elab_Term_elabLetDecl___closed__2; +x_65 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_66 = lean_array_push(x_65, x_64); -x_67 = l_Lean_Elab_Term_elabLetDecl___closed__9; +x_67 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; x_68 = lean_array_push(x_66, x_67); x_69 = l_Lean_mkTermIdFromIdent___closed__2; x_70 = lean_alloc_ctor(1, 2, 0); @@ -22091,7 +24306,7 @@ x_145 = lean_box(0); x_146 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_147 = l_Lean_addMacroScope(x_143, x_146, x_140); x_148 = lean_box(0); -x_149 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_149 = l_Lean_Elab_Term_elabLetDecl___closed__2; x_150 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_150, 0, x_145); lean_ctor_set(x_150, 1, x_149); @@ -22099,20 +24314,20 @@ lean_ctor_set(x_150, 2, x_147); lean_ctor_set(x_150, 3, x_148); x_151 = l_Array_empty___closed__1; x_152 = lean_array_push(x_151, x_150); -x_153 = l_Lean_Elab_Term_elabLetDecl___closed__5; +x_153 = l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__17; x_154 = lean_array_push(x_152, x_153); lean_inc(x_154); x_155 = lean_array_push(x_154, x_153); -x_156 = l_Lean_Elab_Term_elabLetDecl___closed__7; +x_156 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; x_157 = lean_array_push(x_155, x_156); x_158 = lean_array_push(x_157, x_136); x_159 = l_Lean_Parser_Term_letIdDecl___closed__2; x_160 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_160, 0, x_159); lean_ctor_set(x_160, 1, x_158); -x_161 = l_Lean_Elab_Term_elabLetDecl___closed__2; +x_161 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_162 = lean_array_push(x_161, x_160); -x_163 = l_Lean_Elab_Term_elabLetDecl___closed__9; +x_163 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; x_164 = lean_array_push(x_162, x_163); x_165 = l_Lean_mkTermIdFromIdent___closed__2; x_166 = lean_alloc_ctor(1, 2, 0); @@ -22451,7 +24666,7 @@ x_5 = l_Lean_Elab_Term_addBuiltinTermElab(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l___private_Init_Lean_Elab_Binders_13__regTraceClasses(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_Binders_14__regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -22508,6 +24723,7 @@ return x_13; } } lean_object* initialize_Init_Lean_Elab_Term(lean_object*); +lean_object* initialize_Init_Lean_Elab_Quotation(lean_object*); static bool _G_initialized = false; lean_object* initialize_Init_Lean_Elab_Binders(lean_object* w) { lean_object * res; @@ -22516,6 +24732,31 @@ _G_initialized = true; res = initialize_Init_Lean_Elab_Term(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_Lean_Elab_Quotation(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__1 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__1(); +lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__1); +l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__2 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__2(); +lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__2); +l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__3 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__3(); +lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__3); +l_Lean_Elab_Term_quoteAutoTactic___main___closed__1 = _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_quoteAutoTactic___main___closed__1); +l_Lean_Elab_Term_quoteAutoTactic___main___closed__2 = _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_quoteAutoTactic___main___closed__2); +l_Lean_Elab_Term_quoteAutoTactic___main___closed__3 = _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_quoteAutoTactic___main___closed__3); +l_Lean_Elab_Term_declareTacticSyntax___closed__1 = _init_l_Lean_Elab_Term_declareTacticSyntax___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_declareTacticSyntax___closed__1); +l_Lean_Elab_Term_declareTacticSyntax___closed__2 = _init_l_Lean_Elab_Term_declareTacticSyntax___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_declareTacticSyntax___closed__2); +l_Lean_Elab_Term_declareTacticSyntax___closed__3 = _init_l_Lean_Elab_Term_declareTacticSyntax___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_declareTacticSyntax___closed__3); +l_Lean_Elab_Term_declareTacticSyntax___closed__4 = _init_l_Lean_Elab_Term_declareTacticSyntax___closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_declareTacticSyntax___closed__4); +l_Lean_Elab_Term_declareTacticSyntax___closed__5 = _init_l_Lean_Elab_Term_declareTacticSyntax___closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_declareTacticSyntax___closed__5); l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__1 = _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__1(); lean_mark_persistent(l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__1); l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__2 = _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__2(); @@ -22530,6 +24771,8 @@ l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__6 = _init_l lean_mark_persistent(l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__6); l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__7 = _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__7(); lean_mark_persistent(l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__7); +l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__8 = _init_l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__8(); +lean_mark_persistent(l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__8); l___regBuiltinTermElab_Lean_Elab_Term_elabForall___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabForall___closed__1(); lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabForall___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabForall___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabForall___closed__2(); @@ -22549,12 +24792,6 @@ l_Lean_Elab_Term_elabArrow___lambda__1___closed__4 = _init_l_Lean_Elab_Term_elab lean_mark_persistent(l_Lean_Elab_Term_elabArrow___lambda__1___closed__4); l_Lean_Elab_Term_elabArrow___lambda__1___closed__5 = _init_l_Lean_Elab_Term_elabArrow___lambda__1___closed__5(); lean_mark_persistent(l_Lean_Elab_Term_elabArrow___lambda__1___closed__5); -l_Lean_Elab_Term_elabArrow___lambda__1___closed__6 = _init_l_Lean_Elab_Term_elabArrow___lambda__1___closed__6(); -lean_mark_persistent(l_Lean_Elab_Term_elabArrow___lambda__1___closed__6); -l_Lean_Elab_Term_elabArrow___lambda__1___closed__7 = _init_l_Lean_Elab_Term_elabArrow___lambda__1___closed__7(); -lean_mark_persistent(l_Lean_Elab_Term_elabArrow___lambda__1___closed__7); -l_Lean_Elab_Term_elabArrow___lambda__1___closed__8 = _init_l_Lean_Elab_Term_elabArrow___lambda__1___closed__8(); -lean_mark_persistent(l_Lean_Elab_Term_elabArrow___lambda__1___closed__8); l_Lean_Elab_Term_elabArrow___closed__1 = _init_l_Lean_Elab_Term_elabArrow___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_elabArrow___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabArrow___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabArrow___closed__1(); @@ -22593,6 +24830,18 @@ l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___closed__8 = lean_mark_persistent(l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___closed__8); l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___closed__9 = _init_l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___closed__9(); lean_mark_persistent(l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___closed__9); +l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__1 = _init_l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__1); +l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__2 = _init_l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__2); +l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__3 = _init_l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__3); +l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__4 = _init_l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__4); +l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__5 = _init_l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__5(); +lean_mark_persistent(l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__5); +l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__6 = _init_l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__6(); +lean_mark_persistent(l___private_Init_Lean_Elab_Binders_11__checkNoOptAutoParam___closed__6); l___regBuiltinTermElab_Lean_Elab_Term_elabFun___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabFun___closed__1(); lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabFun___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabFun___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabFun___closed__2(); @@ -22612,20 +24861,6 @@ l_Lean_Elab_Term_elabLetDecl___closed__1 = _init_l_Lean_Elab_Term_elabLetDecl___ lean_mark_persistent(l_Lean_Elab_Term_elabLetDecl___closed__1); l_Lean_Elab_Term_elabLetDecl___closed__2 = _init_l_Lean_Elab_Term_elabLetDecl___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_elabLetDecl___closed__2); -l_Lean_Elab_Term_elabLetDecl___closed__3 = _init_l_Lean_Elab_Term_elabLetDecl___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_elabLetDecl___closed__3); -l_Lean_Elab_Term_elabLetDecl___closed__4 = _init_l_Lean_Elab_Term_elabLetDecl___closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_elabLetDecl___closed__4); -l_Lean_Elab_Term_elabLetDecl___closed__5 = _init_l_Lean_Elab_Term_elabLetDecl___closed__5(); -lean_mark_persistent(l_Lean_Elab_Term_elabLetDecl___closed__5); -l_Lean_Elab_Term_elabLetDecl___closed__6 = _init_l_Lean_Elab_Term_elabLetDecl___closed__6(); -lean_mark_persistent(l_Lean_Elab_Term_elabLetDecl___closed__6); -l_Lean_Elab_Term_elabLetDecl___closed__7 = _init_l_Lean_Elab_Term_elabLetDecl___closed__7(); -lean_mark_persistent(l_Lean_Elab_Term_elabLetDecl___closed__7); -l_Lean_Elab_Term_elabLetDecl___closed__8 = _init_l_Lean_Elab_Term_elabLetDecl___closed__8(); -lean_mark_persistent(l_Lean_Elab_Term_elabLetDecl___closed__8); -l_Lean_Elab_Term_elabLetDecl___closed__9 = _init_l_Lean_Elab_Term_elabLetDecl___closed__9(); -lean_mark_persistent(l_Lean_Elab_Term_elabLetDecl___closed__9); l___regBuiltinTermElab_Lean_Elab_Term_elabLetDecl___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabLetDecl___closed__1(); lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabLetDecl___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabLetDecl___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabLetDecl___closed__2(); @@ -22635,7 +24870,7 @@ lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabLetDecl___closed_ res = l___regBuiltinTermElab_Lean_Elab_Term_elabLetDecl(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l___private_Init_Lean_Elab_Binders_13__regTraceClasses(lean_io_mk_world()); +res = l___private_Init_Lean_Elab_Binders_14__regTraceClasses(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_mk_io_result(lean_box(0)); diff --git a/stage0/stdlib/Init/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Init/Lean/Elab/BuiltinNotation.c index 0706665469..b812d87411 100644 --- a/stage0/stdlib/Init/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Init/Lean/Elab/BuiltinNotation.c @@ -34,7 +34,6 @@ extern lean_object* l_Lean_Parser_Term_andthen___elambda__1___closed__1; lean_object* l___regBuiltinMacro_Lean_Elab_Term_elabGE(lean_object*); lean_object* l_Lean_Elab_Term_elabBAnd___closed__1; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__13; -extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__34; extern lean_object* l_Lean_Expr_eq_x3f___closed__2; lean_object* l___regBuiltinMacro_Lean_Elab_Term_elabNe(lean_object*); lean_object* l___regBuiltinMacro_Lean_Elab_Term_elabEq___closed__1; @@ -214,6 +213,7 @@ extern lean_object* l_Lean_Parser_Term_mul___elambda__1___closed__2; lean_object* l___regBuiltinMacro_Lean_Elab_Term_elabOrElse(lean_object*); extern lean_object* l_Lean_Parser_Term_div___elambda__1___closed__1; extern lean_object* l_Lean_Parser_Term_tparser_x21___elambda__1___closed__2; +extern lean_object* l_Lean_Parser_Tactic_seq___elambda__1___closed__3; extern lean_object* l_Lean_Parser_Term_ge___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabseq___closed__3; extern lean_object* l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; @@ -223,7 +223,6 @@ lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean lean_object* l_Lean_Elab_Term_expandIf___closed__4; extern lean_object* l_Lean_Parser_Term_sub___elambda__1___closed__1; lean_object* l___regBuiltinMacro_Lean_Elab_Term_elabseq(lean_object*); -extern lean_object* l_Lean_Parser_Term_seq___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabTParserMacro___lambda__1___closed__10; lean_object* l_Lean_Elab_Term_elabLE___closed__1; lean_object* l_Lean_Elab_Term_ElabFComp___closed__4; @@ -285,7 +284,6 @@ extern lean_object* l_Lean_Parser_Term_iff___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__9; lean_object* l_Lean_Elab_Term_elabLE(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; -extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; lean_object* l_Lean_Elab_Term_expandShow(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabOr___closed__1; lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__3; @@ -362,7 +360,6 @@ lean_object* l___regBuiltinMacro_Lean_Elab_Term_elabMod___closed__1; lean_object* l_Lean_Elab_Term_elabMap___closed__2; lean_object* l_Lean_Elab_Term_expandSubtype___closed__3; lean_object* l_Lean_Elab_Term_expandHave(lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; extern lean_object* l_Lean_Parser_Term_le___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Term_str___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__20; @@ -397,7 +394,6 @@ lean_object* l_Lean_Elab_Term_expandIf___closed__8; lean_object* l___regBuiltinMacro_Lean_Elab_Term_elabBNe___closed__1; extern lean_object* l___private_Init_Util_1__mkPanicMessage___closed__2; extern lean_object* l_Lean_Parser_Term_append___elambda__1___closed__2; -extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; lean_object* l_Lean_Elab_Term_elabGE___closed__1; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__10; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__32; @@ -424,6 +420,7 @@ lean_object* l_Lean_Elab_Term_elabParserMacro___closed__1; lean_object* l_Lean_Elab_Term_ElabFComp___closed__3; lean_object* l_Lean_Elab_Term_elabAndThen___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__9; +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; extern lean_object* l_Lean_Parser_Term_and___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__13; extern lean_object* l_Lean_Parser_Term_mapRev___elambda__1___closed__1; @@ -471,10 +468,12 @@ lean_object* l_Lean_Elab_Term_elabCons(lean_object*, lean_object*, lean_object*) extern lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; lean_object* l_Lean_Elab_Term_elabMod(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__7; +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; extern lean_object* l_Lean_Parser_Term_map___elambda__1___closed__2; lean_object* l___regBuiltinMacro_Lean_Elab_Term_elabBOr(lean_object*); extern lean_object* l_Lean_Parser_Term_orelse___elambda__1___closed__2; lean_object* l___regBuiltinMacro_Lean_Elab_Term_elabMapConst___closed__1; +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; lean_object* l___regBuiltinMacro_Lean_Elab_Term_elabLT(lean_object*); lean_object* l_Lean_Elab_Term_elabBEq___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabTParserMacro(lean_object*); @@ -492,6 +491,7 @@ extern lean_object* l_Lean_Parser_Term_bne___elambda__1___closed__1; lean_object* l___regBuiltinMacro_Lean_Elab_Term_elabAndM(lean_object*); lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__25; lean_object* l___regBuiltinMacro_Lean_Elab_Term_elabAnd___closed__1; +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; extern lean_object* l_Lean_Parser_Term_map___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_elabAndThen(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinMacro_Lean_Elab_Term_elabGT___closed__1; @@ -1135,9 +1135,9 @@ x_91 = lean_array_push(x_90, x_72); x_92 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_92, 0, x_45); lean_ctor_set(x_92, 1, x_91); -x_93 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_93 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_94 = lean_array_push(x_93, x_92); -x_95 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_95 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_96 = lean_array_push(x_94, x_95); x_97 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_98 = lean_alloc_ctor(1, 2, 0); @@ -1453,9 +1453,9 @@ x_39 = l_Lean_nullKind___closed__2; x_40 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_40, 0, x_39); lean_ctor_set(x_40, 1, x_38); -x_41 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_41 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_42 = lean_array_push(x_41, x_40); -x_43 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_43 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_44 = lean_array_push(x_42, x_43); x_45 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_46 = lean_alloc_ctor(1, 2, 0); @@ -1623,9 +1623,9 @@ x_112 = lean_array_push(x_105, x_111); x_113 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_113, 0, x_69); lean_ctor_set(x_113, 1, x_112); -x_114 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_114 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_115 = lean_array_push(x_114, x_113); -x_116 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_116 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_117 = lean_array_push(x_115, x_116); x_118 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_119 = lean_alloc_ctor(1, 2, 0); @@ -2454,9 +2454,9 @@ x_28 = lean_array_push(x_20, x_27); x_29 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_29, 0, x_26); lean_ctor_set(x_29, 1, x_28); -x_30 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_30 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_31 = lean_array_push(x_30, x_29); -x_32 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_32 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_33 = lean_array_push(x_31, x_32); x_34 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_35 = lean_alloc_ctor(1, 2, 0); @@ -2695,9 +2695,9 @@ x_41 = lean_array_push(x_33, x_40); x_42 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_42, 0, x_39); lean_ctor_set(x_42, 1, x_41); -x_43 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_43 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_44 = lean_array_push(x_43, x_42); -x_45 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_45 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_46 = lean_array_push(x_44, x_45); x_47 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_48 = lean_alloc_ctor(1, 2, 0); @@ -2803,9 +2803,9 @@ x_97 = lean_array_push(x_89, x_96); x_98 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_98, 0, x_95); lean_ctor_set(x_98, 1, x_97); -x_99 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_99 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_100 = lean_array_push(x_99, x_98); -x_101 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_101 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_102 = lean_array_push(x_100, x_101); x_103 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_104 = lean_alloc_ctor(1, 2, 0); @@ -2949,9 +2949,9 @@ x_165 = lean_array_push(x_158, x_164); x_166 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_166, 0, x_135); lean_ctor_set(x_166, 1, x_165); -x_167 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_167 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_168 = lean_array_push(x_167, x_166); -x_169 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_169 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_170 = lean_array_push(x_168, x_169); x_171 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_172 = lean_alloc_ctor(1, 2, 0); @@ -3052,9 +3052,9 @@ x_218 = lean_array_push(x_211, x_217); x_219 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_219, 0, x_135); lean_ctor_set(x_219, 1, x_218); -x_220 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_220 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_221 = lean_array_push(x_220, x_219); -x_222 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_222 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_223 = lean_array_push(x_221, x_222); x_224 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_225 = lean_alloc_ctor(1, 2, 0); @@ -3856,10 +3856,10 @@ lean_ctor_set(x_76, 0, x_43); lean_ctor_set(x_76, 1, x_75); x_77 = lean_array_push(x_39, x_76); x_78 = lean_array_push(x_39, x_26); -x_79 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_79 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; x_80 = l_Lean_addMacroScope(x_59, x_79, x_55); -x_81 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; -x_82 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__34; +x_81 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; +x_82 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; x_83 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_83, 0, x_21); lean_ctor_set(x_83, 1, x_81); @@ -3883,9 +3883,9 @@ x_92 = lean_array_push(x_91, x_41); x_93 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_93, 0, x_48); lean_ctor_set(x_93, 1, x_92); -x_94 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_94 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_95 = lean_array_push(x_94, x_93); -x_96 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_96 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_97 = lean_array_push(x_95, x_96); x_98 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_99 = lean_alloc_ctor(1, 2, 0); @@ -3946,10 +3946,10 @@ lean_ctor_set(x_123, 0, x_43); lean_ctor_set(x_123, 1, x_122); x_124 = lean_array_push(x_39, x_123); x_125 = lean_array_push(x_39, x_26); -x_126 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_126 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; x_127 = l_Lean_addMacroScope(x_105, x_126, x_55); -x_128 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; -x_129 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__34; +x_128 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; +x_129 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; x_130 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_130, 0, x_21); lean_ctor_set(x_130, 1, x_128); @@ -3973,9 +3973,9 @@ x_139 = lean_array_push(x_138, x_41); x_140 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_140, 0, x_48); lean_ctor_set(x_140, 1, x_139); -x_141 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_141 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_142 = lean_array_push(x_141, x_140); -x_143 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_143 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_144 = lean_array_push(x_142, x_143); x_145 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_146 = lean_alloc_ctor(1, 2, 0); @@ -4074,9 +4074,9 @@ x_191 = lean_array_push(x_190, x_41); x_192 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_192, 0, x_48); lean_ctor_set(x_192, 1, x_191); -x_193 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_193 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_194 = lean_array_push(x_193, x_192); -x_195 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_195 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_196 = lean_array_push(x_194, x_195); x_197 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_198 = lean_alloc_ctor(1, 2, 0); @@ -4182,9 +4182,9 @@ x_248 = lean_array_push(x_247, x_41); x_249 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_249, 0, x_48); lean_ctor_set(x_249, 1, x_248); -x_250 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_250 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_251 = lean_array_push(x_250, x_249); -x_252 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_252 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_253 = lean_array_push(x_251, x_252); x_254 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_255 = lean_alloc_ctor(1, 2, 0); @@ -6277,7 +6277,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_elabseq___closed__2; -x_2 = l_Lean_Parser_Term_seq___elambda__1___closed__1; +x_2 = l_Lean_Parser_Tactic_seq___elambda__1___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -6313,7 +6313,7 @@ lean_object* l___regBuiltinMacro_Lean_Elab_Term_elabseq(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Parser_Term_seq___elambda__1___closed__2; +x_2 = l_Lean_Parser_Term_seq___elambda__1___closed__1; x_3 = l___regBuiltinMacro_Lean_Elab_Term_elabseq___closed__1; x_4 = l_Lean_Elab_addBuiltinMacro(x_2, x_3, x_1); return x_4; diff --git a/stage0/stdlib/Init/Lean/Elab/Command.c b/stage0/stdlib/Init/Lean/Elab/Command.c index cf8674ab73..7af1f4a822 100644 --- a/stage0/stdlib/Init/Lean/Elab/Command.c +++ b/stage0/stdlib/Init/Lean/Elab/Command.c @@ -49,6 +49,8 @@ extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Elab_Command_withNamespace(lean_object*); extern lean_object* l_Lean_Elab_Term_elabTermAux___main___closed__6; lean_object* l_Lean_Elab_Command_CommandElabCoreM_monadState___closed__1; +lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_IO_ofExcept___at___private_Init_Lean_Elab_Util_7__ElabAttribute_add___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_trace___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_registerBuiltinCommandElabAttr___closed__1; lean_object* l_Lean_Elab_Command_addContext(lean_object*, lean_object*, lean_object*); @@ -81,7 +83,6 @@ lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_identKind___closed__2; lean_object* l_Lean_Elab_Command_withNamespace___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Command_10__toCommandResult(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_runTermElabM___rarg___closed__1; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabSetOption___closed__2; lean_object* l_Lean_Elab_Command_elabCheck___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_logUnknownDecl(lean_object*, lean_object*, lean_object*, lean_object*); @@ -113,7 +114,9 @@ lean_object* l_Lean_Elab_Command_compileDecl(lean_object*, lean_object*, lean_ob lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_elabOpenSimple___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Command_elabOpenRenaming___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabUniverse(lean_object*); +lean_object* l_Lean_Elab_Command_liftTermElabM(lean_object*); lean_object* l_Lean_Elab_Command_getCurrMacroScope___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_compileDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_declareBuiltinCommandElab___closed__5; lean_object* l___private_Init_Lean_Elab_Command_9__getVarDecls(lean_object*); lean_object* l___private_Init_Lean_Elab_Command_12__addScopes___main___closed__3; @@ -142,6 +145,7 @@ lean_object* l___private_Init_Lean_Elab_Command_13__addNamespace(lean_object*, l lean_object* l_Lean_Elab_Command_Lean_Elab_MonadMacroAdapter___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_failIfSucceeds(lean_object*); lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__2; +extern lean_object* l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___lambda__2___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_isLevelDefEqAux___main___closed__5; lean_object* l_List_foldl___main___at_Lean_Elab_Command_sortDeclLevelParams___spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -181,6 +185,7 @@ lean_object* l_Lean_Elab_Command_declareBuiltinCommandElab(lean_object*, lean_ob lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabUniverses___closed__1; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_elabOpenOnly___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_Lean_Elab_MonadMacroAdapter___closed__1; +lean_object* l_Lean_Elab_Term_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; lean_object* l_Lean_Elab_Command_State_inhabited___closed__1; lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -412,13 +417,13 @@ lean_object* l_Lean_Elab_Command_elabExport___closed__2; lean_object* l_Lean_Elab_Command_elabCommand___main___closed__1; lean_object* l_AssocList_contains___main___at_Lean_Elab_Command_addBuiltinCommandElab___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__4(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_Command_end___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_setOption___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkCommandElabAttribute___closed__1; lean_object* l_Lean_Elab_Command_withMacroExpansion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabOpen___closed__1; lean_object* l_Lean_Elab_Command_elabVariables___boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_end___elambda__1___closed__1; lean_object* l_Lean_Elab_Command_elabExport___closed__1; lean_object* l_Lean_Elab_Command_getScope(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEnd___closed__6; @@ -548,7 +553,6 @@ lean_object* l_Lean_Elab_Command_registerBuiltinCommandElabAttr___lambda__1___bo uint8_t l_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); lean_object* l_Lean_Syntax_asNode(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_elabExport___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_compile_decl(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_Lean_Elab_MonadMacroAdapter___lambda__2(lean_object*, lean_object*, lean_object*); uint8_t l___private_Init_Lean_Elab_Command_15__checkEndHeader(lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, lean_object*, lean_object*); @@ -557,7 +561,6 @@ lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariable lean_object* l_Lean_Elab_Command_elabInitQuot(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); -extern lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; lean_object* l_Lean_Elab_mkMessageAt___at_Lean_Elab_Command_throwError___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); lean_object* l___private_Init_Lean_Elab_Command_12__addScopes___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -575,7 +578,6 @@ extern lean_object* l_Lean_Parser_Command_synth___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_registerBuiltinCommandElabAttr___lambda__1___closed__1; lean_object* l_Lean_Elab_Command_elabSynth___closed__3; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabCheckFailure(lean_object*); -lean_object* l_IO_ofExcept___at___private_Init_Lean_Elab_Util_6__ElabAttribute_add___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkMessageAux(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Command_10__toCommandResult___boxed(lean_object*, lean_object*); @@ -584,6 +586,7 @@ lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__5; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabNamespace___closed__1; lean_object* l_Lean_Elab_Command_CommandElabM_MonadQuotation___closed__3; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabSection___closed__1; +lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__4; extern lean_object* l_Lean_initAttr; lean_object* l_Lean_Elab_Command_logTrace___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3832,7 +3835,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = l_Lean_Parser_Command_docComment___elambda__1___closed__2; lean_inc(x_1); x_9 = l_Lean_Elab_syntaxNodeKindOfAttrParam(x_1, x_8, x_3); -x_10 = l_IO_ofExcept___at___private_Init_Lean_Elab_Util_6__ElabAttribute_add___spec__1(x_9, x_5); +x_10 = l_IO_ofExcept___at___private_Init_Lean_Elab_Util_7__ElabAttribute_add___spec__1(x_9, x_5); lean_dec(x_9); if (lean_obj_tag(x_10) == 0) { @@ -5207,7 +5210,7 @@ lean_object* _init_l_Lean_Elab_Command_elabCommand___main___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +x_1 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; x_2 = l_Lean_Meta_isLevelDefEqAux___main___closed__5; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -8244,7 +8247,7 @@ x_2 = l_Lean_Elab_Command_CommandElabM_inhabited___closed__1; return x_2; } } -lean_object* _init_l_Lean_Elab_Command_runTermElabM___rarg___closed__1() { +lean_object* _init_l_Lean_Elab_Command_liftTermElabM___rarg___closed__1() { _start: { lean_object* x_1; @@ -8252,6 +8255,432 @@ x_1 = l_Lean_Elab_Command_CommandElabM_inhabited(lean_box(0)); return x_1; } } +lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +lean_inc(x_3); +x_5 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_4); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_3, x_6, x_1); +x_9 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_6); +lean_dec(x_6); +x_10 = lean_apply_2(x_2, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +lean_inc(x_3); +x_13 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_7); +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; uint8_t x_19; +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_dec(x_13); +x_17 = lean_ctor_get(x_14, 0); +lean_inc(x_17); +lean_dec(x_14); +x_18 = lean_ctor_get(x_12, 2); +lean_inc(x_18); +lean_dec(x_12); +x_19 = !lean_is_exclusive(x_15); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_15, 1); +lean_dec(x_20); +x_21 = lean_ctor_get(x_15, 0); +lean_dec(x_21); +lean_ctor_set(x_15, 1, x_18); +lean_ctor_set(x_15, 0, x_17); +x_22 = l___private_Init_Lean_Elab_Command_3__setState(x_15, x_3, x_16); +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_22, 0); +lean_dec(x_24); +lean_ctor_set(x_22, 0, x_11); +return x_22; +} +else +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_11); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +else +{ +uint8_t x_27; +lean_dec(x_11); +x_27 = !lean_is_exclusive(x_22); +if (x_27 == 0) +{ +return x_22; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_22, 0); +x_29 = lean_ctor_get(x_22, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_22); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_15, 2); +x_32 = lean_ctor_get(x_15, 3); +x_33 = lean_ctor_get(x_15, 4); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_15); +x_34 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_34, 0, x_17); +lean_ctor_set(x_34, 1, x_18); +lean_ctor_set(x_34, 2, x_31); +lean_ctor_set(x_34, 3, x_32); +lean_ctor_set(x_34, 4, x_33); +x_35 = l___private_Init_Lean_Elab_Command_3__setState(x_34, x_3, x_16); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_37 = x_35; +} else { + lean_dec_ref(x_35); + x_37 = lean_box(0); +} +if (lean_is_scalar(x_37)) { + x_38 = lean_alloc_ctor(0, 2, 0); +} else { + x_38 = x_37; +} +lean_ctor_set(x_38, 0, x_11); +lean_ctor_set(x_38, 1, x_36); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_11); +x_39 = lean_ctor_get(x_35, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_35, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_41 = x_35; +} else { + lean_dec_ref(x_35); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(1, 2, 0); +} else { + x_42 = x_41; +} +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +} +else +{ +uint8_t x_43; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_3); +x_43 = !lean_is_exclusive(x_13); +if (x_43 == 0) +{ +return x_13; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_13, 0); +x_45 = lean_ctor_get(x_13, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_13); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; +} +} +} +else +{ +lean_object* x_47; +x_47 = lean_ctor_get(x_10, 0); +lean_inc(x_47); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_10, 1); +lean_inc(x_48); +lean_dec(x_10); +x_49 = lean_ctor_get(x_47, 0); +lean_inc(x_49); +lean_dec(x_47); +lean_inc(x_3); +x_50 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_7); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_51 = lean_ctor_get(x_48, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = lean_ctor_get(x_51, 0); +lean_inc(x_54); +lean_dec(x_51); +x_55 = lean_ctor_get(x_48, 2); +lean_inc(x_55); +lean_dec(x_48); +x_56 = !lean_is_exclusive(x_52); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_52, 1); +lean_dec(x_57); +x_58 = lean_ctor_get(x_52, 0); +lean_dec(x_58); +lean_ctor_set(x_52, 1, x_55); +lean_ctor_set(x_52, 0, x_54); +x_59 = l___private_Init_Lean_Elab_Command_3__setState(x_52, x_3, x_53); +if (lean_obj_tag(x_59) == 0) +{ +uint8_t x_60; +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) +{ +lean_object* x_61; +x_61 = lean_ctor_get(x_59, 0); +lean_dec(x_61); +lean_ctor_set_tag(x_59, 1); +lean_ctor_set(x_59, 0, x_49); +return x_59; +} +else +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_59, 1); +lean_inc(x_62); +lean_dec(x_59); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_49); +lean_ctor_set(x_63, 1, x_62); +return x_63; +} +} +else +{ +uint8_t x_64; +lean_dec(x_49); +x_64 = !lean_is_exclusive(x_59); +if (x_64 == 0) +{ +return x_59; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_59, 0); +x_66 = lean_ctor_get(x_59, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_59); +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; lean_object* x_71; lean_object* x_72; +x_68 = lean_ctor_get(x_52, 2); +x_69 = lean_ctor_get(x_52, 3); +x_70 = lean_ctor_get(x_52, 4); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_52); +x_71 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_71, 0, x_54); +lean_ctor_set(x_71, 1, x_55); +lean_ctor_set(x_71, 2, x_68); +lean_ctor_set(x_71, 3, x_69); +lean_ctor_set(x_71, 4, x_70); +x_72 = l___private_Init_Lean_Elab_Command_3__setState(x_71, x_3, x_53); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_72, 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; +} else { + lean_dec_ref(x_72); + x_74 = lean_box(0); +} +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(1, 2, 0); +} else { + x_75 = x_74; + lean_ctor_set_tag(x_75, 1); +} +lean_ctor_set(x_75, 0, x_49); +lean_ctor_set(x_75, 1, x_73); +return x_75; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_dec(x_49); +x_76 = lean_ctor_get(x_72, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_72, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_78 = x_72; +} else { + lean_dec_ref(x_72); + x_78 = lean_box(0); +} +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); +} else { + x_79 = x_78; +} +lean_ctor_set(x_79, 0, x_76); +lean_ctor_set(x_79, 1, x_77); +return x_79; +} +} +} +else +{ +uint8_t x_80; +lean_dec(x_49); +lean_dec(x_48); +lean_dec(x_3); +x_80 = !lean_is_exclusive(x_50); +if (x_80 == 0) +{ +return x_50; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_50, 0); +x_82 = lean_ctor_get(x_50, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_50); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} +} +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_dec(x_10); +x_84 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; +x_85 = l_unreachable_x21___rarg(x_84); +x_86 = lean_apply_2(x_85, x_3, x_7); +return x_86; +} +} +} +else +{ +uint8_t x_87; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_87 = !lean_is_exclusive(x_5); +if (x_87 == 0) +{ +return x_5; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_5, 0); +x_89 = lean_ctor_get(x_5, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_5); +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_Elab_Command_liftTermElabM(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_liftTermElabM___rarg), 4, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Command_runTermElabM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -8260,414 +8689,452 @@ lean_inc(x_3); x_5 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_4); if (lean_obj_tag(x_5) == 0) { -lean_object* 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_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 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 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_6); -x_9 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_3, x_6, x_1); -x_10 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_6); lean_dec(x_6); -x_11 = l_Lean_Elab_Term_elabBinders___rarg(x_8, x_2, x_9, x_10); -lean_dec(x_8); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); lean_inc(x_3); -x_14 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_7); +x_9 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_7); +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; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_3, x_10, x_1); +x_13 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_10); +lean_dec(x_10); +x_14 = l_Lean_Elab_Term_elabBinders___rarg(x_8, x_2, x_12, x_13); +lean_dec(x_8); if (lean_obj_tag(x_14) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_15 = lean_ctor_get(x_13, 0); +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 0); +x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); lean_dec(x_14); -x_18 = lean_ctor_get(x_15, 0); +lean_inc(x_3); +x_17 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_11); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_18 = lean_ctor_get(x_16, 0); lean_inc(x_18); -lean_dec(x_15); -x_19 = lean_ctor_get(x_13, 2); +x_19 = lean_ctor_get(x_17, 0); lean_inc(x_19); -lean_dec(x_13); -x_20 = !lean_is_exclusive(x_16); -if (x_20 == 0) +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_ctor_get(x_16, 2); +lean_inc(x_22); +lean_dec(x_16); +x_23 = !lean_is_exclusive(x_19); +if (x_23 == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_16, 1); -lean_dec(x_21); -x_22 = lean_ctor_get(x_16, 0); -lean_dec(x_22); -lean_ctor_set(x_16, 1, x_19); -lean_ctor_set(x_16, 0, x_18); -x_23 = l___private_Init_Lean_Elab_Command_3__setState(x_16, x_3, x_17); -if (lean_obj_tag(x_23) == 0) -{ -uint8_t x_24; -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) -{ -lean_object* x_25; -x_25 = lean_ctor_get(x_23, 0); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_19, 1); +lean_dec(x_24); +x_25 = lean_ctor_get(x_19, 0); lean_dec(x_25); -lean_ctor_set(x_23, 0, x_12); -return x_23; +lean_ctor_set(x_19, 1, x_22); +lean_ctor_set(x_19, 0, x_21); +x_26 = l___private_Init_Lean_Elab_Command_3__setState(x_19, x_3, x_20); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); +lean_ctor_set(x_26, 0, x_15); +return x_26; } else { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_23, 1); -lean_inc(x_26); -lean_dec(x_23); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_12); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -else -{ -uint8_t x_28; -lean_dec(x_12); -x_28 = !lean_is_exclusive(x_23); -if (x_28 == 0) -{ -return x_23; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_23, 0); -x_30 = lean_ctor_get(x_23, 1); -lean_inc(x_30); +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_26, 1); lean_inc(x_29); -lean_dec(x_23); -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_26); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_15); +lean_ctor_set(x_30, 1, x_29); +return x_30; } } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_32 = lean_ctor_get(x_16, 2); -x_33 = lean_ctor_get(x_16, 3); -x_34 = lean_ctor_get(x_16, 4); -lean_inc(x_34); +uint8_t x_31; +lean_dec(x_15); +x_31 = !lean_is_exclusive(x_26); +if (x_31 == 0) +{ +return x_26; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_26, 0); +x_33 = lean_ctor_get(x_26, 1); lean_inc(x_33); lean_inc(x_32); -lean_dec(x_16); -x_35 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_35, 0, x_18); -lean_ctor_set(x_35, 1, x_19); -lean_ctor_set(x_35, 2, x_32); -lean_ctor_set(x_35, 3, x_33); -lean_ctor_set(x_35, 4, x_34); -x_36 = l___private_Init_Lean_Elab_Command_3__setState(x_35, x_3, x_17); -if (lean_obj_tag(x_36) == 0) +lean_dec(x_26); +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_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_36, 1); +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_19, 2); +x_36 = lean_ctor_get(x_19, 3); +x_37 = lean_ctor_get(x_19, 4); lean_inc(x_37); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - x_38 = x_36; -} else { - lean_dec_ref(x_36); - x_38 = lean_box(0); -} -if (lean_is_scalar(x_38)) { - x_39 = lean_alloc_ctor(0, 2, 0); -} else { - x_39 = x_38; -} -lean_ctor_set(x_39, 0, x_12); -lean_ctor_set(x_39, 1, x_37); -return x_39; -} -else +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_19); +x_38 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_38, 0, x_21); +lean_ctor_set(x_38, 1, x_22); +lean_ctor_set(x_38, 2, x_35); +lean_ctor_set(x_38, 3, x_36); +lean_ctor_set(x_38, 4, x_37); +x_39 = l___private_Init_Lean_Elab_Command_3__setState(x_38, x_3, x_20); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -lean_dec(x_12); -x_40 = lean_ctor_get(x_36, 0); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_39, 1); lean_inc(x_40); -x_41 = lean_ctor_get(x_36, 1); -lean_inc(x_41); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - x_42 = x_36; +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; } else { - lean_dec_ref(x_36); - x_42 = lean_box(0); + lean_dec_ref(x_39); + x_41 = lean_box(0); } -if (lean_is_scalar(x_42)) { - x_43 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(0, 2, 0); } else { - x_43 = x_42; + x_42 = x_41; } -lean_ctor_set(x_43, 0, x_40); -lean_ctor_set(x_43, 1, x_41); -return x_43; +lean_ctor_set(x_42, 0, x_15); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_15); +x_43 = lean_ctor_get(x_39, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_39, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_45 = x_39; +} else { + lean_dec_ref(x_39); + x_45 = lean_box(0); +} +if (lean_is_scalar(x_45)) { + x_46 = lean_alloc_ctor(1, 2, 0); +} else { + x_46 = x_45; +} +lean_ctor_set(x_46, 0, x_43); +lean_ctor_set(x_46, 1, x_44); +return x_46; } } } else { -uint8_t x_44; -lean_dec(x_13); -lean_dec(x_12); +uint8_t x_47; +lean_dec(x_16); +lean_dec(x_15); lean_dec(x_3); -x_44 = !lean_is_exclusive(x_14); -if (x_44 == 0) +x_47 = !lean_is_exclusive(x_17); +if (x_47 == 0) { -return x_14; +return x_17; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_14, 0); -x_46 = lean_ctor_get(x_14, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_14); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -} -else -{ -lean_object* x_48; -x_48 = lean_ctor_get(x_11, 0); -lean_inc(x_48); -if (lean_obj_tag(x_48) == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_11, 1); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_17, 0); +x_49 = lean_ctor_get(x_17, 1); lean_inc(x_49); -lean_dec(x_11); -x_50 = lean_ctor_get(x_48, 0); -lean_inc(x_50); -lean_dec(x_48); -lean_inc(x_3); -x_51 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_7); +lean_inc(x_48); +lean_dec(x_17); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +else +{ +lean_object* x_51; +x_51 = lean_ctor_get(x_14, 0); +lean_inc(x_51); if (lean_obj_tag(x_51) == 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_49, 0); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_14, 1); lean_inc(x_52); +lean_dec(x_14); x_53 = lean_ctor_get(x_51, 0); lean_inc(x_53); -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); lean_dec(x_51); +lean_inc(x_3); +x_54 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_11); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; x_55 = lean_ctor_get(x_52, 0); lean_inc(x_55); -lean_dec(x_52); -x_56 = lean_ctor_get(x_49, 2); +x_56 = lean_ctor_get(x_54, 0); lean_inc(x_56); -lean_dec(x_49); -x_57 = !lean_is_exclusive(x_53); -if (x_57 == 0) +x_57 = lean_ctor_get(x_54, 1); +lean_inc(x_57); +lean_dec(x_54); +x_58 = lean_ctor_get(x_55, 0); +lean_inc(x_58); +lean_dec(x_55); +x_59 = lean_ctor_get(x_52, 2); +lean_inc(x_59); +lean_dec(x_52); +x_60 = !lean_is_exclusive(x_56); +if (x_60 == 0) { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_53, 1); -lean_dec(x_58); -x_59 = lean_ctor_get(x_53, 0); -lean_dec(x_59); -lean_ctor_set(x_53, 1, x_56); -lean_ctor_set(x_53, 0, x_55); -x_60 = l___private_Init_Lean_Elab_Command_3__setState(x_53, x_3, x_54); -if (lean_obj_tag(x_60) == 0) -{ -uint8_t x_61; -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) -{ -lean_object* x_62; -x_62 = lean_ctor_get(x_60, 0); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_56, 1); +lean_dec(x_61); +x_62 = lean_ctor_get(x_56, 0); lean_dec(x_62); -lean_ctor_set_tag(x_60, 1); -lean_ctor_set(x_60, 0, x_50); -return x_60; +lean_ctor_set(x_56, 1, x_59); +lean_ctor_set(x_56, 0, x_58); +x_63 = l___private_Init_Lean_Elab_Command_3__setState(x_56, x_3, x_57); +if (lean_obj_tag(x_63) == 0) +{ +uint8_t x_64; +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +lean_object* x_65; +x_65 = lean_ctor_get(x_63, 0); +lean_dec(x_65); +lean_ctor_set_tag(x_63, 1); +lean_ctor_set(x_63, 0, x_53); +return x_63; } else { -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); -lean_dec(x_60); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_50); -lean_ctor_set(x_64, 1, x_63); -return x_64; -} -} -else -{ -uint8_t x_65; -lean_dec(x_50); -x_65 = !lean_is_exclusive(x_60); -if (x_65 == 0) -{ -return x_60; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_60, 0); -x_67 = lean_ctor_get(x_60, 1); -lean_inc(x_67); +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_63, 1); lean_inc(x_66); -lean_dec(x_60); -x_68 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_67); -return x_68; -} +lean_dec(x_63); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_53); +lean_ctor_set(x_67, 1, x_66); +return x_67; } } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_69 = lean_ctor_get(x_53, 2); -x_70 = lean_ctor_get(x_53, 3); -x_71 = lean_ctor_get(x_53, 4); -lean_inc(x_71); +uint8_t x_68; +lean_dec(x_53); +x_68 = !lean_is_exclusive(x_63); +if (x_68 == 0) +{ +return x_63; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_63, 0); +x_70 = lean_ctor_get(x_63, 1); lean_inc(x_70); lean_inc(x_69); -lean_dec(x_53); -x_72 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_72, 0, x_55); -lean_ctor_set(x_72, 1, x_56); -lean_ctor_set(x_72, 2, x_69); -lean_ctor_set(x_72, 3, x_70); -lean_ctor_set(x_72, 4, x_71); -x_73 = l___private_Init_Lean_Elab_Command_3__setState(x_72, x_3, x_54); -if (lean_obj_tag(x_73) == 0) +lean_dec(x_63); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +} +else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_73, 1); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_72 = lean_ctor_get(x_56, 2); +x_73 = lean_ctor_get(x_56, 3); +x_74 = lean_ctor_get(x_56, 4); 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_73); - x_75 = lean_box(0); -} -if (lean_is_scalar(x_75)) { - x_76 = lean_alloc_ctor(1, 2, 0); -} else { - x_76 = x_75; - lean_ctor_set_tag(x_76, 1); -} -lean_ctor_set(x_76, 0, x_50); -lean_ctor_set(x_76, 1, x_74); -return x_76; -} -else +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_56); +x_75 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_75, 0, x_58); +lean_ctor_set(x_75, 1, x_59); +lean_ctor_set(x_75, 2, x_72); +lean_ctor_set(x_75, 3, x_73); +lean_ctor_set(x_75, 4, x_74); +x_76 = l___private_Init_Lean_Elab_Command_3__setState(x_75, x_3, x_57); +if (lean_obj_tag(x_76) == 0) { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_50); -x_77 = lean_ctor_get(x_73, 0); +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_76, 1); lean_inc(x_77); -x_78 = lean_ctor_get(x_73, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_79 = x_73; +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_78 = x_76; } else { - lean_dec_ref(x_73); - x_79 = lean_box(0); + lean_dec_ref(x_76); + x_78 = lean_box(0); } -if (lean_is_scalar(x_79)) { - x_80 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); } else { - x_80 = x_79; + x_79 = x_78; + lean_ctor_set_tag(x_79, 1); } -lean_ctor_set(x_80, 0, x_77); -lean_ctor_set(x_80, 1, x_78); -return x_80; +lean_ctor_set(x_79, 0, x_53); +lean_ctor_set(x_79, 1, x_77); +return x_79; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_53); +x_80 = lean_ctor_get(x_76, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_76, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_82 = x_76; +} else { + lean_dec_ref(x_76); + x_82 = lean_box(0); +} +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); +} else { + x_83 = x_82; +} +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_81); +return x_83; } } } else { -uint8_t x_81; -lean_dec(x_50); -lean_dec(x_49); +uint8_t x_84; +lean_dec(x_53); +lean_dec(x_52); lean_dec(x_3); -x_81 = !lean_is_exclusive(x_51); -if (x_81 == 0) +x_84 = !lean_is_exclusive(x_54); +if (x_84 == 0) { -return x_51; -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_51, 0); -x_83 = lean_ctor_get(x_51, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_51); -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; -} -} +return x_54; } else { lean_object* x_85; lean_object* x_86; lean_object* x_87; -lean_dec(x_11); -x_85 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; -x_86 = l_unreachable_x21___rarg(x_85); -x_87 = lean_apply_2(x_86, x_3, x_7); +x_85 = lean_ctor_get(x_54, 0); +x_86 = lean_ctor_get(x_54, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_54); +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 { -uint8_t x_88; +lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_14); +x_88 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; +x_89 = l_unreachable_x21___rarg(x_88); +x_90 = lean_apply_2(x_89, x_3, x_11); +return x_90; +} +} +} +else +{ +uint8_t x_91; +lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_88 = !lean_is_exclusive(x_5); -if (x_88 == 0) +x_91 = !lean_is_exclusive(x_9); +if (x_91 == 0) +{ +return x_9; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_9, 0); +x_93 = lean_ctor_get(x_9, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_9); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +return x_94; +} +} +} +else +{ +uint8_t x_95; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_95 = !lean_is_exclusive(x_5); +if (x_95 == 0) { return x_5; } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_5, 0); -x_90 = lean_ctor_get(x_5, 1); -lean_inc(x_90); -lean_inc(x_89); +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_5, 0); +x_97 = lean_ctor_get(x_5, 1); +lean_inc(x_97); +lean_inc(x_96); lean_dec(x_5); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -return x_91; +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +return x_98; } } } @@ -8874,7 +9341,7 @@ lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; x_45 = lean_ctor_get(x_4, 1); lean_inc(x_45); lean_dec(x_4); -x_46 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; +x_46 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; x_47 = l_unreachable_x21___rarg(x_46); x_48 = lean_apply_2(x_47, x_2, x_45); return x_48; @@ -9104,7 +9571,7 @@ lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; x_53 = lean_ctor_get(x_4, 1); lean_inc(x_53); lean_dec(x_4); -x_54 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; +x_54 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; x_55 = l_unreachable_x21___rarg(x_54); x_56 = lean_apply_2(x_55, x_2, x_53); if (lean_obj_tag(x_56) == 0) @@ -11089,7 +11556,7 @@ lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabEnd(lean_object* x_ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Parser_Command_end___elambda__1___closed__2; +x_2 = l_Lean_Parser_Command_end___elambda__1___closed__1; x_3 = l___regBuiltinCommandElab_Lean_Elab_Command_elabEnd___closed__2; x_4 = l___regBuiltinCommandElab_Lean_Elab_Command_elabEnd___closed__3; x_5 = l_Lean_Elab_Command_addBuiltinCommandElab(x_2, x_3, x_4, x_1); @@ -15842,394 +16309,405 @@ lean_inc(x_2); x_8 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_3); if (lean_obj_tag(x_8) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); lean_dec(x_8); x_11 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_9); -x_12 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_9, x_6); -x_13 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_9); lean_dec(x_9); -x_14 = l_Lean_Elab_Term_elabBinders___rarg(x_11, x_7, x_12, x_13); +lean_inc(x_2); +x_12 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_10); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_13, x_6); +x_16 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_13); +lean_dec(x_13); +x_17 = l_Lean_Elab_Term_elabBinders___rarg(x_11, x_7, x_15, x_16); lean_dec(x_11); -if (lean_obj_tag(x_14) == 0) +if (lean_obj_tag(x_17) == 0) { -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -lean_inc(x_2); -x_16 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_10); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 0); +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_17, 1); lean_inc(x_18); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = lean_ctor_get(x_17, 0); -lean_inc(x_20); lean_dec(x_17); -x_21 = lean_ctor_get(x_15, 2); -lean_inc(x_21); -lean_dec(x_15); -x_22 = !lean_is_exclusive(x_18); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_18, 1); -lean_dec(x_23); -x_24 = lean_ctor_get(x_18, 0); -lean_dec(x_24); -lean_ctor_set(x_18, 1, x_21); -lean_ctor_set(x_18, 0, x_20); lean_inc(x_2); -x_25 = l___private_Init_Lean_Elab_Command_3__setState(x_18, x_2, x_19); -if (lean_obj_tag(x_25) == 0) +x_19 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_14); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); -x_27 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariable___spec__1(x_5, x_2, x_26); -return x_27; +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_dec(x_19); +x_23 = lean_ctor_get(x_20, 0); +lean_inc(x_23); +lean_dec(x_20); +x_24 = lean_ctor_get(x_18, 2); +lean_inc(x_24); +lean_dec(x_18); +x_25 = !lean_is_exclusive(x_21); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_21, 1); +lean_dec(x_26); +x_27 = lean_ctor_get(x_21, 0); +lean_dec(x_27); +lean_ctor_set(x_21, 1, x_24); +lean_ctor_set(x_21, 0, x_23); +lean_inc(x_2); +x_28 = l___private_Init_Lean_Elab_Command_3__setState(x_21, x_2, x_22); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariable___spec__1(x_5, x_2, x_29); +return x_30; } else { -uint8_t x_28; +uint8_t x_31; lean_dec(x_5); lean_dec(x_2); -x_28 = !lean_is_exclusive(x_25); -if (x_28 == 0) +x_31 = !lean_is_exclusive(x_28); +if (x_31 == 0) { -return x_25; +return x_28; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_25, 0); -x_30 = lean_ctor_get(x_25, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_25); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_32 = lean_ctor_get(x_18, 2); -x_33 = lean_ctor_get(x_18, 3); -x_34 = lean_ctor_get(x_18, 4); -lean_inc(x_34); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_28, 0); +x_33 = lean_ctor_get(x_28, 1); lean_inc(x_33); lean_inc(x_32); -lean_dec(x_18); -x_35 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_35, 0, x_20); -lean_ctor_set(x_35, 1, x_21); -lean_ctor_set(x_35, 2, x_32); -lean_ctor_set(x_35, 3, x_33); -lean_ctor_set(x_35, 4, x_34); -lean_inc(x_2); -x_36 = l___private_Init_Lean_Elab_Command_3__setState(x_35, x_2, x_19); -if (lean_obj_tag(x_36) == 0) +lean_dec(x_28); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +else { -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_36, 1); +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_21, 2); +x_36 = lean_ctor_get(x_21, 3); +x_37 = lean_ctor_get(x_21, 4); lean_inc(x_37); -lean_dec(x_36); -x_38 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariable___spec__1(x_5, x_2, x_37); -return x_38; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_5); -lean_dec(x_2); -x_39 = lean_ctor_get(x_36, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_36, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - x_41 = x_36; -} else { - lean_dec_ref(x_36); - x_41 = lean_box(0); -} -if (lean_is_scalar(x_41)) { - x_42 = lean_alloc_ctor(1, 2, 0); -} else { - x_42 = x_41; -} -lean_ctor_set(x_42, 0, x_39); -lean_ctor_set(x_42, 1, x_40); -return x_42; -} -} -} -else -{ -uint8_t x_43; -lean_dec(x_15); -lean_dec(x_5); -lean_dec(x_2); -x_43 = !lean_is_exclusive(x_16); -if (x_43 == 0) -{ -return x_16; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -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_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; -} -} -} -else -{ -lean_object* x_47; -x_47 = lean_ctor_get(x_14, 0); -lean_inc(x_47); -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -lean_dec(x_5); -x_48 = lean_ctor_get(x_14, 1); -lean_inc(x_48); -lean_dec(x_14); -x_49 = lean_ctor_get(x_47, 0); -lean_inc(x_49); -lean_dec(x_47); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_21); +x_38 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_38, 0, x_23); +lean_ctor_set(x_38, 1, x_24); +lean_ctor_set(x_38, 2, x_35); +lean_ctor_set(x_38, 3, x_36); +lean_ctor_set(x_38, 4, x_37); lean_inc(x_2); -x_50 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_10); +x_39 = l___private_Init_Lean_Elab_Command_3__setState(x_38, x_2, x_22); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); +x_41 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariable___spec__1(x_5, x_2, x_40); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_dec(x_5); +lean_dec(x_2); +x_42 = lean_ctor_get(x_39, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_39, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_44 = x_39; +} else { + lean_dec_ref(x_39); + x_44 = lean_box(0); +} +if (lean_is_scalar(x_44)) { + x_45 = lean_alloc_ctor(1, 2, 0); +} else { + x_45 = x_44; +} +lean_ctor_set(x_45, 0, x_42); +lean_ctor_set(x_45, 1, x_43); +return x_45; +} +} +} +else +{ +uint8_t x_46; +lean_dec(x_18); +lean_dec(x_5); +lean_dec(x_2); +x_46 = !lean_is_exclusive(x_19); +if (x_46 == 0) +{ +return x_19; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_19, 0); +x_48 = lean_ctor_get(x_19, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_19); +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; +x_50 = lean_ctor_get(x_17, 0); +lean_inc(x_50); if (lean_obj_tag(x_50) == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_51 = lean_ctor_get(x_48, 0); +lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_dec(x_5); +x_51 = lean_ctor_get(x_17, 1); lean_inc(x_51); +lean_dec(x_17); x_52 = lean_ctor_get(x_50, 0); lean_inc(x_52); -x_53 = lean_ctor_get(x_50, 1); -lean_inc(x_53); lean_dec(x_50); +lean_inc(x_2); +x_53 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_14); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; x_54 = lean_ctor_get(x_51, 0); lean_inc(x_54); -lean_dec(x_51); -x_55 = lean_ctor_get(x_48, 2); +x_55 = lean_ctor_get(x_53, 0); lean_inc(x_55); -lean_dec(x_48); -x_56 = !lean_is_exclusive(x_52); -if (x_56 == 0) +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); +lean_dec(x_53); +x_57 = lean_ctor_get(x_54, 0); +lean_inc(x_57); +lean_dec(x_54); +x_58 = lean_ctor_get(x_51, 2); +lean_inc(x_58); +lean_dec(x_51); +x_59 = !lean_is_exclusive(x_55); +if (x_59 == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_52, 1); -lean_dec(x_57); -x_58 = lean_ctor_get(x_52, 0); -lean_dec(x_58); -lean_ctor_set(x_52, 1, x_55); -lean_ctor_set(x_52, 0, x_54); -x_59 = l___private_Init_Lean_Elab_Command_3__setState(x_52, x_2, x_53); -if (lean_obj_tag(x_59) == 0) -{ -uint8_t x_60; -x_60 = !lean_is_exclusive(x_59); -if (x_60 == 0) -{ -lean_object* x_61; -x_61 = lean_ctor_get(x_59, 0); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_55, 1); +lean_dec(x_60); +x_61 = lean_ctor_get(x_55, 0); lean_dec(x_61); -lean_ctor_set_tag(x_59, 1); -lean_ctor_set(x_59, 0, x_49); -return x_59; +lean_ctor_set(x_55, 1, x_58); +lean_ctor_set(x_55, 0, x_57); +x_62 = l___private_Init_Lean_Elab_Command_3__setState(x_55, x_2, x_56); +if (lean_obj_tag(x_62) == 0) +{ +uint8_t x_63; +x_63 = !lean_is_exclusive(x_62); +if (x_63 == 0) +{ +lean_object* x_64; +x_64 = lean_ctor_get(x_62, 0); +lean_dec(x_64); +lean_ctor_set_tag(x_62, 1); +lean_ctor_set(x_62, 0, x_52); +return x_62; } else { -lean_object* x_62; lean_object* x_63; -x_62 = lean_ctor_get(x_59, 1); -lean_inc(x_62); -lean_dec(x_59); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_49); -lean_ctor_set(x_63, 1, x_62); -return x_63; -} -} -else -{ -uint8_t x_64; -lean_dec(x_49); -x_64 = !lean_is_exclusive(x_59); -if (x_64 == 0) -{ -return x_59; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_59, 0); -x_66 = lean_ctor_get(x_59, 1); -lean_inc(x_66); +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_62, 1); lean_inc(x_65); -lean_dec(x_59); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -return x_67; -} +lean_dec(x_62); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_52); +lean_ctor_set(x_66, 1, x_65); +return x_66; } } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_68 = lean_ctor_get(x_52, 2); -x_69 = lean_ctor_get(x_52, 3); -x_70 = lean_ctor_get(x_52, 4); -lean_inc(x_70); +uint8_t x_67; +lean_dec(x_52); +x_67 = !lean_is_exclusive(x_62); +if (x_67 == 0) +{ +return x_62; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_62, 0); +x_69 = lean_ctor_get(x_62, 1); lean_inc(x_69); lean_inc(x_68); -lean_dec(x_52); -x_71 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_71, 0, x_54); -lean_ctor_set(x_71, 1, x_55); -lean_ctor_set(x_71, 2, x_68); -lean_ctor_set(x_71, 3, x_69); -lean_ctor_set(x_71, 4, x_70); -x_72 = l___private_Init_Lean_Elab_Command_3__setState(x_71, x_2, x_53); -if (lean_obj_tag(x_72) == 0) +lean_dec(x_62); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +return x_70; +} +} +} +else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_72, 1); +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_71 = lean_ctor_get(x_55, 2); +x_72 = lean_ctor_get(x_55, 3); +x_73 = lean_ctor_get(x_55, 4); 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; -} else { - lean_dec_ref(x_72); - x_74 = lean_box(0); -} -if (lean_is_scalar(x_74)) { - x_75 = lean_alloc_ctor(1, 2, 0); -} else { - x_75 = x_74; - lean_ctor_set_tag(x_75, 1); -} -lean_ctor_set(x_75, 0, x_49); -lean_ctor_set(x_75, 1, x_73); -return x_75; -} -else +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_55); +x_74 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_74, 0, x_57); +lean_ctor_set(x_74, 1, x_58); +lean_ctor_set(x_74, 2, x_71); +lean_ctor_set(x_74, 3, x_72); +lean_ctor_set(x_74, 4, x_73); +x_75 = l___private_Init_Lean_Elab_Command_3__setState(x_74, x_2, x_56); +if (lean_obj_tag(x_75) == 0) { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -lean_dec(x_49); -x_76 = lean_ctor_get(x_72, 0); +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_75, 1); lean_inc(x_76); -x_77 = lean_ctor_get(x_72, 1); -lean_inc(x_77); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_78 = x_72; +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_77 = x_75; } else { - lean_dec_ref(x_72); - x_78 = lean_box(0); + lean_dec_ref(x_75); + x_77 = lean_box(0); } -if (lean_is_scalar(x_78)) { - x_79 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_77)) { + x_78 = lean_alloc_ctor(1, 2, 0); } else { - x_79 = x_78; + x_78 = x_77; + lean_ctor_set_tag(x_78, 1); } -lean_ctor_set(x_79, 0, x_76); -lean_ctor_set(x_79, 1, x_77); -return x_79; +lean_ctor_set(x_78, 0, x_52); +lean_ctor_set(x_78, 1, x_76); +return x_78; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_52); +x_79 = lean_ctor_get(x_75, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_75, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_81 = x_75; +} else { + lean_dec_ref(x_75); + 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; } } } else { -uint8_t x_80; -lean_dec(x_49); -lean_dec(x_48); +uint8_t x_83; +lean_dec(x_52); +lean_dec(x_51); lean_dec(x_2); -x_80 = !lean_is_exclusive(x_50); -if (x_80 == 0) +x_83 = !lean_is_exclusive(x_53); +if (x_83 == 0) { -return x_50; -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_50, 0); -x_82 = lean_ctor_get(x_50, 1); -lean_inc(x_82); -lean_inc(x_81); -lean_dec(x_50); -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; -} -} +return x_53; } else { lean_object* x_84; lean_object* x_85; lean_object* x_86; -lean_dec(x_14); -x_84 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; -x_85 = l_unreachable_x21___rarg(x_84); -lean_inc(x_2); -x_86 = lean_apply_2(x_85, x_2, x_10); -if (lean_obj_tag(x_86) == 0) -{ -lean_object* x_87; lean_object* x_88; -x_87 = lean_ctor_get(x_86, 1); -lean_inc(x_87); -lean_dec(x_86); -x_88 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariable___spec__1(x_5, x_2, x_87); -return x_88; -} -else -{ -uint8_t x_89; -lean_dec(x_5); -lean_dec(x_2); -x_89 = !lean_is_exclusive(x_86); -if (x_89 == 0) -{ +x_84 = lean_ctor_get(x_53, 0); +x_85 = lean_ctor_get(x_53, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_53); +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_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_86, 0); -x_91 = lean_ctor_get(x_86, 1); -lean_inc(x_91); +lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_17); +x_87 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; +x_88 = l_unreachable_x21___rarg(x_87); +lean_inc(x_2); +x_89 = lean_apply_2(x_88, x_2, x_14); +if (lean_obj_tag(x_89) == 0) +{ +lean_object* x_90; lean_object* x_91; +x_90 = lean_ctor_get(x_89, 1); lean_inc(x_90); -lean_dec(x_86); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; +lean_dec(x_89); +x_91 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariable___spec__1(x_5, x_2, x_90); +return x_91; +} +else +{ +uint8_t x_92; +lean_dec(x_5); +lean_dec(x_2); +x_92 = !lean_is_exclusive(x_89); +if (x_92 == 0) +{ +return x_89; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_89, 0); +x_94 = lean_ctor_get(x_89, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_89); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; } } } @@ -16237,27 +16715,54 @@ return x_92; } else { -uint8_t x_93; +uint8_t x_96; +lean_dec(x_11); lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); -x_93 = !lean_is_exclusive(x_8); -if (x_93 == 0) +x_96 = !lean_is_exclusive(x_12); +if (x_96 == 0) +{ +return x_12; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_12, 0); +x_98 = lean_ctor_get(x_12, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_12); +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_97); +lean_ctor_set(x_99, 1, x_98); +return x_99; +} +} +} +else +{ +uint8_t x_100; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_2); +x_100 = !lean_is_exclusive(x_8); +if (x_100 == 0) { return x_8; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_8, 0); -x_95 = lean_ctor_get(x_8, 1); -lean_inc(x_95); -lean_inc(x_94); +lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_101 = lean_ctor_get(x_8, 0); +x_102 = lean_ctor_get(x_8, 1); +lean_inc(x_102); +lean_inc(x_101); lean_dec(x_8); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -return x_96; +x_103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_103, 0, x_101); +lean_ctor_set(x_103, 1, x_102); +return x_103; } } } @@ -16900,397 +17405,408 @@ lean_inc(x_2); x_9 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_3); if (lean_obj_tag(x_9) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); x_12 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_10); -x_13 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_10, x_7); -x_14 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_10); lean_dec(x_10); -x_15 = l_Lean_Elab_Term_elabBinders___rarg(x_12, x_8, x_13, x_14); +lean_inc(x_2); +x_13 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_11); +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; +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_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_14, x_7); +x_17 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_14); +lean_dec(x_14); +x_18 = l_Lean_Elab_Term_elabBinders___rarg(x_12, x_8, x_16, x_17); lean_dec(x_12); -if (lean_obj_tag(x_15) == 0) +if (lean_obj_tag(x_18) == 0) { -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -lean_inc(x_2); -x_17 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_11); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 0); +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_18, 1); lean_inc(x_19); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_dec(x_17); -x_21 = lean_ctor_get(x_18, 0); -lean_inc(x_21); lean_dec(x_18); -x_22 = lean_ctor_get(x_16, 2); -lean_inc(x_22); -lean_dec(x_16); -x_23 = !lean_is_exclusive(x_19); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_19, 1); -lean_dec(x_24); -x_25 = lean_ctor_get(x_19, 0); -lean_dec(x_25); -lean_ctor_set(x_19, 1, x_22); -lean_ctor_set(x_19, 0, x_21); lean_inc(x_2); -x_26 = l___private_Init_Lean_Elab_Command_3__setState(x_19, x_2, x_20); -if (lean_obj_tag(x_26) == 0) +x_20 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_15); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_28 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariables___spec__1(x_6, x_2, x_27); +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_19, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = lean_ctor_get(x_21, 0); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_ctor_get(x_19, 2); +lean_inc(x_25); +lean_dec(x_19); +x_26 = !lean_is_exclusive(x_22); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_22, 1); +lean_dec(x_27); +x_28 = lean_ctor_get(x_22, 0); +lean_dec(x_28); +lean_ctor_set(x_22, 1, x_25); +lean_ctor_set(x_22, 0, x_24); +lean_inc(x_2); +x_29 = l___private_Init_Lean_Elab_Command_3__setState(x_22, x_2, x_23); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); +x_31 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariables___spec__1(x_6, x_2, x_30); lean_dec(x_6); -return x_28; +return x_31; } else { -uint8_t x_29; +uint8_t x_32; lean_dec(x_6); lean_dec(x_2); -x_29 = !lean_is_exclusive(x_26); -if (x_29 == 0) +x_32 = !lean_is_exclusive(x_29); +if (x_32 == 0) { -return x_26; +return x_29; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_26, 0); -x_31 = lean_ctor_get(x_26, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_26); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_33 = lean_ctor_get(x_19, 2); -x_34 = lean_ctor_get(x_19, 3); -x_35 = lean_ctor_get(x_19, 4); -lean_inc(x_35); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_29, 0); +x_34 = lean_ctor_get(x_29, 1); lean_inc(x_34); lean_inc(x_33); -lean_dec(x_19); -x_36 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_36, 0, x_21); -lean_ctor_set(x_36, 1, x_22); -lean_ctor_set(x_36, 2, x_33); -lean_ctor_set(x_36, 3, x_34); -lean_ctor_set(x_36, 4, x_35); -lean_inc(x_2); -x_37 = l___private_Init_Lean_Elab_Command_3__setState(x_36, x_2, x_20); -if (lean_obj_tag(x_37) == 0) +lean_dec(x_29); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +else { -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_37, 1); +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_22, 2); +x_37 = lean_ctor_get(x_22, 3); +x_38 = lean_ctor_get(x_22, 4); lean_inc(x_38); -lean_dec(x_37); -x_39 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariables___spec__1(x_6, x_2, x_38); -lean_dec(x_6); -return x_39; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -lean_dec(x_6); -lean_dec(x_2); -x_40 = lean_ctor_get(x_37, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_37, 1); -lean_inc(x_41); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_42 = x_37; -} else { - lean_dec_ref(x_37); - x_42 = lean_box(0); -} -if (lean_is_scalar(x_42)) { - x_43 = lean_alloc_ctor(1, 2, 0); -} else { - x_43 = x_42; -} -lean_ctor_set(x_43, 0, x_40); -lean_ctor_set(x_43, 1, x_41); -return x_43; -} -} -} -else -{ -uint8_t x_44; -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_2); -x_44 = !lean_is_exclusive(x_17); -if (x_44 == 0) -{ -return x_17; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_17, 0); -x_46 = lean_ctor_get(x_17, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_17); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -} -else -{ -lean_object* x_48; -x_48 = lean_ctor_get(x_15, 0); -lean_inc(x_48); -if (lean_obj_tag(x_48) == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -lean_dec(x_6); -x_49 = lean_ctor_get(x_15, 1); -lean_inc(x_49); -lean_dec(x_15); -x_50 = lean_ctor_get(x_48, 0); -lean_inc(x_50); -lean_dec(x_48); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_22); +x_39 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_39, 0, x_24); +lean_ctor_set(x_39, 1, x_25); +lean_ctor_set(x_39, 2, x_36); +lean_ctor_set(x_39, 3, x_37); +lean_ctor_set(x_39, 4, x_38); lean_inc(x_2); -x_51 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_11); +x_40 = l___private_Init_Lean_Elab_Command_3__setState(x_39, x_2, x_23); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariables___spec__1(x_6, x_2, x_41); +lean_dec(x_6); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_6); +lean_dec(x_2); +x_43 = lean_ctor_get(x_40, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_40, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_45 = x_40; +} else { + lean_dec_ref(x_40); + x_45 = lean_box(0); +} +if (lean_is_scalar(x_45)) { + x_46 = lean_alloc_ctor(1, 2, 0); +} else { + x_46 = x_45; +} +lean_ctor_set(x_46, 0, x_43); +lean_ctor_set(x_46, 1, x_44); +return x_46; +} +} +} +else +{ +uint8_t x_47; +lean_dec(x_19); +lean_dec(x_6); +lean_dec(x_2); +x_47 = !lean_is_exclusive(x_20); +if (x_47 == 0) +{ +return x_20; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_20, 0); +x_49 = lean_ctor_get(x_20, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_20); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +else +{ +lean_object* x_51; +x_51 = lean_ctor_get(x_18, 0); +lean_inc(x_51); if (lean_obj_tag(x_51) == 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_49, 0); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_dec(x_6); +x_52 = lean_ctor_get(x_18, 1); lean_inc(x_52); +lean_dec(x_18); x_53 = lean_ctor_get(x_51, 0); lean_inc(x_53); -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); lean_dec(x_51); +lean_inc(x_2); +x_54 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_15); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; x_55 = lean_ctor_get(x_52, 0); lean_inc(x_55); -lean_dec(x_52); -x_56 = lean_ctor_get(x_49, 2); +x_56 = lean_ctor_get(x_54, 0); lean_inc(x_56); -lean_dec(x_49); -x_57 = !lean_is_exclusive(x_53); -if (x_57 == 0) +x_57 = lean_ctor_get(x_54, 1); +lean_inc(x_57); +lean_dec(x_54); +x_58 = lean_ctor_get(x_55, 0); +lean_inc(x_58); +lean_dec(x_55); +x_59 = lean_ctor_get(x_52, 2); +lean_inc(x_59); +lean_dec(x_52); +x_60 = !lean_is_exclusive(x_56); +if (x_60 == 0) { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_53, 1); -lean_dec(x_58); -x_59 = lean_ctor_get(x_53, 0); -lean_dec(x_59); -lean_ctor_set(x_53, 1, x_56); -lean_ctor_set(x_53, 0, x_55); -x_60 = l___private_Init_Lean_Elab_Command_3__setState(x_53, x_2, x_54); -if (lean_obj_tag(x_60) == 0) -{ -uint8_t x_61; -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) -{ -lean_object* x_62; -x_62 = lean_ctor_get(x_60, 0); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_56, 1); +lean_dec(x_61); +x_62 = lean_ctor_get(x_56, 0); lean_dec(x_62); -lean_ctor_set_tag(x_60, 1); -lean_ctor_set(x_60, 0, x_50); -return x_60; +lean_ctor_set(x_56, 1, x_59); +lean_ctor_set(x_56, 0, x_58); +x_63 = l___private_Init_Lean_Elab_Command_3__setState(x_56, x_2, x_57); +if (lean_obj_tag(x_63) == 0) +{ +uint8_t x_64; +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +lean_object* x_65; +x_65 = lean_ctor_get(x_63, 0); +lean_dec(x_65); +lean_ctor_set_tag(x_63, 1); +lean_ctor_set(x_63, 0, x_53); +return x_63; } else { -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); -lean_dec(x_60); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_50); -lean_ctor_set(x_64, 1, x_63); -return x_64; -} -} -else -{ -uint8_t x_65; -lean_dec(x_50); -x_65 = !lean_is_exclusive(x_60); -if (x_65 == 0) -{ -return x_60; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_60, 0); -x_67 = lean_ctor_get(x_60, 1); -lean_inc(x_67); +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_63, 1); lean_inc(x_66); -lean_dec(x_60); -x_68 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_67); -return x_68; -} +lean_dec(x_63); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_53); +lean_ctor_set(x_67, 1, x_66); +return x_67; } } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_69 = lean_ctor_get(x_53, 2); -x_70 = lean_ctor_get(x_53, 3); -x_71 = lean_ctor_get(x_53, 4); -lean_inc(x_71); +uint8_t x_68; +lean_dec(x_53); +x_68 = !lean_is_exclusive(x_63); +if (x_68 == 0) +{ +return x_63; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_63, 0); +x_70 = lean_ctor_get(x_63, 1); lean_inc(x_70); lean_inc(x_69); -lean_dec(x_53); -x_72 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_72, 0, x_55); -lean_ctor_set(x_72, 1, x_56); -lean_ctor_set(x_72, 2, x_69); -lean_ctor_set(x_72, 3, x_70); -lean_ctor_set(x_72, 4, x_71); -x_73 = l___private_Init_Lean_Elab_Command_3__setState(x_72, x_2, x_54); -if (lean_obj_tag(x_73) == 0) +lean_dec(x_63); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +} +else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_73, 1); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_72 = lean_ctor_get(x_56, 2); +x_73 = lean_ctor_get(x_56, 3); +x_74 = lean_ctor_get(x_56, 4); 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_73); - x_75 = lean_box(0); -} -if (lean_is_scalar(x_75)) { - x_76 = lean_alloc_ctor(1, 2, 0); -} else { - x_76 = x_75; - lean_ctor_set_tag(x_76, 1); -} -lean_ctor_set(x_76, 0, x_50); -lean_ctor_set(x_76, 1, x_74); -return x_76; -} -else +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_56); +x_75 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_75, 0, x_58); +lean_ctor_set(x_75, 1, x_59); +lean_ctor_set(x_75, 2, x_72); +lean_ctor_set(x_75, 3, x_73); +lean_ctor_set(x_75, 4, x_74); +x_76 = l___private_Init_Lean_Elab_Command_3__setState(x_75, x_2, x_57); +if (lean_obj_tag(x_76) == 0) { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_50); -x_77 = lean_ctor_get(x_73, 0); +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_76, 1); lean_inc(x_77); -x_78 = lean_ctor_get(x_73, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_79 = x_73; +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_78 = x_76; } else { - lean_dec_ref(x_73); - x_79 = lean_box(0); + lean_dec_ref(x_76); + x_78 = lean_box(0); } -if (lean_is_scalar(x_79)) { - x_80 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); } else { - x_80 = x_79; + x_79 = x_78; + lean_ctor_set_tag(x_79, 1); } -lean_ctor_set(x_80, 0, x_77); -lean_ctor_set(x_80, 1, x_78); -return x_80; +lean_ctor_set(x_79, 0, x_53); +lean_ctor_set(x_79, 1, x_77); +return x_79; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_53); +x_80 = lean_ctor_get(x_76, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_76, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_82 = x_76; +} else { + lean_dec_ref(x_76); + x_82 = lean_box(0); +} +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); +} else { + x_83 = x_82; +} +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_81); +return x_83; } } } else { -uint8_t x_81; -lean_dec(x_50); -lean_dec(x_49); +uint8_t x_84; +lean_dec(x_53); +lean_dec(x_52); lean_dec(x_2); -x_81 = !lean_is_exclusive(x_51); -if (x_81 == 0) +x_84 = !lean_is_exclusive(x_54); +if (x_84 == 0) { -return x_51; -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_51, 0); -x_83 = lean_ctor_get(x_51, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_51); -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; -} -} +return x_54; } else { lean_object* x_85; lean_object* x_86; lean_object* x_87; -lean_dec(x_15); -x_85 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; -x_86 = l_unreachable_x21___rarg(x_85); -lean_inc(x_2); -x_87 = lean_apply_2(x_86, x_2, x_11); -if (lean_obj_tag(x_87) == 0) -{ -lean_object* x_88; lean_object* x_89; -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -lean_dec(x_87); -x_89 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariables___spec__1(x_6, x_2, x_88); -lean_dec(x_6); -return x_89; -} -else -{ -uint8_t x_90; -lean_dec(x_6); -lean_dec(x_2); -x_90 = !lean_is_exclusive(x_87); -if (x_90 == 0) -{ +x_85 = lean_ctor_get(x_54, 0); +x_86 = lean_ctor_get(x_54, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_54); +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_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_87, 0); -x_92 = lean_ctor_get(x_87, 1); -lean_inc(x_92); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_18); +x_88 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; +x_89 = l_unreachable_x21___rarg(x_88); +lean_inc(x_2); +x_90 = lean_apply_2(x_89, x_2, x_15); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; lean_object* x_92; +x_91 = lean_ctor_get(x_90, 1); lean_inc(x_91); -lean_dec(x_87); -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -return x_93; +lean_dec(x_90); +x_92 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariables___spec__1(x_6, x_2, x_91); +lean_dec(x_6); +return x_92; +} +else +{ +uint8_t x_93; +lean_dec(x_6); +lean_dec(x_2); +x_93 = !lean_is_exclusive(x_90); +if (x_93 == 0) +{ +return x_90; +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_90, 0); +x_95 = lean_ctor_get(x_90, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_90); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +return x_96; } } } @@ -17298,27 +17814,54 @@ return x_93; } else { -uint8_t x_94; +uint8_t x_97; +lean_dec(x_12); lean_dec(x_8); lean_dec(x_6); lean_dec(x_2); -x_94 = !lean_is_exclusive(x_9); -if (x_94 == 0) +x_97 = !lean_is_exclusive(x_13); +if (x_97 == 0) +{ +return x_13; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_13, 0); +x_99 = lean_ctor_get(x_13, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_13); +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; +} +} +} +else +{ +uint8_t x_101; +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_2); +x_101 = !lean_is_exclusive(x_9); +if (x_101 == 0) { return x_9; } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_9, 0); -x_96 = lean_ctor_get(x_9, 1); -lean_inc(x_96); -lean_inc(x_95); +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_9, 0); +x_103 = lean_ctor_get(x_9, 1); +lean_inc(x_103); +lean_inc(x_102); lean_dec(x_9); -x_97 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_97, 0, x_95); -lean_ctor_set(x_97, 1, x_96); -return x_97; +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +return x_104; } } } @@ -17549,413 +18092,450 @@ lean_inc(x_2); x_8 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_3); if (lean_obj_tag(x_8) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); lean_dec(x_8); x_11 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_9); -x_12 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_9, x_6); -x_13 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_9); lean_dec(x_9); -x_14 = l_Lean_Elab_Term_elabBinders___rarg(x_11, x_7, x_12, x_13); -lean_dec(x_11); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); lean_inc(x_2); -x_17 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_10); +x_12 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_10); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_13, x_6); +x_16 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_13); +lean_dec(x_13); +x_17 = l_Lean_Elab_Term_elabBinders___rarg(x_11, x_7, x_15, x_16); +lean_dec(x_11); if (lean_obj_tag(x_17) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_18 = lean_ctor_get(x_16, 0); +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 0); +x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); lean_dec(x_17); -x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_2); +x_20 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_14); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_21 = lean_ctor_get(x_19, 0); lean_inc(x_21); -lean_dec(x_18); -x_22 = lean_ctor_get(x_16, 2); +x_22 = lean_ctor_get(x_20, 0); lean_inc(x_22); -lean_dec(x_16); -x_23 = !lean_is_exclusive(x_19); -if (x_23 == 0) +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = lean_ctor_get(x_21, 0); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_ctor_get(x_19, 2); +lean_inc(x_25); +lean_dec(x_19); +x_26 = !lean_is_exclusive(x_22); +if (x_26 == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_19, 1); -lean_dec(x_24); -x_25 = lean_ctor_get(x_19, 0); -lean_dec(x_25); -lean_ctor_set(x_19, 1, x_22); -lean_ctor_set(x_19, 0, x_21); -x_26 = l___private_Init_Lean_Elab_Command_3__setState(x_19, x_2, x_20); -if (lean_obj_tag(x_26) == 0) -{ -uint8_t x_27; -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) -{ -lean_object* x_28; -x_28 = lean_ctor_get(x_26, 0); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_22, 1); +lean_dec(x_27); +x_28 = lean_ctor_get(x_22, 0); lean_dec(x_28); -lean_ctor_set(x_26, 0, x_15); -return x_26; +lean_ctor_set(x_22, 1, x_25); +lean_ctor_set(x_22, 0, x_24); +x_29 = l___private_Init_Lean_Elab_Command_3__setState(x_22, x_2, x_23); +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; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +lean_ctor_set(x_29, 0, x_18); +return x_29; } else { -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_26, 1); -lean_inc(x_29); -lean_dec(x_26); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_15); -lean_ctor_set(x_30, 1, x_29); -return x_30; -} -} -else -{ -uint8_t x_31; -lean_dec(x_15); -x_31 = !lean_is_exclusive(x_26); -if (x_31 == 0) -{ -return x_26; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_26, 0); -x_33 = lean_ctor_get(x_26, 1); -lean_inc(x_33); +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_29, 1); lean_inc(x_32); -lean_dec(x_26); -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_dec(x_29); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_18); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_35 = lean_ctor_get(x_19, 2); -x_36 = lean_ctor_get(x_19, 3); -x_37 = lean_ctor_get(x_19, 4); -lean_inc(x_37); +uint8_t x_34; +lean_dec(x_18); +x_34 = !lean_is_exclusive(x_29); +if (x_34 == 0) +{ +return x_29; +} +else +{ +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_inc(x_35); -lean_dec(x_19); -x_38 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_38, 0, x_21); -lean_ctor_set(x_38, 1, x_22); -lean_ctor_set(x_38, 2, x_35); -lean_ctor_set(x_38, 3, x_36); -lean_ctor_set(x_38, 4, x_37); -x_39 = l___private_Init_Lean_Elab_Command_3__setState(x_38, x_2, x_20); -if (lean_obj_tag(x_39) == 0) +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 { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_39, 1); +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_22, 2); +x_39 = lean_ctor_get(x_22, 3); +x_40 = lean_ctor_get(x_22, 4); lean_inc(x_40); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_41 = x_39; -} else { - lean_dec_ref(x_39); - x_41 = lean_box(0); -} -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_15); -lean_ctor_set(x_42, 1, x_40); -return x_42; -} -else +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_22); +x_41 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_41, 0, x_24); +lean_ctor_set(x_41, 1, x_25); +lean_ctor_set(x_41, 2, x_38); +lean_ctor_set(x_41, 3, x_39); +lean_ctor_set(x_41, 4, x_40); +x_42 = l___private_Init_Lean_Elab_Command_3__setState(x_41, x_2, x_23); +if (lean_obj_tag(x_42) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -lean_dec(x_15); -x_43 = lean_ctor_get(x_39, 0); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_42, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_39, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_45 = x_39; +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_44 = x_42; } else { - lean_dec_ref(x_39); - x_45 = lean_box(0); + lean_dec_ref(x_42); + x_44 = lean_box(0); } -if (lean_is_scalar(x_45)) { - x_46 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_44)) { + x_45 = lean_alloc_ctor(0, 2, 0); } else { - x_46 = x_45; + x_45 = x_44; } -lean_ctor_set(x_46, 0, x_43); -lean_ctor_set(x_46, 1, x_44); -return x_46; +lean_ctor_set(x_45, 0, x_18); +lean_ctor_set(x_45, 1, x_43); +return x_45; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_18); +x_46 = lean_ctor_get(x_42, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_42, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_48 = x_42; +} else { + lean_dec_ref(x_42); + x_48 = lean_box(0); +} +if (lean_is_scalar(x_48)) { + x_49 = lean_alloc_ctor(1, 2, 0); +} else { + x_49 = x_48; +} +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_47); +return x_49; } } } else { -uint8_t x_47; -lean_dec(x_16); -lean_dec(x_15); +uint8_t x_50; +lean_dec(x_19); +lean_dec(x_18); lean_dec(x_2); -x_47 = !lean_is_exclusive(x_17); -if (x_47 == 0) +x_50 = !lean_is_exclusive(x_20); +if (x_50 == 0) { -return x_17; +return x_20; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_17, 0); -x_49 = lean_ctor_get(x_17, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_17); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; -} -} -} -else -{ -lean_object* x_51; -x_51 = lean_ctor_get(x_14, 0); -lean_inc(x_51); -if (lean_obj_tag(x_51) == 0) -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_14, 1); +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_20, 0); +x_52 = lean_ctor_get(x_20, 1); lean_inc(x_52); -lean_dec(x_14); -x_53 = lean_ctor_get(x_51, 0); -lean_inc(x_53); -lean_dec(x_51); -lean_inc(x_2); -x_54 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_10); +lean_inc(x_51); +lean_dec(x_20); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +else +{ +lean_object* x_54; +x_54 = lean_ctor_get(x_17, 0); +lean_inc(x_54); if (lean_obj_tag(x_54) == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_55 = lean_ctor_get(x_52, 0); +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_17, 1); lean_inc(x_55); +lean_dec(x_17); x_56 = lean_ctor_get(x_54, 0); lean_inc(x_56); -x_57 = lean_ctor_get(x_54, 1); -lean_inc(x_57); lean_dec(x_54); +lean_inc(x_2); +x_57 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_14); +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; uint8_t x_63; x_58 = lean_ctor_get(x_55, 0); lean_inc(x_58); -lean_dec(x_55); -x_59 = lean_ctor_get(x_52, 2); +x_59 = lean_ctor_get(x_57, 0); lean_inc(x_59); -lean_dec(x_52); -x_60 = !lean_is_exclusive(x_56); -if (x_60 == 0) +x_60 = lean_ctor_get(x_57, 1); +lean_inc(x_60); +lean_dec(x_57); +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +lean_dec(x_58); +x_62 = lean_ctor_get(x_55, 2); +lean_inc(x_62); +lean_dec(x_55); +x_63 = !lean_is_exclusive(x_59); +if (x_63 == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_56, 1); -lean_dec(x_61); -x_62 = lean_ctor_get(x_56, 0); -lean_dec(x_62); -lean_ctor_set(x_56, 1, x_59); -lean_ctor_set(x_56, 0, x_58); -x_63 = l___private_Init_Lean_Elab_Command_3__setState(x_56, x_2, x_57); -if (lean_obj_tag(x_63) == 0) -{ -uint8_t x_64; -x_64 = !lean_is_exclusive(x_63); -if (x_64 == 0) -{ -lean_object* x_65; -x_65 = lean_ctor_get(x_63, 0); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_59, 1); +lean_dec(x_64); +x_65 = lean_ctor_get(x_59, 0); lean_dec(x_65); -lean_ctor_set_tag(x_63, 1); -lean_ctor_set(x_63, 0, x_53); -return x_63; +lean_ctor_set(x_59, 1, x_62); +lean_ctor_set(x_59, 0, x_61); +x_66 = l___private_Init_Lean_Elab_Command_3__setState(x_59, x_2, x_60); +if (lean_obj_tag(x_66) == 0) +{ +uint8_t x_67; +x_67 = !lean_is_exclusive(x_66); +if (x_67 == 0) +{ +lean_object* x_68; +x_68 = lean_ctor_get(x_66, 0); +lean_dec(x_68); +lean_ctor_set_tag(x_66, 1); +lean_ctor_set(x_66, 0, x_56); +return x_66; } else { -lean_object* x_66; lean_object* x_67; -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -lean_dec(x_63); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_53); -lean_ctor_set(x_67, 1, x_66); -return x_67; -} -} -else -{ -uint8_t x_68; -lean_dec(x_53); -x_68 = !lean_is_exclusive(x_63); -if (x_68 == 0) -{ -return x_63; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_63, 0); -x_70 = lean_ctor_get(x_63, 1); -lean_inc(x_70); +lean_object* x_69; lean_object* x_70; +x_69 = lean_ctor_get(x_66, 1); lean_inc(x_69); -lean_dec(x_63); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} +lean_dec(x_66); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_56); +lean_ctor_set(x_70, 1, x_69); +return x_70; } } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_72 = lean_ctor_get(x_56, 2); -x_73 = lean_ctor_get(x_56, 3); -x_74 = lean_ctor_get(x_56, 4); -lean_inc(x_74); +uint8_t x_71; +lean_dec(x_56); +x_71 = !lean_is_exclusive(x_66); +if (x_71 == 0) +{ +return x_66; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_66, 0); +x_73 = lean_ctor_get(x_66, 1); lean_inc(x_73); lean_inc(x_72); -lean_dec(x_56); -x_75 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_75, 0, x_58); -lean_ctor_set(x_75, 1, x_59); -lean_ctor_set(x_75, 2, x_72); -lean_ctor_set(x_75, 3, x_73); -lean_ctor_set(x_75, 4, x_74); -x_76 = l___private_Init_Lean_Elab_Command_3__setState(x_75, x_2, x_57); -if (lean_obj_tag(x_76) == 0) +lean_dec(x_66); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_76, 1); +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_75 = lean_ctor_get(x_59, 2); +x_76 = lean_ctor_get(x_59, 3); +x_77 = lean_ctor_get(x_59, 4); lean_inc(x_77); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - x_78 = x_76; -} else { - lean_dec_ref(x_76); - x_78 = lean_box(0); -} -if (lean_is_scalar(x_78)) { - x_79 = lean_alloc_ctor(1, 2, 0); -} else { - x_79 = x_78; - lean_ctor_set_tag(x_79, 1); -} -lean_ctor_set(x_79, 0, x_53); -lean_ctor_set(x_79, 1, x_77); -return x_79; -} -else +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_59); +x_78 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_78, 0, x_61); +lean_ctor_set(x_78, 1, x_62); +lean_ctor_set(x_78, 2, x_75); +lean_ctor_set(x_78, 3, x_76); +lean_ctor_set(x_78, 4, x_77); +x_79 = l___private_Init_Lean_Elab_Command_3__setState(x_78, x_2, x_60); +if (lean_obj_tag(x_79) == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -lean_dec(x_53); -x_80 = lean_ctor_get(x_76, 0); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_79, 1); lean_inc(x_80); -x_81 = lean_ctor_get(x_76, 1); -lean_inc(x_81); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - x_82 = x_76; +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_81 = x_79; } else { - lean_dec_ref(x_76); - x_82 = lean_box(0); + lean_dec_ref(x_79); + x_81 = lean_box(0); } -if (lean_is_scalar(x_82)) { - x_83 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_81)) { + x_82 = lean_alloc_ctor(1, 2, 0); } else { - x_83 = x_82; + x_82 = x_81; + lean_ctor_set_tag(x_82, 1); } -lean_ctor_set(x_83, 0, x_80); -lean_ctor_set(x_83, 1, x_81); -return x_83; +lean_ctor_set(x_82, 0, x_56); +lean_ctor_set(x_82, 1, x_80); +return x_82; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_dec(x_56); +x_83 = lean_ctor_get(x_79, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_79, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_85 = x_79; +} else { + lean_dec_ref(x_79); + x_85 = lean_box(0); +} +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(1, 2, 0); +} else { + x_86 = x_85; +} +lean_ctor_set(x_86, 0, x_83); +lean_ctor_set(x_86, 1, x_84); +return x_86; } } } else { -uint8_t x_84; -lean_dec(x_53); -lean_dec(x_52); +uint8_t x_87; +lean_dec(x_56); +lean_dec(x_55); lean_dec(x_2); -x_84 = !lean_is_exclusive(x_54); -if (x_84 == 0) +x_87 = !lean_is_exclusive(x_57); +if (x_87 == 0) { -return x_54; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_54, 0); -x_86 = lean_ctor_get(x_54, 1); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_54); -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; -} -} +return x_57; } else { lean_object* x_88; lean_object* x_89; lean_object* x_90; -lean_dec(x_14); -x_88 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; -x_89 = l_unreachable_x21___rarg(x_88); -x_90 = lean_apply_2(x_89, x_2, x_10); +x_88 = lean_ctor_get(x_57, 0); +x_89 = lean_ctor_get(x_57, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_57); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); return x_90; } } } else { -uint8_t x_91; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_17); +x_91 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; +x_92 = l_unreachable_x21___rarg(x_91); +x_93 = lean_apply_2(x_92, x_2, x_14); +return x_93; +} +} +} +else +{ +uint8_t x_94; +lean_dec(x_11); lean_dec(x_7); lean_dec(x_2); -x_91 = !lean_is_exclusive(x_8); -if (x_91 == 0) +x_94 = !lean_is_exclusive(x_12); +if (x_94 == 0) +{ +return x_12; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_12, 0); +x_96 = lean_ctor_get(x_12, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_12); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +return x_97; +} +} +} +else +{ +uint8_t x_98; +lean_dec(x_7); +lean_dec(x_2); +x_98 = !lean_is_exclusive(x_8); +if (x_98 == 0) { return x_8; } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_8, 0); -x_93 = lean_ctor_get(x_8, 1); -lean_inc(x_93); -lean_inc(x_92); +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_8, 0); +x_100 = lean_ctor_get(x_8, 1); +lean_inc(x_100); +lean_inc(x_99); lean_dec(x_8); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); -return x_94; +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; } } } @@ -19646,414 +20226,451 @@ lean_inc(x_2); x_7 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_3); if (lean_obj_tag(x_7) == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); x_9 = lean_ctor_get(x_7, 1); lean_inc(x_9); lean_dec(x_7); x_10 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_8); -x_11 = l_Lean_Elab_Command_elabSynth___closed__3; -x_12 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_8, x_11); -x_13 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_8); lean_dec(x_8); -x_14 = l_Lean_Elab_Term_elabBinders___rarg(x_10, x_6, x_12, x_13); -lean_dec(x_10); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); lean_inc(x_2); -x_17 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_9); +x_11 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_9); +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; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = l_Lean_Elab_Command_elabSynth___closed__3; +x_15 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_12, x_14); +x_16 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_12); +lean_dec(x_12); +x_17 = l_Lean_Elab_Term_elabBinders___rarg(x_10, x_6, x_15, x_16); +lean_dec(x_10); if (lean_obj_tag(x_17) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_18 = lean_ctor_get(x_16, 0); +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 0); +x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); lean_dec(x_17); -x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_2); +x_20 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_13); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_21 = lean_ctor_get(x_19, 0); lean_inc(x_21); -lean_dec(x_18); -x_22 = lean_ctor_get(x_16, 2); +x_22 = lean_ctor_get(x_20, 0); lean_inc(x_22); -lean_dec(x_16); -x_23 = !lean_is_exclusive(x_19); -if (x_23 == 0) +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = lean_ctor_get(x_21, 0); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_ctor_get(x_19, 2); +lean_inc(x_25); +lean_dec(x_19); +x_26 = !lean_is_exclusive(x_22); +if (x_26 == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_19, 1); -lean_dec(x_24); -x_25 = lean_ctor_get(x_19, 0); -lean_dec(x_25); -lean_ctor_set(x_19, 1, x_22); -lean_ctor_set(x_19, 0, x_21); -x_26 = l___private_Init_Lean_Elab_Command_3__setState(x_19, x_2, x_20); -if (lean_obj_tag(x_26) == 0) -{ -uint8_t x_27; -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) -{ -lean_object* x_28; -x_28 = lean_ctor_get(x_26, 0); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_22, 1); +lean_dec(x_27); +x_28 = lean_ctor_get(x_22, 0); lean_dec(x_28); -lean_ctor_set(x_26, 0, x_15); -return x_26; +lean_ctor_set(x_22, 1, x_25); +lean_ctor_set(x_22, 0, x_24); +x_29 = l___private_Init_Lean_Elab_Command_3__setState(x_22, x_2, x_23); +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; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +lean_ctor_set(x_29, 0, x_18); +return x_29; } else { -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_26, 1); -lean_inc(x_29); -lean_dec(x_26); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_15); -lean_ctor_set(x_30, 1, x_29); -return x_30; -} -} -else -{ -uint8_t x_31; -lean_dec(x_15); -x_31 = !lean_is_exclusive(x_26); -if (x_31 == 0) -{ -return x_26; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_26, 0); -x_33 = lean_ctor_get(x_26, 1); -lean_inc(x_33); +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_29, 1); lean_inc(x_32); -lean_dec(x_26); -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_dec(x_29); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_18); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_35 = lean_ctor_get(x_19, 2); -x_36 = lean_ctor_get(x_19, 3); -x_37 = lean_ctor_get(x_19, 4); -lean_inc(x_37); +uint8_t x_34; +lean_dec(x_18); +x_34 = !lean_is_exclusive(x_29); +if (x_34 == 0) +{ +return x_29; +} +else +{ +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_inc(x_35); -lean_dec(x_19); -x_38 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_38, 0, x_21); -lean_ctor_set(x_38, 1, x_22); -lean_ctor_set(x_38, 2, x_35); -lean_ctor_set(x_38, 3, x_36); -lean_ctor_set(x_38, 4, x_37); -x_39 = l___private_Init_Lean_Elab_Command_3__setState(x_38, x_2, x_20); -if (lean_obj_tag(x_39) == 0) +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 { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_39, 1); +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_22, 2); +x_39 = lean_ctor_get(x_22, 3); +x_40 = lean_ctor_get(x_22, 4); lean_inc(x_40); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_41 = x_39; -} else { - lean_dec_ref(x_39); - x_41 = lean_box(0); -} -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_15); -lean_ctor_set(x_42, 1, x_40); -return x_42; -} -else +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_22); +x_41 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_41, 0, x_24); +lean_ctor_set(x_41, 1, x_25); +lean_ctor_set(x_41, 2, x_38); +lean_ctor_set(x_41, 3, x_39); +lean_ctor_set(x_41, 4, x_40); +x_42 = l___private_Init_Lean_Elab_Command_3__setState(x_41, x_2, x_23); +if (lean_obj_tag(x_42) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -lean_dec(x_15); -x_43 = lean_ctor_get(x_39, 0); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_42, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_39, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_45 = x_39; +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_44 = x_42; } else { - lean_dec_ref(x_39); - x_45 = lean_box(0); + lean_dec_ref(x_42); + x_44 = lean_box(0); } -if (lean_is_scalar(x_45)) { - x_46 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_44)) { + x_45 = lean_alloc_ctor(0, 2, 0); } else { - x_46 = x_45; + x_45 = x_44; } -lean_ctor_set(x_46, 0, x_43); -lean_ctor_set(x_46, 1, x_44); -return x_46; +lean_ctor_set(x_45, 0, x_18); +lean_ctor_set(x_45, 1, x_43); +return x_45; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_18); +x_46 = lean_ctor_get(x_42, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_42, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_48 = x_42; +} else { + lean_dec_ref(x_42); + x_48 = lean_box(0); +} +if (lean_is_scalar(x_48)) { + x_49 = lean_alloc_ctor(1, 2, 0); +} else { + x_49 = x_48; +} +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_47); +return x_49; } } } else { -uint8_t x_47; -lean_dec(x_16); -lean_dec(x_15); +uint8_t x_50; +lean_dec(x_19); +lean_dec(x_18); lean_dec(x_2); -x_47 = !lean_is_exclusive(x_17); -if (x_47 == 0) +x_50 = !lean_is_exclusive(x_20); +if (x_50 == 0) { -return x_17; +return x_20; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_17, 0); -x_49 = lean_ctor_get(x_17, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_17); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; -} -} -} -else -{ -lean_object* x_51; -x_51 = lean_ctor_get(x_14, 0); -lean_inc(x_51); -if (lean_obj_tag(x_51) == 0) -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_14, 1); +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_20, 0); +x_52 = lean_ctor_get(x_20, 1); lean_inc(x_52); -lean_dec(x_14); -x_53 = lean_ctor_get(x_51, 0); -lean_inc(x_53); -lean_dec(x_51); -lean_inc(x_2); -x_54 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_9); +lean_inc(x_51); +lean_dec(x_20); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +else +{ +lean_object* x_54; +x_54 = lean_ctor_get(x_17, 0); +lean_inc(x_54); if (lean_obj_tag(x_54) == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_55 = lean_ctor_get(x_52, 0); +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_17, 1); lean_inc(x_55); +lean_dec(x_17); x_56 = lean_ctor_get(x_54, 0); lean_inc(x_56); -x_57 = lean_ctor_get(x_54, 1); -lean_inc(x_57); lean_dec(x_54); +lean_inc(x_2); +x_57 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_13); +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; uint8_t x_63; x_58 = lean_ctor_get(x_55, 0); lean_inc(x_58); -lean_dec(x_55); -x_59 = lean_ctor_get(x_52, 2); +x_59 = lean_ctor_get(x_57, 0); lean_inc(x_59); -lean_dec(x_52); -x_60 = !lean_is_exclusive(x_56); -if (x_60 == 0) +x_60 = lean_ctor_get(x_57, 1); +lean_inc(x_60); +lean_dec(x_57); +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +lean_dec(x_58); +x_62 = lean_ctor_get(x_55, 2); +lean_inc(x_62); +lean_dec(x_55); +x_63 = !lean_is_exclusive(x_59); +if (x_63 == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_56, 1); -lean_dec(x_61); -x_62 = lean_ctor_get(x_56, 0); -lean_dec(x_62); -lean_ctor_set(x_56, 1, x_59); -lean_ctor_set(x_56, 0, x_58); -x_63 = l___private_Init_Lean_Elab_Command_3__setState(x_56, x_2, x_57); -if (lean_obj_tag(x_63) == 0) -{ -uint8_t x_64; -x_64 = !lean_is_exclusive(x_63); -if (x_64 == 0) -{ -lean_object* x_65; -x_65 = lean_ctor_get(x_63, 0); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_59, 1); +lean_dec(x_64); +x_65 = lean_ctor_get(x_59, 0); lean_dec(x_65); -lean_ctor_set_tag(x_63, 1); -lean_ctor_set(x_63, 0, x_53); -return x_63; +lean_ctor_set(x_59, 1, x_62); +lean_ctor_set(x_59, 0, x_61); +x_66 = l___private_Init_Lean_Elab_Command_3__setState(x_59, x_2, x_60); +if (lean_obj_tag(x_66) == 0) +{ +uint8_t x_67; +x_67 = !lean_is_exclusive(x_66); +if (x_67 == 0) +{ +lean_object* x_68; +x_68 = lean_ctor_get(x_66, 0); +lean_dec(x_68); +lean_ctor_set_tag(x_66, 1); +lean_ctor_set(x_66, 0, x_56); +return x_66; } else { -lean_object* x_66; lean_object* x_67; -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -lean_dec(x_63); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_53); -lean_ctor_set(x_67, 1, x_66); -return x_67; -} -} -else -{ -uint8_t x_68; -lean_dec(x_53); -x_68 = !lean_is_exclusive(x_63); -if (x_68 == 0) -{ -return x_63; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_63, 0); -x_70 = lean_ctor_get(x_63, 1); -lean_inc(x_70); +lean_object* x_69; lean_object* x_70; +x_69 = lean_ctor_get(x_66, 1); lean_inc(x_69); -lean_dec(x_63); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} +lean_dec(x_66); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_56); +lean_ctor_set(x_70, 1, x_69); +return x_70; } } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_72 = lean_ctor_get(x_56, 2); -x_73 = lean_ctor_get(x_56, 3); -x_74 = lean_ctor_get(x_56, 4); -lean_inc(x_74); +uint8_t x_71; +lean_dec(x_56); +x_71 = !lean_is_exclusive(x_66); +if (x_71 == 0) +{ +return x_66; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_66, 0); +x_73 = lean_ctor_get(x_66, 1); lean_inc(x_73); lean_inc(x_72); -lean_dec(x_56); -x_75 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_75, 0, x_58); -lean_ctor_set(x_75, 1, x_59); -lean_ctor_set(x_75, 2, x_72); -lean_ctor_set(x_75, 3, x_73); -lean_ctor_set(x_75, 4, x_74); -x_76 = l___private_Init_Lean_Elab_Command_3__setState(x_75, x_2, x_57); -if (lean_obj_tag(x_76) == 0) +lean_dec(x_66); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_76, 1); +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_75 = lean_ctor_get(x_59, 2); +x_76 = lean_ctor_get(x_59, 3); +x_77 = lean_ctor_get(x_59, 4); lean_inc(x_77); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - x_78 = x_76; -} else { - lean_dec_ref(x_76); - x_78 = lean_box(0); -} -if (lean_is_scalar(x_78)) { - x_79 = lean_alloc_ctor(1, 2, 0); -} else { - x_79 = x_78; - lean_ctor_set_tag(x_79, 1); -} -lean_ctor_set(x_79, 0, x_53); -lean_ctor_set(x_79, 1, x_77); -return x_79; -} -else +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_59); +x_78 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_78, 0, x_61); +lean_ctor_set(x_78, 1, x_62); +lean_ctor_set(x_78, 2, x_75); +lean_ctor_set(x_78, 3, x_76); +lean_ctor_set(x_78, 4, x_77); +x_79 = l___private_Init_Lean_Elab_Command_3__setState(x_78, x_2, x_60); +if (lean_obj_tag(x_79) == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -lean_dec(x_53); -x_80 = lean_ctor_get(x_76, 0); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_79, 1); lean_inc(x_80); -x_81 = lean_ctor_get(x_76, 1); -lean_inc(x_81); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - x_82 = x_76; +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_81 = x_79; } else { - lean_dec_ref(x_76); - x_82 = lean_box(0); + lean_dec_ref(x_79); + x_81 = lean_box(0); } -if (lean_is_scalar(x_82)) { - x_83 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_81)) { + x_82 = lean_alloc_ctor(1, 2, 0); } else { - x_83 = x_82; + x_82 = x_81; + lean_ctor_set_tag(x_82, 1); } -lean_ctor_set(x_83, 0, x_80); -lean_ctor_set(x_83, 1, x_81); -return x_83; +lean_ctor_set(x_82, 0, x_56); +lean_ctor_set(x_82, 1, x_80); +return x_82; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_dec(x_56); +x_83 = lean_ctor_get(x_79, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_79, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_85 = x_79; +} else { + lean_dec_ref(x_79); + x_85 = lean_box(0); +} +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(1, 2, 0); +} else { + x_86 = x_85; +} +lean_ctor_set(x_86, 0, x_83); +lean_ctor_set(x_86, 1, x_84); +return x_86; } } } else { -uint8_t x_84; -lean_dec(x_53); -lean_dec(x_52); +uint8_t x_87; +lean_dec(x_56); +lean_dec(x_55); lean_dec(x_2); -x_84 = !lean_is_exclusive(x_54); -if (x_84 == 0) +x_87 = !lean_is_exclusive(x_57); +if (x_87 == 0) { -return x_54; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_54, 0); -x_86 = lean_ctor_get(x_54, 1); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_54); -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; -} -} +return x_57; } else { lean_object* x_88; lean_object* x_89; lean_object* x_90; -lean_dec(x_14); -x_88 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; -x_89 = l_unreachable_x21___rarg(x_88); -x_90 = lean_apply_2(x_89, x_2, x_9); +x_88 = lean_ctor_get(x_57, 0); +x_89 = lean_ctor_get(x_57, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_57); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); return x_90; } } } else { -uint8_t x_91; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_17); +x_91 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; +x_92 = l_unreachable_x21___rarg(x_91); +x_93 = lean_apply_2(x_92, x_2, x_13); +return x_93; +} +} +} +else +{ +uint8_t x_94; +lean_dec(x_10); lean_dec(x_6); lean_dec(x_2); -x_91 = !lean_is_exclusive(x_7); -if (x_91 == 0) +x_94 = !lean_is_exclusive(x_11); +if (x_94 == 0) +{ +return x_11; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_11, 0); +x_96 = lean_ctor_get(x_11, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_11); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +return x_97; +} +} +} +else +{ +uint8_t x_98; +lean_dec(x_6); +lean_dec(x_2); +x_98 = !lean_is_exclusive(x_7); +if (x_98 == 0) { return x_7; } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_7, 0); -x_93 = lean_ctor_get(x_7, 1); -lean_inc(x_93); -lean_inc(x_92); +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_7, 0); +x_100 = lean_ctor_get(x_7, 1); +lean_inc(x_100); +lean_inc(x_99); lean_dec(x_7); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); -return x_94; +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; } } } @@ -25056,94 +25673,403 @@ return x_4; lean_object* l_Lean_Elab_Command_addDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; +lean_object* x_5; lean_object* x_6; +x_5 = lean_box(0); lean_inc(x_3); -x_5 = l_Lean_Elab_Command_getEnv(x_3, x_4); -if (lean_obj_tag(x_5) == 0) +x_6 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_4); +if (lean_obj_tag(x_6) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_add_decl(x_6, x_2); -if (lean_obj_tag(x_8) == 0) +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_3, x_7, x_5); +x_10 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_7); +lean_dec(x_7); +x_11 = l_Lean_Elab_Term_addDecl(x_1, x_2, x_9, x_10); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -lean_dec(x_8); -lean_inc(x_3); -x_10 = l_Lean_Elab_Command_getOptions(x_3, x_7); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Lean_KernelException_toMessageData(x_9, x_11); -x_14 = l_Lean_Elab_Command_throwError___rarg(x_1, x_13, x_3, x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +lean_inc(x_3); +x_14 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_8); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = lean_ctor_get(x_15, 0); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_ctor_get(x_13, 2); +lean_inc(x_19); +lean_dec(x_13); +x_20 = !lean_is_exclusive(x_16); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_16, 1); +lean_dec(x_21); +x_22 = lean_ctor_get(x_16, 0); +lean_dec(x_22); +lean_ctor_set(x_16, 1, x_19); +lean_ctor_set(x_16, 0, x_18); +x_23 = l___private_Init_Lean_Elab_Command_3__setState(x_16, x_3, x_17); +if (lean_obj_tag(x_23) == 0) +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_ctor_get(x_23, 0); +lean_dec(x_25); +lean_ctor_set(x_23, 0, x_12); +return x_23; +} +else +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +lean_dec(x_23); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +else +{ +uint8_t x_28; +lean_dec(x_12); +x_28 = !lean_is_exclusive(x_23); +if (x_28 == 0) +{ +return x_23; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_23, 0); +x_30 = lean_ctor_get(x_23, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_23); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_32 = lean_ctor_get(x_16, 2); +x_33 = lean_ctor_get(x_16, 3); +x_34 = lean_ctor_get(x_16, 4); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_16); +x_35 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_35, 0, x_18); +lean_ctor_set(x_35, 1, x_19); +lean_ctor_set(x_35, 2, x_32); +lean_ctor_set(x_35, 3, x_33); +lean_ctor_set(x_35, 4, x_34); +x_36 = l___private_Init_Lean_Elab_Command_3__setState(x_35, x_3, x_17); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_38 = x_36; +} else { + lean_dec_ref(x_36); + x_38 = lean_box(0); +} +if (lean_is_scalar(x_38)) { + x_39 = lean_alloc_ctor(0, 2, 0); +} else { + x_39 = x_38; +} +lean_ctor_set(x_39, 0, x_12); +lean_ctor_set(x_39, 1, x_37); +return x_39; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_12); +x_40 = lean_ctor_get(x_36, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_36, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_42 = x_36; +} else { + lean_dec_ref(x_36); + x_42 = lean_box(0); +} +if (lean_is_scalar(x_42)) { + x_43 = lean_alloc_ctor(1, 2, 0); +} else { + x_43 = x_42; +} +lean_ctor_set(x_43, 0, x_40); +lean_ctor_set(x_43, 1, x_41); +return x_43; +} +} +} +else +{ +uint8_t x_44; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_3); +x_44 = !lean_is_exclusive(x_14); +if (x_44 == 0) +{ return x_14; } else { -uint8_t x_15; -lean_dec(x_9); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_14, 0); +x_46 = lean_ctor_get(x_14, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_14); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_11, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_11, 1); +lean_inc(x_49); +lean_dec(x_11); +x_50 = lean_ctor_get(x_48, 0); +lean_inc(x_50); +lean_dec(x_48); +lean_inc(x_3); +x_51 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_8); +if (lean_obj_tag(x_51) == 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_49, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +lean_dec(x_51); +x_55 = lean_ctor_get(x_52, 0); +lean_inc(x_55); +lean_dec(x_52); +x_56 = lean_ctor_get(x_49, 2); +lean_inc(x_56); +lean_dec(x_49); +x_57 = !lean_is_exclusive(x_53); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_53, 1); +lean_dec(x_58); +x_59 = lean_ctor_get(x_53, 0); +lean_dec(x_59); +lean_ctor_set(x_53, 1, x_56); +lean_ctor_set(x_53, 0, x_55); +x_60 = l___private_Init_Lean_Elab_Command_3__setState(x_53, x_3, x_54); +if (lean_obj_tag(x_60) == 0) +{ +uint8_t x_61; +x_61 = !lean_is_exclusive(x_60); +if (x_61 == 0) +{ +lean_object* x_62; +x_62 = lean_ctor_get(x_60, 0); +lean_dec(x_62); +lean_ctor_set_tag(x_60, 1); +lean_ctor_set(x_60, 0, x_50); +return x_60; +} +else +{ +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_60, 1); +lean_inc(x_63); +lean_dec(x_60); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_50); +lean_ctor_set(x_64, 1, x_63); +return x_64; +} +} +else +{ +uint8_t x_65; +lean_dec(x_50); +x_65 = !lean_is_exclusive(x_60); +if (x_65 == 0) +{ +return x_60; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_60, 0); +x_67 = lean_ctor_get(x_60, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_60); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_69 = lean_ctor_get(x_53, 2); +x_70 = lean_ctor_get(x_53, 3); +x_71 = lean_ctor_get(x_53, 4); +lean_inc(x_71); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_53); +x_72 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_72, 0, x_55); +lean_ctor_set(x_72, 1, x_56); +lean_ctor_set(x_72, 2, x_69); +lean_ctor_set(x_72, 3, x_70); +lean_ctor_set(x_72, 4, x_71); +x_73 = l___private_Init_Lean_Elab_Command_3__setState(x_72, x_3, x_54); +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, 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_73); + x_75 = lean_box(0); +} +if (lean_is_scalar(x_75)) { + x_76 = lean_alloc_ctor(1, 2, 0); +} else { + x_76 = x_75; + lean_ctor_set_tag(x_76, 1); +} +lean_ctor_set(x_76, 0, x_50); +lean_ctor_set(x_76, 1, x_74); +return x_76; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +lean_dec(x_50); +x_77 = lean_ctor_get(x_73, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_73, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_79 = x_73; +} else { + lean_dec_ref(x_73); + x_79 = lean_box(0); +} +if (lean_is_scalar(x_79)) { + x_80 = lean_alloc_ctor(1, 2, 0); +} else { + x_80 = x_79; +} +lean_ctor_set(x_80, 0, x_77); +lean_ctor_set(x_80, 1, x_78); +return x_80; +} +} +} +else +{ +uint8_t x_81; +lean_dec(x_50); +lean_dec(x_49); lean_dec(x_3); -x_15 = !lean_is_exclusive(x_10); -if (x_15 == 0) +x_81 = !lean_is_exclusive(x_51); +if (x_81 == 0) { -return x_10; +return x_51; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_10, 0); -x_17 = lean_ctor_get(x_10, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_10); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_51, 0); +x_83 = lean_ctor_get(x_51, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_51); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +return x_84; +} } } } else { -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_8, 0); -lean_inc(x_19); -lean_dec(x_8); -x_20 = l_Lean_Elab_Command_setEnv(x_19, x_3, x_7); -return x_20; -} -} -else -{ -uint8_t x_21; +uint8_t x_85; lean_dec(x_3); -x_21 = !lean_is_exclusive(x_5); -if (x_21 == 0) +x_85 = !lean_is_exclusive(x_6); +if (x_85 == 0) { -return x_5; +return x_6; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_5, 0); -x_23 = lean_ctor_get(x_5, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_5); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_6, 0); +x_87 = lean_ctor_get(x_6, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_6); +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; } } } @@ -25161,95 +26087,403 @@ return x_5; lean_object* l_Lean_Elab_Command_compileDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; +lean_object* x_5; lean_object* x_6; +x_5 = lean_box(0); lean_inc(x_3); -x_5 = l_Lean_Elab_Command_getEnv(x_3, x_4); -if (lean_obj_tag(x_5) == 0) +x_6 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_4); +if (lean_obj_tag(x_6) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); -lean_dec(x_5); -lean_inc(x_3); -x_8 = l_Lean_Elab_Command_getOptions(x_3, x_7); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -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_compile_decl(x_6, x_9, x_2); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_3, x_7, x_5); +x_10 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_7); +lean_dec(x_7); +x_11 = l_Lean_Elab_Term_compileDecl(x_1, x_2, x_9, x_10); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -x_13 = l_Lean_KernelException_toMessageData(x_12, x_9); -x_14 = l_Lean_Elab_Command_throwError___rarg(x_1, x_13, x_3, x_10); +lean_inc(x_3); +x_14 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_8); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = lean_ctor_get(x_15, 0); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_ctor_get(x_13, 2); +lean_inc(x_19); +lean_dec(x_13); +x_20 = !lean_is_exclusive(x_16); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_16, 1); +lean_dec(x_21); +x_22 = lean_ctor_get(x_16, 0); +lean_dec(x_22); +lean_ctor_set(x_16, 1, x_19); +lean_ctor_set(x_16, 0, x_18); +x_23 = l___private_Init_Lean_Elab_Command_3__setState(x_16, x_3, x_17); +if (lean_obj_tag(x_23) == 0) +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_ctor_get(x_23, 0); +lean_dec(x_25); +lean_ctor_set(x_23, 0, x_12); +return x_23; +} +else +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +lean_dec(x_23); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +else +{ +uint8_t x_28; +lean_dec(x_12); +x_28 = !lean_is_exclusive(x_23); +if (x_28 == 0) +{ +return x_23; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_23, 0); +x_30 = lean_ctor_get(x_23, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_23); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_32 = lean_ctor_get(x_16, 2); +x_33 = lean_ctor_get(x_16, 3); +x_34 = lean_ctor_get(x_16, 4); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_16); +x_35 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_35, 0, x_18); +lean_ctor_set(x_35, 1, x_19); +lean_ctor_set(x_35, 2, x_32); +lean_ctor_set(x_35, 3, x_33); +lean_ctor_set(x_35, 4, x_34); +x_36 = l___private_Init_Lean_Elab_Command_3__setState(x_35, x_3, x_17); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_38 = x_36; +} else { + lean_dec_ref(x_36); + x_38 = lean_box(0); +} +if (lean_is_scalar(x_38)) { + x_39 = lean_alloc_ctor(0, 2, 0); +} else { + x_39 = x_38; +} +lean_ctor_set(x_39, 0, x_12); +lean_ctor_set(x_39, 1, x_37); +return x_39; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_12); +x_40 = lean_ctor_get(x_36, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_36, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_42 = x_36; +} else { + lean_dec_ref(x_36); + x_42 = lean_box(0); +} +if (lean_is_scalar(x_42)) { + x_43 = lean_alloc_ctor(1, 2, 0); +} else { + x_43 = x_42; +} +lean_ctor_set(x_43, 0, x_40); +lean_ctor_set(x_43, 1, x_41); +return x_43; +} +} +} +else +{ +uint8_t x_44; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_3); +x_44 = !lean_is_exclusive(x_14); +if (x_44 == 0) +{ return x_14; } else { -lean_object* x_15; lean_object* x_16; -lean_dec(x_9); -x_15 = lean_ctor_get(x_11, 0); -lean_inc(x_15); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_14, 0); +x_46 = lean_ctor_get(x_14, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_14); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_11, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_11, 1); +lean_inc(x_49); lean_dec(x_11); -x_16 = l_Lean_Elab_Command_setEnv(x_15, x_3, x_10); -return x_16; +x_50 = lean_ctor_get(x_48, 0); +lean_inc(x_50); +lean_dec(x_48); +lean_inc(x_3); +x_51 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_8); +if (lean_obj_tag(x_51) == 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_49, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +lean_dec(x_51); +x_55 = lean_ctor_get(x_52, 0); +lean_inc(x_55); +lean_dec(x_52); +x_56 = lean_ctor_get(x_49, 2); +lean_inc(x_56); +lean_dec(x_49); +x_57 = !lean_is_exclusive(x_53); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_53, 1); +lean_dec(x_58); +x_59 = lean_ctor_get(x_53, 0); +lean_dec(x_59); +lean_ctor_set(x_53, 1, x_56); +lean_ctor_set(x_53, 0, x_55); +x_60 = l___private_Init_Lean_Elab_Command_3__setState(x_53, x_3, x_54); +if (lean_obj_tag(x_60) == 0) +{ +uint8_t x_61; +x_61 = !lean_is_exclusive(x_60); +if (x_61 == 0) +{ +lean_object* x_62; +x_62 = lean_ctor_get(x_60, 0); +lean_dec(x_62); +lean_ctor_set_tag(x_60, 1); +lean_ctor_set(x_60, 0, x_50); +return x_60; +} +else +{ +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_60, 1); +lean_inc(x_63); +lean_dec(x_60); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_50); +lean_ctor_set(x_64, 1, x_63); +return x_64; } } else { -uint8_t x_17; +uint8_t x_65; +lean_dec(x_50); +x_65 = !lean_is_exclusive(x_60); +if (x_65 == 0) +{ +return x_60; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_60, 0); +x_67 = lean_ctor_get(x_60, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_60); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_69 = lean_ctor_get(x_53, 2); +x_70 = lean_ctor_get(x_53, 3); +x_71 = lean_ctor_get(x_53, 4); +lean_inc(x_71); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_53); +x_72 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_72, 0, x_55); +lean_ctor_set(x_72, 1, x_56); +lean_ctor_set(x_72, 2, x_69); +lean_ctor_set(x_72, 3, x_70); +lean_ctor_set(x_72, 4, x_71); +x_73 = l___private_Init_Lean_Elab_Command_3__setState(x_72, x_3, x_54); +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, 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_73); + x_75 = lean_box(0); +} +if (lean_is_scalar(x_75)) { + x_76 = lean_alloc_ctor(1, 2, 0); +} else { + x_76 = x_75; + lean_ctor_set_tag(x_76, 1); +} +lean_ctor_set(x_76, 0, x_50); +lean_ctor_set(x_76, 1, x_74); +return x_76; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +lean_dec(x_50); +x_77 = lean_ctor_get(x_73, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_73, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_79 = x_73; +} else { + lean_dec_ref(x_73); + x_79 = lean_box(0); +} +if (lean_is_scalar(x_79)) { + x_80 = lean_alloc_ctor(1, 2, 0); +} else { + x_80 = x_79; +} +lean_ctor_set(x_80, 0, x_77); +lean_ctor_set(x_80, 1, x_78); +return x_80; +} +} +} +else +{ +uint8_t x_81; +lean_dec(x_50); +lean_dec(x_49); +lean_dec(x_3); +x_81 = !lean_is_exclusive(x_51); +if (x_81 == 0) +{ +return x_51; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_51, 0); +x_83 = lean_ctor_get(x_51, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_51); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +return x_84; +} +} +} +} +else +{ +uint8_t x_85; +lean_dec(x_3); +x_85 = !lean_is_exclusive(x_6); +if (x_85 == 0) +{ +return x_6; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_6, 0); +x_87 = lean_ctor_get(x_6, 1); +lean_inc(x_87); +lean_inc(x_86); lean_dec(x_6); -lean_dec(x_3); -x_17 = !lean_is_exclusive(x_8); -if (x_17 == 0) -{ -return x_8; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_8, 0); -x_19 = lean_ctor_get(x_8, 1); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_8); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -return x_20; -} -} -} -else -{ -uint8_t x_21; -lean_dec(x_3); -x_21 = !lean_is_exclusive(x_5); -if (x_21 == 0) -{ -return x_5; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_5, 0); -x_23 = lean_ctor_get(x_5, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_5); -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; +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; } } } @@ -25448,8 +26682,8 @@ l___private_Init_Lean_Elab_Command_10__toCommandResult___rarg___closed__1 = _ini lean_mark_persistent(l___private_Init_Lean_Elab_Command_10__toCommandResult___rarg___closed__1); l_Lean_Elab_Command_CommandElabM_inhabited___closed__1 = _init_l_Lean_Elab_Command_CommandElabM_inhabited___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_CommandElabM_inhabited___closed__1); -l_Lean_Elab_Command_runTermElabM___rarg___closed__1 = _init_l_Lean_Elab_Command_runTermElabM___rarg___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_runTermElabM___rarg___closed__1); +l_Lean_Elab_Command_liftTermElabM___rarg___closed__1 = _init_l_Lean_Elab_Command_liftTermElabM___rarg___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_liftTermElabM___rarg___closed__1); l___private_Init_Lean_Elab_Command_12__addScopes___main___closed__1 = _init_l___private_Init_Lean_Elab_Command_12__addScopes___main___closed__1(); lean_mark_persistent(l___private_Init_Lean_Elab_Command_12__addScopes___main___closed__1); l___private_Init_Lean_Elab_Command_12__addScopes___main___closed__2 = _init_l___private_Init_Lean_Elab_Command_12__addScopes___main___closed__2(); diff --git a/stage0/stdlib/Init/Lean/Elab/Declaration.c b/stage0/stdlib/Init/Lean/Elab/Declaration.c index d786c33723..aabc6da6e9 100644 --- a/stage0/stdlib/Init/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Init/Lean/Elab/Declaration.c @@ -14,8 +14,7 @@ extern "C" { #endif lean_object* l_Lean_Elab_Command_elabDeclaration(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_mkHole___closed__3; -lean_object* l_Lean_Elab_Command_elabConstant___closed__9; +extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_extractMacroScopes(lean_object*); extern lean_object* l_Lean_Parser_Command_abbrev___elambda__1___closed__2; @@ -32,11 +31,9 @@ lean_object* l_Lean_Elab_Command_elabConstant___closed__2; lean_object* l_Lean_Elab_Command_elabDeclaration___closed__4; lean_object* l_Lean_Elab_Command_elabExample(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAbbrev(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Command_runTermElabM___rarg___closed__1; lean_object* l_Lean_Elab_Command_elabExample___closed__1; lean_object* l_Lean_Elab_Command_elabConstant___closed__1; extern lean_object* l_Array_empty___closed__1; -extern lean_object* l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__3; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_elabAxiom___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclSig(lean_object*); lean_object* l_Lean_Elab_Command_elabExample___closed__2; @@ -59,6 +56,7 @@ lean_object* l___private_Init_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMV extern lean_object* l_Lean_Parser_Command_classInductive___elambda__1___closed__2; extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabInstance___closed__4; lean_object* l_Lean_Elab_Command_mkDeclName(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabDeclaration___closed__1; lean_object* l_Lean_Elab_Command_expandOptDeclSig___boxed(lean_object*); @@ -67,7 +65,7 @@ lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_ lean_object* l_Lean_Elab_Command_elabStructure___rarg(lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInstance___closed__1; -lean_object* l_Lean_Elab_Command_elabConstant___closed__11; +lean_object* l_Lean_Elab_Command_elabInstance___closed__2; lean_object* l_Lean_Elab_Command_expandDeclId(lean_object*); extern lean_object* l_Lean_Parser_Command_def___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Command_declValSimple___elambda__1___closed__2; @@ -77,6 +75,7 @@ lean_object* l_Lean_Elab_Command_elabAxiom___lambda__1(lean_object*, lean_object lean_object* l_Lean_Elab_Command_expandOptDeclSig(lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabDeclaration___closed__3; extern lean_object* l_Lean_Elab_Command_mkDef___lambda__1___closed__1; +extern lean_object* l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__11; extern lean_object* l_Lean_Meta_registerInstanceAttr___closed__2; lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Elab_Command_elabClassInductive(lean_object*, lean_object*, lean_object*); @@ -87,7 +86,6 @@ lean_object* l_Lean_Elab_Command_throwError___rarg(lean_object*, lean_object*, l uint8_t l_List_elem___main___at_Lean_Parser_addLeadingParser___spec__7(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_docComment___elambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_Command_6__mkTermContext(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabConstant___closed__7; lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabTheorem(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_modifyScope___closed__1; @@ -97,9 +95,7 @@ lean_object* l_Lean_Elab_Command_elabAxiom___lambda__1___boxed(lean_object*, lea lean_object* l_Lean_Elab_Command_sortDeclLevelParams(lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabClassInductive___boxed(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_nullKind___closed__2; extern lean_object* l_Lean_mkReducibilityAttrs___closed__4; -lean_object* l_Lean_Elab_Command_elabConstant___closed__10; lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Command_2__getState(lean_object*, lean_object*); lean_object* l_List_drop___main___rarg(lean_object*, lean_object*); @@ -109,7 +105,7 @@ lean_object* l_Lean_Elab_Command_elabInstance(lean_object*, lean_object*, lean_o extern lean_object* l_Lean_Parser_Command_axiom___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getMainModule(lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Term_elabLetDecl___closed__6; +lean_object* l_Lean_Elab_Command_elabInstance___closed__3; lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_MacroScopesView_review(lean_object*); @@ -133,7 +129,6 @@ lean_object* l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel___rarg(lean_o lean_object* l_Lean_Elab_Command_elabDefLike(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclSig___boxed(lean_object*); lean_object* l_Lean_Elab_Command_elabDeclaration___boxed(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_mkHole___closed__2; lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabDeclaration___closed__2; @@ -149,9 +144,9 @@ lean_object* l_Lean_Elab_Command_elabAbbrev___closed__1; lean_object* l___private_Init_Lean_Elab_Command_7__mkTermState(lean_object*); lean_object* l_Lean_Elab_Command_elabAbbrev___closed__4; lean_object* l_Lean_CollectLevelParams_main___main(lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__2; -lean_object* l_Lean_Elab_Command_elabConstant___closed__8; extern lean_object* l_Lean_Parser_Command_theorem___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_elabClassInductive___rarg(lean_object*); lean_object* l___private_Init_Lean_Elab_Command_3__setState(lean_object*, lean_object*, lean_object*); @@ -429,62 +424,6 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l_Lean_Elab_Command_elabConstant___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_mkHole___closed__3; -x_3 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Command_elabConstant___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_empty___closed__1; -x_2 = l_Lean_Elab_Command_elabConstant___closed__7; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Command_elabConstant___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkHole___closed__2; -x_2 = l_Lean_Elab_Command_elabConstant___closed__8; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Command_elabConstant___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_empty___closed__1; -x_2 = l_Lean_Elab_Command_elabConstant___closed__9; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Command_elabConstant___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_nullKind___closed__2; -x_2 = l_Lean_Elab_Command_elabConstant___closed__10; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} lean_object* l_Lean_Elab_Command_elabConstant(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -540,13 +479,13 @@ x_30 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_30, 0, x_29); lean_ctor_set(x_30, 1, x_28); x_31 = lean_array_push(x_25, x_30); -x_32 = l_Lean_Elab_Command_elabConstant___closed__11; +x_32 = l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__11; x_33 = lean_array_push(x_31, x_32); x_34 = l_Lean_mkAppStx___closed__8; x_35 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_33); -x_36 = l_Lean_Elab_Term_elabLetDecl___closed__6; +x_36 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_37 = l_Lean_mkAtomFrom(x_2, x_36); x_38 = l_Lean_mkAppStx___closed__9; x_39 = lean_array_push(x_38, x_37); @@ -660,6 +599,34 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } +lean_object* _init_l_Lean_Elab_Command_elabInstance___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("not implemented yet"); +return x_1; +} +} +lean_object* _init_l_Lean_Elab_Command_elabInstance___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_elabInstance___closed__2; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Elab_Command_elabInstance___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_elabInstance___closed__3; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} lean_object* l_Lean_Elab_Command_elabInstance(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -685,7 +652,7 @@ lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); -x_15 = l___private_Init_Lean_Elab_Binders_4__expandBinderModifier___closed__3; +x_15 = l_Lean_Elab_Command_elabInstance___closed__4; x_16 = l_Lean_Elab_Command_throwError___rarg(x_2, x_15, x_3, x_4); lean_dec(x_2); x_17 = !lean_is_exclusive(x_16); @@ -3335,43 +3302,43 @@ lean_inc(x_3); x_15 = l_Lean_Elab_Command_getLevelNames(x_3, x_4); 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_375; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_385; x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_375 = l_Lean_Syntax_isNone(x_14); -if (x_375 == 0) +x_385 = l_Lean_Syntax_isNone(x_14); +if (x_385 == 0) { -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_376 = l_Lean_Syntax_getArg(x_14, x_5); -x_377 = l_Lean_Syntax_getArgs(x_376); -lean_dec(x_376); -x_378 = lean_unsigned_to_nat(0u); -x_379 = l_Array_empty___closed__1; -x_380 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_7, x_377, x_378, x_379); -lean_dec(x_377); +lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; +x_386 = l_Lean_Syntax_getArg(x_14, x_5); +x_387 = l_Lean_Syntax_getArgs(x_386); +lean_dec(x_386); +x_388 = lean_unsigned_to_nat(0u); +x_389 = l_Array_empty___closed__1; +x_390 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_7, x_387, x_388, x_389); +lean_dec(x_387); lean_inc(x_3); lean_inc(x_16); -x_381 = l_Array_iterateMAux___main___at_Lean_Elab_Command_elabAxiom___spec__5(x_14, x_380, x_378, x_16, x_3, x_17); -lean_dec(x_380); +x_391 = l_Array_iterateMAux___main___at_Lean_Elab_Command_elabAxiom___spec__5(x_14, x_390, x_388, x_16, x_3, x_17); +lean_dec(x_390); lean_dec(x_14); -if (lean_obj_tag(x_381) == 0) +if (lean_obj_tag(x_391) == 0) { -lean_object* x_382; lean_object* x_383; -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_18 = x_382; -x_19 = x_383; -goto block_374; +lean_object* x_392; lean_object* x_393; +x_392 = lean_ctor_get(x_391, 0); +lean_inc(x_392); +x_393 = lean_ctor_get(x_391, 1); +lean_inc(x_393); +lean_dec(x_391); +x_18 = x_392; +x_19 = x_393; +goto block_384; } else { -uint8_t x_384; +uint8_t x_394; lean_dec(x_16); lean_dec(x_13); lean_dec(x_11); @@ -3379,23 +3346,23 @@ lean_dec(x_10); lean_dec(x_6); lean_dec(x_3); lean_dec(x_1); -x_384 = !lean_is_exclusive(x_381); -if (x_384 == 0) +x_394 = !lean_is_exclusive(x_391); +if (x_394 == 0) { -return x_381; +return x_391; } else { -lean_object* x_385; lean_object* x_386; lean_object* x_387; -x_385 = lean_ctor_get(x_381, 0); -x_386 = lean_ctor_get(x_381, 1); -lean_inc(x_386); -lean_inc(x_385); -lean_dec(x_381); -x_387 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_387, 0, x_385); -lean_ctor_set(x_387, 1, x_386); -return x_387; +lean_object* x_395; lean_object* x_396; lean_object* x_397; +x_395 = lean_ctor_get(x_391, 0); +x_396 = lean_ctor_get(x_391, 1); +lean_inc(x_396); +lean_inc(x_395); +lean_dec(x_391); +x_397 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_397, 0, x_395); +lean_ctor_set(x_397, 1, x_396); +return x_397; } } } @@ -3405,9 +3372,9 @@ lean_dec(x_14); lean_inc(x_16); x_18 = x_16; x_19 = x_17; -goto block_374; +goto block_384; } -block_374: +block_384: { lean_object* x_20; lean_object* x_21; x_20 = l_Lean_extractMacroScopes(x_13); @@ -3498,309 +3465,320 @@ lean_inc(x_3); x_128 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_125); if (lean_obj_tag(x_128) == 0) { -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; 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___private_Init_Lean_Elab_Command_9__getVarDecls(x_129); -x_132 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_3, x_129, x_126); -x_133 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_129); lean_dec(x_129); -x_134 = l_Lean_Elab_Term_elabBinders___rarg(x_131, x_127, x_132, x_133); -lean_dec(x_131); -if (lean_obj_tag(x_134) == 0) -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; -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); lean_inc(x_3); -x_137 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_130); +x_132 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_130); +if (lean_obj_tag(x_132) == 0) +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); +lean_dec(x_132); +x_135 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_3, x_133, x_126); +x_136 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_133); +lean_dec(x_133); +x_137 = l_Lean_Elab_Term_elabBinders___rarg(x_131, x_127, x_135, x_136); +lean_dec(x_131); if (lean_obj_tag(x_137) == 0) { -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; -x_138 = lean_ctor_get(x_136, 0); +lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_138 = lean_ctor_get(x_137, 0); lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 0); +x_139 = lean_ctor_get(x_137, 1); lean_inc(x_139); -x_140 = lean_ctor_get(x_137, 1); -lean_inc(x_140); lean_dec(x_137); -x_141 = lean_ctor_get(x_138, 0); +lean_inc(x_3); +x_140 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_134); +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; uint8_t x_146; +x_141 = lean_ctor_get(x_139, 0); lean_inc(x_141); -lean_dec(x_138); -x_142 = lean_ctor_get(x_136, 2); +x_142 = lean_ctor_get(x_140, 0); lean_inc(x_142); -lean_dec(x_136); -x_143 = !lean_is_exclusive(x_139); -if (x_143 == 0) -{ -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_ctor_get(x_139, 1); -lean_dec(x_144); -x_145 = lean_ctor_get(x_139, 0); -lean_dec(x_145); -lean_ctor_set(x_139, 1, x_142); -lean_ctor_set(x_139, 0, x_141); -lean_inc(x_3); -x_146 = l___private_Init_Lean_Elab_Command_3__setState(x_139, x_3, x_140); -if (lean_obj_tag(x_146) == 0) -{ -lean_object* x_147; -x_147 = lean_ctor_get(x_146, 1); -lean_inc(x_147); -lean_dec(x_146); -x_51 = x_135; -x_52 = x_147; -goto block_118; -} -else -{ -lean_object* x_148; lean_object* x_149; -lean_dec(x_135); -lean_dec(x_50); -lean_dec(x_48); -lean_dec(x_24); -x_148 = lean_ctor_get(x_146, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_146, 1); -lean_inc(x_149); -lean_dec(x_146); -x_35 = x_148; -x_36 = x_149; -goto block_46; -} -} -else -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_150 = lean_ctor_get(x_139, 2); -x_151 = lean_ctor_get(x_139, 3); -x_152 = lean_ctor_get(x_139, 4); -lean_inc(x_152); -lean_inc(x_151); -lean_inc(x_150); +x_143 = lean_ctor_get(x_140, 1); +lean_inc(x_143); +lean_dec(x_140); +x_144 = lean_ctor_get(x_141, 0); +lean_inc(x_144); +lean_dec(x_141); +x_145 = lean_ctor_get(x_139, 2); +lean_inc(x_145); lean_dec(x_139); -x_153 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_153, 0, x_141); -lean_ctor_set(x_153, 1, x_142); -lean_ctor_set(x_153, 2, x_150); -lean_ctor_set(x_153, 3, x_151); -lean_ctor_set(x_153, 4, x_152); -lean_inc(x_3); -x_154 = l___private_Init_Lean_Elab_Command_3__setState(x_153, x_3, x_140); -if (lean_obj_tag(x_154) == 0) +x_146 = !lean_is_exclusive(x_142); +if (x_146 == 0) { -lean_object* x_155; -x_155 = lean_ctor_get(x_154, 1); -lean_inc(x_155); -lean_dec(x_154); -x_51 = x_135; -x_52 = x_155; +lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_147 = lean_ctor_get(x_142, 1); +lean_dec(x_147); +x_148 = lean_ctor_get(x_142, 0); +lean_dec(x_148); +lean_ctor_set(x_142, 1, x_145); +lean_ctor_set(x_142, 0, x_144); +lean_inc(x_3); +x_149 = l___private_Init_Lean_Elab_Command_3__setState(x_142, x_3, x_143); +if (lean_obj_tag(x_149) == 0) +{ +lean_object* x_150; +x_150 = lean_ctor_get(x_149, 1); +lean_inc(x_150); +lean_dec(x_149); +x_51 = x_138; +x_52 = x_150; goto block_118; } else { -lean_object* x_156; lean_object* x_157; -lean_dec(x_135); +lean_object* x_151; lean_object* x_152; +lean_dec(x_138); lean_dec(x_50); lean_dec(x_48); lean_dec(x_24); -x_156 = lean_ctor_get(x_154, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_154, 1); -lean_inc(x_157); -lean_dec(x_154); -x_35 = x_156; -x_36 = x_157; -goto block_46; -} -} -} -else -{ -lean_object* x_158; lean_object* x_159; -lean_dec(x_136); -lean_dec(x_135); -lean_dec(x_50); -lean_dec(x_48); -lean_dec(x_24); -x_158 = lean_ctor_get(x_137, 0); -lean_inc(x_158); -x_159 = lean_ctor_get(x_137, 1); -lean_inc(x_159); -lean_dec(x_137); -x_35 = x_158; -x_36 = x_159; +x_151 = lean_ctor_get(x_149, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_149, 1); +lean_inc(x_152); +lean_dec(x_149); +x_35 = x_151; +x_36 = x_152; goto block_46; } } else { -lean_object* x_160; -x_160 = lean_ctor_get(x_134, 0); -lean_inc(x_160); -if (lean_obj_tag(x_160) == 0) -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; -lean_dec(x_50); -lean_dec(x_48); -lean_dec(x_24); -x_161 = lean_ctor_get(x_134, 1); -lean_inc(x_161); -lean_dec(x_134); -x_162 = lean_ctor_get(x_160, 0); -lean_inc(x_162); -lean_dec(x_160); +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_153 = lean_ctor_get(x_142, 2); +x_154 = lean_ctor_get(x_142, 3); +x_155 = lean_ctor_get(x_142, 4); +lean_inc(x_155); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_142); +x_156 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_156, 0, x_144); +lean_ctor_set(x_156, 1, x_145); +lean_ctor_set(x_156, 2, x_153); +lean_ctor_set(x_156, 3, x_154); +lean_ctor_set(x_156, 4, x_155); lean_inc(x_3); -x_163 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_130); +x_157 = l___private_Init_Lean_Elab_Command_3__setState(x_156, x_3, x_143); +if (lean_obj_tag(x_157) == 0) +{ +lean_object* x_158; +x_158 = lean_ctor_get(x_157, 1); +lean_inc(x_158); +lean_dec(x_157); +x_51 = x_138; +x_52 = x_158; +goto block_118; +} +else +{ +lean_object* x_159; lean_object* x_160; +lean_dec(x_138); +lean_dec(x_50); +lean_dec(x_48); +lean_dec(x_24); +x_159 = lean_ctor_get(x_157, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_157, 1); +lean_inc(x_160); +lean_dec(x_157); +x_35 = x_159; +x_36 = x_160; +goto block_46; +} +} +} +else +{ +lean_object* x_161; lean_object* x_162; +lean_dec(x_139); +lean_dec(x_138); +lean_dec(x_50); +lean_dec(x_48); +lean_dec(x_24); +x_161 = lean_ctor_get(x_140, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_140, 1); +lean_inc(x_162); +lean_dec(x_140); +x_35 = x_161; +x_36 = x_162; +goto block_46; +} +} +else +{ +lean_object* x_163; +x_163 = lean_ctor_get(x_137, 0); +lean_inc(x_163); if (lean_obj_tag(x_163) == 0) { -lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; -x_164 = lean_ctor_get(x_161, 0); +lean_object* x_164; lean_object* x_165; lean_object* x_166; +lean_dec(x_50); +lean_dec(x_48); +lean_dec(x_24); +x_164 = lean_ctor_get(x_137, 1); lean_inc(x_164); +lean_dec(x_137); x_165 = lean_ctor_get(x_163, 0); lean_inc(x_165); -x_166 = lean_ctor_get(x_163, 1); -lean_inc(x_166); lean_dec(x_163); +lean_inc(x_3); +x_166 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_134); +if (lean_obj_tag(x_166) == 0) +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; uint8_t x_172; x_167 = lean_ctor_get(x_164, 0); lean_inc(x_167); -lean_dec(x_164); -x_168 = lean_ctor_get(x_161, 2); +x_168 = lean_ctor_get(x_166, 0); lean_inc(x_168); -lean_dec(x_161); -x_169 = !lean_is_exclusive(x_165); -if (x_169 == 0) +x_169 = lean_ctor_get(x_166, 1); +lean_inc(x_169); +lean_dec(x_166); +x_170 = lean_ctor_get(x_167, 0); +lean_inc(x_170); +lean_dec(x_167); +x_171 = lean_ctor_get(x_164, 2); +lean_inc(x_171); +lean_dec(x_164); +x_172 = !lean_is_exclusive(x_168); +if (x_172 == 0) { -lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_170 = lean_ctor_get(x_165, 1); -lean_dec(x_170); -x_171 = lean_ctor_get(x_165, 0); -lean_dec(x_171); -lean_ctor_set(x_165, 1, x_168); -lean_ctor_set(x_165, 0, x_167); +lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_173 = lean_ctor_get(x_168, 1); +lean_dec(x_173); +x_174 = lean_ctor_get(x_168, 0); +lean_dec(x_174); +lean_ctor_set(x_168, 1, x_171); +lean_ctor_set(x_168, 0, x_170); lean_inc(x_3); -x_172 = l___private_Init_Lean_Elab_Command_3__setState(x_165, x_3, x_166); -if (lean_obj_tag(x_172) == 0) +x_175 = l___private_Init_Lean_Elab_Command_3__setState(x_168, x_3, x_169); +if (lean_obj_tag(x_175) == 0) { -lean_object* x_173; -x_173 = lean_ctor_get(x_172, 1); -lean_inc(x_173); -lean_dec(x_172); -x_35 = x_162; -x_36 = x_173; -goto block_46; -} -else -{ -lean_object* x_174; lean_object* x_175; -lean_dec(x_162); -x_174 = lean_ctor_get(x_172, 0); -lean_inc(x_174); -x_175 = lean_ctor_get(x_172, 1); -lean_inc(x_175); -lean_dec(x_172); -x_35 = x_174; -x_36 = x_175; -goto block_46; -} -} -else -{ -lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_176 = lean_ctor_get(x_165, 2); -x_177 = lean_ctor_get(x_165, 3); -x_178 = lean_ctor_get(x_165, 4); -lean_inc(x_178); -lean_inc(x_177); +lean_object* x_176; +x_176 = lean_ctor_get(x_175, 1); lean_inc(x_176); +lean_dec(x_175); +x_35 = x_165; +x_36 = x_176; +goto block_46; +} +else +{ +lean_object* x_177; lean_object* x_178; lean_dec(x_165); -x_179 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_179, 0, x_167); -lean_ctor_set(x_179, 1, x_168); -lean_ctor_set(x_179, 2, x_176); -lean_ctor_set(x_179, 3, x_177); -lean_ctor_set(x_179, 4, x_178); -lean_inc(x_3); -x_180 = l___private_Init_Lean_Elab_Command_3__setState(x_179, x_3, x_166); -if (lean_obj_tag(x_180) == 0) +x_177 = lean_ctor_get(x_175, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_175, 1); +lean_inc(x_178); +lean_dec(x_175); +x_35 = x_177; +x_36 = x_178; +goto block_46; +} +} +else { -lean_object* x_181; -x_181 = lean_ctor_get(x_180, 1); +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_179 = lean_ctor_get(x_168, 2); +x_180 = lean_ctor_get(x_168, 3); +x_181 = lean_ctor_get(x_168, 4); lean_inc(x_181); -lean_dec(x_180); -x_35 = x_162; -x_36 = x_181; -goto block_46; -} -else -{ -lean_object* x_182; lean_object* x_183; -lean_dec(x_162); -x_182 = lean_ctor_get(x_180, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_180, 1); -lean_inc(x_183); -lean_dec(x_180); -x_35 = x_182; -x_36 = x_183; -goto block_46; -} -} -} -else -{ -lean_object* x_184; lean_object* x_185; -lean_dec(x_162); -lean_dec(x_161); -x_184 = lean_ctor_get(x_163, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_163, 1); -lean_inc(x_185); -lean_dec(x_163); -x_35 = x_184; -x_36 = x_185; -goto block_46; -} -} -else -{ -lean_object* x_186; lean_object* x_187; lean_object* x_188; -lean_dec(x_134); -x_186 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; -x_187 = l_unreachable_x21___rarg(x_186); +lean_inc(x_180); +lean_inc(x_179); +lean_dec(x_168); +x_182 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_182, 0, x_170); +lean_ctor_set(x_182, 1, x_171); +lean_ctor_set(x_182, 2, x_179); +lean_ctor_set(x_182, 3, x_180); +lean_ctor_set(x_182, 4, x_181); lean_inc(x_3); -x_188 = lean_apply_2(x_187, x_3, x_130); -if (lean_obj_tag(x_188) == 0) +x_183 = l___private_Init_Lean_Elab_Command_3__setState(x_182, x_3, x_169); +if (lean_obj_tag(x_183) == 0) { -lean_object* x_189; lean_object* x_190; -x_189 = lean_ctor_get(x_188, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_188, 1); -lean_inc(x_190); -lean_dec(x_188); -x_51 = x_189; -x_52 = x_190; +lean_object* x_184; +x_184 = lean_ctor_get(x_183, 1); +lean_inc(x_184); +lean_dec(x_183); +x_35 = x_165; +x_36 = x_184; +goto block_46; +} +else +{ +lean_object* x_185; lean_object* x_186; +lean_dec(x_165); +x_185 = lean_ctor_get(x_183, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_183, 1); +lean_inc(x_186); +lean_dec(x_183); +x_35 = x_185; +x_36 = x_186; +goto block_46; +} +} +} +else +{ +lean_object* x_187; lean_object* x_188; +lean_dec(x_165); +lean_dec(x_164); +x_187 = lean_ctor_get(x_166, 0); +lean_inc(x_187); +x_188 = lean_ctor_get(x_166, 1); +lean_inc(x_188); +lean_dec(x_166); +x_35 = x_187; +x_36 = x_188; +goto block_46; +} +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; +lean_dec(x_137); +x_189 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; +x_190 = l_unreachable_x21___rarg(x_189); +lean_inc(x_3); +x_191 = lean_apply_2(x_190, x_3, x_134); +if (lean_obj_tag(x_191) == 0) +{ +lean_object* x_192; lean_object* x_193; +x_192 = lean_ctor_get(x_191, 0); +lean_inc(x_192); +x_193 = lean_ctor_get(x_191, 1); +lean_inc(x_193); +lean_dec(x_191); +x_51 = x_192; +x_52 = x_193; goto block_118; } else { -lean_object* x_191; lean_object* x_192; +lean_object* x_194; lean_object* x_195; lean_dec(x_50); lean_dec(x_48); lean_dec(x_24); -x_191 = lean_ctor_get(x_188, 0); -lean_inc(x_191); -x_192 = lean_ctor_get(x_188, 1); -lean_inc(x_192); -lean_dec(x_188); -x_35 = x_191; -x_36 = x_192; +x_194 = lean_ctor_get(x_191, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_191, 1); +lean_inc(x_195); +lean_dec(x_191); +x_35 = x_194; +x_36 = x_195; goto block_46; } } @@ -3808,57 +3786,76 @@ goto block_46; } else { -lean_object* x_193; lean_object* x_194; +lean_object* x_196; lean_object* x_197; +lean_dec(x_131); lean_dec(x_127); lean_dec(x_126); lean_dec(x_50); lean_dec(x_48); lean_dec(x_24); -x_193 = lean_ctor_get(x_128, 0); -lean_inc(x_193); -x_194 = lean_ctor_get(x_128, 1); -lean_inc(x_194); -lean_dec(x_128); -x_35 = x_193; -x_36 = x_194; -goto block_46; -} -} -else -{ -lean_object* x_195; lean_object* x_196; -lean_dec(x_50); -lean_dec(x_48); -lean_dec(x_24); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_1); -x_195 = lean_ctor_get(x_123, 0); -lean_inc(x_195); -x_196 = lean_ctor_get(x_123, 1); +x_196 = lean_ctor_get(x_132, 0); lean_inc(x_196); -lean_dec(x_123); -x_35 = x_195; -x_36 = x_196; +x_197 = lean_ctor_get(x_132, 1); +lean_inc(x_197); +lean_dec(x_132); +x_35 = x_196; +x_36 = x_197; goto block_46; } } else { -lean_object* x_197; lean_object* x_198; +lean_object* x_198; lean_object* x_199; +lean_dec(x_127); +lean_dec(x_126); +lean_dec(x_50); +lean_dec(x_48); +lean_dec(x_24); +x_198 = lean_ctor_get(x_128, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_128, 1); +lean_inc(x_199); +lean_dec(x_128); +x_35 = x_198; +x_36 = x_199; +goto block_46; +} +} +else +{ +lean_object* x_200; lean_object* x_201; lean_dec(x_50); lean_dec(x_48); lean_dec(x_24); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_197 = lean_ctor_get(x_121, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_121, 1); -lean_inc(x_198); +x_200 = lean_ctor_get(x_123, 0); +lean_inc(x_200); +x_201 = lean_ctor_get(x_123, 1); +lean_inc(x_201); +lean_dec(x_123); +x_35 = x_200; +x_36 = x_201; +goto block_46; +} +} +else +{ +lean_object* x_202; lean_object* x_203; +lean_dec(x_50); +lean_dec(x_48); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_1); +x_202 = lean_ctor_get(x_121, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_121, 1); +lean_inc(x_203); lean_dec(x_121); -x_35 = x_197; -x_36 = x_198; +x_35 = x_202; +x_36 = x_203; goto block_46; } block_118: @@ -4185,18 +4182,18 @@ goto block_46; } else { -lean_object* x_199; lean_object* x_200; +lean_object* x_204; lean_object* x_205; lean_dec(x_24); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_199 = lean_ctor_get(x_47, 0); -lean_inc(x_199); -x_200 = lean_ctor_get(x_47, 1); -lean_inc(x_200); +x_204 = lean_ctor_get(x_47, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_47, 1); +lean_inc(x_205); lean_dec(x_47); -x_35 = x_199; -x_36 = x_200; +x_35 = x_204; +x_36 = x_205; goto block_46; } block_46: @@ -4255,7 +4252,7 @@ return x_45; } else { -uint8_t x_201; +uint8_t x_206; lean_dec(x_28); lean_dec(x_24); lean_dec(x_16); @@ -4263,29 +4260,29 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_3); lean_dec(x_1); -x_201 = !lean_is_exclusive(x_33); -if (x_201 == 0) +x_206 = !lean_is_exclusive(x_33); +if (x_206 == 0) { return x_33; } else { -lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_202 = lean_ctor_get(x_33, 0); -x_203 = lean_ctor_get(x_33, 1); -lean_inc(x_203); -lean_inc(x_202); +lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_207 = lean_ctor_get(x_33, 0); +x_208 = lean_ctor_get(x_33, 1); +lean_inc(x_208); +lean_inc(x_207); lean_dec(x_33); -x_204 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_204, 0, x_202); -lean_ctor_set(x_204, 1, x_203); -return x_204; +x_209 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_209, 0, x_207); +lean_ctor_set(x_209, 1, x_208); +return x_209; } } } else { -uint8_t x_205; +uint8_t x_210; lean_dec(x_28); lean_dec(x_24); lean_dec(x_18); @@ -4294,838 +4291,868 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_3); lean_dec(x_1); -x_205 = !lean_is_exclusive(x_31); -if (x_205 == 0) +x_210 = !lean_is_exclusive(x_31); +if (x_210 == 0) { return x_31; } else { -lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_206 = lean_ctor_get(x_31, 0); -x_207 = lean_ctor_get(x_31, 1); -lean_inc(x_207); -lean_inc(x_206); +lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_211 = lean_ctor_get(x_31, 0); +x_212 = lean_ctor_get(x_31, 1); +lean_inc(x_212); +lean_inc(x_211); lean_dec(x_31); -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; +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_211); +lean_ctor_set(x_213, 1, x_212); +return x_213; } } } 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_object* x_217; lean_object* x_218; uint8_t x_219; lean_object* x_220; -x_209 = lean_ctor_get(x_20, 1); -x_210 = lean_ctor_get(x_20, 2); -x_211 = lean_ctor_get(x_20, 3); -lean_inc(x_211); -lean_inc(x_210); -lean_inc(x_209); +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; uint8_t x_224; lean_object* x_225; +x_214 = lean_ctor_get(x_20, 1); +x_215 = lean_ctor_get(x_20, 2); +x_216 = lean_ctor_get(x_20, 3); +lean_inc(x_216); +lean_inc(x_215); +lean_inc(x_214); lean_dec(x_20); -x_212 = lean_ctor_get(x_21, 0); -lean_inc(x_212); -x_213 = lean_ctor_get(x_21, 1); -lean_inc(x_213); +x_217 = lean_ctor_get(x_21, 0); +lean_inc(x_217); +x_218 = lean_ctor_get(x_21, 1); +lean_inc(x_218); lean_dec(x_21); -x_214 = lean_box(0); -x_215 = lean_name_mk_string(x_214, x_213); -x_216 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_216, 0, x_215); -lean_ctor_set(x_216, 1, x_209); -lean_ctor_set(x_216, 2, x_210); -lean_ctor_set(x_216, 3, x_211); -x_217 = l_Lean_MacroScopesView_review(x_216); -x_218 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; -x_219 = 1; +x_219 = lean_box(0); +x_220 = lean_name_mk_string(x_219, x_218); +x_221 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_221, 0, x_220); +lean_ctor_set(x_221, 1, x_214); +lean_ctor_set(x_221, 2, x_215); +lean_ctor_set(x_221, 3, x_216); +x_222 = l_Lean_MacroScopesView_review(x_221); +x_223 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; +x_224 = 1; lean_inc(x_3); -lean_inc(x_212); -x_220 = l___private_Init_Lean_Elab_Command_12__addScopes___main(x_6, x_218, x_219, x_212, x_3, x_19); +lean_inc(x_217); +x_225 = l___private_Init_Lean_Elab_Command_12__addScopes___main(x_6, x_223, x_224, x_217, x_3, x_19); lean_dec(x_6); -if (lean_obj_tag(x_220) == 0) +if (lean_obj_tag(x_225) == 0) { -lean_object* x_221; lean_object* x_222; -x_221 = lean_ctor_get(x_220, 1); -lean_inc(x_221); -lean_dec(x_220); +lean_object* x_226; lean_object* x_227; +x_226 = lean_ctor_get(x_225, 1); +lean_inc(x_226); +lean_dec(x_225); lean_inc(x_3); -x_222 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__1(x_18, x_3, x_221); -if (lean_obj_tag(x_222) == 0) +x_227 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__1(x_18, x_3, x_226); +if (lean_obj_tag(x_227) == 0) { -lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_235; -x_223 = lean_ctor_get(x_222, 1); -lean_inc(x_223); -lean_dec(x_222); +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_240; +x_228 = lean_ctor_get(x_227, 1); +lean_inc(x_228); +lean_dec(x_227); lean_inc(x_3); -x_235 = l_Lean_Elab_Command_mkDeclName(x_1, x_217, x_3, x_223); -if (lean_obj_tag(x_235) == 0) +x_240 = l_Lean_Elab_Command_mkDeclName(x_1, x_222, x_3, x_228); +if (lean_obj_tag(x_240) == 0) { -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; uint8_t x_294; lean_object* x_295; lean_object* x_296; -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_238 = lean_ctor_get(x_1, 1); -lean_inc(x_238); -x_294 = 2; -x_295 = lean_unsigned_to_nat(0u); +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; uint8_t x_299; lean_object* x_300; lean_object* x_301; +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 = lean_ctor_get(x_1, 1); +lean_inc(x_243); +x_299 = 2; +x_300 = lean_unsigned_to_nat(0u); lean_inc(x_3); -lean_inc(x_236); -x_296 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_236, x_294, x_238, x_295, x_3, x_237); -if (lean_obj_tag(x_296) == 0) +lean_inc(x_241); +x_301 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_241, x_299, x_243, x_300, x_3, x_242); +if (lean_obj_tag(x_301) == 0) { -lean_object* x_297; lean_object* x_298; -x_297 = lean_ctor_get(x_296, 1); -lean_inc(x_297); -lean_dec(x_296); +lean_object* x_302; lean_object* x_303; +x_302 = lean_ctor_get(x_301, 1); +lean_inc(x_302); +lean_dec(x_301); lean_inc(x_3); -x_298 = l_Lean_Elab_Command_getLevelNames(x_3, x_297); -if (lean_obj_tag(x_298) == 0) -{ -lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; -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_236); -x_301 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_301, 0, x_236); -lean_inc(x_236); -x_302 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAxiom___lambda__2___boxed), 8, 5); -lean_closure_set(x_302, 0, x_10); -lean_closure_set(x_302, 1, x_11); -lean_closure_set(x_302, 2, x_299); -lean_closure_set(x_302, 3, x_236); -lean_closure_set(x_302, 4, x_1); -lean_inc(x_3); -x_303 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_300); +x_303 = l_Lean_Elab_Command_getLevelNames(x_3, x_302); if (lean_obj_tag(x_303) == 0) { -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_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; 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 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_304); -x_307 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_3, x_304, x_301); -x_308 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_304); -lean_dec(x_304); -x_309 = l_Lean_Elab_Term_elabBinders___rarg(x_306, x_302, x_307, x_308); -lean_dec(x_306); -if (lean_obj_tag(x_309) == 0) +lean_inc(x_241); +x_306 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_306, 0, x_241); +lean_inc(x_241); +x_307 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAxiom___lambda__2___boxed), 8, 5); +lean_closure_set(x_307, 0, x_10); +lean_closure_set(x_307, 1, x_11); +lean_closure_set(x_307, 2, x_304); +lean_closure_set(x_307, 3, x_241); +lean_closure_set(x_307, 4, x_1); +lean_inc(x_3); +x_308 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_305); +if (lean_obj_tag(x_308) == 0) { -lean_object* x_310; lean_object* x_311; lean_object* x_312; -x_310 = lean_ctor_get(x_309, 0); +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; +x_309 = lean_ctor_get(x_308, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_308, 1); lean_inc(x_310); -x_311 = lean_ctor_get(x_309, 1); -lean_inc(x_311); +lean_dec(x_308); +x_311 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_309); lean_dec(x_309); lean_inc(x_3); -x_312 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_305); +x_312 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_310); if (lean_obj_tag(x_312) == 0) { -lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; -x_313 = lean_ctor_get(x_311, 0); +lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; +x_313 = lean_ctor_get(x_312, 0); lean_inc(x_313); -x_314 = lean_ctor_get(x_312, 0); +x_314 = lean_ctor_get(x_312, 1); lean_inc(x_314); -x_315 = lean_ctor_get(x_312, 1); -lean_inc(x_315); lean_dec(x_312); -x_316 = lean_ctor_get(x_313, 0); -lean_inc(x_316); +x_315 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_3, x_313, x_306); +x_316 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_313); lean_dec(x_313); -x_317 = lean_ctor_get(x_311, 2); -lean_inc(x_317); +x_317 = l_Lean_Elab_Term_elabBinders___rarg(x_311, x_307, x_315, x_316); lean_dec(x_311); -x_318 = lean_ctor_get(x_314, 2); +if (lean_obj_tag(x_317) == 0) +{ +lean_object* x_318; lean_object* x_319; lean_object* x_320; +x_318 = lean_ctor_get(x_317, 0); lean_inc(x_318); -x_319 = lean_ctor_get(x_314, 3); +x_319 = lean_ctor_get(x_317, 1); lean_inc(x_319); -x_320 = lean_ctor_get(x_314, 4); -lean_inc(x_320); -if (lean_is_exclusive(x_314)) { - lean_ctor_release(x_314, 0); - lean_ctor_release(x_314, 1); - lean_ctor_release(x_314, 2); - lean_ctor_release(x_314, 3); - lean_ctor_release(x_314, 4); - x_321 = x_314; -} else { - lean_dec_ref(x_314); - x_321 = lean_box(0); -} -if (lean_is_scalar(x_321)) { - x_322 = lean_alloc_ctor(0, 5, 0); -} else { - x_322 = x_321; -} -lean_ctor_set(x_322, 0, x_316); -lean_ctor_set(x_322, 1, x_317); -lean_ctor_set(x_322, 2, x_318); -lean_ctor_set(x_322, 3, x_319); -lean_ctor_set(x_322, 4, x_320); +lean_dec(x_317); lean_inc(x_3); -x_323 = l___private_Init_Lean_Elab_Command_3__setState(x_322, x_3, x_315); -if (lean_obj_tag(x_323) == 0) +x_320 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_314); +if (lean_obj_tag(x_320) == 0) { -lean_object* x_324; -x_324 = lean_ctor_get(x_323, 1); +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; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; +x_321 = lean_ctor_get(x_319, 0); +lean_inc(x_321); +x_322 = lean_ctor_get(x_320, 0); +lean_inc(x_322); +x_323 = lean_ctor_get(x_320, 1); +lean_inc(x_323); +lean_dec(x_320); +x_324 = lean_ctor_get(x_321, 0); lean_inc(x_324); -lean_dec(x_323); -x_239 = x_310; -x_240 = x_324; -goto block_293; -} -else -{ -lean_object* x_325; lean_object* x_326; -lean_dec(x_310); -lean_dec(x_238); -lean_dec(x_236); -lean_dec(x_212); -x_325 = lean_ctor_get(x_323, 0); +lean_dec(x_321); +x_325 = lean_ctor_get(x_319, 2); lean_inc(x_325); -x_326 = lean_ctor_get(x_323, 1); +lean_dec(x_319); +x_326 = lean_ctor_get(x_322, 2); lean_inc(x_326); -lean_dec(x_323); -x_224 = x_325; -x_225 = x_326; -goto block_234; -} -} -else -{ -lean_object* x_327; lean_object* x_328; -lean_dec(x_311); -lean_dec(x_310); -lean_dec(x_238); -lean_dec(x_236); -lean_dec(x_212); -x_327 = lean_ctor_get(x_312, 0); +x_327 = lean_ctor_get(x_322, 3); lean_inc(x_327); -x_328 = lean_ctor_get(x_312, 1); +x_328 = lean_ctor_get(x_322, 4); lean_inc(x_328); -lean_dec(x_312); -x_224 = x_327; -x_225 = x_328; -goto block_234; +if (lean_is_exclusive(x_322)) { + lean_ctor_release(x_322, 0); + lean_ctor_release(x_322, 1); + lean_ctor_release(x_322, 2); + lean_ctor_release(x_322, 3); + lean_ctor_release(x_322, 4); + x_329 = x_322; +} else { + lean_dec_ref(x_322); + x_329 = lean_box(0); } +if (lean_is_scalar(x_329)) { + x_330 = lean_alloc_ctor(0, 5, 0); +} else { + x_330 = x_329; +} +lean_ctor_set(x_330, 0, x_324); +lean_ctor_set(x_330, 1, x_325); +lean_ctor_set(x_330, 2, x_326); +lean_ctor_set(x_330, 3, x_327); +lean_ctor_set(x_330, 4, x_328); +lean_inc(x_3); +x_331 = l___private_Init_Lean_Elab_Command_3__setState(x_330, x_3, x_323); +if (lean_obj_tag(x_331) == 0) +{ +lean_object* x_332; +x_332 = lean_ctor_get(x_331, 1); +lean_inc(x_332); +lean_dec(x_331); +x_244 = x_318; +x_245 = x_332; +goto block_298; } else { -lean_object* x_329; -x_329 = lean_ctor_get(x_309, 0); -lean_inc(x_329); -if (lean_obj_tag(x_329) == 0) -{ -lean_object* x_330; lean_object* x_331; lean_object* x_332; -lean_dec(x_238); -lean_dec(x_236); -lean_dec(x_212); -x_330 = lean_ctor_get(x_309, 1); -lean_inc(x_330); -lean_dec(x_309); -x_331 = lean_ctor_get(x_329, 0); -lean_inc(x_331); -lean_dec(x_329); -lean_inc(x_3); -x_332 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_305); -if (lean_obj_tag(x_332) == 0) -{ -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; -x_333 = lean_ctor_get(x_330, 0); +lean_object* x_333; lean_object* x_334; +lean_dec(x_318); +lean_dec(x_243); +lean_dec(x_241); +lean_dec(x_217); +x_333 = lean_ctor_get(x_331, 0); lean_inc(x_333); -x_334 = lean_ctor_get(x_332, 0); +x_334 = lean_ctor_get(x_331, 1); lean_inc(x_334); -x_335 = lean_ctor_get(x_332, 1); +lean_dec(x_331); +x_229 = x_333; +x_230 = x_334; +goto block_239; +} +} +else +{ +lean_object* x_335; lean_object* x_336; +lean_dec(x_319); +lean_dec(x_318); +lean_dec(x_243); +lean_dec(x_241); +lean_dec(x_217); +x_335 = lean_ctor_get(x_320, 0); lean_inc(x_335); -lean_dec(x_332); -x_336 = lean_ctor_get(x_333, 0); +x_336 = lean_ctor_get(x_320, 1); lean_inc(x_336); -lean_dec(x_333); -x_337 = lean_ctor_get(x_330, 2); +lean_dec(x_320); +x_229 = x_335; +x_230 = x_336; +goto block_239; +} +} +else +{ +lean_object* x_337; +x_337 = lean_ctor_get(x_317, 0); lean_inc(x_337); -lean_dec(x_330); -x_338 = lean_ctor_get(x_334, 2); +if (lean_obj_tag(x_337) == 0) +{ +lean_object* x_338; lean_object* x_339; lean_object* x_340; +lean_dec(x_243); +lean_dec(x_241); +lean_dec(x_217); +x_338 = lean_ctor_get(x_317, 1); lean_inc(x_338); -x_339 = lean_ctor_get(x_334, 3); +lean_dec(x_317); +x_339 = lean_ctor_get(x_337, 0); lean_inc(x_339); -x_340 = lean_ctor_get(x_334, 4); -lean_inc(x_340); -if (lean_is_exclusive(x_334)) { - lean_ctor_release(x_334, 0); - lean_ctor_release(x_334, 1); - lean_ctor_release(x_334, 2); - lean_ctor_release(x_334, 3); - lean_ctor_release(x_334, 4); - x_341 = x_334; -} else { - lean_dec_ref(x_334); - x_341 = lean_box(0); -} -if (lean_is_scalar(x_341)) { - x_342 = lean_alloc_ctor(0, 5, 0); -} else { - x_342 = x_341; -} -lean_ctor_set(x_342, 0, x_336); -lean_ctor_set(x_342, 1, x_337); -lean_ctor_set(x_342, 2, x_338); -lean_ctor_set(x_342, 3, x_339); -lean_ctor_set(x_342, 4, x_340); +lean_dec(x_337); lean_inc(x_3); -x_343 = l___private_Init_Lean_Elab_Command_3__setState(x_342, x_3, x_335); -if (lean_obj_tag(x_343) == 0) +x_340 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_314); +if (lean_obj_tag(x_340) == 0) { -lean_object* x_344; -x_344 = lean_ctor_get(x_343, 1); +lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; +x_341 = lean_ctor_get(x_338, 0); +lean_inc(x_341); +x_342 = lean_ctor_get(x_340, 0); +lean_inc(x_342); +x_343 = lean_ctor_get(x_340, 1); +lean_inc(x_343); +lean_dec(x_340); +x_344 = lean_ctor_get(x_341, 0); lean_inc(x_344); -lean_dec(x_343); -x_224 = x_331; -x_225 = x_344; -goto block_234; -} -else -{ -lean_object* x_345; lean_object* x_346; -lean_dec(x_331); -x_345 = lean_ctor_get(x_343, 0); +lean_dec(x_341); +x_345 = lean_ctor_get(x_338, 2); lean_inc(x_345); -x_346 = lean_ctor_get(x_343, 1); +lean_dec(x_338); +x_346 = lean_ctor_get(x_342, 2); lean_inc(x_346); -lean_dec(x_343); -x_224 = x_345; -x_225 = x_346; -goto block_234; -} -} -else -{ -lean_object* x_347; lean_object* x_348; -lean_dec(x_331); -lean_dec(x_330); -x_347 = lean_ctor_get(x_332, 0); +x_347 = lean_ctor_get(x_342, 3); lean_inc(x_347); -x_348 = lean_ctor_get(x_332, 1); +x_348 = lean_ctor_get(x_342, 4); lean_inc(x_348); -lean_dec(x_332); -x_224 = x_347; -x_225 = x_348; -goto block_234; +if (lean_is_exclusive(x_342)) { + lean_ctor_release(x_342, 0); + lean_ctor_release(x_342, 1); + lean_ctor_release(x_342, 2); + lean_ctor_release(x_342, 3); + lean_ctor_release(x_342, 4); + x_349 = x_342; +} else { + lean_dec_ref(x_342); + x_349 = lean_box(0); } +if (lean_is_scalar(x_349)) { + x_350 = lean_alloc_ctor(0, 5, 0); +} else { + x_350 = x_349; } -else -{ -lean_object* x_349; lean_object* x_350; lean_object* x_351; -lean_dec(x_309); -x_349 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; -x_350 = l_unreachable_x21___rarg(x_349); +lean_ctor_set(x_350, 0, x_344); +lean_ctor_set(x_350, 1, x_345); +lean_ctor_set(x_350, 2, x_346); +lean_ctor_set(x_350, 3, x_347); +lean_ctor_set(x_350, 4, x_348); lean_inc(x_3); -x_351 = lean_apply_2(x_350, x_3, x_305); +x_351 = l___private_Init_Lean_Elab_Command_3__setState(x_350, x_3, x_343); if (lean_obj_tag(x_351) == 0) { -lean_object* x_352; lean_object* x_353; -x_352 = lean_ctor_get(x_351, 0); +lean_object* x_352; +x_352 = lean_ctor_get(x_351, 1); lean_inc(x_352); -x_353 = lean_ctor_get(x_351, 1); +lean_dec(x_351); +x_229 = x_339; +x_230 = x_352; +goto block_239; +} +else +{ +lean_object* x_353; lean_object* x_354; +lean_dec(x_339); +x_353 = lean_ctor_get(x_351, 0); lean_inc(x_353); -lean_dec(x_351); -x_239 = x_352; -x_240 = x_353; -goto block_293; -} -else -{ -lean_object* x_354; lean_object* x_355; -lean_dec(x_238); -lean_dec(x_236); -lean_dec(x_212); -x_354 = lean_ctor_get(x_351, 0); +x_354 = lean_ctor_get(x_351, 1); lean_inc(x_354); -x_355 = lean_ctor_get(x_351, 1); -lean_inc(x_355); lean_dec(x_351); -x_224 = x_354; -x_225 = x_355; -goto block_234; -} -} +x_229 = x_353; +x_230 = x_354; +goto block_239; } } else { -lean_object* x_356; lean_object* x_357; -lean_dec(x_302); -lean_dec(x_301); -lean_dec(x_238); -lean_dec(x_236); -lean_dec(x_212); -x_356 = lean_ctor_get(x_303, 0); +lean_object* x_355; lean_object* x_356; +lean_dec(x_339); +lean_dec(x_338); +x_355 = lean_ctor_get(x_340, 0); +lean_inc(x_355); +x_356 = lean_ctor_get(x_340, 1); lean_inc(x_356); -x_357 = lean_ctor_get(x_303, 1); -lean_inc(x_357); -lean_dec(x_303); -x_224 = x_356; -x_225 = x_357; -goto block_234; +lean_dec(x_340); +x_229 = x_355; +x_230 = x_356; +goto block_239; } } else { -lean_object* x_358; lean_object* x_359; -lean_dec(x_238); -lean_dec(x_236); -lean_dec(x_212); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_1); -x_358 = lean_ctor_get(x_298, 0); -lean_inc(x_358); -x_359 = lean_ctor_get(x_298, 1); -lean_inc(x_359); -lean_dec(x_298); -x_224 = x_358; -x_225 = x_359; -goto block_234; -} -} -else +lean_object* x_357; lean_object* x_358; lean_object* x_359; +lean_dec(x_317); +x_357 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; +x_358 = l_unreachable_x21___rarg(x_357); +lean_inc(x_3); +x_359 = lean_apply_2(x_358, x_3, x_314); +if (lean_obj_tag(x_359) == 0) { lean_object* x_360; lean_object* x_361; -lean_dec(x_238); -lean_dec(x_236); -lean_dec(x_212); +x_360 = lean_ctor_get(x_359, 0); +lean_inc(x_360); +x_361 = lean_ctor_get(x_359, 1); +lean_inc(x_361); +lean_dec(x_359); +x_244 = x_360; +x_245 = x_361; +goto block_298; +} +else +{ +lean_object* x_362; lean_object* x_363; +lean_dec(x_243); +lean_dec(x_241); +lean_dec(x_217); +x_362 = lean_ctor_get(x_359, 0); +lean_inc(x_362); +x_363 = lean_ctor_get(x_359, 1); +lean_inc(x_363); +lean_dec(x_359); +x_229 = x_362; +x_230 = x_363; +goto block_239; +} +} +} +} +else +{ +lean_object* x_364; lean_object* x_365; +lean_dec(x_311); +lean_dec(x_307); +lean_dec(x_306); +lean_dec(x_243); +lean_dec(x_241); +lean_dec(x_217); +x_364 = lean_ctor_get(x_312, 0); +lean_inc(x_364); +x_365 = lean_ctor_get(x_312, 1); +lean_inc(x_365); +lean_dec(x_312); +x_229 = x_364; +x_230 = x_365; +goto block_239; +} +} +else +{ +lean_object* x_366; lean_object* x_367; +lean_dec(x_307); +lean_dec(x_306); +lean_dec(x_243); +lean_dec(x_241); +lean_dec(x_217); +x_366 = lean_ctor_get(x_308, 0); +lean_inc(x_366); +x_367 = lean_ctor_get(x_308, 1); +lean_inc(x_367); +lean_dec(x_308); +x_229 = x_366; +x_230 = x_367; +goto block_239; +} +} +else +{ +lean_object* x_368; lean_object* x_369; +lean_dec(x_243); +lean_dec(x_241); +lean_dec(x_217); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_360 = lean_ctor_get(x_296, 0); -lean_inc(x_360); -x_361 = lean_ctor_get(x_296, 1); -lean_inc(x_361); -lean_dec(x_296); -x_224 = x_360; -x_225 = x_361; -goto block_234; +x_368 = lean_ctor_get(x_303, 0); +lean_inc(x_368); +x_369 = lean_ctor_get(x_303, 1); +lean_inc(x_369); +lean_dec(x_303); +x_229 = x_368; +x_230 = x_369; +goto block_239; } -block_293: +} +else { -lean_object* x_241; -lean_inc(x_3); -x_241 = l_Lean_Elab_Command_addDecl(x_2, x_239, x_3, x_240); -lean_dec(x_239); -if (lean_obj_tag(x_241) == 0) -{ -lean_object* x_242; uint8_t x_243; lean_object* x_244; lean_object* x_245; -x_242 = lean_ctor_get(x_241, 1); -lean_inc(x_242); +lean_object* x_370; lean_object* x_371; +lean_dec(x_243); lean_dec(x_241); -x_243 = 0; -x_244 = lean_unsigned_to_nat(0u); -lean_inc(x_3); -lean_inc(x_236); -x_245 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_236, x_243, x_238, x_244, x_3, x_242); -if (lean_obj_tag(x_245) == 0) +lean_dec(x_217); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_1); +x_370 = lean_ctor_get(x_301, 0); +lean_inc(x_370); +x_371 = lean_ctor_get(x_301, 1); +lean_inc(x_371); +lean_dec(x_301); +x_229 = x_370; +x_230 = x_371; +goto block_239; +} +block_298: { -lean_object* x_246; uint8_t x_247; lean_object* x_248; -x_246 = lean_ctor_get(x_245, 1); -lean_inc(x_246); -lean_dec(x_245); -x_247 = 1; +lean_object* x_246; lean_inc(x_3); -x_248 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_236, x_247, x_238, x_244, x_3, x_246); -lean_dec(x_238); -if (lean_obj_tag(x_248) == 0) +x_246 = l_Lean_Elab_Command_addDecl(x_2, x_244, x_3, x_245); +lean_dec(x_244); +if (lean_obj_tag(x_246) == 0) { -lean_object* x_249; lean_object* x_250; lean_object* x_251; -x_249 = lean_ctor_get(x_248, 0); -lean_inc(x_249); -x_250 = lean_ctor_get(x_248, 1); -lean_inc(x_250); -lean_dec(x_248); +lean_object* x_247; uint8_t x_248; lean_object* x_249; lean_object* x_250; +x_247 = lean_ctor_get(x_246, 1); +lean_inc(x_247); +lean_dec(x_246); +x_248 = 0; +x_249 = lean_unsigned_to_nat(0u); lean_inc(x_3); -lean_inc(x_16); -x_251 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__3(x_16, x_3, x_250); -if (lean_obj_tag(x_251) == 0) +lean_inc(x_241); +x_250 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_241, x_248, x_243, x_249, x_3, x_247); +if (lean_obj_tag(x_250) == 0) { -lean_object* x_252; lean_object* x_253; -lean_dec(x_16); -x_252 = lean_ctor_get(x_251, 1); -lean_inc(x_252); -lean_dec(x_251); +lean_object* x_251; uint8_t x_252; lean_object* x_253; +x_251 = lean_ctor_get(x_250, 1); +lean_inc(x_251); +lean_dec(x_250); +x_252 = 1; lean_inc(x_3); -x_253 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_252); +x_253 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_241, x_252, x_243, x_249, x_3, x_251); +lean_dec(x_243); if (lean_obj_tag(x_253) == 0) { -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +lean_object* x_254; lean_object* x_255; lean_object* x_256; x_254 = lean_ctor_get(x_253, 0); lean_inc(x_254); x_255 = lean_ctor_get(x_253, 1); lean_inc(x_255); lean_dec(x_253); -x_256 = lean_ctor_get(x_254, 0); -lean_inc(x_256); -x_257 = lean_ctor_get(x_254, 1); +lean_inc(x_3); +lean_inc(x_16); +x_256 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__3(x_16, x_3, x_255); +if (lean_obj_tag(x_256) == 0) +{ +lean_object* x_257; lean_object* x_258; +lean_dec(x_16); +x_257 = lean_ctor_get(x_256, 1); lean_inc(x_257); -x_258 = lean_ctor_get(x_254, 2); -lean_inc(x_258); -x_259 = lean_ctor_get(x_254, 3); +lean_dec(x_256); +lean_inc(x_3); +x_258 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_257); +if (lean_obj_tag(x_258) == 0) +{ +lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; +x_259 = lean_ctor_get(x_258, 0); lean_inc(x_259); -x_260 = lean_ctor_get(x_254, 4); +x_260 = lean_ctor_get(x_258, 1); lean_inc(x_260); -if (lean_is_exclusive(x_254)) { - lean_ctor_release(x_254, 0); - lean_ctor_release(x_254, 1); - lean_ctor_release(x_254, 2); - lean_ctor_release(x_254, 3); - lean_ctor_release(x_254, 4); - x_261 = x_254; -} else { - lean_dec_ref(x_254); - x_261 = lean_box(0); -} -x_262 = l_Lean_Name_getNumParts___main(x_212); -lean_dec(x_212); -x_263 = l_List_drop___main___rarg(x_262, x_258); lean_dec(x_258); -if (lean_is_scalar(x_261)) { - x_264 = lean_alloc_ctor(0, 5, 0); +x_261 = lean_ctor_get(x_259, 0); +lean_inc(x_261); +x_262 = lean_ctor_get(x_259, 1); +lean_inc(x_262); +x_263 = lean_ctor_get(x_259, 2); +lean_inc(x_263); +x_264 = lean_ctor_get(x_259, 3); +lean_inc(x_264); +x_265 = lean_ctor_get(x_259, 4); +lean_inc(x_265); +if (lean_is_exclusive(x_259)) { + lean_ctor_release(x_259, 0); + lean_ctor_release(x_259, 1); + lean_ctor_release(x_259, 2); + lean_ctor_release(x_259, 3); + lean_ctor_release(x_259, 4); + x_266 = x_259; } else { - x_264 = x_261; + lean_dec_ref(x_259); + x_266 = lean_box(0); } -lean_ctor_set(x_264, 0, x_256); -lean_ctor_set(x_264, 1, x_257); -lean_ctor_set(x_264, 2, x_263); -lean_ctor_set(x_264, 3, x_259); -lean_ctor_set(x_264, 4, x_260); -x_265 = l___private_Init_Lean_Elab_Command_3__setState(x_264, x_3, x_255); -if (lean_obj_tag(x_265) == 0) +x_267 = l_Lean_Name_getNumParts___main(x_217); +lean_dec(x_217); +x_268 = l_List_drop___main___rarg(x_267, x_263); +lean_dec(x_263); +if (lean_is_scalar(x_266)) { + x_269 = lean_alloc_ctor(0, 5, 0); +} else { + x_269 = x_266; +} +lean_ctor_set(x_269, 0, x_261); +lean_ctor_set(x_269, 1, x_262); +lean_ctor_set(x_269, 2, x_268); +lean_ctor_set(x_269, 3, x_264); +lean_ctor_set(x_269, 4, x_265); +x_270 = l___private_Init_Lean_Elab_Command_3__setState(x_269, x_3, x_260); +if (lean_obj_tag(x_270) == 0) { -lean_object* x_266; lean_object* x_267; lean_object* x_268; -x_266 = lean_ctor_get(x_265, 1); -lean_inc(x_266); -if (lean_is_exclusive(x_265)) { - lean_ctor_release(x_265, 0); - lean_ctor_release(x_265, 1); - x_267 = x_265; +lean_object* x_271; lean_object* x_272; lean_object* x_273; +x_271 = lean_ctor_get(x_270, 1); +lean_inc(x_271); +if (lean_is_exclusive(x_270)) { + lean_ctor_release(x_270, 0); + lean_ctor_release(x_270, 1); + x_272 = x_270; } else { - lean_dec_ref(x_265); - x_267 = lean_box(0); + lean_dec_ref(x_270); + x_272 = lean_box(0); } -if (lean_is_scalar(x_267)) { - x_268 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_272)) { + x_273 = lean_alloc_ctor(0, 2, 0); } else { - x_268 = x_267; + x_273 = x_272; } -lean_ctor_set(x_268, 0, x_249); -lean_ctor_set(x_268, 1, x_266); -return x_268; +lean_ctor_set(x_273, 0, x_254); +lean_ctor_set(x_273, 1, x_271); +return x_273; } else { -lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; -lean_dec(x_249); -x_269 = lean_ctor_get(x_265, 0); -lean_inc(x_269); -x_270 = lean_ctor_get(x_265, 1); -lean_inc(x_270); -if (lean_is_exclusive(x_265)) { - lean_ctor_release(x_265, 0); - lean_ctor_release(x_265, 1); - x_271 = x_265; -} else { - lean_dec_ref(x_265); - x_271 = lean_box(0); -} -if (lean_is_scalar(x_271)) { - x_272 = lean_alloc_ctor(1, 2, 0); -} else { - x_272 = x_271; -} -lean_ctor_set(x_272, 0, x_269); -lean_ctor_set(x_272, 1, x_270); -return x_272; -} -} -else -{ -lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; -lean_dec(x_249); -lean_dec(x_212); -lean_dec(x_3); -x_273 = lean_ctor_get(x_253, 0); -lean_inc(x_273); -x_274 = lean_ctor_get(x_253, 1); +lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; +lean_dec(x_254); +x_274 = lean_ctor_get(x_270, 0); lean_inc(x_274); -if (lean_is_exclusive(x_253)) { - lean_ctor_release(x_253, 0); - lean_ctor_release(x_253, 1); - x_275 = x_253; +x_275 = lean_ctor_get(x_270, 1); +lean_inc(x_275); +if (lean_is_exclusive(x_270)) { + lean_ctor_release(x_270, 0); + lean_ctor_release(x_270, 1); + x_276 = x_270; } else { - lean_dec_ref(x_253); - x_275 = lean_box(0); + lean_dec_ref(x_270); + x_276 = lean_box(0); } -if (lean_is_scalar(x_275)) { - x_276 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_276)) { + x_277 = lean_alloc_ctor(1, 2, 0); } else { - x_276 = x_275; + x_277 = x_276; } -lean_ctor_set(x_276, 0, x_273); -lean_ctor_set(x_276, 1, x_274); -return x_276; +lean_ctor_set(x_277, 0, x_274); +lean_ctor_set(x_277, 1, x_275); +return x_277; } } else { -lean_object* x_277; lean_object* x_278; lean_object* x_279; -lean_dec(x_249); -lean_dec(x_212); -x_277 = lean_ctor_get(x_251, 0); -lean_inc(x_277); -x_278 = lean_ctor_get(x_251, 1); +lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; +lean_dec(x_254); +lean_dec(x_217); +lean_dec(x_3); +x_278 = lean_ctor_get(x_258, 0); lean_inc(x_278); -lean_dec(x_251); -x_279 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__4(x_16, x_3, x_278); -if (lean_obj_tag(x_279) == 0) -{ -lean_object* x_280; lean_object* x_281; lean_object* x_282; -x_280 = lean_ctor_get(x_279, 1); -lean_inc(x_280); -if (lean_is_exclusive(x_279)) { - lean_ctor_release(x_279, 0); - lean_ctor_release(x_279, 1); - x_281 = x_279; +x_279 = lean_ctor_get(x_258, 1); +lean_inc(x_279); +if (lean_is_exclusive(x_258)) { + lean_ctor_release(x_258, 0); + lean_ctor_release(x_258, 1); + x_280 = x_258; } else { - lean_dec_ref(x_279); - x_281 = lean_box(0); + lean_dec_ref(x_258); + x_280 = lean_box(0); } -if (lean_is_scalar(x_281)) { - x_282 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_280)) { + x_281 = lean_alloc_ctor(1, 2, 0); } else { - x_282 = x_281; - lean_ctor_set_tag(x_282, 1); + x_281 = x_280; +} +lean_ctor_set(x_281, 0, x_278); +lean_ctor_set(x_281, 1, x_279); +return x_281; } -lean_ctor_set(x_282, 0, x_277); -lean_ctor_set(x_282, 1, x_280); -return x_282; } else { -lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; -lean_dec(x_277); -x_283 = lean_ctor_get(x_279, 0); +lean_object* x_282; lean_object* x_283; lean_object* x_284; +lean_dec(x_254); +lean_dec(x_217); +x_282 = lean_ctor_get(x_256, 0); +lean_inc(x_282); +x_283 = lean_ctor_get(x_256, 1); lean_inc(x_283); -x_284 = lean_ctor_get(x_279, 1); -lean_inc(x_284); -if (lean_is_exclusive(x_279)) { - lean_ctor_release(x_279, 0); - lean_ctor_release(x_279, 1); - x_285 = x_279; +lean_dec(x_256); +x_284 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__4(x_16, x_3, x_283); +if (lean_obj_tag(x_284) == 0) +{ +lean_object* x_285; lean_object* x_286; lean_object* x_287; +x_285 = lean_ctor_get(x_284, 1); +lean_inc(x_285); +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + x_286 = x_284; } else { - lean_dec_ref(x_279); - x_285 = lean_box(0); + lean_dec_ref(x_284); + x_286 = lean_box(0); } -if (lean_is_scalar(x_285)) { - x_286 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_286)) { + x_287 = lean_alloc_ctor(1, 2, 0); } else { - x_286 = x_285; -} -lean_ctor_set(x_286, 0, x_283); -lean_ctor_set(x_286, 1, x_284); -return x_286; -} + x_287 = x_286; + lean_ctor_set_tag(x_287, 1); } +lean_ctor_set(x_287, 0, x_282); +lean_ctor_set(x_287, 1, x_285); +return x_287; } else { -lean_object* x_287; lean_object* x_288; -lean_dec(x_212); -x_287 = lean_ctor_get(x_248, 0); -lean_inc(x_287); -x_288 = lean_ctor_get(x_248, 1); +lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; +lean_dec(x_282); +x_288 = lean_ctor_get(x_284, 0); lean_inc(x_288); -lean_dec(x_248); -x_224 = x_287; -x_225 = x_288; -goto block_234; -} -} -else -{ -lean_object* x_289; lean_object* x_290; -lean_dec(x_238); -lean_dec(x_236); -lean_dec(x_212); -x_289 = lean_ctor_get(x_245, 0); +x_289 = lean_ctor_get(x_284, 1); lean_inc(x_289); -x_290 = lean_ctor_get(x_245, 1); -lean_inc(x_290); -lean_dec(x_245); -x_224 = x_289; -x_225 = x_290; -goto block_234; +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + x_290 = x_284; +} else { + lean_dec_ref(x_284); + x_290 = lean_box(0); +} +if (lean_is_scalar(x_290)) { + x_291 = lean_alloc_ctor(1, 2, 0); +} else { + x_291 = x_290; +} +lean_ctor_set(x_291, 0, x_288); +lean_ctor_set(x_291, 1, x_289); +return x_291; +} } } else { -lean_object* x_291; lean_object* x_292; -lean_dec(x_238); -lean_dec(x_236); -lean_dec(x_212); -x_291 = lean_ctor_get(x_241, 0); -lean_inc(x_291); -x_292 = lean_ctor_get(x_241, 1); +lean_object* x_292; lean_object* x_293; +lean_dec(x_217); +x_292 = lean_ctor_get(x_253, 0); lean_inc(x_292); +x_293 = lean_ctor_get(x_253, 1); +lean_inc(x_293); +lean_dec(x_253); +x_229 = x_292; +x_230 = x_293; +goto block_239; +} +} +else +{ +lean_object* x_294; lean_object* x_295; +lean_dec(x_243); lean_dec(x_241); -x_224 = x_291; -x_225 = x_292; -goto block_234; -} -} -} -else -{ -lean_object* x_362; lean_object* x_363; -lean_dec(x_212); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_1); -x_362 = lean_ctor_get(x_235, 0); -lean_inc(x_362); -x_363 = lean_ctor_get(x_235, 1); -lean_inc(x_363); -lean_dec(x_235); -x_224 = x_362; -x_225 = x_363; -goto block_234; -} -block_234: -{ -lean_object* x_226; -x_226 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__2(x_16, x_3, x_225); -if (lean_obj_tag(x_226) == 0) -{ -lean_object* x_227; lean_object* x_228; lean_object* x_229; -x_227 = lean_ctor_get(x_226, 1); -lean_inc(x_227); -if (lean_is_exclusive(x_226)) { - lean_ctor_release(x_226, 0); - lean_ctor_release(x_226, 1); - x_228 = x_226; -} else { - lean_dec_ref(x_226); - x_228 = lean_box(0); -} -if (lean_is_scalar(x_228)) { - x_229 = lean_alloc_ctor(1, 2, 0); -} else { - x_229 = x_228; - lean_ctor_set_tag(x_229, 1); -} -lean_ctor_set(x_229, 0, x_224); -lean_ctor_set(x_229, 1, x_227); -return x_229; -} -else -{ -lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; -lean_dec(x_224); -x_230 = lean_ctor_get(x_226, 0); -lean_inc(x_230); -x_231 = lean_ctor_get(x_226, 1); -lean_inc(x_231); -if (lean_is_exclusive(x_226)) { - lean_ctor_release(x_226, 0); - lean_ctor_release(x_226, 1); - x_232 = x_226; -} else { - lean_dec_ref(x_226); - x_232 = lean_box(0); -} -if (lean_is_scalar(x_232)) { - x_233 = lean_alloc_ctor(1, 2, 0); -} else { - x_233 = x_232; -} -lean_ctor_set(x_233, 0, x_230); -lean_ctor_set(x_233, 1, x_231); -return x_233; -} -} -} -else -{ -lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_dec(x_217); -lean_dec(x_212); -lean_dec(x_16); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_3); -lean_dec(x_1); -x_364 = lean_ctor_get(x_222, 0); -lean_inc(x_364); -x_365 = lean_ctor_get(x_222, 1); -lean_inc(x_365); -if (lean_is_exclusive(x_222)) { - lean_ctor_release(x_222, 0); - lean_ctor_release(x_222, 1); - x_366 = x_222; -} else { - lean_dec_ref(x_222); - x_366 = lean_box(0); -} -if (lean_is_scalar(x_366)) { - x_367 = lean_alloc_ctor(1, 2, 0); -} else { - x_367 = x_366; -} -lean_ctor_set(x_367, 0, x_364); -lean_ctor_set(x_367, 1, x_365); -return x_367; +x_294 = lean_ctor_get(x_250, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_250, 1); +lean_inc(x_295); +lean_dec(x_250); +x_229 = x_294; +x_230 = x_295; +goto block_239; } } else { -lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; +lean_object* x_296; lean_object* x_297; +lean_dec(x_243); +lean_dec(x_241); lean_dec(x_217); -lean_dec(x_212); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_3); -lean_dec(x_1); -x_368 = lean_ctor_get(x_220, 0); -lean_inc(x_368); -x_369 = lean_ctor_get(x_220, 1); -lean_inc(x_369); -if (lean_is_exclusive(x_220)) { - lean_ctor_release(x_220, 0); - lean_ctor_release(x_220, 1); - x_370 = x_220; -} else { - lean_dec_ref(x_220); - x_370 = lean_box(0); -} -if (lean_is_scalar(x_370)) { - x_371 = lean_alloc_ctor(1, 2, 0); -} else { - x_371 = x_370; -} -lean_ctor_set(x_371, 0, x_368); -lean_ctor_set(x_371, 1, x_369); -return x_371; +x_296 = lean_ctor_get(x_246, 0); +lean_inc(x_296); +x_297 = lean_ctor_get(x_246, 1); +lean_inc(x_297); +lean_dec(x_246); +x_229 = x_296; +x_230 = x_297; +goto block_239; } } } else { lean_object* x_372; lean_object* x_373; +lean_dec(x_217); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_1); +x_372 = lean_ctor_get(x_240, 0); +lean_inc(x_372); +x_373 = lean_ctor_get(x_240, 1); +lean_inc(x_373); +lean_dec(x_240); +x_229 = x_372; +x_230 = x_373; +goto block_239; +} +block_239: +{ +lean_object* x_231; +x_231 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__2(x_16, x_3, x_230); +if (lean_obj_tag(x_231) == 0) +{ +lean_object* x_232; lean_object* x_233; lean_object* x_234; +x_232 = lean_ctor_get(x_231, 1); +lean_inc(x_232); +if (lean_is_exclusive(x_231)) { + lean_ctor_release(x_231, 0); + lean_ctor_release(x_231, 1); + x_233 = x_231; +} else { + lean_dec_ref(x_231); + x_233 = lean_box(0); +} +if (lean_is_scalar(x_233)) { + x_234 = lean_alloc_ctor(1, 2, 0); +} else { + x_234 = x_233; + lean_ctor_set_tag(x_234, 1); +} +lean_ctor_set(x_234, 0, x_229); +lean_ctor_set(x_234, 1, x_232); +return x_234; +} +else +{ +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +lean_dec(x_229); +x_235 = lean_ctor_get(x_231, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_231, 1); +lean_inc(x_236); +if (lean_is_exclusive(x_231)) { + lean_ctor_release(x_231, 0); + lean_ctor_release(x_231, 1); + x_237 = x_231; +} else { + lean_dec_ref(x_231); + x_237 = lean_box(0); +} +if (lean_is_scalar(x_237)) { + x_238 = lean_alloc_ctor(1, 2, 0); +} else { + x_238 = x_237; +} +lean_ctor_set(x_238, 0, x_235); +lean_ctor_set(x_238, 1, x_236); +return x_238; +} +} +} +else +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; +lean_dec(x_222); +lean_dec(x_217); +lean_dec(x_16); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_1); +x_374 = lean_ctor_get(x_227, 0); +lean_inc(x_374); +x_375 = lean_ctor_get(x_227, 1); +lean_inc(x_375); +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + x_376 = x_227; +} else { + lean_dec_ref(x_227); + x_376 = lean_box(0); +} +if (lean_is_scalar(x_376)) { + x_377 = lean_alloc_ctor(1, 2, 0); +} else { + x_377 = x_376; +} +lean_ctor_set(x_377, 0, x_374); +lean_ctor_set(x_377, 1, x_375); +return x_377; +} +} +else +{ +lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; +lean_dec(x_222); +lean_dec(x_217); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_1); +x_378 = lean_ctor_get(x_225, 0); +lean_inc(x_378); +x_379 = lean_ctor_get(x_225, 1); +lean_inc(x_379); +if (lean_is_exclusive(x_225)) { + lean_ctor_release(x_225, 0); + lean_ctor_release(x_225, 1); + x_380 = x_225; +} else { + lean_dec_ref(x_225); + x_380 = lean_box(0); +} +if (lean_is_scalar(x_380)) { + x_381 = lean_alloc_ctor(1, 2, 0); +} else { + x_381 = x_380; +} +lean_ctor_set(x_381, 0, x_378); +lean_ctor_set(x_381, 1, x_379); +return x_381; +} +} +} +else +{ +lean_object* x_382; lean_object* x_383; lean_dec(x_21); lean_dec(x_20); lean_dec(x_18); @@ -5133,16 +5160,16 @@ lean_dec(x_16); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_372 = l_Lean_Elab_Command_withDeclId___closed__3; -x_373 = l_Lean_Elab_Command_throwError___rarg(x_6, x_372, x_3, x_19); +x_382 = l_Lean_Elab_Command_withDeclId___closed__3; +x_383 = l_Lean_Elab_Command_throwError___rarg(x_6, x_382, x_3, x_19); lean_dec(x_6); -return x_373; +return x_383; } } } else { -uint8_t x_388; +uint8_t x_398; lean_dec(x_14); lean_dec(x_13); lean_dec(x_11); @@ -5150,23 +5177,23 @@ lean_dec(x_10); lean_dec(x_6); lean_dec(x_3); lean_dec(x_1); -x_388 = !lean_is_exclusive(x_15); -if (x_388 == 0) +x_398 = !lean_is_exclusive(x_15); +if (x_398 == 0) { return x_15; } else { -lean_object* x_389; lean_object* x_390; lean_object* x_391; -x_389 = lean_ctor_get(x_15, 0); -x_390 = lean_ctor_get(x_15, 1); -lean_inc(x_390); -lean_inc(x_389); +lean_object* x_399; lean_object* x_400; lean_object* x_401; +x_399 = lean_ctor_get(x_15, 0); +x_400 = lean_ctor_get(x_15, 1); +lean_inc(x_400); +lean_inc(x_399); lean_dec(x_15); -x_391 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_391, 0, x_389); -lean_ctor_set(x_391, 1, x_390); -return x_391; +x_401 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_401, 0, x_399); +lean_ctor_set(x_401, 1, x_400); +return x_401; } } } @@ -5775,18 +5802,14 @@ l_Lean_Elab_Command_elabConstant___closed__5 = _init_l_Lean_Elab_Command_elabCon lean_mark_persistent(l_Lean_Elab_Command_elabConstant___closed__5); l_Lean_Elab_Command_elabConstant___closed__6 = _init_l_Lean_Elab_Command_elabConstant___closed__6(); lean_mark_persistent(l_Lean_Elab_Command_elabConstant___closed__6); -l_Lean_Elab_Command_elabConstant___closed__7 = _init_l_Lean_Elab_Command_elabConstant___closed__7(); -lean_mark_persistent(l_Lean_Elab_Command_elabConstant___closed__7); -l_Lean_Elab_Command_elabConstant___closed__8 = _init_l_Lean_Elab_Command_elabConstant___closed__8(); -lean_mark_persistent(l_Lean_Elab_Command_elabConstant___closed__8); -l_Lean_Elab_Command_elabConstant___closed__9 = _init_l_Lean_Elab_Command_elabConstant___closed__9(); -lean_mark_persistent(l_Lean_Elab_Command_elabConstant___closed__9); -l_Lean_Elab_Command_elabConstant___closed__10 = _init_l_Lean_Elab_Command_elabConstant___closed__10(); -lean_mark_persistent(l_Lean_Elab_Command_elabConstant___closed__10); -l_Lean_Elab_Command_elabConstant___closed__11 = _init_l_Lean_Elab_Command_elabConstant___closed__11(); -lean_mark_persistent(l_Lean_Elab_Command_elabConstant___closed__11); l_Lean_Elab_Command_elabInstance___closed__1 = _init_l_Lean_Elab_Command_elabInstance___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabInstance___closed__1); +l_Lean_Elab_Command_elabInstance___closed__2 = _init_l_Lean_Elab_Command_elabInstance___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabInstance___closed__2); +l_Lean_Elab_Command_elabInstance___closed__3 = _init_l_Lean_Elab_Command_elabInstance___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_elabInstance___closed__3); +l_Lean_Elab_Command_elabInstance___closed__4 = _init_l_Lean_Elab_Command_elabInstance___closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_elabInstance___closed__4); l_Lean_Elab_Command_elabExample___closed__1 = _init_l_Lean_Elab_Command_elabExample___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabExample___closed__1); l_Lean_Elab_Command_elabExample___closed__2 = _init_l_Lean_Elab_Command_elabExample___closed__2(); diff --git a/stage0/stdlib/Init/Lean/Elab/Definition.c b/stage0/stdlib/Init/Lean/Elab/Definition.c index 9e7c23ccfd..4d1d74401e 100644 --- a/stage0/stdlib/Init/Lean/Elab/Definition.c +++ b/stage0/stdlib/Init/Lean/Elab/Definition.c @@ -29,7 +29,6 @@ lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike_ lean_object* l_Lean_Elab_Command_elabDefLike___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDef___lambda__1___closed__4; lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Command_removeUnused___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Command_runTermElabM___rarg___closed__1; lean_object* lean_local_ctx_erase(lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); @@ -41,6 +40,7 @@ lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); extern lean_object* l_Lean_Parser_Command_declValEqns___elambda__1___closed__2; +extern lean_object* l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; lean_object* l_Lean_Elab_Command_elabDefVal___closed__1; lean_object* l_Lean_Elab_Command_elabDefVal(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_collectUsedFVarsAtFVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -124,12 +124,12 @@ lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lea lean_object* l_Lean_Elab_Command_removeUnused___closed__1; uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -extern lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; extern lean_object* l_HashMap_Inhabited___closed__1; uint8_t l_Lean_Elab_Command_DefKind_isDefOrOpaque(uint8_t); lean_object* lean_task_pure(lean_object*); lean_object* l___private_Init_Lean_Elab_Command_7__mkTermState(lean_object*); lean_object* l_Lean_CollectLevelParams_main___main(lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; lean_object* l_Lean_Elab_Command_DefKind_isExample___boxed(lean_object*); lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDef___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1373,7 +1373,7 @@ lean_object* _init_l_Lean_Elab_Command_mkDef___lambda__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +x_1 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; x_2 = l_Lean_Elab_Command_mkDef___lambda__1___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -4589,68 +4589,68 @@ lean_inc(x_2); x_9 = l_Lean_Elab_Command_getLevelNames(x_2, x_3); if (lean_obj_tag(x_9) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_389; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_399; x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_389 = l_Lean_Syntax_isNone(x_8); -if (x_389 == 0) +x_399 = l_Lean_Syntax_isNone(x_8); +if (x_399 == 0) { -lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; -x_390 = lean_unsigned_to_nat(1u); -x_391 = l_Lean_Syntax_getArg(x_8, x_390); -x_392 = l_Lean_Syntax_getArgs(x_391); -lean_dec(x_391); -x_393 = lean_unsigned_to_nat(2u); -x_394 = lean_unsigned_to_nat(0u); -x_395 = l_Array_empty___closed__1; -x_396 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_393, x_392, x_394, x_395); -lean_dec(x_392); +lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; +x_400 = lean_unsigned_to_nat(1u); +x_401 = l_Lean_Syntax_getArg(x_8, x_400); +x_402 = l_Lean_Syntax_getArgs(x_401); +lean_dec(x_401); +x_403 = lean_unsigned_to_nat(2u); +x_404 = lean_unsigned_to_nat(0u); +x_405 = l_Array_empty___closed__1; +x_406 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_403, x_402, x_404, x_405); +lean_dec(x_402); lean_inc(x_2); lean_inc(x_10); -x_397 = l_Array_iterateMAux___main___at_Lean_Elab_Command_elabDefLike___spec__5(x_8, x_396, x_394, x_10, x_2, x_11); -lean_dec(x_396); +x_407 = l_Array_iterateMAux___main___at_Lean_Elab_Command_elabDefLike___spec__5(x_8, x_406, x_404, x_10, x_2, x_11); +lean_dec(x_406); lean_dec(x_8); -if (lean_obj_tag(x_397) == 0) +if (lean_obj_tag(x_407) == 0) { -lean_object* x_398; lean_object* x_399; -x_398 = lean_ctor_get(x_397, 0); -lean_inc(x_398); -x_399 = lean_ctor_get(x_397, 1); -lean_inc(x_399); -lean_dec(x_397); -x_12 = x_398; -x_13 = x_399; -goto block_388; +lean_object* x_408; lean_object* x_409; +x_408 = lean_ctor_get(x_407, 0); +lean_inc(x_408); +x_409 = lean_ctor_get(x_407, 1); +lean_inc(x_409); +lean_dec(x_407); +x_12 = x_408; +x_13 = x_409; +goto block_398; } else { -uint8_t x_400; +uint8_t x_410; lean_dec(x_10); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_400 = !lean_is_exclusive(x_397); -if (x_400 == 0) +x_410 = !lean_is_exclusive(x_407); +if (x_410 == 0) { -return x_397; +return x_407; } else { -lean_object* x_401; lean_object* x_402; lean_object* x_403; -x_401 = lean_ctor_get(x_397, 0); -x_402 = lean_ctor_get(x_397, 1); -lean_inc(x_402); -lean_inc(x_401); -lean_dec(x_397); -x_403 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_403, 0, x_401); -lean_ctor_set(x_403, 1, x_402); -return x_403; +lean_object* x_411; lean_object* x_412; lean_object* x_413; +x_411 = lean_ctor_get(x_407, 0); +x_412 = lean_ctor_get(x_407, 1); +lean_inc(x_412); +lean_inc(x_411); +lean_dec(x_407); +x_413 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_413, 0, x_411); +lean_ctor_set(x_413, 1, x_412); +return x_413; } } } @@ -4660,9 +4660,9 @@ lean_dec(x_8); lean_inc(x_10); x_12 = x_10; x_13 = x_11; -goto block_388; +goto block_398; } -block_388: +block_398: { lean_object* x_14; lean_object* x_15; x_14 = l_Lean_extractMacroScopes(x_7); @@ -4756,314 +4756,325 @@ lean_inc(x_2); x_132 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_129); if (lean_obj_tag(x_132) == 0) { -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; x_133 = lean_ctor_get(x_132, 0); lean_inc(x_133); x_134 = lean_ctor_get(x_132, 1); lean_inc(x_134); lean_dec(x_132); x_135 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_133); -x_136 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_133, x_130); -x_137 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_133); lean_dec(x_133); -x_138 = l_Lean_Elab_Term_elabBinders___rarg(x_135, x_131, x_136, x_137); -lean_dec(x_135); -if (lean_obj_tag(x_138) == 0) -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; -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); lean_inc(x_2); -x_141 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_134); +x_136 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_134); +if (lean_obj_tag(x_136) == 0) +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_137 = lean_ctor_get(x_136, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_136, 1); +lean_inc(x_138); +lean_dec(x_136); +x_139 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_137, x_130); +x_140 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_137); +lean_dec(x_137); +x_141 = l_Lean_Elab_Term_elabBinders___rarg(x_135, x_131, x_139, x_140); +lean_dec(x_135); if (lean_obj_tag(x_141) == 0) { -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; uint8_t x_147; -x_142 = lean_ctor_get(x_140, 0); +lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_142 = lean_ctor_get(x_141, 0); lean_inc(x_142); -x_143 = lean_ctor_get(x_141, 0); +x_143 = lean_ctor_get(x_141, 1); lean_inc(x_143); -x_144 = lean_ctor_get(x_141, 1); -lean_inc(x_144); lean_dec(x_141); -x_145 = lean_ctor_get(x_142, 0); +lean_inc(x_2); +x_144 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_138); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t x_150; +x_145 = lean_ctor_get(x_143, 0); lean_inc(x_145); -lean_dec(x_142); -x_146 = lean_ctor_get(x_140, 2); +x_146 = lean_ctor_get(x_144, 0); lean_inc(x_146); -lean_dec(x_140); -x_147 = !lean_is_exclusive(x_143); -if (x_147 == 0) -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_148 = lean_ctor_get(x_143, 1); -lean_dec(x_148); -x_149 = lean_ctor_get(x_143, 0); -lean_dec(x_149); -lean_ctor_set(x_143, 1, x_146); -lean_ctor_set(x_143, 0, x_145); -lean_inc(x_2); -x_150 = l___private_Init_Lean_Elab_Command_3__setState(x_143, x_2, x_144); -if (lean_obj_tag(x_150) == 0) -{ -lean_object* x_151; -x_151 = lean_ctor_get(x_150, 1); -lean_inc(x_151); -lean_dec(x_150); -x_98 = x_139; -x_99 = x_151; -goto block_122; -} -else -{ -lean_object* x_152; lean_object* x_153; -lean_dec(x_139); -lean_dec(x_97); -lean_dec(x_95); -lean_dec(x_18); -lean_dec(x_4); -x_152 = lean_ctor_get(x_150, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_150, 1); -lean_inc(x_153); -lean_dec(x_150); -x_81 = x_152; -x_82 = x_153; -goto block_92; -} -} -else -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; -x_154 = lean_ctor_get(x_143, 2); -x_155 = lean_ctor_get(x_143, 3); -x_156 = lean_ctor_get(x_143, 4); -lean_inc(x_156); -lean_inc(x_155); -lean_inc(x_154); +x_147 = lean_ctor_get(x_144, 1); +lean_inc(x_147); +lean_dec(x_144); +x_148 = lean_ctor_get(x_145, 0); +lean_inc(x_148); +lean_dec(x_145); +x_149 = lean_ctor_get(x_143, 2); +lean_inc(x_149); lean_dec(x_143); -x_157 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_157, 0, x_145); -lean_ctor_set(x_157, 1, x_146); -lean_ctor_set(x_157, 2, x_154); -lean_ctor_set(x_157, 3, x_155); -lean_ctor_set(x_157, 4, x_156); -lean_inc(x_2); -x_158 = l___private_Init_Lean_Elab_Command_3__setState(x_157, x_2, x_144); -if (lean_obj_tag(x_158) == 0) +x_150 = !lean_is_exclusive(x_146); +if (x_150 == 0) { -lean_object* x_159; -x_159 = lean_ctor_get(x_158, 1); -lean_inc(x_159); -lean_dec(x_158); -x_98 = x_139; -x_99 = x_159; +lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_151 = lean_ctor_get(x_146, 1); +lean_dec(x_151); +x_152 = lean_ctor_get(x_146, 0); +lean_dec(x_152); +lean_ctor_set(x_146, 1, x_149); +lean_ctor_set(x_146, 0, x_148); +lean_inc(x_2); +x_153 = l___private_Init_Lean_Elab_Command_3__setState(x_146, x_2, x_147); +if (lean_obj_tag(x_153) == 0) +{ +lean_object* x_154; +x_154 = lean_ctor_get(x_153, 1); +lean_inc(x_154); +lean_dec(x_153); +x_98 = x_142; +x_99 = x_154; goto block_122; } else { -lean_object* x_160; lean_object* x_161; -lean_dec(x_139); +lean_object* x_155; lean_object* x_156; +lean_dec(x_142); lean_dec(x_97); lean_dec(x_95); lean_dec(x_18); lean_dec(x_4); -x_160 = lean_ctor_get(x_158, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_158, 1); -lean_inc(x_161); -lean_dec(x_158); -x_81 = x_160; -x_82 = x_161; -goto block_92; -} -} -} -else -{ -lean_object* x_162; lean_object* x_163; -lean_dec(x_140); -lean_dec(x_139); -lean_dec(x_97); -lean_dec(x_95); -lean_dec(x_18); -lean_dec(x_4); -x_162 = lean_ctor_get(x_141, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_141, 1); -lean_inc(x_163); -lean_dec(x_141); -x_81 = x_162; -x_82 = x_163; +x_155 = lean_ctor_get(x_153, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_153, 1); +lean_inc(x_156); +lean_dec(x_153); +x_81 = x_155; +x_82 = x_156; goto block_92; } } else { -lean_object* x_164; -x_164 = lean_ctor_get(x_138, 0); -lean_inc(x_164); -if (lean_obj_tag(x_164) == 0) -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; -lean_dec(x_97); -lean_dec(x_95); -lean_dec(x_18); -lean_dec(x_4); -x_165 = lean_ctor_get(x_138, 1); -lean_inc(x_165); -lean_dec(x_138); -x_166 = lean_ctor_get(x_164, 0); -lean_inc(x_166); -lean_dec(x_164); +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_157 = lean_ctor_get(x_146, 2); +x_158 = lean_ctor_get(x_146, 3); +x_159 = lean_ctor_get(x_146, 4); +lean_inc(x_159); +lean_inc(x_158); +lean_inc(x_157); +lean_dec(x_146); +x_160 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_160, 0, x_148); +lean_ctor_set(x_160, 1, x_149); +lean_ctor_set(x_160, 2, x_157); +lean_ctor_set(x_160, 3, x_158); +lean_ctor_set(x_160, 4, x_159); lean_inc(x_2); -x_167 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_134); +x_161 = l___private_Init_Lean_Elab_Command_3__setState(x_160, x_2, x_147); +if (lean_obj_tag(x_161) == 0) +{ +lean_object* x_162; +x_162 = lean_ctor_get(x_161, 1); +lean_inc(x_162); +lean_dec(x_161); +x_98 = x_142; +x_99 = x_162; +goto block_122; +} +else +{ +lean_object* x_163; lean_object* x_164; +lean_dec(x_142); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); +lean_dec(x_4); +x_163 = lean_ctor_get(x_161, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_161, 1); +lean_inc(x_164); +lean_dec(x_161); +x_81 = x_163; +x_82 = x_164; +goto block_92; +} +} +} +else +{ +lean_object* x_165; lean_object* x_166; +lean_dec(x_143); +lean_dec(x_142); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); +lean_dec(x_4); +x_165 = lean_ctor_get(x_144, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_144, 1); +lean_inc(x_166); +lean_dec(x_144); +x_81 = x_165; +x_82 = x_166; +goto block_92; +} +} +else +{ +lean_object* x_167; +x_167 = lean_ctor_get(x_141, 0); +lean_inc(x_167); if (lean_obj_tag(x_167) == 0) { -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; -x_168 = lean_ctor_get(x_165, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 0); -lean_inc(x_169); -x_170 = lean_ctor_get(x_167, 1); -lean_inc(x_170); -lean_dec(x_167); -x_171 = lean_ctor_get(x_168, 0); -lean_inc(x_171); -lean_dec(x_168); -x_172 = lean_ctor_get(x_165, 2); -lean_inc(x_172); -lean_dec(x_165); -x_173 = !lean_is_exclusive(x_169); -if (x_173 == 0) -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_174 = lean_ctor_get(x_169, 1); -lean_dec(x_174); -x_175 = lean_ctor_get(x_169, 0); -lean_dec(x_175); -lean_ctor_set(x_169, 1, x_172); -lean_ctor_set(x_169, 0, x_171); -lean_inc(x_2); -x_176 = l___private_Init_Lean_Elab_Command_3__setState(x_169, x_2, x_170); -if (lean_obj_tag(x_176) == 0) -{ -lean_object* x_177; -x_177 = lean_ctor_get(x_176, 1); -lean_inc(x_177); -lean_dec(x_176); -x_81 = x_166; -x_82 = x_177; -goto block_92; -} -else -{ -lean_object* x_178; lean_object* x_179; -lean_dec(x_166); -x_178 = lean_ctor_get(x_176, 0); -lean_inc(x_178); -x_179 = lean_ctor_get(x_176, 1); -lean_inc(x_179); -lean_dec(x_176); -x_81 = x_178; -x_82 = x_179; -goto block_92; -} -} -else -{ -lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; -x_180 = lean_ctor_get(x_169, 2); -x_181 = lean_ctor_get(x_169, 3); -x_182 = lean_ctor_get(x_169, 4); -lean_inc(x_182); -lean_inc(x_181); -lean_inc(x_180); -lean_dec(x_169); -x_183 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_183, 0, x_171); -lean_ctor_set(x_183, 1, x_172); -lean_ctor_set(x_183, 2, x_180); -lean_ctor_set(x_183, 3, x_181); -lean_ctor_set(x_183, 4, x_182); -lean_inc(x_2); -x_184 = l___private_Init_Lean_Elab_Command_3__setState(x_183, x_2, x_170); -if (lean_obj_tag(x_184) == 0) -{ -lean_object* x_185; -x_185 = lean_ctor_get(x_184, 1); -lean_inc(x_185); -lean_dec(x_184); -x_81 = x_166; -x_82 = x_185; -goto block_92; -} -else -{ -lean_object* x_186; lean_object* x_187; -lean_dec(x_166); -x_186 = lean_ctor_get(x_184, 0); -lean_inc(x_186); -x_187 = lean_ctor_get(x_184, 1); -lean_inc(x_187); -lean_dec(x_184); -x_81 = x_186; -x_82 = x_187; -goto block_92; -} -} -} -else -{ -lean_object* x_188; lean_object* x_189; -lean_dec(x_166); -lean_dec(x_165); -x_188 = lean_ctor_get(x_167, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_167, 1); -lean_inc(x_189); -lean_dec(x_167); -x_81 = x_188; -x_82 = x_189; -goto block_92; -} -} -else -{ -lean_object* x_190; lean_object* x_191; lean_object* x_192; -lean_dec(x_138); -x_190 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; -x_191 = l_unreachable_x21___rarg(x_190); -lean_inc(x_2); -x_192 = lean_apply_2(x_191, x_2, x_134); -if (lean_obj_tag(x_192) == 0) -{ -lean_object* x_193; lean_object* x_194; -x_193 = lean_ctor_get(x_192, 0); -lean_inc(x_193); -x_194 = lean_ctor_get(x_192, 1); -lean_inc(x_194); -lean_dec(x_192); -x_98 = x_193; -x_99 = x_194; -goto block_122; -} -else -{ -lean_object* x_195; lean_object* x_196; +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_dec(x_97); lean_dec(x_95); lean_dec(x_18); lean_dec(x_4); -x_195 = lean_ctor_get(x_192, 0); -lean_inc(x_195); -x_196 = lean_ctor_get(x_192, 1); +x_168 = lean_ctor_get(x_141, 1); +lean_inc(x_168); +lean_dec(x_141); +x_169 = lean_ctor_get(x_167, 0); +lean_inc(x_169); +lean_dec(x_167); +lean_inc(x_2); +x_170 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_138); +if (lean_obj_tag(x_170) == 0) +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; +x_171 = lean_ctor_get(x_168, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_170, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_170, 1); +lean_inc(x_173); +lean_dec(x_170); +x_174 = lean_ctor_get(x_171, 0); +lean_inc(x_174); +lean_dec(x_171); +x_175 = lean_ctor_get(x_168, 2); +lean_inc(x_175); +lean_dec(x_168); +x_176 = !lean_is_exclusive(x_172); +if (x_176 == 0) +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_177 = lean_ctor_get(x_172, 1); +lean_dec(x_177); +x_178 = lean_ctor_get(x_172, 0); +lean_dec(x_178); +lean_ctor_set(x_172, 1, x_175); +lean_ctor_set(x_172, 0, x_174); +lean_inc(x_2); +x_179 = l___private_Init_Lean_Elab_Command_3__setState(x_172, x_2, x_173); +if (lean_obj_tag(x_179) == 0) +{ +lean_object* x_180; +x_180 = lean_ctor_get(x_179, 1); +lean_inc(x_180); +lean_dec(x_179); +x_81 = x_169; +x_82 = x_180; +goto block_92; +} +else +{ +lean_object* x_181; lean_object* x_182; +lean_dec(x_169); +x_181 = lean_ctor_get(x_179, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_179, 1); +lean_inc(x_182); +lean_dec(x_179); +x_81 = x_181; +x_82 = x_182; +goto block_92; +} +} +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_172, 2); +x_184 = lean_ctor_get(x_172, 3); +x_185 = lean_ctor_get(x_172, 4); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_dec(x_172); +x_186 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_186, 0, x_174); +lean_ctor_set(x_186, 1, x_175); +lean_ctor_set(x_186, 2, x_183); +lean_ctor_set(x_186, 3, x_184); +lean_ctor_set(x_186, 4, x_185); +lean_inc(x_2); +x_187 = l___private_Init_Lean_Elab_Command_3__setState(x_186, x_2, x_173); +if (lean_obj_tag(x_187) == 0) +{ +lean_object* x_188; +x_188 = lean_ctor_get(x_187, 1); +lean_inc(x_188); +lean_dec(x_187); +x_81 = x_169; +x_82 = x_188; +goto block_92; +} +else +{ +lean_object* x_189; lean_object* x_190; +lean_dec(x_169); +x_189 = lean_ctor_get(x_187, 0); +lean_inc(x_189); +x_190 = lean_ctor_get(x_187, 1); +lean_inc(x_190); +lean_dec(x_187); +x_81 = x_189; +x_82 = x_190; +goto block_92; +} +} +} +else +{ +lean_object* x_191; lean_object* x_192; +lean_dec(x_169); +lean_dec(x_168); +x_191 = lean_ctor_get(x_170, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_170, 1); +lean_inc(x_192); +lean_dec(x_170); +x_81 = x_191; +x_82 = x_192; +goto block_92; +} +} +else +{ +lean_object* x_193; lean_object* x_194; lean_object* x_195; +lean_dec(x_141); +x_193 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; +x_194 = l_unreachable_x21___rarg(x_193); +lean_inc(x_2); +x_195 = lean_apply_2(x_194, x_2, x_138); +if (lean_obj_tag(x_195) == 0) +{ +lean_object* x_196; lean_object* x_197; +x_196 = lean_ctor_get(x_195, 0); lean_inc(x_196); -lean_dec(x_192); -x_81 = x_195; -x_82 = x_196; +x_197 = lean_ctor_get(x_195, 1); +lean_inc(x_197); +lean_dec(x_195); +x_98 = x_196; +x_99 = x_197; +goto block_122; +} +else +{ +lean_object* x_198; lean_object* x_199; +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); +lean_dec(x_4); +x_198 = lean_ctor_get(x_195, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_195, 1); +lean_inc(x_199); +lean_dec(x_195); +x_81 = x_198; +x_82 = x_199; goto block_92; } } @@ -5071,56 +5082,76 @@ goto block_92; } else { -lean_object* x_197; lean_object* x_198; +lean_object* x_200; lean_object* x_201; +lean_dec(x_135); lean_dec(x_131); lean_dec(x_130); lean_dec(x_97); lean_dec(x_95); lean_dec(x_18); lean_dec(x_4); -x_197 = lean_ctor_get(x_132, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_132, 1); -lean_inc(x_198); -lean_dec(x_132); -x_81 = x_197; -x_82 = x_198; -goto block_92; -} -} -else -{ -lean_object* x_199; lean_object* x_200; -lean_dec(x_97); -lean_dec(x_95); -lean_dec(x_18); -lean_dec(x_4); -lean_dec(x_1); -x_199 = lean_ctor_get(x_127, 0); -lean_inc(x_199); -x_200 = lean_ctor_get(x_127, 1); +x_200 = lean_ctor_get(x_136, 0); lean_inc(x_200); -lean_dec(x_127); -x_81 = x_199; -x_82 = x_200; +x_201 = lean_ctor_get(x_136, 1); +lean_inc(x_201); +lean_dec(x_136); +x_81 = x_200; +x_82 = x_201; goto block_92; } } else { -lean_object* x_201; lean_object* x_202; +lean_object* x_202; lean_object* x_203; +lean_dec(x_131); +lean_dec(x_130); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); +lean_dec(x_4); +x_202 = lean_ctor_get(x_132, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_132, 1); +lean_inc(x_203); +lean_dec(x_132); +x_81 = x_202; +x_82 = x_203; +goto block_92; +} +} +else +{ +lean_object* x_204; lean_object* x_205; lean_dec(x_97); lean_dec(x_95); lean_dec(x_18); lean_dec(x_4); lean_dec(x_1); -x_201 = lean_ctor_get(x_125, 0); -lean_inc(x_201); -x_202 = lean_ctor_get(x_125, 1); -lean_inc(x_202); +x_204 = lean_ctor_get(x_127, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_127, 1); +lean_inc(x_205); +lean_dec(x_127); +x_81 = x_204; +x_82 = x_205; +goto block_92; +} +} +else +{ +lean_object* x_206; lean_object* x_207; +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); +lean_dec(x_4); +lean_dec(x_1); +x_206 = lean_ctor_get(x_125, 0); +lean_inc(x_206); +x_207 = lean_ctor_get(x_125, 1); +lean_inc(x_207); lean_dec(x_125); -x_81 = x_201; -x_82 = x_202; +x_81 = x_206; +x_82 = x_207; goto block_92; } block_122: @@ -5258,18 +5289,18 @@ goto block_92; } else { -lean_object* x_203; lean_object* x_204; +lean_object* x_208; lean_object* x_209; lean_dec(x_93); lean_dec(x_18); lean_dec(x_4); lean_dec(x_1); -x_203 = lean_ctor_get(x_94, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_94, 1); -lean_inc(x_204); +x_208 = lean_ctor_get(x_94, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_94, 1); +lean_inc(x_209); lean_dec(x_94); -x_81 = x_203; -x_82 = x_204; +x_81 = x_208; +x_82 = x_209; goto block_92; } block_80: @@ -5571,36 +5602,36 @@ return x_91; } else { -uint8_t x_205; +uint8_t x_210; lean_dec(x_22); lean_dec(x_18); lean_dec(x_10); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_205 = !lean_is_exclusive(x_27); -if (x_205 == 0) +x_210 = !lean_is_exclusive(x_27); +if (x_210 == 0) { return x_27; } else { -lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_206 = lean_ctor_get(x_27, 0); -x_207 = lean_ctor_get(x_27, 1); -lean_inc(x_207); -lean_inc(x_206); +lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_211 = lean_ctor_get(x_27, 0); +x_212 = lean_ctor_get(x_27, 1); +lean_inc(x_212); +lean_inc(x_211); lean_dec(x_27); -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; +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_211); +lean_ctor_set(x_213, 1, x_212); +return x_213; } } } else { -uint8_t x_209; +uint8_t x_214; lean_dec(x_22); lean_dec(x_18); lean_dec(x_12); @@ -5608,935 +5639,966 @@ lean_dec(x_10); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_209 = !lean_is_exclusive(x_25); -if (x_209 == 0) +x_214 = !lean_is_exclusive(x_25); +if (x_214 == 0) { return x_25; } else { -lean_object* x_210; lean_object* x_211; lean_object* x_212; -x_210 = lean_ctor_get(x_25, 0); -x_211 = lean_ctor_get(x_25, 1); -lean_inc(x_211); -lean_inc(x_210); +lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_215 = lean_ctor_get(x_25, 0); +x_216 = lean_ctor_get(x_25, 1); +lean_inc(x_216); +lean_inc(x_215); lean_dec(x_25); -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_217 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_217, 0, x_215); +lean_ctor_set(x_217, 1, x_216); +return x_217; } } } 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; uint8_t x_223; lean_object* x_224; -x_213 = lean_ctor_get(x_14, 1); -x_214 = lean_ctor_get(x_14, 2); -x_215 = lean_ctor_get(x_14, 3); -lean_inc(x_215); -lean_inc(x_214); -lean_inc(x_213); +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; uint8_t x_228; lean_object* x_229; +x_218 = lean_ctor_get(x_14, 1); +x_219 = lean_ctor_get(x_14, 2); +x_220 = lean_ctor_get(x_14, 3); +lean_inc(x_220); +lean_inc(x_219); +lean_inc(x_218); lean_dec(x_14); -x_216 = lean_ctor_get(x_15, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_15, 1); -lean_inc(x_217); +x_221 = lean_ctor_get(x_15, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_15, 1); +lean_inc(x_222); lean_dec(x_15); -x_218 = lean_box(0); -x_219 = lean_name_mk_string(x_218, x_217); -x_220 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_213); -lean_ctor_set(x_220, 2, x_214); -lean_ctor_set(x_220, 3, x_215); -x_221 = l_Lean_MacroScopesView_review(x_220); -x_222 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; -x_223 = 1; +x_223 = lean_box(0); +x_224 = lean_name_mk_string(x_223, x_222); +x_225 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_225, 0, x_224); +lean_ctor_set(x_225, 1, x_218); +lean_ctor_set(x_225, 2, x_219); +lean_ctor_set(x_225, 3, x_220); +x_226 = l_Lean_MacroScopesView_review(x_225); +x_227 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; +x_228 = 1; lean_inc(x_2); -lean_inc(x_216); -x_224 = l___private_Init_Lean_Elab_Command_12__addScopes___main(x_5, x_222, x_223, x_216, x_2, x_13); +lean_inc(x_221); +x_229 = l___private_Init_Lean_Elab_Command_12__addScopes___main(x_5, x_227, x_228, x_221, x_2, x_13); lean_dec(x_5); -if (lean_obj_tag(x_224) == 0) +if (lean_obj_tag(x_229) == 0) { -lean_object* x_225; lean_object* x_226; -x_225 = lean_ctor_get(x_224, 1); -lean_inc(x_225); -lean_dec(x_224); +lean_object* x_230; lean_object* x_231; +x_230 = lean_ctor_get(x_229, 1); +lean_inc(x_230); +lean_dec(x_229); lean_inc(x_2); -x_226 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__1(x_12, x_2, x_225); -if (lean_obj_tag(x_226) == 0) +x_231 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__1(x_12, x_2, x_230); +if (lean_obj_tag(x_231) == 0) { -lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_267; lean_object* x_268; lean_object* x_278; lean_object* x_279; -x_227 = lean_ctor_get(x_226, 1); -lean_inc(x_227); -lean_dec(x_226); -x_278 = lean_ctor_get(x_1, 1); -lean_inc(x_278); +lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_272; lean_object* x_273; lean_object* x_283; lean_object* x_284; +x_232 = lean_ctor_get(x_231, 1); +lean_inc(x_232); +lean_dec(x_231); +x_283 = lean_ctor_get(x_1, 1); +lean_inc(x_283); lean_inc(x_2); -x_279 = l_Lean_Elab_Command_mkDeclName(x_278, x_221, x_2, x_227); -if (lean_obj_tag(x_279) == 0) +x_284 = l_Lean_Elab_Command_mkDeclName(x_283, x_226, x_2, x_232); +if (lean_obj_tag(x_284) == 0) { -lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; uint8_t x_308; lean_object* x_309; lean_object* x_310; -x_280 = lean_ctor_get(x_279, 0); -lean_inc(x_280); -x_281 = lean_ctor_get(x_279, 1); -lean_inc(x_281); -lean_dec(x_279); -x_282 = lean_ctor_get(x_278, 1); -lean_inc(x_282); -lean_dec(x_278); -x_308 = 2; -x_309 = lean_unsigned_to_nat(0u); +lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_313; lean_object* x_314; lean_object* x_315; +x_285 = lean_ctor_get(x_284, 0); +lean_inc(x_285); +x_286 = lean_ctor_get(x_284, 1); +lean_inc(x_286); +lean_dec(x_284); +x_287 = lean_ctor_get(x_283, 1); +lean_inc(x_287); +lean_dec(x_283); +x_313 = 2; +x_314 = lean_unsigned_to_nat(0u); lean_inc(x_2); -lean_inc(x_280); -x_310 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_280, x_308, x_282, x_309, x_2, x_281); -if (lean_obj_tag(x_310) == 0) +lean_inc(x_285); +x_315 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_285, x_313, x_287, x_314, x_2, x_286); +if (lean_obj_tag(x_315) == 0) { -lean_object* x_311; lean_object* x_312; -x_311 = lean_ctor_get(x_310, 1); -lean_inc(x_311); -lean_dec(x_310); +lean_object* x_316; lean_object* x_317; +x_316 = lean_ctor_get(x_315, 1); +lean_inc(x_316); +lean_dec(x_315); lean_inc(x_2); -x_312 = l_Lean_Elab_Command_getLevelNames(x_2, x_311); -if (lean_obj_tag(x_312) == 0) -{ -lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; -x_313 = lean_ctor_get(x_312, 0); -lean_inc(x_313); -x_314 = lean_ctor_get(x_312, 1); -lean_inc(x_314); -lean_dec(x_312); -lean_inc(x_280); -x_315 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_315, 0, x_280); -lean_inc(x_4); -lean_inc(x_280); -x_316 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabDefLike___lambda__3), 7, 4); -lean_closure_set(x_316, 0, x_1); -lean_closure_set(x_316, 1, x_280); -lean_closure_set(x_316, 2, x_313); -lean_closure_set(x_316, 3, x_4); -lean_inc(x_2); -x_317 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_314); +x_317 = l_Lean_Elab_Command_getLevelNames(x_2, x_316); if (lean_obj_tag(x_317) == 0) { -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_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; x_318 = lean_ctor_get(x_317, 0); lean_inc(x_318); x_319 = lean_ctor_get(x_317, 1); lean_inc(x_319); lean_dec(x_317); -x_320 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_318); -x_321 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_318, x_315); -x_322 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_318); -lean_dec(x_318); -x_323 = l_Lean_Elab_Term_elabBinders___rarg(x_320, x_316, x_321, x_322); -lean_dec(x_320); -if (lean_obj_tag(x_323) == 0) +lean_inc(x_285); +x_320 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_320, 0, x_285); +lean_inc(x_4); +lean_inc(x_285); +x_321 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabDefLike___lambda__3), 7, 4); +lean_closure_set(x_321, 0, x_1); +lean_closure_set(x_321, 1, x_285); +lean_closure_set(x_321, 2, x_318); +lean_closure_set(x_321, 3, x_4); +lean_inc(x_2); +x_322 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_319); +if (lean_obj_tag(x_322) == 0) { -lean_object* x_324; lean_object* x_325; lean_object* x_326; -x_324 = lean_ctor_get(x_323, 0); +lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; +x_323 = lean_ctor_get(x_322, 0); +lean_inc(x_323); +x_324 = lean_ctor_get(x_322, 1); lean_inc(x_324); -x_325 = lean_ctor_get(x_323, 1); -lean_inc(x_325); +lean_dec(x_322); +x_325 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_323); lean_dec(x_323); lean_inc(x_2); -x_326 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_319); +x_326 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_324); if (lean_obj_tag(x_326) == 0) { -lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; -x_327 = lean_ctor_get(x_325, 0); +lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; +x_327 = lean_ctor_get(x_326, 0); lean_inc(x_327); -x_328 = lean_ctor_get(x_326, 0); +x_328 = lean_ctor_get(x_326, 1); lean_inc(x_328); -x_329 = lean_ctor_get(x_326, 1); -lean_inc(x_329); lean_dec(x_326); -x_330 = lean_ctor_get(x_327, 0); -lean_inc(x_330); +x_329 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_327, x_320); +x_330 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_327); lean_dec(x_327); -x_331 = lean_ctor_get(x_325, 2); -lean_inc(x_331); +x_331 = l_Lean_Elab_Term_elabBinders___rarg(x_325, x_321, x_329, x_330); lean_dec(x_325); -x_332 = lean_ctor_get(x_328, 2); +if (lean_obj_tag(x_331) == 0) +{ +lean_object* x_332; lean_object* x_333; lean_object* x_334; +x_332 = lean_ctor_get(x_331, 0); lean_inc(x_332); -x_333 = lean_ctor_get(x_328, 3); +x_333 = lean_ctor_get(x_331, 1); lean_inc(x_333); -x_334 = lean_ctor_get(x_328, 4); -lean_inc(x_334); -if (lean_is_exclusive(x_328)) { - lean_ctor_release(x_328, 0); - lean_ctor_release(x_328, 1); - lean_ctor_release(x_328, 2); - lean_ctor_release(x_328, 3); - lean_ctor_release(x_328, 4); - x_335 = x_328; -} else { - lean_dec_ref(x_328); - x_335 = lean_box(0); -} -if (lean_is_scalar(x_335)) { - x_336 = lean_alloc_ctor(0, 5, 0); -} else { - x_336 = x_335; -} -lean_ctor_set(x_336, 0, x_330); -lean_ctor_set(x_336, 1, x_331); -lean_ctor_set(x_336, 2, x_332); -lean_ctor_set(x_336, 3, x_333); -lean_ctor_set(x_336, 4, x_334); +lean_dec(x_331); lean_inc(x_2); -x_337 = l___private_Init_Lean_Elab_Command_3__setState(x_336, x_2, x_329); -if (lean_obj_tag(x_337) == 0) +x_334 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_328); +if (lean_obj_tag(x_334) == 0) { -lean_object* x_338; -x_338 = lean_ctor_get(x_337, 1); +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; +x_335 = lean_ctor_get(x_333, 0); +lean_inc(x_335); +x_336 = lean_ctor_get(x_334, 0); +lean_inc(x_336); +x_337 = lean_ctor_get(x_334, 1); +lean_inc(x_337); +lean_dec(x_334); +x_338 = lean_ctor_get(x_335, 0); lean_inc(x_338); -lean_dec(x_337); -x_283 = x_324; -x_284 = x_338; -goto block_307; -} -else -{ -lean_object* x_339; lean_object* x_340; -lean_dec(x_324); -lean_dec(x_282); -lean_dec(x_280); -lean_dec(x_216); -lean_dec(x_4); -x_339 = lean_ctor_get(x_337, 0); +lean_dec(x_335); +x_339 = lean_ctor_get(x_333, 2); lean_inc(x_339); -x_340 = lean_ctor_get(x_337, 1); +lean_dec(x_333); +x_340 = lean_ctor_get(x_336, 2); lean_inc(x_340); -lean_dec(x_337); -x_267 = x_339; -x_268 = x_340; -goto block_277; -} -} -else -{ -lean_object* x_341; lean_object* x_342; -lean_dec(x_325); -lean_dec(x_324); -lean_dec(x_282); -lean_dec(x_280); -lean_dec(x_216); -lean_dec(x_4); -x_341 = lean_ctor_get(x_326, 0); +x_341 = lean_ctor_get(x_336, 3); lean_inc(x_341); -x_342 = lean_ctor_get(x_326, 1); +x_342 = lean_ctor_get(x_336, 4); lean_inc(x_342); -lean_dec(x_326); -x_267 = x_341; -x_268 = x_342; -goto block_277; +if (lean_is_exclusive(x_336)) { + lean_ctor_release(x_336, 0); + lean_ctor_release(x_336, 1); + lean_ctor_release(x_336, 2); + lean_ctor_release(x_336, 3); + lean_ctor_release(x_336, 4); + x_343 = x_336; +} else { + lean_dec_ref(x_336); + x_343 = lean_box(0); } +if (lean_is_scalar(x_343)) { + x_344 = lean_alloc_ctor(0, 5, 0); +} else { + x_344 = x_343; +} +lean_ctor_set(x_344, 0, x_338); +lean_ctor_set(x_344, 1, x_339); +lean_ctor_set(x_344, 2, x_340); +lean_ctor_set(x_344, 3, x_341); +lean_ctor_set(x_344, 4, x_342); +lean_inc(x_2); +x_345 = l___private_Init_Lean_Elab_Command_3__setState(x_344, x_2, x_337); +if (lean_obj_tag(x_345) == 0) +{ +lean_object* x_346; +x_346 = lean_ctor_get(x_345, 1); +lean_inc(x_346); +lean_dec(x_345); +x_288 = x_332; +x_289 = x_346; +goto block_312; } else { -lean_object* x_343; -x_343 = lean_ctor_get(x_323, 0); -lean_inc(x_343); -if (lean_obj_tag(x_343) == 0) -{ -lean_object* x_344; lean_object* x_345; lean_object* x_346; -lean_dec(x_282); -lean_dec(x_280); -lean_dec(x_216); +lean_object* x_347; lean_object* x_348; +lean_dec(x_332); +lean_dec(x_287); +lean_dec(x_285); +lean_dec(x_221); lean_dec(x_4); -x_344 = lean_ctor_get(x_323, 1); -lean_inc(x_344); -lean_dec(x_323); -x_345 = lean_ctor_get(x_343, 0); -lean_inc(x_345); -lean_dec(x_343); -lean_inc(x_2); -x_346 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_319); -if (lean_obj_tag(x_346) == 0) -{ -lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; -x_347 = lean_ctor_get(x_344, 0); +x_347 = lean_ctor_get(x_345, 0); lean_inc(x_347); -x_348 = lean_ctor_get(x_346, 0); +x_348 = lean_ctor_get(x_345, 1); lean_inc(x_348); -x_349 = lean_ctor_get(x_346, 1); +lean_dec(x_345); +x_272 = x_347; +x_273 = x_348; +goto block_282; +} +} +else +{ +lean_object* x_349; lean_object* x_350; +lean_dec(x_333); +lean_dec(x_332); +lean_dec(x_287); +lean_dec(x_285); +lean_dec(x_221); +lean_dec(x_4); +x_349 = lean_ctor_get(x_334, 0); lean_inc(x_349); -lean_dec(x_346); -x_350 = lean_ctor_get(x_347, 0); +x_350 = lean_ctor_get(x_334, 1); lean_inc(x_350); -lean_dec(x_347); -x_351 = lean_ctor_get(x_344, 2); +lean_dec(x_334); +x_272 = x_349; +x_273 = x_350; +goto block_282; +} +} +else +{ +lean_object* x_351; +x_351 = lean_ctor_get(x_331, 0); lean_inc(x_351); -lean_dec(x_344); -x_352 = lean_ctor_get(x_348, 2); +if (lean_obj_tag(x_351) == 0) +{ +lean_object* x_352; lean_object* x_353; lean_object* x_354; +lean_dec(x_287); +lean_dec(x_285); +lean_dec(x_221); +lean_dec(x_4); +x_352 = lean_ctor_get(x_331, 1); lean_inc(x_352); -x_353 = lean_ctor_get(x_348, 3); +lean_dec(x_331); +x_353 = lean_ctor_get(x_351, 0); lean_inc(x_353); -x_354 = lean_ctor_get(x_348, 4); -lean_inc(x_354); -if (lean_is_exclusive(x_348)) { - lean_ctor_release(x_348, 0); - lean_ctor_release(x_348, 1); - lean_ctor_release(x_348, 2); - lean_ctor_release(x_348, 3); - lean_ctor_release(x_348, 4); - x_355 = x_348; -} else { - lean_dec_ref(x_348); - x_355 = lean_box(0); -} -if (lean_is_scalar(x_355)) { - x_356 = lean_alloc_ctor(0, 5, 0); -} else { - x_356 = x_355; -} -lean_ctor_set(x_356, 0, x_350); -lean_ctor_set(x_356, 1, x_351); -lean_ctor_set(x_356, 2, x_352); -lean_ctor_set(x_356, 3, x_353); -lean_ctor_set(x_356, 4, x_354); +lean_dec(x_351); lean_inc(x_2); -x_357 = l___private_Init_Lean_Elab_Command_3__setState(x_356, x_2, x_349); -if (lean_obj_tag(x_357) == 0) +x_354 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_328); +if (lean_obj_tag(x_354) == 0) { -lean_object* x_358; -x_358 = lean_ctor_get(x_357, 1); +lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; +x_355 = lean_ctor_get(x_352, 0); +lean_inc(x_355); +x_356 = lean_ctor_get(x_354, 0); +lean_inc(x_356); +x_357 = lean_ctor_get(x_354, 1); +lean_inc(x_357); +lean_dec(x_354); +x_358 = lean_ctor_get(x_355, 0); lean_inc(x_358); -lean_dec(x_357); -x_267 = x_345; -x_268 = x_358; -goto block_277; -} -else -{ -lean_object* x_359; lean_object* x_360; -lean_dec(x_345); -x_359 = lean_ctor_get(x_357, 0); +lean_dec(x_355); +x_359 = lean_ctor_get(x_352, 2); lean_inc(x_359); -x_360 = lean_ctor_get(x_357, 1); +lean_dec(x_352); +x_360 = lean_ctor_get(x_356, 2); lean_inc(x_360); -lean_dec(x_357); -x_267 = x_359; -x_268 = x_360; -goto block_277; -} -} -else -{ -lean_object* x_361; lean_object* x_362; -lean_dec(x_345); -lean_dec(x_344); -x_361 = lean_ctor_get(x_346, 0); +x_361 = lean_ctor_get(x_356, 3); lean_inc(x_361); -x_362 = lean_ctor_get(x_346, 1); +x_362 = lean_ctor_get(x_356, 4); lean_inc(x_362); -lean_dec(x_346); -x_267 = x_361; -x_268 = x_362; -goto block_277; +if (lean_is_exclusive(x_356)) { + lean_ctor_release(x_356, 0); + lean_ctor_release(x_356, 1); + lean_ctor_release(x_356, 2); + lean_ctor_release(x_356, 3); + lean_ctor_release(x_356, 4); + x_363 = x_356; +} else { + lean_dec_ref(x_356); + x_363 = lean_box(0); } +if (lean_is_scalar(x_363)) { + x_364 = lean_alloc_ctor(0, 5, 0); +} else { + x_364 = x_363; } -else -{ -lean_object* x_363; lean_object* x_364; lean_object* x_365; -lean_dec(x_323); -x_363 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; -x_364 = l_unreachable_x21___rarg(x_363); +lean_ctor_set(x_364, 0, x_358); +lean_ctor_set(x_364, 1, x_359); +lean_ctor_set(x_364, 2, x_360); +lean_ctor_set(x_364, 3, x_361); +lean_ctor_set(x_364, 4, x_362); lean_inc(x_2); -x_365 = lean_apply_2(x_364, x_2, x_319); +x_365 = l___private_Init_Lean_Elab_Command_3__setState(x_364, x_2, x_357); if (lean_obj_tag(x_365) == 0) { -lean_object* x_366; lean_object* x_367; -x_366 = lean_ctor_get(x_365, 0); +lean_object* x_366; +x_366 = lean_ctor_get(x_365, 1); lean_inc(x_366); -x_367 = lean_ctor_get(x_365, 1); +lean_dec(x_365); +x_272 = x_353; +x_273 = x_366; +goto block_282; +} +else +{ +lean_object* x_367; lean_object* x_368; +lean_dec(x_353); +x_367 = lean_ctor_get(x_365, 0); lean_inc(x_367); -lean_dec(x_365); -x_283 = x_366; -x_284 = x_367; -goto block_307; -} -else -{ -lean_object* x_368; lean_object* x_369; -lean_dec(x_282); -lean_dec(x_280); -lean_dec(x_216); -lean_dec(x_4); -x_368 = lean_ctor_get(x_365, 0); +x_368 = lean_ctor_get(x_365, 1); lean_inc(x_368); -x_369 = lean_ctor_get(x_365, 1); -lean_inc(x_369); lean_dec(x_365); -x_267 = x_368; -x_268 = x_369; -goto block_277; -} -} +x_272 = x_367; +x_273 = x_368; +goto block_282; } } else { -lean_object* x_370; lean_object* x_371; -lean_dec(x_316); -lean_dec(x_315); -lean_dec(x_282); -lean_dec(x_280); -lean_dec(x_216); -lean_dec(x_4); -x_370 = lean_ctor_get(x_317, 0); +lean_object* x_369; lean_object* x_370; +lean_dec(x_353); +lean_dec(x_352); +x_369 = lean_ctor_get(x_354, 0); +lean_inc(x_369); +x_370 = lean_ctor_get(x_354, 1); lean_inc(x_370); -x_371 = lean_ctor_get(x_317, 1); -lean_inc(x_371); -lean_dec(x_317); -x_267 = x_370; -x_268 = x_371; -goto block_277; +lean_dec(x_354); +x_272 = x_369; +x_273 = x_370; +goto block_282; } } else { -lean_object* x_372; lean_object* x_373; -lean_dec(x_282); -lean_dec(x_280); -lean_dec(x_216); -lean_dec(x_4); -lean_dec(x_1); -x_372 = lean_ctor_get(x_312, 0); -lean_inc(x_372); -x_373 = lean_ctor_get(x_312, 1); -lean_inc(x_373); -lean_dec(x_312); -x_267 = x_372; -x_268 = x_373; -goto block_277; -} -} -else +lean_object* x_371; lean_object* x_372; lean_object* x_373; +lean_dec(x_331); +x_371 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; +x_372 = l_unreachable_x21___rarg(x_371); +lean_inc(x_2); +x_373 = lean_apply_2(x_372, x_2, x_328); +if (lean_obj_tag(x_373) == 0) { lean_object* x_374; lean_object* x_375; -lean_dec(x_282); -lean_dec(x_280); -lean_dec(x_216); -lean_dec(x_4); -lean_dec(x_1); -x_374 = lean_ctor_get(x_310, 0); +x_374 = lean_ctor_get(x_373, 0); lean_inc(x_374); -x_375 = lean_ctor_get(x_310, 1); +x_375 = lean_ctor_get(x_373, 1); lean_inc(x_375); -lean_dec(x_310); -x_267 = x_374; -x_268 = x_375; -goto block_277; -} -block_307: -{ -if (lean_obj_tag(x_283) == 0) -{ -lean_object* x_285; -lean_dec(x_282); -lean_dec(x_280); -lean_dec(x_4); -x_285 = lean_box(0); -x_228 = x_285; -x_229 = x_284; -goto block_266; -} -else -{ -lean_object* x_286; lean_object* x_287; -x_286 = lean_ctor_get(x_283, 0); -lean_inc(x_286); -lean_dec(x_283); -lean_inc(x_2); -x_287 = l_Lean_Elab_Command_addDecl(x_4, x_286, x_2, x_284); -if (lean_obj_tag(x_287) == 0) -{ -lean_object* x_288; uint8_t x_289; lean_object* x_290; lean_object* x_291; -x_288 = lean_ctor_get(x_287, 1); -lean_inc(x_288); -lean_dec(x_287); -x_289 = 0; -x_290 = lean_unsigned_to_nat(0u); -lean_inc(x_2); -lean_inc(x_280); -x_291 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_280, x_289, x_282, x_290, x_2, x_288); -if (lean_obj_tag(x_291) == 0) -{ -lean_object* x_292; lean_object* x_293; -x_292 = lean_ctor_get(x_291, 1); -lean_inc(x_292); -lean_dec(x_291); -lean_inc(x_2); -x_293 = l_Lean_Elab_Command_compileDecl(x_4, x_286, x_2, x_292); -lean_dec(x_286); -if (lean_obj_tag(x_293) == 0) -{ -lean_object* x_294; uint8_t x_295; lean_object* x_296; -x_294 = lean_ctor_get(x_293, 1); -lean_inc(x_294); -lean_dec(x_293); -x_295 = 1; -lean_inc(x_2); -x_296 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_280, x_295, x_282, x_290, x_2, x_294); -lean_dec(x_282); -lean_dec(x_4); -if (lean_obj_tag(x_296) == 0) -{ -lean_object* x_297; lean_object* x_298; -x_297 = lean_ctor_get(x_296, 0); -lean_inc(x_297); -x_298 = lean_ctor_get(x_296, 1); -lean_inc(x_298); -lean_dec(x_296); -x_228 = x_297; -x_229 = x_298; -goto block_266; -} -else -{ -lean_object* x_299; lean_object* x_300; -lean_dec(x_216); -x_299 = lean_ctor_get(x_296, 0); -lean_inc(x_299); -x_300 = lean_ctor_get(x_296, 1); -lean_inc(x_300); -lean_dec(x_296); -x_267 = x_299; -x_268 = x_300; -goto block_277; -} -} -else -{ -lean_object* x_301; lean_object* x_302; -lean_dec(x_282); -lean_dec(x_280); -lean_dec(x_216); -lean_dec(x_4); -x_301 = lean_ctor_get(x_293, 0); -lean_inc(x_301); -x_302 = lean_ctor_get(x_293, 1); -lean_inc(x_302); -lean_dec(x_293); -x_267 = x_301; -x_268 = x_302; -goto block_277; -} -} -else -{ -lean_object* x_303; lean_object* x_304; -lean_dec(x_286); -lean_dec(x_282); -lean_dec(x_280); -lean_dec(x_216); -lean_dec(x_4); -x_303 = lean_ctor_get(x_291, 0); -lean_inc(x_303); -x_304 = lean_ctor_get(x_291, 1); -lean_inc(x_304); -lean_dec(x_291); -x_267 = x_303; -x_268 = x_304; -goto block_277; -} -} -else -{ -lean_object* x_305; lean_object* x_306; -lean_dec(x_286); -lean_dec(x_282); -lean_dec(x_280); -lean_dec(x_216); -lean_dec(x_4); -x_305 = lean_ctor_get(x_287, 0); -lean_inc(x_305); -x_306 = lean_ctor_get(x_287, 1); -lean_inc(x_306); -lean_dec(x_287); -x_267 = x_305; -x_268 = x_306; -goto block_277; -} -} -} +lean_dec(x_373); +x_288 = x_374; +x_289 = x_375; +goto block_312; } else { lean_object* x_376; lean_object* x_377; -lean_dec(x_278); -lean_dec(x_216); +lean_dec(x_287); +lean_dec(x_285); +lean_dec(x_221); lean_dec(x_4); -lean_dec(x_1); -x_376 = lean_ctor_get(x_279, 0); +x_376 = lean_ctor_get(x_373, 0); lean_inc(x_376); -x_377 = lean_ctor_get(x_279, 1); +x_377 = lean_ctor_get(x_373, 1); lean_inc(x_377); -lean_dec(x_279); -x_267 = x_376; -x_268 = x_377; -goto block_277; +lean_dec(x_373); +x_272 = x_376; +x_273 = x_377; +goto block_282; } -block_266: -{ -lean_object* x_230; -lean_inc(x_2); -lean_inc(x_10); -x_230 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__2(x_10, x_2, x_229); -if (lean_obj_tag(x_230) == 0) -{ -lean_object* x_231; lean_object* x_232; -lean_dec(x_10); -x_231 = lean_ctor_get(x_230, 1); -lean_inc(x_231); -lean_dec(x_230); -lean_inc(x_2); -x_232 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_231); -if (lean_obj_tag(x_232) == 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_object* x_243; lean_object* x_244; -x_233 = lean_ctor_get(x_232, 0); -lean_inc(x_233); -x_234 = lean_ctor_get(x_232, 1); -lean_inc(x_234); -lean_dec(x_232); -x_235 = lean_ctor_get(x_233, 0); -lean_inc(x_235); -x_236 = lean_ctor_get(x_233, 1); -lean_inc(x_236); -x_237 = lean_ctor_get(x_233, 2); -lean_inc(x_237); -x_238 = lean_ctor_get(x_233, 3); -lean_inc(x_238); -x_239 = lean_ctor_get(x_233, 4); -lean_inc(x_239); -if (lean_is_exclusive(x_233)) { - lean_ctor_release(x_233, 0); - lean_ctor_release(x_233, 1); - lean_ctor_release(x_233, 2); - lean_ctor_release(x_233, 3); - lean_ctor_release(x_233, 4); - x_240 = x_233; -} else { - lean_dec_ref(x_233); - x_240 = lean_box(0); -} -x_241 = l_Lean_Name_getNumParts___main(x_216); -lean_dec(x_216); -x_242 = l_List_drop___main___rarg(x_241, x_237); -lean_dec(x_237); -if (lean_is_scalar(x_240)) { - x_243 = lean_alloc_ctor(0, 5, 0); -} else { - x_243 = x_240; -} -lean_ctor_set(x_243, 0, x_235); -lean_ctor_set(x_243, 1, x_236); -lean_ctor_set(x_243, 2, x_242); -lean_ctor_set(x_243, 3, x_238); -lean_ctor_set(x_243, 4, x_239); -x_244 = l___private_Init_Lean_Elab_Command_3__setState(x_243, x_2, x_234); -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_244, 1); -lean_inc(x_245); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_246 = x_244; -} else { - lean_dec_ref(x_244); - x_246 = lean_box(0); -} -if (lean_is_scalar(x_246)) { - x_247 = lean_alloc_ctor(0, 2, 0); -} else { - x_247 = x_246; -} -lean_ctor_set(x_247, 0, x_228); -lean_ctor_set(x_247, 1, x_245); -return x_247; -} -else -{ -lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; -lean_dec(x_228); -x_248 = lean_ctor_get(x_244, 0); -lean_inc(x_248); -x_249 = lean_ctor_get(x_244, 1); -lean_inc(x_249); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_250 = x_244; -} else { - lean_dec_ref(x_244); - x_250 = lean_box(0); -} -if (lean_is_scalar(x_250)) { - x_251 = lean_alloc_ctor(1, 2, 0); -} else { - x_251 = x_250; -} -lean_ctor_set(x_251, 0, x_248); -lean_ctor_set(x_251, 1, x_249); -return x_251; -} -} -else -{ -lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; -lean_dec(x_228); -lean_dec(x_216); -lean_dec(x_2); -x_252 = lean_ctor_get(x_232, 0); -lean_inc(x_252); -x_253 = lean_ctor_get(x_232, 1); -lean_inc(x_253); -if (lean_is_exclusive(x_232)) { - lean_ctor_release(x_232, 0); - lean_ctor_release(x_232, 1); - x_254 = x_232; -} else { - lean_dec_ref(x_232); - x_254 = lean_box(0); -} -if (lean_is_scalar(x_254)) { - x_255 = lean_alloc_ctor(1, 2, 0); -} else { - x_255 = x_254; -} -lean_ctor_set(x_255, 0, x_252); -lean_ctor_set(x_255, 1, x_253); -return x_255; -} -} -else -{ -lean_object* x_256; lean_object* x_257; lean_object* x_258; -lean_dec(x_228); -lean_dec(x_216); -x_256 = lean_ctor_get(x_230, 0); -lean_inc(x_256); -x_257 = lean_ctor_get(x_230, 1); -lean_inc(x_257); -lean_dec(x_230); -x_258 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__3(x_10, x_2, x_257); -if (lean_obj_tag(x_258) == 0) -{ -lean_object* x_259; lean_object* x_260; lean_object* x_261; -x_259 = lean_ctor_get(x_258, 1); -lean_inc(x_259); -if (lean_is_exclusive(x_258)) { - lean_ctor_release(x_258, 0); - lean_ctor_release(x_258, 1); - x_260 = x_258; -} else { - lean_dec_ref(x_258); - x_260 = lean_box(0); -} -if (lean_is_scalar(x_260)) { - x_261 = lean_alloc_ctor(1, 2, 0); -} else { - x_261 = x_260; - lean_ctor_set_tag(x_261, 1); -} -lean_ctor_set(x_261, 0, x_256); -lean_ctor_set(x_261, 1, x_259); -return x_261; -} -else -{ -lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; -lean_dec(x_256); -x_262 = lean_ctor_get(x_258, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_258, 1); -lean_inc(x_263); -if (lean_is_exclusive(x_258)) { - lean_ctor_release(x_258, 0); - lean_ctor_release(x_258, 1); - x_264 = x_258; -} else { - lean_dec_ref(x_258); - x_264 = lean_box(0); -} -if (lean_is_scalar(x_264)) { - x_265 = lean_alloc_ctor(1, 2, 0); -} else { - x_265 = x_264; -} -lean_ctor_set(x_265, 0, x_262); -lean_ctor_set(x_265, 1, x_263); -return x_265; -} -} -} -block_277: -{ -lean_object* x_269; -x_269 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__4(x_10, x_2, x_268); -if (lean_obj_tag(x_269) == 0) -{ -lean_object* x_270; lean_object* x_271; lean_object* x_272; -x_270 = lean_ctor_get(x_269, 1); -lean_inc(x_270); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - x_271 = x_269; -} else { - lean_dec_ref(x_269); - x_271 = lean_box(0); -} -if (lean_is_scalar(x_271)) { - x_272 = lean_alloc_ctor(1, 2, 0); -} else { - x_272 = x_271; - lean_ctor_set_tag(x_272, 1); -} -lean_ctor_set(x_272, 0, x_267); -lean_ctor_set(x_272, 1, x_270); -return x_272; -} -else -{ -lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; -lean_dec(x_267); -x_273 = lean_ctor_get(x_269, 0); -lean_inc(x_273); -x_274 = lean_ctor_get(x_269, 1); -lean_inc(x_274); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - x_275 = x_269; -} else { - lean_dec_ref(x_269); - x_275 = lean_box(0); -} -if (lean_is_scalar(x_275)) { - x_276 = lean_alloc_ctor(1, 2, 0); -} else { - x_276 = x_275; -} -lean_ctor_set(x_276, 0, x_273); -lean_ctor_set(x_276, 1, x_274); -return x_276; } } } else { -lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; +lean_object* x_378; lean_object* x_379; +lean_dec(x_325); +lean_dec(x_321); +lean_dec(x_320); +lean_dec(x_287); +lean_dec(x_285); lean_dec(x_221); -lean_dec(x_216); -lean_dec(x_10); lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_378 = lean_ctor_get(x_226, 0); +x_378 = lean_ctor_get(x_326, 0); lean_inc(x_378); -x_379 = lean_ctor_get(x_226, 1); +x_379 = lean_ctor_get(x_326, 1); lean_inc(x_379); -if (lean_is_exclusive(x_226)) { - lean_ctor_release(x_226, 0); - lean_ctor_release(x_226, 1); - x_380 = x_226; -} else { - lean_dec_ref(x_226); - x_380 = lean_box(0); -} -if (lean_is_scalar(x_380)) { - x_381 = lean_alloc_ctor(1, 2, 0); -} else { - x_381 = x_380; -} -lean_ctor_set(x_381, 0, x_378); -lean_ctor_set(x_381, 1, x_379); -return x_381; +lean_dec(x_326); +x_272 = x_378; +x_273 = x_379; +goto block_282; } } else { -lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; +lean_object* x_380; lean_object* x_381; +lean_dec(x_321); +lean_dec(x_320); +lean_dec(x_287); +lean_dec(x_285); +lean_dec(x_221); +lean_dec(x_4); +x_380 = lean_ctor_get(x_322, 0); +lean_inc(x_380); +x_381 = lean_ctor_get(x_322, 1); +lean_inc(x_381); +lean_dec(x_322); +x_272 = x_380; +x_273 = x_381; +goto block_282; +} +} +else +{ +lean_object* x_382; lean_object* x_383; +lean_dec(x_287); +lean_dec(x_285); lean_dec(x_221); -lean_dec(x_216); -lean_dec(x_12); -lean_dec(x_10); lean_dec(x_4); -lean_dec(x_2); lean_dec(x_1); -x_382 = lean_ctor_get(x_224, 0); +x_382 = lean_ctor_get(x_317, 0); lean_inc(x_382); -x_383 = lean_ctor_get(x_224, 1); +x_383 = lean_ctor_get(x_317, 1); lean_inc(x_383); -if (lean_is_exclusive(x_224)) { - lean_ctor_release(x_224, 0); - lean_ctor_release(x_224, 1); - x_384 = x_224; -} else { - lean_dec_ref(x_224); - x_384 = lean_box(0); +lean_dec(x_317); +x_272 = x_382; +x_273 = x_383; +goto block_282; } -if (lean_is_scalar(x_384)) { - x_385 = lean_alloc_ctor(1, 2, 0); -} else { - x_385 = x_384; } -lean_ctor_set(x_385, 0, x_382); -lean_ctor_set(x_385, 1, x_383); -return x_385; +else +{ +lean_object* x_384; lean_object* x_385; +lean_dec(x_287); +lean_dec(x_285); +lean_dec(x_221); +lean_dec(x_4); +lean_dec(x_1); +x_384 = lean_ctor_get(x_315, 0); +lean_inc(x_384); +x_385 = lean_ctor_get(x_315, 1); +lean_inc(x_385); +lean_dec(x_315); +x_272 = x_384; +x_273 = x_385; +goto block_282; +} +block_312: +{ +if (lean_obj_tag(x_288) == 0) +{ +lean_object* x_290; +lean_dec(x_287); +lean_dec(x_285); +lean_dec(x_4); +x_290 = lean_box(0); +x_233 = x_290; +x_234 = x_289; +goto block_271; +} +else +{ +lean_object* x_291; lean_object* x_292; +x_291 = lean_ctor_get(x_288, 0); +lean_inc(x_291); +lean_dec(x_288); +lean_inc(x_2); +x_292 = l_Lean_Elab_Command_addDecl(x_4, x_291, x_2, x_289); +if (lean_obj_tag(x_292) == 0) +{ +lean_object* x_293; uint8_t x_294; lean_object* x_295; lean_object* x_296; +x_293 = lean_ctor_get(x_292, 1); +lean_inc(x_293); +lean_dec(x_292); +x_294 = 0; +x_295 = lean_unsigned_to_nat(0u); +lean_inc(x_2); +lean_inc(x_285); +x_296 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_285, x_294, x_287, x_295, x_2, x_293); +if (lean_obj_tag(x_296) == 0) +{ +lean_object* x_297; lean_object* x_298; +x_297 = lean_ctor_get(x_296, 1); +lean_inc(x_297); +lean_dec(x_296); +lean_inc(x_2); +x_298 = l_Lean_Elab_Command_compileDecl(x_4, x_291, x_2, x_297); +lean_dec(x_291); +if (lean_obj_tag(x_298) == 0) +{ +lean_object* x_299; uint8_t x_300; lean_object* x_301; +x_299 = lean_ctor_get(x_298, 1); +lean_inc(x_299); +lean_dec(x_298); +x_300 = 1; +lean_inc(x_2); +x_301 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_285, x_300, x_287, x_295, x_2, x_299); +lean_dec(x_287); +lean_dec(x_4); +if (lean_obj_tag(x_301) == 0) +{ +lean_object* x_302; lean_object* x_303; +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_233 = x_302; +x_234 = x_303; +goto block_271; +} +else +{ +lean_object* x_304; lean_object* x_305; +lean_dec(x_221); +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); +x_272 = x_304; +x_273 = x_305; +goto block_282; +} +} +else +{ +lean_object* x_306; lean_object* x_307; +lean_dec(x_287); +lean_dec(x_285); +lean_dec(x_221); +lean_dec(x_4); +x_306 = lean_ctor_get(x_298, 0); +lean_inc(x_306); +x_307 = lean_ctor_get(x_298, 1); +lean_inc(x_307); +lean_dec(x_298); +x_272 = x_306; +x_273 = x_307; +goto block_282; +} +} +else +{ +lean_object* x_308; lean_object* x_309; +lean_dec(x_291); +lean_dec(x_287); +lean_dec(x_285); +lean_dec(x_221); +lean_dec(x_4); +x_308 = lean_ctor_get(x_296, 0); +lean_inc(x_308); +x_309 = lean_ctor_get(x_296, 1); +lean_inc(x_309); +lean_dec(x_296); +x_272 = x_308; +x_273 = x_309; +goto block_282; +} +} +else +{ +lean_object* x_310; lean_object* x_311; +lean_dec(x_291); +lean_dec(x_287); +lean_dec(x_285); +lean_dec(x_221); +lean_dec(x_4); +x_310 = lean_ctor_get(x_292, 0); +lean_inc(x_310); +x_311 = lean_ctor_get(x_292, 1); +lean_inc(x_311); +lean_dec(x_292); +x_272 = x_310; +x_273 = x_311; +goto block_282; +} } } } else { lean_object* x_386; lean_object* x_387; +lean_dec(x_283); +lean_dec(x_221); +lean_dec(x_4); +lean_dec(x_1); +x_386 = lean_ctor_get(x_284, 0); +lean_inc(x_386); +x_387 = lean_ctor_get(x_284, 1); +lean_inc(x_387); +lean_dec(x_284); +x_272 = x_386; +x_273 = x_387; +goto block_282; +} +block_271: +{ +lean_object* x_235; +lean_inc(x_2); +lean_inc(x_10); +x_235 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__2(x_10, x_2, x_234); +if (lean_obj_tag(x_235) == 0) +{ +lean_object* x_236; lean_object* x_237; +lean_dec(x_10); +x_236 = lean_ctor_get(x_235, 1); +lean_inc(x_236); +lean_dec(x_235); +lean_inc(x_2); +x_237 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_236); +if (lean_obj_tag(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_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +x_238 = lean_ctor_get(x_237, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_237, 1); +lean_inc(x_239); +lean_dec(x_237); +x_240 = lean_ctor_get(x_238, 0); +lean_inc(x_240); +x_241 = lean_ctor_get(x_238, 1); +lean_inc(x_241); +x_242 = lean_ctor_get(x_238, 2); +lean_inc(x_242); +x_243 = lean_ctor_get(x_238, 3); +lean_inc(x_243); +x_244 = lean_ctor_get(x_238, 4); +lean_inc(x_244); +if (lean_is_exclusive(x_238)) { + lean_ctor_release(x_238, 0); + lean_ctor_release(x_238, 1); + lean_ctor_release(x_238, 2); + lean_ctor_release(x_238, 3); + lean_ctor_release(x_238, 4); + x_245 = x_238; +} else { + lean_dec_ref(x_238); + x_245 = lean_box(0); +} +x_246 = l_Lean_Name_getNumParts___main(x_221); +lean_dec(x_221); +x_247 = l_List_drop___main___rarg(x_246, x_242); +lean_dec(x_242); +if (lean_is_scalar(x_245)) { + x_248 = lean_alloc_ctor(0, 5, 0); +} else { + x_248 = x_245; +} +lean_ctor_set(x_248, 0, x_240); +lean_ctor_set(x_248, 1, x_241); +lean_ctor_set(x_248, 2, x_247); +lean_ctor_set(x_248, 3, x_243); +lean_ctor_set(x_248, 4, x_244); +x_249 = l___private_Init_Lean_Elab_Command_3__setState(x_248, x_2, x_239); +if (lean_obj_tag(x_249) == 0) +{ +lean_object* x_250; lean_object* x_251; lean_object* x_252; +x_250 = lean_ctor_get(x_249, 1); +lean_inc(x_250); +if (lean_is_exclusive(x_249)) { + lean_ctor_release(x_249, 0); + lean_ctor_release(x_249, 1); + x_251 = x_249; +} else { + lean_dec_ref(x_249); + x_251 = lean_box(0); +} +if (lean_is_scalar(x_251)) { + x_252 = lean_alloc_ctor(0, 2, 0); +} else { + x_252 = x_251; +} +lean_ctor_set(x_252, 0, x_233); +lean_ctor_set(x_252, 1, x_250); +return x_252; +} +else +{ +lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; +lean_dec(x_233); +x_253 = lean_ctor_get(x_249, 0); +lean_inc(x_253); +x_254 = lean_ctor_get(x_249, 1); +lean_inc(x_254); +if (lean_is_exclusive(x_249)) { + lean_ctor_release(x_249, 0); + lean_ctor_release(x_249, 1); + x_255 = x_249; +} else { + lean_dec_ref(x_249); + x_255 = lean_box(0); +} +if (lean_is_scalar(x_255)) { + x_256 = lean_alloc_ctor(1, 2, 0); +} else { + x_256 = x_255; +} +lean_ctor_set(x_256, 0, x_253); +lean_ctor_set(x_256, 1, x_254); +return x_256; +} +} +else +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; +lean_dec(x_233); +lean_dec(x_221); +lean_dec(x_2); +x_257 = lean_ctor_get(x_237, 0); +lean_inc(x_257); +x_258 = lean_ctor_get(x_237, 1); +lean_inc(x_258); +if (lean_is_exclusive(x_237)) { + lean_ctor_release(x_237, 0); + lean_ctor_release(x_237, 1); + x_259 = x_237; +} else { + lean_dec_ref(x_237); + x_259 = lean_box(0); +} +if (lean_is_scalar(x_259)) { + x_260 = lean_alloc_ctor(1, 2, 0); +} else { + x_260 = x_259; +} +lean_ctor_set(x_260, 0, x_257); +lean_ctor_set(x_260, 1, x_258); +return x_260; +} +} +else +{ +lean_object* x_261; lean_object* x_262; lean_object* x_263; +lean_dec(x_233); +lean_dec(x_221); +x_261 = lean_ctor_get(x_235, 0); +lean_inc(x_261); +x_262 = lean_ctor_get(x_235, 1); +lean_inc(x_262); +lean_dec(x_235); +x_263 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__3(x_10, x_2, x_262); +if (lean_obj_tag(x_263) == 0) +{ +lean_object* x_264; lean_object* x_265; lean_object* x_266; +x_264 = lean_ctor_get(x_263, 1); +lean_inc(x_264); +if (lean_is_exclusive(x_263)) { + lean_ctor_release(x_263, 0); + lean_ctor_release(x_263, 1); + x_265 = x_263; +} else { + lean_dec_ref(x_263); + x_265 = lean_box(0); +} +if (lean_is_scalar(x_265)) { + x_266 = lean_alloc_ctor(1, 2, 0); +} else { + x_266 = x_265; + lean_ctor_set_tag(x_266, 1); +} +lean_ctor_set(x_266, 0, x_261); +lean_ctor_set(x_266, 1, x_264); +return x_266; +} +else +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; +lean_dec(x_261); +x_267 = lean_ctor_get(x_263, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_263, 1); +lean_inc(x_268); +if (lean_is_exclusive(x_263)) { + lean_ctor_release(x_263, 0); + lean_ctor_release(x_263, 1); + x_269 = x_263; +} else { + lean_dec_ref(x_263); + x_269 = lean_box(0); +} +if (lean_is_scalar(x_269)) { + x_270 = lean_alloc_ctor(1, 2, 0); +} else { + x_270 = x_269; +} +lean_ctor_set(x_270, 0, x_267); +lean_ctor_set(x_270, 1, x_268); +return x_270; +} +} +} +block_282: +{ +lean_object* x_274; +x_274 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__4(x_10, x_2, x_273); +if (lean_obj_tag(x_274) == 0) +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; +x_275 = lean_ctor_get(x_274, 1); +lean_inc(x_275); +if (lean_is_exclusive(x_274)) { + lean_ctor_release(x_274, 0); + lean_ctor_release(x_274, 1); + x_276 = x_274; +} else { + lean_dec_ref(x_274); + x_276 = lean_box(0); +} +if (lean_is_scalar(x_276)) { + x_277 = lean_alloc_ctor(1, 2, 0); +} else { + x_277 = x_276; + lean_ctor_set_tag(x_277, 1); +} +lean_ctor_set(x_277, 0, x_272); +lean_ctor_set(x_277, 1, x_275); +return x_277; +} +else +{ +lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; +lean_dec(x_272); +x_278 = lean_ctor_get(x_274, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_274, 1); +lean_inc(x_279); +if (lean_is_exclusive(x_274)) { + lean_ctor_release(x_274, 0); + lean_ctor_release(x_274, 1); + x_280 = x_274; +} else { + lean_dec_ref(x_274); + x_280 = lean_box(0); +} +if (lean_is_scalar(x_280)) { + x_281 = lean_alloc_ctor(1, 2, 0); +} else { + x_281 = x_280; +} +lean_ctor_set(x_281, 0, x_278); +lean_ctor_set(x_281, 1, x_279); +return x_281; +} +} +} +else +{ +lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; +lean_dec(x_226); +lean_dec(x_221); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_388 = lean_ctor_get(x_231, 0); +lean_inc(x_388); +x_389 = lean_ctor_get(x_231, 1); +lean_inc(x_389); +if (lean_is_exclusive(x_231)) { + lean_ctor_release(x_231, 0); + lean_ctor_release(x_231, 1); + x_390 = x_231; +} else { + lean_dec_ref(x_231); + x_390 = lean_box(0); +} +if (lean_is_scalar(x_390)) { + x_391 = lean_alloc_ctor(1, 2, 0); +} else { + x_391 = x_390; +} +lean_ctor_set(x_391, 0, x_388); +lean_ctor_set(x_391, 1, x_389); +return x_391; +} +} +else +{ +lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; +lean_dec(x_226); +lean_dec(x_221); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_392 = lean_ctor_get(x_229, 0); +lean_inc(x_392); +x_393 = lean_ctor_get(x_229, 1); +lean_inc(x_393); +if (lean_is_exclusive(x_229)) { + lean_ctor_release(x_229, 0); + lean_ctor_release(x_229, 1); + x_394 = x_229; +} else { + lean_dec_ref(x_229); + x_394 = lean_box(0); +} +if (lean_is_scalar(x_394)) { + x_395 = lean_alloc_ctor(1, 2, 0); +} else { + x_395 = x_394; +} +lean_ctor_set(x_395, 0, x_392); +lean_ctor_set(x_395, 1, x_393); +return x_395; +} +} +} +else +{ +lean_object* x_396; lean_object* x_397; lean_dec(x_15); lean_dec(x_14); lean_dec(x_12); lean_dec(x_10); lean_dec(x_4); lean_dec(x_1); -x_386 = l_Lean_Elab_Command_withDeclId___closed__3; -x_387 = l_Lean_Elab_Command_throwError___rarg(x_5, x_386, x_2, x_13); +x_396 = l_Lean_Elab_Command_withDeclId___closed__3; +x_397 = l_Lean_Elab_Command_throwError___rarg(x_5, x_396, x_2, x_13); lean_dec(x_5); -return x_387; +return x_397; } } } else { -uint8_t x_404; +uint8_t x_414; lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_404 = !lean_is_exclusive(x_9); -if (x_404 == 0) +x_414 = !lean_is_exclusive(x_9); +if (x_414 == 0) { return x_9; } else { -lean_object* x_405; lean_object* x_406; lean_object* x_407; -x_405 = lean_ctor_get(x_9, 0); -x_406 = lean_ctor_get(x_9, 1); -lean_inc(x_406); -lean_inc(x_405); +lean_object* x_415; lean_object* x_416; lean_object* x_417; +x_415 = lean_ctor_get(x_9, 0); +x_416 = lean_ctor_get(x_9, 1); +lean_inc(x_416); +lean_inc(x_415); lean_dec(x_9); -x_407 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_407, 0, x_405); -lean_ctor_set(x_407, 1, x_406); -return x_407; +x_417 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_417, 0, x_415); +lean_ctor_set(x_417, 1, x_416); +return x_417; } } } diff --git a/stage0/stdlib/Init/Lean/Elab/DoNotation.c b/stage0/stdlib/Init/Lean/Elab/DoNotation.c index 8d79b7f6ba..bd17d81dc0 100644 --- a/stage0/stdlib/Init/Lean/Elab/DoNotation.c +++ b/stage0/stdlib/Init/Lean/Elab/DoNotation.c @@ -47,6 +47,7 @@ lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); uint8_t l___private_Init_Lean_Elab_DoNotation_4__hasLiftMethod(lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; extern lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; lean_object* l_Lean_Elab_Term_synthesizeInst(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_3__getDoElems___boxed(lean_object*); @@ -76,7 +77,6 @@ lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElems(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6; -extern lean_object* l_Lean_Elab_Term_elabLetDecl___closed__4; extern lean_object* l_Lean_Parser_Term_doId___elambda__1___closed__2; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___closed__6; @@ -120,6 +120,7 @@ lean_object* l___private_Init_Lean_Elab_DoNotation_10__mkBind(lean_object*, lean extern lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__7; lean_object* lean_environment_main_module(lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); +extern lean_object* l_Lean_Elab_Term_elabLetDecl___closed__2; extern lean_object* l_Lean_Parser_Term_match___elambda__1___closed__2; lean_object* l_Lean_mkApp(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; @@ -162,7 +163,6 @@ lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main_ lean_object* l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3; lean_object* l_unsafeCast(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*); -extern lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__1; lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); @@ -2112,7 +2112,7 @@ x_82 = lean_box(0); x_83 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_84 = l_Lean_addMacroScope(x_81, x_83, x_80); x_85 = lean_box(0); -x_86 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_86 = l_Lean_Elab_Term_elabLetDecl___closed__2; x_87 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_87, 0, x_82); lean_ctor_set(x_87, 1, x_86); @@ -2218,7 +2218,7 @@ lean_dec(x_121); x_146 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_147 = l_Lean_addMacroScope(x_128, x_146, x_60); x_148 = lean_box(0); -x_149 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_149 = l_Lean_Elab_Term_elabLetDecl___closed__2; x_150 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_150, 0, x_129); lean_ctor_set(x_150, 1, x_149); @@ -2306,7 +2306,7 @@ lean_dec(x_121); x_199 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_200 = l_Lean_addMacroScope(x_128, x_199, x_60); x_201 = lean_box(0); -x_202 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_202 = l_Lean_Elab_Term_elabLetDecl___closed__2; x_203 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_203, 0, x_129); lean_ctor_set(x_203, 1, x_202); @@ -2402,7 +2402,7 @@ x_253 = lean_box(0); x_254 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_255 = l_Lean_addMacroScope(x_250, x_254, x_60); x_256 = lean_box(0); -x_257 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_257 = l_Lean_Elab_Term_elabLetDecl___closed__2; x_258 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_258, 0, x_253); lean_ctor_set(x_258, 1, x_257); @@ -2495,7 +2495,7 @@ x_311 = lean_box(0); x_312 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_313 = l_Lean_addMacroScope(x_250, x_312, x_60); x_314 = lean_box(0); -x_315 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_315 = l_Lean_Elab_Term_elabLetDecl___closed__2; x_316 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_316, 0, x_311); lean_ctor_set(x_316, 1, x_315); @@ -2805,7 +2805,7 @@ x_463 = lean_box(0); x_464 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_465 = l_Lean_addMacroScope(x_462, x_464, x_461); x_466 = lean_box(0); -x_467 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_467 = l_Lean_Elab_Term_elabLetDecl___closed__2; x_468 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_468, 0, x_463); lean_ctor_set(x_468, 1, x_467); @@ -2911,7 +2911,7 @@ lean_dec(x_502); x_527 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_528 = l_Lean_addMacroScope(x_509, x_527, x_442); x_529 = lean_box(0); -x_530 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_530 = l_Lean_Elab_Term_elabLetDecl___closed__2; x_531 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_531, 0, x_510); lean_ctor_set(x_531, 1, x_530); @@ -2999,7 +2999,7 @@ lean_dec(x_502); x_580 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_581 = l_Lean_addMacroScope(x_509, x_580, x_442); x_582 = lean_box(0); -x_583 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_583 = l_Lean_Elab_Term_elabLetDecl___closed__2; x_584 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_584, 0, x_510); lean_ctor_set(x_584, 1, x_583); @@ -3095,7 +3095,7 @@ x_634 = lean_box(0); x_635 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_636 = l_Lean_addMacroScope(x_631, x_635, x_442); x_637 = lean_box(0); -x_638 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_638 = l_Lean_Elab_Term_elabLetDecl___closed__2; x_639 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_639, 0, x_634); lean_ctor_set(x_639, 1, x_638); @@ -3188,7 +3188,7 @@ x_692 = lean_box(0); x_693 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_694 = l_Lean_addMacroScope(x_631, x_693, x_442); x_695 = lean_box(0); -x_696 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_696 = l_Lean_Elab_Term_elabLetDecl___closed__2; x_697 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_697, 0, x_692); lean_ctor_set(x_697, 1, x_696); @@ -4991,7 +4991,7 @@ lean_object* _init_l_Lean_Elab_Term_elabDo___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +x_1 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; x_2 = l_Lean_Parser_Term_do___elambda__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; diff --git a/stage0/stdlib/Init/Lean/Elab/Frontend.c b/stage0/stdlib/Init/Lean/Elab/Frontend.c index c7db0da495..c2fd11a59f 100644 --- a/stage0/stdlib/Init/Lean/Elab/Frontend.c +++ b/stage0/stdlib/Init/Lean/Elab/Frontend.c @@ -23,7 +23,6 @@ lean_object* l_Lean_Elab_IO_processCommands(lean_object*, lean_object*, lean_obj lean_object* l_Lean_Elab_runFrontend(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Frontend_processCommandsAux___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Frontend_liftIOCore_x21(lean_object*); -extern lean_object* l_Lean_Elab_Command_runTermElabM___rarg___closed__1; lean_object* lean_io_mk_ref(lean_object*, lean_object*); lean_object* lean_io_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Elab_Frontend_runCommandElabM___closed__1; @@ -77,6 +76,7 @@ uint8_t l_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_obj extern lean_object* l_Nat_Inhabited; lean_object* l_Lean_Elab_Frontend_getParserState___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_process(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; lean_object* l_Lean_Elab_Frontend_processCommands___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Command_3__setState(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Frontend_processCommands(lean_object*, lean_object*); @@ -597,7 +597,7 @@ lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; x_65 = lean_ctor_get(x_16, 1); lean_inc(x_65); lean_dec(x_16); -x_66 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; +x_66 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; x_67 = l_unreachable_x21___rarg(x_66); x_68 = lean_apply_2(x_67, x_15, x_65); if (lean_obj_tag(x_68) == 0) @@ -905,7 +905,7 @@ lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; x_142 = lean_ctor_get(x_93, 1); lean_inc(x_142); lean_dec(x_93); -x_143 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; +x_143 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; x_144 = l_unreachable_x21___rarg(x_143); x_145 = lean_apply_2(x_144, x_92, x_142); if (lean_obj_tag(x_145) == 0) diff --git a/stage0/stdlib/Init/Lean/Elab/Quotation.c b/stage0/stdlib/Init/Lean/Elab/Quotation.c index 78164f5fc5..bd07639d80 100644 --- a/stage0/stdlib/Init/Lean/Elab/Quotation.c +++ b/stage0/stdlib/Init/Lean/Elab/Quotation.c @@ -201,6 +201,7 @@ extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkMData(lean_object*, lean_object*); extern uint8_t l___private_Init_Lean_Elab_Term_11__isExplicit___closed__1; +extern lean_object* l_Lean_Elab_evalSyntaxConstant___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__19; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_14__oldRunTermElabM___rarg___closed__3; @@ -240,7 +241,6 @@ lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compi extern lean_object* l_Lean_Parser_Term_band___elambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__36; extern lean_object* l_Lean_numLitKind; -extern lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder___closed__1; extern lean_object* l_Lean_choiceKind___closed__1; @@ -336,7 +336,6 @@ lean_object* l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toP lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; extern lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__1; -lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; lean_object* l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__6___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__6; extern lean_object* l_Lean_Options_empty; @@ -356,6 +355,7 @@ extern lean_object* l_Lean_firstFrontendMacroScope; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__5; extern lean_object* l_Lean_Parser_Term_beq___elambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; lean_object* l_Lean_FileMap_ofString(lean_object*); extern lean_object* l_Lean_Parser_Term_let___elambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_Quotation_elabMatchSyntax(lean_object*); @@ -517,6 +517,7 @@ extern lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__4; lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__4; extern lean_object* l_Lean_mkHole___closed__2; lean_object* l___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___main___boxed(lean_object*); +extern lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__7; lean_object* l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__5(lean_object*, lean_object*, lean_object*); @@ -576,7 +577,6 @@ extern lean_object* l___private_Init_Lean_Elab_Term_8__exceptionToSorry___closed lean_object* l_Lean_Prod_hasQuote(lean_object*, lean_object*); lean_object* l_Lean_Message_toString(lean_object*); lean_object* l_Lean_Elab_Term_Quotation_antiquotKind_x3f(lean_object*); -extern lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__5; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteOption___rarg___closed__2; extern lean_object* l_Lean_mkAppStx___closed__2; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; @@ -2179,8 +2179,8 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__2; -x_2 = l_Lean_Parser_Syntax_paren___elambda__1___closed__1; +x_1 = l_Lean_Elab_evalSyntaxConstant___closed__1; +x_2 = l_Lean_Meta_DiscrTree_Trie_format___main___rarg___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -2189,9 +2189,11 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__16; -x_2 = l_Lean_Meta_DiscrTree_Trie_format___main___rarg___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__16; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } @@ -2201,7 +2203,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__17; -x_3 = lean_alloc_ctor(0, 2, 0); +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; @@ -2210,21 +2212,19 @@ return x_3; lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__19() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__18; -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* x_1; +x_1 = lean_mk_string("unexpected antiquotation splice"); +return x_1; } } lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__20() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("unexpected antiquotation splice"); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__19; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__21() { @@ -2232,7 +2232,7 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__20; -x_2 = lean_alloc_ctor(2, 1, 0); +x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } @@ -2240,37 +2240,27 @@ return x_2; lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__22() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__21; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__23() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("Syntax.atom"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__23() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__23; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__22; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__23; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__22; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24; +x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__23; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2278,7 +2268,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__26() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2288,13 +2278,25 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__26() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_evalSyntaxConstant___closed__1; +x_2 = l_Lean_Parser_Syntax_atom___elambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__16; -x_2 = l_Lean_Parser_Syntax_atom___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__26; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } @@ -2304,7 +2306,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__27; -x_3 = lean_alloc_ctor(0, 2, 0); +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; @@ -2313,31 +2315,19 @@ return x_3; lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__29() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__28; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30() { -_start: -{ lean_object* x_1; lean_object* x_2; x_1 = l_Option_HasRepr___rarg___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Option_HasRepr___rarg___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; +x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__29; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2345,7 +2335,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2355,7 +2345,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2367,19 +2357,19 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__34() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__35() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__34() { _start: { lean_object* x_1; @@ -2387,22 +2377,22 @@ x_1 = lean_mk_string("Syntax.ident"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__36() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__35() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__35; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__34; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__37() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__36() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__35; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__34; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__36; +x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__35; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2410,7 +2400,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__37() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2420,13 +2410,25 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_evalSyntaxConstant___closed__1; +x_2 = l_Lean_identKind___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__39() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__16; -x_2 = l_Lean_identKind___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } @@ -2436,25 +2438,13 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__39; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__41() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__40; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__41() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2466,17 +2456,17 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_empty___closed__1; -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__41; x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__44() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43() { _start: { lean_object* x_1; @@ -2484,22 +2474,22 @@ x_1 = lean_mk_string("addMacroScope"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__45() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__44() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__44; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__45() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__44; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__45; +x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__44; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2507,12 +2497,22 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__47() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__44; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__47() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkAppStx___closed__2; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -2521,9 +2521,11 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__2; -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__44; -x_3 = lean_name_mk_string(x_1, x_2); +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__47; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } @@ -2533,7 +2535,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__48; -x_3 = lean_alloc_ctor(0, 2, 0); +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; @@ -2542,39 +2544,27 @@ return x_3; lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__50() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__49; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__51() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("mainModule"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__52() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__51() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__51; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__50; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__52() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__51; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__50; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__52; +x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__51; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2582,17 +2572,17 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__54() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__51; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__50; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__55() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__54() { _start: { lean_object* x_1; @@ -2600,22 +2590,22 @@ x_1 = lean_mk_string("scp"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__56() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__55() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__55; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__54; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__56() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__55; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__54; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__56; +x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__55; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2623,17 +2613,17 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__55; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__54; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2737,7 +2727,7 @@ x_43 = lean_ctor_get(x_41, 0); x_44 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__15; x_45 = l_Lean_addMacroScope(x_43, x_44, x_39); x_46 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__13; -x_47 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__19; +x_47 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__18; x_48 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_48, 0, x_19); lean_ctor_set(x_48, 1, x_46); @@ -2774,7 +2764,7 @@ lean_dec(x_41); x_62 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__15; x_63 = l_Lean_addMacroScope(x_60, x_62, x_39); x_64 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__13; -x_65 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__19; +x_65 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__18; x_66 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_66, 0, x_19); lean_ctor_set(x_66, 1, x_64); @@ -2901,7 +2891,7 @@ if (lean_is_exclusive(x_112)) { x_116 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__15; x_117 = l_Lean_addMacroScope(x_113, x_116, x_110); x_118 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__13; -x_119 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__19; +x_119 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__18; x_120 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_120, 0, x_89); lean_ctor_set(x_120, 1, x_118); @@ -2982,7 +2972,7 @@ return x_140; else { lean_object* x_141; lean_object* x_142; -x_141 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__22; +x_141 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__21; x_142 = l_Lean_Elab_Term_throwError___rarg(x_1, x_141, x_2, x_3); lean_dec(x_1); return x_142; @@ -3013,12 +3003,12 @@ if (x_150 == 0) lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; x_151 = lean_ctor_get(x_149, 0); x_152 = lean_box(0); -x_153 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__26; +x_153 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25; lean_inc(x_147); lean_inc(x_151); x_154 = l_Lean_addMacroScope(x_151, x_153, x_147); -x_155 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25; -x_156 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__29; +x_155 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24; +x_156 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__28; x_157 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_157, 0, x_152); lean_ctor_set(x_157, 1, x_155); @@ -3033,10 +3023,10 @@ lean_ctor_set_tag(x_1, 1); lean_ctor_set(x_1, 1, x_161); lean_ctor_set(x_1, 0, x_162); x_163 = lean_array_push(x_158, x_1); -x_164 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_164 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; x_165 = l_Lean_addMacroScope(x_151, x_164, x_147); -x_166 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; -x_167 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__34; +x_166 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; +x_167 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; x_168 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_168, 0, x_152); lean_ctor_set(x_168, 1, x_166); @@ -3077,12 +3067,12 @@ lean_inc(x_185); lean_inc(x_184); lean_dec(x_149); x_186 = lean_box(0); -x_187 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__26; +x_187 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25; lean_inc(x_147); lean_inc(x_184); x_188 = l_Lean_addMacroScope(x_184, x_187, x_147); -x_189 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25; -x_190 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__29; +x_189 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24; +x_190 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__28; x_191 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_191, 0, x_186); lean_ctor_set(x_191, 1, x_189); @@ -3097,10 +3087,10 @@ lean_ctor_set_tag(x_1, 1); lean_ctor_set(x_1, 1, x_195); lean_ctor_set(x_1, 0, x_196); x_197 = lean_array_push(x_192, x_1); -x_198 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_198 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; x_199 = l_Lean_addMacroScope(x_184, x_198, x_147); -x_200 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; -x_201 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__34; +x_200 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; +x_201 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; x_202 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_202, 0, x_186); lean_ctor_set(x_202, 1, x_200); @@ -3162,12 +3152,12 @@ if (lean_is_exclusive(x_223)) { x_226 = lean_box(0); } x_227 = lean_box(0); -x_228 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__26; +x_228 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25; lean_inc(x_221); lean_inc(x_224); x_229 = l_Lean_addMacroScope(x_224, x_228, x_221); -x_230 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25; -x_231 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__29; +x_230 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24; +x_231 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__28; x_232 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_232, 0, x_227); lean_ctor_set(x_232, 1, x_230); @@ -3182,10 +3172,10 @@ x_238 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_238, 0, x_237); lean_ctor_set(x_238, 1, x_236); x_239 = lean_array_push(x_233, x_238); -x_240 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_240 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; x_241 = l_Lean_addMacroScope(x_224, x_240, x_221); -x_242 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; -x_243 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__34; +x_242 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; +x_243 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; x_244 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_244, 0, x_227); lean_ctor_set(x_244, 1, x_242); @@ -3273,13 +3263,13 @@ if (x_282 == 0) lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; 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; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; x_283 = lean_ctor_get(x_281, 0); x_284 = lean_box(0); -x_285 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38; +x_285 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__37; lean_inc(x_279); lean_inc(x_283); x_286 = l_Lean_addMacroScope(x_283, x_285, x_279); x_287 = lean_box(0); -x_288 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__37; -x_289 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__41; +x_288 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__36; +x_289 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__40; lean_ctor_set(x_1, 3, x_289); lean_ctor_set(x_1, 2, x_286); lean_ctor_set(x_1, 1, x_288); @@ -3293,12 +3283,12 @@ x_295 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_295, 0, x_294); lean_ctor_set(x_295, 1, x_293); x_296 = lean_array_push(x_290, x_295); -x_297 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_297 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; lean_inc(x_279); lean_inc(x_283); x_298 = l_Lean_addMacroScope(x_283, x_297, x_279); -x_299 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; -x_300 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__34; +x_299 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; +x_300 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; x_301 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_301, 0, x_284); lean_ctor_set(x_301, 1, x_299); @@ -3310,12 +3300,12 @@ x_304 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_304, 0, x_294); lean_ctor_set(x_304, 1, x_303); x_305 = lean_array_push(x_290, x_304); -x_306 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__47; +x_306 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46; lean_inc(x_279); lean_inc(x_283); x_307 = l_Lean_addMacroScope(x_283, x_306, x_279); -x_308 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46; -x_309 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__50; +x_308 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__45; +x_309 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__49; x_310 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_310, 0, x_284); lean_ctor_set(x_310, 1, x_308); @@ -3327,11 +3317,11 @@ x_313 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_313, 0, x_294); lean_ctor_set(x_313, 1, x_312); x_314 = lean_array_push(x_290, x_313); -x_315 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__54; +x_315 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53; lean_inc(x_279); lean_inc(x_283); x_316 = l_Lean_addMacroScope(x_283, x_315, x_279); -x_317 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53; +x_317 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__52; x_318 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_318, 0, x_284); lean_ctor_set(x_318, 1, x_317); @@ -3344,9 +3334,9 @@ lean_ctor_set(x_321, 0, x_294); lean_ctor_set(x_321, 1, x_320); x_322 = lean_array_push(x_290, x_321); x_323 = lean_array_push(x_322, x_277); -x_324 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; +x_324 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57; x_325 = l_Lean_addMacroScope(x_283, x_324, x_279); -x_326 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57; +x_326 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__56; x_327 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_327, 0, x_284); lean_ctor_set(x_327, 1, x_326); @@ -3372,9 +3362,9 @@ x_338 = lean_array_push(x_337, x_292); x_339 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_339, 0, x_332); lean_ctor_set(x_339, 1, x_338); -x_340 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_340 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_341 = lean_array_push(x_340, x_339); -x_342 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_342 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_343 = lean_array_push(x_341, x_342); x_344 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_345 = lean_alloc_ctor(1, 2, 0); @@ -3424,13 +3414,13 @@ lean_inc(x_366); lean_inc(x_365); lean_dec(x_281); x_367 = lean_box(0); -x_368 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38; +x_368 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__37; lean_inc(x_279); lean_inc(x_365); x_369 = l_Lean_addMacroScope(x_365, x_368, x_279); x_370 = lean_box(0); -x_371 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__37; -x_372 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__41; +x_371 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__36; +x_372 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__40; lean_ctor_set(x_1, 3, x_372); lean_ctor_set(x_1, 2, x_369); lean_ctor_set(x_1, 1, x_371); @@ -3444,12 +3434,12 @@ x_378 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_378, 0, x_377); lean_ctor_set(x_378, 1, x_376); x_379 = lean_array_push(x_373, x_378); -x_380 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_380 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; lean_inc(x_279); lean_inc(x_365); x_381 = l_Lean_addMacroScope(x_365, x_380, x_279); -x_382 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; -x_383 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__34; +x_382 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; +x_383 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; x_384 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_384, 0, x_367); lean_ctor_set(x_384, 1, x_382); @@ -3461,12 +3451,12 @@ x_387 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_387, 0, x_377); lean_ctor_set(x_387, 1, x_386); x_388 = lean_array_push(x_373, x_387); -x_389 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__47; +x_389 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46; lean_inc(x_279); lean_inc(x_365); x_390 = l_Lean_addMacroScope(x_365, x_389, x_279); -x_391 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46; -x_392 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__50; +x_391 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__45; +x_392 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__49; x_393 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_393, 0, x_367); lean_ctor_set(x_393, 1, x_391); @@ -3478,11 +3468,11 @@ x_396 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_396, 0, x_377); lean_ctor_set(x_396, 1, x_395); x_397 = lean_array_push(x_373, x_396); -x_398 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__54; +x_398 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53; lean_inc(x_279); lean_inc(x_365); x_399 = l_Lean_addMacroScope(x_365, x_398, x_279); -x_400 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53; +x_400 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__52; x_401 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_401, 0, x_367); lean_ctor_set(x_401, 1, x_400); @@ -3495,9 +3485,9 @@ lean_ctor_set(x_404, 0, x_377); lean_ctor_set(x_404, 1, x_403); x_405 = lean_array_push(x_373, x_404); x_406 = lean_array_push(x_405, x_277); -x_407 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; +x_407 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57; x_408 = l_Lean_addMacroScope(x_365, x_407, x_279); -x_409 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57; +x_409 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__56; x_410 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_410, 0, x_367); lean_ctor_set(x_410, 1, x_409); @@ -3523,9 +3513,9 @@ x_421 = lean_array_push(x_420, x_375); x_422 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_422, 0, x_415); lean_ctor_set(x_422, 1, x_421); -x_423 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_423 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_424 = lean_array_push(x_423, x_422); -x_425 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_425 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_426 = lean_array_push(x_424, x_425); x_427 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_428 = lean_alloc_ctor(1, 2, 0); @@ -3623,13 +3613,13 @@ if (lean_is_exclusive(x_467)) { x_470 = lean_box(0); } x_471 = lean_box(0); -x_472 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38; +x_472 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__37; lean_inc(x_465); lean_inc(x_468); x_473 = l_Lean_addMacroScope(x_468, x_472, x_465); x_474 = lean_box(0); -x_475 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__37; -x_476 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__41; +x_475 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__36; +x_476 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__40; x_477 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_477, 0, x_471); lean_ctor_set(x_477, 1, x_475); @@ -3644,12 +3634,12 @@ x_483 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_483, 0, x_482); lean_ctor_set(x_483, 1, x_481); x_484 = lean_array_push(x_478, x_483); -x_485 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_485 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; lean_inc(x_465); lean_inc(x_468); x_486 = l_Lean_addMacroScope(x_468, x_485, x_465); -x_487 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; -x_488 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__34; +x_487 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; +x_488 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; x_489 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_489, 0, x_471); lean_ctor_set(x_489, 1, x_487); @@ -3661,12 +3651,12 @@ x_492 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_492, 0, x_482); lean_ctor_set(x_492, 1, x_491); x_493 = lean_array_push(x_478, x_492); -x_494 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__47; +x_494 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46; lean_inc(x_465); lean_inc(x_468); x_495 = l_Lean_addMacroScope(x_468, x_494, x_465); -x_496 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46; -x_497 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__50; +x_496 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__45; +x_497 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__49; x_498 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_498, 0, x_471); lean_ctor_set(x_498, 1, x_496); @@ -3678,11 +3668,11 @@ x_501 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_501, 0, x_482); lean_ctor_set(x_501, 1, x_500); x_502 = lean_array_push(x_478, x_501); -x_503 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__54; +x_503 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53; lean_inc(x_465); lean_inc(x_468); x_504 = l_Lean_addMacroScope(x_468, x_503, x_465); -x_505 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53; +x_505 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__52; x_506 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_506, 0, x_471); lean_ctor_set(x_506, 1, x_505); @@ -3695,9 +3685,9 @@ lean_ctor_set(x_509, 0, x_482); lean_ctor_set(x_509, 1, x_508); x_510 = lean_array_push(x_478, x_509); x_511 = lean_array_push(x_510, x_463); -x_512 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; +x_512 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57; x_513 = l_Lean_addMacroScope(x_468, x_512, x_465); -x_514 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57; +x_514 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__56; x_515 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_515, 0, x_471); lean_ctor_set(x_515, 1, x_514); @@ -3723,9 +3713,9 @@ x_526 = lean_array_push(x_525, x_480); x_527 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_527, 0, x_520); lean_ctor_set(x_527, 1, x_526); -x_528 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_528 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_529 = lean_array_push(x_528, x_527); -x_530 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_530 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_531 = lean_array_push(x_529, x_530); x_532 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_533 = lean_alloc_ctor(1, 2, 0); @@ -4218,11 +4208,11 @@ x_37 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_37, 0, x_27); lean_ctor_set(x_37, 1, x_36); x_38 = lean_array_push(x_23, x_37); -x_39 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; +x_39 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57; lean_inc(x_11); lean_inc(x_15); x_40 = l_Lean_addMacroScope(x_15, x_39, x_11); -x_41 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57; +x_41 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__56; x_42 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_42, 0, x_16); lean_ctor_set(x_42, 1, x_41); @@ -4259,11 +4249,11 @@ x_60 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_60, 0, x_27); lean_ctor_set(x_60, 1, x_59); x_61 = lean_array_push(x_23, x_60); -x_62 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__54; +x_62 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53; lean_inc(x_11); lean_inc(x_15); x_63 = l_Lean_addMacroScope(x_15, x_62, x_11); -x_64 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53; +x_64 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__52; x_65 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_65, 0, x_16); lean_ctor_set(x_65, 1, x_64); @@ -4314,9 +4304,9 @@ x_91 = lean_array_push(x_90, x_25); x_92 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_92, 0, x_47); lean_ctor_set(x_92, 1, x_91); -x_93 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_93 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_94 = lean_array_push(x_93, x_92); -x_95 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_95 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_96 = lean_array_push(x_94, x_95); x_97 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_98 = lean_alloc_ctor(1, 2, 0); @@ -4403,11 +4393,11 @@ x_138 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_138, 0, x_128); lean_ctor_set(x_138, 1, x_137); x_139 = lean_array_push(x_124, x_138); -x_140 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; +x_140 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57; lean_inc(x_11); lean_inc(x_115); x_141 = l_Lean_addMacroScope(x_115, x_140, x_11); -x_142 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57; +x_142 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__56; x_143 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_143, 0, x_117); lean_ctor_set(x_143, 1, x_142); @@ -4444,11 +4434,11 @@ x_161 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_161, 0, x_128); lean_ctor_set(x_161, 1, x_160); x_162 = lean_array_push(x_124, x_161); -x_163 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__54; +x_163 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53; lean_inc(x_11); lean_inc(x_115); x_164 = l_Lean_addMacroScope(x_115, x_163, x_11); -x_165 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53; +x_165 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__52; x_166 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_166, 0, x_117); lean_ctor_set(x_166, 1, x_165); @@ -4499,9 +4489,9 @@ x_192 = lean_array_push(x_191, x_126); x_193 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_193, 0, x_148); lean_ctor_set(x_193, 1, x_192); -x_194 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_194 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_195 = lean_array_push(x_194, x_193); -x_196 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_196 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_197 = lean_array_push(x_195, x_196); x_198 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_199 = lean_alloc_ctor(1, 2, 0); @@ -4643,7 +4633,7 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_Quotation_elabStxQuot(lean_ob _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_2 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_3 = l___regBuiltinTermElab_Lean_Elab_Term_Quotation_elabStxQuot___closed__4; x_4 = l___regBuiltinTermElab_Lean_Elab_Term_Quotation_elabStxQuot___closed__5; x_5 = l_Lean_Elab_Term_addBuiltinTermElab(x_2, x_3, x_4, x_1); @@ -5056,7 +5046,7 @@ lean_object* _init_l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotati _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__5; +x_1 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__3; x_2 = l_Lean_mkAtom(x_1); return x_2; } @@ -5460,7 +5450,7 @@ lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__4(lea _start: { lean_object* x_5; lean_object* x_6; -x_5 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__22; +x_5 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__21; x_6 = l_Lean_Elab_Term_throwError___rarg(x_1, x_5, x_3, x_4); return x_6; } @@ -5632,7 +5622,7 @@ x_7 = l_Lean_Syntax_isOfKind(x_3, x_6); if (x_7 == 0) { lean_object* x_8; uint8_t x_9; -x_8 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_8 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; lean_inc(x_3); x_9 = l_Lean_Syntax_isOfKind(x_3, x_8); if (x_9 == 0) @@ -7130,7 +7120,7 @@ lean_object* _init_l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__16; +x_1 = l_Lean_Elab_evalSyntaxConstant___closed__1; x_2 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__8___closed__4; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -7824,7 +7814,7 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___mai _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__16; +x_1 = l_Lean_Elab_evalSyntaxConstant___closed__1; x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__7; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -8092,7 +8082,7 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___mai _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__16; +x_1 = l_Lean_Elab_evalSyntaxConstant___closed__1; x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__4; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -9771,9 +9761,9 @@ x_677 = lean_array_push(x_676, x_632); x_678 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_678, 0, x_647); lean_ctor_set(x_678, 1, x_677); -x_679 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_679 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_680 = lean_array_push(x_679, x_678); -x_681 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_681 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_682 = lean_array_push(x_680, x_681); x_683 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_684 = lean_alloc_ctor(1, 2, 0); @@ -10144,9 +10134,9 @@ x_871 = lean_array_push(x_870, x_826); x_872 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_872, 0, x_841); lean_ctor_set(x_872, 1, x_871); -x_873 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_873 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_874 = lean_array_push(x_873, x_872); -x_875 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_875 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_876 = lean_array_push(x_874, x_875); x_877 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_878 = lean_alloc_ctor(1, 2, 0); @@ -10678,9 +10668,9 @@ x_1089 = lean_array_push(x_1088, x_1044); x_1090 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1090, 0, x_1059); lean_ctor_set(x_1090, 1, x_1089); -x_1091 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_1091 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_1092 = lean_array_push(x_1091, x_1090); -x_1093 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_1093 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_1094 = lean_array_push(x_1092, x_1093); x_1095 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; x_1096 = lean_alloc_ctor(1, 2, 0); @@ -11348,7 +11338,7 @@ lean_object* l_Lean_Elab_Term_Quotation_getPatternVars(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; -x_2 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_2 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; lean_inc(x_1); x_3 = l_Lean_Syntax_isOfKind(x_1, x_2); if (x_3 == 0) @@ -11470,7 +11460,7 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; x_2 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; x_3 = lean_array_push(x_1, x_2); return x_3; @@ -11481,7 +11471,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__5; -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_3 = lean_array_push(x_1, x_2); return x_3; } @@ -13680,7 +13670,7 @@ goto block_60; block_60: { lean_object* x_17; uint8_t x_18; -x_17 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_17 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; lean_inc(x_15); x_18 = l_Lean_Syntax_isOfKind(x_15, x_17); if (x_18 == 0) @@ -25723,8 +25713,6 @@ l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57 = _init_ lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57); l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58 = _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58(); lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58); -l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59 = _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59(); -lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59); l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__1 = _init_l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__1); l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__2 = _init_l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__2(); diff --git a/stage0/stdlib/Init/Lean/Elab/Syntax.c b/stage0/stdlib/Init/Lean/Elab/Syntax.c index 4f16d27253..b8994081ef 100644 --- a/stage0/stdlib/Init/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Init/Lean/Elab/Syntax.c @@ -84,7 +84,6 @@ lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__33; lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_identKind___closed__2; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__13; -extern lean_object* l_Lean_Elab_Command_runTermElabM___rarg___closed__1; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__23; lean_object* l_Lean_Elab_Command_elabSyntax___closed__7; lean_object* l_Lean_Elab_Command_expandMacroArgIntoPattern(lean_object*, lean_object*, lean_object*); @@ -128,6 +127,7 @@ lean_object* l___private_Init_Lean_Elab_Syntax_8__regTraceClasses(lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___closed__20; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabDeclareSyntaxCat___closed__2; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__9; +extern lean_object* l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; lean_object* l_Lean_Elab_Term_toParserDescrAux(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__81; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__6; @@ -209,7 +209,6 @@ lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__61; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabMacroRules___closed__2; lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind; -extern lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Command_strLitPrec___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Syntax_num___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(lean_object*); @@ -299,9 +298,7 @@ lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__93; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__121; extern lean_object* l_Lean_Parser_Command_docComment___elambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_Command_6__mkTermContext(lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; lean_object* l_Lean_Elab_Command_elabSyntax___closed__28; -extern lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__6; extern lean_object* l_Lean_Parser_Term_match__syntax___elambda__1___closed__1; lean_object* l_Lean_Elab_Command_mkKindName___closed__1; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabMacroRules(lean_object*); @@ -330,10 +327,12 @@ uint8_t l_Array_isEmpty___rarg(lean_object*); extern lean_object* l_Lean_Parser_Command_attributes___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__3; lean_object* l_Lean_Elab_Command_mkKindName___closed__2; +extern lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__25; lean_object* l_Lean_Elab_Command_elabSyntax___closed__3; extern lean_object* l_Lean_Parser_Command_macroArgSimple___elambda__1___closed__2; lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_Syntax_7__antiquote___main___spec__6(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Syntax_sepBy___elambda__1___closed__1; lean_object* l___private_Init_Lean_Elab_Syntax_3__markAsTrailingParser___rarg(lean_object*); lean_object* l___private_Init_Lean_Elab_Syntax_6__elabKind___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -382,7 +381,6 @@ lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__5; lean_object* l_Lean_Elab_Term_toParserDescrAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__102; lean_object* l_Lean_Elab_Command_elabSyntax___closed__4; -extern lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__5; lean_object* l_Lean_Elab_Command_elabReserve(lean_object*, lean_object*); lean_object* l_Lean_Name_appendAfter(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__15; @@ -490,6 +488,7 @@ lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__29; extern lean_object* l___private_Init_Lean_Elab_Binders_10__expandFunBindersAux___main___closed__4; lean_object* l___private_Init_Lean_Elab_Syntax_7__antiquote___main___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__3; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__84; lean_object* l_Lean_Elab_Command_setEnv(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Syntax_7__antiquote___main___spec__2(lean_object*, lean_object*, lean_object*); @@ -522,9 +521,9 @@ lean_object* l_Lean_Elab_Command_elabMixfix(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkKindName(lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMacroHeadIntoSyntaxItem(lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__1; lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); -extern lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; lean_object* l___private_Init_Lean_Elab_Syntax_3__markAsTrailingParser___rarg___closed__1; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__106; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__24; @@ -534,6 +533,7 @@ extern lean_object* l_Lean_Parser_Command_macro___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_elabSyntax___closed__12; extern lean_object* l_Lean_Elab_mkMacroAttribute___closed__2; extern lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteOption___rarg___closed__4; +extern lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__88; extern lean_object* l_Lean_Parser_Syntax_sepBy___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_elabSyntax___closed__26; @@ -541,7 +541,6 @@ lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__107; lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_Syntax_7__antiquote___main___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMacroHeadIntoPattern___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__72; -extern lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__5; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__96; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__13; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__41; @@ -557,6 +556,7 @@ extern lean_object* l_Lean_Parser_Command_syntax___elambda__1___closed__1; lean_object* l___private_Init_Lean_Elab_Command_7__mkTermState(lean_object*); lean_object* l_Lean_Elab_Command_expandNotationItemIntoSyntaxItem(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__35; +extern lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; extern lean_object* l_Lean_Parser_Term_orelse___elambda__1___closed__1; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__12; lean_object* l_Lean_Elab_Command_expandMacroArgIntoSyntaxItem___boxed(lean_object*, lean_object*, lean_object*); @@ -8164,7 +8164,7 @@ lean_inc(x_2); x_4 = l_Lean_Elab_Command_getEnv(x_2, x_3); if (lean_obj_tag(x_4) == 0) { -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_375; +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_382; x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); x_6 = lean_ctor_get(x_4, 1); @@ -8174,50 +8174,50 @@ x_7 = lean_unsigned_to_nat(4u); x_8 = l_Lean_Syntax_getIdAt(x_1, x_7); x_9 = l_Lean_Name_eraseMacroScopes(x_8); lean_dec(x_8); -x_375 = l_Lean_Parser_isParserCategory(x_5, x_9); +x_382 = l_Lean_Parser_isParserCategory(x_5, x_9); lean_dec(x_5); -if (x_375 == 0) +if (x_382 == 0) { -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; uint8_t x_383; -x_376 = l_Lean_Syntax_getArg(x_1, x_7); +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; uint8_t x_390; +x_383 = l_Lean_Syntax_getArg(x_1, x_7); lean_dec(x_1); -x_377 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_377, 0, x_9); -x_378 = l_Lean_Elab_Term_toParserDescrAux___main___closed__118; -x_379 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_379, 0, x_378); -lean_ctor_set(x_379, 1, x_377); -x_380 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; -x_381 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_381, 0, x_379); -lean_ctor_set(x_381, 1, x_380); -x_382 = l_Lean_Elab_Command_throwError___rarg(x_376, x_381, x_2, x_6); -lean_dec(x_376); -x_383 = !lean_is_exclusive(x_382); -if (x_383 == 0) +x_384 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_384, 0, x_9); +x_385 = l_Lean_Elab_Term_toParserDescrAux___main___closed__118; +x_386 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_386, 0, x_385); +lean_ctor_set(x_386, 1, x_384); +x_387 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; +x_388 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_388, 0, x_386); +lean_ctor_set(x_388, 1, x_387); +x_389 = l_Lean_Elab_Command_throwError___rarg(x_383, x_388, x_2, x_6); +lean_dec(x_383); +x_390 = !lean_is_exclusive(x_389); +if (x_390 == 0) { -return x_382; +return x_389; } else { -lean_object* x_384; lean_object* x_385; lean_object* x_386; -x_384 = lean_ctor_get(x_382, 0); -x_385 = lean_ctor_get(x_382, 1); -lean_inc(x_385); -lean_inc(x_384); -lean_dec(x_382); -x_386 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_386, 0, x_384); -lean_ctor_set(x_386, 1, x_385); -return x_386; +lean_object* x_391; lean_object* x_392; lean_object* x_393; +x_391 = lean_ctor_get(x_389, 0); +x_392 = lean_ctor_get(x_389, 1); +lean_inc(x_392); +lean_inc(x_391); +lean_dec(x_389); +x_393 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_393, 0, x_391); +lean_ctor_set(x_393, 1, x_392); +return x_393; } } else { x_10 = x_6; -goto block_374; +goto block_381; } -block_374: +block_381: { lean_object* x_11; lean_object* x_12; lean_object* x_13; x_11 = lean_unsigned_to_nat(1u); @@ -8247,414 +8247,425 @@ lean_inc(x_2); x_282 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_15); if (lean_obj_tag(x_282) == 0) { -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_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; x_283 = lean_ctor_get(x_282, 0); lean_inc(x_283); x_284 = lean_ctor_get(x_282, 1); lean_inc(x_284); lean_dec(x_282); x_285 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_283); -x_286 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_283, x_280); -x_287 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_283); lean_dec(x_283); -x_288 = l_Lean_Elab_Term_elabBinders___rarg(x_285, x_281, x_286, x_287); -lean_dec(x_285); -if (lean_obj_tag(x_288) == 0) -{ -lean_object* x_289; lean_object* x_290; lean_object* x_291; -x_289 = lean_ctor_get(x_288, 0); -lean_inc(x_289); -x_290 = lean_ctor_get(x_288, 1); -lean_inc(x_290); -lean_dec(x_288); lean_inc(x_2); -x_291 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_284); +x_286 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_284); +if (lean_obj_tag(x_286) == 0) +{ +lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; +x_287 = lean_ctor_get(x_286, 0); +lean_inc(x_287); +x_288 = lean_ctor_get(x_286, 1); +lean_inc(x_288); +lean_dec(x_286); +x_289 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_287, x_280); +x_290 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_287); +lean_dec(x_287); +x_291 = l_Lean_Elab_Term_elabBinders___rarg(x_285, x_281, x_289, x_290); +lean_dec(x_285); if (lean_obj_tag(x_291) == 0) { -lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; -x_292 = lean_ctor_get(x_290, 0); +lean_object* x_292; lean_object* x_293; lean_object* x_294; +x_292 = lean_ctor_get(x_291, 0); lean_inc(x_292); -x_293 = lean_ctor_get(x_291, 0); +x_293 = lean_ctor_get(x_291, 1); lean_inc(x_293); -x_294 = lean_ctor_get(x_291, 1); -lean_inc(x_294); lean_dec(x_291); -x_295 = lean_ctor_get(x_292, 0); -lean_inc(x_295); -lean_dec(x_292); -x_296 = lean_ctor_get(x_290, 2); -lean_inc(x_296); -lean_dec(x_290); -x_297 = !lean_is_exclusive(x_293); -if (x_297 == 0) -{ -lean_object* x_298; lean_object* x_299; lean_object* x_300; -x_298 = lean_ctor_get(x_293, 1); -lean_dec(x_298); -x_299 = lean_ctor_get(x_293, 0); -lean_dec(x_299); -lean_ctor_set(x_293, 1, x_296); -lean_ctor_set(x_293, 0, x_295); lean_inc(x_2); -x_300 = l___private_Init_Lean_Elab_Command_3__setState(x_293, x_2, x_294); -if (lean_obj_tag(x_300) == 0) +x_294 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_288); +if (lean_obj_tag(x_294) == 0) { -lean_object* x_301; -x_301 = lean_ctor_get(x_300, 1); -lean_inc(x_301); -lean_dec(x_300); -x_19 = x_289; -x_20 = x_301; +lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; uint8_t x_300; +x_295 = lean_ctor_get(x_293, 0); +lean_inc(x_295); +x_296 = lean_ctor_get(x_294, 0); +lean_inc(x_296); +x_297 = lean_ctor_get(x_294, 1); +lean_inc(x_297); +lean_dec(x_294); +x_298 = lean_ctor_get(x_295, 0); +lean_inc(x_298); +lean_dec(x_295); +x_299 = lean_ctor_get(x_293, 2); +lean_inc(x_299); +lean_dec(x_293); +x_300 = !lean_is_exclusive(x_296); +if (x_300 == 0) +{ +lean_object* x_301; lean_object* x_302; lean_object* x_303; +x_301 = lean_ctor_get(x_296, 1); +lean_dec(x_301); +x_302 = lean_ctor_get(x_296, 0); +lean_dec(x_302); +lean_ctor_set(x_296, 1, x_299); +lean_ctor_set(x_296, 0, x_298); +lean_inc(x_2); +x_303 = l___private_Init_Lean_Elab_Command_3__setState(x_296, x_2, x_297); +if (lean_obj_tag(x_303) == 0) +{ +lean_object* x_304; +x_304 = lean_ctor_get(x_303, 1); +lean_inc(x_304); +lean_dec(x_303); +x_19 = x_292; +x_20 = x_304; goto block_279; } else { -uint8_t x_302; -lean_dec(x_289); +uint8_t x_305; +lean_dec(x_292); lean_dec(x_18); lean_dec(x_14); lean_dec(x_2); lean_dec(x_1); -x_302 = !lean_is_exclusive(x_300); -if (x_302 == 0) +x_305 = !lean_is_exclusive(x_303); +if (x_305 == 0) { -return x_300; +return x_303; } else { -lean_object* x_303; lean_object* x_304; lean_object* x_305; -x_303 = lean_ctor_get(x_300, 0); -x_304 = lean_ctor_get(x_300, 1); -lean_inc(x_304); -lean_inc(x_303); -lean_dec(x_300); -x_305 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_305, 0, x_303); -lean_ctor_set(x_305, 1, x_304); -return x_305; -} -} -} -else -{ -lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; -x_306 = lean_ctor_get(x_293, 2); -x_307 = lean_ctor_get(x_293, 3); -x_308 = lean_ctor_get(x_293, 4); -lean_inc(x_308); +lean_object* x_306; lean_object* x_307; lean_object* x_308; +x_306 = lean_ctor_get(x_303, 0); +x_307 = lean_ctor_get(x_303, 1); lean_inc(x_307); lean_inc(x_306); -lean_dec(x_293); -x_309 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_309, 0, x_295); -lean_ctor_set(x_309, 1, x_296); -lean_ctor_set(x_309, 2, x_306); -lean_ctor_set(x_309, 3, x_307); -lean_ctor_set(x_309, 4, x_308); -lean_inc(x_2); -x_310 = l___private_Init_Lean_Elab_Command_3__setState(x_309, x_2, x_294); -if (lean_obj_tag(x_310) == 0) +lean_dec(x_303); +x_308 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_308, 0, x_306); +lean_ctor_set(x_308, 1, x_307); +return x_308; +} +} +} +else { -lean_object* x_311; -x_311 = lean_ctor_get(x_310, 1); +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; +x_309 = lean_ctor_get(x_296, 2); +x_310 = lean_ctor_get(x_296, 3); +x_311 = lean_ctor_get(x_296, 4); lean_inc(x_311); -lean_dec(x_310); -x_19 = x_289; -x_20 = x_311; +lean_inc(x_310); +lean_inc(x_309); +lean_dec(x_296); +x_312 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_312, 0, x_298); +lean_ctor_set(x_312, 1, x_299); +lean_ctor_set(x_312, 2, x_309); +lean_ctor_set(x_312, 3, x_310); +lean_ctor_set(x_312, 4, x_311); +lean_inc(x_2); +x_313 = l___private_Init_Lean_Elab_Command_3__setState(x_312, x_2, x_297); +if (lean_obj_tag(x_313) == 0) +{ +lean_object* x_314; +x_314 = lean_ctor_get(x_313, 1); +lean_inc(x_314); +lean_dec(x_313); +x_19 = x_292; +x_20 = x_314; goto block_279; } else { -lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; -lean_dec(x_289); +lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; +lean_dec(x_292); lean_dec(x_18); lean_dec(x_14); lean_dec(x_2); lean_dec(x_1); -x_312 = lean_ctor_get(x_310, 0); -lean_inc(x_312); -x_313 = lean_ctor_get(x_310, 1); -lean_inc(x_313); -if (lean_is_exclusive(x_310)) { - lean_ctor_release(x_310, 0); - lean_ctor_release(x_310, 1); - x_314 = x_310; +x_315 = lean_ctor_get(x_313, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_313, 1); +lean_inc(x_316); +if (lean_is_exclusive(x_313)) { + lean_ctor_release(x_313, 0); + lean_ctor_release(x_313, 1); + x_317 = x_313; } else { - lean_dec_ref(x_310); - x_314 = lean_box(0); + lean_dec_ref(x_313); + x_317 = lean_box(0); } -if (lean_is_scalar(x_314)) { - x_315 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_317)) { + x_318 = lean_alloc_ctor(1, 2, 0); } else { - x_315 = x_314; + x_318 = x_317; } -lean_ctor_set(x_315, 0, x_312); -lean_ctor_set(x_315, 1, x_313); -return x_315; +lean_ctor_set(x_318, 0, x_315); +lean_ctor_set(x_318, 1, x_316); +return x_318; } } } else { -uint8_t x_316; -lean_dec(x_290); -lean_dec(x_289); +uint8_t x_319; +lean_dec(x_293); +lean_dec(x_292); lean_dec(x_18); lean_dec(x_14); lean_dec(x_2); lean_dec(x_1); -x_316 = !lean_is_exclusive(x_291); -if (x_316 == 0) +x_319 = !lean_is_exclusive(x_294); +if (x_319 == 0) { -return x_291; +return x_294; } else { -lean_object* x_317; lean_object* x_318; lean_object* x_319; -x_317 = lean_ctor_get(x_291, 0); -x_318 = lean_ctor_get(x_291, 1); -lean_inc(x_318); -lean_inc(x_317); -lean_dec(x_291); -x_319 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_319, 0, x_317); -lean_ctor_set(x_319, 1, x_318); -return x_319; -} -} -} -else -{ -lean_object* x_320; -x_320 = lean_ctor_get(x_288, 0); -lean_inc(x_320); -if (lean_obj_tag(x_320) == 0) -{ -lean_object* x_321; lean_object* x_322; lean_object* x_323; -lean_dec(x_18); -lean_dec(x_14); -lean_dec(x_1); -x_321 = lean_ctor_get(x_288, 1); +lean_object* x_320; lean_object* x_321; lean_object* x_322; +x_320 = lean_ctor_get(x_294, 0); +x_321 = lean_ctor_get(x_294, 1); lean_inc(x_321); -lean_dec(x_288); -x_322 = lean_ctor_get(x_320, 0); -lean_inc(x_322); -lean_dec(x_320); -lean_inc(x_2); -x_323 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_284); +lean_inc(x_320); +lean_dec(x_294); +x_322 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_322, 0, x_320); +lean_ctor_set(x_322, 1, x_321); +return x_322; +} +} +} +else +{ +lean_object* x_323; +x_323 = lean_ctor_get(x_291, 0); +lean_inc(x_323); if (lean_obj_tag(x_323) == 0) { -lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; uint8_t x_329; -x_324 = lean_ctor_get(x_321, 0); +lean_object* x_324; lean_object* x_325; lean_object* x_326; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_1); +x_324 = lean_ctor_get(x_291, 1); lean_inc(x_324); +lean_dec(x_291); x_325 = lean_ctor_get(x_323, 0); lean_inc(x_325); -x_326 = lean_ctor_get(x_323, 1); -lean_inc(x_326); lean_dec(x_323); +lean_inc(x_2); +x_326 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_288); +if (lean_obj_tag(x_326) == 0) +{ +lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; x_327 = lean_ctor_get(x_324, 0); lean_inc(x_327); -lean_dec(x_324); -x_328 = lean_ctor_get(x_321, 2); +x_328 = lean_ctor_get(x_326, 0); lean_inc(x_328); -lean_dec(x_321); -x_329 = !lean_is_exclusive(x_325); -if (x_329 == 0) +x_329 = lean_ctor_get(x_326, 1); +lean_inc(x_329); +lean_dec(x_326); +x_330 = lean_ctor_get(x_327, 0); +lean_inc(x_330); +lean_dec(x_327); +x_331 = lean_ctor_get(x_324, 2); +lean_inc(x_331); +lean_dec(x_324); +x_332 = !lean_is_exclusive(x_328); +if (x_332 == 0) { -lean_object* x_330; lean_object* x_331; lean_object* x_332; -x_330 = lean_ctor_get(x_325, 1); -lean_dec(x_330); -x_331 = lean_ctor_get(x_325, 0); -lean_dec(x_331); -lean_ctor_set(x_325, 1, x_328); -lean_ctor_set(x_325, 0, x_327); -x_332 = l___private_Init_Lean_Elab_Command_3__setState(x_325, x_2, x_326); -if (lean_obj_tag(x_332) == 0) -{ -uint8_t x_333; -x_333 = !lean_is_exclusive(x_332); -if (x_333 == 0) -{ -lean_object* x_334; -x_334 = lean_ctor_get(x_332, 0); +lean_object* x_333; lean_object* x_334; lean_object* x_335; +x_333 = lean_ctor_get(x_328, 1); +lean_dec(x_333); +x_334 = lean_ctor_get(x_328, 0); lean_dec(x_334); -lean_ctor_set_tag(x_332, 1); -lean_ctor_set(x_332, 0, x_322); -return x_332; +lean_ctor_set(x_328, 1, x_331); +lean_ctor_set(x_328, 0, x_330); +x_335 = l___private_Init_Lean_Elab_Command_3__setState(x_328, x_2, x_329); +if (lean_obj_tag(x_335) == 0) +{ +uint8_t x_336; +x_336 = !lean_is_exclusive(x_335); +if (x_336 == 0) +{ +lean_object* x_337; +x_337 = lean_ctor_get(x_335, 0); +lean_dec(x_337); +lean_ctor_set_tag(x_335, 1); +lean_ctor_set(x_335, 0, x_325); +return x_335; } else { -lean_object* x_335; lean_object* x_336; -x_335 = lean_ctor_get(x_332, 1); -lean_inc(x_335); -lean_dec(x_332); -x_336 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_336, 0, x_322); -lean_ctor_set(x_336, 1, x_335); -return x_336; -} -} -else -{ -uint8_t x_337; -lean_dec(x_322); -x_337 = !lean_is_exclusive(x_332); -if (x_337 == 0) -{ -return x_332; -} -else -{ -lean_object* x_338; lean_object* x_339; lean_object* x_340; -x_338 = lean_ctor_get(x_332, 0); -x_339 = lean_ctor_get(x_332, 1); -lean_inc(x_339); +lean_object* x_338; lean_object* x_339; +x_338 = lean_ctor_get(x_335, 1); lean_inc(x_338); -lean_dec(x_332); -x_340 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_340, 0, x_338); -lean_ctor_set(x_340, 1, x_339); -return x_340; -} +lean_dec(x_335); +x_339 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_339, 0, x_325); +lean_ctor_set(x_339, 1, x_338); +return x_339; } } else { -lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; -x_341 = lean_ctor_get(x_325, 2); -x_342 = lean_ctor_get(x_325, 3); -x_343 = lean_ctor_get(x_325, 4); -lean_inc(x_343); +uint8_t x_340; +lean_dec(x_325); +x_340 = !lean_is_exclusive(x_335); +if (x_340 == 0) +{ +return x_335; +} +else +{ +lean_object* x_341; lean_object* x_342; lean_object* x_343; +x_341 = lean_ctor_get(x_335, 0); +x_342 = lean_ctor_get(x_335, 1); lean_inc(x_342); lean_inc(x_341); -lean_dec(x_325); -x_344 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_344, 0, x_327); -lean_ctor_set(x_344, 1, x_328); -lean_ctor_set(x_344, 2, x_341); -lean_ctor_set(x_344, 3, x_342); -lean_ctor_set(x_344, 4, x_343); -x_345 = l___private_Init_Lean_Elab_Command_3__setState(x_344, x_2, x_326); -if (lean_obj_tag(x_345) == 0) +lean_dec(x_335); +x_343 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_343, 0, x_341); +lean_ctor_set(x_343, 1, x_342); +return x_343; +} +} +} +else { -lean_object* x_346; lean_object* x_347; lean_object* x_348; -x_346 = lean_ctor_get(x_345, 1); +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; +x_344 = lean_ctor_get(x_328, 2); +x_345 = lean_ctor_get(x_328, 3); +x_346 = lean_ctor_get(x_328, 4); lean_inc(x_346); -if (lean_is_exclusive(x_345)) { - lean_ctor_release(x_345, 0); - lean_ctor_release(x_345, 1); - x_347 = x_345; -} else { - lean_dec_ref(x_345); - x_347 = lean_box(0); -} -if (lean_is_scalar(x_347)) { - x_348 = lean_alloc_ctor(1, 2, 0); -} else { - x_348 = x_347; - lean_ctor_set_tag(x_348, 1); -} -lean_ctor_set(x_348, 0, x_322); -lean_ctor_set(x_348, 1, x_346); -return x_348; -} -else +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_328); +x_347 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_347, 0, x_330); +lean_ctor_set(x_347, 1, x_331); +lean_ctor_set(x_347, 2, x_344); +lean_ctor_set(x_347, 3, x_345); +lean_ctor_set(x_347, 4, x_346); +x_348 = l___private_Init_Lean_Elab_Command_3__setState(x_347, x_2, x_329); +if (lean_obj_tag(x_348) == 0) { -lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; -lean_dec(x_322); -x_349 = lean_ctor_get(x_345, 0); +lean_object* x_349; lean_object* x_350; lean_object* x_351; +x_349 = lean_ctor_get(x_348, 1); lean_inc(x_349); -x_350 = lean_ctor_get(x_345, 1); -lean_inc(x_350); -if (lean_is_exclusive(x_345)) { - lean_ctor_release(x_345, 0); - lean_ctor_release(x_345, 1); - x_351 = x_345; +if (lean_is_exclusive(x_348)) { + lean_ctor_release(x_348, 0); + lean_ctor_release(x_348, 1); + x_350 = x_348; } else { - lean_dec_ref(x_345); - x_351 = lean_box(0); + lean_dec_ref(x_348); + x_350 = lean_box(0); } -if (lean_is_scalar(x_351)) { - x_352 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_350)) { + x_351 = lean_alloc_ctor(1, 2, 0); } else { - x_352 = x_351; + x_351 = x_350; + lean_ctor_set_tag(x_351, 1); } -lean_ctor_set(x_352, 0, x_349); -lean_ctor_set(x_352, 1, x_350); -return x_352; +lean_ctor_set(x_351, 0, x_325); +lean_ctor_set(x_351, 1, x_349); +return x_351; +} +else +{ +lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; +lean_dec(x_325); +x_352 = lean_ctor_get(x_348, 0); +lean_inc(x_352); +x_353 = lean_ctor_get(x_348, 1); +lean_inc(x_353); +if (lean_is_exclusive(x_348)) { + lean_ctor_release(x_348, 0); + lean_ctor_release(x_348, 1); + x_354 = x_348; +} else { + lean_dec_ref(x_348); + x_354 = lean_box(0); +} +if (lean_is_scalar(x_354)) { + x_355 = lean_alloc_ctor(1, 2, 0); +} else { + x_355 = x_354; +} +lean_ctor_set(x_355, 0, x_352); +lean_ctor_set(x_355, 1, x_353); +return x_355; } } } else { -uint8_t x_353; -lean_dec(x_322); -lean_dec(x_321); +uint8_t x_356; +lean_dec(x_325); +lean_dec(x_324); lean_dec(x_2); -x_353 = !lean_is_exclusive(x_323); -if (x_353 == 0) +x_356 = !lean_is_exclusive(x_326); +if (x_356 == 0) { -return x_323; -} -else -{ -lean_object* x_354; lean_object* x_355; lean_object* x_356; -x_354 = lean_ctor_get(x_323, 0); -x_355 = lean_ctor_get(x_323, 1); -lean_inc(x_355); -lean_inc(x_354); -lean_dec(x_323); -x_356 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_356, 0, x_354); -lean_ctor_set(x_356, 1, x_355); -return x_356; -} -} +return x_326; } else { lean_object* x_357; lean_object* x_358; lean_object* x_359; -lean_dec(x_288); -x_357 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; -x_358 = l_unreachable_x21___rarg(x_357); -lean_inc(x_2); -x_359 = lean_apply_2(x_358, x_2, x_284); -if (lean_obj_tag(x_359) == 0) +x_357 = lean_ctor_get(x_326, 0); +x_358 = lean_ctor_get(x_326, 1); +lean_inc(x_358); +lean_inc(x_357); +lean_dec(x_326); +x_359 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_359, 0, x_357); +lean_ctor_set(x_359, 1, x_358); +return x_359; +} +} +} +else { -lean_object* x_360; lean_object* x_361; -x_360 = lean_ctor_get(x_359, 0); -lean_inc(x_360); -x_361 = lean_ctor_get(x_359, 1); -lean_inc(x_361); -lean_dec(x_359); -x_19 = x_360; -x_20 = x_361; +lean_object* x_360; lean_object* x_361; lean_object* x_362; +lean_dec(x_291); +x_360 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; +x_361 = l_unreachable_x21___rarg(x_360); +lean_inc(x_2); +x_362 = lean_apply_2(x_361, x_2, x_288); +if (lean_obj_tag(x_362) == 0) +{ +lean_object* x_363; lean_object* x_364; +x_363 = lean_ctor_get(x_362, 0); +lean_inc(x_363); +x_364 = lean_ctor_get(x_362, 1); +lean_inc(x_364); +lean_dec(x_362); +x_19 = x_363; +x_20 = x_364; goto block_279; } else { -uint8_t x_362; +uint8_t x_365; lean_dec(x_18); lean_dec(x_14); lean_dec(x_2); lean_dec(x_1); -x_362 = !lean_is_exclusive(x_359); -if (x_362 == 0) +x_365 = !lean_is_exclusive(x_362); +if (x_365 == 0) { -return x_359; +return x_362; } else { -lean_object* x_363; lean_object* x_364; lean_object* x_365; -x_363 = lean_ctor_get(x_359, 0); -x_364 = lean_ctor_get(x_359, 1); -lean_inc(x_364); -lean_inc(x_363); -lean_dec(x_359); -x_365 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_365, 0, x_363); -lean_ctor_set(x_365, 1, x_364); -return x_365; +lean_object* x_366; lean_object* x_367; lean_object* x_368; +x_366 = lean_ctor_get(x_362, 0); +x_367 = lean_ctor_get(x_362, 1); +lean_inc(x_367); +lean_inc(x_366); +lean_dec(x_362); +x_368 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_368, 0, x_366); +lean_ctor_set(x_368, 1, x_367); +return x_368; } } } @@ -8662,29 +8673,58 @@ return x_365; } else { -uint8_t x_366; +uint8_t x_369; +lean_dec(x_285); lean_dec(x_281); lean_dec(x_18); lean_dec(x_14); lean_dec(x_2); lean_dec(x_1); -x_366 = !lean_is_exclusive(x_282); -if (x_366 == 0) +x_369 = !lean_is_exclusive(x_286); +if (x_369 == 0) +{ +return x_286; +} +else +{ +lean_object* x_370; lean_object* x_371; lean_object* x_372; +x_370 = lean_ctor_get(x_286, 0); +x_371 = lean_ctor_get(x_286, 1); +lean_inc(x_371); +lean_inc(x_370); +lean_dec(x_286); +x_372 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_372, 0, x_370); +lean_ctor_set(x_372, 1, x_371); +return x_372; +} +} +} +else +{ +uint8_t x_373; +lean_dec(x_281); +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_2); +lean_dec(x_1); +x_373 = !lean_is_exclusive(x_282); +if (x_373 == 0) { return x_282; } else { -lean_object* x_367; lean_object* x_368; lean_object* x_369; -x_367 = lean_ctor_get(x_282, 0); -x_368 = lean_ctor_get(x_282, 1); -lean_inc(x_368); -lean_inc(x_367); +lean_object* x_374; lean_object* x_375; lean_object* x_376; +x_374 = lean_ctor_get(x_282, 0); +x_375 = lean_ctor_get(x_282, 1); +lean_inc(x_375); +lean_inc(x_374); lean_dec(x_282); -x_369 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_369, 0, x_367); -lean_ctor_set(x_369, 1, x_368); -return x_369; +x_376 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_376, 0, x_374); +lean_ctor_set(x_376, 1, x_375); +return x_376; } } block_279: @@ -8789,7 +8829,7 @@ x_75 = l_Lean_mkTermIdFromIdent___closed__2; x_76 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_76, 0, x_75); lean_ctor_set(x_76, 1, x_74); -x_77 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__6; +x_77 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; x_78 = lean_array_push(x_77, x_76); x_79 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; x_80 = lean_alloc_ctor(1, 2, 0); @@ -8857,7 +8897,7 @@ lean_inc(x_132); x_133 = lean_ctor_get(x_131, 1); lean_inc(x_133); lean_dec(x_131); -x_134 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +x_134 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; x_135 = l_Lean_checkTraceOption(x_132, x_134); lean_dec(x_132); if (x_135 == 0) @@ -9115,7 +9155,7 @@ x_203 = l_Lean_mkTermIdFromIdent___closed__2; x_204 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_204, 0, x_203); lean_ctor_set(x_204, 1, x_202); -x_205 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__6; +x_205 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; x_206 = lean_array_push(x_205, x_204); x_207 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; x_208 = lean_alloc_ctor(1, 2, 0); @@ -9183,7 +9223,7 @@ lean_inc(x_260); x_261 = lean_ctor_get(x_259, 1); lean_inc(x_261); lean_dec(x_259); -x_262 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +x_262 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; x_263 = l_Lean_checkTraceOption(x_260, x_262); lean_dec(x_260); if (x_263 == 0) @@ -9350,53 +9390,53 @@ return x_278; } else { -uint8_t x_370; +uint8_t x_377; lean_dec(x_9); lean_dec(x_2); lean_dec(x_1); -x_370 = !lean_is_exclusive(x_13); -if (x_370 == 0) +x_377 = !lean_is_exclusive(x_13); +if (x_377 == 0) { return x_13; } else { -lean_object* x_371; lean_object* x_372; lean_object* x_373; -x_371 = lean_ctor_get(x_13, 0); -x_372 = lean_ctor_get(x_13, 1); -lean_inc(x_372); -lean_inc(x_371); +lean_object* x_378; lean_object* x_379; lean_object* x_380; +x_378 = lean_ctor_get(x_13, 0); +x_379 = lean_ctor_get(x_13, 1); +lean_inc(x_379); +lean_inc(x_378); lean_dec(x_13); -x_373 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_373, 0, x_371); -lean_ctor_set(x_373, 1, x_372); -return x_373; +x_380 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_380, 0, x_378); +lean_ctor_set(x_380, 1, x_379); +return x_380; } } } } else { -uint8_t x_387; +uint8_t x_394; lean_dec(x_2); lean_dec(x_1); -x_387 = !lean_is_exclusive(x_4); -if (x_387 == 0) +x_394 = !lean_is_exclusive(x_4); +if (x_394 == 0) { return x_4; } else { -lean_object* x_388; lean_object* x_389; lean_object* x_390; -x_388 = lean_ctor_get(x_4, 0); -x_389 = lean_ctor_get(x_4, 1); -lean_inc(x_389); -lean_inc(x_388); +lean_object* x_395; lean_object* x_396; lean_object* x_397; +x_395 = lean_ctor_get(x_4, 0); +x_396 = lean_ctor_get(x_4, 1); +lean_inc(x_396); +lean_inc(x_395); lean_dec(x_4); -x_390 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_390, 0, x_388); -lean_ctor_set(x_390, 1, x_389); -return x_390; +x_397 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_397, 0, x_395); +lean_ctor_set(x_397, 1, x_396); +return x_397; } } } @@ -9653,7 +9693,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__5; +x_2 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__3; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -9677,7 +9717,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_5 = lean_unsigned_to_nat(0u); x_6 = l_Lean_Syntax_getArg(x_2, x_5); x_7 = l_Lean_Syntax_getArg(x_6, x_5); -x_62 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_62 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; lean_inc(x_7); x_63 = l_Lean_Syntax_isOfKind(x_7, x_62); if (x_63 == 0) @@ -9800,9 +9840,9 @@ x_37 = lean_ctor_get(x_35, 0); lean_dec(x_37); x_38 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__8; x_39 = lean_array_push(x_38, x_32); -x_40 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_40 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_41 = lean_array_push(x_39, x_40); -x_42 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_42 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_43 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); @@ -9819,9 +9859,9 @@ lean_inc(x_46); lean_dec(x_35); x_47 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__8; x_48 = lean_array_push(x_47, x_32); -x_49 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_49 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_50 = lean_array_push(x_48, x_49); -x_51 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_51 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_52 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_52, 0, x_51); lean_ctor_set(x_52, 1, x_50); @@ -10386,7 +10426,7 @@ x_67 = l_Lean_mkTermIdFromIdent___closed__2; x_68 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_68, 0, x_67); lean_ctor_set(x_68, 1, x_66); -x_69 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__6; +x_69 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; x_70 = lean_array_push(x_69, x_68); x_71 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; x_72 = lean_alloc_ctor(1, 2, 0); @@ -10611,7 +10651,7 @@ x_199 = l_Lean_mkTermIdFromIdent___closed__2; x_200 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_200, 0, x_199); lean_ctor_set(x_200, 1, x_198); -x_201 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__6; +x_201 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; x_202 = lean_array_push(x_201, x_200); x_203 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; x_204 = lean_alloc_ctor(1, 2, 0); @@ -10840,7 +10880,7 @@ x_4 = lean_unsigned_to_nat(0u); x_5 = l_Lean_Syntax_getArg(x_1, x_4); x_6 = l_Lean_Syntax_getArg(x_5, x_4); lean_dec(x_5); -x_7 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_7 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; lean_inc(x_6); x_8 = l_Lean_Syntax_isOfKind(x_6, x_7); if (x_8 == 0) @@ -13533,7 +13573,7 @@ x_41 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_41, 0, x_35); lean_ctor_set(x_41, 1, x_40); x_42 = lean_array_push(x_38, x_41); -x_43 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__5; +x_43 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; x_44 = lean_array_push(x_42, x_43); x_45 = lean_array_push(x_44, x_21); x_46 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; @@ -13543,9 +13583,9 @@ lean_ctor_set(x_47, 1, x_45); x_48 = lean_array_push(x_39, x_47); x_49 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__8; x_50 = lean_array_push(x_49, x_29); -x_51 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_51 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_52 = lean_array_push(x_50, x_51); -x_53 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_53 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_54 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_52); @@ -13614,7 +13654,7 @@ x_88 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_88, 0, x_82); lean_ctor_set(x_88, 1, x_87); x_89 = lean_array_push(x_85, x_88); -x_90 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__5; +x_90 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; x_91 = lean_array_push(x_89, x_90); x_92 = lean_array_push(x_91, x_21); x_93 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; @@ -13624,9 +13664,9 @@ lean_ctor_set(x_94, 1, x_92); x_95 = lean_array_push(x_86, x_94); x_96 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__8; x_97 = lean_array_push(x_96, x_76); -x_98 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_98 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_99 = lean_array_push(x_97, x_98); -x_100 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_100 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_101 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_101, 0, x_100); lean_ctor_set(x_101, 1, x_99); @@ -14447,7 +14487,7 @@ x_51 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_51, 0, x_45); lean_ctor_set(x_51, 1, x_50); x_52 = lean_array_push(x_48, x_51); -x_53 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__5; +x_53 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; x_54 = lean_array_push(x_52, x_53); x_55 = lean_array_push(x_54, x_10); x_56 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; @@ -14457,9 +14497,9 @@ lean_ctor_set(x_57, 1, x_55); x_58 = lean_array_push(x_49, x_57); x_59 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__8; x_60 = lean_array_push(x_59, x_34); -x_61 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_61 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_62 = lean_array_push(x_60, x_61); -x_63 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_63 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_64 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_64, 0, x_63); lean_ctor_set(x_64, 1, x_62); @@ -14520,7 +14560,7 @@ x_97 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_97, 0, x_91); lean_ctor_set(x_97, 1, x_96); x_98 = lean_array_push(x_94, x_97); -x_99 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__5; +x_99 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; x_100 = lean_array_push(x_98, x_99); x_101 = lean_array_push(x_100, x_10); x_102 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; @@ -14530,9 +14570,9 @@ lean_ctor_set(x_103, 1, x_101); x_104 = lean_array_push(x_95, x_103); x_105 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__8; x_106 = lean_array_push(x_105, x_34); -x_107 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_107 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_108 = lean_array_push(x_106, x_107); -x_109 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_109 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_110 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_110, 0, x_109); lean_ctor_set(x_110, 1, x_108); @@ -14609,7 +14649,7 @@ x_148 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_148, 0, x_142); lean_ctor_set(x_148, 1, x_147); x_149 = lean_array_push(x_145, x_148); -x_150 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__5; +x_150 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; x_151 = lean_array_push(x_149, x_150); x_152 = lean_array_push(x_151, x_10); x_153 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; @@ -14619,9 +14659,9 @@ lean_ctor_set(x_154, 1, x_152); x_155 = lean_array_push(x_146, x_154); x_156 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__8; x_157 = lean_array_push(x_156, x_131); -x_158 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_158 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_159 = lean_array_push(x_157, x_158); -x_160 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_160 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_161 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_161, 0, x_160); lean_ctor_set(x_161, 1, x_159); @@ -14684,7 +14724,7 @@ x_195 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_195, 0, x_189); lean_ctor_set(x_195, 1, x_194); x_196 = lean_array_push(x_192, x_195); -x_197 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__5; +x_197 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; x_198 = lean_array_push(x_196, x_197); x_199 = lean_array_push(x_198, x_10); x_200 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; @@ -14694,9 +14734,9 @@ lean_ctor_set(x_201, 1, x_199); x_202 = lean_array_push(x_193, x_201); x_203 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__8; x_204 = lean_array_push(x_203, x_131); -x_205 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_205 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_206 = lean_array_push(x_204, x_205); -x_207 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_207 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_208 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_208, 0, x_207); lean_ctor_set(x_208, 1, x_206); @@ -14895,7 +14935,7 @@ lean_object* _init_l___private_Init_Lean_Elab_Syntax_8__regTraceClasses___closed _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +x_1 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; x_2 = l_Lean_Parser_regBuiltinSyntaxParserAttr___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; diff --git a/stage0/stdlib/Init/Lean/Elab/SyntheticMVars.c b/stage0/stdlib/Init/Lean/Elab/SyntheticMVars.c index b862ca633d..ec3298d2af 100644 --- a/stage0/stdlib/Init/Lean/Elab/SyntheticMVars.c +++ b/stage0/stdlib/Init/Lean/Elab/SyntheticMVars.c @@ -36,6 +36,7 @@ lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); lean_object* l_PersistentArray_push___rarg(lean_object*, lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); @@ -134,7 +135,6 @@ lean_object* l_List_filterAuxM___main___at___private_Init_Lean_Elab_SyntheticMVa lean_object* l_Lean_MetavarContext_instantiateMVarDeclMVars(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_SyntheticMVars_10__getSomeSynthethicMVarsRef___rarg(lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); -extern lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; lean_object* l___private_Init_Lean_Elab_SyntheticMVars_10__getSomeSynthethicMVarsRef___rarg___closed__1; lean_object* l_Lean_indentExpr(lean_object*); extern lean_object* l_Lean_Format_repr___main___closed__16; @@ -2775,7 +2775,7 @@ lean_object* _init_l___private_Init_Lean_Elab_SyntheticMVars_7__synthesizeSynthe _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +x_1 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; x_2 = l___private_Init_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -2934,7 +2934,7 @@ x_9 = l_List_lengthAux___main___rarg(x_7, x_8); x_10 = lean_box(0); lean_ctor_set(x_5, 1, x_10); x_11 = l_List_reverse___rarg(x_7); -x_12 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +x_12 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; x_13 = l_List_filterAuxM___main___at___private_Init_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__2(x_1, x_2, x_12, x_11, x_10, x_3, x_5); if (lean_obj_tag(x_13) == 0) { @@ -3149,7 +3149,7 @@ lean_ctor_set(x_73, 3, x_67); lean_ctor_set(x_73, 4, x_68); lean_ctor_set(x_73, 5, x_69); x_74 = l_List_reverse___rarg(x_65); -x_75 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +x_75 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; x_76 = l_List_filterAuxM___main___at___private_Init_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__2(x_1, x_2, x_75, x_74, x_72, x_3, x_73); if (lean_obj_tag(x_76) == 0) { diff --git a/stage0/stdlib/Init/Lean/Elab/Tactic/Basic.c b/stage0/stdlib/Init/Lean/Elab/Tactic/Basic.c index 35326f4b8d..f92a68a73e 100644 --- a/stage0/stdlib/Init/Lean/Elab/Tactic/Basic.c +++ b/stage0/stdlib/Init/Lean/Elab/Tactic/Basic.c @@ -41,6 +41,7 @@ extern lean_object* l_Lean_Elab_Term_elabTermAux___main___closed__6; lean_object* l_List_map___main___at_Lean_Elab_goalsToMessageData___spec__1(lean_object*); lean_object* l_Lean_Elab_Tactic_mkTacticAttribute(lean_object*); lean_object* l_Lean_Elab_Tactic_evalSkip___boxed(lean_object*, lean_object*); +lean_object* l_IO_ofExcept___at___private_Init_Lean_Elab_Util_7__ElabAttribute_add___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getMCtx___rarg(lean_object*); lean_object* l_Lean_Elab_Tactic_monadQuotation___closed__4; extern lean_object* l_Lean_Parser_Tactic_seq___elambda__1___closed__2; @@ -116,10 +117,12 @@ extern lean_object* l_Lean_Parser_Tactic_assumption___elambda__1___closed__2; lean_object* l_Lean_Elab_Tactic_withFreshMacroScope(lean_object*); lean_object* l_Lean_MetavarContext_renameMVar(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +extern lean_object* l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; lean_object* l_AssocList_find___main___at_Lean_Elab_Tactic_evalTactic___main___spec__6___boxed(lean_object*, lean_object*); lean_object* l___regBuiltinTactic_Lean_Elab_Tactic_evalNestedTacticBlock___closed__2; size_t l_USize_shiftRight(size_t, size_t); lean_object* l_Lean_Elab_Tactic_resettingSynthInstanceCacheWhen___rarg(uint8_t, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3; uint8_t l_PersistentHashMap_containsAux___main___at_Lean_Elab_Tactic_addBuiltinTactic___spec__5(lean_object*, size_t, lean_object*); lean_object* l_Lean_Elab_Tactic_getLocalInsts(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_monadLog___closed__10; @@ -182,7 +185,6 @@ lean_object* l_Lean_Elab_Term_isExprMVarAssigned___boxed(lean_object*, lean_obje lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_dbgTrace___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_Tactic_seq___elambda__1___closed__3; lean_object* l_Lean_Elab_Tactic_Lean_Elab_MonadMacroAdapter___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_addContext(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalClear___closed__1; @@ -382,6 +384,7 @@ lean_object* l_Lean_Elab_Tactic_addBuiltinTactic___boxed(lean_object*, lean_obje lean_object* l_Lean_SMap_empty___at_Lean_Elab_Tactic_mkBuiltinTacticTable___spec__1___closed__1; lean_object* l_Lean_Elab_Tactic_addBuiltinTactic___closed__1; lean_object* l_Lean_Elab_Tactic_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Tactic_seq___elambda__1___closed__4; lean_object* l___regBuiltinTactic_Lean_Elab_Tactic_evalParen___closed__1; lean_object* l_Lean_Elab_Tactic_ensureHasNoMVars(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_erase___main___at_Lean_Elab_Tactic_evalCase___spec__2___boxed(lean_object*, lean_object*); @@ -458,7 +461,6 @@ lean_object* l___regBuiltinTactic_Lean_Elab_Tactic_evalAssumption___closed__3; lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_dbgTrace(lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); -extern lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; lean_object* l_Lean_Elab_Tactic_monadLog___lambda__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_EStateM_Backtrackable___closed__3; lean_object* lean_usize_to_nat(size_t); @@ -475,7 +477,6 @@ lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Lean_Elab_Tactic_getMainModule___boxed(lean_object*); extern lean_object* l_Lean_Parser_Tactic_traceState___elambda__1___closed__2; lean_object* l_Lean_Elab_Tactic_monadQuotation___closed__3; -lean_object* l_IO_ofExcept___at___private_Init_Lean_Elab_Util_6__ElabAttribute_add___spec__1(lean_object*, lean_object*); lean_object* l___regBuiltinTactic_Lean_Elab_Tactic_evalSkip(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalIntros___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -510,7 +511,6 @@ uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalIntros___lambda__2___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalSkip___rarg(lean_object*); -extern lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; lean_object* l_Lean_Elab_Tactic_withIncRecDepth(lean_object*); lean_object* l_List_map___main___at_Lean_Elab_goalsToMessageData___spec__1(lean_object* x_1) { _start: @@ -3610,7 +3610,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = l_Lean_Parser_Tactic_seq___elambda__1___closed__2; lean_inc(x_1); x_9 = l_Lean_Elab_syntaxNodeKindOfAttrParam(x_1, x_8, x_3); -x_10 = l_IO_ofExcept___at___private_Init_Lean_Elab_Util_6__ElabAttribute_add___spec__1(x_9, x_5); +x_10 = l_IO_ofExcept___at___private_Init_Lean_Elab_Util_7__ElabAttribute_add___spec__1(x_9, x_5); lean_dec(x_9); if (lean_obj_tag(x_10) == 0) { @@ -6252,7 +6252,7 @@ lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_inc(x_1); x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); lean_closure_set(x_24, 0, x_1); -x_25 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_25 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3; lean_inc(x_1); x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace___boxed), 5, 3); lean_closure_set(x_26, 0, x_25); @@ -6421,7 +6421,7 @@ lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_inc(x_1); x_74 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); lean_closure_set(x_74, 0, x_1); -x_75 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_75 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3; lean_inc(x_1); x_76 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace___boxed), 5, 3); lean_closure_set(x_76, 0, x_75); @@ -6615,7 +6615,7 @@ lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_inc(x_1); x_128 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); lean_closure_set(x_128, 0, x_1); -x_129 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_129 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3; lean_inc(x_1); x_130 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace___boxed), 5, 3); lean_closure_set(x_130, 0, x_129); @@ -6841,7 +6841,7 @@ lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_inc(x_1); x_191 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); lean_closure_set(x_191, 0, x_1); -x_192 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_192 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3; lean_inc(x_1); x_193 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace___boxed), 5, 3); lean_closure_set(x_193, 0, x_192); @@ -7114,7 +7114,7 @@ lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_inc(x_1); x_267 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); lean_closure_set(x_267, 0, x_1); -x_268 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_268 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3; lean_inc(x_1); x_269 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace___boxed), 5, 3); lean_closure_set(x_269, 0, x_268); @@ -7414,7 +7414,7 @@ lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_inc(x_1); x_347 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); lean_closure_set(x_347, 0, x_1); -x_348 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_348 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3; lean_inc(x_1); x_349 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace___boxed), 5, 3); lean_closure_set(x_349, 0, x_348); @@ -13297,7 +13297,7 @@ lean_object* l___regBuiltinTactic_Lean_Elab_Tactic_evalSeq(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Parser_Tactic_seq___elambda__1___closed__3; +x_2 = l_Lean_Parser_Tactic_seq___elambda__1___closed__4; x_3 = l___regBuiltinTactic_Lean_Elab_Tactic_evalSeq___closed__2; x_4 = l___regBuiltinTactic_Lean_Elab_Tactic_evalSeq___closed__3; x_5 = l_Lean_Elab_Tactic_addBuiltinTactic(x_2, x_3, x_4, x_1); @@ -16606,7 +16606,7 @@ lean_object* _init_l___private_Init_Lean_Elab_Tactic_Basic_4__regTraceClasses___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +x_1 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; x_2 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; diff --git a/stage0/stdlib/Init/Lean/Elab/Term.c b/stage0/stdlib/Init/Lean/Elab/Term.c index 6f84d96968..472b84cbf4 100644 --- a/stage0/stdlib/Init/Lean/Elab/Term.c +++ b/stage0/stdlib/Init/Lean/Elab/Term.c @@ -55,6 +55,7 @@ extern lean_object* l_Lean_Parser_declareBuiltinParser___closed__8; lean_object* l_Lean_Elab_Term_State_inhabited; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabChar(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__3; lean_object* l_Lean_mkSort(lean_object*); lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__9; @@ -68,6 +69,7 @@ lean_object* l_Lean_Meta_whnfForall(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_5__expandCDot___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermAux___main___closed__6; lean_object* l_Lean_Elab_Term_monadLog___lambda__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_IO_ofExcept___at___private_Init_Lean_Elab_Util_7__ElabAttribute_add___spec__1(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_8__exceptionToSorry___closed__1; extern lean_object* l_Lean_MessageData_ofList___closed__3; lean_object* l_Lean_Elab_Term_declareBuiltinTermElab___closed__2; @@ -156,6 +158,7 @@ lean_object* l_Lean_Elab_Term_withoutPostponing(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabRawNumLit___closed__3; lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__13; lean_object* l_Lean_Elab_Term_decLevel(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_compileDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabRawStrLit___closed__2; lean_object* l_Lean_Elab_Term_elabParen___closed__3; lean_object* l___private_Init_Lean_Elab_Term_18__mkFreshLevelMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -164,6 +167,7 @@ lean_object* l_Lean_Elab_Term_getMVarDecl(lean_object*, lean_object*, lean_objec lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabListLit___closed__1; lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_compileDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Literal_type___closed__3; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); @@ -197,6 +201,7 @@ lean_object* l_Lean_Elab_Term_withIncRecDepth(lean_object*); lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_19__mkConsts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WHNF_unfoldDefinitionAux___at_Lean_Meta_unfoldDefinition_x3f___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_16__resolveLocalNameAux___main(lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; extern lean_object* l_List_repr___rarg___closed__3; extern lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__2; lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_Elab_Term_elabTermAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -208,6 +213,7 @@ size_t l_USize_shiftRight(size_t, size_t); lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; lean_object* l_Lean_Elab_Term_withLCtx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInst(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3; lean_object* l_Lean_Elab_Term_elabArrayLit___closed__6; lean_object* l_Lean_Elab_Term_monadLog___closed__10; lean_object* l_Lean_Elab_Term_resolveName___closed__6; @@ -263,6 +269,7 @@ lean_object* l_Lean_Elab_Term_elabArrayLit(lean_object*, lean_object*, lean_obje lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_monadLog___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabParen___closed__1; +lean_object* l_Lean_Elab_Term_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabListLit___closed__1; extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; extern lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; @@ -270,11 +277,13 @@ lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__ lean_object* l_Lean_Elab_Term_liftMetaM(lean_object*); uint8_t l___private_Init_Lean_Elab_Term_11__isExplicit___closed__1; extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__1; +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__2; uint8_t lean_metavar_ctx_is_expr_assigned(lean_object*, lean_object*); lean_object* l_Lean_Meta_isClass(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_contains___at_Lean_Elab_Term_addBuiltinTermElab___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withTransparency(lean_object*); lean_object* l_HashMapImp_find_x3f___at_Lean_Elab_Term_elabTermAux___main___spec__5___boxed(lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_withIncRecDepth___rarg___closed__1; lean_object* l_Lean_Elab_Term_elabListLit___closed__2; lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___lambda__2(lean_object*, lean_object*, lean_object*); @@ -291,6 +300,7 @@ lean_object* l_Lean_Elab_Term_tryCoe(lean_object*, lean_object*, lean_object*, l lean_object* l___private_Init_Lean_Elab_Term_10__elabTermUsing___main___closed__3; lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_2__fromMetaException___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__1; lean_object* l_Lean_Elab_Term_elabParen___closed__4; lean_object* l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; lean_object* l_Lean_Elab_Term_elabLevel(lean_object*, lean_object*, lean_object*); @@ -313,6 +323,7 @@ lean_object* l___private_Init_Lean_Elab_Term_17__resolveLocalName(lean_object*, lean_object* l_Lean_Elab_Term_termElabAttribute___closed__4; lean_object* l_Lean_Elab_Term_addContext___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabByTactic(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_observing(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkLet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withoutMacroStackAtErr(lean_object*); @@ -351,8 +362,10 @@ lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__3; lean_object* l_Lean_Elab_mkMessageCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); extern lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_withMacroExpansion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabByTactic___closed__2; lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__3; lean_object* l___private_Init_Lean_Elab_Term_10__elabTermUsing(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam___closed__2; lean_object* l_Lean_Elab_Term_elabStr___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabParen(lean_object*); @@ -360,6 +373,7 @@ lean_object* l_Lean_Elab_Term_mkConst___closed__2; lean_object* l_Lean_Elab_Term_isType(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__2; lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_19__mkConsts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_setEnv___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabQuotedName(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_inhabited(lean_object*, lean_object*); @@ -392,6 +406,7 @@ lean_object* l_Lean_Elab_Term_monadLog___closed__6; extern lean_object* l_Lean_strLitKind___closed__2; lean_object* l_Lean_Elab_Term_withFreshMacroScope(lean_object*); lean_object* l_Lean_Elab_Term_resolveName___closed__7; +lean_object* l_Lean_Elab_Term_addDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*); size_t l_Lean_Name_hash(lean_object*); lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_termElabAttribute___closed__3; @@ -668,6 +683,7 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabParen___closed__2; lean_object* l_Lean_Elab_Term_resettingSynthInstanceCacheWhen___rarg(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Term_logTrace___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_8__exceptionToSorry___closed__3; +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic(lean_object*); lean_object* l___private_Init_Lean_Elab_Term_14__mkPairsAux___main___closed__8; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabQuotedName___closed__1; lean_object* l___private_Init_Lean_Elab_Term_3__fromMetaState___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -740,6 +756,7 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabStr(lean_object*); lean_object* l_Lean_Elab_Term_elabImplicitLambda___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_getState___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabByTactic___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabHole___closed__3; lean_object* l_Lean_Elab_Term_withLetDecl___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabTacticBlock___closed__2; @@ -767,6 +784,7 @@ lean_object* l_Lean_Elab_Term_decLevel___boxed(lean_object*, lean_object*, lean_ lean_object* l_Lean_Elab_Term_getLCtx___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_13__tryCoeSort(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshLevelMVar___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabByTactic___closed__1; lean_object* l_Lean_Elab_Term_ppGoal(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_setTraceState(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryPostpone(lean_object*, lean_object*); @@ -775,6 +793,7 @@ lean_object* l_Lean_Elab_Term_monadLog___lambda__3(lean_object*, lean_object*, l lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Term_3__fromMetaState___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_monadQuotation___closed__3; lean_object* l_Lean_Elab_Term_tryCoeAndLift___closed__3; +lean_object* l_Lean_Elab_Term_setEnv(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_MetavarContext_Inhabited___closed__1; @@ -795,6 +814,7 @@ uint8_t l_Lean_LocalInstance_beq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_registerBuiltinTermElabAttr___closed__4; lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; lean_object* l_Lean_Elab_Term_tryCoeAndLift___closed__1; +lean_object* lean_compile_decl(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; lean_object* l_Lean_Elab_Term_elabRawCharLit___closed__1; lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); @@ -817,7 +837,6 @@ lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object* l_Lean_Elab_Term_getMCtx___boxed(lean_object*); lean_object* l_Lean_Elab_Term_applyResult(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); -extern lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; lean_object* l_Lean_Meta_isTypeFormer(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabHole___closed__1; lean_object* l_Lean_SMap_empty___at_Lean_Elab_Term_mkBuiltinTermElabTable___spec__1; @@ -845,7 +864,6 @@ lean_object* l_Lean_Elab_Term_registerBuiltinTermElabAttr___closed__1; lean_object* l_Lean_Elab_Term_resolveName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabHole___closed__2; -lean_object* l_IO_ofExcept___at___private_Init_Lean_Elab_Util_6__ElabAttribute_add___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resettingSynthInstanceCache(lean_object*); lean_object* l___private_Init_Lean_Elab_Term_13__tryCoeSort___closed__7; lean_object* l_Lean_mkConst(lean_object*, lean_object*); @@ -906,7 +924,7 @@ uint8_t lean_string_dec_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__6; lean_object* l_Lean_Elab_Term_decLevel___closed__6; -extern lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +lean_object* lean_add_decl(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryCoe___closed__3; lean_object* _init_l_Lean_Elab_Term_State_inhabited___closed__1() { _start: @@ -1379,6 +1397,130 @@ lean_dec(x_1); return x_3; } } +lean_object* l_Lean_Elab_Term_setEnv(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_ctor_get(x_3, 0); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_5, 0); +lean_dec(x_7); +lean_ctor_set(x_5, 0, x_1); +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_3); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_10 = lean_ctor_get(x_5, 1); +x_11 = lean_ctor_get(x_5, 2); +x_12 = lean_ctor_get(x_5, 3); +x_13 = lean_ctor_get(x_5, 4); +x_14 = lean_ctor_get(x_5, 5); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_5); +x_15 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_15, 0, x_1); +lean_ctor_set(x_15, 1, x_10); +lean_ctor_set(x_15, 2, x_11); +lean_ctor_set(x_15, 3, x_12); +lean_ctor_set(x_15, 4, x_13); +lean_ctor_set(x_15, 5, x_14); +lean_ctor_set(x_3, 0, x_15); +x_16 = lean_box(0); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_3); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_18 = lean_ctor_get(x_3, 0); +x_19 = lean_ctor_get(x_3, 1); +x_20 = lean_ctor_get(x_3, 2); +x_21 = lean_ctor_get(x_3, 3); +x_22 = lean_ctor_get(x_3, 4); +x_23 = lean_ctor_get(x_3, 5); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_3); +x_24 = lean_ctor_get(x_18, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_18, 2); +lean_inc(x_25); +x_26 = lean_ctor_get(x_18, 3); +lean_inc(x_26); +x_27 = lean_ctor_get(x_18, 4); +lean_inc(x_27); +x_28 = lean_ctor_get(x_18, 5); +lean_inc(x_28); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + lean_ctor_release(x_18, 2); + lean_ctor_release(x_18, 3); + lean_ctor_release(x_18, 4); + lean_ctor_release(x_18, 5); + x_29 = x_18; +} else { + lean_dec_ref(x_18); + x_29 = lean_box(0); +} +if (lean_is_scalar(x_29)) { + x_30 = lean_alloc_ctor(0, 6, 0); +} else { + x_30 = x_29; +} +lean_ctor_set(x_30, 0, x_1); +lean_ctor_set(x_30, 1, x_24); +lean_ctor_set(x_30, 2, x_25); +lean_ctor_set(x_30, 3, x_26); +lean_ctor_set(x_30, 4, x_27); +lean_ctor_set(x_30, 5, x_28); +x_31 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_19); +lean_ctor_set(x_31, 2, x_20); +lean_ctor_set(x_31, 3, x_21); +lean_ctor_set(x_31, 4, x_22); +lean_ctor_set(x_31, 5, x_23); +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_31); +return x_33; +} +} +} +lean_object* l_Lean_Elab_Term_setEnv___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_Term_setEnv(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} lean_object* l_Lean_Elab_Term_addContext(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -3291,7 +3433,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = l_Lean_mkAppStx___closed__6; lean_inc(x_1); x_9 = l_Lean_Elab_syntaxNodeKindOfAttrParam(x_1, x_8, x_3); -x_10 = l_IO_ofExcept___at___private_Init_Lean_Elab_Util_6__ElabAttribute_add___spec__1(x_9, x_5); +x_10 = l_IO_ofExcept___at___private_Init_Lean_Elab_Util_7__ElabAttribute_add___spec__1(x_9, x_5); lean_dec(x_9); if (lean_obj_tag(x_10) == 0) { @@ -16571,7 +16713,7 @@ lean_object* _init_l___private_Init_Lean_Elab_Term_9__postponeElabTerm___closed_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +x_1 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; x_2 = l___private_Init_Lean_Elab_Term_9__postponeElabTerm___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -17507,7 +17649,7 @@ lean_inc(x_105); x_106 = lean_ctor_get(x_104, 1); lean_inc(x_106); lean_dec(x_104); -x_107 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_107 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3; x_108 = l_Lean_checkTraceOption(x_105, x_107); lean_dec(x_105); if (x_108 == 0) @@ -17889,7 +18031,7 @@ lean_inc(x_196); x_197 = lean_ctor_get(x_195, 1); lean_inc(x_197); lean_dec(x_195); -x_198 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_198 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3; x_199 = l_Lean_checkTraceOption(x_196, x_198); lean_dec(x_196); if (x_199 == 0) @@ -18370,7 +18512,7 @@ lean_inc(x_312); x_313 = lean_ctor_get(x_311, 1); lean_inc(x_313); lean_dec(x_311); -x_314 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_314 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3; x_315 = l_Lean_checkTraceOption(x_312, x_314); lean_dec(x_312); if (x_315 == 0) @@ -18892,7 +19034,7 @@ lean_inc(x_438); x_439 = lean_ctor_get(x_437, 1); lean_inc(x_439); lean_dec(x_437); -x_440 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_440 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3; x_441 = l_Lean_checkTraceOption(x_438, x_440); lean_dec(x_438); if (x_441 == 0) @@ -19708,7 +19850,7 @@ lean_object* _init_l_Lean_Elab_Term_elabImplicitLambdaAux___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +x_1 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; x_2 = l_Lean_Elab_Term_elabImplicitLambdaAux___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -23717,6 +23859,105 @@ return x_17; } } } +lean_object* l_Lean_Elab_Term_addDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = l_Lean_Elab_Term_getEnv___rarg(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_add_decl(x_6, x_2); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +lean_dec(x_8); +x_10 = l_Lean_Elab_Term_getOptions(x_3, x_7); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_KernelException_toMessageData(x_9, x_11); +x_14 = l_Lean_Elab_Term_throwError___rarg(x_1, x_13, x_3, x_12); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_8, 0); +lean_inc(x_15); +lean_dec(x_8); +x_16 = l_Lean_Elab_Term_setEnv(x_15, x_3, x_7); +lean_dec(x_3); +return x_16; +} +} +} +lean_object* l_Lean_Elab_Term_addDecl___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_Term_addDecl(x_1, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Lean_Elab_Term_compileDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = l_Lean_Elab_Term_getEnv___rarg(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 = l_Lean_Elab_Term_getOptions(x_3, 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_compile_decl(x_6, x_9, x_2); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +lean_dec(x_11); +x_13 = l_Lean_KernelException_toMessageData(x_12, x_9); +x_14 = l_Lean_Elab_Term_throwError___rarg(x_1, x_13, x_3, x_10); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; +lean_dec(x_9); +x_15 = lean_ctor_get(x_11, 0); +lean_inc(x_15); +lean_dec(x_11); +x_16 = l_Lean_Elab_Term_setEnv(x_15, x_3, x_10); +lean_dec(x_3); +return x_16; +} +} +} +lean_object* l_Lean_Elab_Term_compileDecl___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_Term_compileDecl(x_1, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} lean_object* l_Lean_Elab_Term_elabProp___rarg(lean_object* x_1) { _start: { @@ -24189,6 +24430,95 @@ x_5 = l_Lean_Elab_Term_addBuiltinTermElab(x_2, x_3, x_4, x_1); return x_5; } } +lean_object* _init_l_Lean_Elab_Term_elabByTactic___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid 'by' tactic, expected type has not been provided"); +return x_1; +} +} +lean_object* _init_l_Lean_Elab_Term_elabByTactic___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_elabByTactic___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Elab_Term_elabByTactic___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_elabByTactic___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_elabByTactic(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_object* x_6; +x_5 = l_Lean_Elab_Term_elabByTactic___closed__3; +x_6 = l_Lean_Elab_Term_throwError___rarg(x_1, x_5, x_3, x_4); +lean_dec(x_1); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +lean_dec(x_2); +x_8 = lean_unsigned_to_nat(1u); +x_9 = l_Lean_Syntax_getArg(x_1, x_8); +x_10 = l_Lean_Elab_Term_mkTacticMVar(x_1, x_7, x_9, x_3, x_4); +return x_10; +} +} +} +lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabByTactic"); +return x_1; +} +} +lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_declareBuiltinTermElab___closed__3; +x_2 = l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabByTactic), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_Parser_Term_byTactic___elambda__1___closed__2; +x_3 = l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__2; +x_4 = l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__3; +x_5 = l_Lean_Elab_Term_addBuiltinTermElab(x_2, x_3, x_4, x_1); +return x_5; +} +} lean_object* _init_l___private_Init_Lean_Elab_Term_14__mkPairsAux___main___closed__1() { _start: { @@ -28335,6 +28665,21 @@ lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabTacticBlock___clo res = l___regBuiltinTermElab_Lean_Elab_Term_elabTacticBlock(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Elab_Term_elabByTactic___closed__1 = _init_l_Lean_Elab_Term_elabByTactic___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_elabByTactic___closed__1); +l_Lean_Elab_Term_elabByTactic___closed__2 = _init_l_Lean_Elab_Term_elabByTactic___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_elabByTactic___closed__2); +l_Lean_Elab_Term_elabByTactic___closed__3 = _init_l_Lean_Elab_Term_elabByTactic___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_elabByTactic___closed__3); +l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__1(); +lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__1); +l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__2(); +lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__2); +l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__3 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__3(); +lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic___closed__3); +res = l___regBuiltinTermElab_Lean_Elab_Term_elabByTactic(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l___private_Init_Lean_Elab_Term_14__mkPairsAux___main___closed__1 = _init_l___private_Init_Lean_Elab_Term_14__mkPairsAux___main___closed__1(); lean_mark_persistent(l___private_Init_Lean_Elab_Term_14__mkPairsAux___main___closed__1); l___private_Init_Lean_Elab_Term_14__mkPairsAux___main___closed__2 = _init_l___private_Init_Lean_Elab_Term_14__mkPairsAux___main___closed__2(); diff --git a/stage0/stdlib/Init/Lean/Elab/Util.c b/stage0/stdlib/Init/Lean/Elab/Util.c index 404a575e3f..981a4361af 100644 --- a/stage0/stdlib/Init/Lean/Elab/Util.c +++ b/stage0/stdlib/Init/Lean/Elab/Util.c @@ -21,7 +21,6 @@ size_t l_USize_add(size_t, size_t); lean_object* l_AssocList_replace___main___at_Lean_Elab_ElabFnTable_insert___spec__30(lean_object*); lean_object* l_AssocList_foldlM___main___at_Lean_Elab_ElabFnTable_insert___spec__29(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Util_6__ElabAttribute_add___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Environment_8__persistentEnvExtensionsRef; lean_object* l_AssocList_contains___main___at_Lean_Elab_ElabFnTable_insert___spec__26___rarg___boxed(lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Parser_Parser_27__BuiltinParserAttribute_add___closed__2; @@ -34,6 +33,7 @@ lean_object* l_Lean_Elab_macroAttribute___closed__2; lean_object* l_Lean_Elab_adaptMacro___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MacroScopesView_format___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_ElabFnTable_insert___spec__24___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_IO_ofExcept___at___private_Init_Lean_Elab_Util_7__ElabAttribute_add___spec__1(lean_object*, lean_object*); lean_object* l_String_toFormat(lean_object*); extern lean_object* l_Lean_MessageData_ofList___closed__3; lean_object* l_PersistentHashMap_insertAux___main___at_Lean_Elab_ElabFnTable_insert___spec__22(lean_object*); @@ -53,7 +53,6 @@ uint8_t l_AssocList_contains___main___at_Lean_Elab_ElabFnTable_insert___spec__26 lean_object* l_Lean_MacroScopesView_format(lean_object*, lean_object*); size_t l_USize_sub(size_t, size_t); lean_object* l_HashMapImp_insert___at_Lean_Elab_ElabFnTable_insert___spec__25(lean_object*); -lean_object* l___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l_HashMapImp_insert___at_Lean_Elab_ElabFnTable_insert___spec__14___rarg(lean_object*, lean_object*, lean_object*); @@ -66,15 +65,14 @@ lean_object* l_HashMapImp_moveEntries___main___at_Lean_Elab_ElabFnTable_insert__ lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_ref_get(lean_object*, lean_object*); lean_object* l_PersistentHashMap_find_x3f___at_Lean_Elab_ElabFnTable_insert___spec__2(lean_object*); -lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses(lean_object*); lean_object* lean_get_namespaces(lean_object*); +lean_object* l___private_Init_Lean_Elab_Util_9__regTraceClasses(lean_object*); lean_object* l_HashMapImp_find_x3f___at_Lean_Elab_ElabFnTable_insert___spec__7(lean_object*); lean_object* l_Lean_Syntax_reprint___main(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_registerBuiltinMacroAttr___lambda__1___closed__2; -lean_object* l___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_AssocList_find___main___at_Lean_Elab_ElabFnTable_insert___spec__6___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_adaptMacro___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -85,15 +83,17 @@ extern lean_object* l_String_splitAux___main___closed__1; lean_object* l_PersistentHashMap_find_x3f___at_Lean_Elab_ElabFnTable_insert___spec__2___rarg___boxed(lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAux___main___at_Lean_Elab_ElabFnTable_insert___spec__11(lean_object*); lean_object* l_Lean_Elab_mkElabAttributeAux___rarg___closed__3; +lean_object* l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; lean_object* l___private_Init_Lean_Elab_Util_2__throwUnexpectedElabType___rarg(lean_object*, lean_object*); size_t l_USize_shiftRight(size_t, size_t); +lean_object* l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3; lean_object* l_Lean_SMap_insert___at_Lean_Elab_ElabFnTable_insert___spec__20(lean_object*); +lean_object* l_IO_ofExcept___at___private_Init_Lean_Elab_Util_7__ElabAttribute_add___spec__1___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_mkAttributeImplOfConstantUnsafe___closed__3; lean_object* l_AssocList_replace___main___at_Lean_Elab_ElabFnTable_insert___spec__19(lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_Elab_getMacros___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_Inhabited___closed__1; lean_object* l_Lean_Syntax_truncateTrailing(lean_object*); -lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__2; lean_object* l_Lean_Elab_macroAttribute___closed__3; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_ElabFnTable_insert___spec__24___rarg(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_AttributeImpl_inhabited___closed__2; @@ -102,26 +102,29 @@ lean_object* l_Lean_Elab_checkSyntaxNodeKindAtNamespaces___main(lean_object*, le lean_object* l_Lean_SMap_empty___at_Lean_Elab_mkElabAttributeAux___spec__4___closed__2; lean_object* l_Lean_Elab_registerBuiltinMacroAttr___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_foldlM___main___at_Lean_Elab_ElabFnTable_insert___spec__29___rarg(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Util_8__expandMacroFns___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_HashMapImp_insert___at_Lean_Elab_ElabFnTable_insert___spec__14(lean_object*); lean_object* l_Lean_Elab_mkElabAttributeAux___rarg___lambda__1(lean_object*); lean_object* l_Lean_registerEnvExtensionUnsafe___at_Lean_Elab_mkElabAttributeAux___spec__3___rarg___closed__3; -lean_object* l_IO_ofExcept___at___private_Init_Lean_Elab_Util_6__ElabAttribute_add___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Util_6__ElabAttribute_addExtensionEntry(lean_object*); lean_object* l_Lean_Elab_addBuiltinMacro(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_ElabAttribute_inhabited___closed__6; lean_object* l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__1; extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__1; +lean_object* l_Lean_Elab_evalSyntaxConstant___closed__1; extern lean_object* l_Lean_mkAttributeImplOfConstant___closed__1; +lean_object* l___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Util_7__ElabAttribute_add___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_macroAttribute___closed__5; lean_object* l_Lean_Elab_checkSyntaxNodeKind___closed__2; -lean_object* l___private_Init_Lean_Elab_Util_3__mkElabFnOfConstantUnsafe___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_ElabAttribute_inhabited___closed__5; -lean_object* l___private_Init_Lean_Elab_Util_5__ElabAttribute_addExtensionEntry(lean_object*); +lean_object* l___private_Init_Lean_Elab_Util_7__ElabAttribute_add(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Util_4__evalConstant(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_checkSyntaxNodeKindAtNamespaces(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_empty___at_Lean_Elab_ElabAttributeExtensionState_inhabited___spec__1(lean_object*); lean_object* l_Lean_Elab_declareBuiltinMacro___closed__7; -lean_object* l___private_Init_Lean_Elab_Util_6__ElabAttribute_add(lean_object*); uint8_t l_Lean_Elab_getBetterRef___lambda__1(lean_object*, lean_object*); lean_object* l_PersistentHashMap_empty___at_Lean_Elab_ElabAttributeExtensionState_inhabited___spec__3(lean_object*); extern lean_object* l_Lean_EnvExtension_Inhabited___rarg___closed__1; @@ -132,7 +135,6 @@ lean_object* l_Lean_SMap_empty___at_Lean_Elab_mkElabAttributeAux___spec__4___clo lean_object* l_HashMapImp_expand___at_Lean_Elab_ElabFnTable_insert___spec__16(lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_getMacros___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__2; -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___spec__1(lean_object*); lean_object* l_HashMapImp_expand___at_Lean_Elab_ElabFnTable_insert___spec__16___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_registerBuiltinMacroAttr___lambda__1___closed__1; lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); @@ -144,22 +146,23 @@ lean_object* l_Lean_Elab_ElabAttributeExtensionState_inhabited___closed__1; lean_object* l_Lean_Elab_liftMacroM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkSyntaxNodeKindAtNamespaces___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerEnvExtensionUnsafe___at_Lean_Elab_mkElabAttributeAux___spec__3(lean_object*); +extern lean_object* l_Lean_Parser_Syntax_paren___elambda__1___closed__1; lean_object* l_PersistentHashMap_find_x3f___at_Lean_Elab_getMacros___spec__2___boxed(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); uint8_t l_AssocList_contains___main___at_Lean_Elab_ElabFnTable_insert___spec__15___rarg(lean_object*, lean_object*); lean_object* l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__3; lean_object* l_PersistentHashMap_insertAux___main___at_Lean_Elab_ElabFnTable_insert___spec__22___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_HashMapImp_find_x3f___at_Lean_Elab_getMacros___spec__5___boxed(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___spec__2(lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_ElabFnTable_insert___spec__1___rarg___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Util_4__evalConstant___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_HashMapImp_find_x3f___at_Lean_Elab_ElabFnTable_insert___spec__5___rarg(lean_object*, lean_object*); lean_object* l_PersistentHashMap_find_x3f___at_Lean_Elab_ElabFnTable_insert___spec__2___rarg(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Util_3__mkElabFnOfConstantUnsafe(lean_object*); lean_object* l_Lean_Elab_registerBuiltinMacroAttr(lean_object*); size_t l_Lean_Name_hash(lean_object*); lean_object* l_Nat_repr(lean_object*); -lean_object* l___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Char_HasRepr___closed__1; lean_object* l_Lean_Elab_registerBuiltinMacroAttr___lambda__1___closed__4; lean_object* l_Lean_Elab_getMacros(lean_object*, lean_object*, lean_object*, lean_object*); @@ -171,8 +174,10 @@ lean_object* l_AssocList_find___main___at_Lean_Elab_ElabFnTable_insert___spec__6 lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_SMap_empty___at_Lean_Elab_mkElabAttributeAux___spec__4___closed__3; lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_Elab_getMacros___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__2; lean_object* l_Lean_Elab_mkElabAttributeAux___rarg___lambda__2(lean_object*); lean_object* l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed__2; +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_eval_const(lean_object*, lean_object*); lean_object* l_Lean_Elab_registerBuiltinMacroAttr___lambda__1___closed__3; lean_object* l_Lean_registerEnvExtensionUnsafe___at_Lean_Elab_mkElabAttributeAux___spec__3___rarg___closed__2; @@ -192,7 +197,6 @@ lean_object* l_AssocList_contains___main___at_Lean_Elab_ElabFnTable_insert___spe lean_object* l_PersistentHashMap_insert___at_Lean_Elab_ElabFnTable_insert___spec__21(lean_object*); size_t lean_usize_modn(size_t, lean_object*); extern lean_object* l___private_Init_Lean_Environment_5__envExtensionsRef; -lean_object* l_Lean_Elab_mkElabFnOfConstant(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); lean_object* l_mkHashMap___at_Lean_Elab_ElabAttribute_inhabited___spec__2(lean_object*); lean_object* l_mkHashMap___at_Lean_Elab_mkElabAttributeAux___spec__5(lean_object*); @@ -205,12 +209,13 @@ lean_object* l_List_redLength___main___rarg(lean_object*); lean_object* l_Lean_Elab_liftMacroM(lean_object*, lean_object*); lean_object* l_Lean_Elab_addMacroStack___closed__1; lean_object* l_mkHashMapImp___rarg(lean_object*); +lean_object* l___private_Init_Lean_Elab_Util_6__ElabAttribute_addExtensionEntry___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__3; lean_object* l_mkHashMap___at_Lean_Elab_ElabAttributeExtensionState_inhabited___spec__2(lean_object*); lean_object* l_Lean_Elab_getBetterRef___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Util_5__ElabAttribute_addExtensionEntry___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_ElabFnTable_insert(lean_object*); lean_object* l_AssocList_find___main___at_Lean_Elab_ElabFnTable_insert___spec__8(lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_declareBuiltinMacro(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__3; lean_object* l_Lean_ConstantInfo_type(lean_object*); @@ -231,8 +236,8 @@ lean_object* l_Lean_Elab_mkElabAttributeAux___rarg___lambda__2___boxed(lean_obje lean_object* l_Lean_Elab_declareBuiltinMacro___closed__4; lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_ElabFnTable_insert___spec__1___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__3; -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_mkElabAttributeAux___rarg___closed__2; +lean_object* l___private_Init_Lean_Elab_Util_3__evalConstantUnsafe___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Util_2__throwUnexpectedElabType___rarg___closed__2; lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__1; lean_object* l___private_Init_Lean_Elab_Util_1__ElabAttribute_mkInitial(lean_object*); @@ -240,6 +245,7 @@ lean_object* l_Lean_Elab_registerBuiltinMacroAttr___closed__1; lean_object* l_AssocList_find___main___at_Lean_Elab_ElabFnTable_insert___spec__8___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__1; +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_find_x3f___at_Lean_Elab_getMacros___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Elab_registerBuiltinMacroAttr___closed__2; lean_object* l_Lean_Elab_getMacros___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -247,9 +253,7 @@ lean_object* l_PersistentHashMap_insertAux___main___at_Lean_Elab_ElabFnTable_ins lean_object* l_Lean_Elab_ElabAttribute_inhabited___closed__3; lean_object* l_Lean_Elab_macroAttribute; lean_object* lean_environment_main_module(lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___spec__2(lean_object*); extern lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4___closed__2; -lean_object* l___private_Init_Lean_Elab_Util_6__ElabAttribute_add___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_HashMapImp_find_x3f___at_Lean_Elab_ElabFnTable_insert___spec__7___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_checkSyntaxNodeKind___closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -257,8 +261,6 @@ uint8_t l_USize_decLe(size_t, size_t); lean_object* l_HashMapImp_insert___at_Lean_Elab_ElabFnTable_insert___spec__25___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_mkElabAttribute(lean_object*); lean_object* l_AssocList_foldlM___main___at_Lean_Elab_ElabFnTable_insert___spec__18___rarg(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Util_7__expandMacroFns___main(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_nameToExprAux___main(lean_object*); lean_object* l_Lean_SMap_empty___at_Lean_Elab_mkBuiltinMacroFnTable___spec__1___closed__2; lean_object* l_Lean_Environment_addAndCompile(lean_object*, lean_object*, lean_object*); @@ -279,6 +281,7 @@ lean_object* l_Lean_Elab_declareBuiltinMacro___closed__2; lean_object* l_HashMapImp_find_x3f___at_Lean_Elab_ElabFnTable_insert___spec__5___rarg___boxed(lean_object*, lean_object*); lean_object* l_HashMapImp_find_x3f___at_Lean_Elab_ElabFnTable_insert___spec__5(lean_object*); lean_object* l_Lean_SMap_empty___at_Lean_Elab_ElabAttributeExtensionState_inhabited___spec__1___closed__3; +lean_object* l_Lean_Elab_evalSyntaxConstant(lean_object*, lean_object*); lean_object* l_Lean_Elab_ElabAttribute_inhabited___closed__1; lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_Elab_ElabFnTable_insert___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_ElabAttribute_inhabited___closed__2; @@ -295,6 +298,7 @@ lean_object* l_Lean_Elab_declareBuiltinMacro___closed__1; extern lean_object* l_Lean_mkAppStx___closed__9; lean_object* l_AssocList_contains___main___at_Lean_Elab_ElabFnTable_insert___spec__15___rarg___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Util_1__ElabAttribute_mkInitial___rarg(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers(lean_object*); lean_object* lean_io_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_insert___at_Lean_Elab_ElabFnTable_insert___spec__9(lean_object*); lean_object* l_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); @@ -319,6 +323,7 @@ lean_object* l_List_foldl___main___at_Lean_MacroScopesView_review___spec__1(lean lean_object* l_Lean_SMap_insert___at_Lean_Elab_ElabFnTable_insert___spec__9___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkSyntaxNodeKind(lean_object*, lean_object*); lean_object* l_AssocList_find___main___at_Lean_Elab_ElabFnTable_insert___spec__8___rarg___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Util_7__ElabAttribute_add___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_mkHashMap___at_Lean_Elab_ElabAttribute_inhabited___spec__2___rarg(lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_Elab_ElabFnTable_insert___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_contains___main___at_Lean_Elab_ElabFnTable_insert___spec__26(lean_object*); @@ -335,7 +340,6 @@ uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_find___main___at_Lean_Elab_getMacros___spec__6(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; lean_object* lean_usize_to_nat(size_t); lean_object* l_Lean_Elab_mkMacroAttribute___closed__2; lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_ElabFnTable_insert___spec__1(lean_object*); @@ -344,33 +348,32 @@ lean_object* l_Lean_SMap_empty___at_Lean_Elab_ElabAttribute_inhabited___spec__1_ lean_object* l_Lean_Elab_builtinMacroFnTable; lean_object* l_Lean_SMap_empty___at_Lean_Elab_ElabAttributeExtensionState_inhabited___spec__1___closed__2; lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__2; lean_object* l_Lean_Elab_mkMacroAttribute___closed__1; -lean_object* l_IO_ofExcept___at___private_Init_Lean_Elab_Util_6__ElabAttribute_add___spec__1(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_empty___at_Lean_Elab_ElabAttribute_inhabited___spec__1(lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___spec__1(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Util_8__expandMacroFns(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_ElabFnTable_insert___spec__13___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_registerBuiltinMacroAttr___closed__4; -lean_object* l___private_Init_Lean_Elab_Util_7__expandMacroFns(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__4; extern lean_object* l_Lean_initAttr; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_ElabFnTable_insert___spec__24(lean_object*); lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__1; lean_object* l_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_find___main___at_Lean_Elab_ElabFnTable_insert___spec__6(lean_object*); lean_object* l_PersistentHashMap_findAux___main___at_Lean_Elab_getMacros___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_find___main___at_Lean_Elab_getMacros___spec__6___boxed(lean_object*, lean_object*); lean_object* l_HashMapImp_expand___at_Lean_Elab_ElabFnTable_insert___spec__27(lean_object*); -lean_object* l_Lean_Elab_mkElabFnOfConstant___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_declareBuiltinMacro___closed__3; +lean_object* l___private_Init_Lean_Elab_Util_3__evalConstantUnsafe(lean_object*); lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_Elab_ElabFnTable_insert___spec__12___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; lean_object* l_PersistentHashMap_insert___at_Lean_Elab_ElabFnTable_insert___spec__21___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_Elab_ElabFnTable_insert___spec__12(lean_object*); lean_object* l_Lean_Syntax_prettyPrint(lean_object* x_1) { @@ -3775,7 +3778,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Util_2__throwUnexpec return x_2; } } -lean_object* l___private_Init_Lean_Elab_Util_3__mkElabFnOfConstantUnsafe___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Elab_Util_3__evalConstantUnsafe___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -3842,15 +3845,15 @@ return x_18; } } } -lean_object* l___private_Init_Lean_Elab_Util_3__mkElabFnOfConstantUnsafe(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_Util_3__evalConstantUnsafe(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Util_3__mkElabFnOfConstantUnsafe___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Util_3__evalConstantUnsafe___rarg), 3, 0); return x_2; } } -lean_object* l_Lean_Elab_mkElabFnOfConstant(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_Util_4__evalConstant(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; @@ -3858,18 +3861,37 @@ x_5 = l_Lean_mkAttributeImplOfConstant___closed__1; return x_5; } } -lean_object* l_Lean_Elab_mkElabFnOfConstant___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_Util_4__evalConstant___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_mkElabFnOfConstant(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Elab_Util_4__evalConstant(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); return x_5; } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___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* _init_l_Lean_Elab_evalSyntaxConstant___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkAppStx___closed__2; +x_2 = l_Lean_Parser_Syntax_paren___elambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Elab_evalSyntaxConstant(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = l_Lean_Elab_evalSyntaxConstant___closed__1; +x_4 = l___private_Init_Lean_Elab_Util_3__evalConstantUnsafe___rarg(x_1, x_3, x_2); +return x_4; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; uint8_t x_9; @@ -3898,7 +3920,7 @@ x_14 = lean_ctor_get(x_11, 1); lean_inc(x_14); lean_inc(x_1); lean_inc(x_2); -x_15 = l___private_Init_Lean_Elab_Util_3__mkElabFnOfConstantUnsafe___rarg(x_2, x_1, x_14); +x_15 = l___private_Init_Lean_Elab_Util_3__evalConstantUnsafe___rarg(x_2, x_1, x_14); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; @@ -3934,15 +3956,15 @@ goto _start; } } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___spec__1(lean_object* x_1) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___spec__1___rarg___boxed), 7, 0); +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___spec__1___rarg___boxed), 7, 0); return x_2; } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___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) { _start: { lean_object* x_8; uint8_t x_9; @@ -3970,7 +3992,7 @@ lean_dec(x_5); x_14 = lean_unsigned_to_nat(0u); lean_inc(x_2); lean_inc(x_1); -x_15 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___spec__1___rarg(x_1, x_2, x_11, x_11, x_14, x_6, x_7); +x_15 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___spec__1___rarg(x_1, x_2, x_11, x_11, x_14, x_6, x_7); lean_dec(x_11); if (lean_obj_tag(x_15) == 0) { @@ -4013,15 +4035,15 @@ return x_22; } } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___spec__2(lean_object* x_1) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___spec__2___rarg___boxed), 7, 0); +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___spec__2___rarg___boxed), 7, 0); return x_2; } } -lean_object* l___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; @@ -4035,7 +4057,7 @@ x_8 = lean_ctor_get(x_6, 1); lean_inc(x_8); lean_dec(x_6); x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___spec__2___rarg(x_1, x_3, x_4, x_4, x_9, x_7, x_8); +x_10 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___spec__2___rarg(x_1, x_3, x_4, x_4, x_9, x_7, x_8); if (lean_obj_tag(x_10) == 0) { uint8_t x_11; @@ -4118,45 +4140,45 @@ return x_27; } } } -lean_object* l___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___rarg___boxed), 5, 0); return x_2; } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___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* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___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) { _start: { lean_object* x_8; -x_8 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_4); lean_dec(x_3); return x_8; } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___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* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___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) { _start: { lean_object* x_8; -x_8 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_4); lean_dec(x_3); return x_8; } } -lean_object* l___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___rarg(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___rarg(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_2); return x_6; } } -lean_object* l___private_Init_Lean_Elab_Util_5__ElabAttribute_addExtensionEntry___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Lean_Elab_Util_6__ElabAttribute_addExtensionEntry___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; lean_object* x_10; @@ -4184,15 +4206,15 @@ lean_ctor_set(x_10, 1, x_9); return x_10; } } -lean_object* l___private_Init_Lean_Elab_Util_5__ElabAttribute_addExtensionEntry(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_Util_6__ElabAttribute_addExtensionEntry(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Util_5__ElabAttribute_addExtensionEntry___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Util_6__ElabAttribute_addExtensionEntry___rarg), 2, 0); return x_2; } } -lean_object* l_IO_ofExcept___at___private_Init_Lean_Elab_Util_6__ElabAttribute_add___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_IO_ofExcept___at___private_Init_Lean_Elab_Util_7__ElabAttribute_add___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -4219,13 +4241,13 @@ return x_7; } } } -lean_object* l___private_Init_Lean_Elab_Util_6__ElabAttribute_add___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, uint8_t x_7, lean_object* x_8) { +lean_object* l___private_Init_Lean_Elab_Util_7__ElabAttribute_add___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, uint8_t x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_inc(x_5); lean_inc(x_4); -x_9 = l___private_Init_Lean_Elab_Util_3__mkElabFnOfConstantUnsafe___rarg(x_4, x_2, x_5); +x_9 = l___private_Init_Lean_Elab_Util_3__evalConstantUnsafe___rarg(x_4, x_2, x_5); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; lean_object* x_11; lean_object* x_12; @@ -4250,7 +4272,7 @@ lean_inc(x_13); lean_dec(x_9); lean_inc(x_4); x_14 = l_Lean_Elab_syntaxNodeKindOfAttrParam(x_4, x_1, x_6); -x_15 = l_IO_ofExcept___at___private_Init_Lean_Elab_Util_6__ElabAttribute_add___spec__1(x_14, x_8); +x_15 = l_IO_ofExcept___at___private_Init_Lean_Elab_Util_7__ElabAttribute_add___spec__1(x_14, x_8); lean_dec(x_14); if (lean_obj_tag(x_15) == 0) { @@ -4320,30 +4342,30 @@ return x_30; } } } -lean_object* l___private_Init_Lean_Elab_Util_6__ElabAttribute_add(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_Util_7__ElabAttribute_add(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Util_6__ElabAttribute_add___rarg___boxed), 8, 0); +x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Util_7__ElabAttribute_add___rarg___boxed), 8, 0); return x_2; } } -lean_object* l_IO_ofExcept___at___private_Init_Lean_Elab_Util_6__ElabAttribute_add___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_IO_ofExcept___at___private_Init_Lean_Elab_Util_7__ElabAttribute_add___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_IO_ofExcept___at___private_Init_Lean_Elab_Util_6__ElabAttribute_add___spec__1(x_1, x_2); +x_3 = l_IO_ofExcept___at___private_Init_Lean_Elab_Util_7__ElabAttribute_add___spec__1(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l___private_Init_Lean_Elab_Util_6__ElabAttribute_add___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Init_Lean_Elab_Util_7__ElabAttribute_add___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { uint8_t x_9; lean_object* x_10; x_9 = lean_unbox(x_7); lean_dec(x_7); -x_10 = l___private_Init_Lean_Elab_Util_6__ElabAttribute_add___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_9, x_8); +x_10 = l___private_Init_Lean_Elab_Util_7__ElabAttribute_add___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_9, x_8); lean_dec(x_6); lean_dec(x_1); return x_10; @@ -5247,7 +5269,7 @@ lean_object* _init_l_Lean_Elab_mkElabAttributeAux___rarg___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Util_5__ElabAttribute_addExtensionEntry___rarg), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Util_6__ElabAttribute_addExtensionEntry___rarg), 2, 0); return x_1; } } @@ -5283,7 +5305,7 @@ lean_inc(x_6); x_8 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Util_1__ElabAttribute_mkInitial___rarg___boxed), 2, 1); lean_closure_set(x_8, 0, x_6); lean_inc(x_3); -x_9 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Util_4__ElabAttribute_addImportedParsers___rarg___boxed), 5, 2); +x_9 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Util_5__ElabAttribute_addImportedParsers___rarg___boxed), 5, 2); lean_closure_set(x_9, 0, x_3); lean_closure_set(x_9, 1, x_6); x_10 = l_Lean_Elab_mkElabAttributeAux___rarg___closed__1; @@ -5310,7 +5332,7 @@ x_17 = l_Lean_Elab_mkElabAttributeAux___rarg___closed__4; lean_inc(x_5); x_18 = lean_string_append(x_5, x_17); lean_inc(x_15); -x_19 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Util_6__ElabAttribute_add___rarg___boxed), 8, 3); +x_19 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Util_7__ElabAttribute_add___rarg___boxed), 8, 3); lean_closure_set(x_19, 0, x_2); lean_closure_set(x_19, 1, x_3); lean_closure_set(x_19, 2, x_15); @@ -5837,7 +5859,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = l_Lean_mkAppStx___closed__6; lean_inc(x_1); x_9 = l_Lean_Elab_syntaxNodeKindOfAttrParam(x_1, x_8, x_3); -x_10 = l_IO_ofExcept___at___private_Init_Lean_Elab_Util_6__ElabAttribute_add___spec__1(x_9, x_5); +x_10 = l_IO_ofExcept___at___private_Init_Lean_Elab_Util_7__ElabAttribute_add___spec__1(x_9, x_5); lean_dec(x_9); if (lean_obj_tag(x_10) == 0) { @@ -6222,7 +6244,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* l___private_Init_Lean_Elab_Util_7__expandMacroFns___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_Util_8__expandMacroFns___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -6267,11 +6289,11 @@ goto _start; } } } -lean_object* l___private_Init_Lean_Elab_Util_7__expandMacroFns(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_Util_8__expandMacroFns(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Elab_Util_7__expandMacroFns___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Elab_Util_8__expandMacroFns___main(x_1, x_2, x_3, x_4); return x_5; } } @@ -6526,7 +6548,7 @@ lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_10, 0); lean_inc(x_13); lean_dec(x_10); -x_14 = l___private_Init_Lean_Elab_Util_7__expandMacroFns___main(x_2, x_13, x_3, x_4); +x_14 = l___private_Init_Lean_Elab_Util_8__expandMacroFns___main(x_2, x_13, x_3, x_4); return x_14; } } @@ -6855,7 +6877,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_adaptMacro___rarg), 4, 0); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -6865,7 +6887,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__2() { _start: { lean_object* x_1; @@ -6873,21 +6895,21 @@ x_1 = lean_mk_string("step"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; -x_2 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__2; +x_1 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; +x_2 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__2; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_Util_9__regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +x_2 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); if (lean_obj_tag(x_3) == 0) { @@ -6895,7 +6917,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_dec(x_3); -x_5 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_5 = l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3; x_6 = l_Lean_registerTraceClass(x_5, x_4); return x_6; } @@ -6992,6 +7014,8 @@ l___private_Init_Lean_Elab_Util_2__throwUnexpectedElabType___rarg___closed__2 = lean_mark_persistent(l___private_Init_Lean_Elab_Util_2__throwUnexpectedElabType___rarg___closed__2); l___private_Init_Lean_Elab_Util_2__throwUnexpectedElabType___rarg___closed__3 = _init_l___private_Init_Lean_Elab_Util_2__throwUnexpectedElabType___rarg___closed__3(); lean_mark_persistent(l___private_Init_Lean_Elab_Util_2__throwUnexpectedElabType___rarg___closed__3); +l_Lean_Elab_evalSyntaxConstant___closed__1 = _init_l_Lean_Elab_evalSyntaxConstant___closed__1(); +lean_mark_persistent(l_Lean_Elab_evalSyntaxConstant___closed__1); l_Lean_SMap_empty___at_Lean_Elab_mkElabAttributeAux___spec__4___closed__1 = _init_l_Lean_SMap_empty___at_Lean_Elab_mkElabAttributeAux___spec__4___closed__1(); lean_mark_persistent(l_Lean_SMap_empty___at_Lean_Elab_mkElabAttributeAux___spec__4___closed__1); l_Lean_SMap_empty___at_Lean_Elab_mkElabAttributeAux___spec__4___closed__2 = _init_l_Lean_SMap_empty___at_Lean_Elab_mkElabAttributeAux___spec__4___closed__2(); @@ -7085,13 +7109,13 @@ if (lean_io_result_is_error(res)) return res; l_Lean_Elab_macroAttribute = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_macroAttribute); lean_dec_ref(res); -l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1 = _init_l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1); -l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__2 = _init_l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__2); -l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3 = _init_l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3); -res = l___private_Init_Lean_Elab_Util_8__regTraceClasses(lean_io_mk_world()); +l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1 = _init_l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__1); +l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__2 = _init_l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__2); +l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3 = _init_l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_Util_9__regTraceClasses___closed__3); +res = l___private_Init_Lean_Elab_Util_9__regTraceClasses(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_mk_io_result(lean_box(0)); diff --git a/stage0/stdlib/Init/Lean/Expr.c b/stage0/stdlib/Init/Lean/Expr.c index b115b18e5c..11ebdc9c7c 100644 --- a/stage0/stdlib/Init/Lean/Expr.c +++ b/stage0/stdlib/Init/Lean/Expr.c @@ -63,12 +63,14 @@ uint64_t l_Bool_toUInt64(uint8_t); lean_object* l_Lean_Expr_updateMData_x21___closed__2; lean_object* l_Lean_Expr_instantiateLevelParamsArray___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Literal_hasLess; +lean_object* l_Lean_Expr_isOptParam___boxed(lean_object*); lean_object* l_Lean_Expr_updateMData_x21___closed__1; lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__3; lean_object* l_Lean_mkForallEx___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_Data_hasBeq___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkLambda___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAutoParamTactic_x3f(lean_object*); lean_object* l_Lean_mkLit(lean_object*); lean_object* l_Lean_Expr_getAppRevArgs(lean_object*); lean_object* l_Lean_Expr_hasLevelParamEx___boxed(lean_object*); @@ -103,6 +105,7 @@ lean_object* l_Lean_Expr_lt___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_updateLet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appFn_x21(lean_object*); lean_object* l_Lean_Expr_hasLevelMVar___boxed(lean_object*); +lean_object* l_Lean_Expr_isAutoParam___boxed(lean_object*); uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21___closed__2; lean_object* l_Lean_BinderInfo_toUInt64___boxed(lean_object*); @@ -234,6 +237,7 @@ lean_object* l_Lean_mkDecIsTrue___closed__1; lean_object* l_Lean_BinderInfo_beq___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_instantiateLevelParams(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAutoParamTactic_x3f___boxed(lean_object*); lean_object* l_Lean_Expr_Data_hasLevelParam___boxed(lean_object*); lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___main(lean_object*); lean_object* l_Lean_Expr_isFVar___boxed(lean_object*); @@ -303,11 +307,14 @@ lean_object* l_Lean_mkDecIsFalse(lean_object*, lean_object*); uint8_t lean_expr_quick_lt(lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); uint8_t l_Lean_Expr_isAppOfArity___main(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAutoParamTactic_x3f___closed__1; uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l_Lean_Expr_mkData___boxed__const__1; lean_object* l_Lean_MData_empty; size_t lean_usize_of_nat(lean_object*); size_t l_Lean_ExprStructEq_hash(lean_object*); +uint8_t l_Lean_Expr_isAutoParam(lean_object*); +lean_object* l_Lean_Expr_getAutoParamTactic_x3f___closed__2; lean_object* l_Lean_Level_instantiateParams___main(lean_object*, lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); lean_object* l_Lean_Expr_updateSort_x21___closed__2; @@ -446,6 +453,7 @@ lean_object* l_Lean_Expr_Data_hasFVar___boxed(lean_object*); uint8_t l_Lean_Expr_isProj(lean_object*); uint8_t l_Lean_Expr_binderInfo(lean_object*); size_t lean_usize_mix_hash(size_t, size_t); +uint8_t l_Lean_Expr_isOptParam(lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); lean_object* l_Lean_Expr_getArg_x21(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp2(lean_object*, lean_object*, lean_object*); @@ -7292,6 +7300,96 @@ lean_dec(x_1); return x_2; } } +lean_object* _init_l_Lean_Expr_getAutoParamTactic_x3f___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("autoParam"); +return x_1; +} +} +lean_object* _init_l_Lean_Expr_getAutoParamTactic_x3f___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Expr_getAutoParamTactic_x3f___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Expr_getAutoParamTactic_x3f(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = l_Lean_Expr_getAutoParamTactic_x3f___closed__2; +x_3 = lean_unsigned_to_nat(2u); +x_4 = l_Lean_Expr_isAppOfArity___main(x_1, x_2, x_3); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = lean_box(0); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = l_Lean_Expr_appArg_x21(x_1); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Expr_getAutoParamTactic_x3f___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Expr_getAutoParamTactic_x3f(x_1); +lean_dec(x_1); +return x_2; +} +} +uint8_t l_Lean_Expr_isOptParam(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = l_Lean_Expr_getOptParamDefault_x3f___closed__2; +x_3 = lean_unsigned_to_nat(2u); +x_4 = l_Lean_Expr_isAppOfArity___main(x_1, x_2, x_3); +return x_4; +} +} +lean_object* l_Lean_Expr_isOptParam___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_isOptParam(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +uint8_t l_Lean_Expr_isAutoParam(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = l_Lean_Expr_getAutoParamTactic_x3f___closed__2; +x_3 = lean_unsigned_to_nat(2u); +x_4 = l_Lean_Expr_isAppOfArity___main(x_1, x_2, x_3); +return x_4; +} +} +lean_object* l_Lean_Expr_isAutoParam___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_isAutoParam(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} lean_object* l___private_Init_Lean_Expr_10__hasAnyFVarAux___main(lean_object* x_1, lean_object* x_2) { _start: { @@ -7516,7 +7614,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(769u); +x_2 = lean_unsigned_to_nat(781u); x_3 = lean_unsigned_to_nat(18u); x_4 = l_Lean_Expr_appFn_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -7558,7 +7656,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(778u); +x_2 = lean_unsigned_to_nat(790u); x_3 = lean_unsigned_to_nat(18u); x_4 = l_Lean_Expr_constName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -7607,7 +7705,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(787u); +x_2 = lean_unsigned_to_nat(799u); x_3 = lean_unsigned_to_nat(14u); x_4 = l_Lean_Expr_updateSort_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -7664,7 +7762,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(804u); +x_2 = lean_unsigned_to_nat(816u); x_3 = lean_unsigned_to_nat(17u); x_4 = l_Lean_Expr_updateMData_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -7705,7 +7803,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(809u); +x_2 = lean_unsigned_to_nat(821u); x_3 = lean_unsigned_to_nat(18u); x_4 = l_Lean_Expr_updateProj_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -7756,7 +7854,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(818u); +x_2 = lean_unsigned_to_nat(830u); x_3 = lean_unsigned_to_nat(21u); x_4 = l_Lean_Expr_updateForall_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -7800,7 +7898,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(823u); +x_2 = lean_unsigned_to_nat(835u); x_3 = lean_unsigned_to_nat(21u); x_4 = l_Lean_Expr_updateForall_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -7854,7 +7952,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(832u); +x_2 = lean_unsigned_to_nat(844u); x_3 = lean_unsigned_to_nat(17u); x_4 = l_Lean_Expr_updateLambda_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -7898,7 +7996,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(837u); +x_2 = lean_unsigned_to_nat(849u); x_3 = lean_unsigned_to_nat(17u); x_4 = l_Lean_Expr_updateLambda_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -7942,7 +8040,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(846u); +x_2 = lean_unsigned_to_nat(858u); x_3 = lean_unsigned_to_nat(20u); x_4 = l_Lean_Expr_letName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -9937,6 +10035,10 @@ l_Lean_Expr_getOptParamDefault_x3f___closed__1 = _init_l_Lean_Expr_getOptParamDe lean_mark_persistent(l_Lean_Expr_getOptParamDefault_x3f___closed__1); l_Lean_Expr_getOptParamDefault_x3f___closed__2 = _init_l_Lean_Expr_getOptParamDefault_x3f___closed__2(); lean_mark_persistent(l_Lean_Expr_getOptParamDefault_x3f___closed__2); +l_Lean_Expr_getAutoParamTactic_x3f___closed__1 = _init_l_Lean_Expr_getAutoParamTactic_x3f___closed__1(); +lean_mark_persistent(l_Lean_Expr_getAutoParamTactic_x3f___closed__1); +l_Lean_Expr_getAutoParamTactic_x3f___closed__2 = _init_l_Lean_Expr_getAutoParamTactic_x3f___closed__2(); +lean_mark_persistent(l_Lean_Expr_getAutoParamTactic_x3f___closed__2); l_Lean_Expr_updateApp_x21___closed__1 = _init_l_Lean_Expr_updateApp_x21___closed__1(); lean_mark_persistent(l_Lean_Expr_updateApp_x21___closed__1); l_Lean_Expr_updateConst_x21___closed__1 = _init_l_Lean_Expr_updateConst_x21___closed__1(); diff --git a/stage0/stdlib/Init/Lean/Parser/Command.c b/stage0/stdlib/Init/Lean/Parser/Command.c index 33c4e38d8b..6964bf2db6 100644 --- a/stage0/stdlib/Init/Lean/Parser/Command.c +++ b/stage0/stdlib/Init/Lean/Parser/Command.c @@ -96,6 +96,7 @@ lean_object* l_Lean_Parser_Command_protected___elambda__1___closed__2; lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__6; lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_stxQuot___elambda__1___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_haveAssign___closed__2; +extern lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__1; lean_object* l_Lean_Parser_Command_structExplicitBinder___closed__11; lean_object* l_Lean_Parser_Command_declId___elambda__1___closed__3; lean_object* l_Lean_Parser_Command_openRenaming; @@ -202,7 +203,6 @@ lean_object* l_Lean_Parser_Command_structureTk___elambda__1___closed__1; lean_object* l_Lean_Parser_Command_check___closed__5; lean_object* l_Lean_Parser_Command_def___elambda__1___closed__3; lean_object* l_Lean_Parser_Command_attrArg___elambda__1(lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__8; lean_object* l_Lean_Parser_Command_classInductive___elambda__1___closed__5; lean_object* l_Lean_Parser_Command_exit___elambda__1___closed__9; lean_object* l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__3; @@ -317,7 +317,6 @@ lean_object* l_Lean_Parser_Command_openRenamingItem___closed__4; lean_object* l_Lean_Parser_Command_open___elambda__1___closed__6; lean_object* l_Lean_Parser_Command_extends___closed__5; lean_object* l_Lean_Parser_Command_private___closed__5; -lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; lean_object* l_Lean_Parser_Command_resolve__name___elambda__1___closed__9; lean_object* l_Lean_Parser_Command_variables___closed__6; lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__7; @@ -426,6 +425,7 @@ lean_object* l_Lean_Parser_Command_constant___closed__2; lean_object* l_Lean_Parser_Command_export___closed__9; lean_object* l_Lean_Parser_noFirstTokenInfo(lean_object*); lean_object* l_Lean_Parser_Command_check__failure___elambda__1(lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7; lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__2; lean_object* l_Lean_Parser_nonReservedSymbolInfo(lean_object*, uint8_t); lean_object* l_Lean_Parser_Command_example___elambda__1(lean_object*, lean_object*); @@ -586,7 +586,6 @@ lean_object* l_Lean_Parser_Command_end___elambda__1___closed__6; lean_object* l_Lean_Parser_Command_declaration___closed__4; lean_object* l_Lean_Parser_Command_theorem___closed__7; lean_object* l_Lean_Parser_Command_structInstBinder___closed__2; -extern lean_object* l_Lean_mkAppStx___closed__6; lean_object* l_Lean_Parser_Command_instance___elambda__1___closed__1; lean_object* l_Lean_Parser_Command_relaxedInferMod___closed__4; lean_object* l_Lean_Parser_Command_inferMod; @@ -644,6 +643,7 @@ lean_object* l_Lean_Parser_Command_variable; lean_object* l_Lean_Parser_Command_universes___closed__4; lean_object* l_Lean_Parser_Command_classTk___elambda__1___closed__4; lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__6; +extern lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; lean_object* l_Lean_Parser_Command_relaxedInferMod___elambda__1___closed__4; lean_object* l_Lean_Parser_Command_declSig___elambda__1(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__8; @@ -870,7 +870,6 @@ extern lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___a lean_object* l_Lean_Parser_categoryParser___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_variable___elambda__1___closed__6; lean_object* l_Lean_Parser_Command_classInductive___elambda__1___closed__1; -lean_object* l_Lean_Parser_Command_end___elambda__1___closed__9; lean_object* l_Lean_Parser_Command_instance___elambda__1___closed__7; lean_object* l_Lean_Parser_Command_noncomputable___closed__4; lean_object* l_Lean_Parser_Command_structInstBinder___elambda__1___closed__2; @@ -1321,43 +1320,25 @@ return x_17; lean_object* _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("stxQuot"); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_1 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__4() { +lean_object* _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__1; -x_2 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__3; +x_1 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__1; +x_2 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__1; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); return x_4; } } -lean_object* _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__5() { +lean_object* _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__3() { _start: { lean_object* x_1; @@ -1365,41 +1346,41 @@ x_1 = lean_mk_string("`("); return x_1; } } -lean_object* _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__6() { +lean_object* _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__5; +x_1 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__3; x_2 = l_String_trim(x_1); return x_2; } } +lean_object* _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__4; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__5; +x_2 = l_Char_HasRepr___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} lean_object* _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Char_HasRepr___closed__1; -x_2 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__6; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; -x_2 = l_Char_HasRepr___closed__1; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__8; +x_2 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__6; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -1410,7 +1391,7 @@ lean_object* l_Lean_Parser_Term_stxQuot___elambda__1(lean_object* x_1, lean_obje _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__4; +x_3 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_inc(x_2); @@ -1443,13 +1424,13 @@ lean_object* x_80; lean_object* x_81; uint8_t x_82; x_80 = lean_ctor_get(x_79, 1); lean_inc(x_80); lean_dec(x_79); -x_81 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__6; +x_81 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__4; x_82 = lean_string_dec_eq(x_80, x_81); lean_dec(x_80); if (x_82 == 0) { lean_object* x_83; lean_object* x_84; -x_83 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; +x_83 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; x_84 = l_Lean_Parser_ParserState_mkErrorsAt(x_76, x_83, x_75); x_35 = x_84; goto block_74; @@ -1465,7 +1446,7 @@ else { lean_object* x_85; lean_object* x_86; lean_dec(x_79); -x_85 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; +x_85 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; x_86 = l_Lean_Parser_ParserState_mkErrorsAt(x_76, x_85, x_75); x_35 = x_86; goto block_74; @@ -1475,7 +1456,7 @@ else { lean_object* x_87; lean_object* x_88; lean_dec(x_77); -x_87 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; +x_87 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; x_88 = l_Lean_Parser_ParserState_mkErrorsAt(x_76, x_87, x_75); x_35 = x_88; goto block_74; @@ -1514,7 +1495,7 @@ if (x_17 == 0) lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; x_18 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__7; x_19 = l_Lean_Parser_ParserState_mkErrorsAt(x_11, x_18, x_10); -x_20 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_20 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_21 = l_Lean_Parser_ParserState_mkNode(x_19, x_20, x_7); return x_21; } @@ -1522,7 +1503,7 @@ else { lean_object* x_22; lean_object* x_23; lean_dec(x_10); -x_22 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_22 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_23 = l_Lean_Parser_ParserState_mkNode(x_11, x_22, x_7); return x_23; } @@ -1533,7 +1514,7 @@ lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_dec(x_14); x_24 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__7; x_25 = l_Lean_Parser_ParserState_mkErrorsAt(x_11, x_24, x_10); -x_26 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_26 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_27 = l_Lean_Parser_ParserState_mkNode(x_25, x_26, x_7); return x_27; } @@ -1544,7 +1525,7 @@ lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_dec(x_12); x_28 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__7; x_29 = l_Lean_Parser_ParserState_mkErrorsAt(x_11, x_28, x_10); -x_30 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_30 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_31 = l_Lean_Parser_ParserState_mkNode(x_29, x_30, x_7); return x_31; } @@ -1554,7 +1535,7 @@ else lean_object* x_32; lean_object* x_33; lean_dec(x_9); lean_dec(x_1); -x_32 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_32 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_33 = l_Lean_Parser_ParserState_mkNode(x_8, x_32, x_7); return x_33; } @@ -1694,7 +1675,7 @@ else lean_object* x_72; lean_object* x_73; lean_dec(x_36); lean_dec(x_1); -x_72 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_72 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_73 = l_Lean_Parser_ParserState_mkNode(x_35, x_72, x_7); return x_73; } @@ -1765,13 +1746,13 @@ lean_object* x_177; lean_object* x_178; uint8_t x_179; x_177 = lean_ctor_get(x_176, 1); lean_inc(x_177); lean_dec(x_176); -x_178 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__6; +x_178 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__4; x_179 = lean_string_dec_eq(x_177, x_178); lean_dec(x_177); if (x_179 == 0) { lean_object* x_180; lean_object* x_181; -x_180 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; +x_180 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; lean_inc(x_91); x_181 = l_Lean_Parser_ParserState_mkErrorsAt(x_173, x_180, x_91); x_132 = x_181; @@ -1787,7 +1768,7 @@ else { lean_object* x_182; lean_object* x_183; lean_dec(x_176); -x_182 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; +x_182 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; lean_inc(x_91); x_183 = l_Lean_Parser_ParserState_mkErrorsAt(x_173, x_182, x_91); x_132 = x_183; @@ -1798,7 +1779,7 @@ else { lean_object* x_184; lean_object* x_185; lean_dec(x_174); -x_184 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; +x_184 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; lean_inc(x_91); x_185 = l_Lean_Parser_ParserState_mkErrorsAt(x_173, x_184, x_91); x_132 = x_185; @@ -1838,7 +1819,7 @@ if (x_109 == 0) lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; x_110 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__7; x_111 = l_Lean_Parser_ParserState_mkErrorsAt(x_103, x_110, x_102); -x_112 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_112 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_113 = l_Lean_Parser_ParserState_mkNode(x_111, x_112, x_99); x_114 = l_Lean_Parser_mergeOrElseErrors(x_113, x_94, x_91); lean_dec(x_91); @@ -1848,7 +1829,7 @@ else { lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_dec(x_102); -x_115 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_115 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_116 = l_Lean_Parser_ParserState_mkNode(x_103, x_115, x_99); x_117 = l_Lean_Parser_mergeOrElseErrors(x_116, x_94, x_91); lean_dec(x_91); @@ -1861,7 +1842,7 @@ lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_dec(x_106); x_118 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__7; x_119 = l_Lean_Parser_ParserState_mkErrorsAt(x_103, x_118, x_102); -x_120 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_120 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_121 = l_Lean_Parser_ParserState_mkNode(x_119, x_120, x_99); x_122 = l_Lean_Parser_mergeOrElseErrors(x_121, x_94, x_91); lean_dec(x_91); @@ -1874,7 +1855,7 @@ lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_dec(x_104); x_123 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__7; x_124 = l_Lean_Parser_ParserState_mkErrorsAt(x_103, x_123, x_102); -x_125 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_125 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_126 = l_Lean_Parser_ParserState_mkNode(x_124, x_125, x_99); x_127 = l_Lean_Parser_mergeOrElseErrors(x_126, x_94, x_91); lean_dec(x_91); @@ -1886,7 +1867,7 @@ else lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_dec(x_101); lean_dec(x_1); -x_128 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_128 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_129 = l_Lean_Parser_ParserState_mkNode(x_100, x_128, x_99); x_130 = l_Lean_Parser_mergeOrElseErrors(x_129, x_94, x_91); lean_dec(x_91); @@ -2028,7 +2009,7 @@ else lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_dec(x_133); lean_dec(x_1); -x_169 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_169 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_170 = l_Lean_Parser_ParserState_mkNode(x_132, x_169, x_99); x_171 = l_Lean_Parser_mergeOrElseErrors(x_170, x_94, x_91); lean_dec(x_91); @@ -2044,7 +2025,7 @@ lean_object* _init_l_Lean_Parser_Term_stxQuot___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__6; +x_1 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__4; x_2 = l_Lean_Parser_Level_paren___closed__1; x_3 = l_Lean_Parser_symbolInfo(x_1, x_2); return x_3; @@ -2098,7 +2079,7 @@ lean_object* _init_l_Lean_Parser_Term_stxQuot___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_1 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_2 = l_Lean_Parser_Term_stxQuot___closed__5; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; @@ -2108,7 +2089,7 @@ lean_object* _init_l_Lean_Parser_Term_stxQuot___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__4; +x_1 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_Lean_Parser_Term_stxQuot___closed__6; @@ -2149,7 +2130,7 @@ _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; x_2 = l_Lean_Parser_termParser___closed__2; -x_3 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; +x_3 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; x_4 = 1; x_5 = l_Lean_Parser_Term_stxQuot; x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); @@ -23103,43 +23084,35 @@ return x_6; lean_object* _init_l_Lean_Parser_Command_end___elambda__1___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("end"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Command_docComment___elambda__1___closed__2; +x_2 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } lean_object* _init_l_Lean_Parser_Command_end___elambda__1___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_docComment___elambda__1___closed__2; -x_2 = l_Lean_Parser_Command_end___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Command_end___elambda__1___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_end___elambda__1___closed__2; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__1; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Parser_Command_end___elambda__1___closed__4() { +lean_object* _init_l_Lean_Parser_Command_end___elambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Command_end___elambda__1___closed__1; -x_2 = l_Lean_Parser_Command_end___elambda__1___closed__3; +x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7; +x_2 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); return x_4; } } -lean_object* _init_l_Lean_Parser_Command_end___elambda__1___closed__5() { +lean_object* _init_l_Lean_Parser_Command_end___elambda__1___closed__4() { _start: { lean_object* x_1; @@ -23147,21 +23120,31 @@ x_1 = lean_mk_string("end "); return x_1; } } -lean_object* _init_l_Lean_Parser_Command_end___elambda__1___closed__6() { +lean_object* _init_l_Lean_Parser_Command_end___elambda__1___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_end___elambda__1___closed__5; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__4; x_2 = l_String_trim(x_1); return x_2; } } +lean_object* _init_l_Lean_Parser_Command_end___elambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Command_end___elambda__1___closed__5; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} lean_object* _init_l_Lean_Parser_Command_end___elambda__1___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Char_HasRepr___closed__1; -x_2 = l_Lean_Parser_Command_end___elambda__1___closed__6; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__6; +x_2 = l_Char_HasRepr___closed__1; x_3 = lean_string_append(x_1, x_2); return x_3; } @@ -23170,18 +23153,8 @@ lean_object* _init_l_Lean_Parser_Command_end___elambda__1___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_end___elambda__1___closed__7; -x_2 = l_Char_HasRepr___closed__1; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Command_end___elambda__1___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Command_end___elambda__1___closed__8; +x_2 = l_Lean_Parser_Command_end___elambda__1___closed__7; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -23192,7 +23165,7 @@ lean_object* l_Lean_Parser_Command_end___elambda__1(lean_object* x_1, lean_objec _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = l_Lean_Parser_Command_end___elambda__1___closed__4; +x_3 = l_Lean_Parser_Command_end___elambda__1___closed__3; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_inc(x_2); @@ -23225,13 +23198,13 @@ lean_object* x_38; lean_object* x_39; uint8_t x_40; x_38 = lean_ctor_get(x_37, 1); lean_inc(x_38); lean_dec(x_37); -x_39 = l_Lean_Parser_Command_end___elambda__1___closed__6; +x_39 = l_Lean_Parser_Command_end___elambda__1___closed__5; x_40 = lean_string_dec_eq(x_38, x_39); lean_dec(x_38); if (x_40 == 0) { lean_object* x_41; lean_object* x_42; -x_41 = l_Lean_Parser_Command_end___elambda__1___closed__9; +x_41 = l_Lean_Parser_Command_end___elambda__1___closed__8; x_42 = l_Lean_Parser_ParserState_mkErrorsAt(x_34, x_41, x_33); x_8 = x_42; goto block_32; @@ -23247,7 +23220,7 @@ else { lean_object* x_43; lean_object* x_44; lean_dec(x_37); -x_43 = l_Lean_Parser_Command_end___elambda__1___closed__9; +x_43 = l_Lean_Parser_Command_end___elambda__1___closed__8; x_44 = l_Lean_Parser_ParserState_mkErrorsAt(x_34, x_43, x_33); x_8 = x_44; goto block_32; @@ -23257,7 +23230,7 @@ else { lean_object* x_45; lean_object* x_46; lean_dec(x_35); -x_45 = l_Lean_Parser_Command_end___elambda__1___closed__9; +x_45 = l_Lean_Parser_Command_end___elambda__1___closed__8; x_46 = l_Lean_Parser_ParserState_mkErrorsAt(x_34, x_45, x_33); x_8 = x_46; goto block_32; @@ -23285,7 +23258,7 @@ lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_dec(x_12); x_15 = l_Lean_nullKind; x_16 = l_Lean_Parser_ParserState_mkNode(x_13, x_15, x_11); -x_17 = l_Lean_Parser_Command_end___elambda__1___closed__2; +x_17 = l_Lean_Parser_Command_end___elambda__1___closed__1; x_18 = l_Lean_Parser_ParserState_mkNode(x_16, x_17, x_7); return x_18; } @@ -23303,7 +23276,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_dec(x_12); x_21 = l_Lean_nullKind; x_22 = l_Lean_Parser_ParserState_mkNode(x_13, x_21, x_11); -x_23 = l_Lean_Parser_Command_end___elambda__1___closed__2; +x_23 = l_Lean_Parser_Command_end___elambda__1___closed__1; x_24 = l_Lean_Parser_ParserState_mkNode(x_22, x_23, x_7); return x_24; } @@ -23313,7 +23286,7 @@ lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean x_25 = l_Lean_Parser_ParserState_restore(x_13, x_11, x_12); x_26 = l_Lean_nullKind; x_27 = l_Lean_Parser_ParserState_mkNode(x_25, x_26, x_11); -x_28 = l_Lean_Parser_Command_end___elambda__1___closed__2; +x_28 = l_Lean_Parser_Command_end___elambda__1___closed__1; x_29 = l_Lean_Parser_ParserState_mkNode(x_27, x_28, x_7); return x_29; } @@ -23324,7 +23297,7 @@ else lean_object* x_30; lean_object* x_31; lean_dec(x_9); lean_dec(x_1); -x_30 = l_Lean_Parser_Command_end___elambda__1___closed__2; +x_30 = l_Lean_Parser_Command_end___elambda__1___closed__1; x_31 = l_Lean_Parser_ParserState_mkNode(x_8, x_30, x_7); return x_31; } @@ -23395,13 +23368,13 @@ lean_object* x_91; lean_object* x_92; uint8_t x_93; x_91 = lean_ctor_get(x_90, 1); lean_inc(x_91); lean_dec(x_90); -x_92 = l_Lean_Parser_Command_end___elambda__1___closed__6; +x_92 = l_Lean_Parser_Command_end___elambda__1___closed__5; x_93 = lean_string_dec_eq(x_91, x_92); lean_dec(x_91); if (x_93 == 0) { lean_object* x_94; lean_object* x_95; -x_94 = l_Lean_Parser_Command_end___elambda__1___closed__9; +x_94 = l_Lean_Parser_Command_end___elambda__1___closed__8; lean_inc(x_49); x_95 = l_Lean_Parser_ParserState_mkErrorsAt(x_87, x_94, x_49); x_58 = x_95; @@ -23417,7 +23390,7 @@ else { lean_object* x_96; lean_object* x_97; lean_dec(x_90); -x_96 = l_Lean_Parser_Command_end___elambda__1___closed__9; +x_96 = l_Lean_Parser_Command_end___elambda__1___closed__8; lean_inc(x_49); x_97 = l_Lean_Parser_ParserState_mkErrorsAt(x_87, x_96, x_49); x_58 = x_97; @@ -23428,7 +23401,7 @@ else { lean_object* x_98; lean_object* x_99; lean_dec(x_88); -x_98 = l_Lean_Parser_Command_end___elambda__1___closed__9; +x_98 = l_Lean_Parser_Command_end___elambda__1___closed__8; lean_inc(x_49); x_99 = l_Lean_Parser_ParserState_mkErrorsAt(x_87, x_98, x_49); x_58 = x_99; @@ -23457,7 +23430,7 @@ lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean lean_dec(x_62); x_65 = l_Lean_nullKind; x_66 = l_Lean_Parser_ParserState_mkNode(x_63, x_65, x_61); -x_67 = l_Lean_Parser_Command_end___elambda__1___closed__2; +x_67 = l_Lean_Parser_Command_end___elambda__1___closed__1; x_68 = l_Lean_Parser_ParserState_mkNode(x_66, x_67, x_57); x_69 = l_Lean_Parser_mergeOrElseErrors(x_68, x_52, x_49); lean_dec(x_49); @@ -23477,7 +23450,7 @@ lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean lean_dec(x_62); x_72 = l_Lean_nullKind; x_73 = l_Lean_Parser_ParserState_mkNode(x_63, x_72, x_61); -x_74 = l_Lean_Parser_Command_end___elambda__1___closed__2; +x_74 = l_Lean_Parser_Command_end___elambda__1___closed__1; x_75 = l_Lean_Parser_ParserState_mkNode(x_73, x_74, x_57); x_76 = l_Lean_Parser_mergeOrElseErrors(x_75, x_52, x_49); lean_dec(x_49); @@ -23489,7 +23462,7 @@ lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean x_77 = l_Lean_Parser_ParserState_restore(x_63, x_61, x_62); x_78 = l_Lean_nullKind; x_79 = l_Lean_Parser_ParserState_mkNode(x_77, x_78, x_61); -x_80 = l_Lean_Parser_Command_end___elambda__1___closed__2; +x_80 = l_Lean_Parser_Command_end___elambda__1___closed__1; x_81 = l_Lean_Parser_ParserState_mkNode(x_79, x_80, x_57); x_82 = l_Lean_Parser_mergeOrElseErrors(x_81, x_52, x_49); lean_dec(x_49); @@ -23502,7 +23475,7 @@ else lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_dec(x_59); lean_dec(x_1); -x_83 = l_Lean_Parser_Command_end___elambda__1___closed__2; +x_83 = l_Lean_Parser_Command_end___elambda__1___closed__1; x_84 = l_Lean_Parser_ParserState_mkNode(x_58, x_83, x_57); x_85 = l_Lean_Parser_mergeOrElseErrors(x_84, x_52, x_49); lean_dec(x_49); @@ -23519,7 +23492,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Command_end___elambda__1___closed__6; +x_2 = l_Lean_Parser_Command_end___elambda__1___closed__5; x_3 = l_Lean_Parser_symbolInfo(x_2, x_1); return x_3; } @@ -23538,7 +23511,7 @@ lean_object* _init_l_Lean_Parser_Command_end___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_end___elambda__1___closed__2; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__1; x_2 = l_Lean_Parser_Command_end___closed__2; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; @@ -23548,7 +23521,7 @@ lean_object* _init_l_Lean_Parser_Command_end___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Command_end___elambda__1___closed__4; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__3; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_Lean_Parser_Command_end___closed__3; @@ -23589,7 +23562,7 @@ _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; x_2 = l_Lean_Parser_regBuiltinCommandParserAttr___closed__4; -x_3 = l_Lean_Parser_Command_end___elambda__1___closed__2; +x_3 = l_Lean_Parser_Command_end___elambda__1___closed__1; x_4 = 1; x_5 = l_Lean_Parser_Command_end; x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); @@ -34173,10 +34146,6 @@ l_Lean_Parser_Term_stxQuot___elambda__1___closed__6 = _init_l_Lean_Parser_Term_s lean_mark_persistent(l_Lean_Parser_Term_stxQuot___elambda__1___closed__6); l_Lean_Parser_Term_stxQuot___elambda__1___closed__7 = _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__7(); lean_mark_persistent(l_Lean_Parser_Term_stxQuot___elambda__1___closed__7); -l_Lean_Parser_Term_stxQuot___elambda__1___closed__8 = _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__8(); -lean_mark_persistent(l_Lean_Parser_Term_stxQuot___elambda__1___closed__8); -l_Lean_Parser_Term_stxQuot___elambda__1___closed__9 = _init_l_Lean_Parser_Term_stxQuot___elambda__1___closed__9(); -lean_mark_persistent(l_Lean_Parser_Term_stxQuot___elambda__1___closed__9); l_Lean_Parser_Term_stxQuot___closed__1 = _init_l_Lean_Parser_Term_stxQuot___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_stxQuot___closed__1); l_Lean_Parser_Term_stxQuot___closed__2 = _init_l_Lean_Parser_Term_stxQuot___closed__2(); @@ -35395,8 +35364,6 @@ l_Lean_Parser_Command_end___elambda__1___closed__7 = _init_l_Lean_Parser_Command lean_mark_persistent(l_Lean_Parser_Command_end___elambda__1___closed__7); l_Lean_Parser_Command_end___elambda__1___closed__8 = _init_l_Lean_Parser_Command_end___elambda__1___closed__8(); lean_mark_persistent(l_Lean_Parser_Command_end___elambda__1___closed__8); -l_Lean_Parser_Command_end___elambda__1___closed__9 = _init_l_Lean_Parser_Command_end___elambda__1___closed__9(); -lean_mark_persistent(l_Lean_Parser_Command_end___elambda__1___closed__9); l_Lean_Parser_Command_end___closed__1 = _init_l_Lean_Parser_Command_end___closed__1(); lean_mark_persistent(l_Lean_Parser_Command_end___closed__1); l_Lean_Parser_Command_end___closed__2 = _init_l_Lean_Parser_Command_end___closed__2(); diff --git a/stage0/stdlib/Init/Lean/Parser/Syntax.c b/stage0/stdlib/Init/Lean/Parser/Syntax.c index 6d969c882e..f261f5b3a7 100644 --- a/stage0/stdlib/Init/Lean/Parser/Syntax.c +++ b/stage0/stdlib/Init/Lean/Parser/Syntax.c @@ -164,7 +164,6 @@ lean_object* l_Lean_Parser_quotedSymbolFn(lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_syntax___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Level_addLit___elambda__1___closed__6; lean_object* l___regBuiltinParser_Lean_Parser_Command_reserve(lean_object*); -extern lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__6; lean_object* l_Lean_Parser_Command_identPrec; lean_object* l_Lean_Parser_Command_infixl___closed__2; lean_object* l_Lean_Parser_Syntax_many1___closed__4; @@ -174,7 +173,6 @@ lean_object* l_Lean_Parser_Command_strLitPrec___closed__2; lean_object* l_Lean_Parser_Syntax_char___closed__2; lean_object* l_Lean_Parser_Command_postfix___elambda__1___closed__8; lean_object* l_Lean_Parser_Syntax_try___elambda__1___closed__8; -extern lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; lean_object* l_Lean_Parser_Syntax_char___elambda__1___closed__5; lean_object* l_Lean_Parser_Syntax_sepBy___closed__4; lean_object* l_Lean_Parser_Command_macro___closed__5; @@ -189,6 +187,7 @@ lean_object* l_Lean_Parser_Syntax_str___elambda__1___closed__6; lean_object* l_Lean_Parser_identEqFn(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_mixfix___elambda__1___closed__1; lean_object* l_Lean_Parser_Command_mixfix___closed__8; +extern lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__4; lean_object* l_Lean_Parser_Syntax_ident___closed__3; lean_object* l_Lean_Parser_Command_macroArgSimple___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_macro__rules___closed__6; @@ -678,6 +677,7 @@ lean_object* l_Lean_Parser_Command_macro___elambda__1___closed__6; lean_object* l_Lean_Parser_Command_macroTailCommand___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_maxPrec___closed__2; lean_object* l_Lean_Parser_optPrecedence___closed__1; +extern lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; lean_object* l_Lean_Parser_Command_reserve___closed__3; uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Parser_Syntax_orelse; @@ -13141,13 +13141,13 @@ lean_object* x_32; lean_object* x_33; uint8_t x_34; x_32 = lean_ctor_get(x_31, 1); lean_inc(x_32); lean_dec(x_31); -x_33 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__6; +x_33 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__4; x_34 = lean_string_dec_eq(x_32, x_33); lean_dec(x_32); if (x_34 == 0) { lean_object* x_35; lean_object* x_36; -x_35 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; +x_35 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; x_36 = l_Lean_Parser_ParserState_mkErrorsAt(x_28, x_35, x_27); x_3 = x_36; goto block_22; @@ -13163,7 +13163,7 @@ else { lean_object* x_37; lean_object* x_38; lean_dec(x_31); -x_37 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; +x_37 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; x_38 = l_Lean_Parser_ParserState_mkErrorsAt(x_28, x_37, x_27); x_3 = x_38; goto block_22; @@ -13173,7 +13173,7 @@ else { lean_object* x_39; lean_object* x_40; lean_dec(x_29); -x_39 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; +x_39 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; x_40 = l_Lean_Parser_ParserState_mkErrorsAt(x_28, x_39, x_27); x_3 = x_40; goto block_22; @@ -13322,7 +13322,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__6; +x_2 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__4; x_3 = l_Lean_Parser_symbolInfo(x_2, x_1); return x_3; } @@ -13637,13 +13637,13 @@ lean_object* x_53; lean_object* x_54; uint8_t x_55; x_53 = lean_ctor_get(x_52, 1); lean_inc(x_53); lean_dec(x_52); -x_54 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__6; +x_54 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__4; x_55 = lean_string_dec_eq(x_53, x_54); lean_dec(x_53); if (x_55 == 0) { lean_object* x_56; lean_object* x_57; -x_56 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; +x_56 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; x_57 = l_Lean_Parser_ParserState_mkErrorsAt(x_49, x_56, x_48); x_20 = x_57; goto block_43; @@ -13659,7 +13659,7 @@ else { lean_object* x_58; lean_object* x_59; lean_dec(x_52); -x_58 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; +x_58 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; x_59 = l_Lean_Parser_ParserState_mkErrorsAt(x_49, x_58, x_48); x_20 = x_59; goto block_43; @@ -13669,7 +13669,7 @@ else { lean_object* x_60; lean_object* x_61; lean_dec(x_50); -x_60 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; +x_60 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; x_61 = l_Lean_Parser_ParserState_mkErrorsAt(x_49, x_60, x_48); x_20 = x_61; goto block_43; @@ -13979,13 +13979,13 @@ lean_object* x_46; lean_object* x_47; uint8_t x_48; x_46 = lean_ctor_get(x_45, 1); lean_inc(x_46); lean_dec(x_45); -x_47 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__6; +x_47 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__4; x_48 = lean_string_dec_eq(x_46, x_47); lean_dec(x_46); if (x_48 == 0) { lean_object* x_49; lean_object* x_50; -x_49 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; +x_49 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; lean_inc(x_9); x_50 = l_Lean_Parser_ParserState_mkErrorsAt(x_42, x_49, x_9); x_21 = x_50; @@ -14001,7 +14001,7 @@ else { lean_object* x_51; lean_object* x_52; lean_dec(x_45); -x_51 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; +x_51 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; lean_inc(x_9); x_52 = l_Lean_Parser_ParserState_mkErrorsAt(x_42, x_51, x_9); x_21 = x_52; @@ -14012,7 +14012,7 @@ else { lean_object* x_53; lean_object* x_54; lean_dec(x_43); -x_53 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__9; +x_53 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__7; lean_inc(x_9); x_54 = l_Lean_Parser_ParserState_mkErrorsAt(x_42, x_53, x_9); x_21 = x_54; diff --git a/stage0/stdlib/Init/Lean/Parser/Tactic.c b/stage0/stdlib/Init/Lean/Parser/Tactic.c index 394f911699..a9d810d3f1 100644 --- a/stage0/stdlib/Init/Lean/Parser/Tactic.c +++ b/stage0/stdlib/Init/Lean/Parser/Tactic.c @@ -26,45 +26,29 @@ lean_object* l_Lean_Parser_Tactic_orelse___closed__2; lean_object* l_Lean_Parser_Tactic_intros___closed__7; lean_object* l_Lean_Parser_Tactic_allGoals___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__1; -lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__4; -lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__4; extern lean_object* l_Lean_Parser_manyAux___main___closed__1; lean_object* l_Lean_Parser_Tactic_subst___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_revert___closed__2; -lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__5; lean_object* l_Lean_Parser_Tactic_case___closed__6; lean_object* l_Lean_Parser_andthenInfo(lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_Term_have___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_apply___closed__2; -lean_object* l_Lean_Parser_regBuiltinTacticParserAttr___closed__1; -lean_object* l_Lean_Parser_sepByInfo(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_clear___elambda__1___closed__2; -lean_object* l_Lean_Parser_Term_byTactic___closed__4; lean_object* l_Lean_Parser_Tactic_allGoals___elambda__1(lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14; lean_object* l_Lean_Parser_Tactic_intros___elambda__1___closed__5; extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___closed__2; lean_object* l_Lean_Parser_Tactic_intros___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_orelse___closed__1; -lean_object* l_Lean_Parser_Tactic_nonEmptySeq___closed__2; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_underscore___closed__2; -lean_object* l_Lean_Parser_Tactic_seq___elambda__1___closed__2; -extern lean_object* l_Lean_Parser_Term_have___elambda__1___closed__10; -lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__1; +extern lean_object* l_Lean_Parser_Tactic_seq___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_revert___elambda__1___closed__6; -lean_object* l_Lean_Parser_Tactic_seq; +extern lean_object* l_Lean_Parser_Tactic_seq; lean_object* l_Lean_Parser_Tactic_skip___closed__3; -lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_subst___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_traceState___elambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_intro___closed__4; lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__3; -lean_object* l_Lean_Parser_sepByFn___at_Lean_Parser_Tactic_seq___elambda__1___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_sepByFn___at_Lean_Parser_Tactic_seq___elambda__1___spec__1(uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Parser_regTacticParserAttribute___closed__2; -lean_object* l_Lean_Parser_Term_tacticBlock___closed__3; +extern lean_object* l_Lean_Parser_Term_tacticBlock___closed__3; lean_object* l_Lean_Parser_Tactic_intro___elambda__1___closed__7; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_nestedTacticBlock(lean_object*); extern lean_object* l_Lean_Parser_Term_subst___elambda__1___closed__1; @@ -72,8 +56,6 @@ extern lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_clear___closed__6; lean_object* l_Lean_Parser_Tactic_assumption___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__4; -lean_object* l_Lean_Parser_Term_byTactic; -extern lean_object* l_Lean_Parser_Term_have___closed__3; lean_object* l_Lean_Parser_ParserState_pushSyntax(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly; lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_revert___elambda__1___spec__1(lean_object*, lean_object*); @@ -84,54 +66,39 @@ extern lean_object* l_Lean_Parser_Term_subtype___closed__1; lean_object* l_Lean_Parser_Tactic_skip___closed__2; lean_object* l_Lean_Parser_ParserState_mkNode(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_apply___closed__4; -lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__3; lean_object* l_Lean_Parser_Tactic_allGoals___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_exact___elambda__1___closed__6; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__7; lean_object* l_Lean_Parser_Tactic_clear___elambda__1___closed__7; -lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__1; -lean_object* l_Lean_Parser_regTacticParserAttribute___closed__1; lean_object* l_Lean_Parser_Tactic_underscore; lean_object* l_Lean_Parser_Tactic_traceState___elambda__1___closed__4; lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_byTactic___closed__1; lean_object* l_Lean_Parser_Tactic_traceState___elambda__1___closed__1; -lean_object* l_Lean_Parser_registerBuiltinDynamicParserAttribute(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_regBuiltinTacticParserAttr(lean_object*); -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_clear___elambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_paren___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_ParserState_mkTrailingNode(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__9; lean_object* l_Lean_Parser_Tactic_refine___closed__5; -lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_exact___closed__1; lean_object* l_Lean_Parser_addBuiltinParser(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_intro___elambda__1___closed__3; extern lean_object* l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__4; lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Parser_tokenFn(lean_object*, lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Tactic_nestedTacticBlockCurly(lean_object*); -lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_subst___closed__4; lean_object* l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(lean_object*); lean_object* l_Lean_Parser_Tactic_intros___closed__5; lean_object* l_Lean_Parser_Tactic_assumption___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_orelse___closed__3; lean_object* l_Lean_Parser_Tactic_clear___closed__4; -lean_object* l_Lean_Parser_Tactic_nonEmptySeq; +extern lean_object* l_Lean_Parser_Tactic_nonEmptySeq; lean_object* l_Lean_Parser_Tactic_revert___closed__1; lean_object* l_Lean_Parser_Tactic_skip___closed__1; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_intro___elambda__1___closed__5; -extern lean_object* l_Lean_mkAppStx___closed__4; lean_object* l_Lean_Parser_ParserState_mkErrorsAt(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_orelse___closed__5; lean_object* l_Lean_Parser_Tactic_refine___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_revert___closed__4; -lean_object* l_Lean_Parser_Tactic_nonEmptySeq___closed__4; lean_object* l_Lean_Parser_Tactic_ident_x27___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_refine___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_intros___closed__3; @@ -143,23 +110,14 @@ lean_object* l_Lean_Parser_Tactic_clear___closed__1; lean_object* l_Lean_Parser_Tactic_clear___closed__2; lean_object* l_Lean_Parser_Tactic_clear; lean_object* l_Lean_Parser_Tactic_clear___elambda__1___closed__3; -lean_object* l_Lean_Parser_tacticParser(lean_object*); lean_object* l_Lean_Parser_Tactic_case___closed__4; -lean_object* l_Lean_Parser_regBuiltinTacticParserAttr___closed__2; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__13; -lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__9; lean_object* l_Lean_Parser_Tactic_subst___closed__1; lean_object* l_Lean_Parser_Tactic_refine___elambda__1___closed__6; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11; lean_object* l_Lean_Parser_Tactic_intro___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_orelse___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_subst___elambda__1___closed__5; -lean_object* l_Lean_Parser_Term_tacticStxQuot; -lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__6; -lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_assumption; lean_object* l_Lean_Parser_Tactic_intros___elambda__1(lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_subst___closed__2; lean_object* l_Lean_Parser_Tactic_traceState___closed__5; extern lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__5; @@ -171,7 +129,6 @@ lean_object* l_Lean_Parser_Tactic_allGoals___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_assumption___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_skip___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_case___elambda__1(lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_case; lean_object* l_Lean_Parser_Tactic_traceState___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); @@ -182,22 +139,17 @@ lean_object* l_Lean_Parser_Tactic_revert___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_allGoals; lean_object* l_Lean_Parser_Tactic_refine___closed__3; lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__1; -lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_case(lean_object*); -lean_object* l_Lean_Parser_Tactic_seq___closed__5; lean_object* l_Lean_Parser_Tactic_ident_x27___closed__2; lean_object* l_Lean_Parser_Tactic_allGoals___closed__3; lean_object* l_Lean_Parser_Tactic_subst___closed__6; lean_object* l_Lean_Parser_Tactic_refine___elambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_case___elambda__1___closed__5; -lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__4; lean_object* l_Lean_Parser_nodeInfo(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_allGoals___elambda__1___closed__5; -lean_object* l_Lean_Parser_Tactic_seq___closed__3; lean_object* l_Lean_Parser_Tactic_assumption___closed__1; lean_object* l_Lean_Parser_Tactic_apply___closed__3; lean_object* l_Lean_Parser_Tactic_clear___closed__5; -lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_revert; lean_object* l_Lean_Parser_Tactic_subst___elambda__1___closed__3; @@ -209,19 +161,13 @@ lean_object* l___regBuiltinParser_Lean_Parser_Tactic_revert(lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Tactic_intros(lean_object*); lean_object* l_Lean_Parser_Tactic_traceState___closed__2; lean_object* l_Lean_Parser_Tactic_ident_x27___closed__3; -lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__6; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__12; -lean_object* l_Lean_Parser_Tactic_seq___elambda__1___closed__3; -lean_object* l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot(lean_object*); lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___closed__6; extern lean_object* l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___closed__2; -lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_nonEmptySeq___elambda__1___spec__1(uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_intro___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_intros___closed__2; uint8_t l_Lean_Parser_tryAnti(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_allGoals___elambda__1___closed__7; lean_object* l_Lean_Parser_optionaInfo(lean_object*); -lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__2; lean_object* l_Lean_Parser_Tactic_revert___closed__5; lean_object* l_Lean_Parser_Tactic_traceState___closed__4; lean_object* l_Lean_Parser_Tactic_skip___closed__5; @@ -239,10 +185,7 @@ lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___closed__1; lean_object* l_Lean_Parser_Tactic_revert___closed__6; lean_object* l_Lean_Parser_Tactic_exact___elambda__1___closed__1; lean_object* l_Lean_Parser_orelseInfo(lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_byTactic___elambda__1(lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___closed__1; -lean_object* l___regBuiltinParser_Lean_Parser_Term_tacticBlock(lean_object*); -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__10; extern lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__13; extern lean_object* l_Lean_Parser_termParser___closed__2; lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -253,45 +196,35 @@ lean_object* l_Lean_Parser_Tactic_paren___closed__5; lean_object* l_Lean_Parser_Tactic_skip___elambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_assumption___closed__2; lean_object* l_Lean_Parser_Tactic_exact___elambda__1___closed__8; -extern lean_object* l_Lean_Parser_Term_if___closed__1; +extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; lean_object* l_Lean_Parser_Tactic_ident_x27; lean_object* l_Lean_Parser_Tactic_exact___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_exact___closed__5; lean_object* l_Lean_Parser_Tactic_clear___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_skip___elambda__1___closed__2; -extern lean_object* l_Lean_mkAppStx___closed__6; lean_object* l_Lean_Parser_Tactic_paren___closed__3; lean_object* l_Lean_Parser_Tactic_intro___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_intro___closed__7; lean_object* l_Lean_Parser_Tactic_exact___elambda__1___closed__5; -lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_nonEmptySeq___elambda__1___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_registerBuiltinParserAttribute(lean_object*, lean_object*, uint8_t, lean_object*); -lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_nestedTacticBlock; extern lean_object* l_Lean_Parser_Term_explicitUniv___closed__4; -lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_apply___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_refine___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_paren___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_refine___closed__6; -lean_object* l_Lean_Parser_Term_tacticBlock___closed__2; lean_object* l_Lean_Parser_Tactic_skip___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_allGoals___closed__2; -lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_exact___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_apply; lean_object* l_Lean_Parser_Tactic_assumption___closed__5; lean_object* l_Lean_Parser_ParserState_restore(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_paren___closed__1; -lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_paren___closed__2; lean_object* l_Lean_Parser_Tactic_subst___closed__3; lean_object* l_Lean_Parser_ParserState_popSyntax(lean_object*); lean_object* l_Lean_Parser_Tactic_paren___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_case___elambda__1___closed__1; -lean_object* l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__1; -extern lean_object* l_Lean_Parser_Term_seq___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_intros___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_case___closed__5; lean_object* l_Lean_Parser_Tactic_orelse___elambda__1___closed__2; @@ -302,13 +235,10 @@ lean_object* l_Lean_Parser_Tactic_subst; lean_object* l_Lean_Parser_Tactic_case___elambda__1___closed__2; lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_intros___elambda__1___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_intros___closed__4; -lean_object* l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__2; -lean_object* l_Lean_Parser_sepBy1Info(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_apply___elambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_skip___elambda__1___closed__6; -lean_object* l_Lean_Parser_Term_byTactic___closed__5; +extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6; lean_object* l_Lean_Parser_ident___elambda__1(lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_underscoreFn(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_case___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_refine___closed__1; @@ -318,7 +248,6 @@ lean_object* l_Lean_Parser_Tactic_clear___elambda__1(lean_object*, lean_object*) lean_object* l_Lean_Parser_Tactic_refine___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_exact(lean_object*); lean_object* l_Lean_Parser_Tactic_assumption___elambda__1___closed__1; -lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_revert___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_case___closed__3; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_clear(lean_object*); @@ -332,8 +261,6 @@ lean_object* l_Lean_Parser_Tactic_exact; lean_object* l_Lean_Parser_Tactic_intro___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_revert___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_case___closed__1; -lean_object* l_Lean_Parser_Tactic_nonEmptySeq___closed__3; -lean_object* l_Lean_Parser_regTacticParserAttribute(lean_object*); lean_object* l_Lean_Parser_Tactic_allGoals___closed__5; lean_object* l_Lean_Parser_Tactic_paren___closed__6; lean_object* l_Lean_Parser_Tactic_skip___elambda__1___closed__4; @@ -343,16 +270,11 @@ lean_object* l_Lean_Parser_Tactic_apply___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_clear___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_clear___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_orelse___elambda__1___closed__1; -lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___closed__4; lean_object* l_Lean_Parser_Tactic_assumption___closed__3; lean_object* l_Lean_Parser_Tactic_case___elambda__1___closed__7; extern lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__11; lean_object* l_Lean_Parser_categoryParser___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_tacticBlock___closed__4; -lean_object* l_Lean_Parser_Term_tacticBlock___closed__1; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__8; -lean_object* l_Lean_Parser_Term_tacticBlock; lean_object* l_Lean_Parser_Tactic_case___closed__2; lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__4; extern lean_object* l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__3; @@ -361,39 +283,30 @@ lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___closed__3; lean_object* l_Lean_Parser_Tactic_traceState___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_intro___closed__6; lean_object* l_Lean_Parser_Tactic_traceState___elambda__1___closed__3; -lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2(uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_intros; lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_subst___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___closed__5; lean_object* l_Lean_Parser_Tactic_case___closed__7; -lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_exact___closed__4; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_paren(lean_object*); lean_object* l_Lean_Parser_Tactic_exact___elambda__1___closed__2; lean_object* l_String_trim(lean_object*); lean_object* l_Lean_Parser_Tactic_nonEmptySeq___elambda__1(lean_object*, lean_object*); -lean_object* l___regBuiltinParser_Lean_Parser_Term_byTactic(lean_object*); lean_object* l_Lean_Parser_Tactic_apply___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_assumption(lean_object*); -lean_object* l_Lean_Parser_Term_byTactic___closed__3; -lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_underscoreFn___closed__2; -lean_object* l_Lean_Parser_Tactic_seq___closed__2; lean_object* l_Lean_Parser_Tactic_apply___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_paren___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_apply___elambda__1___closed__2; -lean_object* l_Lean_Parser_Tactic_seq___closed__1; -lean_object* l_Lean_Parser_Term_tacticBlock___closed__6; +extern lean_object* l_Lean_Parser_Tactic_seq___closed__1; lean_object* l_Lean_Parser_Tactic_exact___closed__2; lean_object* l_Lean_Parser_Tactic_intro___closed__2; -lean_object* l_Lean_Parser_regBuiltinTacticParserAttr___closed__3; lean_object* l_Lean_Parser_mkAntiquot(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__5; lean_object* l_Lean_Parser_Tactic_underscoreFn___closed__1; lean_object* l_Lean_Parser_Tactic_assumption___elambda__1___closed__7; extern lean_object* l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___closed__5; -lean_object* l_Lean_Parser_Term_byTactic___closed__6; lean_object* l_Lean_Parser_Tactic_revert___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_underscoreFn___closed__3; lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__3; @@ -402,11 +315,10 @@ lean_object* l_Lean_Parser_Tactic_revert___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_intro___closed__1; lean_object* l_Lean_Parser_Tactic_exact___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_intro___closed__3; -lean_object* l_Lean_Parser_regBuiltinTacticParserAttr___closed__4; +extern lean_object* l_Lean_Parser_regBuiltinTacticParserAttr___closed__4; lean_object* l_Lean_Parser_Tactic_intros___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_revert___elambda__1___closed__1; extern lean_object* l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__10; -lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_orelse___closed__6; lean_object* l_Lean_Parser_Tactic_intro___closed__5; lean_object* l_Lean_Parser_Tactic_exact___elambda__1___closed__7; @@ -415,8 +327,6 @@ lean_object* l_Lean_Parser_Tactic_clear___elambda__1___closed__6; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_subst(lean_object*); lean_object* l_Lean_Parser_Tactic_intros___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_refine___elambda__1___closed__1; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__7; -lean_object* l_Lean_Parser_Tactic_seq___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_orelse___elambda__1___closed__3; lean_object* l_Lean_Parser_ParserState_mkUnexpectedError(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_skip; @@ -424,10 +334,10 @@ lean_object* l_Lean_Parser_Tactic_intros___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_apply___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_assumption___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_orelse___elambda__1___closed__5; -lean_object* l_Lean_Parser_Tactic_nonEmptySeq___closed__1; lean_object* l_Lean_Parser_Tactic_revert___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_refine___elambda__1___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_orelse(lean_object*); +extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_traceState___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_allGoals___closed__1; lean_object* l_Lean_Parser_Tactic_traceState; @@ -435,8 +345,6 @@ lean_object* l_Lean_Parser_Tactic_subst___elambda__1(lean_object*, lean_object*) lean_object* l_Lean_Parser_Tactic_subst___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1(lean_object*, lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Tactic_traceState(lean_object*); -lean_object* l_Lean_Parser_Term_byTactic___closed__2; -lean_object* l_Lean_Parser_Term_tacticBlock___closed__5; lean_object* l_Lean_Parser_Tactic_paren; lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_intro; @@ -452,95 +360,10 @@ lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_skip___closed__4; lean_object* l_Lean_Parser_Tactic_underscoreFn___closed__4; lean_object* l_Lean_Parser_Tactic_case___elambda__1___closed__6; -lean_object* l_Lean_Parser_Tactic_seq___closed__4; lean_object* l_Lean_Parser_Tactic_traceState___elambda__1(lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_Level_paren___closed__1; +extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; lean_object* l_Lean_Parser_Tactic_allGoals___elambda__1___closed__4; uint8_t lean_string_dec_eq(lean_object*, lean_object*); -lean_object* _init_l_Lean_Parser_regBuiltinTacticParserAttr___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("builtinTacticParser"); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_regBuiltinTacticParserAttr___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_regBuiltinTacticParserAttr___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("tactic"); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_regBuiltinTacticParserAttr___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* l_Lean_Parser_regBuiltinTacticParserAttr(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; -x_2 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__2; -x_3 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__4; -x_4 = 1; -x_5 = l_Lean_Parser_registerBuiltinParserAttribute(x_2, x_3, x_4, x_1); -return x_5; -} -} -lean_object* _init_l_Lean_Parser_regTacticParserAttribute___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("tacticParser"); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_regTacticParserAttribute___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_regTacticParserAttribute___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* l_Lean_Parser_regTacticParserAttribute(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Parser_regTacticParserAttribute___closed__2; -x_3 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__4; -x_4 = l_Lean_Parser_registerBuiltinDynamicParserAttribute(x_2, x_3, x_1); -return x_4; -} -} -lean_object* l_Lean_Parser_tacticParser(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__4; -x_3 = l_Lean_Parser_categoryParser(x_2, x_1); -return x_3; -} -} lean_object* _init_l_Lean_Parser_Tactic_underscoreFn___closed__1() { _start: { @@ -779,436 +602,6 @@ x_1 = l_Lean_Parser_Tactic_ident_x27___closed__3; return x_1; } } -lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2(uint8_t x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_array_get_size(x_7); -lean_dec(x_7); -x_9 = lean_ctor_get(x_6, 1); -lean_inc(x_9); -x_10 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__4; -x_11 = lean_unsigned_to_nat(0u); -lean_inc(x_5); -x_12 = l_Lean_Parser_categoryParser___elambda__1(x_10, x_11, x_5, x_6); -x_13 = lean_ctor_get(x_12, 3); -lean_inc(x_13); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_31; lean_object* x_32; -lean_dec(x_9); -lean_dec(x_8); -x_14 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -x_15 = lean_array_get_size(x_14); -lean_dec(x_14); -x_16 = lean_ctor_get(x_12, 1); -lean_inc(x_16); -lean_inc(x_5); -x_31 = l_Lean_Parser_tokenFn(x_5, x_12); -x_32 = lean_ctor_get(x_31, 3); -lean_inc(x_32); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_31, 0); -lean_inc(x_33); -x_34 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_33); -lean_dec(x_33); -if (lean_obj_tag(x_34) == 2) -{ -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -lean_dec(x_34); -x_36 = l_Lean_Parser_Term_have___elambda__1___closed__7; -x_37 = lean_string_dec_eq(x_35, x_36); -lean_dec(x_35); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; -x_38 = l_Lean_Parser_Term_have___elambda__1___closed__10; -lean_inc(x_16); -x_39 = l_Lean_Parser_ParserState_mkErrorsAt(x_31, x_38, x_16); -x_17 = x_39; -goto block_30; -} -else -{ -x_17 = x_31; -goto block_30; -} -} -else -{ -lean_object* x_40; lean_object* x_41; -lean_dec(x_34); -x_40 = l_Lean_Parser_Term_have___elambda__1___closed__10; -lean_inc(x_16); -x_41 = l_Lean_Parser_ParserState_mkErrorsAt(x_31, x_40, x_16); -x_17 = x_41; -goto block_30; -} -} -else -{ -lean_object* x_42; lean_object* x_43; -lean_dec(x_32); -x_42 = l_Lean_Parser_Term_have___elambda__1___closed__10; -lean_inc(x_16); -x_43 = l_Lean_Parser_ParserState_mkErrorsAt(x_31, x_42, x_16); -x_17 = x_43; -goto block_30; -} -block_30: -{ -lean_object* x_18; -x_18 = lean_ctor_get(x_17, 3); -lean_inc(x_18); -if (lean_obj_tag(x_18) == 0) -{ -lean_dec(x_16); -lean_dec(x_15); -{ -uint8_t _tmp_3 = x_1; -lean_object* _tmp_5 = x_17; -x_4 = _tmp_3; -x_6 = _tmp_5; -} -goto _start; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; -lean_dec(x_18); -lean_dec(x_5); -x_20 = l_Lean_Parser_ParserState_restore(x_17, x_15, x_16); -lean_dec(x_15); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_array_get_size(x_21); -lean_dec(x_21); -x_23 = lean_nat_sub(x_22, x_2); -lean_dec(x_22); -x_24 = lean_unsigned_to_nat(1u); -x_25 = lean_nat_dec_eq(x_23, x_24); -lean_dec(x_23); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; -x_26 = l_Lean_nullKind; -x_27 = l_Lean_Parser_ParserState_mkNode(x_20, x_26, x_2); -return x_27; -} -else -{ -if (x_3 == 0) -{ -lean_object* x_28; lean_object* x_29; -x_28 = l_Lean_nullKind; -x_29 = l_Lean_Parser_ParserState_mkNode(x_20, x_28, x_2); -return x_29; -} -else -{ -lean_dec(x_2); -return x_20; -} -} -} -} -} -else -{ -lean_dec(x_13); -lean_dec(x_5); -if (x_4 == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -lean_dec(x_9); -lean_dec(x_8); -x_44 = lean_box(0); -x_45 = l_Lean_Parser_ParserState_pushSyntax(x_12, x_44); -x_46 = l_Lean_nullKind; -x_47 = l_Lean_Parser_ParserState_mkNode(x_45, x_46, x_2); -return x_47; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_48 = l_Lean_Parser_ParserState_restore(x_12, x_8, x_9); -lean_dec(x_8); -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_array_get_size(x_49); -lean_dec(x_49); -x_51 = lean_nat_sub(x_50, x_2); -lean_dec(x_50); -x_52 = lean_unsigned_to_nat(2u); -x_53 = lean_nat_dec_eq(x_51, x_52); -lean_dec(x_51); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; -x_54 = l_Lean_nullKind; -x_55 = l_Lean_Parser_ParserState_mkNode(x_48, x_54, x_2); -return x_55; -} -else -{ -if (x_3 == 0) -{ -lean_object* x_56; lean_object* x_57; -x_56 = l_Lean_nullKind; -x_57 = l_Lean_Parser_ParserState_mkNode(x_48, x_56, x_2); -return x_57; -} -else -{ -lean_object* x_58; -lean_dec(x_2); -x_58 = l_Lean_Parser_ParserState_popSyntax(x_48); -return x_58; -} -} -} -} -} -} -lean_object* l_Lean_Parser_sepByFn___at_Lean_Parser_Tactic_seq___elambda__1___spec__1(uint8_t x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; lean_object* x_8; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -x_5 = lean_array_get_size(x_4); -lean_dec(x_4); -x_6 = 0; -x_7 = 1; -x_8 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2(x_1, x_5, x_6, x_7, x_2, x_3); -return x_8; -} -} -lean_object* _init_l_Lean_Parser_Tactic_seq___elambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("Tactic"); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Tactic_seq___elambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__4; -x_2 = l_Lean_Parser_Tactic_seq___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Tactic_seq___elambda__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_seq___elambda__1___closed__2; -x_2 = l_Lean_Parser_Term_seq___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* l_Lean_Parser_Tactic_seq___elambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_array_get_size(x_3); -lean_dec(x_3); -x_5 = 1; -x_6 = l_Lean_Parser_sepByFn___at_Lean_Parser_Tactic_seq___elambda__1___spec__1(x_5, x_1, x_2); -x_7 = l_Lean_Parser_Tactic_seq___elambda__1___closed__3; -x_8 = l_Lean_Parser_ParserState_mkNode(x_6, x_7, x_4); -return x_8; -} -} -lean_object* _init_l_Lean_Parser_Tactic_seq___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__4; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Parser_categoryParser(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Tactic_seq___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_seq___closed__1; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_Term_have___closed__3; -x_4 = l_Lean_Parser_sepByInfo(x_2, x_3); -return x_4; -} -} -lean_object* _init_l_Lean_Parser_Tactic_seq___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_seq___elambda__1___closed__3; -x_2 = l_Lean_Parser_Tactic_seq___closed__2; -x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Tactic_seq___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_seq___elambda__1), 2, 0); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Tactic_seq___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_seq___closed__3; -x_2 = l_Lean_Parser_Tactic_seq___closed__4; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Tactic_seq() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Parser_Tactic_seq___closed__5; -return x_1; -} -} -lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -uint8_t x_7; uint8_t x_8; uint8_t x_9; lean_object* x_10; -x_7 = lean_unbox(x_1); -lean_dec(x_1); -x_8 = lean_unbox(x_3); -lean_dec(x_3); -x_9 = lean_unbox(x_4); -lean_dec(x_4); -x_10 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2(x_7, x_2, x_8, x_9, x_5, x_6); -return x_10; -} -} -lean_object* l_Lean_Parser_sepByFn___at_Lean_Parser_Tactic_seq___elambda__1___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; lean_object* x_5; -x_4 = lean_unbox(x_1); -lean_dec(x_1); -x_5 = l_Lean_Parser_sepByFn___at_Lean_Parser_Tactic_seq___elambda__1___spec__1(x_4, x_2, x_3); -return x_5; -} -} -lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_nonEmptySeq___elambda__1___spec__1(uint8_t x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = lean_array_get_size(x_5); -lean_dec(x_5); -x_7 = 0; -x_8 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2(x_1, x_6, x_2, x_7, x_3, x_4); -return x_8; -} -} -lean_object* l_Lean_Parser_Tactic_nonEmptySeq___elambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -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; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_array_get_size(x_3); -lean_dec(x_3); -x_5 = 1; -x_6 = 0; -x_7 = l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_nonEmptySeq___elambda__1___spec__1(x_5, x_6, x_1, x_2); -x_8 = l_Lean_Parser_Tactic_seq___elambda__1___closed__3; -x_9 = l_Lean_Parser_ParserState_mkNode(x_7, x_8, x_4); -return x_9; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nonEmptySeq___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_seq___closed__1; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_Term_have___closed__3; -x_4 = l_Lean_Parser_sepBy1Info(x_2, x_3); -return x_4; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nonEmptySeq___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_seq___elambda__1___closed__3; -x_2 = l_Lean_Parser_Tactic_nonEmptySeq___closed__1; -x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nonEmptySeq___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_nonEmptySeq___elambda__1), 2, 0); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nonEmptySeq___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_nonEmptySeq___closed__2; -x_2 = l_Lean_Parser_Tactic_nonEmptySeq___closed__3; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nonEmptySeq() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Parser_Tactic_nonEmptySeq___closed__4; -return x_1; -} -} -lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_nonEmptySeq___elambda__1___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; uint8_t x_6; lean_object* x_7; -x_5 = lean_unbox(x_1); -lean_dec(x_1); -x_6 = lean_unbox(x_2); -lean_dec(x_2); -x_7 = l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_nonEmptySeq___elambda__1___spec__1(x_5, x_6, x_3, x_4); -return x_7; -} -} lean_object* _init_l_Lean_Parser_Tactic_intro___elambda__1___closed__1() { _start: { @@ -5703,104 +5096,6 @@ x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); return x_4; } } -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("begin "); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__5; -x_2 = l_String_trim(x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("end"); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__7; -x_2 = l_String_trim(x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Char_HasRepr___closed__1; -x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__8; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__9; -x_2 = l_Char_HasRepr___closed__1; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__10; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Char_HasRepr___closed__1; -x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__6; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__13() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__12; -x_2 = l_Char_HasRepr___closed__1; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__13; -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_Parser_Tactic_nestedTacticBlock___elambda__1(lean_object* x_1, lean_object* x_2) { _start: { @@ -5838,13 +5133,13 @@ lean_object* x_44; lean_object* x_45; uint8_t x_46; x_44 = lean_ctor_get(x_43, 1); lean_inc(x_44); lean_dec(x_43); -x_45 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__6; +x_45 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6; x_46 = lean_string_dec_eq(x_44, x_45); lean_dec(x_44); if (x_46 == 0) { lean_object* x_47; lean_object* x_48; -x_47 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14; +x_47 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; x_48 = l_Lean_Parser_ParserState_mkErrorsAt(x_40, x_47, x_39); x_8 = x_48; goto block_38; @@ -5860,7 +5155,7 @@ else { lean_object* x_49; lean_object* x_50; lean_dec(x_43); -x_49 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14; +x_49 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; x_50 = l_Lean_Parser_ParserState_mkErrorsAt(x_40, x_49, x_39); x_8 = x_50; goto block_38; @@ -5870,7 +5165,7 @@ else { lean_object* x_51; lean_object* x_52; lean_dec(x_41); -x_51 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14; +x_51 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; x_52 = l_Lean_Parser_ParserState_mkErrorsAt(x_40, x_51, x_39); x_8 = x_52; goto block_38; @@ -5908,13 +5203,13 @@ lean_object* x_17; lean_object* x_18; uint8_t x_19; x_17 = lean_ctor_get(x_16, 1); lean_inc(x_17); lean_dec(x_16); -x_18 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__8; +x_18 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8; x_19 = lean_string_dec_eq(x_17, x_18); lean_dec(x_17); if (x_19 == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11; +x_20 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; x_21 = l_Lean_Parser_ParserState_mkErrorsAt(x_13, x_20, x_12); x_22 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; x_23 = l_Lean_Parser_ParserState_mkNode(x_21, x_22, x_7); @@ -5933,7 +5228,7 @@ else { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_dec(x_16); -x_26 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11; +x_26 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; x_27 = l_Lean_Parser_ParserState_mkErrorsAt(x_13, x_26, x_12); x_28 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; x_29 = l_Lean_Parser_ParserState_mkNode(x_27, x_28, x_7); @@ -5944,7 +5239,7 @@ else { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_dec(x_14); -x_30 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11; +x_30 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; x_31 = l_Lean_Parser_ParserState_mkErrorsAt(x_13, x_30, x_12); x_32 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; x_33 = l_Lean_Parser_ParserState_mkNode(x_31, x_32, x_7); @@ -6037,13 +5332,13 @@ lean_object* x_105; lean_object* x_106; uint8_t x_107; x_105 = lean_ctor_get(x_104, 1); lean_inc(x_105); lean_dec(x_104); -x_106 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__6; +x_106 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6; x_107 = lean_string_dec_eq(x_105, x_106); lean_dec(x_105); if (x_107 == 0) { lean_object* x_108; lean_object* x_109; -x_108 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14; +x_108 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; lean_inc(x_55); x_109 = l_Lean_Parser_ParserState_mkErrorsAt(x_101, x_108, x_55); x_64 = x_109; @@ -6059,7 +5354,7 @@ else { lean_object* x_110; lean_object* x_111; lean_dec(x_104); -x_110 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14; +x_110 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; lean_inc(x_55); x_111 = l_Lean_Parser_ParserState_mkErrorsAt(x_101, x_110, x_55); x_64 = x_111; @@ -6070,7 +5365,7 @@ else { lean_object* x_112; lean_object* x_113; lean_dec(x_102); -x_112 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14; +x_112 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; lean_inc(x_55); x_113 = l_Lean_Parser_ParserState_mkErrorsAt(x_101, x_112, x_55); x_64 = x_113; @@ -6109,13 +5404,13 @@ lean_object* x_73; lean_object* x_74; uint8_t x_75; x_73 = lean_ctor_get(x_72, 1); lean_inc(x_73); lean_dec(x_72); -x_74 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__8; +x_74 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8; x_75 = lean_string_dec_eq(x_73, x_74); lean_dec(x_73); if (x_75 == 0) { lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_76 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11; +x_76 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; x_77 = l_Lean_Parser_ParserState_mkErrorsAt(x_69, x_76, x_68); x_78 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; x_79 = l_Lean_Parser_ParserState_mkNode(x_77, x_78, x_63); @@ -6138,7 +5433,7 @@ else { lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_dec(x_72); -x_84 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11; +x_84 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; x_85 = l_Lean_Parser_ParserState_mkErrorsAt(x_69, x_84, x_68); x_86 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; x_87 = l_Lean_Parser_ParserState_mkNode(x_85, x_86, x_63); @@ -6151,7 +5446,7 @@ else { lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_dec(x_70); -x_89 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11; +x_89 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; x_90 = l_Lean_Parser_ParserState_mkErrorsAt(x_69, x_89, x_68); x_91 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; x_92 = l_Lean_Parser_ParserState_mkNode(x_90, x_91, x_63); @@ -6194,7 +5489,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__6; +x_2 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6; x_3 = l_Lean_Parser_symbolInfo(x_2, x_1); return x_3; } @@ -6203,57 +5498,35 @@ lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__8; -x_3 = l_Lean_Parser_symbolInfo(x_2, x_1); +x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__1; +x_2 = l_Lean_Parser_Term_tacticBlock___closed__3; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); return x_3; } } lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_seq; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__2; -x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); -return x_4; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__1; -x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__3; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__5() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__4; +x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__2; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__6() { +lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__4; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__5; +x_3 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__3; x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); return x_4; } } -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__7() { +lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__5() { _start: { lean_object* x_1; @@ -6261,12 +5534,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_nestedTacticBlock___elambd return x_1; } } -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__8() { +lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__6; -x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__7; +x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__4; +x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__5; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -6277,7 +5550,7 @@ lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__8; +x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__6; return x_1; } } @@ -7030,1249 +6303,6 @@ x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); return x_6; } } -lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("tacticBlock"); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__1; -x_2 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__3; -x_3 = 1; -x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); -return x_4; -} -} -lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__4; -x_4 = lean_ctor_get(x_3, 1); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_5 = l_Lean_Parser_tryAnti(x_1, x_2); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_39; lean_object* x_40; lean_object* x_41; -lean_dec(x_4); -x_6 = lean_ctor_get(x_2, 0); -lean_inc(x_6); -x_7 = lean_array_get_size(x_6); -lean_dec(x_6); -x_39 = lean_ctor_get(x_2, 1); -lean_inc(x_39); -lean_inc(x_1); -x_40 = l_Lean_Parser_tokenFn(x_1, x_2); -x_41 = lean_ctor_get(x_40, 3); -lean_inc(x_41); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_40, 0); -lean_inc(x_42); -x_43 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_42); -lean_dec(x_42); -if (lean_obj_tag(x_43) == 2) -{ -lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); -x_45 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__6; -x_46 = lean_string_dec_eq(x_44, x_45); -lean_dec(x_44); -if (x_46 == 0) -{ -lean_object* x_47; lean_object* x_48; -x_47 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14; -x_48 = l_Lean_Parser_ParserState_mkErrorsAt(x_40, x_47, x_39); -x_8 = x_48; -goto block_38; -} -else -{ -lean_dec(x_39); -x_8 = x_40; -goto block_38; -} -} -else -{ -lean_object* x_49; lean_object* x_50; -lean_dec(x_43); -x_49 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14; -x_50 = l_Lean_Parser_ParserState_mkErrorsAt(x_40, x_49, x_39); -x_8 = x_50; -goto block_38; -} -} -else -{ -lean_object* x_51; lean_object* x_52; -lean_dec(x_41); -x_51 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14; -x_52 = l_Lean_Parser_ParserState_mkErrorsAt(x_40, x_51, x_39); -x_8 = x_52; -goto block_38; -} -block_38: -{ -lean_object* x_9; -x_9 = lean_ctor_get(x_8, 3); -lean_inc(x_9); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; -lean_inc(x_1); -x_10 = l_Lean_Parser_Tactic_seq___elambda__1(x_1, x_8); -x_11 = lean_ctor_get(x_10, 3); -lean_inc(x_11); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -x_13 = l_Lean_Parser_tokenFn(x_1, x_10); -x_14 = lean_ctor_get(x_13, 3); -lean_inc(x_14); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_13, 0); -lean_inc(x_15); -x_16 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_15); -lean_dec(x_15); -if (lean_obj_tag(x_16) == 2) -{ -lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -x_18 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__8; -x_19 = lean_string_dec_eq(x_17, x_18); -lean_dec(x_17); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11; -x_21 = l_Lean_Parser_ParserState_mkErrorsAt(x_13, x_20, x_12); -x_22 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_23 = l_Lean_Parser_ParserState_mkNode(x_21, x_22, x_7); -return x_23; -} -else -{ -lean_object* x_24; lean_object* x_25; -lean_dec(x_12); -x_24 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_25 = l_Lean_Parser_ParserState_mkNode(x_13, x_24, x_7); -return x_25; -} -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_dec(x_16); -x_26 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11; -x_27 = l_Lean_Parser_ParserState_mkErrorsAt(x_13, x_26, x_12); -x_28 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_29 = l_Lean_Parser_ParserState_mkNode(x_27, x_28, x_7); -return x_29; -} -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -lean_dec(x_14); -x_30 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11; -x_31 = l_Lean_Parser_ParserState_mkErrorsAt(x_13, x_30, x_12); -x_32 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_33 = l_Lean_Parser_ParserState_mkNode(x_31, x_32, x_7); -return x_33; -} -} -else -{ -lean_object* x_34; lean_object* x_35; -lean_dec(x_11); -lean_dec(x_1); -x_34 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_35 = l_Lean_Parser_ParserState_mkNode(x_10, x_34, x_7); -return x_35; -} -} -else -{ -lean_object* x_36; lean_object* x_37; -lean_dec(x_9); -lean_dec(x_1); -x_36 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_37 = l_Lean_Parser_ParserState_mkNode(x_8, x_36, x_7); -return x_37; -} -} -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_53 = lean_ctor_get(x_2, 0); -lean_inc(x_53); -x_54 = lean_array_get_size(x_53); -lean_dec(x_53); -x_55 = lean_ctor_get(x_2, 1); -lean_inc(x_55); -lean_inc(x_1); -x_56 = lean_apply_2(x_4, x_1, x_2); -x_57 = lean_ctor_get(x_56, 3); -lean_inc(x_57); -if (lean_obj_tag(x_57) == 0) -{ -lean_dec(x_55); -lean_dec(x_54); -lean_dec(x_1); -return x_56; -} -else -{ -lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -lean_dec(x_57); -x_59 = lean_ctor_get(x_56, 1); -lean_inc(x_59); -x_60 = lean_nat_dec_eq(x_59, x_55); -lean_dec(x_59); -if (x_60 == 0) -{ -lean_dec(x_58); -lean_dec(x_55); -lean_dec(x_54); -lean_dec(x_1); -return x_56; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_101; lean_object* x_102; -lean_inc(x_55); -x_61 = l_Lean_Parser_ParserState_restore(x_56, x_54, x_55); -lean_dec(x_54); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_array_get_size(x_62); -lean_dec(x_62); -lean_inc(x_1); -x_101 = l_Lean_Parser_tokenFn(x_1, x_61); -x_102 = lean_ctor_get(x_101, 3); -lean_inc(x_102); -if (lean_obj_tag(x_102) == 0) -{ -lean_object* x_103; lean_object* x_104; -x_103 = lean_ctor_get(x_101, 0); -lean_inc(x_103); -x_104 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_103); -lean_dec(x_103); -if (lean_obj_tag(x_104) == 2) -{ -lean_object* x_105; lean_object* x_106; uint8_t x_107; -x_105 = lean_ctor_get(x_104, 1); -lean_inc(x_105); -lean_dec(x_104); -x_106 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__6; -x_107 = lean_string_dec_eq(x_105, x_106); -lean_dec(x_105); -if (x_107 == 0) -{ -lean_object* x_108; lean_object* x_109; -x_108 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14; -lean_inc(x_55); -x_109 = l_Lean_Parser_ParserState_mkErrorsAt(x_101, x_108, x_55); -x_64 = x_109; -goto block_100; -} -else -{ -x_64 = x_101; -goto block_100; -} -} -else -{ -lean_object* x_110; lean_object* x_111; -lean_dec(x_104); -x_110 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14; -lean_inc(x_55); -x_111 = l_Lean_Parser_ParserState_mkErrorsAt(x_101, x_110, x_55); -x_64 = x_111; -goto block_100; -} -} -else -{ -lean_object* x_112; lean_object* x_113; -lean_dec(x_102); -x_112 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14; -lean_inc(x_55); -x_113 = l_Lean_Parser_ParserState_mkErrorsAt(x_101, x_112, x_55); -x_64 = x_113; -goto block_100; -} -block_100: -{ -lean_object* x_65; -x_65 = lean_ctor_get(x_64, 3); -lean_inc(x_65); -if (lean_obj_tag(x_65) == 0) -{ -lean_object* x_66; lean_object* x_67; -lean_inc(x_1); -x_66 = l_Lean_Parser_Tactic_seq___elambda__1(x_1, x_64); -x_67 = lean_ctor_get(x_66, 3); -lean_inc(x_67); -if (lean_obj_tag(x_67) == 0) -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -x_69 = l_Lean_Parser_tokenFn(x_1, x_66); -x_70 = lean_ctor_get(x_69, 3); -lean_inc(x_70); -if (lean_obj_tag(x_70) == 0) -{ -lean_object* x_71; lean_object* x_72; -x_71 = lean_ctor_get(x_69, 0); -lean_inc(x_71); -x_72 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_71); -lean_dec(x_71); -if (lean_obj_tag(x_72) == 2) -{ -lean_object* x_73; lean_object* x_74; uint8_t x_75; -x_73 = lean_ctor_get(x_72, 1); -lean_inc(x_73); -lean_dec(x_72); -x_74 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__8; -x_75 = lean_string_dec_eq(x_73, x_74); -lean_dec(x_73); -if (x_75 == 0) -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_76 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11; -x_77 = l_Lean_Parser_ParserState_mkErrorsAt(x_69, x_76, x_68); -x_78 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_79 = l_Lean_Parser_ParserState_mkNode(x_77, x_78, x_63); -x_80 = l_Lean_Parser_mergeOrElseErrors(x_79, x_58, x_55); -lean_dec(x_55); -return x_80; -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -lean_dec(x_68); -x_81 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_82 = l_Lean_Parser_ParserState_mkNode(x_69, x_81, x_63); -x_83 = l_Lean_Parser_mergeOrElseErrors(x_82, x_58, x_55); -lean_dec(x_55); -return x_83; -} -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -lean_dec(x_72); -x_84 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11; -x_85 = l_Lean_Parser_ParserState_mkErrorsAt(x_69, x_84, x_68); -x_86 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_87 = l_Lean_Parser_ParserState_mkNode(x_85, x_86, x_63); -x_88 = l_Lean_Parser_mergeOrElseErrors(x_87, x_58, x_55); -lean_dec(x_55); -return x_88; -} -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -lean_dec(x_70); -x_89 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11; -x_90 = l_Lean_Parser_ParserState_mkErrorsAt(x_69, x_89, x_68); -x_91 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_92 = l_Lean_Parser_ParserState_mkNode(x_90, x_91, x_63); -x_93 = l_Lean_Parser_mergeOrElseErrors(x_92, x_58, x_55); -lean_dec(x_55); -return x_93; -} -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; -lean_dec(x_67); -lean_dec(x_1); -x_94 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_95 = l_Lean_Parser_ParserState_mkNode(x_66, x_94, x_63); -x_96 = l_Lean_Parser_mergeOrElseErrors(x_95, x_58, x_55); -lean_dec(x_55); -return x_96; -} -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -lean_dec(x_65); -lean_dec(x_1); -x_97 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_98 = l_Lean_Parser_ParserState_mkNode(x_64, x_97, x_63); -x_99 = l_Lean_Parser_mergeOrElseErrors(x_98, x_58, x_55); -lean_dec(x_55); -return x_99; -} -} -} -} -} -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__6; -x_2 = l_Lean_Parser_Level_paren___closed__1; -x_3 = l_Lean_Parser_symbolInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_tacticBlock___closed__1; -x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__3; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_2 = l_Lean_Parser_Term_tacticBlock___closed__2; -x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__4; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_Term_tacticBlock___closed__3; -x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); -return x_4; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_tacticBlock___elambda__1), 2, 0); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_tacticBlock___closed__4; -x_2 = l_Lean_Parser_Term_tacticBlock___closed__5; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Parser_Term_tacticBlock___closed__6; -return x_1; -} -} -lean_object* l___regBuiltinParser_Lean_Parser_Term_tacticBlock(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Parser_termParser___closed__2; -x_3 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_4 = 1; -x_5 = l_Lean_Parser_Term_tacticBlock; -x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("byTactic"); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Parser_Term_byTactic___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_byTactic___elambda__1___closed__2; -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_byTactic___elambda__1___closed__1; -x_2 = l_Lean_Parser_Term_byTactic___elambda__1___closed__3; -x_3 = 1; -x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); -return x_4; -} -} -lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("by "); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_byTactic___elambda__1___closed__5; -x_2 = l_String_trim(x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Char_HasRepr___closed__1; -x_2 = l_Lean_Parser_Term_byTactic___elambda__1___closed__6; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_byTactic___elambda__1___closed__7; -x_2 = l_Char_HasRepr___closed__1; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_byTactic___elambda__1___closed__8; -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_Parser_Term_byTactic___elambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = l_Lean_Parser_Term_byTactic___elambda__1___closed__4; -x_4 = lean_ctor_get(x_3, 1); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_5 = l_Lean_Parser_tryAnti(x_1, x_2); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_16; lean_object* x_17; lean_object* x_18; -lean_dec(x_4); -x_6 = lean_ctor_get(x_2, 0); -lean_inc(x_6); -x_7 = lean_array_get_size(x_6); -lean_dec(x_6); -x_16 = lean_ctor_get(x_2, 1); -lean_inc(x_16); -lean_inc(x_1); -x_17 = l_Lean_Parser_tokenFn(x_1, x_2); -x_18 = lean_ctor_get(x_17, 3); -lean_inc(x_18); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_17, 0); -lean_inc(x_19); -x_20 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_19); -lean_dec(x_19); -if (lean_obj_tag(x_20) == 2) -{ -lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_21 = lean_ctor_get(x_20, 1); -lean_inc(x_21); -lean_dec(x_20); -x_22 = l_Lean_Parser_Term_byTactic___elambda__1___closed__6; -x_23 = lean_string_dec_eq(x_21, x_22); -lean_dec(x_21); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = l_Lean_Parser_Term_byTactic___elambda__1___closed__9; -x_25 = l_Lean_Parser_ParserState_mkErrorsAt(x_17, x_24, x_16); -x_8 = x_25; -goto block_15; -} -else -{ -lean_dec(x_16); -x_8 = x_17; -goto block_15; -} -} -else -{ -lean_object* x_26; lean_object* x_27; -lean_dec(x_20); -x_26 = l_Lean_Parser_Term_byTactic___elambda__1___closed__9; -x_27 = l_Lean_Parser_ParserState_mkErrorsAt(x_17, x_26, x_16); -x_8 = x_27; -goto block_15; -} -} -else -{ -lean_object* x_28; lean_object* x_29; -lean_dec(x_18); -x_28 = l_Lean_Parser_Term_byTactic___elambda__1___closed__9; -x_29 = l_Lean_Parser_ParserState_mkErrorsAt(x_17, x_28, x_16); -x_8 = x_29; -goto block_15; -} -block_15: -{ -lean_object* x_9; -x_9 = lean_ctor_get(x_8, 3); -lean_inc(x_9); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = l_Lean_Parser_Tactic_nonEmptySeq___elambda__1(x_1, x_8); -x_11 = l_Lean_Parser_Term_byTactic___elambda__1___closed__2; -x_12 = l_Lean_Parser_ParserState_mkNode(x_10, x_11, x_7); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; -lean_dec(x_9); -lean_dec(x_1); -x_13 = l_Lean_Parser_Term_byTactic___elambda__1___closed__2; -x_14 = l_Lean_Parser_ParserState_mkNode(x_8, x_13, x_7); -return x_14; -} -} -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_30 = lean_ctor_get(x_2, 0); -lean_inc(x_30); -x_31 = lean_array_get_size(x_30); -lean_dec(x_30); -x_32 = lean_ctor_get(x_2, 1); -lean_inc(x_32); -lean_inc(x_1); -x_33 = lean_apply_2(x_4, x_1, x_2); -x_34 = lean_ctor_get(x_33, 3); -lean_inc(x_34); -if (lean_obj_tag(x_34) == 0) -{ -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_1); -return x_33; -} -else -{ -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -lean_dec(x_34); -x_36 = lean_ctor_get(x_33, 1); -lean_inc(x_36); -x_37 = lean_nat_dec_eq(x_36, x_32); -lean_dec(x_36); -if (x_37 == 0) -{ -lean_dec(x_35); -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_1); -return x_33; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_51; lean_object* x_52; -lean_inc(x_32); -x_38 = l_Lean_Parser_ParserState_restore(x_33, x_31, x_32); -lean_dec(x_31); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_array_get_size(x_39); -lean_dec(x_39); -lean_inc(x_1); -x_51 = l_Lean_Parser_tokenFn(x_1, x_38); -x_52 = lean_ctor_get(x_51, 3); -lean_inc(x_52); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_51, 0); -lean_inc(x_53); -x_54 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_53); -lean_dec(x_53); -if (lean_obj_tag(x_54) == 2) -{ -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -x_56 = l_Lean_Parser_Term_byTactic___elambda__1___closed__6; -x_57 = lean_string_dec_eq(x_55, x_56); -lean_dec(x_55); -if (x_57 == 0) -{ -lean_object* x_58; lean_object* x_59; -x_58 = l_Lean_Parser_Term_byTactic___elambda__1___closed__9; -lean_inc(x_32); -x_59 = l_Lean_Parser_ParserState_mkErrorsAt(x_51, x_58, x_32); -x_41 = x_59; -goto block_50; -} -else -{ -x_41 = x_51; -goto block_50; -} -} -else -{ -lean_object* x_60; lean_object* x_61; -lean_dec(x_54); -x_60 = l_Lean_Parser_Term_byTactic___elambda__1___closed__9; -lean_inc(x_32); -x_61 = l_Lean_Parser_ParserState_mkErrorsAt(x_51, x_60, x_32); -x_41 = x_61; -goto block_50; -} -} -else -{ -lean_object* x_62; lean_object* x_63; -lean_dec(x_52); -x_62 = l_Lean_Parser_Term_byTactic___elambda__1___closed__9; -lean_inc(x_32); -x_63 = l_Lean_Parser_ParserState_mkErrorsAt(x_51, x_62, x_32); -x_41 = x_63; -goto block_50; -} -block_50: -{ -lean_object* x_42; -x_42 = lean_ctor_get(x_41, 3); -lean_inc(x_42); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = l_Lean_Parser_Tactic_nonEmptySeq___elambda__1(x_1, x_41); -x_44 = l_Lean_Parser_Term_byTactic___elambda__1___closed__2; -x_45 = l_Lean_Parser_ParserState_mkNode(x_43, x_44, x_40); -x_46 = l_Lean_Parser_mergeOrElseErrors(x_45, x_35, x_32); -lean_dec(x_32); -return x_46; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_dec(x_42); -lean_dec(x_1); -x_47 = l_Lean_Parser_Term_byTactic___elambda__1___closed__2; -x_48 = l_Lean_Parser_ParserState_mkNode(x_41, x_47, x_40); -x_49 = l_Lean_Parser_mergeOrElseErrors(x_48, x_35, x_32); -lean_dec(x_32); -return x_49; -} -} -} -} -} -} -} -lean_object* _init_l_Lean_Parser_Term_byTactic___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_byTactic___elambda__1___closed__6; -x_2 = l_Lean_Parser_Term_if___closed__1; -x_3 = l_Lean_Parser_symbolInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_byTactic___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_nonEmptySeq; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_Term_byTactic___closed__1; -x_4 = l_Lean_Parser_andthenInfo(x_3, x_2); -return x_4; -} -} -lean_object* _init_l_Lean_Parser_Term_byTactic___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_byTactic___elambda__1___closed__2; -x_2 = l_Lean_Parser_Term_byTactic___closed__2; -x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_byTactic___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_byTactic___elambda__1___closed__4; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_Term_byTactic___closed__3; -x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); -return x_4; -} -} -lean_object* _init_l_Lean_Parser_Term_byTactic___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_byTactic___elambda__1), 2, 0); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Term_byTactic___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_byTactic___closed__4; -x_2 = l_Lean_Parser_Term_byTactic___closed__5; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_byTactic() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Parser_Term_byTactic___closed__6; -return x_1; -} -} -lean_object* l___regBuiltinParser_Lean_Parser_Term_byTactic(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Parser_termParser___closed__2; -x_3 = l_Lean_Parser_Term_byTactic___elambda__1___closed__2; -x_4 = 1; -x_5 = l_Lean_Parser_Term_byTactic; -x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("stxQuot"); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("`(tactic|"); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__3; -x_2 = l_String_trim(x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Char_HasRepr___closed__1; -x_2 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__4; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__5; -x_2 = l_Char_HasRepr___closed__1; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__6; -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_Parser_Term_tacticStxQuot___elambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_array_get_size(x_3); -lean_dec(x_3); -x_37 = lean_ctor_get(x_2, 1); -lean_inc(x_37); -lean_inc(x_1); -x_38 = l_Lean_Parser_tokenFn(x_1, x_2); -x_39 = lean_ctor_get(x_38, 3); -lean_inc(x_39); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_38, 0); -lean_inc(x_40); -x_41 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_40); -lean_dec(x_40); -if (lean_obj_tag(x_41) == 2) -{ -lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -lean_dec(x_41); -x_43 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__4; -x_44 = lean_string_dec_eq(x_42, x_43); -lean_dec(x_42); -if (x_44 == 0) -{ -lean_object* x_45; lean_object* x_46; -x_45 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__7; -x_46 = l_Lean_Parser_ParserState_mkErrorsAt(x_38, x_45, x_37); -x_5 = x_46; -goto block_36; -} -else -{ -lean_dec(x_37); -x_5 = x_38; -goto block_36; -} -} -else -{ -lean_object* x_47; lean_object* x_48; -lean_dec(x_41); -x_47 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__7; -x_48 = l_Lean_Parser_ParserState_mkErrorsAt(x_38, x_47, x_37); -x_5 = x_48; -goto block_36; -} -} -else -{ -lean_object* x_49; lean_object* x_50; -lean_dec(x_39); -x_49 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__7; -x_50 = l_Lean_Parser_ParserState_mkErrorsAt(x_38, x_49, x_37); -x_5 = x_50; -goto block_36; -} -block_36: -{ -lean_object* x_6; -x_6 = lean_ctor_get(x_5, 3); -lean_inc(x_6); -if (lean_obj_tag(x_6) == 0) -{ -uint8_t x_7; lean_object* x_8; lean_object* x_9; -x_7 = 1; -lean_inc(x_1); -x_8 = l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_nonEmptySeq___elambda__1___spec__1(x_7, x_7, x_1, x_5); -x_9 = lean_ctor_get(x_8, 3); -lean_inc(x_9); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -x_11 = l_Lean_Parser_tokenFn(x_1, x_8); -x_12 = lean_ctor_get(x_11, 3); -lean_inc(x_12); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 0); -lean_inc(x_13); -x_14 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_13); -lean_dec(x_13); -if (lean_obj_tag(x_14) == 2) -{ -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__4; -x_17 = lean_string_dec_eq(x_15, x_16); -lean_dec(x_15); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__7; -x_19 = l_Lean_Parser_ParserState_mkErrorsAt(x_11, x_18, x_10); -x_20 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; -x_21 = l_Lean_Parser_ParserState_mkNode(x_19, x_20, x_4); -return x_21; -} -else -{ -lean_object* x_22; lean_object* x_23; -lean_dec(x_10); -x_22 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; -x_23 = l_Lean_Parser_ParserState_mkNode(x_11, x_22, x_4); -return x_23; -} -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -lean_dec(x_14); -x_24 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__7; -x_25 = l_Lean_Parser_ParserState_mkErrorsAt(x_11, x_24, x_10); -x_26 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; -x_27 = l_Lean_Parser_ParserState_mkNode(x_25, x_26, x_4); -return x_27; -} -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -lean_dec(x_12); -x_28 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__7; -x_29 = l_Lean_Parser_ParserState_mkErrorsAt(x_11, x_28, x_10); -x_30 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; -x_31 = l_Lean_Parser_ParserState_mkNode(x_29, x_30, x_4); -return x_31; -} -} -else -{ -lean_object* x_32; lean_object* x_33; -lean_dec(x_9); -lean_dec(x_1); -x_32 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; -x_33 = l_Lean_Parser_ParserState_mkNode(x_8, x_32, x_4); -return x_33; -} -} -else -{ -lean_object* x_34; lean_object* x_35; -lean_dec(x_6); -lean_dec(x_1); -x_34 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; -x_35 = l_Lean_Parser_ParserState_mkNode(x_5, x_34, x_4); -return x_35; -} -} -} -} -lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__4; -x_2 = l_Lean_Parser_Level_paren___closed__1; -x_3 = l_Lean_Parser_symbolInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_nonEmptySeq___closed__1; -x_2 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___closed__5; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_tacticStxQuot___closed__1; -x_2 = l_Lean_Parser_Term_tacticStxQuot___closed__2; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; -x_2 = l_Lean_Parser_Term_tacticStxQuot___closed__3; -x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_tacticStxQuot___elambda__1), 2, 0); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_tacticStxQuot___closed__4; -x_2 = l_Lean_Parser_Term_tacticStxQuot___closed__5; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticStxQuot() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Parser_Term_tacticStxQuot___closed__6; -return x_1; -} -} -lean_object* _init_l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("tacticStxQuot"); -return x_1; -} -} -lean_object* _init_l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___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___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Parser_termParser___closed__2; -x_3 = l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__2; -x_4 = 1; -x_5 = l_Lean_Parser_Term_tacticStxQuot; -x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} lean_object* initialize_Init_Lean_Parser_Term(lean_object*); static bool _G_initialized = false; lean_object* initialize_Init_Lean_Parser_Tactic(lean_object* w) { @@ -8282,24 +6312,6 @@ _G_initialized = true; res = initialize_Init_Lean_Parser_Term(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Parser_regBuiltinTacticParserAttr___closed__1 = _init_l_Lean_Parser_regBuiltinTacticParserAttr___closed__1(); -lean_mark_persistent(l_Lean_Parser_regBuiltinTacticParserAttr___closed__1); -l_Lean_Parser_regBuiltinTacticParserAttr___closed__2 = _init_l_Lean_Parser_regBuiltinTacticParserAttr___closed__2(); -lean_mark_persistent(l_Lean_Parser_regBuiltinTacticParserAttr___closed__2); -l_Lean_Parser_regBuiltinTacticParserAttr___closed__3 = _init_l_Lean_Parser_regBuiltinTacticParserAttr___closed__3(); -lean_mark_persistent(l_Lean_Parser_regBuiltinTacticParserAttr___closed__3); -l_Lean_Parser_regBuiltinTacticParserAttr___closed__4 = _init_l_Lean_Parser_regBuiltinTacticParserAttr___closed__4(); -lean_mark_persistent(l_Lean_Parser_regBuiltinTacticParserAttr___closed__4); -res = l_Lean_Parser_regBuiltinTacticParserAttr(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Parser_regTacticParserAttribute___closed__1 = _init_l_Lean_Parser_regTacticParserAttribute___closed__1(); -lean_mark_persistent(l_Lean_Parser_regTacticParserAttribute___closed__1); -l_Lean_Parser_regTacticParserAttribute___closed__2 = _init_l_Lean_Parser_regTacticParserAttribute___closed__2(); -lean_mark_persistent(l_Lean_Parser_regTacticParserAttribute___closed__2); -res = l_Lean_Parser_regTacticParserAttribute(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); l_Lean_Parser_Tactic_underscoreFn___closed__1 = _init_l_Lean_Parser_Tactic_underscoreFn___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_underscoreFn___closed__1); l_Lean_Parser_Tactic_underscoreFn___closed__2 = _init_l_Lean_Parser_Tactic_underscoreFn___closed__2(); @@ -8322,34 +6334,6 @@ l_Lean_Parser_Tactic_ident_x27___closed__3 = _init_l_Lean_Parser_Tactic_ident_x2 lean_mark_persistent(l_Lean_Parser_Tactic_ident_x27___closed__3); l_Lean_Parser_Tactic_ident_x27 = _init_l_Lean_Parser_Tactic_ident_x27(); lean_mark_persistent(l_Lean_Parser_Tactic_ident_x27); -l_Lean_Parser_Tactic_seq___elambda__1___closed__1 = _init_l_Lean_Parser_Tactic_seq___elambda__1___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_seq___elambda__1___closed__1); -l_Lean_Parser_Tactic_seq___elambda__1___closed__2 = _init_l_Lean_Parser_Tactic_seq___elambda__1___closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_seq___elambda__1___closed__2); -l_Lean_Parser_Tactic_seq___elambda__1___closed__3 = _init_l_Lean_Parser_Tactic_seq___elambda__1___closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_seq___elambda__1___closed__3); -l_Lean_Parser_Tactic_seq___closed__1 = _init_l_Lean_Parser_Tactic_seq___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_seq___closed__1); -l_Lean_Parser_Tactic_seq___closed__2 = _init_l_Lean_Parser_Tactic_seq___closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_seq___closed__2); -l_Lean_Parser_Tactic_seq___closed__3 = _init_l_Lean_Parser_Tactic_seq___closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_seq___closed__3); -l_Lean_Parser_Tactic_seq___closed__4 = _init_l_Lean_Parser_Tactic_seq___closed__4(); -lean_mark_persistent(l_Lean_Parser_Tactic_seq___closed__4); -l_Lean_Parser_Tactic_seq___closed__5 = _init_l_Lean_Parser_Tactic_seq___closed__5(); -lean_mark_persistent(l_Lean_Parser_Tactic_seq___closed__5); -l_Lean_Parser_Tactic_seq = _init_l_Lean_Parser_Tactic_seq(); -lean_mark_persistent(l_Lean_Parser_Tactic_seq); -l_Lean_Parser_Tactic_nonEmptySeq___closed__1 = _init_l_Lean_Parser_Tactic_nonEmptySeq___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_nonEmptySeq___closed__1); -l_Lean_Parser_Tactic_nonEmptySeq___closed__2 = _init_l_Lean_Parser_Tactic_nonEmptySeq___closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_nonEmptySeq___closed__2); -l_Lean_Parser_Tactic_nonEmptySeq___closed__3 = _init_l_Lean_Parser_Tactic_nonEmptySeq___closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_nonEmptySeq___closed__3); -l_Lean_Parser_Tactic_nonEmptySeq___closed__4 = _init_l_Lean_Parser_Tactic_nonEmptySeq___closed__4(); -lean_mark_persistent(l_Lean_Parser_Tactic_nonEmptySeq___closed__4); -l_Lean_Parser_Tactic_nonEmptySeq = _init_l_Lean_Parser_Tactic_nonEmptySeq(); -lean_mark_persistent(l_Lean_Parser_Tactic_nonEmptySeq); l_Lean_Parser_Tactic_intro___elambda__1___closed__1 = _init_l_Lean_Parser_Tactic_intro___elambda__1___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_intro___elambda__1___closed__1); l_Lean_Parser_Tactic_intro___elambda__1___closed__2 = _init_l_Lean_Parser_Tactic_intro___elambda__1___closed__2(); @@ -8800,26 +6784,6 @@ l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__3 = _init_l_Lean_P lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__3); l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__4 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__4(); lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__4); -l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__5 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__5(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__5); -l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__6 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__6(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__6); -l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__7 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__7(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__7); -l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__8 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__8(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__8); -l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__9 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__9(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__9); -l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__10 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__10(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__10); -l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__11); -l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__12 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__12(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__12); -l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__13 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__13(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__13); -l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14); l_Lean_Parser_Tactic_nestedTacticBlock___closed__1 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___closed__1); l_Lean_Parser_Tactic_nestedTacticBlock___closed__2 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__2(); @@ -8832,10 +6796,6 @@ l_Lean_Parser_Tactic_nestedTacticBlock___closed__5 = _init_l_Lean_Parser_Tactic_ lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___closed__5); l_Lean_Parser_Tactic_nestedTacticBlock___closed__6 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__6(); lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___closed__6); -l_Lean_Parser_Tactic_nestedTacticBlock___closed__7 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__7(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___closed__7); -l_Lean_Parser_Tactic_nestedTacticBlock___closed__8 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__8(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___closed__8); l_Lean_Parser_Tactic_nestedTacticBlock = _init_l_Lean_Parser_Tactic_nestedTacticBlock(); lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock); res = l___regBuiltinParser_Lean_Parser_Tactic_nestedTacticBlock(lean_io_mk_world()); @@ -8893,101 +6853,6 @@ lean_mark_persistent(l_Lean_Parser_Tactic_orelse); res = l___regBuiltinParser_Lean_Parser_Tactic_orelse(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Parser_Term_tacticBlock___elambda__1___closed__1 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__1(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__1); -l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2); -l_Lean_Parser_Term_tacticBlock___elambda__1___closed__3 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__3(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__3); -l_Lean_Parser_Term_tacticBlock___elambda__1___closed__4 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__4(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__4); -l_Lean_Parser_Term_tacticBlock___closed__1 = _init_l_Lean_Parser_Term_tacticBlock___closed__1(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___closed__1); -l_Lean_Parser_Term_tacticBlock___closed__2 = _init_l_Lean_Parser_Term_tacticBlock___closed__2(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___closed__2); -l_Lean_Parser_Term_tacticBlock___closed__3 = _init_l_Lean_Parser_Term_tacticBlock___closed__3(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___closed__3); -l_Lean_Parser_Term_tacticBlock___closed__4 = _init_l_Lean_Parser_Term_tacticBlock___closed__4(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___closed__4); -l_Lean_Parser_Term_tacticBlock___closed__5 = _init_l_Lean_Parser_Term_tacticBlock___closed__5(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___closed__5); -l_Lean_Parser_Term_tacticBlock___closed__6 = _init_l_Lean_Parser_Term_tacticBlock___closed__6(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___closed__6); -l_Lean_Parser_Term_tacticBlock = _init_l_Lean_Parser_Term_tacticBlock(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock); -res = l___regBuiltinParser_Lean_Parser_Term_tacticBlock(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Parser_Term_byTactic___elambda__1___closed__1 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__1(); -lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__1); -l_Lean_Parser_Term_byTactic___elambda__1___closed__2 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__2(); -lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__2); -l_Lean_Parser_Term_byTactic___elambda__1___closed__3 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__3(); -lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__3); -l_Lean_Parser_Term_byTactic___elambda__1___closed__4 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__4(); -lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__4); -l_Lean_Parser_Term_byTactic___elambda__1___closed__5 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__5(); -lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__5); -l_Lean_Parser_Term_byTactic___elambda__1___closed__6 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__6(); -lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__6); -l_Lean_Parser_Term_byTactic___elambda__1___closed__7 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__7(); -lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__7); -l_Lean_Parser_Term_byTactic___elambda__1___closed__8 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__8(); -lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__8); -l_Lean_Parser_Term_byTactic___elambda__1___closed__9 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__9(); -lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__9); -l_Lean_Parser_Term_byTactic___closed__1 = _init_l_Lean_Parser_Term_byTactic___closed__1(); -lean_mark_persistent(l_Lean_Parser_Term_byTactic___closed__1); -l_Lean_Parser_Term_byTactic___closed__2 = _init_l_Lean_Parser_Term_byTactic___closed__2(); -lean_mark_persistent(l_Lean_Parser_Term_byTactic___closed__2); -l_Lean_Parser_Term_byTactic___closed__3 = _init_l_Lean_Parser_Term_byTactic___closed__3(); -lean_mark_persistent(l_Lean_Parser_Term_byTactic___closed__3); -l_Lean_Parser_Term_byTactic___closed__4 = _init_l_Lean_Parser_Term_byTactic___closed__4(); -lean_mark_persistent(l_Lean_Parser_Term_byTactic___closed__4); -l_Lean_Parser_Term_byTactic___closed__5 = _init_l_Lean_Parser_Term_byTactic___closed__5(); -lean_mark_persistent(l_Lean_Parser_Term_byTactic___closed__5); -l_Lean_Parser_Term_byTactic___closed__6 = _init_l_Lean_Parser_Term_byTactic___closed__6(); -lean_mark_persistent(l_Lean_Parser_Term_byTactic___closed__6); -l_Lean_Parser_Term_byTactic = _init_l_Lean_Parser_Term_byTactic(); -lean_mark_persistent(l_Lean_Parser_Term_byTactic); -res = l___regBuiltinParser_Lean_Parser_Term_byTactic(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__1 = _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__1(); -lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__1); -l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2 = _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2(); -lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2); -l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__3 = _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__3(); -lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__3); -l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__4 = _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__4(); -lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__4); -l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__5 = _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__5(); -lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__5); -l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__6 = _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__6(); -lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__6); -l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__7 = _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__7(); -lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__7); -l_Lean_Parser_Term_tacticStxQuot___closed__1 = _init_l_Lean_Parser_Term_tacticStxQuot___closed__1(); -lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___closed__1); -l_Lean_Parser_Term_tacticStxQuot___closed__2 = _init_l_Lean_Parser_Term_tacticStxQuot___closed__2(); -lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___closed__2); -l_Lean_Parser_Term_tacticStxQuot___closed__3 = _init_l_Lean_Parser_Term_tacticStxQuot___closed__3(); -lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___closed__3); -l_Lean_Parser_Term_tacticStxQuot___closed__4 = _init_l_Lean_Parser_Term_tacticStxQuot___closed__4(); -lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___closed__4); -l_Lean_Parser_Term_tacticStxQuot___closed__5 = _init_l_Lean_Parser_Term_tacticStxQuot___closed__5(); -lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___closed__5); -l_Lean_Parser_Term_tacticStxQuot___closed__6 = _init_l_Lean_Parser_Term_tacticStxQuot___closed__6(); -lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___closed__6); -l_Lean_Parser_Term_tacticStxQuot = _init_l_Lean_Parser_Term_tacticStxQuot(); -lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot); -l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__1 = _init_l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__1(); -lean_mark_persistent(l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__1); -l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__2 = _init_l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__2(); -lean_mark_persistent(l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__2); -res = l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); return lean_mk_io_result(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Lean/Parser/Term.c b/stage0/stdlib/Init/Lean/Parser/Term.c index dc6d877778..54b612b698 100644 --- a/stage0/stdlib/Init/Lean/Parser/Term.c +++ b/stage0/stdlib/Init/Lean/Parser/Term.c @@ -35,6 +35,7 @@ lean_object* l_Lean_Parser_Term_parser_x21___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_matchAlts___closed__3; lean_object* l_Lean_Parser_Term_infixL___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__1; +lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__4; lean_object* l___regBuiltinParser_Lean_Parser_Term_iff(lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Term_suffices(lean_object*); lean_object* l_Lean_Parser_Term_arrayLit___closed__3; @@ -47,6 +48,7 @@ lean_object* l_Lean_Parser_Term_quotedName___closed__4; lean_object* l_Lean_Parser_Term_andthen___elambda__1___closed__2; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_doSeq___elambda__1___spec__2(uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_where___elambda__1___spec__2___closed__3; +lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_bindOp___elambda__1(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_manyAux___main___closed__1; lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__10; @@ -70,6 +72,7 @@ lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_orelse; lean_object* l_Lean_Parser_Term_seqLeft___closed__1; lean_object* l_Lean_Parser_Term_simpleBinder___closed__2; +lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__5; lean_object* l_Lean_Parser_Term_if___elambda__1___closed__18; lean_object* l___regBuiltinParser_Lean_Parser_Term_structInst(lean_object*); lean_object* l_Lean_Parser_Term_gt___elambda__1___closed__1; @@ -90,7 +93,9 @@ lean_object* l_Lean_Parser_ParserState_mkError(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_optType___closed__2; lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__8; lean_object* l___regBuiltinParser_Lean_Parser_Term_dollarProj(lean_object*); +lean_object* l_Lean_Parser_Term_binderTactic___elambda__1___closed__6; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_tupleTail___elambda__1___spec__2(uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Parser_regBuiltinTacticParserAttr___closed__1; lean_object* l_Lean_Parser_Term_borrowed___closed__4; lean_object* l_Lean_Parser_Term_bracktedBinder(uint8_t); lean_object* l_Lean_Parser_Term_mapRev___elambda__1___closed__3; @@ -110,6 +115,7 @@ lean_object* l_Lean_Parser_Term_dollar___elambda__1(lean_object*, lean_object*); extern lean_object* l_addParenHeuristic___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Term_add(lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Term_mapConstRev(lean_object*); +lean_object* l_Lean_Parser_Term_byTactic___closed__4; lean_object* l_Lean_Parser_Term_mapConstRev___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_show; lean_object* l_Lean_Parser_Term_ne___elambda__1___closed__3; @@ -131,6 +137,7 @@ lean_object* l_Lean_Parser_Term_inaccessible___closed__1; lean_object* l_Lean_Parser_Term_not___closed__6; lean_object* l_Lean_Parser_Term_matchAlts(uint8_t); lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__7; +lean_object* l_Lean_Parser_Tactic_nonEmptySeq___closed__2; lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__4; lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_lt___elambda__1___closed__4; @@ -143,7 +150,7 @@ lean_object* l_Lean_Parser_Term_str___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_andthen___closed__3; lean_object* l_Lean_Parser_Term_not___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_checkIsSort___elambda__1___boxed(lean_object*); -lean_object* l_Lean_Parser_Term_have___elambda__1___closed__10; +lean_object* l_Lean_Parser_Tactic_seq___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_structInst___closed__6; lean_object* l___regBuiltinParser_Lean_Parser_Term_explicit(lean_object*); lean_object* l_Lean_Parser_Term_letEqnsDecl___closed__2; @@ -154,6 +161,7 @@ lean_object* l_Lean_Parser_Term_nomatch___elambda__1___closed__5; lean_object* l_Lean_Parser_darrow___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_haveAssign___closed__2; lean_object* l_Lean_Parser_Term_forall___elambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_structInstSource___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_not___closed__5; lean_object* l_Lean_Parser_Term_pow___elambda__1___closed__3; @@ -173,11 +181,13 @@ lean_object* l_Lean_Parser_Term_inaccessible___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_seqLeft___closed__2; lean_object* l_Lean_Parser_Term_namedArgument___closed__5; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_matchAlts___elambda__1___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_seq; lean_object* l_Lean_Parser_Term_show___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_match; lean_object* l_Lean_Parser_Term_depArrow; lean_object* l_Lean_Parser_Term_heq___elambda__1___closed__1; extern lean_object* l_Lean_List_format___rarg___closed__2; +lean_object* l_Lean_Parser_Term_tacticBlock___closed__7; lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__9; lean_object* l___regBuiltinParser_Lean_Parser_Term_liftMethod(lean_object*); lean_object* l_Lean_Parser_Term_iff___elambda__1(lean_object*, lean_object*); @@ -195,6 +205,7 @@ lean_object* l_Lean_Parser_Term_inaccessible___closed__4; lean_object* l_Lean_Parser_Term_arrayLit___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_show___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_match__syntax___closed__7; +lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; lean_object* l_Lean_Parser_Term_matchAlt___closed__8; lean_object* l_Lean_Parser_Term_prod___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_darrow___elambda__1___closed__4; @@ -203,8 +214,10 @@ lean_object* l_Lean_Parser_sepByFn___at_Lean_Parser_Term_anonymousCtor___elambda lean_object* l_Lean_Parser_Term_type___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_and___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doSeq___elambda__1(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_parser_x21___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_div; +lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_simpleBinder___closed__1; lean_object* l_Lean_Parser_Term_do___closed__3; lean_object* l_Lean_Parser_Term_div___elambda__1(lean_object*, lean_object*); @@ -212,14 +225,19 @@ lean_object* l_Lean_Parser_Term_if___closed__10; lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_subst___closed__4; lean_object* l_Lean_Parser_Term_prop; +lean_object* l_Lean_Parser_Term_binderTactic___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_seqLeft___elambda__1___closed__1; +lean_object* l_Lean_Parser_sepByFn___at_Lean_Parser_Tactic_seq___elambda__1___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_sepByFn___at_Lean_Parser_Tactic_seq___elambda__1___spec__1(uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_hole___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_seqRight___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_do___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_binderTactic___elambda__1___closed__3; +lean_object* l_Lean_Parser_regTacticParserAttribute___closed__2; lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__1; +lean_object* l_Lean_Parser_Term_tacticBlock___closed__3; lean_object* l_Lean_Parser_Term_match___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_type___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_letPatDecl___closed__2; @@ -240,6 +258,7 @@ lean_object* l_Lean_Parser_Term_subst___elambda__1___closed__1; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_explicitUniv___elambda__1___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_match___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_subst___closed__9; +lean_object* l_Lean_Parser_Term_binderTactic___closed__7; lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_show___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_cdot___elambda__1(lean_object*, lean_object*); @@ -250,6 +269,7 @@ lean_object* l_Lean_Parser_Term_doPat___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_instBinder___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__2; lean_object* l_Lean_Parser_darrow___elambda__1___closed__6; +lean_object* l_Lean_Parser_Term_byTactic; lean_object* l_Lean_Parser_Term_have___closed__3; lean_object* l_Lean_Parser_ParserState_pushSyntax(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_binderTactic___elambda__1(lean_object*, lean_object*); @@ -269,7 +289,6 @@ lean_object* l_Lean_Parser_Term_quotedName___closed__3; extern lean_object* l_Lean_Parser_dollarSymbol___closed__1; lean_object* l_Lean_Parser_Term_subst___closed__6; extern lean_object* l_Lean_Parser_ident; -lean_object* l_Lean_Parser_Term_seq___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_sortApp___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Term_quotedName(lean_object*); lean_object* l_Lean_Parser_Term_show___elambda__1___closed__6; @@ -292,6 +311,7 @@ lean_object* l_Lean_Parser_Term_modN; lean_object* l_Lean_Parser_Term_mul___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_if___elambda__1___closed__16; lean_object* l_Lean_Parser_ParserState_mkNode(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__3; lean_object* l_Lean_Parser_Term_equiv___closed__2; lean_object* l_Lean_Parser_Term_suffices___closed__9; lean_object* l___regBuiltinParser_Lean_Parser_Term_andthen(lean_object*); @@ -314,18 +334,20 @@ lean_object* l_Lean_Parser_Term_namedArgument___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_namedArgument___closed__3; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_tupleTail___elambda__1___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__3; +lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Term_do(lean_object*); lean_object* l_Lean_Parser_Term_num___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Level_num___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__9; +lean_object* l_Lean_Parser_regTacticParserAttribute___closed__1; lean_object* l_Lean_Parser_Term_letPatDecl___closed__4; lean_object* l_Lean_Parser_Term_if___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_or___elambda__1___closed__4; -lean_object* l_Lean_Parser_Term_have___elambda__1___closed__11; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_match__syntax___closed__3; extern lean_object* l_Lean_Parser_symbolNoWsFn___closed__1; lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__6; +lean_object* l_Lean_Parser_Term_byTactic___closed__1; lean_object* l_Lean_Parser_Term_bor___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_hole___closed__2; lean_object* l_Lean_Parser_Term_liftMethod___elambda__1___closed__2; @@ -340,7 +362,9 @@ extern lean_object* l_Lean_Parser_regBuiltinLevelParserAttr___closed__4; lean_object* l_Lean_Parser_Term_not___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_cdot___closed__4; lean_object* l_Lean_Parser_orelseFn(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_registerBuiltinDynamicParserAttribute(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_namedArgument___elambda__1___closed__2; +lean_object* l_Lean_Parser_regBuiltinTacticParserAttr(lean_object*); lean_object* l_Lean_Parser_Term_doLet___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_doPat___closed__4; lean_object* l_Lean_Parser_Term_doId___closed__2; @@ -355,6 +379,7 @@ lean_object* l_Lean_Parser_Term_prop___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_match___elambda__1___closed__11; lean_object* l_Lean_Parser_Term_let___elambda__1___closed__7; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_matchAlts___elambda__1___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_matchAlts___elambda__1___spec__14(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_not___closed__3; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_matchAlts___elambda__1___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -363,6 +388,7 @@ lean_object* l_Lean_Parser_Term_optIdent___closed__4; lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Parser_Term_doId___closed__1; lean_object* l_Lean_Parser_Term_if___elambda__1___closed__10; +lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__2; extern lean_object* l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_cons___elambda__1___closed__4; @@ -389,7 +415,9 @@ lean_object* l_Lean_Parser_Term_nomatch___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_listLit___closed__4; lean_object* l_Lean_Parser_Term_hole___closed__5; lean_object* l_Lean_Parser_Term_gt___elambda__1___closed__2; +lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__4; +lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__2; lean_object* l_Lean_Parser_Term_optType___closed__1; lean_object* l_Lean_Parser_Term_funBinder; lean_object* l_Lean_Parser_Term_match__syntax___closed__5; @@ -404,12 +432,14 @@ lean_object* l_Lean_Parser_Term_bracketedDoSeq___elambda__1(lean_object*, lean_o lean_object* l_Lean_Parser_Term_suffices___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_parenSpecial___closed__1; lean_object* l_Lean_Parser_Term_not___elambda__1___closed__5; +lean_object* l_Lean_Parser_Tactic_seq___closed__6; lean_object* l_Lean_Parser_Term_listLit___closed__9; lean_object* l_Lean_Parser_Term_structInstLVal___closed__9; lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_show___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_tupleTail___elambda__1(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Level_paren___closed__3; +lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1; lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_forall___closed__7; lean_object* l___regBuiltinParser_Lean_Parser_Term_tparser_x21(lean_object*); @@ -428,6 +458,7 @@ lean_object* l_Lean_Parser_Term_ge___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_simpleBinder___closed__3; lean_object* l_Lean_Parser_Term_heq___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_parser_x21___closed__5; +lean_object* l_Lean_Parser_Tactic_nonEmptySeq; lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_bnot___elambda__1___closed__6; lean_object* lean_string_utf8_byte_size(lean_object*); @@ -436,6 +467,7 @@ lean_object* l_Lean_Parser_Term_paren; lean_object* l_Lean_Parser_Term_anonymousCtor___closed__1; lean_object* l_Lean_Parser_Term_structInstSource___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_heq___closed__3; +extern lean_object* l_Lean_mkAppStx___closed__4; lean_object* l_Lean_Parser_ParserState_mkErrorsAt(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_andM___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_mul___elambda__1(lean_object*, lean_object*); @@ -455,6 +487,7 @@ lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal__ lean_object* l_Lean_Parser_Term_match___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_not___closed__2; +lean_object* l_Lean_Parser_Tactic_nonEmptySeq___closed__4; lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__11; extern lean_object* l_Lean_mkTermIdFromIdent___closed__1; lean_object* l_Lean_Parser_Term_explicitUniv___closed__10; @@ -504,10 +537,12 @@ lean_object* l_Lean_Parser_Term_equiv___closed__3; lean_object* l_Lean_Parser_Term_sorry___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_suffices___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_let___elambda__1___closed__5; +lean_object* l_Lean_Parser_tacticParser(lean_object*); lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_bracketedDoSeq___closed__3; lean_object* l_Lean_Parser_Term_doPat___closed__6; lean_object* l_Lean_Parser_Term_sorry___closed__4; +lean_object* l_Lean_Parser_regBuiltinTacticParserAttr___closed__2; lean_object* l_Lean_Parser_Term_subtype___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_where___closed__4; lean_object* l_Lean_Parser_Term_prod___elambda__1___closed__2; @@ -515,6 +550,7 @@ lean_object* l_Lean_Parser_Term_paren___closed__5; lean_object* l_Lean_Parser_Term_infixR___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_div___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__3; +lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_arrayLit___closed__6; lean_object* l_Lean_Parser_Term_str; lean_object* l_Lean_Parser_Term_structInstLVal___closed__5; @@ -525,6 +561,7 @@ lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_ lean_object* l___regBuiltinParser_Lean_Parser_Term_sorry(lean_object*); lean_object* l_Lean_Parser_Term_nomatch___closed__4; lean_object* l_Lean_Parser_Term_or___elambda__1___closed__2; +lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__3; lean_object* l_Lean_Parser_Term_listLit___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_ge___closed__1; lean_object* l_Lean_Parser_Term_arrayRef___closed__5; @@ -554,13 +591,17 @@ lean_object* l_Lean_Parser_Term_add___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_have___elambda__1___closed__6; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_doSeq___elambda__1___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_seqRight___closed__1; +lean_object* l_Lean_Parser_Term_tacticStxQuot; lean_object* l___regBuiltinParser_Lean_Parser_Term_id(lean_object*); lean_object* l_Lean_Parser_Term_doElem___closed__3; lean_object* l_Lean_Parser_Term_if___closed__3; +lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__6; +lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_suffices___closed__4; lean_object* l_Lean_Parser_Term_fromTerm___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_funBinder___closed__3; lean_object* l_Lean_Parser_Term_let___closed__2; +lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Term_app(lean_object*); lean_object* l_Lean_Parser_Term_structInst___closed__9; lean_object* l_Lean_Parser_Term_dollarProj___elambda__1___closed__2; @@ -615,6 +656,7 @@ lean_object* l_Lean_Parser_Term_emptyC___elambda__1___closed__2; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_matchAlts___elambda__1___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_arrow; lean_object* l_Lean_Parser_Term_letIdLhs___closed__5; +lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_emptyC___elambda__1___closed__1; lean_object* l_Lean_Parser_manyAux___main(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_where___elambda__1___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -652,7 +694,9 @@ lean_object* l_Lean_Parser_Term_binderTactic___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_tupleTail___closed__1; lean_object* l_Lean_Parser_Term_not___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_le___elambda__1___closed__5; +lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__1; lean_object* l_Lean_Parser_Term_structInstSource___elambda__1___closed__8; +lean_object* l_Lean_Parser_Tactic_seq___closed__5; lean_object* l_Lean_Parser_Term_letEqnsDecl___closed__3; lean_object* l_Lean_Parser_Term_str___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_bracketedDoSeq___closed__5; @@ -670,6 +714,7 @@ lean_object* l_Lean_Parser_Term_pow___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_char___closed__1; lean_object* l_Lean_Parser_Term_fun; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_listLit___elambda__1___spec__2___closed__1; +lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__4; lean_object* l_Lean_Parser_nodeInfo(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_eq___closed__1; lean_object* l_Lean_Parser_Term_structInst___closed__4; @@ -680,6 +725,7 @@ lean_object* l_Lean_Parser_Term_fromTerm___closed__2; lean_object* l_Lean_Parser_symbolFn___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_id___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_type___elambda__1___closed__5; +lean_object* l_Lean_Parser_Tactic_seq___closed__3; lean_object* l_Lean_Parser_Term_let___closed__4; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_subst___elambda__1___spec__2___closed__3; lean_object* l_Lean_Parser_Term_nomatch___elambda__1___closed__2; @@ -712,6 +758,7 @@ lean_object* l_Lean_Parser_Term_listLit; lean_object* l_Lean_Parser_noFirstTokenInfo(lean_object*); lean_object* l_Lean_Parser_Term_letDecl; lean_object* l_Lean_Parser_Term_id___closed__2; +lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_sorry___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_explicitUniv___closed__6; @@ -748,14 +795,17 @@ lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__3; lean_object* l___regBuiltinParser_Lean_Parser_Term_dollar(lean_object*); lean_object* l_Lean_Parser_Term_explicitUniv___closed__5; lean_object* l_Lean_Parser_Term_let___closed__6; +lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_lt___closed__2; lean_object* l_Lean_Parser_Term_sorry___closed__3; lean_object* l_Lean_Parser_Term_instBinder___elambda__1___closed__2; lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_app___elambda__1___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_seq___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_ge___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_structInstField___closed__2; lean_object* l_Lean_Parser_Term_have; lean_object* l_Lean_Parser_Term_letIdLhs___closed__3; +lean_object* l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot(lean_object*); lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_parser_x21___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_typeSpec; @@ -772,6 +822,7 @@ lean_object* l_Lean_Parser_Term_arrayRef; lean_object* l_Lean_Parser_Term_cdot; lean_object* l_Lean_Parser_Term_structInstSource___closed__4; lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__3; +lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_nonEmptySeq___elambda__1___spec__1(uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_orM___closed__1; lean_object* l_Lean_Parser_Term_sub___elambda__1___closed__1; @@ -798,6 +849,7 @@ lean_object* l_Lean_Parser_optionaInfo(lean_object*); lean_object* l_Lean_Parser_Term_eq___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_doSeq; lean_object* l_Lean_Parser_Term_let___elambda__1___closed__6; +lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__2; lean_object* l_Lean_Parser_Term_if___closed__8; lean_object* l_Lean_Parser_Term_doElem; lean_object* l_Lean_Parser_Term_where___closed__8; @@ -894,6 +946,7 @@ lean_object* l_Lean_Parser_Term_num___closed__1; lean_object* l_Lean_Parser_Term_namedHole___elambda__1___closed__2; lean_object* l_Lean_Parser_orelseInfo(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_suffices___elambda__1___closed__8; +lean_object* l_Lean_Parser_Term_byTactic___elambda__1(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_fieldIdx___closed__2; lean_object* l_Lean_Parser_Term_andthen___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_fcomp___elambda__1___closed__2; @@ -904,6 +957,7 @@ lean_object* l_Lean_Parser_Term_nomatch___elambda__1(lean_object*, lean_object*) lean_object* l_Lean_Parser_Term_explicitBinder___elambda__1___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Term_type(lean_object*); lean_object* l_Lean_Parser_Term_binderIdent___closed__1; +lean_object* l___regBuiltinParser_Lean_Parser_Term_tacticBlock(lean_object*); lean_object* l_Lean_Parser_Term_structInstSource___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_ge___closed__3; lean_object* l_Lean_Parser_Term_structInstSource; @@ -973,8 +1027,10 @@ lean_object* l_Lean_Parser_Term_leftArrow___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_binderDefault___closed__2; lean_object* l_Lean_Parser_Term_orM___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_structInstField___closed__1; +lean_object* l_Lean_Parser_Term_binderTactic___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_structInstLVal___closed__6; lean_object* l_Lean_Parser_Term_le___elambda__1___closed__4; +lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; lean_object* l_Lean_Parser_Term_nomatch___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_iff___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_match__syntax; @@ -987,6 +1043,7 @@ lean_object* l_Lean_Parser_Term_structInstField___closed__4; lean_object* l_Lean_Parser_Term_proj___closed__3; lean_object* l_Lean_Parser_Term_uminus; lean_object* l_Lean_Parser_Term_namedArgument; +lean_object* l_Lean_Parser_Term_binderTactic___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_namedHole___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_implicitBinder(uint8_t); lean_object* l___regBuiltinParser_Lean_Parser_Term_seqLeft(lean_object*); @@ -1022,8 +1079,11 @@ lean_object* l_Lean_Parser_Term_dollarProj___closed__1; lean_object* l_Lean_Parser_Term_do; lean_object* l_Lean_Parser_Term_seqRight___closed__3; lean_object* l_Lean_Parser_Term_str___closed__2; +lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_nonEmptySeq___elambda__1___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_registerBuiltinParserAttribute(lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Term_bnot(lean_object*); lean_object* l_Lean_Parser_Term_binderTactic___closed__1; +lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_cdot___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_bnot___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_type___closed__2; @@ -1047,6 +1107,7 @@ lean_object* l_Lean_Parser_Term_append___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_proj___closed__2; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_fun___closed__4; +lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__3; lean_object* l___regBuiltinParser_Lean_Parser_Term_orM(lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Term_heq(lean_object*); lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__8; @@ -1071,6 +1132,7 @@ lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1(lean_object*, le lean_object* l___regBuiltinParser_Lean_Parser_Term_arrayRef(lean_object*); lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_beq___elambda__1___closed__2; +lean_object* l_Lean_Parser_Term_tacticBlock___closed__2; lean_object* l_Lean_Parser_Term_bor___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_listLit___closed__7; lean_object* l_Lean_Parser_Term_bor___elambda__1___closed__2; @@ -1080,6 +1142,7 @@ lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_ lean_object* l_Lean_Parser_Term_or___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_emptyC___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_emptyC; +lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_letPatDecl___closed__3; lean_object* l___regBuiltinParser_Lean_Parser_Term_sort(lean_object*); lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_listLit___elambda__1___spec__2___closed__3; @@ -1129,6 +1192,7 @@ lean_object* l_Lean_Parser_Term_show___closed__7; lean_object* l_Lean_Parser_ParserState_restore(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_arrayRef___elambda__1___closed__1; extern lean_object* l_Lean_formatEntry___closed__1; +lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__7; lean_object* l___regBuiltinParser_Lean_Parser_Term_have(lean_object*); lean_object* l_Lean_Parser_Term_structInstSource___closed__5; lean_object* l_Lean_Parser_Term_typeSpec___elambda__1___closed__3; @@ -1160,6 +1224,7 @@ lean_object* l_Lean_Parser_Term_borrowed___closed__7; lean_object* l_Lean_Parser_Term_doLet___closed__5; lean_object* l___regBuiltinParser_Lean_Parser_Term_prod(lean_object*); lean_object* l_Lean_Parser_Term_arrow___elambda__1___closed__3; +lean_object* l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__1; lean_object* l_Lean_Parser_Term_seq___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_arrayRef___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__2; @@ -1221,6 +1286,7 @@ lean_object* l_Lean_Parser_Term_heq___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_structInstLVal___closed__2; lean_object* l_Lean_Parser_Term_if___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_prop___elambda__1___closed__1; +lean_object* l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__2; lean_object* l_Lean_Parser_darrow___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_explicitBinder___closed__6; @@ -1252,6 +1318,7 @@ lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_structInstSource___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_mapRev; lean_object* l_Lean_Parser_Term_cons___closed__3; +lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_dollarProj___closed__3; lean_object* l_Lean_Parser_Term_id; lean_object* l_Lean_Parser_Term_arrow___elambda__1___closed__1; @@ -1272,6 +1339,7 @@ lean_object* l_Lean_Parser_Term_let___closed__7; lean_object* l_Lean_Parser_Term_cdot___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_mul___closed__1; lean_object* l_Lean_Parser_nodeWithAntiquot(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_byTactic___closed__5; lean_object* l_Lean_Parser_Term_proj___closed__7; lean_object* l_Lean_Parser_Term_if___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_prop___elambda__1___closed__2; @@ -1280,6 +1348,7 @@ lean_object* l_Lean_Parser_Term_typeAscription___closed__5; lean_object* l_Lean_Parser_Term_le___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_eq___closed__2; lean_object* l_Lean_Parser_ident___elambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_binderIdent; lean_object* l_Lean_Parser_Term_simpleBinder___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_infixR(lean_object*, lean_object*); @@ -1325,6 +1394,7 @@ lean_object* l_Lean_Parser_Term_doExpr___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_let___closed__5; lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__8; lean_object* l_Lean_Parser_Term_sub___closed__2; +lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__5; lean_object* l___regBuiltinParser_Lean_Parser_Term_proj(lean_object*); extern lean_object* l_PersistentArray_Stats_toString___closed__4; lean_object* l___regBuiltinParser_Lean_Parser_Term_band(lean_object*); @@ -1415,6 +1485,8 @@ lean_object* l_Lean_Parser_Term_parser_x21___closed__1; lean_object* l_Lean_Parser_Term_inaccessible___closed__3; lean_object* l_Lean_Parser_Term_match__syntax___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_str___elambda__1___closed__4; +lean_object* l_Lean_Parser_Tactic_nonEmptySeq___closed__3; +lean_object* l_Lean_Parser_regTacticParserAttribute(lean_object*); lean_object* l_Lean_Parser_Term_let___closed__3; lean_object* l_Lean_Parser_Term_suffices___closed__7; lean_object* l_Lean_Parser_Term_hole___elambda__1___closed__2; @@ -1445,6 +1517,7 @@ lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_depArrow___closed__6; lean_object* l_Lean_Parser_Term_mapConst___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_namedPattern___closed__1; +lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_doId___closed__7; lean_object* l_Lean_Parser_Term_explicitBinder___closed__2; lean_object* l_Lean_Parser_Term_have___elambda__1___closed__9; @@ -1467,6 +1540,7 @@ lean_object* l_Lean_Parser_Term_typeSpec___closed__3; lean_object* l_Lean_Parser_Term_iff___closed__1; lean_object* l_Lean_Parser_Term_orelse___closed__3; lean_object* l_Lean_Parser_Term_fun___closed__3; +lean_object* l_Lean_Parser_Term_tacticBlock___closed__8; lean_object* l_Lean_Parser_symbolInfo(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_match___closed__9; lean_object* l_Lean_Parser_Term_tupleTail___closed__5; @@ -1483,6 +1557,7 @@ lean_object* l_Lean_Parser_Term_explicitUniv___closed__2; extern lean_object* l_Lean_Parser_epsilonInfo; lean_object* l_Lean_Parser_Term_leftArrow___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_have___closed__4; +lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_mod___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_append___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_num___closed__3; @@ -1517,12 +1592,15 @@ lean_object* l_Lean_Parser_Term_fromTerm___closed__6; lean_object* l___regBuiltinParser_Lean_Parser_Term_namedHole(lean_object*); lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_subst___elambda__1___spec__2___closed__4; lean_object* l_Lean_Parser_Term_type; +lean_object* l_Lean_Parser_Term_tacticBlock___closed__4; lean_object* l_Lean_Parser_Term_pow___closed__1; extern lean_object* l_Lean_Parser_Level_hole___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_leftArrow___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_subst___closed__5; lean_object* l_Lean_Parser_Term_binderType___closed__4; +lean_object* l_Lean_Parser_Term_tacticBlock___closed__1; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_explicitUniv___elambda__1___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_tacticBlock; lean_object* l_Lean_Parser_Term_let___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_bne___closed__2; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_matchAlts___elambda__1___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1532,7 +1610,6 @@ lean_object* l_Lean_Parser_Term_subtype___closed__10; lean_object* l_Lean_Parser_Term_append___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_tupleTail___closed__2; lean_object* l_Lean_Parser_Term_structInstLVal___closed__11; -lean_object* l_Lean_Parser_Term_have___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_dollar___closed__4; extern lean_object* l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_arrayRef___closed__1; @@ -1548,6 +1625,7 @@ lean_object* l_Lean_Parser_Term_binderDefault___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_id___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_cons___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5; +lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__13; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__11; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_matchAlts___elambda__1___spec__11(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_borrowed___elambda__1___closed__1; @@ -1560,8 +1638,10 @@ lean_object* l_Lean_Parser_Term_doPat___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_append; lean_object* l_Lean_Parser_Term_letIdLhs___closed__6; lean_object* l_Lean_Parser_Term_borrowed___elambda__1___closed__2; +lean_object* l_Lean_Parser_Tactic_seq___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_not___closed__1; lean_object* l_Lean_Parser_Term_uminus___closed__1; +lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2(uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_map___closed__1; lean_object* l_Lean_Parser_Term_doLet___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_subst___closed__2; @@ -1591,10 +1671,12 @@ lean_object* l_Lean_Parser_Term_app___closed__1; lean_object* l_Lean_Parser_Term_emptyC___closed__5; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_matchAlts___elambda__1___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_if___closed__4; +lean_object* l_Lean_Parser_Term_binderTactic___elambda__1___closed__7; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_matchAlts___elambda__1___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__3; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_matchAlts___elambda__1___spec__17(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_matchAlts___elambda__1___spec__2___closed__1; +lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_haveAssign___closed__5; lean_object* l_Lean_Parser_Term_letIdDecl___closed__1; lean_object* l_Lean_Parser_Term_arrayLit___elambda__1___closed__8; @@ -1609,6 +1691,8 @@ lean_object* l_String_trim(lean_object*); lean_object* l_Lean_Parser_Term_structInstSource___closed__7; lean_object* l___regBuiltinParser_Lean_Parser_Term_prop(lean_object*); lean_object* l_Lean_Parser_Term_doExpr___elambda__1___closed__4; +lean_object* l_Lean_Parser_Tactic_nonEmptySeq___elambda__1(lean_object*, lean_object*); +lean_object* l___regBuiltinParser_Lean_Parser_Term_byTactic(lean_object*); lean_object* l_Lean_Parser_Term_bindOp___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_explicitBinder___closed__9; lean_object* l_Lean_Parser_darrow___elambda__1(lean_object*, lean_object*); @@ -1630,13 +1714,16 @@ lean_object* l_Lean_Parser_Term_implicitBinder___closed__1; lean_object* l_Lean_Parser_Term_tparser_x21___closed__4; lean_object* l_Lean_Parser_Term_doExpr___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_typeAscription___closed__2; +lean_object* l_Lean_Parser_Term_byTactic___closed__3; lean_object* l_Lean_Parser_Term_seq___closed__3; +lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_matchAlts___closed__1; lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__4; lean_object* l_Lean_Parser_Term_structInst___closed__7; lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_doLet___closed__4; lean_object* l_Lean_Parser_Term_tparser_x21___closed__1; +lean_object* l_Lean_Parser_Tactic_seq___closed__2; lean_object* l_Lean_Parser_Term_match__syntax___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_implicitBinder___closed__2; lean_object* l_Lean_Parser_Term_explicitBinder___closed__4; @@ -1674,7 +1761,9 @@ lean_object* l_Lean_Parser_Term_unicodeInfixR___boxed(lean_object*, lean_object* lean_object* l_Lean_Parser_Term_andthen___closed__1; lean_object* l_Lean_Parser_Term_and___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_inaccessible___elambda__1___closed__6; +lean_object* l_Lean_Parser_Tactic_seq___closed__1; lean_object* l_Lean_Parser_nameLit___elambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_tacticBlock___closed__6; lean_object* l_Lean_Parser_Term_equiv___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_letPatDecl___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_letIdDecl___closed__8; @@ -1683,6 +1772,7 @@ lean_object* l_Lean_Parser_Term_binderType___closed__6; lean_object* l_Lean_Parser_Term_typeSpec___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_haveAssign___closed__3; lean_object* l_Lean_Parser_Term_typeSpec___elambda__1___closed__1; +lean_object* l_Lean_Parser_regBuiltinTacticParserAttr___closed__3; lean_object* l_Lean_Parser_Term_forall___closed__5; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_matchAlts___elambda__1___spec__18(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_pow; @@ -1690,6 +1780,7 @@ lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__6; lean_object* l_Lean_Parser_Term_letIdDecl___closed__4; lean_object* l_Lean_Parser_Term_leftArrow___closed__1; lean_object* l_Lean_Parser_Term_match__syntax___closed__6; +lean_object* l_Lean_Parser_Term_binderTactic___closed__6; lean_object* l_Lean_Parser_Term_fromTerm___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_where___closed__2; lean_object* l_Lean_Parser_Term_do___elambda__1___closed__6; @@ -1701,6 +1792,7 @@ lean_object* l_Lean_Parser_Term_type___elambda__1___closed__6; lean_object* l_Lean_Parser_mkAntiquot(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Parser_Term_funBinder___closed__2; lean_object* l_Lean_Parser_Term_dollarProj___elambda__1___closed__6; +lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_explicit; lean_object* l_Lean_Parser_Term_match__syntax___elambda__1___closed__7; lean_object* l___regBuiltinParser_Lean_Parser_Term_arrow(lean_object*); @@ -1717,6 +1809,7 @@ lean_object* l_Lean_Parser_Term_mapConst___elambda__1(lean_object*, lean_object* lean_object* l_Lean_Parser_Term_letIdDecl___closed__9; lean_object* l_Lean_Parser_Term_hole___closed__3; lean_object* l_Lean_Parser_Term_structInstSource___elambda__1___closed__3; +lean_object* l_Lean_Parser_Term_byTactic___closed__6; lean_object* l_Lean_Parser_unicodeSymbolFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_namedHole___closed__2; lean_object* l_Lean_Parser_Term_structInstField___closed__3; @@ -1777,8 +1870,8 @@ lean_object* l___regBuiltinParser_Lean_Parser_Term_gt(lean_object*); lean_object* l_Lean_Parser_Term_app___closed__2; lean_object* l_Lean_Parser_Term_explicit___closed__5; lean_object* l_Lean_Parser_Term_do___elambda__1___closed__5; +lean_object* l_Lean_Parser_regBuiltinTacticParserAttr___closed__4; lean_object* l_Lean_Parser_Term_mapConstRev___closed__2; -lean_object* l_Lean_Parser_Term_have___closed__12; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_tupleTail___closed__4; lean_object* l_Lean_Parser_Term_orelse___elambda__1___closed__2; @@ -1788,6 +1881,7 @@ lean_object* l_Lean_Parser_Term_type___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_borrowed___closed__2; extern lean_object* l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_mapRev___elambda__1___closed__4; +lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_uminus___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_bindOp___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_suffices; @@ -1813,6 +1907,7 @@ lean_object* l_Lean_Parser_Term_proj___elambda__1(lean_object*, lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Term_char(lean_object*); lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_let___elambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_seq___elambda__1___closed__1; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_matchAlts___elambda__1___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doPat___elambda__1___closed__8; lean_object* l_Lean_Parser_ParserState_mkUnexpectedError(lean_object*, lean_object*); @@ -1823,6 +1918,7 @@ lean_object* l_Lean_Parser_Term_bindOp___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_add___closed__3; lean_object* l_Lean_Parser_Term_structInst; lean_object* l_Lean_Parser_Term_dollarProj___elambda__1___closed__1; +lean_object* l_Lean_Parser_Tactic_nonEmptySeq___closed__1; lean_object* l_Lean_Parser_Term_show___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_ne; lean_object* l_Lean_Parser_Term_match___elambda__1(lean_object*, lean_object*); @@ -1835,11 +1931,11 @@ lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_sub; +lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_prop___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_do___closed__5; lean_object* l_Lean_Parser_Term_bne___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_mapConstRev___elambda__1___closed__3; -lean_object* l_Lean_Parser_Term_have___elambda__1___closed__13; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_matchAlts___elambda__1___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_dollar___closed__1; lean_object* l_Lean_Parser_Term_doExpr___elambda__1___closed__3; @@ -1864,11 +1960,13 @@ lean_object* l_Lean_Parser_Term_mapConstRev___closed__1; lean_object* l_Lean_Parser_Term_sorry___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_bindOp___elambda__1___closed__2; +lean_object* l_Lean_Parser_Term_byTactic___closed__2; lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_do___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_letDecl___closed__3; lean_object* l_Lean_Parser_Term_namedHole___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_subtype___elambda__1___closed__3; +lean_object* l_Lean_Parser_Term_tacticBlock___closed__5; lean_object* l_Lean_Parser_Term_if___closed__7; lean_object* l_Lean_Parser_Term_match___closed__10; lean_object* l_Lean_Parser_Term_modN___elambda__1___closed__2; @@ -1883,6 +1981,7 @@ lean_object* l_Lean_Parser_Term_doLet; lean_object* l_Lean_Parser_Term_nomatch___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_doExpr; +lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_orelse___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_suffices___closed__6; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_matchAlts___elambda__1___spec__2___closed__6; @@ -1895,6 +1994,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Term_paren(lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Term_if(lean_object*); lean_object* l_Lean_Parser_Term_arrow___closed__3; lean_object* l_Lean_Parser_Term_arrayLit___elambda__1___closed__2; +lean_object* l_Lean_Parser_Tactic_seq___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_fromTerm___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_andM___elambda__1___closed__4; @@ -1932,6 +2032,7 @@ lean_object* l_Lean_Parser_Term_tparser_x21___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_forall___closed__6; lean_object* l_Lean_Parser_Term_mod___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_modN___closed__1; +lean_object* l_Lean_Parser_Tactic_seq___closed__4; lean_object* l_Lean_Parser_Term_band___closed__1; lean_object* l_Lean_Parser_Term_parser_x21___closed__6; lean_object* l_Lean_Parser_Term_seq___closed__2; @@ -1942,6 +2043,7 @@ lean_object* l_Lean_Parser_fieldIdxFn(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_arrayRef___closed__3; lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_typeSpec___elambda__1___closed__4; +lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; lean_object* l_Lean_Parser_Term_hole___closed__1; lean_object* l_Lean_Parser_Term_match___elambda__1___closed__13; lean_object* l_Lean_Parser_Term_letEqnsDecl___closed__4; @@ -1964,6 +2066,579 @@ lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_letIdDecl___closed__6; lean_object* l_Lean_Parser_Term_app___closed__4; lean_object* l_Lean_Parser_andthenFn(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* _init_l_Lean_Parser_regBuiltinTacticParserAttr___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("builtinTacticParser"); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_regBuiltinTacticParserAttr___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_regBuiltinTacticParserAttr___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("tactic"); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_regBuiltinTacticParserAttr___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Parser_regBuiltinTacticParserAttr(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; +x_2 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__2; +x_3 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__4; +x_4 = 1; +x_5 = l_Lean_Parser_registerBuiltinParserAttribute(x_2, x_3, x_4, x_1); +return x_5; +} +} +lean_object* _init_l_Lean_Parser_regTacticParserAttribute___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("tacticParser"); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_regTacticParserAttribute___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_regTacticParserAttribute___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Parser_regTacticParserAttribute(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = l_Lean_Parser_regTacticParserAttribute___closed__2; +x_3 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__4; +x_4 = l_Lean_Parser_registerBuiltinDynamicParserAttribute(x_2, x_3, x_1); +return x_4; +} +} +lean_object* l_Lean_Parser_tacticParser(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__4; +x_3 = l_Lean_Parser_categoryParser(x_2, x_1); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Error_toString___closed__2; +x_2 = l_String_trim(x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__2; +x_2 = l_Char_HasRepr___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__3; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2(uint8_t x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_array_get_size(x_7); +lean_dec(x_7); +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_9); +x_10 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__4; +x_11 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +x_12 = l_Lean_Parser_categoryParser___elambda__1(x_10, x_11, x_5, x_6); +x_13 = lean_ctor_get(x_12, 3); +lean_inc(x_13); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_31; lean_object* x_32; +lean_dec(x_9); +lean_dec(x_8); +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +x_15 = lean_array_get_size(x_14); +lean_dec(x_14); +x_16 = lean_ctor_get(x_12, 1); +lean_inc(x_16); +lean_inc(x_5); +x_31 = l_Lean_Parser_tokenFn(x_5, x_12); +x_32 = lean_ctor_get(x_31, 3); +lean_inc(x_32); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_31, 0); +lean_inc(x_33); +x_34 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_33); +lean_dec(x_33); +if (lean_obj_tag(x_34) == 2) +{ +lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +lean_dec(x_34); +x_36 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1; +x_37 = lean_string_dec_eq(x_35, x_36); +lean_dec(x_35); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; +lean_inc(x_16); +x_39 = l_Lean_Parser_ParserState_mkErrorsAt(x_31, x_38, x_16); +x_17 = x_39; +goto block_30; +} +else +{ +x_17 = x_31; +goto block_30; +} +} +else +{ +lean_object* x_40; lean_object* x_41; +lean_dec(x_34); +x_40 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; +lean_inc(x_16); +x_41 = l_Lean_Parser_ParserState_mkErrorsAt(x_31, x_40, x_16); +x_17 = x_41; +goto block_30; +} +} +else +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_32); +x_42 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; +lean_inc(x_16); +x_43 = l_Lean_Parser_ParserState_mkErrorsAt(x_31, x_42, x_16); +x_17 = x_43; +goto block_30; +} +block_30: +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_17, 3); +lean_inc(x_18); +if (lean_obj_tag(x_18) == 0) +{ +lean_dec(x_16); +lean_dec(x_15); +{ +uint8_t _tmp_3 = x_1; +lean_object* _tmp_5 = x_17; +x_4 = _tmp_3; +x_6 = _tmp_5; +} +goto _start; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +lean_dec(x_18); +lean_dec(x_5); +x_20 = l_Lean_Parser_ParserState_restore(x_17, x_15, x_16); +lean_dec(x_15); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_array_get_size(x_21); +lean_dec(x_21); +x_23 = lean_nat_sub(x_22, x_2); +lean_dec(x_22); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_dec_eq(x_23, x_24); +lean_dec(x_23); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = l_Lean_nullKind; +x_27 = l_Lean_Parser_ParserState_mkNode(x_20, x_26, x_2); +return x_27; +} +else +{ +if (x_3 == 0) +{ +lean_object* x_28; lean_object* x_29; +x_28 = l_Lean_nullKind; +x_29 = l_Lean_Parser_ParserState_mkNode(x_20, x_28, x_2); +return x_29; +} +else +{ +lean_dec(x_2); +return x_20; +} +} +} +} +} +else +{ +lean_dec(x_13); +lean_dec(x_5); +if (x_4 == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_9); +lean_dec(x_8); +x_44 = lean_box(0); +x_45 = l_Lean_Parser_ParserState_pushSyntax(x_12, x_44); +x_46 = l_Lean_nullKind; +x_47 = l_Lean_Parser_ParserState_mkNode(x_45, x_46, x_2); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_48 = l_Lean_Parser_ParserState_restore(x_12, x_8, x_9); +lean_dec(x_8); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_array_get_size(x_49); +lean_dec(x_49); +x_51 = lean_nat_sub(x_50, x_2); +lean_dec(x_50); +x_52 = lean_unsigned_to_nat(2u); +x_53 = lean_nat_dec_eq(x_51, x_52); +lean_dec(x_51); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; +x_54 = l_Lean_nullKind; +x_55 = l_Lean_Parser_ParserState_mkNode(x_48, x_54, x_2); +return x_55; +} +else +{ +if (x_3 == 0) +{ +lean_object* x_56; lean_object* x_57; +x_56 = l_Lean_nullKind; +x_57 = l_Lean_Parser_ParserState_mkNode(x_48, x_56, x_2); +return x_57; +} +else +{ +lean_object* x_58; +lean_dec(x_2); +x_58 = l_Lean_Parser_ParserState_popSyntax(x_48); +return x_58; +} +} +} +} +} +} +lean_object* l_Lean_Parser_sepByFn___at_Lean_Parser_Tactic_seq___elambda__1___spec__1(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; lean_object* x_8; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_array_get_size(x_4); +lean_dec(x_4); +x_6 = 0; +x_7 = 1; +x_8 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2(x_1, x_5, x_6, x_7, x_2, x_3); +return x_8; +} +} +lean_object* _init_l_Lean_Parser_Tactic_seq___elambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Tactic"); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Tactic_seq___elambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkAppStx___closed__4; +x_2 = l_Lean_Parser_Tactic_seq___elambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Tactic_seq___elambda__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("seq"); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Tactic_seq___elambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_seq___elambda__1___closed__2; +x_2 = l_Lean_Parser_Tactic_seq___elambda__1___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Parser_Tactic_seq___elambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_array_get_size(x_3); +lean_dec(x_3); +x_5 = 1; +x_6 = l_Lean_Parser_sepByFn___at_Lean_Parser_Tactic_seq___elambda__1___spec__1(x_5, x_1, x_2); +x_7 = l_Lean_Parser_Tactic_seq___elambda__1___closed__4; +x_8 = l_Lean_Parser_ParserState_mkNode(x_6, x_7, x_4); +return x_8; +} +} +lean_object* _init_l_Lean_Parser_Tactic_seq___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_regBuiltinTacticParserAttr___closed__4; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Parser_categoryParser(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Tactic_seq___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1; +x_3 = l_Lean_Parser_symbolInfo(x_2, x_1); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Tactic_seq___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_seq___closed__1; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Tactic_seq___closed__2; +x_4 = l_Lean_Parser_sepByInfo(x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Tactic_seq___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_seq___elambda__1___closed__4; +x_2 = l_Lean_Parser_Tactic_seq___closed__3; +x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Tactic_seq___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_seq___elambda__1), 2, 0); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Tactic_seq___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_seq___closed__4; +x_2 = l_Lean_Parser_Tactic_seq___closed__5; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Tactic_seq() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Tactic_seq___closed__6; +return x_1; +} +} +lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; uint8_t x_8; uint8_t x_9; lean_object* x_10; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox(x_3); +lean_dec(x_3); +x_9 = lean_unbox(x_4); +lean_dec(x_4); +x_10 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2(x_7, x_2, x_8, x_9, x_5, x_6); +return x_10; +} +} +lean_object* l_Lean_Parser_sepByFn___at_Lean_Parser_Tactic_seq___elambda__1___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_Parser_sepByFn___at_Lean_Parser_Tactic_seq___elambda__1___spec__1(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_nonEmptySeq___elambda__1___spec__1(uint8_t x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_array_get_size(x_5); +lean_dec(x_5); +x_7 = 0; +x_8 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2(x_1, x_6, x_2, x_7, x_3, x_4); +return x_8; +} +} +lean_object* l_Lean_Parser_Tactic_nonEmptySeq___elambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +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; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_array_get_size(x_3); +lean_dec(x_3); +x_5 = 1; +x_6 = 0; +x_7 = l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_nonEmptySeq___elambda__1___spec__1(x_5, x_6, x_1, x_2); +x_8 = l_Lean_Parser_Tactic_seq___elambda__1___closed__4; +x_9 = l_Lean_Parser_ParserState_mkNode(x_7, x_8, x_4); +return x_9; +} +} +lean_object* _init_l_Lean_Parser_Tactic_nonEmptySeq___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_seq___closed__1; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Tactic_seq___closed__2; +x_4 = l_Lean_Parser_sepBy1Info(x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Tactic_nonEmptySeq___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_seq___elambda__1___closed__4; +x_2 = l_Lean_Parser_Tactic_nonEmptySeq___closed__1; +x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Tactic_nonEmptySeq___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_nonEmptySeq___elambda__1), 2, 0); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Tactic_nonEmptySeq___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_nonEmptySeq___closed__2; +x_2 = l_Lean_Parser_Tactic_nonEmptySeq___closed__3; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Tactic_nonEmptySeq() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Tactic_nonEmptySeq___closed__4; +return x_1; +} +} +lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_nonEmptySeq___elambda__1___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; uint8_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = lean_unbox(x_2); +lean_dec(x_2); +x_7 = l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_nonEmptySeq___elambda__1___spec__1(x_5, x_6, x_3, x_4); +return x_7; +} +} lean_object* _init_l_Lean_Parser_darrow___elambda__1___closed__1() { _start: { @@ -12126,18 +12801,19 @@ return x_2; lean_object* _init_l_Lean_Parser_Term_have___elambda__1___closed__7() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Error_toString___closed__2; -x_2 = l_String_trim(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Term_have___elambda__1___closed__6; +x_3 = lean_string_append(x_1, x_2); +return x_3; } } lean_object* _init_l_Lean_Parser_Term_have___elambda__1___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Char_HasRepr___closed__1; -x_2 = l_Lean_Parser_Term_have___elambda__1___closed__7; +x_1 = l_Lean_Parser_Term_have___elambda__1___closed__7; +x_2 = l_Char_HasRepr___closed__1; x_3 = lean_string_append(x_1, x_2); return x_3; } @@ -12146,50 +12822,8 @@ lean_object* _init_l_Lean_Parser_Term_have___elambda__1___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_have___elambda__1___closed__8; -x_2 = l_Char_HasRepr___closed__1; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_have___elambda__1___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_have___elambda__1___closed__9; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_have___elambda__1___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Char_HasRepr___closed__1; -x_2 = l_Lean_Parser_Term_have___elambda__1___closed__6; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_have___elambda__1___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_have___elambda__1___closed__11; -x_2 = l_Char_HasRepr___closed__1; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_have___elambda__1___closed__13() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_have___elambda__1___closed__12; +x_2 = l_Lean_Parser_Term_have___elambda__1___closed__8; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -12239,7 +12873,7 @@ lean_dec(x_69); if (x_71 == 0) { lean_object* x_72; lean_object* x_73; -x_72 = l_Lean_Parser_Term_have___elambda__1___closed__13; +x_72 = l_Lean_Parser_Term_have___elambda__1___closed__9; x_73 = l_Lean_Parser_ParserState_mkErrorsAt(x_65, x_72, x_64); x_38 = x_73; goto block_63; @@ -12255,7 +12889,7 @@ else { lean_object* x_74; lean_object* x_75; lean_dec(x_68); -x_74 = l_Lean_Parser_Term_have___elambda__1___closed__13; +x_74 = l_Lean_Parser_Term_have___elambda__1___closed__9; x_75 = l_Lean_Parser_ParserState_mkErrorsAt(x_65, x_74, x_64); x_38 = x_75; goto block_63; @@ -12265,7 +12899,7 @@ else { lean_object* x_76; lean_object* x_77; lean_dec(x_66); -x_76 = l_Lean_Parser_Term_have___elambda__1___closed__13; +x_76 = l_Lean_Parser_Term_have___elambda__1___closed__9; x_77 = l_Lean_Parser_ParserState_mkErrorsAt(x_65, x_76, x_64); x_38 = x_77; goto block_63; @@ -12297,14 +12931,14 @@ lean_object* x_15; lean_object* x_16; uint8_t x_17; x_15 = lean_ctor_get(x_14, 1); lean_inc(x_15); lean_dec(x_14); -x_16 = l_Lean_Parser_Term_have___elambda__1___closed__7; +x_16 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1; x_17 = lean_string_dec_eq(x_15, x_16); lean_dec(x_15); if (x_17 == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_dec(x_1); -x_18 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_18 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_19 = l_Lean_Parser_ParserState_mkErrorsAt(x_11, x_18, x_10); x_20 = l_Lean_Parser_Term_have___elambda__1___closed__2; x_21 = l_Lean_Parser_ParserState_mkNode(x_19, x_20, x_7); @@ -12327,7 +12961,7 @@ else lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_dec(x_14); lean_dec(x_1); -x_27 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_27 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_28 = l_Lean_Parser_ParserState_mkErrorsAt(x_11, x_27, x_10); x_29 = l_Lean_Parser_Term_have___elambda__1___closed__2; x_30 = l_Lean_Parser_ParserState_mkNode(x_28, x_29, x_7); @@ -12339,7 +12973,7 @@ else lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_dec(x_12); lean_dec(x_1); -x_31 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_31 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_32 = l_Lean_Parser_ParserState_mkErrorsAt(x_11, x_31, x_10); x_33 = l_Lean_Parser_Term_have___elambda__1___closed__2; x_34 = l_Lean_Parser_ParserState_mkNode(x_32, x_33, x_7); @@ -12532,7 +13166,7 @@ lean_dec(x_184); if (x_186 == 0) { lean_object* x_187; lean_object* x_188; -x_187 = l_Lean_Parser_Term_have___elambda__1___closed__13; +x_187 = l_Lean_Parser_Term_have___elambda__1___closed__9; lean_inc(x_80); x_188 = l_Lean_Parser_ParserState_mkErrorsAt(x_180, x_187, x_80); x_124 = x_188; @@ -12548,7 +13182,7 @@ else { lean_object* x_189; lean_object* x_190; lean_dec(x_183); -x_189 = l_Lean_Parser_Term_have___elambda__1___closed__13; +x_189 = l_Lean_Parser_Term_have___elambda__1___closed__9; lean_inc(x_80); x_190 = l_Lean_Parser_ParserState_mkErrorsAt(x_180, x_189, x_80); x_124 = x_190; @@ -12559,7 +13193,7 @@ else { lean_object* x_191; lean_object* x_192; lean_dec(x_181); -x_191 = l_Lean_Parser_Term_have___elambda__1___closed__13; +x_191 = l_Lean_Parser_Term_have___elambda__1___closed__9; lean_inc(x_80); x_192 = l_Lean_Parser_ParserState_mkErrorsAt(x_180, x_191, x_80); x_124 = x_192; @@ -12592,14 +13226,14 @@ lean_object* x_96; lean_object* x_97; uint8_t x_98; x_96 = lean_ctor_get(x_95, 1); lean_inc(x_96); lean_dec(x_95); -x_97 = l_Lean_Parser_Term_have___elambda__1___closed__7; +x_97 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1; x_98 = lean_string_dec_eq(x_96, x_97); lean_dec(x_96); if (x_98 == 0) { lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_dec(x_1); -x_99 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_99 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_100 = l_Lean_Parser_ParserState_mkErrorsAt(x_92, x_99, x_91); x_101 = l_Lean_Parser_Term_have___elambda__1___closed__2; x_102 = l_Lean_Parser_ParserState_mkNode(x_100, x_101, x_88); @@ -12626,7 +13260,7 @@ else lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_dec(x_95); lean_dec(x_1); -x_110 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_110 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_111 = l_Lean_Parser_ParserState_mkErrorsAt(x_92, x_110, x_91); x_112 = l_Lean_Parser_Term_have___elambda__1___closed__2; x_113 = l_Lean_Parser_ParserState_mkNode(x_111, x_112, x_88); @@ -12640,7 +13274,7 @@ else lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_dec(x_93); lean_dec(x_1); -x_115 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_115 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_116 = l_Lean_Parser_ParserState_mkErrorsAt(x_92, x_115, x_91); x_117 = l_Lean_Parser_Term_have___elambda__1___closed__2; x_118 = l_Lean_Parser_ParserState_mkNode(x_116, x_117, x_88); @@ -12719,14 +13353,14 @@ lean_object* x_142; lean_object* x_143; uint8_t x_144; x_142 = lean_ctor_get(x_141, 1); lean_inc(x_142); lean_dec(x_141); -x_143 = l_Lean_Parser_Term_have___elambda__1___closed__7; +x_143 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1; x_144 = lean_string_dec_eq(x_142, x_143); lean_dec(x_142); if (x_144 == 0) { lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_dec(x_1); -x_145 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_145 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_146 = l_Lean_Parser_ParserState_mkErrorsAt(x_138, x_145, x_137); x_147 = l_Lean_Parser_Term_have___elambda__1___closed__2; x_148 = l_Lean_Parser_ParserState_mkNode(x_146, x_147, x_88); @@ -12751,7 +13385,7 @@ else lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_dec(x_141); lean_dec(x_1); -x_154 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_154 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_155 = l_Lean_Parser_ParserState_mkErrorsAt(x_138, x_154, x_137); x_156 = l_Lean_Parser_Term_have___elambda__1___closed__2; x_157 = l_Lean_Parser_ParserState_mkNode(x_155, x_156, x_88); @@ -12765,7 +13399,7 @@ else lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_dec(x_139); lean_dec(x_1); -x_159 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_159 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_160 = l_Lean_Parser_ParserState_mkErrorsAt(x_138, x_159, x_137); x_161 = l_Lean_Parser_Term_have___elambda__1___closed__2; x_162 = l_Lean_Parser_ParserState_mkNode(x_160, x_161, x_88); @@ -12875,40 +13509,42 @@ return x_5; lean_object* _init_l_Lean_Parser_Term_have___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_have___elambda__1___closed__7; -x_3 = l_Lean_Parser_symbolInfo(x_2, x_1); -return x_3; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___closed__2; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Tactic_seq___closed__2; +x_4 = l_Lean_Parser_andthenInfo(x_3, x_2); +return x_4; } } lean_object* _init_l_Lean_Parser_Term_have___closed__4() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_have___closed__2; +x_2 = l_Lean_Parser_Term_have___closed__3; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_have___closed__5() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___closed__2; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Term_have___closed__3; -x_4 = l_Lean_Parser_andthenInfo(x_3, x_2); +x_3 = l_Lean_Parser_Term_have___closed__4; +x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); return x_4; } } -lean_object* _init_l_Lean_Parser_Term_have___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_have___closed__2; -x_2 = l_Lean_Parser_Term_have___closed__4; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; -} -} lean_object* _init_l_Lean_Parser_Term_have___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___closed__2; +x_1 = l_Lean_Parser_Term_optIdent; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_Lean_Parser_Term_have___closed__5; @@ -12919,48 +13555,36 @@ return x_4; lean_object* _init_l_Lean_Parser_Term_have___closed__7() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_optIdent; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_Term_have___closed__6; -x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); -return x_4; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_have___closed__1; +x_2 = l_Lean_Parser_Term_have___closed__6; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; } } lean_object* _init_l_Lean_Parser_Term_have___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_have___closed__1; +x_1 = l_Lean_Parser_Term_have___elambda__1___closed__2; x_2 = l_Lean_Parser_Term_have___closed__7; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; } } lean_object* _init_l_Lean_Parser_Term_have___closed__9() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_have___elambda__1___closed__2; -x_2 = l_Lean_Parser_Term_have___closed__8; -x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_have___closed__10() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Term_have___elambda__1___closed__4; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Term_have___closed__9; +x_3 = l_Lean_Parser_Term_have___closed__8; x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); return x_4; } } -lean_object* _init_l_Lean_Parser_Term_have___closed__11() { +lean_object* _init_l_Lean_Parser_Term_have___closed__10() { _start: { lean_object* x_1; @@ -12968,12 +13592,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_have___elambda__1), 2, 0); return x_1; } } -lean_object* _init_l_Lean_Parser_Term_have___closed__12() { +lean_object* _init_l_Lean_Parser_Term_have___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_have___closed__10; -x_2 = l_Lean_Parser_Term_have___closed__11; +x_1 = l_Lean_Parser_Term_have___closed__9; +x_2 = l_Lean_Parser_Term_have___closed__10; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -12984,7 +13608,7 @@ lean_object* _init_l_Lean_Parser_Term_have() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Term_have___closed__12; +x_1 = l_Lean_Parser_Term_have___closed__11; return x_1; } } @@ -13212,14 +13836,14 @@ lean_object* x_23; lean_object* x_24; uint8_t x_25; x_23 = lean_ctor_get(x_22, 1); lean_inc(x_23); lean_dec(x_22); -x_24 = l_Lean_Parser_Term_have___elambda__1___closed__7; +x_24 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1; x_25 = lean_string_dec_eq(x_23, x_24); lean_dec(x_23); if (x_25 == 0) { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_dec(x_1); -x_26 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_26 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_27 = l_Lean_Parser_ParserState_mkErrorsAt(x_19, x_26, x_18); x_28 = l_Lean_Parser_Term_suffices___elambda__1___closed__2; x_29 = l_Lean_Parser_ParserState_mkNode(x_27, x_28, x_7); @@ -13240,7 +13864,7 @@ else lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_dec(x_22); lean_dec(x_1); -x_33 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_33 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_34 = l_Lean_Parser_ParserState_mkErrorsAt(x_19, x_33, x_18); x_35 = l_Lean_Parser_Term_suffices___elambda__1___closed__2; x_36 = l_Lean_Parser_ParserState_mkNode(x_34, x_35, x_7); @@ -13252,7 +13876,7 @@ else lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_dec(x_20); lean_dec(x_1); -x_37 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_37 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_38 = l_Lean_Parser_ParserState_mkErrorsAt(x_19, x_37, x_18); x_39 = l_Lean_Parser_Term_suffices___elambda__1___closed__2; x_40 = l_Lean_Parser_ParserState_mkNode(x_38, x_39, x_7); @@ -13454,14 +14078,14 @@ lean_object* x_90; lean_object* x_91; uint8_t x_92; x_90 = lean_ctor_get(x_89, 1); lean_inc(x_90); lean_dec(x_89); -x_91 = l_Lean_Parser_Term_have___elambda__1___closed__7; +x_91 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1; x_92 = lean_string_dec_eq(x_90, x_91); lean_dec(x_90); if (x_92 == 0) { lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_dec(x_1); -x_93 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_93 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_94 = l_Lean_Parser_ParserState_mkErrorsAt(x_86, x_93, x_85); x_95 = l_Lean_Parser_Term_suffices___elambda__1___closed__2; x_96 = l_Lean_Parser_ParserState_mkNode(x_94, x_95, x_74); @@ -13486,7 +14110,7 @@ else lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_dec(x_89); lean_dec(x_1); -x_102 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_102 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_103 = l_Lean_Parser_ParserState_mkErrorsAt(x_86, x_102, x_85); x_104 = l_Lean_Parser_Term_suffices___elambda__1___closed__2; x_105 = l_Lean_Parser_ParserState_mkNode(x_103, x_104, x_74); @@ -13500,7 +14124,7 @@ else lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_dec(x_87); lean_dec(x_1); -x_107 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_107 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_108 = l_Lean_Parser_ParserState_mkErrorsAt(x_86, x_107, x_85); x_109 = l_Lean_Parser_Term_suffices___elambda__1___closed__2; x_110 = l_Lean_Parser_ParserState_mkNode(x_108, x_109, x_74); @@ -13579,7 +14203,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Term_fromTerm; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Term_have___closed__4; +x_3 = l_Lean_Parser_Term_have___closed__3; x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); return x_4; } @@ -21475,6 +22099,712 @@ x_3 = l_Lean_Parser_Term_binderType(x_2); return x_3; } } +lean_object* _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("binderTactic"); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkAppStx___closed__6; +x_2 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__1; +x_2 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__3; +x_3 = 1; +x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" by "); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__5; +x_2 = l_String_trim(x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__6; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__7; +x_2 = l_Char_HasRepr___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__8; +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_Parser_Term_binderTactic___elambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__4; +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_5 = l_Lean_Parser_tryAnti(x_1, x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_24; lean_object* x_56; lean_object* x_57; +lean_dec(x_4); +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_array_get_size(x_6); +lean_dec(x_6); +lean_inc(x_1); +x_56 = l_Lean_Parser_tokenFn(x_1, x_2); +x_57 = lean_ctor_get(x_56, 3); +lean_inc(x_57); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; +x_58 = lean_ctor_get(x_56, 0); +lean_inc(x_58); +x_59 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_58); +lean_dec(x_58); +if (lean_obj_tag(x_59) == 2) +{ +lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +lean_dec(x_59); +x_61 = l_Lean_Parser_Term_haveAssign___elambda__1___closed__5; +x_62 = lean_string_dec_eq(x_60, x_61); +lean_dec(x_60); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; +x_63 = l_Lean_Parser_Term_haveAssign___elambda__1___closed__8; +lean_inc(x_7); +x_64 = l_Lean_Parser_ParserState_mkErrorsAt(x_56, x_63, x_7); +x_24 = x_64; +goto block_55; +} +else +{ +x_24 = x_56; +goto block_55; +} +} +else +{ +lean_object* x_65; lean_object* x_66; +lean_dec(x_59); +x_65 = l_Lean_Parser_Term_haveAssign___elambda__1___closed__8; +lean_inc(x_7); +x_66 = l_Lean_Parser_ParserState_mkErrorsAt(x_56, x_65, x_7); +x_24 = x_66; +goto block_55; +} +} +else +{ +lean_object* x_67; lean_object* x_68; +lean_dec(x_57); +x_67 = l_Lean_Parser_Term_haveAssign___elambda__1___closed__8; +lean_inc(x_7); +x_68 = l_Lean_Parser_ParserState_mkErrorsAt(x_56, x_67, x_7); +x_24 = x_68; +goto block_55; +} +block_23: +{ +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +x_13 = lean_ctor_get(x_9, 3); +lean_inc(x_13); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = l_Lean_Parser_Tactic_nonEmptySeq___elambda__1(x_1, x_9); +x_15 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; +x_16 = l_Lean_Parser_ParserState_mkNode(x_14, x_15, x_8); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_13); +lean_dec(x_1); +x_17 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; +x_18 = l_Lean_Parser_ParserState_mkNode(x_9, x_17, x_8); +return x_18; +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_9); +lean_dec(x_1); +x_19 = l_Array_shrink___main___rarg(x_10, x_8); +x_20 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_7); +lean_ctor_set(x_20, 2, x_11); +lean_ctor_set(x_20, 3, x_12); +x_21 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; +x_22 = l_Lean_Parser_ParserState_mkNode(x_20, x_21, x_8); +return x_22; +} +} +block_55: +{ +lean_object* x_25; +x_25 = lean_ctor_get(x_24, 3); +lean_inc(x_25); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_inc(x_1); +x_27 = l_Lean_Parser_tokenFn(x_1, x_24); +x_28 = lean_ctor_get(x_27, 3); +lean_inc(x_28); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +x_30 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_29); +lean_dec(x_29); +if (lean_obj_tag(x_30) == 2) +{ +lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_30); +x_32 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__6; +x_33 = lean_string_dec_eq(x_31, x_32); +lean_dec(x_31); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_34 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__9; +x_35 = l_Lean_Parser_ParserState_mkErrorsAt(x_27, x_34, x_26); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 2); +lean_inc(x_37); +x_38 = lean_ctor_get(x_35, 3); +lean_inc(x_38); +x_9 = x_35; +x_10 = x_36; +x_11 = x_37; +x_12 = x_38; +goto block_23; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_dec(x_26); +x_39 = lean_ctor_get(x_27, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_27, 2); +lean_inc(x_40); +x_41 = lean_ctor_get(x_27, 3); +lean_inc(x_41); +x_9 = x_27; +x_10 = x_39; +x_11 = x_40; +x_12 = x_41; +goto block_23; +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_30); +x_42 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__9; +x_43 = l_Lean_Parser_ParserState_mkErrorsAt(x_27, x_42, x_26); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 2); +lean_inc(x_45); +x_46 = lean_ctor_get(x_43, 3); +lean_inc(x_46); +x_9 = x_43; +x_10 = x_44; +x_11 = x_45; +x_12 = x_46; +goto block_23; +} +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_28); +x_47 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__9; +x_48 = l_Lean_Parser_ParserState_mkErrorsAt(x_27, x_47, x_26); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 2); +lean_inc(x_50); +x_51 = lean_ctor_get(x_48, 3); +lean_inc(x_51); +x_9 = x_48; +x_10 = x_49; +x_11 = x_50; +x_12 = x_51; +goto block_23; +} +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_dec(x_25); +x_52 = lean_ctor_get(x_24, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_24, 2); +lean_inc(x_53); +x_54 = lean_ctor_get(x_24, 3); +lean_inc(x_54); +x_9 = x_24; +x_10 = x_52; +x_11 = x_53; +x_12 = x_54; +goto block_23; +} +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_69 = lean_ctor_get(x_2, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_2, 1); +lean_inc(x_70); +x_71 = lean_array_get_size(x_69); +lean_dec(x_69); +lean_inc(x_2); +lean_inc(x_1); +x_72 = lean_apply_2(x_4, x_1, x_2); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + lean_ctor_release(x_2, 2); + lean_ctor_release(x_2, 3); + x_73 = x_2; +} else { + lean_dec_ref(x_2); + x_73 = lean_box(0); +} +x_74 = lean_ctor_get(x_72, 3); +lean_inc(x_74); +if (lean_obj_tag(x_74) == 0) +{ +lean_dec(x_73); +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_1); +return x_72; +} +else +{ +lean_object* x_75; lean_object* x_76; uint8_t x_77; +x_75 = lean_ctor_get(x_74, 0); +lean_inc(x_75); +lean_dec(x_74); +x_76 = lean_ctor_get(x_72, 1); +lean_inc(x_76); +x_77 = lean_nat_dec_eq(x_76, x_70); +lean_dec(x_76); +if (x_77 == 0) +{ +lean_dec(x_75); +lean_dec(x_73); +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_1); +return x_72; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_99; lean_object* x_131; lean_object* x_132; +lean_inc(x_70); +x_78 = l_Lean_Parser_ParserState_restore(x_72, x_71, x_70); +lean_dec(x_71); +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_array_get_size(x_79); +lean_dec(x_79); +lean_inc(x_1); +x_131 = l_Lean_Parser_tokenFn(x_1, x_78); +x_132 = lean_ctor_get(x_131, 3); +lean_inc(x_132); +if (lean_obj_tag(x_132) == 0) +{ +lean_object* x_133; lean_object* x_134; +x_133 = lean_ctor_get(x_131, 0); +lean_inc(x_133); +x_134 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_133); +lean_dec(x_133); +if (lean_obj_tag(x_134) == 2) +{ +lean_object* x_135; lean_object* x_136; uint8_t x_137; +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +lean_dec(x_134); +x_136 = l_Lean_Parser_Term_haveAssign___elambda__1___closed__5; +x_137 = lean_string_dec_eq(x_135, x_136); +lean_dec(x_135); +if (x_137 == 0) +{ +lean_object* x_138; lean_object* x_139; +x_138 = l_Lean_Parser_Term_haveAssign___elambda__1___closed__8; +lean_inc(x_70); +x_139 = l_Lean_Parser_ParserState_mkErrorsAt(x_131, x_138, x_70); +x_99 = x_139; +goto block_130; +} +else +{ +x_99 = x_131; +goto block_130; +} +} +else +{ +lean_object* x_140; lean_object* x_141; +lean_dec(x_134); +x_140 = l_Lean_Parser_Term_haveAssign___elambda__1___closed__8; +lean_inc(x_70); +x_141 = l_Lean_Parser_ParserState_mkErrorsAt(x_131, x_140, x_70); +x_99 = x_141; +goto block_130; +} +} +else +{ +lean_object* x_142; lean_object* x_143; +lean_dec(x_132); +x_142 = l_Lean_Parser_Term_haveAssign___elambda__1___closed__8; +lean_inc(x_70); +x_143 = l_Lean_Parser_ParserState_mkErrorsAt(x_131, x_142, x_70); +x_99 = x_143; +goto block_130; +} +block_98: +{ +if (lean_obj_tag(x_84) == 0) +{ +lean_object* x_85; +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_73); +x_85 = lean_ctor_get(x_81, 3); +lean_inc(x_85); +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_86 = l_Lean_Parser_Tactic_nonEmptySeq___elambda__1(x_1, x_81); +x_87 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; +x_88 = l_Lean_Parser_ParserState_mkNode(x_86, x_87, x_80); +x_89 = l_Lean_Parser_mergeOrElseErrors(x_88, x_75, x_70); +lean_dec(x_70); +return x_89; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_85); +lean_dec(x_1); +x_90 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; +x_91 = l_Lean_Parser_ParserState_mkNode(x_81, x_90, x_80); +x_92 = l_Lean_Parser_mergeOrElseErrors(x_91, x_75, x_70); +lean_dec(x_70); +return x_92; +} +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_dec(x_81); +lean_dec(x_1); +x_93 = l_Array_shrink___main___rarg(x_82, x_80); +lean_inc(x_70); +if (lean_is_scalar(x_73)) { + x_94 = lean_alloc_ctor(0, 4, 0); +} else { + x_94 = x_73; +} +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_70); +lean_ctor_set(x_94, 2, x_83); +lean_ctor_set(x_94, 3, x_84); +x_95 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; +x_96 = l_Lean_Parser_ParserState_mkNode(x_94, x_95, x_80); +x_97 = l_Lean_Parser_mergeOrElseErrors(x_96, x_75, x_70); +lean_dec(x_70); +return x_97; +} +} +block_130: +{ +lean_object* x_100; +x_100 = lean_ctor_get(x_99, 3); +lean_inc(x_100); +if (lean_obj_tag(x_100) == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_inc(x_1); +x_102 = l_Lean_Parser_tokenFn(x_1, x_99); +x_103 = lean_ctor_get(x_102, 3); +lean_inc(x_103); +if (lean_obj_tag(x_103) == 0) +{ +lean_object* x_104; lean_object* x_105; +x_104 = lean_ctor_get(x_102, 0); +lean_inc(x_104); +x_105 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_104); +lean_dec(x_104); +if (lean_obj_tag(x_105) == 2) +{ +lean_object* x_106; lean_object* x_107; uint8_t x_108; +x_106 = lean_ctor_get(x_105, 1); +lean_inc(x_106); +lean_dec(x_105); +x_107 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__6; +x_108 = lean_string_dec_eq(x_106, x_107); +lean_dec(x_106); +if (x_108 == 0) +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_109 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__9; +x_110 = l_Lean_Parser_ParserState_mkErrorsAt(x_102, x_109, x_101); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 2); +lean_inc(x_112); +x_113 = lean_ctor_get(x_110, 3); +lean_inc(x_113); +x_81 = x_110; +x_82 = x_111; +x_83 = x_112; +x_84 = x_113; +goto block_98; +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_dec(x_101); +x_114 = lean_ctor_get(x_102, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_102, 2); +lean_inc(x_115); +x_116 = lean_ctor_get(x_102, 3); +lean_inc(x_116); +x_81 = x_102; +x_82 = x_114; +x_83 = x_115; +x_84 = x_116; +goto block_98; +} +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_dec(x_105); +x_117 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__9; +x_118 = l_Lean_Parser_ParserState_mkErrorsAt(x_102, x_117, x_101); +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 2); +lean_inc(x_120); +x_121 = lean_ctor_get(x_118, 3); +lean_inc(x_121); +x_81 = x_118; +x_82 = x_119; +x_83 = x_120; +x_84 = x_121; +goto block_98; +} +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_dec(x_103); +x_122 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__9; +x_123 = l_Lean_Parser_ParserState_mkErrorsAt(x_102, x_122, x_101); +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_123, 2); +lean_inc(x_125); +x_126 = lean_ctor_get(x_123, 3); +lean_inc(x_126); +x_81 = x_123; +x_82 = x_124; +x_83 = x_125; +x_84 = x_126; +goto block_98; +} +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; +lean_dec(x_100); +x_127 = lean_ctor_get(x_99, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_99, 2); +lean_inc(x_128); +x_129 = lean_ctor_get(x_99, 3); +lean_inc(x_129); +x_81 = x_99; +x_82 = x_127; +x_83 = x_128; +x_84 = x_129; +goto block_98; +} +} +} +} +} +} +} +lean_object* _init_l_Lean_Parser_Term_binderTactic___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__6; +x_3 = l_Lean_Parser_symbolInfo(x_2, x_1); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_binderTactic___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_haveAssign___closed__1; +x_2 = l_Lean_Parser_Term_binderTactic___closed__1; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_binderTactic___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_nonEmptySeq; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_binderTactic___closed__2; +x_4 = l_Lean_Parser_andthenInfo(x_3, x_2); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_binderTactic___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; +x_2 = l_Lean_Parser_Term_binderTactic___closed__3; +x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_binderTactic___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__4; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_binderTactic___closed__4; +x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_binderTactic___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_binderTactic___elambda__1), 2, 0); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_binderTactic___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_binderTactic___closed__5; +x_2 = l_Lean_Parser_Term_binderTactic___closed__6; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_binderTactic() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Term_binderTactic___closed__7; +return x_1; +} +} lean_object* _init_l_Lean_Parser_Term_binderDefault___elambda__1___closed__1() { _start: { @@ -21802,345 +23132,6 @@ x_1 = l_Lean_Parser_Term_binderDefault___closed__4; return x_1; } } -lean_object* _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("binderTactic"); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__1; -x_2 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__3; -x_3 = 1; -x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); -return x_4; -} -} -lean_object* l_Lean_Parser_Term_binderTactic___elambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__4; -x_4 = lean_ctor_get(x_3, 1); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_5 = l_Lean_Parser_tryAnti(x_1, x_2); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_18; lean_object* x_19; lean_object* x_20; -lean_dec(x_4); -x_6 = lean_ctor_get(x_2, 0); -lean_inc(x_6); -x_7 = lean_array_get_size(x_6); -lean_dec(x_6); -x_18 = lean_ctor_get(x_2, 1); -lean_inc(x_18); -lean_inc(x_1); -x_19 = l_Lean_Parser_tokenFn(x_1, x_2); -x_20 = lean_ctor_get(x_19, 3); -lean_inc(x_20); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_19, 0); -lean_inc(x_21); -x_22 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_21); -lean_dec(x_21); -if (lean_obj_tag(x_22) == 2) -{ -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_22, 1); -lean_inc(x_23); -lean_dec(x_22); -x_24 = l_Lean_Parser_Term_structInst___elambda__1___closed__7; -x_25 = lean_string_dec_eq(x_23, x_24); -lean_dec(x_23); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; -x_26 = l_Lean_Parser_Term_structInst___elambda__1___closed__10; -x_27 = l_Lean_Parser_ParserState_mkErrorsAt(x_19, x_26, x_18); -x_8 = x_27; -goto block_17; -} -else -{ -lean_dec(x_18); -x_8 = x_19; -goto block_17; -} -} -else -{ -lean_object* x_28; lean_object* x_29; -lean_dec(x_22); -x_28 = l_Lean_Parser_Term_structInst___elambda__1___closed__10; -x_29 = l_Lean_Parser_ParserState_mkErrorsAt(x_19, x_28, x_18); -x_8 = x_29; -goto block_17; -} -} -else -{ -lean_object* x_30; lean_object* x_31; -lean_dec(x_20); -x_30 = l_Lean_Parser_Term_structInst___elambda__1___closed__10; -x_31 = l_Lean_Parser_ParserState_mkErrorsAt(x_19, x_30, x_18); -x_8 = x_31; -goto block_17; -} -block_17: -{ -lean_object* x_9; -x_9 = lean_ctor_get(x_8, 3); -lean_inc(x_9); -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; -x_10 = l_Lean_Parser_termParser___closed__2; -x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Lean_Parser_categoryParser___elambda__1(x_10, x_11, x_1, x_8); -x_13 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; -x_14 = l_Lean_Parser_ParserState_mkNode(x_12, x_13, x_7); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; -lean_dec(x_9); -lean_dec(x_1); -x_15 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; -x_16 = l_Lean_Parser_ParserState_mkNode(x_8, x_15, x_7); -return x_16; -} -} -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_32 = lean_ctor_get(x_2, 0); -lean_inc(x_32); -x_33 = lean_array_get_size(x_32); -lean_dec(x_32); -x_34 = lean_ctor_get(x_2, 1); -lean_inc(x_34); -lean_inc(x_1); -x_35 = lean_apply_2(x_4, x_1, x_2); -x_36 = lean_ctor_get(x_35, 3); -lean_inc(x_36); -if (lean_obj_tag(x_36) == 0) -{ -lean_dec(x_34); -lean_dec(x_33); -lean_dec(x_1); -return x_35; -} -else -{ -lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -lean_dec(x_36); -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -x_39 = lean_nat_dec_eq(x_38, x_34); -lean_dec(x_38); -if (x_39 == 0) -{ -lean_dec(x_37); -lean_dec(x_34); -lean_dec(x_33); -lean_dec(x_1); -return x_35; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_55; lean_object* x_56; -lean_inc(x_34); -x_40 = l_Lean_Parser_ParserState_restore(x_35, x_33, x_34); -lean_dec(x_33); -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_array_get_size(x_41); -lean_dec(x_41); -lean_inc(x_1); -x_55 = l_Lean_Parser_tokenFn(x_1, x_40); -x_56 = lean_ctor_get(x_55, 3); -lean_inc(x_56); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_55, 0); -lean_inc(x_57); -x_58 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_57); -lean_dec(x_57); -if (lean_obj_tag(x_58) == 2) -{ -lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_59 = lean_ctor_get(x_58, 1); -lean_inc(x_59); -lean_dec(x_58); -x_60 = l_Lean_Parser_Term_structInst___elambda__1___closed__7; -x_61 = lean_string_dec_eq(x_59, x_60); -lean_dec(x_59); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; -x_62 = l_Lean_Parser_Term_structInst___elambda__1___closed__10; -lean_inc(x_34); -x_63 = l_Lean_Parser_ParserState_mkErrorsAt(x_55, x_62, x_34); -x_43 = x_63; -goto block_54; -} -else -{ -x_43 = x_55; -goto block_54; -} -} -else -{ -lean_object* x_64; lean_object* x_65; -lean_dec(x_58); -x_64 = l_Lean_Parser_Term_structInst___elambda__1___closed__10; -lean_inc(x_34); -x_65 = l_Lean_Parser_ParserState_mkErrorsAt(x_55, x_64, x_34); -x_43 = x_65; -goto block_54; -} -} -else -{ -lean_object* x_66; lean_object* x_67; -lean_dec(x_56); -x_66 = l_Lean_Parser_Term_structInst___elambda__1___closed__10; -lean_inc(x_34); -x_67 = l_Lean_Parser_ParserState_mkErrorsAt(x_55, x_66, x_34); -x_43 = x_67; -goto block_54; -} -block_54: -{ -lean_object* x_44; -x_44 = lean_ctor_get(x_43, 3); -lean_inc(x_44); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_45 = l_Lean_Parser_termParser___closed__2; -x_46 = lean_unsigned_to_nat(0u); -x_47 = l_Lean_Parser_categoryParser___elambda__1(x_45, x_46, x_1, x_43); -x_48 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; -x_49 = l_Lean_Parser_ParserState_mkNode(x_47, x_48, x_42); -x_50 = l_Lean_Parser_mergeOrElseErrors(x_49, x_37, x_34); -lean_dec(x_34); -return x_50; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -lean_dec(x_44); -lean_dec(x_1); -x_51 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; -x_52 = l_Lean_Parser_ParserState_mkNode(x_43, x_51, x_42); -x_53 = l_Lean_Parser_mergeOrElseErrors(x_52, x_37, x_34); -lean_dec(x_34); -return x_53; -} -} -} -} -} -} -} -lean_object* _init_l_Lean_Parser_Term_binderTactic___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___closed__2; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_Term_structInst___closed__2; -x_4 = l_Lean_Parser_andthenInfo(x_3, x_2); -return x_4; -} -} -lean_object* _init_l_Lean_Parser_Term_binderTactic___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; -x_2 = l_Lean_Parser_Term_binderTactic___closed__1; -x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_binderTactic___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_binderTactic___elambda__1___closed__4; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_Term_binderTactic___closed__2; -x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); -return x_4; -} -} -lean_object* _init_l_Lean_Parser_Term_binderTactic___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_binderTactic___elambda__1), 2, 0); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Term_binderTactic___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_binderTactic___closed__3; -x_2 = l_Lean_Parser_Term_binderTactic___closed__4; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_binderTactic() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Parser_Term_binderTactic___closed__5; -return x_1; -} -} lean_object* _init_l_Lean_Parser_Term_explicitBinder___elambda__1___closed__1() { _start: { @@ -22279,10 +23270,10 @@ lean_object* _init_l_Lean_Parser_Term_explicitBinder___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Parser_Term_binderDefault; +x_1 = l_Lean_Parser_Term_binderTactic; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Term_binderTactic; +x_3 = l_Lean_Parser_Term_binderDefault; x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); x_5 = l_Lean_Parser_orelseInfo(x_2, x_4); @@ -22293,8 +23284,8 @@ lean_object* _init_l_Lean_Parser_Term_explicitBinder___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_binderDefault___closed__3; -x_2 = l_Lean_Parser_Term_binderTactic___closed__4; +x_1 = l_Lean_Parser_Term_binderTactic___closed__6; +x_2 = l_Lean_Parser_Term_binderDefault___closed__3; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_orelseFn), 4, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -33078,14 +34069,14 @@ lean_object* x_17; lean_object* x_18; uint8_t x_19; x_17 = lean_ctor_get(x_16, 1); lean_inc(x_17); lean_dec(x_16); -x_18 = l_Lean_Parser_Term_have___elambda__1___closed__7; +x_18 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1; x_19 = lean_string_dec_eq(x_17, x_18); lean_dec(x_17); if (x_19 == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_dec(x_1); -x_20 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_20 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_21 = l_Lean_Parser_ParserState_mkErrorsAt(x_13, x_20, x_12); x_22 = l_Lean_Parser_Term_let___elambda__1___closed__2; x_23 = l_Lean_Parser_ParserState_mkNode(x_21, x_22, x_7); @@ -33108,7 +34099,7 @@ else lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_dec(x_16); lean_dec(x_1); -x_29 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_29 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_30 = l_Lean_Parser_ParserState_mkErrorsAt(x_13, x_29, x_12); x_31 = l_Lean_Parser_Term_let___elambda__1___closed__2; x_32 = l_Lean_Parser_ParserState_mkNode(x_30, x_31, x_7); @@ -33120,7 +34111,7 @@ else lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_dec(x_14); lean_dec(x_1); -x_33 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_33 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_34 = l_Lean_Parser_ParserState_mkErrorsAt(x_13, x_33, x_12); x_35 = l_Lean_Parser_Term_let___elambda__1___closed__2; x_36 = l_Lean_Parser_ParserState_mkNode(x_34, x_35, x_7); @@ -33286,14 +34277,14 @@ lean_object* x_76; lean_object* x_77; uint8_t x_78; x_76 = lean_ctor_get(x_75, 1); lean_inc(x_76); lean_dec(x_75); -x_77 = l_Lean_Parser_Term_have___elambda__1___closed__7; +x_77 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1; x_78 = lean_string_dec_eq(x_76, x_77); lean_dec(x_76); if (x_78 == 0) { lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_dec(x_1); -x_79 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_79 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_80 = l_Lean_Parser_ParserState_mkErrorsAt(x_72, x_79, x_71); x_81 = l_Lean_Parser_Term_let___elambda__1___closed__2; x_82 = l_Lean_Parser_ParserState_mkNode(x_80, x_81, x_66); @@ -33320,7 +34311,7 @@ else lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_dec(x_75); lean_dec(x_1); -x_90 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_90 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_91 = l_Lean_Parser_ParserState_mkErrorsAt(x_72, x_90, x_71); x_92 = l_Lean_Parser_Term_let___elambda__1___closed__2; x_93 = l_Lean_Parser_ParserState_mkNode(x_91, x_92, x_66); @@ -33334,7 +34325,7 @@ else lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_dec(x_73); lean_dec(x_1); -x_95 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_95 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; x_96 = l_Lean_Parser_ParserState_mkErrorsAt(x_72, x_95, x_71); x_97 = l_Lean_Parser_Term_let___elambda__1___closed__2; x_98 = l_Lean_Parser_ParserState_mkNode(x_96, x_97, x_66); @@ -33389,7 +34380,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___closed__2; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Term_have___closed__3; +x_3 = l_Lean_Parser_Tactic_seq___closed__2; x_4 = l_Lean_Parser_andthenInfo(x_3, x_2); return x_4; } @@ -35699,13 +36690,13 @@ lean_object* x_33; lean_object* x_34; uint8_t x_35; x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); lean_dec(x_32); -x_34 = l_Lean_Parser_Term_have___elambda__1___closed__7; +x_34 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1; x_35 = lean_string_dec_eq(x_33, x_34); lean_dec(x_33); if (x_35 == 0) { lean_object* x_36; lean_object* x_37; -x_36 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_36 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; lean_inc(x_14); x_37 = l_Lean_Parser_ParserState_mkErrorsAt(x_29, x_36, x_14); x_15 = x_37; @@ -35721,7 +36712,7 @@ else { lean_object* x_38; lean_object* x_39; lean_dec(x_32); -x_38 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_38 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; lean_inc(x_14); x_39 = l_Lean_Parser_ParserState_mkErrorsAt(x_29, x_38, x_14); x_15 = x_39; @@ -35732,7 +36723,7 @@ else { lean_object* x_40; lean_object* x_41; lean_dec(x_30); -x_40 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_40 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; lean_inc(x_14); x_41 = l_Lean_Parser_ParserState_mkErrorsAt(x_29, x_40, x_14); x_15 = x_41; @@ -35882,7 +36873,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Term_doElem; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Term_have___closed__3; +x_3 = l_Lean_Parser_Tactic_seq___closed__2; x_4 = l_Lean_Parser_sepBy1Info(x_2, x_3); return x_4; } @@ -41170,13 +42161,13 @@ lean_object* x_50; lean_object* x_51; uint8_t x_52; x_50 = lean_ctor_get(x_49, 1); lean_inc(x_50); lean_dec(x_49); -x_51 = l_Lean_Parser_Term_have___elambda__1___closed__7; +x_51 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1; x_52 = lean_string_dec_eq(x_50, x_51); lean_dec(x_50); if (x_52 == 0) { lean_object* x_53; lean_object* x_54; -x_53 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_53 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; lean_inc(x_14); x_54 = l_Lean_Parser_ParserState_mkErrorsAt(x_46, x_53, x_14); x_29 = x_54; @@ -41192,7 +42183,7 @@ else { lean_object* x_55; lean_object* x_56; lean_dec(x_49); -x_55 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_55 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; lean_inc(x_14); x_56 = l_Lean_Parser_ParserState_mkErrorsAt(x_46, x_55, x_14); x_29 = x_56; @@ -41203,7 +42194,7 @@ else { lean_object* x_57; lean_object* x_58; lean_dec(x_47); -x_57 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_57 = l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4; lean_inc(x_14); x_58 = l_Lean_Parser_ParserState_mkErrorsAt(x_46, x_57, x_14); x_29 = x_58; @@ -41544,7 +42535,7 @@ lean_object* _init_l_Lean_Parser_Term_where___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_have___closed__3; +x_1 = l_Lean_Parser_Tactic_seq___closed__2; x_2 = l_Lean_Parser_Term_where___closed__2; x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); return x_3; @@ -45615,22 +46606,14 @@ return x_6; lean_object* _init_l_Lean_Parser_Term_seq___elambda__1___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("seq"); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Term_seq___elambda__1___closed__2() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Parser_Term_seq___elambda__1___closed__1; +x_2 = l_Lean_Parser_Tactic_seq___elambda__1___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Parser_Term_seq___elambda__1___closed__3() { +lean_object* _init_l_Lean_Parser_Term_seq___elambda__1___closed__2() { _start: { lean_object* x_1; @@ -45638,11 +46621,11 @@ x_1 = lean_mk_string(" <*> "); return x_1; } } -lean_object* _init_l_Lean_Parser_Term_seq___elambda__1___closed__4() { +lean_object* _init_l_Lean_Parser_Term_seq___elambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_seq___elambda__1___closed__3; +x_1 = l_Lean_Parser_Term_seq___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(60u); x_3 = l_Lean_Parser_Term_infixL(x_1, x_2); return x_3; @@ -45652,7 +46635,7 @@ lean_object* l_Lean_Parser_Term_seq___elambda__1(lean_object* x_1, lean_object* _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 = l_Lean_Parser_Term_seq___elambda__1___closed__4; +x_3 = l_Lean_Parser_Term_seq___elambda__1___closed__3; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); x_5 = lean_ctor_get(x_2, 0); @@ -45660,7 +46643,7 @@ lean_inc(x_5); x_6 = lean_array_get_size(x_5); lean_dec(x_5); x_7 = lean_apply_2(x_4, x_1, x_2); -x_8 = l_Lean_Parser_Term_seq___elambda__1___closed__2; +x_8 = l_Lean_Parser_Term_seq___elambda__1___closed__1; x_9 = l_Lean_Parser_ParserState_mkTrailingNode(x_7, x_8, x_6); lean_dec(x_6); return x_9; @@ -45670,10 +46653,10 @@ lean_object* _init_l_Lean_Parser_Term_seq___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_seq___elambda__1___closed__4; +x_1 = l_Lean_Parser_Term_seq___elambda__1___closed__3; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Term_seq___elambda__1___closed__2; +x_3 = l_Lean_Parser_Term_seq___elambda__1___closed__1; x_4 = l_Lean_Parser_nodeInfo(x_3, x_2); return x_4; } @@ -45711,7 +46694,7 @@ _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; x_2 = l_Lean_Parser_termParser___closed__2; -x_3 = l_Lean_Parser_Term_seq___elambda__1___closed__2; +x_3 = l_Lean_Parser_Term_seq___elambda__1___closed__1; x_4 = 0; x_5 = l_Lean_Parser_Term_seq; x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); @@ -46248,6 +47231,1369 @@ x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); return x_6; } } +lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("tacticBlock"); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkAppStx___closed__6; +x_2 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__1; +x_2 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__3; +x_3 = 1; +x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("begin "); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__5; +x_2 = l_String_trim(x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("end"); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7; +x_2 = l_String_trim(x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__9; +x_2 = l_Char_HasRepr___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__10; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__12; +x_2 = l_Char_HasRepr___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__13; +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_Parser_Term_tacticBlock___elambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__4; +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_5 = l_Lean_Parser_tryAnti(x_1, x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_dec(x_4); +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_array_get_size(x_6); +lean_dec(x_6); +x_39 = lean_ctor_get(x_2, 1); +lean_inc(x_39); +lean_inc(x_1); +x_40 = l_Lean_Parser_tokenFn(x_1, x_2); +x_41 = lean_ctor_get(x_40, 3); +lean_inc(x_41); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_40, 0); +lean_inc(x_42); +x_43 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_42); +lean_dec(x_42); +if (lean_obj_tag(x_43) == 2) +{ +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6; +x_46 = lean_string_dec_eq(x_44, x_45); +lean_dec(x_44); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; +x_48 = l_Lean_Parser_ParserState_mkErrorsAt(x_40, x_47, x_39); +x_8 = x_48; +goto block_38; +} +else +{ +lean_dec(x_39); +x_8 = x_40; +goto block_38; +} +} +else +{ +lean_object* x_49; lean_object* x_50; +lean_dec(x_43); +x_49 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; +x_50 = l_Lean_Parser_ParserState_mkErrorsAt(x_40, x_49, x_39); +x_8 = x_50; +goto block_38; +} +} +else +{ +lean_object* x_51; lean_object* x_52; +lean_dec(x_41); +x_51 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; +x_52 = l_Lean_Parser_ParserState_mkErrorsAt(x_40, x_51, x_39); +x_8 = x_52; +goto block_38; +} +block_38: +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 3); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; +lean_inc(x_1); +x_10 = l_Lean_Parser_Tactic_seq___elambda__1(x_1, x_8); +x_11 = lean_ctor_get(x_10, 3); +lean_inc(x_11); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +x_13 = l_Lean_Parser_tokenFn(x_1, x_10); +x_14 = lean_ctor_get(x_13, 3); +lean_inc(x_14); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +x_16 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_15); +lean_dec(x_15); +if (lean_obj_tag(x_16) == 2) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8; +x_19 = lean_string_dec_eq(x_17, x_18); +lean_dec(x_17); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; +x_21 = l_Lean_Parser_ParserState_mkErrorsAt(x_13, x_20, x_12); +x_22 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_23 = l_Lean_Parser_ParserState_mkNode(x_21, x_22, x_7); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_12); +x_24 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_25 = l_Lean_Parser_ParserState_mkNode(x_13, x_24, x_7); +return x_25; +} +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_16); +x_26 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; +x_27 = l_Lean_Parser_ParserState_mkErrorsAt(x_13, x_26, x_12); +x_28 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_29 = l_Lean_Parser_ParserState_mkNode(x_27, x_28, x_7); +return x_29; +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_14); +x_30 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; +x_31 = l_Lean_Parser_ParserState_mkErrorsAt(x_13, x_30, x_12); +x_32 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_33 = l_Lean_Parser_ParserState_mkNode(x_31, x_32, x_7); +return x_33; +} +} +else +{ +lean_object* x_34; lean_object* x_35; +lean_dec(x_11); +lean_dec(x_1); +x_34 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_35 = l_Lean_Parser_ParserState_mkNode(x_10, x_34, x_7); +return x_35; +} +} +else +{ +lean_object* x_36; lean_object* x_37; +lean_dec(x_9); +lean_dec(x_1); +x_36 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_37 = l_Lean_Parser_ParserState_mkNode(x_8, x_36, x_7); +return x_37; +} +} +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_53 = lean_ctor_get(x_2, 0); +lean_inc(x_53); +x_54 = lean_array_get_size(x_53); +lean_dec(x_53); +x_55 = lean_ctor_get(x_2, 1); +lean_inc(x_55); +lean_inc(x_1); +x_56 = lean_apply_2(x_4, x_1, x_2); +x_57 = lean_ctor_get(x_56, 3); +lean_inc(x_57); +if (lean_obj_tag(x_57) == 0) +{ +lean_dec(x_55); +lean_dec(x_54); +lean_dec(x_1); +return x_56; +} +else +{ +lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +lean_dec(x_57); +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); +x_60 = lean_nat_dec_eq(x_59, x_55); +lean_dec(x_59); +if (x_60 == 0) +{ +lean_dec(x_58); +lean_dec(x_55); +lean_dec(x_54); +lean_dec(x_1); +return x_56; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_101; lean_object* x_102; +lean_inc(x_55); +x_61 = l_Lean_Parser_ParserState_restore(x_56, x_54, x_55); +lean_dec(x_54); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_array_get_size(x_62); +lean_dec(x_62); +lean_inc(x_1); +x_101 = l_Lean_Parser_tokenFn(x_1, x_61); +x_102 = lean_ctor_get(x_101, 3); +lean_inc(x_102); +if (lean_obj_tag(x_102) == 0) +{ +lean_object* x_103; lean_object* x_104; +x_103 = lean_ctor_get(x_101, 0); +lean_inc(x_103); +x_104 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_103); +lean_dec(x_103); +if (lean_obj_tag(x_104) == 2) +{ +lean_object* x_105; lean_object* x_106; uint8_t x_107; +x_105 = lean_ctor_get(x_104, 1); +lean_inc(x_105); +lean_dec(x_104); +x_106 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6; +x_107 = lean_string_dec_eq(x_105, x_106); +lean_dec(x_105); +if (x_107 == 0) +{ +lean_object* x_108; lean_object* x_109; +x_108 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; +lean_inc(x_55); +x_109 = l_Lean_Parser_ParserState_mkErrorsAt(x_101, x_108, x_55); +x_64 = x_109; +goto block_100; +} +else +{ +x_64 = x_101; +goto block_100; +} +} +else +{ +lean_object* x_110; lean_object* x_111; +lean_dec(x_104); +x_110 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; +lean_inc(x_55); +x_111 = l_Lean_Parser_ParserState_mkErrorsAt(x_101, x_110, x_55); +x_64 = x_111; +goto block_100; +} +} +else +{ +lean_object* x_112; lean_object* x_113; +lean_dec(x_102); +x_112 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; +lean_inc(x_55); +x_113 = l_Lean_Parser_ParserState_mkErrorsAt(x_101, x_112, x_55); +x_64 = x_113; +goto block_100; +} +block_100: +{ +lean_object* x_65; +x_65 = lean_ctor_get(x_64, 3); +lean_inc(x_65); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; lean_object* x_67; +lean_inc(x_1); +x_66 = l_Lean_Parser_Tactic_seq___elambda__1(x_1, x_64); +x_67 = lean_ctor_get(x_66, 3); +lean_inc(x_67); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +x_69 = l_Lean_Parser_tokenFn(x_1, x_66); +x_70 = lean_ctor_get(x_69, 3); +lean_inc(x_70); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_ctor_get(x_69, 0); +lean_inc(x_71); +x_72 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_71); +lean_dec(x_71); +if (lean_obj_tag(x_72) == 2) +{ +lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +x_74 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8; +x_75 = lean_string_dec_eq(x_73, x_74); +lean_dec(x_73); +if (x_75 == 0) +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_76 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; +x_77 = l_Lean_Parser_ParserState_mkErrorsAt(x_69, x_76, x_68); +x_78 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_79 = l_Lean_Parser_ParserState_mkNode(x_77, x_78, x_63); +x_80 = l_Lean_Parser_mergeOrElseErrors(x_79, x_58, x_55); +lean_dec(x_55); +return x_80; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_68); +x_81 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_82 = l_Lean_Parser_ParserState_mkNode(x_69, x_81, x_63); +x_83 = l_Lean_Parser_mergeOrElseErrors(x_82, x_58, x_55); +lean_dec(x_55); +return x_83; +} +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +lean_dec(x_72); +x_84 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; +x_85 = l_Lean_Parser_ParserState_mkErrorsAt(x_69, x_84, x_68); +x_86 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_87 = l_Lean_Parser_ParserState_mkNode(x_85, x_86, x_63); +x_88 = l_Lean_Parser_mergeOrElseErrors(x_87, x_58, x_55); +lean_dec(x_55); +return x_88; +} +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_70); +x_89 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; +x_90 = l_Lean_Parser_ParserState_mkErrorsAt(x_69, x_89, x_68); +x_91 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_92 = l_Lean_Parser_ParserState_mkNode(x_90, x_91, x_63); +x_93 = l_Lean_Parser_mergeOrElseErrors(x_92, x_58, x_55); +lean_dec(x_55); +return x_93; +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_67); +lean_dec(x_1); +x_94 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_95 = l_Lean_Parser_ParserState_mkNode(x_66, x_94, x_63); +x_96 = l_Lean_Parser_mergeOrElseErrors(x_95, x_58, x_55); +lean_dec(x_55); +return x_96; +} +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_65); +lean_dec(x_1); +x_97 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_98 = l_Lean_Parser_ParserState_mkNode(x_64, x_97, x_63); +x_99 = l_Lean_Parser_mergeOrElseErrors(x_98, x_58, x_55); +lean_dec(x_55); +return x_99; +} +} +} +} +} +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6; +x_2 = l_Lean_Parser_Level_paren___closed__1; +x_3 = l_Lean_Parser_symbolInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8; +x_3 = l_Lean_Parser_symbolInfo(x_2, x_1); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_seq; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_tacticBlock___closed__2; +x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_tacticBlock___closed__1; +x_2 = l_Lean_Parser_Term_tacticBlock___closed__3; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_2 = l_Lean_Parser_Term_tacticBlock___closed__4; +x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__4; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_tacticBlock___closed__5; +x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_tacticBlock___elambda__1), 2, 0); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_tacticBlock___closed__6; +x_2 = l_Lean_Parser_Term_tacticBlock___closed__7; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticBlock() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Term_tacticBlock___closed__8; +return x_1; +} +} +lean_object* l___regBuiltinParser_Lean_Parser_Term_tacticBlock(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Parser_termParser___closed__2; +x_3 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_4 = 1; +x_5 = l_Lean_Parser_Term_tacticBlock; +x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("byTactic"); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkAppStx___closed__6; +x_2 = l_Lean_Parser_Term_byTactic___elambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_byTactic___elambda__1___closed__2; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_byTactic___elambda__1___closed__1; +x_2 = l_Lean_Parser_Term_byTactic___elambda__1___closed__3; +x_3 = 1; +x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("by "); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_byTactic___elambda__1___closed__5; +x_2 = l_String_trim(x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Term_byTactic___elambda__1___closed__6; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_byTactic___elambda__1___closed__7; +x_2 = l_Char_HasRepr___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_byTactic___elambda__1___closed__8; +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_Parser_Term_byTactic___elambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = l_Lean_Parser_Term_byTactic___elambda__1___closed__4; +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_5 = l_Lean_Parser_tryAnti(x_1, x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_4); +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_array_get_size(x_6); +lean_dec(x_6); +x_16 = lean_ctor_get(x_2, 1); +lean_inc(x_16); +lean_inc(x_1); +x_17 = l_Lean_Parser_tokenFn(x_1, x_2); +x_18 = lean_ctor_get(x_17, 3); +lean_inc(x_18); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +x_20 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_19); +lean_dec(x_19); +if (lean_obj_tag(x_20) == 2) +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = l_Lean_Parser_Term_byTactic___elambda__1___closed__6; +x_23 = lean_string_dec_eq(x_21, x_22); +lean_dec(x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = l_Lean_Parser_Term_byTactic___elambda__1___closed__9; +x_25 = l_Lean_Parser_ParserState_mkErrorsAt(x_17, x_24, x_16); +x_8 = x_25; +goto block_15; +} +else +{ +lean_dec(x_16); +x_8 = x_17; +goto block_15; +} +} +else +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_20); +x_26 = l_Lean_Parser_Term_byTactic___elambda__1___closed__9; +x_27 = l_Lean_Parser_ParserState_mkErrorsAt(x_17, x_26, x_16); +x_8 = x_27; +goto block_15; +} +} +else +{ +lean_object* x_28; lean_object* x_29; +lean_dec(x_18); +x_28 = l_Lean_Parser_Term_byTactic___elambda__1___closed__9; +x_29 = l_Lean_Parser_ParserState_mkErrorsAt(x_17, x_28, x_16); +x_8 = x_29; +goto block_15; +} +block_15: +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 3); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = l_Lean_Parser_Tactic_nonEmptySeq___elambda__1(x_1, x_8); +x_11 = l_Lean_Parser_Term_byTactic___elambda__1___closed__2; +x_12 = l_Lean_Parser_ParserState_mkNode(x_10, x_11, x_7); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_9); +lean_dec(x_1); +x_13 = l_Lean_Parser_Term_byTactic___elambda__1___closed__2; +x_14 = l_Lean_Parser_ParserState_mkNode(x_8, x_13, x_7); +return x_14; +} +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_30 = lean_ctor_get(x_2, 0); +lean_inc(x_30); +x_31 = lean_array_get_size(x_30); +lean_dec(x_30); +x_32 = lean_ctor_get(x_2, 1); +lean_inc(x_32); +lean_inc(x_1); +x_33 = lean_apply_2(x_4, x_1, x_2); +x_34 = lean_ctor_get(x_33, 3); +lean_inc(x_34); +if (lean_obj_tag(x_34) == 0) +{ +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_1); +return x_33; +} +else +{ +lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +lean_dec(x_34); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +x_37 = lean_nat_dec_eq(x_36, x_32); +lean_dec(x_36); +if (x_37 == 0) +{ +lean_dec(x_35); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_1); +return x_33; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_51; lean_object* x_52; +lean_inc(x_32); +x_38 = l_Lean_Parser_ParserState_restore(x_33, x_31, x_32); +lean_dec(x_31); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_array_get_size(x_39); +lean_dec(x_39); +lean_inc(x_1); +x_51 = l_Lean_Parser_tokenFn(x_1, x_38); +x_52 = lean_ctor_get(x_51, 3); +lean_inc(x_52); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_51, 0); +lean_inc(x_53); +x_54 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_53); +lean_dec(x_53); +if (lean_obj_tag(x_54) == 2) +{ +lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = l_Lean_Parser_Term_byTactic___elambda__1___closed__6; +x_57 = lean_string_dec_eq(x_55, x_56); +lean_dec(x_55); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; +x_58 = l_Lean_Parser_Term_byTactic___elambda__1___closed__9; +lean_inc(x_32); +x_59 = l_Lean_Parser_ParserState_mkErrorsAt(x_51, x_58, x_32); +x_41 = x_59; +goto block_50; +} +else +{ +x_41 = x_51; +goto block_50; +} +} +else +{ +lean_object* x_60; lean_object* x_61; +lean_dec(x_54); +x_60 = l_Lean_Parser_Term_byTactic___elambda__1___closed__9; +lean_inc(x_32); +x_61 = l_Lean_Parser_ParserState_mkErrorsAt(x_51, x_60, x_32); +x_41 = x_61; +goto block_50; +} +} +else +{ +lean_object* x_62; lean_object* x_63; +lean_dec(x_52); +x_62 = l_Lean_Parser_Term_byTactic___elambda__1___closed__9; +lean_inc(x_32); +x_63 = l_Lean_Parser_ParserState_mkErrorsAt(x_51, x_62, x_32); +x_41 = x_63; +goto block_50; +} +block_50: +{ +lean_object* x_42; +x_42 = lean_ctor_get(x_41, 3); +lean_inc(x_42); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = l_Lean_Parser_Tactic_nonEmptySeq___elambda__1(x_1, x_41); +x_44 = l_Lean_Parser_Term_byTactic___elambda__1___closed__2; +x_45 = l_Lean_Parser_ParserState_mkNode(x_43, x_44, x_40); +x_46 = l_Lean_Parser_mergeOrElseErrors(x_45, x_35, x_32); +lean_dec(x_32); +return x_46; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_42); +lean_dec(x_1); +x_47 = l_Lean_Parser_Term_byTactic___elambda__1___closed__2; +x_48 = l_Lean_Parser_ParserState_mkNode(x_41, x_47, x_40); +x_49 = l_Lean_Parser_mergeOrElseErrors(x_48, x_35, x_32); +lean_dec(x_32); +return x_49; +} +} +} +} +} +} +} +lean_object* _init_l_Lean_Parser_Term_byTactic___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_byTactic___elambda__1___closed__6; +x_2 = l_Lean_Parser_Term_if___closed__1; +x_3 = l_Lean_Parser_symbolInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_byTactic___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_nonEmptySeq; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_byTactic___closed__1; +x_4 = l_Lean_Parser_andthenInfo(x_3, x_2); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_byTactic___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_byTactic___elambda__1___closed__2; +x_2 = l_Lean_Parser_Term_byTactic___closed__2; +x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_byTactic___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_byTactic___elambda__1___closed__4; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_byTactic___closed__3; +x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_byTactic___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_byTactic___elambda__1), 2, 0); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_byTactic___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_byTactic___closed__4; +x_2 = l_Lean_Parser_Term_byTactic___closed__5; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_byTactic() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Term_byTactic___closed__6; +return x_1; +} +} +lean_object* l___regBuiltinParser_Lean_Parser_Term_byTactic(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Parser_termParser___closed__2; +x_3 = l_Lean_Parser_Term_byTactic___elambda__1___closed__2; +x_4 = 1; +x_5 = l_Lean_Parser_Term_byTactic; +x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("stxQuot"); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkAppStx___closed__6; +x_2 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("`(tactic|"); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__3; +x_2 = l_String_trim(x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__4; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__5; +x_2 = l_Char_HasRepr___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__6; +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_Parser_Term_tacticStxQuot___elambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_array_get_size(x_3); +lean_dec(x_3); +x_37 = lean_ctor_get(x_2, 1); +lean_inc(x_37); +lean_inc(x_1); +x_38 = l_Lean_Parser_tokenFn(x_1, x_2); +x_39 = lean_ctor_get(x_38, 3); +lean_inc(x_39); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_38, 0); +lean_inc(x_40); +x_41 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_40); +lean_dec(x_40); +if (lean_obj_tag(x_41) == 2) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +lean_dec(x_41); +x_43 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__4; +x_44 = lean_string_dec_eq(x_42, x_43); +lean_dec(x_42); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__7; +x_46 = l_Lean_Parser_ParserState_mkErrorsAt(x_38, x_45, x_37); +x_5 = x_46; +goto block_36; +} +else +{ +lean_dec(x_37); +x_5 = x_38; +goto block_36; +} +} +else +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_41); +x_47 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__7; +x_48 = l_Lean_Parser_ParserState_mkErrorsAt(x_38, x_47, x_37); +x_5 = x_48; +goto block_36; +} +} +else +{ +lean_object* x_49; lean_object* x_50; +lean_dec(x_39); +x_49 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__7; +x_50 = l_Lean_Parser_ParserState_mkErrorsAt(x_38, x_49, x_37); +x_5 = x_50; +goto block_36; +} +block_36: +{ +lean_object* x_6; +x_6 = lean_ctor_get(x_5, 3); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; lean_object* x_8; lean_object* x_9; +x_7 = 1; +lean_inc(x_1); +x_8 = l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_nonEmptySeq___elambda__1___spec__1(x_7, x_7, x_1, x_5); +x_9 = lean_ctor_get(x_8, 3); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +x_11 = l_Lean_Parser_tokenFn(x_1, x_8); +x_12 = lean_ctor_get(x_11, 3); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +x_14 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_13); +lean_dec(x_13); +if (lean_obj_tag(x_14) == 2) +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__4; +x_17 = lean_string_dec_eq(x_15, x_16); +lean_dec(x_15); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__7; +x_19 = l_Lean_Parser_ParserState_mkErrorsAt(x_11, x_18, x_10); +x_20 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; +x_21 = l_Lean_Parser_ParserState_mkNode(x_19, x_20, x_4); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_10); +x_22 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; +x_23 = l_Lean_Parser_ParserState_mkNode(x_11, x_22, x_4); +return x_23; +} +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_dec(x_14); +x_24 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__7; +x_25 = l_Lean_Parser_ParserState_mkErrorsAt(x_11, x_24, x_10); +x_26 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; +x_27 = l_Lean_Parser_ParserState_mkNode(x_25, x_26, x_4); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_dec(x_12); +x_28 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___elambda__1___closed__7; +x_29 = l_Lean_Parser_ParserState_mkErrorsAt(x_11, x_28, x_10); +x_30 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; +x_31 = l_Lean_Parser_ParserState_mkNode(x_29, x_30, x_4); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; +lean_dec(x_9); +lean_dec(x_1); +x_32 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; +x_33 = l_Lean_Parser_ParserState_mkNode(x_8, x_32, x_4); +return x_33; +} +} +else +{ +lean_object* x_34; lean_object* x_35; +lean_dec(x_6); +lean_dec(x_1); +x_34 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; +x_35 = l_Lean_Parser_ParserState_mkNode(x_5, x_34, x_4); +return x_35; +} +} +} +} +lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__4; +x_2 = l_Lean_Parser_Level_paren___closed__1; +x_3 = l_Lean_Parser_symbolInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_nonEmptySeq___closed__1; +x_2 = l___private_Init_Lean_Parser_Parser_12__antiquotNestedExpr___closed__5; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_tacticStxQuot___closed__1; +x_2 = l_Lean_Parser_Term_tacticStxQuot___closed__2; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; +x_2 = l_Lean_Parser_Term_tacticStxQuot___closed__3; +x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_tacticStxQuot___elambda__1), 2, 0); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticStxQuot___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_tacticStxQuot___closed__4; +x_2 = l_Lean_Parser_Term_tacticStxQuot___closed__5; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_tacticStxQuot() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Term_tacticStxQuot___closed__6; +return x_1; +} +} +lean_object* _init_l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("tacticStxQuot"); +return x_1; +} +} +lean_object* _init_l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___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___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Parser_termParser___closed__2; +x_3 = l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__2; +x_4 = 1; +x_5 = l_Lean_Parser_Term_tacticStxQuot; +x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} lean_object* initialize_Init_Lean_Parser_Parser(lean_object*); lean_object* initialize_Init_Lean_Parser_Level(lean_object*); static bool _G_initialized = false; @@ -46261,6 +48607,64 @@ lean_dec_ref(res); res = initialize_Init_Lean_Parser_Level(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Parser_regBuiltinTacticParserAttr___closed__1 = _init_l_Lean_Parser_regBuiltinTacticParserAttr___closed__1(); +lean_mark_persistent(l_Lean_Parser_regBuiltinTacticParserAttr___closed__1); +l_Lean_Parser_regBuiltinTacticParserAttr___closed__2 = _init_l_Lean_Parser_regBuiltinTacticParserAttr___closed__2(); +lean_mark_persistent(l_Lean_Parser_regBuiltinTacticParserAttr___closed__2); +l_Lean_Parser_regBuiltinTacticParserAttr___closed__3 = _init_l_Lean_Parser_regBuiltinTacticParserAttr___closed__3(); +lean_mark_persistent(l_Lean_Parser_regBuiltinTacticParserAttr___closed__3); +l_Lean_Parser_regBuiltinTacticParserAttr___closed__4 = _init_l_Lean_Parser_regBuiltinTacticParserAttr___closed__4(); +lean_mark_persistent(l_Lean_Parser_regBuiltinTacticParserAttr___closed__4); +res = l_Lean_Parser_regBuiltinTacticParserAttr(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Parser_regTacticParserAttribute___closed__1 = _init_l_Lean_Parser_regTacticParserAttribute___closed__1(); +lean_mark_persistent(l_Lean_Parser_regTacticParserAttribute___closed__1); +l_Lean_Parser_regTacticParserAttribute___closed__2 = _init_l_Lean_Parser_regTacticParserAttribute___closed__2(); +lean_mark_persistent(l_Lean_Parser_regTacticParserAttribute___closed__2); +res = l_Lean_Parser_regTacticParserAttribute(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1 = _init_l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__1); +l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__2 = _init_l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__2); +l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__3 = _init_l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__3); +l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4 = _init_l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2___closed__4); +l_Lean_Parser_Tactic_seq___elambda__1___closed__1 = _init_l_Lean_Parser_Tactic_seq___elambda__1___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_seq___elambda__1___closed__1); +l_Lean_Parser_Tactic_seq___elambda__1___closed__2 = _init_l_Lean_Parser_Tactic_seq___elambda__1___closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_seq___elambda__1___closed__2); +l_Lean_Parser_Tactic_seq___elambda__1___closed__3 = _init_l_Lean_Parser_Tactic_seq___elambda__1___closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_seq___elambda__1___closed__3); +l_Lean_Parser_Tactic_seq___elambda__1___closed__4 = _init_l_Lean_Parser_Tactic_seq___elambda__1___closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_seq___elambda__1___closed__4); +l_Lean_Parser_Tactic_seq___closed__1 = _init_l_Lean_Parser_Tactic_seq___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_seq___closed__1); +l_Lean_Parser_Tactic_seq___closed__2 = _init_l_Lean_Parser_Tactic_seq___closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_seq___closed__2); +l_Lean_Parser_Tactic_seq___closed__3 = _init_l_Lean_Parser_Tactic_seq___closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_seq___closed__3); +l_Lean_Parser_Tactic_seq___closed__4 = _init_l_Lean_Parser_Tactic_seq___closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_seq___closed__4); +l_Lean_Parser_Tactic_seq___closed__5 = _init_l_Lean_Parser_Tactic_seq___closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_seq___closed__5); +l_Lean_Parser_Tactic_seq___closed__6 = _init_l_Lean_Parser_Tactic_seq___closed__6(); +lean_mark_persistent(l_Lean_Parser_Tactic_seq___closed__6); +l_Lean_Parser_Tactic_seq = _init_l_Lean_Parser_Tactic_seq(); +lean_mark_persistent(l_Lean_Parser_Tactic_seq); +l_Lean_Parser_Tactic_nonEmptySeq___closed__1 = _init_l_Lean_Parser_Tactic_nonEmptySeq___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_nonEmptySeq___closed__1); +l_Lean_Parser_Tactic_nonEmptySeq___closed__2 = _init_l_Lean_Parser_Tactic_nonEmptySeq___closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_nonEmptySeq___closed__2); +l_Lean_Parser_Tactic_nonEmptySeq___closed__3 = _init_l_Lean_Parser_Tactic_nonEmptySeq___closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_nonEmptySeq___closed__3); +l_Lean_Parser_Tactic_nonEmptySeq___closed__4 = _init_l_Lean_Parser_Tactic_nonEmptySeq___closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_nonEmptySeq___closed__4); +l_Lean_Parser_Tactic_nonEmptySeq = _init_l_Lean_Parser_Tactic_nonEmptySeq(); +lean_mark_persistent(l_Lean_Parser_Tactic_nonEmptySeq); l_Lean_Parser_darrow___elambda__1___closed__1 = _init_l_Lean_Parser_darrow___elambda__1___closed__1(); lean_mark_persistent(l_Lean_Parser_darrow___elambda__1___closed__1); l_Lean_Parser_darrow___elambda__1___closed__2 = _init_l_Lean_Parser_darrow___elambda__1___closed__2(); @@ -47018,14 +49422,6 @@ l_Lean_Parser_Term_have___elambda__1___closed__8 = _init_l_Lean_Parser_Term_have lean_mark_persistent(l_Lean_Parser_Term_have___elambda__1___closed__8); l_Lean_Parser_Term_have___elambda__1___closed__9 = _init_l_Lean_Parser_Term_have___elambda__1___closed__9(); lean_mark_persistent(l_Lean_Parser_Term_have___elambda__1___closed__9); -l_Lean_Parser_Term_have___elambda__1___closed__10 = _init_l_Lean_Parser_Term_have___elambda__1___closed__10(); -lean_mark_persistent(l_Lean_Parser_Term_have___elambda__1___closed__10); -l_Lean_Parser_Term_have___elambda__1___closed__11 = _init_l_Lean_Parser_Term_have___elambda__1___closed__11(); -lean_mark_persistent(l_Lean_Parser_Term_have___elambda__1___closed__11); -l_Lean_Parser_Term_have___elambda__1___closed__12 = _init_l_Lean_Parser_Term_have___elambda__1___closed__12(); -lean_mark_persistent(l_Lean_Parser_Term_have___elambda__1___closed__12); -l_Lean_Parser_Term_have___elambda__1___closed__13 = _init_l_Lean_Parser_Term_have___elambda__1___closed__13(); -lean_mark_persistent(l_Lean_Parser_Term_have___elambda__1___closed__13); l_Lean_Parser_Term_have___closed__1 = _init_l_Lean_Parser_Term_have___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_have___closed__1); l_Lean_Parser_Term_have___closed__2 = _init_l_Lean_Parser_Term_have___closed__2(); @@ -47048,8 +49444,6 @@ l_Lean_Parser_Term_have___closed__10 = _init_l_Lean_Parser_Term_have___closed__1 lean_mark_persistent(l_Lean_Parser_Term_have___closed__10); l_Lean_Parser_Term_have___closed__11 = _init_l_Lean_Parser_Term_have___closed__11(); lean_mark_persistent(l_Lean_Parser_Term_have___closed__11); -l_Lean_Parser_Term_have___closed__12 = _init_l_Lean_Parser_Term_have___closed__12(); -lean_mark_persistent(l_Lean_Parser_Term_have___closed__12); l_Lean_Parser_Term_have = _init_l_Lean_Parser_Term_have(); lean_mark_persistent(l_Lean_Parser_Term_have); res = l___regBuiltinParser_Lean_Parser_Term_have(lean_io_mk_world()); @@ -47541,6 +49935,40 @@ l_Lean_Parser_Term_binderType___closed__5 = _init_l_Lean_Parser_Term_binderType_ lean_mark_persistent(l_Lean_Parser_Term_binderType___closed__5); l_Lean_Parser_Term_binderType___closed__6 = _init_l_Lean_Parser_Term_binderType___closed__6(); lean_mark_persistent(l_Lean_Parser_Term_binderType___closed__6); +l_Lean_Parser_Term_binderTactic___elambda__1___closed__1 = _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic___elambda__1___closed__1); +l_Lean_Parser_Term_binderTactic___elambda__1___closed__2 = _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic___elambda__1___closed__2); +l_Lean_Parser_Term_binderTactic___elambda__1___closed__3 = _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic___elambda__1___closed__3); +l_Lean_Parser_Term_binderTactic___elambda__1___closed__4 = _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic___elambda__1___closed__4); +l_Lean_Parser_Term_binderTactic___elambda__1___closed__5 = _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic___elambda__1___closed__5); +l_Lean_Parser_Term_binderTactic___elambda__1___closed__6 = _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic___elambda__1___closed__6); +l_Lean_Parser_Term_binderTactic___elambda__1___closed__7 = _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__7(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic___elambda__1___closed__7); +l_Lean_Parser_Term_binderTactic___elambda__1___closed__8 = _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__8(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic___elambda__1___closed__8); +l_Lean_Parser_Term_binderTactic___elambda__1___closed__9 = _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__9(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic___elambda__1___closed__9); +l_Lean_Parser_Term_binderTactic___closed__1 = _init_l_Lean_Parser_Term_binderTactic___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic___closed__1); +l_Lean_Parser_Term_binderTactic___closed__2 = _init_l_Lean_Parser_Term_binderTactic___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic___closed__2); +l_Lean_Parser_Term_binderTactic___closed__3 = _init_l_Lean_Parser_Term_binderTactic___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic___closed__3); +l_Lean_Parser_Term_binderTactic___closed__4 = _init_l_Lean_Parser_Term_binderTactic___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic___closed__4); +l_Lean_Parser_Term_binderTactic___closed__5 = _init_l_Lean_Parser_Term_binderTactic___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic___closed__5); +l_Lean_Parser_Term_binderTactic___closed__6 = _init_l_Lean_Parser_Term_binderTactic___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic___closed__6); +l_Lean_Parser_Term_binderTactic___closed__7 = _init_l_Lean_Parser_Term_binderTactic___closed__7(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic___closed__7); +l_Lean_Parser_Term_binderTactic = _init_l_Lean_Parser_Term_binderTactic(); +lean_mark_persistent(l_Lean_Parser_Term_binderTactic); l_Lean_Parser_Term_binderDefault___elambda__1___closed__1 = _init_l_Lean_Parser_Term_binderDefault___elambda__1___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_binderDefault___elambda__1___closed__1); l_Lean_Parser_Term_binderDefault___elambda__1___closed__2 = _init_l_Lean_Parser_Term_binderDefault___elambda__1___closed__2(); @@ -47559,26 +49987,6 @@ l_Lean_Parser_Term_binderDefault___closed__4 = _init_l_Lean_Parser_Term_binderDe lean_mark_persistent(l_Lean_Parser_Term_binderDefault___closed__4); l_Lean_Parser_Term_binderDefault = _init_l_Lean_Parser_Term_binderDefault(); lean_mark_persistent(l_Lean_Parser_Term_binderDefault); -l_Lean_Parser_Term_binderTactic___elambda__1___closed__1 = _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__1(); -lean_mark_persistent(l_Lean_Parser_Term_binderTactic___elambda__1___closed__1); -l_Lean_Parser_Term_binderTactic___elambda__1___closed__2 = _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__2(); -lean_mark_persistent(l_Lean_Parser_Term_binderTactic___elambda__1___closed__2); -l_Lean_Parser_Term_binderTactic___elambda__1___closed__3 = _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__3(); -lean_mark_persistent(l_Lean_Parser_Term_binderTactic___elambda__1___closed__3); -l_Lean_Parser_Term_binderTactic___elambda__1___closed__4 = _init_l_Lean_Parser_Term_binderTactic___elambda__1___closed__4(); -lean_mark_persistent(l_Lean_Parser_Term_binderTactic___elambda__1___closed__4); -l_Lean_Parser_Term_binderTactic___closed__1 = _init_l_Lean_Parser_Term_binderTactic___closed__1(); -lean_mark_persistent(l_Lean_Parser_Term_binderTactic___closed__1); -l_Lean_Parser_Term_binderTactic___closed__2 = _init_l_Lean_Parser_Term_binderTactic___closed__2(); -lean_mark_persistent(l_Lean_Parser_Term_binderTactic___closed__2); -l_Lean_Parser_Term_binderTactic___closed__3 = _init_l_Lean_Parser_Term_binderTactic___closed__3(); -lean_mark_persistent(l_Lean_Parser_Term_binderTactic___closed__3); -l_Lean_Parser_Term_binderTactic___closed__4 = _init_l_Lean_Parser_Term_binderTactic___closed__4(); -lean_mark_persistent(l_Lean_Parser_Term_binderTactic___closed__4); -l_Lean_Parser_Term_binderTactic___closed__5 = _init_l_Lean_Parser_Term_binderTactic___closed__5(); -lean_mark_persistent(l_Lean_Parser_Term_binderTactic___closed__5); -l_Lean_Parser_Term_binderTactic = _init_l_Lean_Parser_Term_binderTactic(); -lean_mark_persistent(l_Lean_Parser_Term_binderTactic); l_Lean_Parser_Term_explicitBinder___elambda__1___closed__1 = _init_l_Lean_Parser_Term_explicitBinder___elambda__1___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_explicitBinder___elambda__1___closed__1); l_Lean_Parser_Term_explicitBinder___elambda__1___closed__2 = _init_l_Lean_Parser_Term_explicitBinder___elambda__1___closed__2(); @@ -49450,8 +51858,6 @@ l_Lean_Parser_Term_seq___elambda__1___closed__2 = _init_l_Lean_Parser_Term_seq__ lean_mark_persistent(l_Lean_Parser_Term_seq___elambda__1___closed__2); l_Lean_Parser_Term_seq___elambda__1___closed__3 = _init_l_Lean_Parser_Term_seq___elambda__1___closed__3(); lean_mark_persistent(l_Lean_Parser_Term_seq___elambda__1___closed__3); -l_Lean_Parser_Term_seq___elambda__1___closed__4 = _init_l_Lean_Parser_Term_seq___elambda__1___closed__4(); -lean_mark_persistent(l_Lean_Parser_Term_seq___elambda__1___closed__4); l_Lean_Parser_Term_seq___closed__1 = _init_l_Lean_Parser_Term_seq___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_seq___closed__1); l_Lean_Parser_Term_seq___closed__2 = _init_l_Lean_Parser_Term_seq___closed__2(); @@ -49558,6 +51964,125 @@ lean_mark_persistent(l_Lean_Parser_Term_mapConstRev); res = l___regBuiltinParser_Lean_Parser_Term_mapConstRev(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Parser_Term_tacticBlock___elambda__1___closed__1 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__1); +l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2); +l_Lean_Parser_Term_tacticBlock___elambda__1___closed__3 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__3); +l_Lean_Parser_Term_tacticBlock___elambda__1___closed__4 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__4); +l_Lean_Parser_Term_tacticBlock___elambda__1___closed__5 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__5); +l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6); +l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7); +l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8); +l_Lean_Parser_Term_tacticBlock___elambda__1___closed__9 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__9(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__9); +l_Lean_Parser_Term_tacticBlock___elambda__1___closed__10 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__10(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__10); +l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11); +l_Lean_Parser_Term_tacticBlock___elambda__1___closed__12 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__12(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__12); +l_Lean_Parser_Term_tacticBlock___elambda__1___closed__13 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__13(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__13); +l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14 = _init_l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14); +l_Lean_Parser_Term_tacticBlock___closed__1 = _init_l_Lean_Parser_Term_tacticBlock___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___closed__1); +l_Lean_Parser_Term_tacticBlock___closed__2 = _init_l_Lean_Parser_Term_tacticBlock___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___closed__2); +l_Lean_Parser_Term_tacticBlock___closed__3 = _init_l_Lean_Parser_Term_tacticBlock___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___closed__3); +l_Lean_Parser_Term_tacticBlock___closed__4 = _init_l_Lean_Parser_Term_tacticBlock___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___closed__4); +l_Lean_Parser_Term_tacticBlock___closed__5 = _init_l_Lean_Parser_Term_tacticBlock___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___closed__5); +l_Lean_Parser_Term_tacticBlock___closed__6 = _init_l_Lean_Parser_Term_tacticBlock___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___closed__6); +l_Lean_Parser_Term_tacticBlock___closed__7 = _init_l_Lean_Parser_Term_tacticBlock___closed__7(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___closed__7); +l_Lean_Parser_Term_tacticBlock___closed__8 = _init_l_Lean_Parser_Term_tacticBlock___closed__8(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___closed__8); +l_Lean_Parser_Term_tacticBlock = _init_l_Lean_Parser_Term_tacticBlock(); +lean_mark_persistent(l_Lean_Parser_Term_tacticBlock); +res = l___regBuiltinParser_Lean_Parser_Term_tacticBlock(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Parser_Term_byTactic___elambda__1___closed__1 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__1); +l_Lean_Parser_Term_byTactic___elambda__1___closed__2 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__2); +l_Lean_Parser_Term_byTactic___elambda__1___closed__3 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__3); +l_Lean_Parser_Term_byTactic___elambda__1___closed__4 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__4); +l_Lean_Parser_Term_byTactic___elambda__1___closed__5 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__5); +l_Lean_Parser_Term_byTactic___elambda__1___closed__6 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__6); +l_Lean_Parser_Term_byTactic___elambda__1___closed__7 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__7(); +lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__7); +l_Lean_Parser_Term_byTactic___elambda__1___closed__8 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__8(); +lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__8); +l_Lean_Parser_Term_byTactic___elambda__1___closed__9 = _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__9(); +lean_mark_persistent(l_Lean_Parser_Term_byTactic___elambda__1___closed__9); +l_Lean_Parser_Term_byTactic___closed__1 = _init_l_Lean_Parser_Term_byTactic___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_byTactic___closed__1); +l_Lean_Parser_Term_byTactic___closed__2 = _init_l_Lean_Parser_Term_byTactic___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_byTactic___closed__2); +l_Lean_Parser_Term_byTactic___closed__3 = _init_l_Lean_Parser_Term_byTactic___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_byTactic___closed__3); +l_Lean_Parser_Term_byTactic___closed__4 = _init_l_Lean_Parser_Term_byTactic___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_byTactic___closed__4); +l_Lean_Parser_Term_byTactic___closed__5 = _init_l_Lean_Parser_Term_byTactic___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_byTactic___closed__5); +l_Lean_Parser_Term_byTactic___closed__6 = _init_l_Lean_Parser_Term_byTactic___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_byTactic___closed__6); +l_Lean_Parser_Term_byTactic = _init_l_Lean_Parser_Term_byTactic(); +lean_mark_persistent(l_Lean_Parser_Term_byTactic); +res = l___regBuiltinParser_Lean_Parser_Term_byTactic(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__1 = _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__1); +l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2 = _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2); +l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__3 = _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__3); +l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__4 = _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__4); +l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__5 = _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__5); +l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__6 = _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__6); +l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__7 = _init_l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__7(); +lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__7); +l_Lean_Parser_Term_tacticStxQuot___closed__1 = _init_l_Lean_Parser_Term_tacticStxQuot___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___closed__1); +l_Lean_Parser_Term_tacticStxQuot___closed__2 = _init_l_Lean_Parser_Term_tacticStxQuot___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___closed__2); +l_Lean_Parser_Term_tacticStxQuot___closed__3 = _init_l_Lean_Parser_Term_tacticStxQuot___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___closed__3); +l_Lean_Parser_Term_tacticStxQuot___closed__4 = _init_l_Lean_Parser_Term_tacticStxQuot___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___closed__4); +l_Lean_Parser_Term_tacticStxQuot___closed__5 = _init_l_Lean_Parser_Term_tacticStxQuot___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___closed__5); +l_Lean_Parser_Term_tacticStxQuot___closed__6 = _init_l_Lean_Parser_Term_tacticStxQuot___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot___closed__6); +l_Lean_Parser_Term_tacticStxQuot = _init_l_Lean_Parser_Term_tacticStxQuot(); +lean_mark_persistent(l_Lean_Parser_Term_tacticStxQuot); +l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__1 = _init_l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__1(); +lean_mark_persistent(l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__1); +l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__2 = _init_l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__2(); +lean_mark_persistent(l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__2); +res = l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_mk_io_result(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Lean/Syntax.c b/stage0/stdlib/Init/Lean/Syntax.c index 7bc0dc2d98..d2d6a8327a 100644 --- a/stage0/stdlib/Init/Lean/Syntax.c +++ b/stage0/stdlib/Init/Lean/Syntax.c @@ -16,9 +16,9 @@ extern "C" { lean_object* l_Lean_Syntax_reprint___main___closed__1; lean_object* l_Lean_Syntax_formatStxAux___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_reprint___main___boxed(lean_object*); +lean_object* l___private_Init_Lean_Syntax_5__reprintLeaf(lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Syntax_reprint___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Syntax_4__reprintLeaf(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Syntax_1__updateInfo(lean_object*, lean_object*); lean_object* l_Lean_Syntax_setTailInfoAux(lean_object*, lean_object*); lean_object* l_Lean_Syntax_reprint___boxed(lean_object*); @@ -30,10 +30,10 @@ lean_object* l_Lean_Syntax_ifNodeKind___rarg(lean_object*, lean_object*, lean_ob uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Syntax_mrewriteBottomUp___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Syntax_4__updateFirst___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_HasToString; extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_SyntaxNode_withArgs(lean_object*); -lean_object* l___private_Init_Lean_Syntax_4__reprintLeaf___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_reprint___main(lean_object*); lean_object* l_Lean_Syntax_mrewriteBottomUp___main___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_mrewriteBottomUp(lean_object*); @@ -51,7 +51,9 @@ lean_object* l_Lean_Syntax_getNumArgs___boxed(lean_object*); lean_object* l___private_Init_Lean_Syntax_3__updateLast___main___at_Lean_Syntax_setTailInfoAux___main___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__4; lean_object* l_Lean_mkAtom(lean_object*); +lean_object* l_Lean_Syntax_setHeadInfo(lean_object*, lean_object*); lean_object* l_Lean_Syntax_mreplace___main(lean_object*); +lean_object* l___private_Init_Lean_Syntax_4__updateFirst___main(lean_object*); lean_object* l_Lean_Syntax_Lean_HasFormat(lean_object*); lean_object* l_Lean_Syntax_truncateTrailing(lean_object*); lean_object* l_Lean_Syntax_mreplace___rarg(lean_object*, lean_object*, lean_object*); @@ -69,6 +71,7 @@ lean_object* l_Lean_Syntax_getTailWithInfo___main(lean_object*); lean_object* l_Lean_Syntax_formatStxAux___main___closed__4; lean_object* l_Lean_SyntaxNode_getIdAt(lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Syntax_replaceInfo___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SyntaxNode_getKind___boxed(lean_object*); lean_object* l_Lean_Syntax_formatStxAux___main___closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); @@ -84,6 +87,8 @@ lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___main___spec__5___ lean_object* l_Lean_unreachIsNodeMissing(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getIdAt___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStx___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_replaceInfo___main(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Syntax_4__updateFirst(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Syntax_3__updateLast(lean_object*); lean_object* l_Lean_Syntax_updateLeading(lean_object*); @@ -101,6 +106,7 @@ lean_object* l_Lean_Syntax_formatStx(lean_object*, lean_object*); lean_object* l_Lean_Syntax_mreplace___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Function_comp___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Syntax_rewriteBottomUp___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_replaceInfo(lean_object*, lean_object*); lean_object* l_Lean_Syntax_isMissing___boxed(lean_object*); lean_object* l_Lean_Syntax_mreplace(lean_object*); lean_object* l___private_Init_Lean_Syntax_3__updateLast___main(lean_object*); @@ -142,6 +148,7 @@ lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SourceInfo_updateTrailing(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Syntax_2__updateLeadingAux(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailWithInfo(lean_object*); +lean_object* l_Lean_Syntax_setHeadInfoAux___main(lean_object*, lean_object*); lean_object* l_String_quote(lean_object*); lean_object* l_Lean_Syntax_HasToString___closed__2; lean_object* l_Lean_Syntax_mrewriteBottomUp___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -150,6 +157,7 @@ extern lean_object* l_Lean_Format_sbracket___closed__1; extern lean_object* l_Lean_Format_paren___closed__2; lean_object* l_Lean_unreachIsNodeAtom___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Syntax_3__updateLast___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Syntax_4__updateFirst___main___at_Lean_Syntax_setHeadInfoAux___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Lean_Syntax_getTailWithInfo___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_setTailInfoAux___main(lean_object*, lean_object*); @@ -162,6 +170,7 @@ lean_object* l_Array_iterateMAux___main___at_Lean_Syntax_reprint___main___spec__ lean_object* l_Array_umapMAux___main___at_Lean_Syntax_updateLeading___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_HasToString___closed__1; extern lean_object* l_Lean_mkOptionalNode___closed__1; +lean_object* l___private_Init_Lean_Syntax_4__updateFirst___main___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_mrewriteBottomUp___main(lean_object*); lean_object* l_Lean_SyntaxNode_getIdAt___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailInfo(lean_object*); @@ -188,13 +197,16 @@ lean_object* l_Lean_Syntax_mrewriteBottomUp___main___rarg___lambda__2(lean_objec lean_object* l_Lean_Syntax_ifNodeKind___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_modifyArgs(lean_object*, lean_object*); lean_object* l_Lean_mkNode(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Syntax_5__reprintLeaf___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailInfo___main(lean_object*); lean_object* l_Lean_SyntaxNode_getArg(lean_object*, lean_object*); lean_object* l_Lean_Format_joinSep___main___at_Lean_Syntax_formatStxAux___main___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux___main___closed__7; lean_object* l_Lean_Syntax_formatStxAux(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_reprint(lean_object*); +lean_object* l_Lean_Syntax_setHeadInfoAux(lean_object*, lean_object*); lean_object* l_Lean_Syntax_mreplace___main___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Syntax_4__updateFirst___rarg(lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_SourceInfo_updateTrailing(lean_object* x_1, lean_object* x_2) { @@ -2927,7 +2939,502 @@ return x_10; } } } -lean_object* l___private_Init_Lean_Syntax_4__reprintLeaf(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Lean_Syntax_4__updateFirst___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_1); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_6 = lean_box(0); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_array_fget(x_1, x_3); +lean_inc(x_2); +x_8 = lean_apply_1(x_2, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +lean_dec(x_2); +x_12 = !lean_is_exclusive(x_8); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_8, 0); +x_14 = lean_array_fset(x_1, x_3, x_13); +lean_dec(x_3); +lean_ctor_set(x_8, 0, x_14); +return x_8; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_8, 0); +lean_inc(x_15); +lean_dec(x_8); +x_16 = lean_array_fset(x_1, x_3, x_15); +lean_dec(x_3); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +return x_17; +} +} +} +} +} +lean_object* l___private_Init_Lean_Syntax_4__updateFirst___main(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Syntax_4__updateFirst___main___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Init_Lean_Syntax_4__updateFirst___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l___private_Init_Lean_Syntax_4__updateFirst___main___rarg(x_1, x_2, x_3); +return x_4; +} +} +lean_object* l___private_Init_Lean_Syntax_4__updateFirst(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l___private_Init_Lean_Syntax_4__updateFirst___rarg), 3, 0); +return x_3; +} +} +lean_object* l___private_Init_Lean_Syntax_4__updateFirst___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l___private_Init_Lean_Syntax_4__updateFirst(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +lean_object* l___private_Init_Lean_Syntax_4__updateFirst___main___at_Lean_Syntax_setHeadInfoAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_6 = lean_box(0); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_array_fget(x_2, x_3); +lean_inc(x_1); +x_8 = l_Lean_Syntax_setHeadInfoAux___main(x_1, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +lean_dec(x_1); +x_12 = !lean_is_exclusive(x_8); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_8, 0); +x_14 = lean_array_fset(x_2, x_3, x_13); +lean_dec(x_3); +lean_ctor_set(x_8, 0, x_14); +return x_8; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_8, 0); +lean_inc(x_15); +lean_dec(x_8); +x_16 = lean_array_fset(x_2, x_3, x_15); +lean_dec(x_3); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +return x_17; +} +} +} +} +} +lean_object* l_Lean_Syntax_setHeadInfoAux___main(lean_object* x_1, lean_object* x_2) { +_start: +{ +switch (lean_obj_tag(x_2)) { +case 0: +{ +lean_object* x_3; +lean_dec(x_1); +x_3 = lean_box(0); +return x_3; +} +case 1: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_2); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = lean_ctor_get(x_2, 0); +x_6 = lean_ctor_get(x_2, 1); +x_7 = lean_array_get_size(x_6); +x_8 = l___private_Init_Lean_Syntax_4__updateFirst___main___at_Lean_Syntax_setHeadInfoAux___main___spec__1(x_1, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +lean_free_object(x_2); +lean_dec(x_5); +x_9 = lean_box(0); +return x_9; +} +else +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_8); +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_8, 0); +lean_ctor_set(x_2, 1, x_11); +lean_ctor_set(x_8, 0, x_2); +return x_8; +} +else +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_8, 0); +lean_inc(x_12); +lean_dec(x_8); +lean_ctor_set(x_2, 1, x_12); +x_13 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_13, 0, x_2); +return x_13; +} +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_2); +x_16 = lean_array_get_size(x_15); +x_17 = l___private_Init_Lean_Syntax_4__updateFirst___main___at_Lean_Syntax_setHeadInfoAux___main___spec__1(x_1, x_15, x_16); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; +lean_dec(x_14); +x_18 = lean_box(0); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + x_20 = x_17; +} else { + lean_dec_ref(x_17); + x_20 = lean_box(0); +} +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_14); +lean_ctor_set(x_21, 1, x_19); +if (lean_is_scalar(x_20)) { + x_22 = lean_alloc_ctor(1, 1, 0); +} else { + x_22 = x_20; +} +lean_ctor_set(x_22, 0, x_21); +return x_22; +} +} +} +case 2: +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_2); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_2, 0); +lean_dec(x_24); +lean_ctor_set(x_2, 0, x_1); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_2); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_2, 1); +lean_inc(x_26); +lean_dec(x_2); +x_27 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_27, 0, x_1); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_27); +return x_28; +} +} +default: +{ +uint8_t x_29; +x_29 = !lean_is_exclusive(x_2); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_2, 0); +lean_dec(x_30); +lean_ctor_set(x_2, 0, x_1); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_2); +return x_31; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_32 = lean_ctor_get(x_2, 1); +x_33 = lean_ctor_get(x_2, 2); +x_34 = lean_ctor_get(x_2, 3); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_2); +x_35 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_35, 0, x_1); +lean_ctor_set(x_35, 1, x_32); +lean_ctor_set(x_35, 2, x_33); +lean_ctor_set(x_35, 3, x_34); +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_35); +return x_36; +} +} +} +} +} +lean_object* l_Lean_Syntax_setHeadInfoAux(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Syntax_setHeadInfoAux___main(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Syntax_setHeadInfo(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +lean_inc(x_1); +x_3 = l_Lean_Syntax_setHeadInfoAux___main(x_2, x_1); +if (lean_obj_tag(x_3) == 0) +{ +return x_1; +} +else +{ +lean_object* x_4; +lean_dec(x_1); +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +lean_dec(x_3); +return x_4; +} +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Syntax_replaceInfo___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +lean_dec(x_1); +x_6 = l_Array_empty___closed__1; +x_7 = x_3; +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_8 = lean_array_fget(x_3, x_2); +x_9 = lean_box(0); +x_10 = x_9; +x_11 = lean_array_fset(x_3, x_2, x_10); +lean_inc(x_8); +lean_inc(x_1); +x_12 = l_Lean_Syntax_replaceInfo___main(x_1, x_8); +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_add(x_2, x_13); +x_15 = x_12; +lean_dec(x_8); +x_16 = lean_array_fset(x_11, x_2, x_15); +lean_dec(x_2); +x_2 = x_14; +x_3 = x_16; +goto _start; +} +} +} +lean_object* l_Lean_Syntax_replaceInfo___main(lean_object* x_1, lean_object* x_2) { +_start: +{ +switch (lean_obj_tag(x_2)) { +case 0: +{ +lean_dec(x_1); +return x_2; +} +case 1: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_2, 1); +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Array_umapMAux___main___at_Lean_Syntax_replaceInfo___main___spec__1(x_1, x_5, x_4); +lean_ctor_set(x_2, 1, x_6); +return x_2; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = lean_ctor_get(x_2, 0); +x_8 = lean_ctor_get(x_2, 1); +lean_inc(x_8); +lean_inc(x_7); +lean_dec(x_2); +x_9 = lean_unsigned_to_nat(0u); +x_10 = l_Array_umapMAux___main___at_Lean_Syntax_replaceInfo___main___spec__1(x_1, x_9, x_8); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_7); +lean_ctor_set(x_11, 1, x_10); +return x_11; +} +} +case 2: +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_2); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_2, 0); +lean_dec(x_13); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_1); +lean_ctor_set(x_2, 0, x_14); +return x_2; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +lean_dec(x_2); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_1); +x_17 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +} +default: +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_2); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_2, 0); +lean_dec(x_19); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_1); +lean_ctor_set(x_2, 0, x_20); +return x_2; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_2, 1); +x_22 = lean_ctor_get(x_2, 2); +x_23 = lean_ctor_get(x_2, 3); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_2); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_1); +x_25 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_21); +lean_ctor_set(x_25, 2, x_22); +lean_ctor_set(x_25, 3, x_23); +return x_25; +} +} +} +} +} +lean_object* l_Lean_Syntax_replaceInfo(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Syntax_replaceInfo___main(x_1, x_2); +return x_3; +} +} +lean_object* l___private_Init_Lean_Syntax_5__reprintLeaf(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2959,11 +3466,11 @@ return x_18; } } } -lean_object* l___private_Init_Lean_Syntax_4__reprintLeaf___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Lean_Syntax_5__reprintLeaf___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Init_Lean_Syntax_4__reprintLeaf(x_1, x_2); +x_3 = l___private_Init_Lean_Syntax_5__reprintLeaf(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; @@ -3153,7 +3660,7 @@ case 2: lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; x_21 = lean_ctor_get(x_1, 0); x_22 = lean_ctor_get(x_1, 1); -x_23 = l___private_Init_Lean_Syntax_4__reprintLeaf(x_21, x_22); +x_23 = l___private_Init_Lean_Syntax_5__reprintLeaf(x_21, x_22); x_24 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_24, 0, x_23); return x_24; @@ -3167,7 +3674,7 @@ x_27 = lean_ctor_get(x_25, 0); x_28 = lean_ctor_get(x_25, 1); x_29 = lean_ctor_get(x_25, 2); x_30 = lean_string_utf8_extract(x_27, x_28, x_29); -x_31 = l___private_Init_Lean_Syntax_4__reprintLeaf(x_26, x_30); +x_31 = l___private_Init_Lean_Syntax_5__reprintLeaf(x_26, x_30); lean_dec(x_30); x_32 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_32, 0, x_31); diff --git a/stage0/stdlib/Init/LeanInit.c b/stage0/stdlib/Init/LeanInit.c index 73cf953c18..235564d14b 100644 --- a/stage0/stdlib/Init/LeanInit.c +++ b/stage0/stdlib/Init/LeanInit.c @@ -216,6 +216,7 @@ lean_object* l_Lean_ParserDescr_inhabited___closed__1; lean_object* l_Lean_NameGenerator_mkChild(lean_object*); lean_object* l_Lean_Syntax_isCharLit_x3f___boxed(lean_object*); lean_object* l___private_Init_LeanInit_2__assembleParts(lean_object*, lean_object*); +lean_object* l_Lean_SourceInfo_inhabited; size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_nullKind___closed__1; lean_object* l_Lean_Syntax_decodeStrLit___boxed(lean_object*); @@ -243,6 +244,7 @@ lean_object* l_Lean_identKind; lean_object* l_Lean_mkCTermId(lean_object*); uint8_t l_UInt32_decEq(uint32_t, uint32_t); lean_object* l_Lean_Syntax_inhabited; +extern lean_object* l_Substring_drop___closed__2; lean_object* l_Lean_Macro_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppStx___closed__5; lean_object* l_Lean_Macro_throwError___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -252,6 +254,7 @@ lean_object* l___private_Init_LeanInit_3__extractImported(lean_object*, lean_obj lean_object* l___private_Init_LeanInit_5__extractMacroScopesAux___main(lean_object*, lean_object*); uint8_t l_Lean_Syntax_hasArgs(lean_object*); lean_object* l_Lean_monadQuotationTrans___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_SourceInfo_inhabited___closed__1; lean_object* l_String_quote(lean_object*); uint8_t l_Char_isAlphanum(uint32_t); lean_object* l___private_Init_LeanInit_12__decodeQuotedChar(lean_object*, lean_object*); @@ -1523,6 +1526,27 @@ x_1 = l_Lean_ParserDescr_inhabited___closed__1; return x_1; } } +lean_object* _init_l_Lean_SourceInfo_inhabited___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Substring_drop___closed__2; +x_2 = lean_unsigned_to_nat(0u); +x_3 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +lean_ctor_set(x_3, 2, x_1); +return x_3; +} +} +lean_object* _init_l_Lean_SourceInfo_inhabited() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_SourceInfo_inhabited___closed__1; +return x_1; +} +} lean_object* _init_l_Lean_Syntax_inhabited() { _start: { @@ -6751,6 +6775,10 @@ l_Lean_ParserDescr_inhabited___closed__1 = _init_l_Lean_ParserDescr_inhabited___ lean_mark_persistent(l_Lean_ParserDescr_inhabited___closed__1); l_Lean_ParserDescr_inhabited = _init_l_Lean_ParserDescr_inhabited(); lean_mark_persistent(l_Lean_ParserDescr_inhabited); +l_Lean_SourceInfo_inhabited___closed__1 = _init_l_Lean_SourceInfo_inhabited___closed__1(); +lean_mark_persistent(l_Lean_SourceInfo_inhabited___closed__1); +l_Lean_SourceInfo_inhabited = _init_l_Lean_SourceInfo_inhabited(); +lean_mark_persistent(l_Lean_SourceInfo_inhabited); l_Lean_Syntax_inhabited = _init_l_Lean_Syntax_inhabited(); lean_mark_persistent(l_Lean_Syntax_inhabited); l_Lean_choiceKind___closed__1 = _init_l_Lean_choiceKind___closed__1();