diff --git a/stage0/src/Lean/Elab/App.lean b/stage0/src/Lean/Elab/App.lean index 7d9007e745..bb6da8c897 100644 --- a/stage0/src/Lean/Elab/App.lean +++ b/stage0/src/Lean/Elab/App.lean @@ -236,12 +236,10 @@ private partial def elabAppArgsAux : ElabAppArgsCtx → Expr → Expr → TermEl match evalSyntaxConstant env tacticDecl with | Except.error err => throwError 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; + tacticBlock ← `(by { $(tacticSyntax.getArgs)* }); + -- tacticBlock does not have any position information. + -- So, we use ctx.ref + let tacticBlock := tacticBlock.copyInfo ctx.ref; let d := d.getArg! 0; -- `autoParam type := by tactic` ==> `type` argElab ← elabArg e (Arg.stx tacticBlock) d; elabAppArgsAux ctx (mkApp e argElab) (b.instantiate1 argElab) diff --git a/stage0/src/Lean/Elab/Tactic.lean b/stage0/src/Lean/Elab/Tactic.lean index 69669470e2..5c244d087d 100644 --- a/stage0/src/Lean/Elab/Tactic.lean +++ b/stage0/src/Lean/Elab/Tactic.lean @@ -10,3 +10,4 @@ import Lean.Elab.Tactic.Induction import Lean.Elab.Tactic.Generalize import Lean.Elab.Tactic.Injection import Lean.Elab.Tactic.Match +import Lean.Elab.Tactic.Binders diff --git a/stage0/src/Lean/Elab/Tactic/Basic.lean b/stage0/src/Lean/Elab/Tactic/Basic.lean index faf4a37fb6..74afd4edf2 100644 --- a/stage0/src/Lean/Elab/Tactic/Basic.lean +++ b/stage0/src/Lean/Elab/Tactic/Basic.lean @@ -372,12 +372,9 @@ fun stx => match_syntax stx with @[builtinTactic paren] def evalParen : Tactic := fun stx => evalTactic (stx.getArg 1) -@[builtinTactic nestedTacticBlock] def evalNestedTacticBlock : Tactic := +@[builtinTactic nestedTacticBlockCurly] def evalNestedTacticBlock : Tactic := fun stx => focus (evalTactic (stx.getArg 1)) -@[builtinTactic nestedTacticBlockCurly] def evalNestedTacticBlockCurly : Tactic := -evalNestedTacticBlock - @[builtinTactic «case»] def evalCase : Tactic := fun stx => match_syntax stx with | `(tactic| case $tag $tac) => do diff --git a/stage0/src/Lean/Elab/Term.lean b/stage0/src/Lean/Elab/Term.lean index ff3fed54d7..166cc04d2b 100644 --- a/stage0/src/Lean/Elab/Term.lean +++ b/stage0/src/Lean/Elab/Term.lean @@ -972,12 +972,6 @@ ref ← getRef; registerSyntheticMVar ref mvarId $ SyntheticMVarKind.tactic tacticCode; pure mvar -@[builtinTermElab tacticBlock] def elabTacticBlock : TermElab := -fun stx expectedType? => - match expectedType? with - | some expectedType => mkTacticMVar expectedType (stx.getArg 1) - | none => throwError ("invalid tactic block, expected type has not been provided") - @[builtinTermElab byTactic] def elabByTactic : TermElab := fun stx expectedType? => match expectedType? with diff --git a/stage0/src/Lean/Parser/Tactic.lean b/stage0/src/Lean/Parser/Tactic.lean index 34b7a92b2b..e144a3155e 100644 --- a/stage0/src/Lean/Parser/Tactic.lean +++ b/stage0/src/Lean/Parser/Tactic.lean @@ -60,7 +60,6 @@ def matchAlts : Parser := withPosition $ fun pos => (optional "| ") >> sepBy1 ma @[builtinTacticParser] def «match» := parser! nonReservedSymbol "match " >> sepBy1 Term.matchDiscr ", " >> Term.optType >> " with " >> matchAlts @[builtinTacticParser] def «injection» := parser! nonReservedSymbol "injection " >> termParser >> withIds @[builtinTacticParser] def paren := parser! "(" >> nonEmptySeq >> ")" -@[builtinTacticParser] def nestedTacticBlock := parser! "begin " >> seq >> "end" @[builtinTacticParser] def nestedTacticBlockCurly := parser! "{" >> seq >> "}" @[builtinTacticParser] def orelse := tparser!:2 " <|> " >> tacticParser 1 diff --git a/stage0/src/Lean/Parser/Term.lean b/stage0/src/Lean/Parser/Term.lean index b9b119bf20..32d77b8575 100644 --- a/stage0/src/Lean/Parser/Term.lean +++ b/stage0/src/Lean/Parser/Term.lean @@ -94,7 +94,7 @@ def bracketedBinder (requireType := false) := explicitBinder requireType <|> imp def simpleBinder := parser! many1 binderIdent @[builtinTermParser] def «forall» := parser!:leadPrec unicodeSymbol "∀ " "forall " >> many1 (simpleBinder <|> bracketedBinder) >> ", " >> termParser -def funImplicitBinder := try (lookahead ("{" >> many1 binderIdent >> " : ")) >> implicitBinder +def funImplicitBinder := try (lookahead ("{" >> many1 binderIdent >> (" : " <|> "}"))) >> implicitBinder def funBinder : Parser := funImplicitBinder <|> instBinder <|> termParser maxPrec @[builtinTermParser] def «fun» := parser!:maxPrec unicodeSymbol "λ " "fun " >> many1 funBinder >> darrow >> termParser @@ -222,7 +222,6 @@ stx.isAntiquot || stx.isIdent @[builtinTermParser] def seqRight := tparser! infixR " *> " 60 @[builtinTermParser] def map := tparser! infixR " <$> " 100 -@[builtinTermParser] def tacticBlock := parser! "begin " >> Tactic.seq >> "end" @[builtinTermParser] def byTactic := parser!:leadPrec "by " >> Tactic.nonEmptySeq @[builtinTermParser] def funBinder.quot : Parser := parser! "`(funBinder|" >> toggleInsideQuot funBinder >> ")" diff --git a/stage0/src/Lean/PrettyPrinter/Formatter.lean b/stage0/src/Lean/PrettyPrinter/Formatter.lean index 32c8e38e23..5def533fdb 100644 --- a/stage0/src/Lean/PrettyPrinter/Formatter.lean +++ b/stage0/src/Lean/PrettyPrinter/Formatter.lean @@ -230,7 +230,7 @@ p @[combinatorFormatter Lean.Parser.lookahead] def lookahead.formatter (p : Formatter) : Formatter := -p +pure () @[combinatorFormatter Lean.Parser.andthen] def andthen.formatter (p1 p2 : Formatter) : Formatter := diff --git a/stage0/stdlib/CMakeLists.txt b/stage0/stdlib/CMakeLists.txt index 131b884edd..d42bbe45d9 100644 --- a/stage0/stdlib/CMakeLists.txt +++ b/stage0/stdlib/CMakeLists.txt @@ -1 +1 @@ -add_library (stage0 OBJECT ./Init.c ./Init/Coe.c ./Init/Control.c ./Init/Control/Alternative.c ./Init/Control/Applicative.c ./Init/Control/Conditional.c ./Init/Control/EState.c ./Init/Control/Except.c ./Init/Control/Functor.c ./Init/Control/Id.c ./Init/Control/Monad.c ./Init/Control/MonadControl.c ./Init/Control/MonadFunctor.c ./Init/Control/MonadLift.c ./Init/Control/MonadRun.c ./Init/Control/Option.c ./Init/Control/Reader.c ./Init/Control/State.c ./Init/Control/StateRef.c ./Init/Core.c ./Init/Data.c ./Init/Data/Array.c ./Init/Data/Array/Basic.c ./Init/Data/Array/BinSearch.c ./Init/Data/Array/QSort.c ./Init/Data/Basic.c ./Init/Data/ByteArray.c ./Init/Data/ByteArray/Basic.c ./Init/Data/Char.c ./Init/Data/Char/Basic.c ./Init/Data/Fin.c ./Init/Data/Fin/Basic.c ./Init/Data/Float.c ./Init/Data/FloatArray.c ./Init/Data/FloatArray/Basic.c ./Init/Data/Hashable.c ./Init/Data/Int.c ./Init/Data/Int/Basic.c ./Init/Data/List.c ./Init/Data/List/Basic.c ./Init/Data/List/BasicAux.c ./Init/Data/List/Control.c ./Init/Data/List/Instances.c ./Init/Data/Nat.c ./Init/Data/Nat/Basic.c ./Init/Data/Nat/Bitwise.c ./Init/Data/Nat/Control.c ./Init/Data/Nat/Div.c ./Init/Data/Option.c ./Init/Data/Option/Basic.c ./Init/Data/Option/BasicAux.c ./Init/Data/Option/Instances.c ./Init/Data/Random.c ./Init/Data/Repr.c ./Init/Data/String.c ./Init/Data/String/Basic.c ./Init/Data/String/Extra.c ./Init/Data/ToString.c ./Init/Data/UInt.c ./Init/Fix.c ./Init/HasCoe.c ./Init/LeanInit.c ./Init/System.c ./Init/System/FilePath.c ./Init/System/IO.c ./Init/System/IOError.c ./Init/System/Platform.c ./Init/System/ST.c ./Init/Util.c ./Init/WF.c ./Lean.c ./Lean/Attributes.c ./Lean/AuxRecursor.c ./Lean/Class.c ./Lean/Compiler.c ./Lean/Compiler/ClosedTermCache.c ./Lean/Compiler/ConstFolding.c ./Lean/Compiler/ExportAttr.c ./Lean/Compiler/ExternAttr.c ./Lean/Compiler/IR.c ./Lean/Compiler/IR/Basic.c ./Lean/Compiler/IR/Borrow.c ./Lean/Compiler/IR/Boxing.c ./Lean/Compiler/IR/Checker.c ./Lean/Compiler/IR/CompilerM.c ./Lean/Compiler/IR/CtorLayout.c ./Lean/Compiler/IR/ElimDeadBranches.c ./Lean/Compiler/IR/ElimDeadVars.c ./Lean/Compiler/IR/EmitC.c ./Lean/Compiler/IR/EmitUtil.c ./Lean/Compiler/IR/ExpandResetReuse.c ./Lean/Compiler/IR/Format.c ./Lean/Compiler/IR/FreeVars.c ./Lean/Compiler/IR/LiveVars.c ./Lean/Compiler/IR/NormIds.c ./Lean/Compiler/IR/PushProj.c ./Lean/Compiler/IR/RC.c ./Lean/Compiler/IR/ResetReuse.c ./Lean/Compiler/IR/SimpCase.c ./Lean/Compiler/IR/UnboxResult.c ./Lean/Compiler/ImplementedByAttr.c ./Lean/Compiler/InitAttr.c ./Lean/Compiler/InlineAttrs.c ./Lean/Compiler/NameMangling.c ./Lean/Compiler/NeverExtractAttr.c ./Lean/Compiler/Specialize.c ./Lean/Compiler/Util.c ./Lean/CoreM.c ./Lean/Data/Format.c ./Lean/Data/Json.c ./Lean/Data/Json/Basic.c ./Lean/Data/Json/FromToJson.c ./Lean/Data/Json/Parser.c ./Lean/Data/Json/Printer.c ./Lean/Data/KVMap.c ./Lean/Data/LBool.c ./Lean/Data/LOption.c ./Lean/Data/Name.c ./Lean/Data/Occurrences.c ./Lean/Data/Options.c ./Lean/Data/Position.c ./Lean/Data/SMap.c ./Lean/Data/Trie.c ./Lean/Declaration.c ./Lean/Delaborator.c ./Lean/Elab.c ./Lean/Elab/Alias.c ./Lean/Elab/App.c ./Lean/Elab/Attributes.c ./Lean/Elab/Binders.c ./Lean/Elab/BuiltinNotation.c ./Lean/Elab/CollectFVars.c ./Lean/Elab/Command.c ./Lean/Elab/DeclModifiers.c ./Lean/Elab/DeclUtil.c ./Lean/Elab/Declaration.c ./Lean/Elab/Definition.c ./Lean/Elab/DoNotation.c ./Lean/Elab/Exception.c ./Lean/Elab/Frontend.c ./Lean/Elab/Import.c ./Lean/Elab/Inductive.c ./Lean/Elab/LetRec.c ./Lean/Elab/Level.c ./Lean/Elab/Log.c ./Lean/Elab/Match.c ./Lean/Elab/Print.c ./Lean/Elab/Quotation.c ./Lean/Elab/ResolveName.c ./Lean/Elab/StrategyAttrs.c ./Lean/Elab/StructInst.c ./Lean/Elab/Structure.c ./Lean/Elab/Syntax.c ./Lean/Elab/SyntheticMVars.c ./Lean/Elab/Tactic.c ./Lean/Elab/Tactic/Basic.c ./Lean/Elab/Tactic/ElabTerm.c ./Lean/Elab/Tactic/Generalize.c ./Lean/Elab/Tactic/Induction.c ./Lean/Elab/Tactic/Injection.c ./Lean/Elab/Tactic/Match.c ./Lean/Elab/Term.c ./Lean/Elab/Util.c ./Lean/Environment.c ./Lean/Eval.c ./Lean/Exception.c ./Lean/Expr.c ./Lean/HeadIndex.c ./Lean/Hygiene.c ./Lean/InternalExceptionId.c ./Lean/KeyedDeclsAttribute.c ./Lean/Level.c ./Lean/Linter.c ./Lean/LocalContext.c ./Lean/Message.c ./Lean/Meta.c ./Lean/Meta/AbstractMVars.c ./Lean/Meta/AppBuilder.c ./Lean/Meta/Basic.c ./Lean/Meta/Check.c ./Lean/Meta/CollectMVars.c ./Lean/Meta/DiscrTree.c ./Lean/Meta/DiscrTreeTypes.c ./Lean/Meta/EqnCompiler.c ./Lean/Meta/EqnCompiler/CaseArraySizes.c ./Lean/Meta/EqnCompiler/CaseValues.c ./Lean/Meta/EqnCompiler/MVarRenaming.c ./Lean/Meta/EqnCompiler/Match.c ./Lean/Meta/EqnCompiler/MatchPatternAttr.c ./Lean/Meta/Exception.c ./Lean/Meta/ExprDefEq.c ./Lean/Meta/FunInfo.c ./Lean/Meta/GeneralizeTelescope.c ./Lean/Meta/InferType.c ./Lean/Meta/Instances.c ./Lean/Meta/KAbstract.c ./Lean/Meta/LevelDefEq.c ./Lean/Meta/Offset.c ./Lean/Meta/RecursorInfo.c ./Lean/Meta/Reduce.c ./Lean/Meta/ReduceEval.c ./Lean/Meta/SynthInstance.c ./Lean/Meta/Tactic.c ./Lean/Meta/Tactic/Apply.c ./Lean/Meta/Tactic/Assert.c ./Lean/Meta/Tactic/Assumption.c ./Lean/Meta/Tactic/Cases.c ./Lean/Meta/Tactic/Clear.c ./Lean/Meta/Tactic/FVarSubst.c ./Lean/Meta/Tactic/Generalize.c ./Lean/Meta/Tactic/Induction.c ./Lean/Meta/Tactic/Injection.c ./Lean/Meta/Tactic/Intro.c ./Lean/Meta/Tactic/LocalDecl.c ./Lean/Meta/Tactic/Revert.c ./Lean/Meta/Tactic/Rewrite.c ./Lean/Meta/Tactic/Subst.c ./Lean/Meta/Tactic/Target.c ./Lean/Meta/Tactic/Util.c ./Lean/Meta/TransparencyMode.c ./Lean/Meta/WHNF.c ./Lean/MetavarContext.c ./Lean/Modifiers.c ./Lean/MonadEnv.c ./Lean/Parser.c ./Lean/Parser/Basic.c ./Lean/Parser/Command.c ./Lean/Parser/Extension.c ./Lean/Parser/Level.c ./Lean/Parser/Module.c ./Lean/Parser/Syntax.c ./Lean/Parser/Tactic.c ./Lean/Parser/Term.c ./Lean/Parser/Transform.c ./Lean/ParserCompiler.c ./Lean/ParserCompiler/Attribute.c ./Lean/PrettyPrinter.c ./Lean/PrettyPrinter/Backtrack.c ./Lean/PrettyPrinter/Formatter.c ./Lean/PrettyPrinter/Meta.c ./Lean/PrettyPrinter/Parenthesizer.c ./Lean/ProjFns.c ./Lean/ReducibilityAttrs.c ./Lean/Runtime.c ./Lean/Scopes.c ./Lean/Structure.c ./Lean/Syntax.c ./Lean/ToExpr.c ./Lean/Util.c ./Lean/Util/Closure.c ./Lean/Util/CollectFVars.c ./Lean/Util/CollectLevelParams.c ./Lean/Util/CollectMVars.c ./Lean/Util/Constructions.c ./Lean/Util/FindExpr.c ./Lean/Util/FindMVar.c ./Lean/Util/FoldConsts.c ./Lean/Util/MonadCache.c ./Lean/Util/PPExt.c ./Lean/Util/PPGoal.c ./Lean/Util/Path.c ./Lean/Util/Profile.c ./Lean/Util/RecDepth.c ./Lean/Util/Recognizers.c ./Lean/Util/ReplaceExpr.c ./Lean/Util/ReplaceLevel.c ./Lean/Util/Sorry.c ./Lean/Util/Trace.c ./Lean/Util/WHNF.c ./Std.c ./Std/Data.c ./Std/Data/AssocList.c ./Std/Data/BinomialHeap.c ./Std/Data/DList.c ./Std/Data/HashMap.c ./Std/Data/HashSet.c ./Std/Data/PersistentArray.c ./Std/Data/PersistentHashMap.c ./Std/Data/PersistentHashSet.c ./Std/Data/Queue.c ./Std/Data/RBMap.c ./Std/Data/RBTree.c ./Std/Data/Stack.c ./Std/ShareCommon.c ) +add_library (stage0 OBJECT ./Init.c ./Init/Coe.c ./Init/Control.c ./Init/Control/Alternative.c ./Init/Control/Applicative.c ./Init/Control/Conditional.c ./Init/Control/EState.c ./Init/Control/Except.c ./Init/Control/Functor.c ./Init/Control/Id.c ./Init/Control/Monad.c ./Init/Control/MonadControl.c ./Init/Control/MonadFunctor.c ./Init/Control/MonadLift.c ./Init/Control/MonadRun.c ./Init/Control/Option.c ./Init/Control/Reader.c ./Init/Control/State.c ./Init/Control/StateRef.c ./Init/Core.c ./Init/Data.c ./Init/Data/Array.c ./Init/Data/Array/Basic.c ./Init/Data/Array/BinSearch.c ./Init/Data/Array/QSort.c ./Init/Data/Basic.c ./Init/Data/ByteArray.c ./Init/Data/ByteArray/Basic.c ./Init/Data/Char.c ./Init/Data/Char/Basic.c ./Init/Data/Fin.c ./Init/Data/Fin/Basic.c ./Init/Data/Float.c ./Init/Data/FloatArray.c ./Init/Data/FloatArray/Basic.c ./Init/Data/Hashable.c ./Init/Data/Int.c ./Init/Data/Int/Basic.c ./Init/Data/List.c ./Init/Data/List/Basic.c ./Init/Data/List/BasicAux.c ./Init/Data/List/Control.c ./Init/Data/List/Instances.c ./Init/Data/Nat.c ./Init/Data/Nat/Basic.c ./Init/Data/Nat/Bitwise.c ./Init/Data/Nat/Control.c ./Init/Data/Nat/Div.c ./Init/Data/Option.c ./Init/Data/Option/Basic.c ./Init/Data/Option/BasicAux.c ./Init/Data/Option/Instances.c ./Init/Data/Random.c ./Init/Data/Repr.c ./Init/Data/String.c ./Init/Data/String/Basic.c ./Init/Data/String/Extra.c ./Init/Data/ToString.c ./Init/Data/UInt.c ./Init/Fix.c ./Init/HasCoe.c ./Init/LeanInit.c ./Init/System.c ./Init/System/FilePath.c ./Init/System/IO.c ./Init/System/IOError.c ./Init/System/Platform.c ./Init/System/ST.c ./Init/Util.c ./Init/WF.c ./Lean.c ./Lean/Attributes.c ./Lean/AuxRecursor.c ./Lean/Class.c ./Lean/Compiler.c ./Lean/Compiler/ClosedTermCache.c ./Lean/Compiler/ConstFolding.c ./Lean/Compiler/ExportAttr.c ./Lean/Compiler/ExternAttr.c ./Lean/Compiler/IR.c ./Lean/Compiler/IR/Basic.c ./Lean/Compiler/IR/Borrow.c ./Lean/Compiler/IR/Boxing.c ./Lean/Compiler/IR/Checker.c ./Lean/Compiler/IR/CompilerM.c ./Lean/Compiler/IR/CtorLayout.c ./Lean/Compiler/IR/ElimDeadBranches.c ./Lean/Compiler/IR/ElimDeadVars.c ./Lean/Compiler/IR/EmitC.c ./Lean/Compiler/IR/EmitUtil.c ./Lean/Compiler/IR/ExpandResetReuse.c ./Lean/Compiler/IR/Format.c ./Lean/Compiler/IR/FreeVars.c ./Lean/Compiler/IR/LiveVars.c ./Lean/Compiler/IR/NormIds.c ./Lean/Compiler/IR/PushProj.c ./Lean/Compiler/IR/RC.c ./Lean/Compiler/IR/ResetReuse.c ./Lean/Compiler/IR/SimpCase.c ./Lean/Compiler/IR/UnboxResult.c ./Lean/Compiler/ImplementedByAttr.c ./Lean/Compiler/InitAttr.c ./Lean/Compiler/InlineAttrs.c ./Lean/Compiler/NameMangling.c ./Lean/Compiler/NeverExtractAttr.c ./Lean/Compiler/Specialize.c ./Lean/Compiler/Util.c ./Lean/CoreM.c ./Lean/Data/Format.c ./Lean/Data/Json.c ./Lean/Data/Json/Basic.c ./Lean/Data/Json/FromToJson.c ./Lean/Data/Json/Parser.c ./Lean/Data/Json/Printer.c ./Lean/Data/KVMap.c ./Lean/Data/LBool.c ./Lean/Data/LOption.c ./Lean/Data/Name.c ./Lean/Data/Occurrences.c ./Lean/Data/Options.c ./Lean/Data/Position.c ./Lean/Data/SMap.c ./Lean/Data/Trie.c ./Lean/Declaration.c ./Lean/Delaborator.c ./Lean/Elab.c ./Lean/Elab/Alias.c ./Lean/Elab/App.c ./Lean/Elab/Attributes.c ./Lean/Elab/Binders.c ./Lean/Elab/BuiltinNotation.c ./Lean/Elab/CollectFVars.c ./Lean/Elab/Command.c ./Lean/Elab/DeclModifiers.c ./Lean/Elab/DeclUtil.c ./Lean/Elab/Declaration.c ./Lean/Elab/Definition.c ./Lean/Elab/DoNotation.c ./Lean/Elab/Exception.c ./Lean/Elab/Frontend.c ./Lean/Elab/Import.c ./Lean/Elab/Inductive.c ./Lean/Elab/LetRec.c ./Lean/Elab/Level.c ./Lean/Elab/Log.c ./Lean/Elab/Match.c ./Lean/Elab/Print.c ./Lean/Elab/Quotation.c ./Lean/Elab/ResolveName.c ./Lean/Elab/StrategyAttrs.c ./Lean/Elab/StructInst.c ./Lean/Elab/Structure.c ./Lean/Elab/Syntax.c ./Lean/Elab/SyntheticMVars.c ./Lean/Elab/Tactic.c ./Lean/Elab/Tactic/Basic.c ./Lean/Elab/Tactic/Binders.c ./Lean/Elab/Tactic/ElabTerm.c ./Lean/Elab/Tactic/Generalize.c ./Lean/Elab/Tactic/Induction.c ./Lean/Elab/Tactic/Injection.c ./Lean/Elab/Tactic/Match.c ./Lean/Elab/Term.c ./Lean/Elab/Util.c ./Lean/Environment.c ./Lean/Eval.c ./Lean/Exception.c ./Lean/Expr.c ./Lean/HeadIndex.c ./Lean/Hygiene.c ./Lean/InternalExceptionId.c ./Lean/KeyedDeclsAttribute.c ./Lean/Level.c ./Lean/Linter.c ./Lean/LocalContext.c ./Lean/Message.c ./Lean/Meta.c ./Lean/Meta/AbstractMVars.c ./Lean/Meta/AppBuilder.c ./Lean/Meta/Basic.c ./Lean/Meta/Check.c ./Lean/Meta/CollectMVars.c ./Lean/Meta/DiscrTree.c ./Lean/Meta/DiscrTreeTypes.c ./Lean/Meta/EqnCompiler.c ./Lean/Meta/EqnCompiler/CaseArraySizes.c ./Lean/Meta/EqnCompiler/CaseValues.c ./Lean/Meta/EqnCompiler/MVarRenaming.c ./Lean/Meta/EqnCompiler/Match.c ./Lean/Meta/EqnCompiler/MatchPatternAttr.c ./Lean/Meta/Exception.c ./Lean/Meta/ExprDefEq.c ./Lean/Meta/FunInfo.c ./Lean/Meta/GeneralizeTelescope.c ./Lean/Meta/InferType.c ./Lean/Meta/Instances.c ./Lean/Meta/KAbstract.c ./Lean/Meta/LevelDefEq.c ./Lean/Meta/Offset.c ./Lean/Meta/RecursorInfo.c ./Lean/Meta/Reduce.c ./Lean/Meta/ReduceEval.c ./Lean/Meta/SynthInstance.c ./Lean/Meta/Tactic.c ./Lean/Meta/Tactic/Apply.c ./Lean/Meta/Tactic/Assert.c ./Lean/Meta/Tactic/Assumption.c ./Lean/Meta/Tactic/Cases.c ./Lean/Meta/Tactic/Clear.c ./Lean/Meta/Tactic/FVarSubst.c ./Lean/Meta/Tactic/Generalize.c ./Lean/Meta/Tactic/Induction.c ./Lean/Meta/Tactic/Injection.c ./Lean/Meta/Tactic/Intro.c ./Lean/Meta/Tactic/LocalDecl.c ./Lean/Meta/Tactic/Revert.c ./Lean/Meta/Tactic/Rewrite.c ./Lean/Meta/Tactic/Subst.c ./Lean/Meta/Tactic/Target.c ./Lean/Meta/Tactic/Util.c ./Lean/Meta/TransparencyMode.c ./Lean/Meta/WHNF.c ./Lean/MetavarContext.c ./Lean/Modifiers.c ./Lean/MonadEnv.c ./Lean/Parser.c ./Lean/Parser/Basic.c ./Lean/Parser/Command.c ./Lean/Parser/Extension.c ./Lean/Parser/Level.c ./Lean/Parser/Module.c ./Lean/Parser/Syntax.c ./Lean/Parser/Tactic.c ./Lean/Parser/Term.c ./Lean/Parser/Transform.c ./Lean/ParserCompiler.c ./Lean/ParserCompiler/Attribute.c ./Lean/PrettyPrinter.c ./Lean/PrettyPrinter/Backtrack.c ./Lean/PrettyPrinter/Formatter.c ./Lean/PrettyPrinter/Meta.c ./Lean/PrettyPrinter/Parenthesizer.c ./Lean/ProjFns.c ./Lean/ReducibilityAttrs.c ./Lean/Runtime.c ./Lean/Scopes.c ./Lean/Structure.c ./Lean/Syntax.c ./Lean/ToExpr.c ./Lean/Util.c ./Lean/Util/Closure.c ./Lean/Util/CollectFVars.c ./Lean/Util/CollectLevelParams.c ./Lean/Util/CollectMVars.c ./Lean/Util/Constructions.c ./Lean/Util/FindExpr.c ./Lean/Util/FindMVar.c ./Lean/Util/FoldConsts.c ./Lean/Util/MonadCache.c ./Lean/Util/PPExt.c ./Lean/Util/PPGoal.c ./Lean/Util/Path.c ./Lean/Util/Profile.c ./Lean/Util/RecDepth.c ./Lean/Util/Recognizers.c ./Lean/Util/ReplaceExpr.c ./Lean/Util/ReplaceLevel.c ./Lean/Util/Sorry.c ./Lean/Util/Trace.c ./Lean/Util/WHNF.c ./Std.c ./Std/Data.c ./Std/Data/AssocList.c ./Std/Data/BinomialHeap.c ./Std/Data/DList.c ./Std/Data/HashMap.c ./Std/Data/HashSet.c ./Std/Data/PersistentArray.c ./Std/Data/PersistentHashMap.c ./Std/Data/PersistentHashSet.c ./Std/Data/Queue.c ./Std/Data/RBMap.c ./Std/Data/RBTree.c ./Std/Data/Stack.c ./Std/ShareCommon.c ) diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index db9b98affa..970182655c 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -91,6 +91,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabApp(lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent(lean_object*); lean_object* l___private_Lean_Elab_App_23__toMessageData(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__20; lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__8; uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); lean_object* lean_local_ctx_find_from_user_name(lean_object*, lean_object*); @@ -196,13 +197,13 @@ lean_object* l_Lean_Meta_whnfForall___at_Lean_Elab_Term_useImplicitLambda_x3f___ lean_object* l___private_Lean_Elab_App_21__elabAppFn___main___closed__11; lean_object* l___private_Lean_Elab_App_4__tryCoeFun___closed__5; lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_copyInfo(lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorContext_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__14; lean_object* l_Lean_Elab_Term_addNamedArg___closed__3; lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__25; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Syntax_replaceInfo___main(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_11__elabAppArgs___closed__7; lean_object* l___private_Lean_Elab_App_16__mkBaseProjections___closed__3; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); @@ -211,6 +212,7 @@ extern lean_object* l_Lean_getConstInfo___rarg___lambda__1___closed__5; lean_object* l_Lean_Elab_Term_NamedArg_inhabited___closed__1; lean_object* l_Lean_Elab_Term_Arg_hasToString(lean_object*); lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__8; +extern lean_object* l_Std_PersistentArray_Stats_toString___closed__4; lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_App_17__addLValArg___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); @@ -288,6 +290,7 @@ lean_object* l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_10__elabAppAr lean_object* l_Lean_Name_replacePrefix___main(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_1__ensureArgType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; lean_object* l___private_Lean_Elab_App_17__addLValArg___main___closed__12; lean_object* l_Lean_Elab_Term_mkConst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -299,7 +302,6 @@ extern lean_object* l_Lean_Elab_Term_termElabAttribute; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux___main(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Syntax_getHeadInfo___main(lean_object*); extern lean_object* l_Lean_mkAppStx___closed__3; lean_object* l_Lean_Meta_getLevel___at_Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WHNF_unfoldDefinitionAux___at___private_Lean_Meta_WHNF_2__unfoldDefinitionImp_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -320,6 +322,7 @@ lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__1; lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__16; lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__2; lean_object* l___private_Lean_Elab_App_4__tryCoeFun___closed__8; +extern lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__4; extern lean_object* l_Lean_Elab_postponeExceptionId; lean_object* l_Lean_Expr_getRevArg_x21___main(lean_object*, lean_object*); lean_object* l___private_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*, lean_object*, lean_object*, lean_object*); @@ -410,7 +413,6 @@ lean_object* l_Lean_Elab_Term_Arg_inhabited___closed__1; extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; extern lean_object* l_Lean_mkHole___closed__2; lean_object* l_Lean_Elab_logException___at___private_Lean_Elab_Term_10__exceptionToSorry___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__2; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_17__addLValArg___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType___at_Lean_Elab_Term_tryLiftAndCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -4255,7 +4257,7 @@ lean_object* _init_l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed_ _start: { lean_object* x_1; -x_1 = lean_mk_string("begin"); +x_1 = lean_mk_string("by"); return x_1; } } @@ -4303,7 +4305,7 @@ lean_object* _init_l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed_ _start: { lean_object* x_1; -x_1 = lean_mk_string("end"); +x_1 = lean_mk_string("nestedTacticBlockCurly"); return x_1; } } @@ -4311,8 +4313,18 @@ lean_object* _init_l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_SourceInfo_inhabited___closed__1; +x_1 = l___regBuiltin_Lean_Elab_Term_Quotation_elabTacticQuot___closed__1; x_2 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__18; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__20() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_SourceInfo_inhabited___closed__1; +x_2 = l_Std_PersistentArray_Stats_toString___closed__4; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -4854,7 +4866,7 @@ return x_207; } else { -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; 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; x_208 = lean_ctor_get(x_203, 0); lean_inc(x_208); lean_dec(x_203); @@ -4880,29 +4892,40 @@ x_219 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; x_220 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_220, 0, x_219); lean_ctor_set(x_220, 1, x_218); -x_221 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_221 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__4; x_222 = lean_array_push(x_221, x_220); -x_223 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; +x_223 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__20; x_224 = lean_array_push(x_222, x_223); -x_225 = l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__2; +x_225 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; x_226 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_226, 0, x_225); lean_ctor_set(x_226, 1, x_224); -x_227 = l_Lean_Syntax_getHeadInfo___main(x_11); +x_227 = lean_array_push(x_214, x_226); +x_228 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_228, 0, x_216); +lean_ctor_set(x_228, 1, x_227); +x_229 = lean_array_push(x_214, x_228); +x_230 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_230, 0, x_219); +lean_ctor_set(x_230, 1, x_229); +x_231 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_232 = lean_array_push(x_231, x_230); +x_233 = l___regBuiltin_Lean_Elab_Term_elabByTactic___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 = l_Lean_Syntax_copyInfo(x_234, x_11); lean_dec(x_11); -x_228 = l_Lean_Expr_getAppNumArgsAux___main(x_113, x_116); -x_229 = lean_nat_sub(x_228, x_116); -lean_dec(x_228); -x_230 = lean_unsigned_to_nat(1u); -x_231 = lean_nat_sub(x_229, x_230); -lean_dec(x_229); -x_232 = l_Lean_Expr_getRevArg_x21___main(x_113, x_231); +x_236 = l_Lean_Expr_getAppNumArgsAux___main(x_113, x_116); +x_237 = lean_nat_sub(x_236, x_116); +lean_dec(x_236); +x_238 = lean_unsigned_to_nat(1u); +x_239 = lean_nat_sub(x_237, x_238); +lean_dec(x_237); +x_240 = l_Lean_Expr_getRevArg_x21___main(x_113, x_239); lean_dec(x_113); -if (lean_obj_tag(x_227) == 0) -{ -lean_object* x_233; lean_object* x_234; -x_233 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_233, 0, x_226); +x_241 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_241, 0, x_235); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -4910,95 +4933,28 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_234 = l___private_Lean_Elab_App_2__elabArg(x_2, x_233, x_232, x_4, x_5, x_6, x_7, x_8, x_9, x_212); -if (lean_obj_tag(x_234) == 0) +x_242 = l___private_Lean_Elab_App_2__elabArg(x_2, x_241, x_240, x_4, x_5, x_6, x_7, x_8, x_9, x_212); +if (lean_obj_tag(x_242) == 0) { -lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; -x_235 = lean_ctor_get(x_234, 0); -lean_inc(x_235); -x_236 = lean_ctor_get(x_234, 1); -lean_inc(x_236); -lean_dec(x_234); -lean_inc(x_235); -x_237 = l_Lean_mkApp(x_2, x_235); -x_238 = lean_expr_instantiate1(x_114, x_235); -lean_dec(x_235); -lean_dec(x_114); -x_2 = x_237; -x_3 = x_238; -x_10 = x_236; -goto _start; -} -else -{ -uint8_t x_240; -lean_dec(x_1); -lean_dec(x_114); -lean_dec(x_8); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_240 = !lean_is_exclusive(x_234); -if (x_240 == 0) -{ -return x_234; -} -else -{ -lean_object* x_241; lean_object* x_242; lean_object* x_243; -x_241 = lean_ctor_get(x_234, 0); -x_242 = lean_ctor_get(x_234, 1); -lean_inc(x_242); -lean_inc(x_241); -lean_dec(x_234); -x_243 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_243, 0, x_241); -lean_ctor_set(x_243, 1, x_242); -return x_243; -} -} -} -else -{ -lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; -x_244 = lean_ctor_get(x_227, 0); +lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_243 = lean_ctor_get(x_242, 0); +lean_inc(x_243); +x_244 = lean_ctor_get(x_242, 1); lean_inc(x_244); -lean_dec(x_227); -x_245 = l_Lean_Syntax_replaceInfo___main(x_244, x_226); -x_246 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_246, 0, x_245); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_247 = l___private_Lean_Elab_App_2__elabArg(x_2, x_246, x_232, x_4, x_5, x_6, x_7, x_8, x_9, x_212); -if (lean_obj_tag(x_247) == 0) -{ -lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; -x_248 = lean_ctor_get(x_247, 0); -lean_inc(x_248); -x_249 = lean_ctor_get(x_247, 1); -lean_inc(x_249); -lean_dec(x_247); -lean_inc(x_248); -x_250 = l_Lean_mkApp(x_2, x_248); -x_251 = lean_expr_instantiate1(x_114, x_248); -lean_dec(x_248); +lean_dec(x_242); +lean_inc(x_243); +x_245 = l_Lean_mkApp(x_2, x_243); +x_246 = lean_expr_instantiate1(x_114, x_243); +lean_dec(x_243); lean_dec(x_114); -x_2 = x_250; -x_3 = x_251; -x_10 = x_249; +x_2 = x_245; +x_3 = x_246; +x_10 = x_244; goto _start; } else { -uint8_t x_253; +uint8_t x_248; lean_dec(x_1); lean_dec(x_114); lean_dec(x_8); @@ -5008,51 +4964,50 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_253 = !lean_is_exclusive(x_247); -if (x_253 == 0) +x_248 = !lean_is_exclusive(x_242); +if (x_248 == 0) { -return x_247; +return x_242; } else { -lean_object* x_254; lean_object* x_255; lean_object* x_256; -x_254 = lean_ctor_get(x_247, 0); -x_255 = lean_ctor_get(x_247, 1); -lean_inc(x_255); -lean_inc(x_254); -lean_dec(x_247); -x_256 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_256, 0, x_254); -lean_ctor_set(x_256, 1, x_255); -return x_256; -} +lean_object* x_249; lean_object* x_250; lean_object* x_251; +x_249 = lean_ctor_get(x_242, 0); +x_250 = lean_ctor_get(x_242, 1); +lean_inc(x_250); +lean_inc(x_249); +lean_dec(x_242); +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_257; lean_object* x_258; +lean_object* x_252; lean_object* x_253; lean_dec(x_197); lean_dec(x_1); lean_dec(x_114); lean_dec(x_113); lean_dec(x_11); lean_dec(x_2); -x_257 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; -x_258 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_257, x_4, x_5, x_6, x_7, x_8, x_9, x_129); +x_252 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_253 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_252, x_4, x_5, x_6, x_7, x_8, x_9, x_129); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_258; +return x_253; } } } else { -lean_object* x_259; lean_object* x_260; lean_object* x_261; +lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_dec(x_113); lean_dec(x_112); lean_dec(x_22); @@ -5062,30 +5017,30 @@ lean_dec(x_16); lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); -x_259 = lean_ctor_get(x_133, 0); -lean_inc(x_259); +x_254 = lean_ctor_get(x_133, 0); +lean_inc(x_254); lean_dec(x_133); -lean_inc(x_259); -x_260 = l_Lean_mkApp(x_2, x_259); -x_261 = lean_expr_instantiate1(x_114, x_259); -lean_dec(x_259); +lean_inc(x_254); +x_255 = l_Lean_mkApp(x_2, x_254); +x_256 = lean_expr_instantiate1(x_114, x_254); +lean_dec(x_254); lean_dec(x_114); -x_2 = x_260; -x_3 = x_261; +x_2 = x_255; +x_3 = x_256; x_10 = x_129; goto _start; } } else { -uint8_t x_263; +uint8_t x_258; lean_dec(x_1); lean_dec(x_114); lean_dec(x_113); -x_263 = l_Array_isEmpty___rarg(x_16); -if (x_263 == 0) +x_258 = l_Array_isEmpty___rarg(x_16); +if (x_258 == 0) { -lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; +lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_dec(x_22); lean_dec(x_19); lean_dec(x_17); @@ -5093,84 +5048,162 @@ lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_264 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_264, 0, x_112); -x_265 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_266 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_266, 0, x_265); -lean_ctor_set(x_266, 1, x_264); -x_267 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_268 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_268, 0, x_266); -lean_ctor_set(x_268, 1, x_267); -x_269 = x_16; -x_270 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_269); -x_271 = x_270; -x_272 = l_Array_toList___rarg(x_271); -lean_dec(x_271); -x_273 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_272); -x_274 = l_Array_HasRepr___rarg___closed__1; -x_275 = lean_string_append(x_274, x_273); -lean_dec(x_273); -x_276 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_276, 0, x_275); -x_277 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_277, 0, x_276); -x_278 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_278, 0, x_268); -lean_ctor_set(x_278, 1, x_277); -x_279 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_278, x_4, x_5, x_6, x_7, x_8, x_9, x_129); +x_259 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_259, 0, x_112); +x_260 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_261 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_261, 0, x_260); +lean_ctor_set(x_261, 1, x_259); +x_262 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_263 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_263, 0, x_261); +lean_ctor_set(x_263, 1, x_262); +x_264 = x_16; +x_265 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_264); +x_266 = x_265; +x_267 = l_Array_toList___rarg(x_266); +lean_dec(x_266); +x_268 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_267); +x_269 = l_Array_HasRepr___rarg___closed__1; +x_270 = lean_string_append(x_269, x_268); +lean_dec(x_268); +x_271 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_271, 0, x_270); +x_272 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_272, 0, x_271); +x_273 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_273, 0, x_263); +lean_ctor_set(x_273, 1, x_272); +x_274 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_273, x_4, x_5, x_6, x_7, x_8, x_9, x_129); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_279; +return x_274; } else { -lean_object* x_280; uint8_t x_281; +lean_object* x_275; uint8_t x_276; lean_dec(x_112); lean_dec(x_16); -x_280 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_281 = l_Lean_checkTraceOption(x_22, x_280); +x_275 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_276 = l_Lean_checkTraceOption(x_22, x_275); lean_dec(x_22); +if (x_276 == 0) +{ +lean_object* x_277; +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_277 = x_129; +goto block_289; +} +else +{ +lean_object* x_290; lean_object* x_291; +x_290 = lean_ctor_get(x_13, 0); +lean_inc(x_290); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_291 = l_Lean_Elab_Term_isDefEq(x_290, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_129); +if (lean_obj_tag(x_291) == 0) +{ +lean_object* x_292; +x_292 = lean_ctor_get(x_291, 1); +lean_inc(x_292); +lean_dec(x_291); +x_277 = x_292; +goto block_289; +} +else +{ +uint8_t x_293; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_293 = !lean_is_exclusive(x_291); +if (x_293 == 0) +{ +return x_291; +} +else +{ +lean_object* x_294; lean_object* x_295; lean_object* x_296; +x_294 = lean_ctor_get(x_291, 0); +x_295 = lean_ctor_get(x_291, 1); +lean_inc(x_295); +lean_inc(x_294); +lean_dec(x_291); +x_296 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_296, 0, x_294); +lean_ctor_set(x_296, 1, x_295); +return x_296; +} +} +} +block_289: +{ +lean_object* x_278; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_278 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_277); +lean_dec(x_17); +if (lean_obj_tag(x_278) == 0) +{ +lean_object* x_279; lean_object* x_280; uint8_t x_281; +x_279 = lean_ctor_get(x_278, 1); +lean_inc(x_279); +lean_dec(x_278); +lean_inc(x_2); +x_280 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__7(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_279); +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_19); +x_281 = !lean_is_exclusive(x_280); if (x_281 == 0) { lean_object* x_282; -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_282 = x_129; -goto block_294; +x_282 = lean_ctor_get(x_280, 0); +lean_dec(x_282); +lean_ctor_set(x_280, 0, x_2); +return x_280; } else { -lean_object* x_295; lean_object* x_296; -x_295 = lean_ctor_get(x_13, 0); -lean_inc(x_295); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_296 = l_Lean_Elab_Term_isDefEq(x_295, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_129); -if (lean_obj_tag(x_296) == 0) -{ -lean_object* x_297; -x_297 = lean_ctor_get(x_296, 1); -lean_inc(x_297); -lean_dec(x_296); -x_282 = x_297; -goto block_294; +lean_object* x_283; lean_object* x_284; +x_283 = lean_ctor_get(x_280, 1); +lean_inc(x_283); +lean_dec(x_280); +x_284 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_284, 0, x_2); +lean_ctor_set(x_284, 1, x_283); +return x_284; +} } else { -uint8_t x_298; +uint8_t x_285; lean_dec(x_8); lean_dec(x_19); -lean_dec(x_17); lean_dec(x_11); lean_dec(x_9); lean_dec(x_7); @@ -5178,145 +5211,67 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_298 = !lean_is_exclusive(x_296); -if (x_298 == 0) +x_285 = !lean_is_exclusive(x_278); +if (x_285 == 0) { -return x_296; +return x_278; } else { -lean_object* x_299; lean_object* x_300; lean_object* x_301; -x_299 = lean_ctor_get(x_296, 0); -x_300 = lean_ctor_get(x_296, 1); -lean_inc(x_300); +lean_object* x_286; lean_object* x_287; lean_object* x_288; +x_286 = lean_ctor_get(x_278, 0); +x_287 = lean_ctor_get(x_278, 1); +lean_inc(x_287); +lean_inc(x_286); +lean_dec(x_278); +x_288 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_288, 0, x_286); +lean_ctor_set(x_288, 1, x_287); +return x_288; +} +} +} +} +else +{ +lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; +lean_inc(x_2); +x_297 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_297, 0, x_2); +x_298 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_275, x_297, x_4, x_5, x_6, x_7, x_8, x_9, x_129); +x_299 = lean_ctor_get(x_298, 1); lean_inc(x_299); -lean_dec(x_296); -x_301 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_301, 0, x_299); -lean_ctor_set(x_301, 1, x_300); -return x_301; -} -} -} -block_294: -{ -lean_object* x_283; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_283 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_282); -lean_dec(x_17); -if (lean_obj_tag(x_283) == 0) -{ -lean_object* x_284; lean_object* x_285; uint8_t x_286; -x_284 = lean_ctor_get(x_283, 1); -lean_inc(x_284); -lean_dec(x_283); -lean_inc(x_2); -x_285 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__7(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_284); -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_19); -x_286 = !lean_is_exclusive(x_285); -if (x_286 == 0) -{ -lean_object* x_287; -x_287 = lean_ctor_get(x_285, 0); -lean_dec(x_287); -lean_ctor_set(x_285, 0, x_2); -return x_285; -} -else -{ -lean_object* x_288; lean_object* x_289; -x_288 = lean_ctor_get(x_285, 1); -lean_inc(x_288); -lean_dec(x_285); -x_289 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_289, 0, x_2); -lean_ctor_set(x_289, 1, x_288); -return x_289; -} -} -else -{ -uint8_t x_290; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_290 = !lean_is_exclusive(x_283); -if (x_290 == 0) -{ -return x_283; -} -else -{ -lean_object* x_291; lean_object* x_292; lean_object* x_293; -x_291 = lean_ctor_get(x_283, 0); -x_292 = lean_ctor_get(x_283, 1); -lean_inc(x_292); -lean_inc(x_291); -lean_dec(x_283); -x_293 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_293, 0, x_291); -lean_ctor_set(x_293, 1, x_292); -return x_293; -} -} -} -} -else -{ -lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; -lean_inc(x_2); -x_302 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_302, 0, x_2); -x_303 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_280, x_302, x_4, x_5, x_6, x_7, x_8, x_9, x_129); -x_304 = lean_ctor_get(x_303, 1); -lean_inc(x_304); -lean_dec(x_303); +lean_dec(x_298); if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_305 = x_304; -goto block_317; +x_300 = x_299; +goto block_312; } else { -lean_object* x_318; lean_object* x_319; -x_318 = lean_ctor_get(x_13, 0); -lean_inc(x_318); +lean_object* x_313; lean_object* x_314; +x_313 = lean_ctor_get(x_13, 0); +lean_inc(x_313); lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_319 = l_Lean_Elab_Term_isDefEq(x_318, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_304); -if (lean_obj_tag(x_319) == 0) +x_314 = l_Lean_Elab_Term_isDefEq(x_313, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_299); +if (lean_obj_tag(x_314) == 0) { -lean_object* x_320; -x_320 = lean_ctor_get(x_319, 1); -lean_inc(x_320); -lean_dec(x_319); -x_305 = x_320; -goto block_317; +lean_object* x_315; +x_315 = lean_ctor_get(x_314, 1); +lean_inc(x_315); +lean_dec(x_314); +x_300 = x_315; +goto block_312; } else { -uint8_t x_321; +uint8_t x_316; lean_dec(x_8); lean_dec(x_19); lean_dec(x_17); @@ -5327,44 +5282,44 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_321 = !lean_is_exclusive(x_319); -if (x_321 == 0) +x_316 = !lean_is_exclusive(x_314); +if (x_316 == 0) { +return x_314; +} +else +{ +lean_object* x_317; lean_object* x_318; lean_object* x_319; +x_317 = lean_ctor_get(x_314, 0); +x_318 = lean_ctor_get(x_314, 1); +lean_inc(x_318); +lean_inc(x_317); +lean_dec(x_314); +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 +} +} +block_312: { -lean_object* x_322; lean_object* x_323; lean_object* x_324; -x_322 = lean_ctor_get(x_319, 0); -x_323 = lean_ctor_get(x_319, 1); -lean_inc(x_323); -lean_inc(x_322); -lean_dec(x_319); -x_324 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_324, 0, x_322); -lean_ctor_set(x_324, 1, x_323); -return x_324; -} -} -} -block_317: -{ -lean_object* x_306; +lean_object* x_301; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_306 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_305); +x_301 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_300); lean_dec(x_17); -if (lean_obj_tag(x_306) == 0) +if (lean_obj_tag(x_301) == 0) { -lean_object* x_307; lean_object* x_308; uint8_t x_309; -x_307 = lean_ctor_get(x_306, 1); -lean_inc(x_307); -lean_dec(x_306); +lean_object* x_302; lean_object* x_303; uint8_t x_304; +x_302 = lean_ctor_get(x_301, 1); +lean_inc(x_302); +lean_dec(x_301); lean_inc(x_2); -x_308 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__8(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_307); +x_303 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__8(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_302); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5372,30 +5327,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); -x_309 = !lean_is_exclusive(x_308); -if (x_309 == 0) +x_304 = !lean_is_exclusive(x_303); +if (x_304 == 0) { -lean_object* x_310; -x_310 = lean_ctor_get(x_308, 0); -lean_dec(x_310); -lean_ctor_set(x_308, 0, x_2); -return x_308; +lean_object* x_305; +x_305 = lean_ctor_get(x_303, 0); +lean_dec(x_305); +lean_ctor_set(x_303, 0, x_2); +return x_303; } else { -lean_object* x_311; lean_object* x_312; -x_311 = lean_ctor_get(x_308, 1); -lean_inc(x_311); -lean_dec(x_308); -x_312 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_312, 0, x_2); -lean_ctor_set(x_312, 1, x_311); -return x_312; +lean_object* x_306; lean_object* x_307; +x_306 = lean_ctor_get(x_303, 1); +lean_inc(x_306); +lean_dec(x_303); +x_307 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_307, 0, x_2); +lean_ctor_set(x_307, 1, x_306); +return x_307; } } else { -uint8_t x_313; +uint8_t x_308; lean_dec(x_8); lean_dec(x_19); lean_dec(x_11); @@ -5405,23 +5360,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_313 = !lean_is_exclusive(x_306); -if (x_313 == 0) +x_308 = !lean_is_exclusive(x_301); +if (x_308 == 0) { -return x_306; +return x_301; } else { -lean_object* x_314; lean_object* x_315; lean_object* x_316; -x_314 = lean_ctor_get(x_306, 0); -x_315 = lean_ctor_get(x_306, 1); -lean_inc(x_315); -lean_inc(x_314); -lean_dec(x_306); -x_316 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_316, 0, x_314); -lean_ctor_set(x_316, 1, x_315); -return x_316; +lean_object* x_309; lean_object* x_310; lean_object* x_311; +x_309 = lean_ctor_get(x_301, 0); +x_310 = lean_ctor_get(x_301, 1); +lean_inc(x_310); +lean_inc(x_309); +lean_dec(x_301); +x_311 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_311, 0, x_309); +lean_ctor_set(x_311, 1, x_310); +return x_311; } } } @@ -5431,12 +5386,12 @@ return x_316; } else { -lean_object* x_325; lean_object* x_326; +lean_object* x_320; lean_object* x_321; lean_dec(x_1); lean_dec(x_112); lean_dec(x_22); lean_dec(x_3); -x_325 = lean_array_fget(x_12, x_15); +x_320 = lean_array_fget(x_12, x_15); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -5444,43 +5399,43 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_326 = l___private_Lean_Elab_App_2__elabArg(x_2, x_325, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_129); -if (lean_obj_tag(x_326) == 0) +x_321 = l___private_Lean_Elab_App_2__elabArg(x_2, x_320, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_129); +if (lean_obj_tag(x_321) == 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; -x_327 = lean_ctor_get(x_326, 0); -lean_inc(x_327); -x_328 = lean_ctor_get(x_326, 1); -lean_inc(x_328); -lean_dec(x_326); -x_329 = lean_unsigned_to_nat(1u); -x_330 = lean_nat_add(x_15, x_329); +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; +x_322 = lean_ctor_get(x_321, 0); +lean_inc(x_322); +x_323 = lean_ctor_get(x_321, 1); +lean_inc(x_323); +lean_dec(x_321); +x_324 = lean_unsigned_to_nat(1u); +x_325 = lean_nat_add(x_15, x_324); lean_dec(x_15); -x_331 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_331, 0, x_11); -lean_ctor_set(x_331, 1, x_12); -lean_ctor_set(x_331, 2, x_13); -lean_ctor_set(x_331, 3, x_330); -lean_ctor_set(x_331, 4, x_16); -lean_ctor_set(x_331, 5, x_17); -lean_ctor_set(x_331, 6, x_18); -lean_ctor_set(x_331, 7, x_19); -lean_ctor_set_uint8(x_331, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_331, sizeof(void*)*8 + 1, x_130); -lean_inc(x_327); -x_332 = l_Lean_mkApp(x_2, x_327); -x_333 = lean_expr_instantiate1(x_114, x_327); -lean_dec(x_327); +x_326 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_326, 0, x_11); +lean_ctor_set(x_326, 1, x_12); +lean_ctor_set(x_326, 2, x_13); +lean_ctor_set(x_326, 3, x_325); +lean_ctor_set(x_326, 4, x_16); +lean_ctor_set(x_326, 5, x_17); +lean_ctor_set(x_326, 6, x_18); +lean_ctor_set(x_326, 7, x_19); +lean_ctor_set_uint8(x_326, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_326, sizeof(void*)*8 + 1, x_130); +lean_inc(x_322); +x_327 = l_Lean_mkApp(x_2, x_322); +x_328 = lean_expr_instantiate1(x_114, x_322); +lean_dec(x_322); lean_dec(x_114); -x_1 = x_331; -x_2 = x_332; -x_3 = x_333; -x_10 = x_328; +x_1 = x_326; +x_2 = x_327; +x_3 = x_328; +x_10 = x_323; goto _start; } else { -uint8_t x_335; +uint8_t x_330; lean_dec(x_114); lean_dec(x_8); lean_dec(x_19); @@ -5497,30 +5452,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_335 = !lean_is_exclusive(x_326); -if (x_335 == 0) +x_330 = !lean_is_exclusive(x_321); +if (x_330 == 0) { -return x_326; +return x_321; } else { -lean_object* x_336; lean_object* x_337; lean_object* x_338; -x_336 = lean_ctor_get(x_326, 0); -x_337 = lean_ctor_get(x_326, 1); -lean_inc(x_337); -lean_inc(x_336); -lean_dec(x_326); -x_338 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_338, 0, x_336); -lean_ctor_set(x_338, 1, x_337); -return x_338; +lean_object* x_331; lean_object* x_332; lean_object* x_333; +x_331 = lean_ctor_get(x_321, 0); +x_332 = lean_ctor_get(x_321, 1); +lean_inc(x_332); +lean_inc(x_331); +lean_dec(x_321); +x_333 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_333, 0, x_331); +lean_ctor_set(x_333, 1, x_332); +return x_333; } } } } else { -uint8_t x_339; +uint8_t x_334; lean_free_object(x_1); lean_dec(x_114); lean_dec(x_113); @@ -5542,23 +5497,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_339 = !lean_is_exclusive(x_119); -if (x_339 == 0) +x_334 = !lean_is_exclusive(x_119); +if (x_334 == 0) { return x_119; } else { -lean_object* x_340; lean_object* x_341; lean_object* x_342; -x_340 = lean_ctor_get(x_119, 0); -x_341 = lean_ctor_get(x_119, 1); -lean_inc(x_341); -lean_inc(x_340); +lean_object* x_335; lean_object* x_336; lean_object* x_337; +x_335 = lean_ctor_get(x_119, 0); +x_336 = lean_ctor_get(x_119, 1); +lean_inc(x_336); +lean_inc(x_335); lean_dec(x_119); -x_342 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_342, 0, x_340); -lean_ctor_set(x_342, 1, x_341); -return x_342; +x_337 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_337, 0, x_335); +lean_ctor_set(x_337, 1, x_336); +return x_337; } } } @@ -5567,11 +5522,11 @@ else lean_dec(x_1); if (lean_obj_tag(x_119) == 0) { -lean_object* x_343; uint8_t x_344; lean_object* x_345; lean_object* x_346; uint8_t x_347; -x_343 = lean_ctor_get(x_119, 1); -lean_inc(x_343); +lean_object* x_338; uint8_t x_339; lean_object* x_340; lean_object* x_341; uint8_t x_342; +x_338 = lean_ctor_get(x_119, 1); +lean_inc(x_338); lean_dec(x_119); -x_344 = 1; +x_339 = 1; lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); @@ -5580,43 +5535,43 @@ lean_inc(x_15); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_345 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_345, 0, x_11); -lean_ctor_set(x_345, 1, x_12); -lean_ctor_set(x_345, 2, x_13); -lean_ctor_set(x_345, 3, x_15); -lean_ctor_set(x_345, 4, x_16); -lean_ctor_set(x_345, 5, x_17); -lean_ctor_set(x_345, 6, x_18); -lean_ctor_set(x_345, 7, x_19); -lean_ctor_set_uint8(x_345, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_345, sizeof(void*)*8 + 1, x_344); -x_346 = lean_array_get_size(x_12); -x_347 = lean_nat_dec_lt(x_15, x_346); -lean_dec(x_346); -if (x_347 == 0) +x_340 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_340, 0, x_11); +lean_ctor_set(x_340, 1, x_12); +lean_ctor_set(x_340, 2, x_13); +lean_ctor_set(x_340, 3, x_15); +lean_ctor_set(x_340, 4, x_16); +lean_ctor_set(x_340, 5, x_17); +lean_ctor_set(x_340, 6, x_18); +lean_ctor_set(x_340, 7, x_19); +lean_ctor_set_uint8(x_340, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_340, sizeof(void*)*8 + 1, x_339); +x_341 = lean_array_get_size(x_12); +x_342 = lean_nat_dec_lt(x_15, x_341); +lean_dec(x_341); +if (x_342 == 0) { lean_dec(x_18); lean_dec(x_15); lean_dec(x_12); if (x_14 == 0) { -lean_object* x_348; -x_348 = l_Lean_Expr_getOptParamDefault_x3f(x_113); -if (lean_obj_tag(x_348) == 0) +lean_object* x_343; +x_343 = l_Lean_Expr_getOptParamDefault_x3f(x_113); +if (lean_obj_tag(x_343) == 0) { -lean_object* x_349; -x_349 = l_Lean_Expr_getAutoParamTactic_x3f(x_113); -if (lean_obj_tag(x_349) == 0) +lean_object* x_344; +x_344 = l_Lean_Expr_getAutoParamTactic_x3f(x_113); +if (lean_obj_tag(x_344) == 0) { -uint8_t x_350; -lean_dec(x_345); +uint8_t x_345; +lean_dec(x_340); lean_dec(x_114); lean_dec(x_113); -x_350 = l_Array_isEmpty___rarg(x_16); -if (x_350 == 0) +x_345 = l_Array_isEmpty___rarg(x_16); +if (x_345 == 0) { -lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; +lean_object* x_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_dec(x_22); lean_dec(x_19); lean_dec(x_17); @@ -5624,81 +5579,81 @@ lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_351 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_351, 0, x_112); -x_352 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_353 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_353, 0, x_352); -lean_ctor_set(x_353, 1, x_351); -x_354 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_355 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_355, 0, x_353); -lean_ctor_set(x_355, 1, x_354); -x_356 = x_16; -x_357 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_356); -x_358 = x_357; -x_359 = l_Array_toList___rarg(x_358); -lean_dec(x_358); -x_360 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_359); -x_361 = l_Array_HasRepr___rarg___closed__1; -x_362 = lean_string_append(x_361, x_360); -lean_dec(x_360); -x_363 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_363, 0, x_362); -x_364 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_364, 0, x_363); -x_365 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_365, 0, x_355); -lean_ctor_set(x_365, 1, x_364); -x_366 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_365, x_4, x_5, x_6, x_7, x_8, x_9, x_343); +x_346 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_346, 0, x_112); +x_347 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_348 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_348, 0, x_347); +lean_ctor_set(x_348, 1, x_346); +x_349 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_350 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_350, 0, x_348); +lean_ctor_set(x_350, 1, x_349); +x_351 = x_16; +x_352 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_351); +x_353 = x_352; +x_354 = l_Array_toList___rarg(x_353); +lean_dec(x_353); +x_355 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_354); +x_356 = l_Array_HasRepr___rarg___closed__1; +x_357 = lean_string_append(x_356, x_355); +lean_dec(x_355); +x_358 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_358, 0, x_357); +x_359 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_359, 0, x_358); +x_360 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_360, 0, x_350); +lean_ctor_set(x_360, 1, x_359); +x_361 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_360, x_4, x_5, x_6, x_7, x_8, x_9, x_338); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_366; +return x_361; } else { -lean_object* x_367; uint8_t x_368; +lean_object* x_362; uint8_t x_363; lean_dec(x_112); lean_dec(x_16); -x_367 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_368 = l_Lean_checkTraceOption(x_22, x_367); +x_362 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_363 = l_Lean_checkTraceOption(x_22, x_362); lean_dec(x_22); -if (x_368 == 0) +if (x_363 == 0) { -lean_object* x_369; +lean_object* x_364; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_369 = x_343; -goto block_380; +x_364 = x_338; +goto block_375; } else { -lean_object* x_381; lean_object* x_382; -x_381 = lean_ctor_get(x_13, 0); -lean_inc(x_381); +lean_object* x_376; lean_object* x_377; +x_376 = lean_ctor_get(x_13, 0); +lean_inc(x_376); lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_382 = l_Lean_Elab_Term_isDefEq(x_381, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_343); -if (lean_obj_tag(x_382) == 0) +x_377 = l_Lean_Elab_Term_isDefEq(x_376, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_338); +if (lean_obj_tag(x_377) == 0) { -lean_object* x_383; -x_383 = lean_ctor_get(x_382, 1); -lean_inc(x_383); -lean_dec(x_382); -x_369 = x_383; -goto block_380; +lean_object* x_378; +x_378 = lean_ctor_get(x_377, 1); +lean_inc(x_378); +lean_dec(x_377); +x_364 = x_378; +goto block_375; } else { -lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; +lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_dec(x_8); lean_dec(x_19); lean_dec(x_17); @@ -5709,46 +5664,46 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_384 = lean_ctor_get(x_382, 0); -lean_inc(x_384); -x_385 = lean_ctor_get(x_382, 1); -lean_inc(x_385); -if (lean_is_exclusive(x_382)) { - lean_ctor_release(x_382, 0); - lean_ctor_release(x_382, 1); - x_386 = x_382; +x_379 = lean_ctor_get(x_377, 0); +lean_inc(x_379); +x_380 = lean_ctor_get(x_377, 1); +lean_inc(x_380); +if (lean_is_exclusive(x_377)) { + lean_ctor_release(x_377, 0); + lean_ctor_release(x_377, 1); + x_381 = x_377; } else { - lean_dec_ref(x_382); - x_386 = lean_box(0); + lean_dec_ref(x_377); + x_381 = lean_box(0); } -if (lean_is_scalar(x_386)) { - x_387 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_381)) { + x_382 = lean_alloc_ctor(1, 2, 0); } else { - x_387 = x_386; + x_382 = x_381; } -lean_ctor_set(x_387, 0, x_384); -lean_ctor_set(x_387, 1, x_385); -return x_387; +lean_ctor_set(x_382, 0, x_379); +lean_ctor_set(x_382, 1, x_380); +return x_382; } } -block_380: +block_375: { -lean_object* x_370; +lean_object* x_365; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_370 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_369); +x_365 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_364); lean_dec(x_17); -if (lean_obj_tag(x_370) == 0) +if (lean_obj_tag(x_365) == 0) { -lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; -x_371 = lean_ctor_get(x_370, 1); -lean_inc(x_371); -lean_dec(x_370); +lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; +x_366 = lean_ctor_get(x_365, 1); +lean_inc(x_366); +lean_dec(x_365); lean_inc(x_2); -x_372 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__5(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_371); +x_367 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__5(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_366); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5756,28 +5711,28 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); -x_373 = lean_ctor_get(x_372, 1); -lean_inc(x_373); -if (lean_is_exclusive(x_372)) { - lean_ctor_release(x_372, 0); - lean_ctor_release(x_372, 1); - x_374 = x_372; +x_368 = lean_ctor_get(x_367, 1); +lean_inc(x_368); +if (lean_is_exclusive(x_367)) { + lean_ctor_release(x_367, 0); + lean_ctor_release(x_367, 1); + x_369 = x_367; } else { - lean_dec_ref(x_372); - x_374 = lean_box(0); + lean_dec_ref(x_367); + x_369 = lean_box(0); } -if (lean_is_scalar(x_374)) { - x_375 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_369)) { + x_370 = lean_alloc_ctor(0, 2, 0); } else { - x_375 = x_374; + x_370 = x_369; } -lean_ctor_set(x_375, 0, x_2); -lean_ctor_set(x_375, 1, x_373); -return x_375; +lean_ctor_set(x_370, 0, x_2); +lean_ctor_set(x_370, 1, x_368); +return x_370; } else { -lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; +lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_dec(x_8); lean_dec(x_19); lean_dec(x_11); @@ -5787,185 +5742,185 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_376 = lean_ctor_get(x_370, 0); -lean_inc(x_376); -x_377 = lean_ctor_get(x_370, 1); -lean_inc(x_377); -if (lean_is_exclusive(x_370)) { - lean_ctor_release(x_370, 0); - lean_ctor_release(x_370, 1); - x_378 = x_370; +x_371 = lean_ctor_get(x_365, 0); +lean_inc(x_371); +x_372 = lean_ctor_get(x_365, 1); +lean_inc(x_372); +if (lean_is_exclusive(x_365)) { + lean_ctor_release(x_365, 0); + lean_ctor_release(x_365, 1); + x_373 = x_365; } else { - lean_dec_ref(x_370); - x_378 = lean_box(0); + lean_dec_ref(x_365); + x_373 = lean_box(0); } -if (lean_is_scalar(x_378)) { - x_379 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_373)) { + x_374 = lean_alloc_ctor(1, 2, 0); } else { - x_379 = x_378; + x_374 = x_373; } -lean_ctor_set(x_379, 0, x_376); -lean_ctor_set(x_379, 1, x_377); -return x_379; +lean_ctor_set(x_374, 0, x_371); +lean_ctor_set(x_374, 1, x_372); +return x_374; } } } else { -lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; +lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_inc(x_2); -x_388 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_388, 0, x_2); -x_389 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_367, x_388, x_4, x_5, x_6, x_7, x_8, x_9, x_343); +x_383 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_383, 0, x_2); +x_384 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_362, x_383, x_4, x_5, x_6, x_7, x_8, x_9, x_338); +x_385 = lean_ctor_get(x_384, 1); +lean_inc(x_385); +lean_dec(x_384); +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_386 = x_385; +goto block_397; +} +else +{ +lean_object* x_398; lean_object* x_399; +x_398 = lean_ctor_get(x_13, 0); +lean_inc(x_398); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_399 = l_Lean_Elab_Term_isDefEq(x_398, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_385); +if (lean_obj_tag(x_399) == 0) +{ +lean_object* x_400; +x_400 = lean_ctor_get(x_399, 1); +lean_inc(x_400); +lean_dec(x_399); +x_386 = x_400; +goto block_397; +} +else +{ +lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_401 = lean_ctor_get(x_399, 0); +lean_inc(x_401); +x_402 = lean_ctor_get(x_399, 1); +lean_inc(x_402); +if (lean_is_exclusive(x_399)) { + lean_ctor_release(x_399, 0); + lean_ctor_release(x_399, 1); + x_403 = x_399; +} else { + lean_dec_ref(x_399); + x_403 = lean_box(0); +} +if (lean_is_scalar(x_403)) { + x_404 = lean_alloc_ctor(1, 2, 0); +} else { + x_404 = x_403; +} +lean_ctor_set(x_404, 0, x_401); +lean_ctor_set(x_404, 1, x_402); +return x_404; +} +} +block_397: +{ +lean_object* x_387; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_387 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_386); +lean_dec(x_17); +if (lean_obj_tag(x_387) == 0) +{ +lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; +x_388 = lean_ctor_get(x_387, 1); +lean_inc(x_388); +lean_dec(x_387); +lean_inc(x_2); +x_389 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__6(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_388); +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_19); x_390 = lean_ctor_get(x_389, 1); lean_inc(x_390); -lean_dec(x_389); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_391 = x_390; -goto block_402; +if (lean_is_exclusive(x_389)) { + lean_ctor_release(x_389, 0); + lean_ctor_release(x_389, 1); + x_391 = x_389; +} else { + lean_dec_ref(x_389); + x_391 = lean_box(0); +} +if (lean_is_scalar(x_391)) { + x_392 = lean_alloc_ctor(0, 2, 0); +} else { + x_392 = x_391; +} +lean_ctor_set(x_392, 0, x_2); +lean_ctor_set(x_392, 1, x_390); +return x_392; } else { -lean_object* x_403; lean_object* x_404; -x_403 = lean_ctor_get(x_13, 0); -lean_inc(x_403); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_404 = l_Lean_Elab_Term_isDefEq(x_403, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_390); -if (lean_obj_tag(x_404) == 0) +lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_393 = lean_ctor_get(x_387, 0); +lean_inc(x_393); +x_394 = lean_ctor_get(x_387, 1); +lean_inc(x_394); +if (lean_is_exclusive(x_387)) { + lean_ctor_release(x_387, 0); + lean_ctor_release(x_387, 1); + x_395 = x_387; +} else { + lean_dec_ref(x_387); + x_395 = lean_box(0); +} +if (lean_is_scalar(x_395)) { + x_396 = lean_alloc_ctor(1, 2, 0); +} else { + x_396 = x_395; +} +lean_ctor_set(x_396, 0, x_393); +lean_ctor_set(x_396, 1, x_394); +return x_396; +} +} +} +} +} +else { lean_object* x_405; -x_405 = lean_ctor_get(x_404, 1); -lean_inc(x_405); -lean_dec(x_404); -x_391 = x_405; -goto block_402; -} -else -{ -lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_406 = lean_ctor_get(x_404, 0); -lean_inc(x_406); -x_407 = lean_ctor_get(x_404, 1); -lean_inc(x_407); -if (lean_is_exclusive(x_404)) { - lean_ctor_release(x_404, 0); - lean_ctor_release(x_404, 1); - x_408 = x_404; -} else { - lean_dec_ref(x_404); - x_408 = lean_box(0); -} -if (lean_is_scalar(x_408)) { - x_409 = lean_alloc_ctor(1, 2, 0); -} else { - x_409 = x_408; -} -lean_ctor_set(x_409, 0, x_406); -lean_ctor_set(x_409, 1, x_407); -return x_409; -} -} -block_402: -{ -lean_object* x_392; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_392 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_391); -lean_dec(x_17); -if (lean_obj_tag(x_392) == 0) -{ -lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; -x_393 = lean_ctor_get(x_392, 1); -lean_inc(x_393); -lean_dec(x_392); -lean_inc(x_2); -x_394 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__6(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_393); -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_19); -x_395 = lean_ctor_get(x_394, 1); -lean_inc(x_395); -if (lean_is_exclusive(x_394)) { - lean_ctor_release(x_394, 0); - lean_ctor_release(x_394, 1); - x_396 = x_394; -} else { - lean_dec_ref(x_394); - x_396 = lean_box(0); -} -if (lean_is_scalar(x_396)) { - x_397 = lean_alloc_ctor(0, 2, 0); -} else { - x_397 = x_396; -} -lean_ctor_set(x_397, 0, x_2); -lean_ctor_set(x_397, 1, x_395); -return x_397; -} -else -{ -lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_398 = lean_ctor_get(x_392, 0); -lean_inc(x_398); -x_399 = lean_ctor_get(x_392, 1); -lean_inc(x_399); -if (lean_is_exclusive(x_392)) { - lean_ctor_release(x_392, 0); - lean_ctor_release(x_392, 1); - x_400 = x_392; -} else { - lean_dec_ref(x_392); - x_400 = lean_box(0); -} -if (lean_is_scalar(x_400)) { - x_401 = lean_alloc_ctor(1, 2, 0); -} else { - x_401 = x_400; -} -lean_ctor_set(x_401, 0, x_398); -lean_ctor_set(x_401, 1, x_399); -return x_401; -} -} -} -} -} -else -{ -lean_object* x_410; lean_dec(x_112); lean_dec(x_22); lean_dec(x_19); @@ -5973,99 +5928,110 @@ lean_dec(x_17); lean_dec(x_16); lean_dec(x_13); lean_dec(x_3); -x_410 = lean_ctor_get(x_349, 0); +x_405 = lean_ctor_get(x_344, 0); +lean_inc(x_405); +lean_dec(x_344); +if (lean_obj_tag(x_405) == 4) +{ +lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; +x_406 = lean_ctor_get(x_405, 0); +lean_inc(x_406); +lean_dec(x_405); +x_407 = lean_st_ref_get(x_9, x_338); +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_410 = lean_ctor_get(x_408, 0); lean_inc(x_410); -lean_dec(x_349); -if (lean_obj_tag(x_410) == 4) +lean_dec(x_408); +x_411 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_410, x_406); +if (lean_obj_tag(x_411) == 0) { -lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; -x_411 = lean_ctor_get(x_410, 0); -lean_inc(x_411); -lean_dec(x_410); -x_412 = lean_st_ref_get(x_9, x_343); -x_413 = lean_ctor_get(x_412, 0); -lean_inc(x_413); -x_414 = lean_ctor_get(x_412, 1); -lean_inc(x_414); -lean_dec(x_412); -x_415 = lean_ctor_get(x_413, 0); -lean_inc(x_415); -lean_dec(x_413); -x_416 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_415, x_411); -if (lean_obj_tag(x_416) == 0) -{ -lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; -lean_dec(x_345); +lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; +lean_dec(x_340); lean_dec(x_114); lean_dec(x_113); lean_dec(x_11); lean_dec(x_2); -x_417 = lean_ctor_get(x_416, 0); -lean_inc(x_417); -lean_dec(x_416); -x_418 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_418, 0, x_417); -x_419 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_419, 0, x_418); -x_420 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_419, x_4, x_5, x_6, x_7, x_8, x_9, x_414); +x_412 = lean_ctor_get(x_411, 0); +lean_inc(x_412); +lean_dec(x_411); +x_413 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_413, 0, x_412); +x_414 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_414, 0, x_413); +x_415 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_414, x_4, x_5, x_6, x_7, x_8, x_9, x_409); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_420; +return x_415; } else { -lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; -x_421 = lean_ctor_get(x_416, 0); -lean_inc(x_421); +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_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; +x_416 = lean_ctor_get(x_411, 0); +lean_inc(x_416); +lean_dec(x_411); +x_417 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_409); +x_418 = lean_ctor_get(x_417, 1); +lean_inc(x_418); +lean_dec(x_417); +x_419 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_418); +x_420 = lean_ctor_get(x_419, 1); +lean_inc(x_420); +lean_dec(x_419); +x_421 = l_Lean_Syntax_getArgs(x_416); lean_dec(x_416); -x_422 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_414); -x_423 = lean_ctor_get(x_422, 1); -lean_inc(x_423); -lean_dec(x_422); -x_424 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_423); -x_425 = lean_ctor_get(x_424, 1); -lean_inc(x_425); -lean_dec(x_424); -x_426 = l_Lean_Syntax_getArgs(x_421); +x_422 = l_Array_empty___closed__1; +x_423 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_421, x_421, x_116, x_422); lean_dec(x_421); -x_427 = l_Array_empty___closed__1; -x_428 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_426, x_426, x_116, x_427); -lean_dec(x_426); -x_429 = l_Lean_nullKind___closed__2; -x_430 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_430, 0, x_429); -lean_ctor_set(x_430, 1, x_428); -x_431 = lean_array_push(x_427, x_430); -x_432 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; -x_433 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_433, 0, x_432); -lean_ctor_set(x_433, 1, x_431); -x_434 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; -x_435 = lean_array_push(x_434, x_433); -x_436 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; -x_437 = lean_array_push(x_435, x_436); -x_438 = l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__2; -x_439 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_439, 0, x_438); -lean_ctor_set(x_439, 1, x_437); -x_440 = l_Lean_Syntax_getHeadInfo___main(x_11); +x_424 = l_Lean_nullKind___closed__2; +x_425 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_425, 0, x_424); +lean_ctor_set(x_425, 1, x_423); +x_426 = lean_array_push(x_422, x_425); +x_427 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; +x_428 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_428, 0, x_427); +lean_ctor_set(x_428, 1, x_426); +x_429 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__4; +x_430 = lean_array_push(x_429, x_428); +x_431 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__20; +x_432 = lean_array_push(x_430, x_431); +x_433 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; +x_434 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_434, 0, x_433); +lean_ctor_set(x_434, 1, x_432); +x_435 = lean_array_push(x_422, x_434); +x_436 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_436, 0, x_424); +lean_ctor_set(x_436, 1, x_435); +x_437 = lean_array_push(x_422, x_436); +x_438 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_438, 0, x_427); +lean_ctor_set(x_438, 1, x_437); +x_439 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_440 = lean_array_push(x_439, x_438); +x_441 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +x_442 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_442, 0, x_441); +lean_ctor_set(x_442, 1, x_440); +x_443 = l_Lean_Syntax_copyInfo(x_442, x_11); lean_dec(x_11); -x_441 = l_Lean_Expr_getAppNumArgsAux___main(x_113, x_116); -x_442 = lean_nat_sub(x_441, x_116); -lean_dec(x_441); -x_443 = lean_unsigned_to_nat(1u); -x_444 = lean_nat_sub(x_442, x_443); -lean_dec(x_442); -x_445 = l_Lean_Expr_getRevArg_x21___main(x_113, x_444); +x_444 = l_Lean_Expr_getAppNumArgsAux___main(x_113, x_116); +x_445 = lean_nat_sub(x_444, x_116); +lean_dec(x_444); +x_446 = lean_unsigned_to_nat(1u); +x_447 = lean_nat_sub(x_445, x_446); +lean_dec(x_445); +x_448 = l_Lean_Expr_getRevArg_x21___main(x_113, x_447); lean_dec(x_113); -if (lean_obj_tag(x_440) == 0) -{ -lean_object* x_446; lean_object* x_447; -x_446 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_446, 0, x_439); +x_449 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_449, 0, x_443); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -6073,30 +6039,30 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_447 = l___private_Lean_Elab_App_2__elabArg(x_2, x_446, x_445, x_4, x_5, x_6, x_7, x_8, x_9, x_425); -if (lean_obj_tag(x_447) == 0) +x_450 = l___private_Lean_Elab_App_2__elabArg(x_2, x_449, x_448, x_4, x_5, x_6, x_7, x_8, x_9, x_420); +if (lean_obj_tag(x_450) == 0) { -lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; -x_448 = lean_ctor_get(x_447, 0); -lean_inc(x_448); -x_449 = lean_ctor_get(x_447, 1); -lean_inc(x_449); -lean_dec(x_447); -lean_inc(x_448); -x_450 = l_Lean_mkApp(x_2, x_448); -x_451 = lean_expr_instantiate1(x_114, x_448); -lean_dec(x_448); +lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; +x_451 = lean_ctor_get(x_450, 0); +lean_inc(x_451); +x_452 = lean_ctor_get(x_450, 1); +lean_inc(x_452); +lean_dec(x_450); +lean_inc(x_451); +x_453 = l_Lean_mkApp(x_2, x_451); +x_454 = lean_expr_instantiate1(x_114, x_451); +lean_dec(x_451); lean_dec(x_114); -x_1 = x_345; -x_2 = x_450; -x_3 = x_451; -x_10 = x_449; +x_1 = x_340; +x_2 = x_453; +x_3 = x_454; +x_10 = x_452; goto _start; } else { -lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; -lean_dec(x_345); +lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; +lean_dec(x_340); lean_dec(x_114); lean_dec(x_8); lean_dec(x_9); @@ -6105,239 +6071,168 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_453 = lean_ctor_get(x_447, 0); -lean_inc(x_453); -x_454 = lean_ctor_get(x_447, 1); -lean_inc(x_454); -if (lean_is_exclusive(x_447)) { - lean_ctor_release(x_447, 0); - lean_ctor_release(x_447, 1); - x_455 = x_447; +x_456 = lean_ctor_get(x_450, 0); +lean_inc(x_456); +x_457 = lean_ctor_get(x_450, 1); +lean_inc(x_457); +if (lean_is_exclusive(x_450)) { + lean_ctor_release(x_450, 0); + lean_ctor_release(x_450, 1); + x_458 = x_450; } else { - lean_dec_ref(x_447); - x_455 = lean_box(0); + lean_dec_ref(x_450); + x_458 = lean_box(0); } -if (lean_is_scalar(x_455)) { - x_456 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_458)) { + x_459 = lean_alloc_ctor(1, 2, 0); } else { - x_456 = x_455; + x_459 = x_458; +} +lean_ctor_set(x_459, 0, x_456); +lean_ctor_set(x_459, 1, x_457); +return x_459; } -lean_ctor_set(x_456, 0, x_453); -lean_ctor_set(x_456, 1, x_454); -return x_456; } } else { -lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; -x_457 = lean_ctor_get(x_440, 0); -lean_inc(x_457); -lean_dec(x_440); -x_458 = l_Lean_Syntax_replaceInfo___main(x_457, x_439); -x_459 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_459, 0, x_458); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_460 = l___private_Lean_Elab_App_2__elabArg(x_2, x_459, x_445, x_4, x_5, x_6, x_7, x_8, x_9, x_425); -if (lean_obj_tag(x_460) == 0) -{ -lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; -x_461 = lean_ctor_get(x_460, 0); -lean_inc(x_461); -x_462 = lean_ctor_get(x_460, 1); -lean_inc(x_462); -lean_dec(x_460); -lean_inc(x_461); -x_463 = l_Lean_mkApp(x_2, x_461); -x_464 = lean_expr_instantiate1(x_114, x_461); -lean_dec(x_461); +lean_object* x_460; lean_object* x_461; +lean_dec(x_405); +lean_dec(x_340); lean_dec(x_114); -x_1 = x_345; +lean_dec(x_113); +lean_dec(x_11); +lean_dec(x_2); +x_460 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_461 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_460, x_4, x_5, x_6, x_7, x_8, x_9, x_338); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_461; +} +} +} +else +{ +lean_object* x_462; lean_object* x_463; lean_object* x_464; +lean_dec(x_113); +lean_dec(x_112); +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_3); +x_462 = lean_ctor_get(x_343, 0); +lean_inc(x_462); +lean_dec(x_343); +lean_inc(x_462); +x_463 = l_Lean_mkApp(x_2, x_462); +x_464 = lean_expr_instantiate1(x_114, x_462); +lean_dec(x_462); +lean_dec(x_114); +x_1 = x_340; x_2 = x_463; x_3 = x_464; -x_10 = x_462; +x_10 = x_338; goto _start; } +} else { -lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; -lean_dec(x_345); +uint8_t x_466; +lean_dec(x_340); lean_dec(x_114); -lean_dec(x_8); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); +lean_dec(x_113); +x_466 = l_Array_isEmpty___rarg(x_16); +if (x_466 == 0) +{ +lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_3); lean_dec(x_2); -x_466 = lean_ctor_get(x_460, 0); -lean_inc(x_466); -x_467 = lean_ctor_get(x_460, 1); -lean_inc(x_467); -if (lean_is_exclusive(x_460)) { - lean_ctor_release(x_460, 0); - lean_ctor_release(x_460, 1); - x_468 = x_460; -} else { - lean_dec_ref(x_460); - x_468 = lean_box(0); -} -if (lean_is_scalar(x_468)) { - x_469 = lean_alloc_ctor(1, 2, 0); -} else { - x_469 = x_468; -} -lean_ctor_set(x_469, 0, x_466); +x_467 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_467, 0, x_112); +x_468 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_469 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_469, 0, x_468); lean_ctor_set(x_469, 1, x_467); -return x_469; -} -} -} -} -else -{ -lean_object* x_470; lean_object* x_471; -lean_dec(x_410); -lean_dec(x_345); -lean_dec(x_114); -lean_dec(x_113); -lean_dec(x_11); -lean_dec(x_2); -x_470 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; -x_471 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_470, x_4, x_5, x_6, x_7, x_8, x_9, x_343); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_471; -} -} -} -else -{ -lean_object* x_472; lean_object* x_473; lean_object* x_474; -lean_dec(x_113); -lean_dec(x_112); -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_3); -x_472 = lean_ctor_get(x_348, 0); -lean_inc(x_472); -lean_dec(x_348); -lean_inc(x_472); -x_473 = l_Lean_mkApp(x_2, x_472); -x_474 = lean_expr_instantiate1(x_114, x_472); -lean_dec(x_472); -lean_dec(x_114); -x_1 = x_345; -x_2 = x_473; -x_3 = x_474; -x_10 = x_343; -goto _start; -} -} -else -{ -uint8_t x_476; -lean_dec(x_345); -lean_dec(x_114); -lean_dec(x_113); -x_476 = l_Array_isEmpty___rarg(x_16); -if (x_476 == 0) -{ -lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_3); -lean_dec(x_2); -x_477 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_477, 0, x_112); -x_478 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_479 = lean_alloc_ctor(9, 2, 0); +x_470 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_471 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_471, 0, x_469); +lean_ctor_set(x_471, 1, x_470); +x_472 = x_16; +x_473 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_472); +x_474 = x_473; +x_475 = l_Array_toList___rarg(x_474); +lean_dec(x_474); +x_476 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_475); +x_477 = l_Array_HasRepr___rarg___closed__1; +x_478 = lean_string_append(x_477, x_476); +lean_dec(x_476); +x_479 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_479, 0, x_478); -lean_ctor_set(x_479, 1, x_477); -x_480 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_480 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_480, 0, x_479); x_481 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_481, 0, x_479); +lean_ctor_set(x_481, 0, x_471); lean_ctor_set(x_481, 1, x_480); -x_482 = x_16; -x_483 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_482); -x_484 = x_483; -x_485 = l_Array_toList___rarg(x_484); -lean_dec(x_484); -x_486 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_485); -x_487 = l_Array_HasRepr___rarg___closed__1; -x_488 = lean_string_append(x_487, x_486); -lean_dec(x_486); -x_489 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_489, 0, x_488); -x_490 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_490, 0, x_489); -x_491 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_491, 0, x_481); -lean_ctor_set(x_491, 1, x_490); -x_492 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_491, x_4, x_5, x_6, x_7, x_8, x_9, x_343); +x_482 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_481, x_4, x_5, x_6, x_7, x_8, x_9, x_338); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_492; +return x_482; } else { -lean_object* x_493; uint8_t x_494; +lean_object* x_483; uint8_t x_484; lean_dec(x_112); lean_dec(x_16); -x_493 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_494 = l_Lean_checkTraceOption(x_22, x_493); +x_483 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_484 = l_Lean_checkTraceOption(x_22, x_483); lean_dec(x_22); -if (x_494 == 0) +if (x_484 == 0) { -lean_object* x_495; +lean_object* x_485; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_495 = x_343; -goto block_506; +x_485 = x_338; +goto block_496; } else { -lean_object* x_507; lean_object* x_508; -x_507 = lean_ctor_get(x_13, 0); -lean_inc(x_507); +lean_object* x_497; lean_object* x_498; +x_497 = lean_ctor_get(x_13, 0); +lean_inc(x_497); lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_508 = l_Lean_Elab_Term_isDefEq(x_507, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_343); -if (lean_obj_tag(x_508) == 0) +x_498 = l_Lean_Elab_Term_isDefEq(x_497, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_338); +if (lean_obj_tag(x_498) == 0) { -lean_object* x_509; -x_509 = lean_ctor_get(x_508, 1); -lean_inc(x_509); -lean_dec(x_508); -x_495 = x_509; -goto block_506; +lean_object* x_499; +x_499 = lean_ctor_get(x_498, 1); +lean_inc(x_499); +lean_dec(x_498); +x_485 = x_499; +goto block_496; } else { -lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; +lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_dec(x_8); lean_dec(x_19); lean_dec(x_17); @@ -6348,75 +6243,75 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_510 = lean_ctor_get(x_508, 0); -lean_inc(x_510); -x_511 = lean_ctor_get(x_508, 1); -lean_inc(x_511); -if (lean_is_exclusive(x_508)) { - lean_ctor_release(x_508, 0); - lean_ctor_release(x_508, 1); - x_512 = x_508; -} else { - lean_dec_ref(x_508); - x_512 = lean_box(0); -} -if (lean_is_scalar(x_512)) { - x_513 = lean_alloc_ctor(1, 2, 0); -} else { - x_513 = x_512; -} -lean_ctor_set(x_513, 0, x_510); -lean_ctor_set(x_513, 1, x_511); -return x_513; -} -} -block_506: -{ -lean_object* x_496; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_496 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_495); -lean_dec(x_17); -if (lean_obj_tag(x_496) == 0) -{ -lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; -x_497 = lean_ctor_get(x_496, 1); -lean_inc(x_497); -lean_dec(x_496); -lean_inc(x_2); -x_498 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__7(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_497); -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_19); -x_499 = lean_ctor_get(x_498, 1); -lean_inc(x_499); +x_500 = lean_ctor_get(x_498, 0); +lean_inc(x_500); +x_501 = lean_ctor_get(x_498, 1); +lean_inc(x_501); if (lean_is_exclusive(x_498)) { lean_ctor_release(x_498, 0); lean_ctor_release(x_498, 1); - x_500 = x_498; + x_502 = x_498; } else { lean_dec_ref(x_498); - x_500 = lean_box(0); + x_502 = lean_box(0); } -if (lean_is_scalar(x_500)) { - x_501 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_502)) { + x_503 = lean_alloc_ctor(1, 2, 0); } else { - x_501 = x_500; + x_503 = x_502; } -lean_ctor_set(x_501, 0, x_2); -lean_ctor_set(x_501, 1, x_499); -return x_501; +lean_ctor_set(x_503, 0, x_500); +lean_ctor_set(x_503, 1, x_501); +return x_503; +} +} +block_496: +{ +lean_object* x_486; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_486 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_485); +lean_dec(x_17); +if (lean_obj_tag(x_486) == 0) +{ +lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; +x_487 = lean_ctor_get(x_486, 1); +lean_inc(x_487); +lean_dec(x_486); +lean_inc(x_2); +x_488 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__7(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_487); +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_19); +x_489 = lean_ctor_get(x_488, 1); +lean_inc(x_489); +if (lean_is_exclusive(x_488)) { + lean_ctor_release(x_488, 0); + lean_ctor_release(x_488, 1); + x_490 = x_488; +} else { + lean_dec_ref(x_488); + x_490 = lean_box(0); +} +if (lean_is_scalar(x_490)) { + x_491 = lean_alloc_ctor(0, 2, 0); +} else { + x_491 = x_490; +} +lean_ctor_set(x_491, 0, x_2); +lean_ctor_set(x_491, 1, x_489); +return x_491; } else { -lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; +lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_dec(x_8); lean_dec(x_19); lean_dec(x_11); @@ -6426,148 +6321,148 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_502 = lean_ctor_get(x_496, 0); -lean_inc(x_502); -x_503 = lean_ctor_get(x_496, 1); -lean_inc(x_503); -if (lean_is_exclusive(x_496)) { - lean_ctor_release(x_496, 0); - lean_ctor_release(x_496, 1); - x_504 = x_496; +x_492 = lean_ctor_get(x_486, 0); +lean_inc(x_492); +x_493 = lean_ctor_get(x_486, 1); +lean_inc(x_493); +if (lean_is_exclusive(x_486)) { + lean_ctor_release(x_486, 0); + lean_ctor_release(x_486, 1); + x_494 = x_486; } else { - lean_dec_ref(x_496); - x_504 = lean_box(0); + lean_dec_ref(x_486); + x_494 = lean_box(0); } -if (lean_is_scalar(x_504)) { - x_505 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_494)) { + x_495 = lean_alloc_ctor(1, 2, 0); } else { - x_505 = x_504; + x_495 = x_494; } -lean_ctor_set(x_505, 0, x_502); -lean_ctor_set(x_505, 1, x_503); -return x_505; +lean_ctor_set(x_495, 0, x_492); +lean_ctor_set(x_495, 1, x_493); +return x_495; } } } else { +lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; +lean_inc(x_2); +x_504 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_504, 0, x_2); +x_505 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_483, x_504, x_4, x_5, x_6, x_7, x_8, x_9, x_338); +x_506 = lean_ctor_get(x_505, 1); +lean_inc(x_506); +lean_dec(x_505); +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_507 = x_506; +goto block_518; +} +else +{ +lean_object* x_519; lean_object* x_520; +x_519 = lean_ctor_get(x_13, 0); +lean_inc(x_519); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_520 = l_Lean_Elab_Term_isDefEq(x_519, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_506); +if (lean_obj_tag(x_520) == 0) +{ +lean_object* x_521; +x_521 = lean_ctor_get(x_520, 1); +lean_inc(x_521); +lean_dec(x_520); +x_507 = x_521; +goto block_518; +} +else +{ +lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_522 = lean_ctor_get(x_520, 0); +lean_inc(x_522); +x_523 = lean_ctor_get(x_520, 1); +lean_inc(x_523); +if (lean_is_exclusive(x_520)) { + lean_ctor_release(x_520, 0); + lean_ctor_release(x_520, 1); + x_524 = x_520; +} else { + lean_dec_ref(x_520); + x_524 = lean_box(0); +} +if (lean_is_scalar(x_524)) { + x_525 = lean_alloc_ctor(1, 2, 0); +} else { + x_525 = x_524; +} +lean_ctor_set(x_525, 0, x_522); +lean_ctor_set(x_525, 1, x_523); +return x_525; +} +} +block_518: +{ +lean_object* x_508; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_508 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_507); +lean_dec(x_17); +if (lean_obj_tag(x_508) == 0) +{ +lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; +x_509 = lean_ctor_get(x_508, 1); +lean_inc(x_509); +lean_dec(x_508); +lean_inc(x_2); +x_510 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__8(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_509); +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_19); +x_511 = lean_ctor_get(x_510, 1); +lean_inc(x_511); +if (lean_is_exclusive(x_510)) { + lean_ctor_release(x_510, 0); + lean_ctor_release(x_510, 1); + x_512 = x_510; +} else { + lean_dec_ref(x_510); + x_512 = lean_box(0); +} +if (lean_is_scalar(x_512)) { + x_513 = lean_alloc_ctor(0, 2, 0); +} else { + x_513 = x_512; +} +lean_ctor_set(x_513, 0, x_2); +lean_ctor_set(x_513, 1, x_511); +return x_513; +} +else +{ lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; -lean_inc(x_2); -x_514 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_514, 0, x_2); -x_515 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_493, x_514, x_4, x_5, x_6, x_7, x_8, x_9, x_343); -x_516 = lean_ctor_get(x_515, 1); -lean_inc(x_516); -lean_dec(x_515); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_517 = x_516; -goto block_528; -} -else -{ -lean_object* x_529; lean_object* x_530; -x_529 = lean_ctor_get(x_13, 0); -lean_inc(x_529); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_530 = l_Lean_Elab_Term_isDefEq(x_529, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_516); -if (lean_obj_tag(x_530) == 0) -{ -lean_object* x_531; -x_531 = lean_ctor_get(x_530, 1); -lean_inc(x_531); -lean_dec(x_530); -x_517 = x_531; -goto block_528; -} -else -{ -lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_532 = lean_ctor_get(x_530, 0); -lean_inc(x_532); -x_533 = lean_ctor_get(x_530, 1); -lean_inc(x_533); -if (lean_is_exclusive(x_530)) { - lean_ctor_release(x_530, 0); - lean_ctor_release(x_530, 1); - x_534 = x_530; -} else { - lean_dec_ref(x_530); - x_534 = lean_box(0); -} -if (lean_is_scalar(x_534)) { - x_535 = lean_alloc_ctor(1, 2, 0); -} else { - x_535 = x_534; -} -lean_ctor_set(x_535, 0, x_532); -lean_ctor_set(x_535, 1, x_533); -return x_535; -} -} -block_528: -{ -lean_object* x_518; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_518 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_517); -lean_dec(x_17); -if (lean_obj_tag(x_518) == 0) -{ -lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; -x_519 = lean_ctor_get(x_518, 1); -lean_inc(x_519); -lean_dec(x_518); -lean_inc(x_2); -x_520 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__8(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_519); -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_19); -x_521 = lean_ctor_get(x_520, 1); -lean_inc(x_521); -if (lean_is_exclusive(x_520)) { - lean_ctor_release(x_520, 0); - lean_ctor_release(x_520, 1); - x_522 = x_520; -} else { - lean_dec_ref(x_520); - x_522 = lean_box(0); -} -if (lean_is_scalar(x_522)) { - x_523 = lean_alloc_ctor(0, 2, 0); -} else { - x_523 = x_522; -} -lean_ctor_set(x_523, 0, x_2); -lean_ctor_set(x_523, 1, x_521); -return x_523; -} -else -{ -lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_dec(x_8); lean_dec(x_19); lean_dec(x_11); @@ -6577,26 +6472,26 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_524 = lean_ctor_get(x_518, 0); -lean_inc(x_524); -x_525 = lean_ctor_get(x_518, 1); -lean_inc(x_525); -if (lean_is_exclusive(x_518)) { - lean_ctor_release(x_518, 0); - lean_ctor_release(x_518, 1); - x_526 = x_518; +x_514 = lean_ctor_get(x_508, 0); +lean_inc(x_514); +x_515 = lean_ctor_get(x_508, 1); +lean_inc(x_515); +if (lean_is_exclusive(x_508)) { + lean_ctor_release(x_508, 0); + lean_ctor_release(x_508, 1); + x_516 = x_508; } else { - lean_dec_ref(x_518); - x_526 = lean_box(0); + lean_dec_ref(x_508); + x_516 = lean_box(0); } -if (lean_is_scalar(x_526)) { - x_527 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_516)) { + x_517 = lean_alloc_ctor(1, 2, 0); } else { - x_527 = x_526; + x_517 = x_516; } -lean_ctor_set(x_527, 0, x_524); -lean_ctor_set(x_527, 1, x_525); -return x_527; +lean_ctor_set(x_517, 0, x_514); +lean_ctor_set(x_517, 1, x_515); +return x_517; } } } @@ -6605,12 +6500,12 @@ return x_527; } else { -lean_object* x_536; lean_object* x_537; -lean_dec(x_345); +lean_object* x_526; lean_object* x_527; +lean_dec(x_340); lean_dec(x_112); lean_dec(x_22); lean_dec(x_3); -x_536 = lean_array_fget(x_12, x_15); +x_526 = lean_array_fget(x_12, x_15); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -6618,43 +6513,43 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_537 = l___private_Lean_Elab_App_2__elabArg(x_2, x_536, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_343); -if (lean_obj_tag(x_537) == 0) +x_527 = l___private_Lean_Elab_App_2__elabArg(x_2, x_526, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_338); +if (lean_obj_tag(x_527) == 0) { -lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; -x_538 = lean_ctor_get(x_537, 0); -lean_inc(x_538); -x_539 = lean_ctor_get(x_537, 1); -lean_inc(x_539); -lean_dec(x_537); -x_540 = lean_unsigned_to_nat(1u); -x_541 = lean_nat_add(x_15, x_540); +lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; +x_528 = lean_ctor_get(x_527, 0); +lean_inc(x_528); +x_529 = lean_ctor_get(x_527, 1); +lean_inc(x_529); +lean_dec(x_527); +x_530 = lean_unsigned_to_nat(1u); +x_531 = lean_nat_add(x_15, x_530); lean_dec(x_15); -x_542 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_542, 0, x_11); -lean_ctor_set(x_542, 1, x_12); -lean_ctor_set(x_542, 2, x_13); -lean_ctor_set(x_542, 3, x_541); -lean_ctor_set(x_542, 4, x_16); -lean_ctor_set(x_542, 5, x_17); -lean_ctor_set(x_542, 6, x_18); -lean_ctor_set(x_542, 7, x_19); -lean_ctor_set_uint8(x_542, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_542, sizeof(void*)*8 + 1, x_344); -lean_inc(x_538); -x_543 = l_Lean_mkApp(x_2, x_538); -x_544 = lean_expr_instantiate1(x_114, x_538); -lean_dec(x_538); +x_532 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_532, 0, x_11); +lean_ctor_set(x_532, 1, x_12); +lean_ctor_set(x_532, 2, x_13); +lean_ctor_set(x_532, 3, x_531); +lean_ctor_set(x_532, 4, x_16); +lean_ctor_set(x_532, 5, x_17); +lean_ctor_set(x_532, 6, x_18); +lean_ctor_set(x_532, 7, x_19); +lean_ctor_set_uint8(x_532, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_532, sizeof(void*)*8 + 1, x_339); +lean_inc(x_528); +x_533 = l_Lean_mkApp(x_2, x_528); +x_534 = lean_expr_instantiate1(x_114, x_528); +lean_dec(x_528); lean_dec(x_114); -x_1 = x_542; -x_2 = x_543; -x_3 = x_544; -x_10 = x_539; +x_1 = x_532; +x_2 = x_533; +x_3 = x_534; +x_10 = x_529; goto _start; } else { -lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; +lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_dec(x_114); lean_dec(x_8); lean_dec(x_19); @@ -6671,32 +6566,32 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_546 = lean_ctor_get(x_537, 0); -lean_inc(x_546); -x_547 = lean_ctor_get(x_537, 1); -lean_inc(x_547); -if (lean_is_exclusive(x_537)) { - lean_ctor_release(x_537, 0); - lean_ctor_release(x_537, 1); - x_548 = x_537; +x_536 = lean_ctor_get(x_527, 0); +lean_inc(x_536); +x_537 = lean_ctor_get(x_527, 1); +lean_inc(x_537); +if (lean_is_exclusive(x_527)) { + lean_ctor_release(x_527, 0); + lean_ctor_release(x_527, 1); + x_538 = x_527; } else { - lean_dec_ref(x_537); - x_548 = lean_box(0); + lean_dec_ref(x_527); + x_538 = lean_box(0); } -if (lean_is_scalar(x_548)) { - x_549 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_538)) { + x_539 = lean_alloc_ctor(1, 2, 0); } else { - x_549 = x_548; + x_539 = x_538; } -lean_ctor_set(x_549, 0, x_546); -lean_ctor_set(x_549, 1, x_547); -return x_549; +lean_ctor_set(x_539, 0, x_536); +lean_ctor_set(x_539, 1, x_537); +return x_539; } } } else { -lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; +lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_dec(x_114); lean_dec(x_113); lean_dec(x_112); @@ -6717,26 +6612,26 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_550 = lean_ctor_get(x_119, 0); -lean_inc(x_550); -x_551 = lean_ctor_get(x_119, 1); -lean_inc(x_551); +x_540 = lean_ctor_get(x_119, 0); +lean_inc(x_540); +x_541 = lean_ctor_get(x_119, 1); +lean_inc(x_541); if (lean_is_exclusive(x_119)) { lean_ctor_release(x_119, 0); lean_ctor_release(x_119, 1); - x_552 = x_119; + x_542 = x_119; } else { lean_dec_ref(x_119); - x_552 = lean_box(0); + x_542 = lean_box(0); } -if (lean_is_scalar(x_552)) { - x_553 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_542)) { + x_543 = lean_alloc_ctor(1, 2, 0); } else { - x_553 = x_552; + x_543 = x_542; } -lean_ctor_set(x_553, 0, x_550); -lean_ctor_set(x_553, 1, x_551); -return x_553; +lean_ctor_set(x_543, 0, x_540); +lean_ctor_set(x_543, 1, x_541); +return x_543; } } } @@ -6744,7 +6639,7 @@ case 1: { if (x_14 == 0) { -lean_object* x_554; lean_object* x_555; uint8_t 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_570; +lean_object* x_544; lean_object* x_545; uint8_t x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_560; lean_dec(x_112); lean_dec(x_28); lean_dec(x_22); @@ -6758,65 +6653,65 @@ if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 5); lean_ctor_release(x_1, 6); lean_ctor_release(x_1, 7); - x_554 = x_1; + x_544 = x_1; } else { lean_dec_ref(x_1); - x_554 = lean_box(0); + x_544 = lean_box(0); } -x_555 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_555, 0, x_113); -x_556 = 0; -x_557 = lean_box(0); +x_545 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_545, 0, x_113); +x_546 = 0; +x_547 = lean_box(0); lean_inc(x_6); lean_inc(x_4); -x_558 = l_Lean_Meta_mkFreshExprMVar___at_Lean_Elab_Term_tryCoe___spec__2(x_555, x_556, x_557, x_4, x_5, x_6, x_7, x_8, x_9, x_29); -x_559 = lean_ctor_get(x_558, 0); -lean_inc(x_559); -x_560 = lean_ctor_get(x_558, 1); -lean_inc(x_560); -lean_dec(x_558); +x_548 = l_Lean_Meta_mkFreshExprMVar___at_Lean_Elab_Term_tryCoe___spec__2(x_545, x_546, x_547, x_4, x_5, x_6, x_7, x_8, x_9, x_29); +x_549 = lean_ctor_get(x_548, 0); +lean_inc(x_549); +x_550 = lean_ctor_get(x_548, 1); +lean_inc(x_550); +lean_dec(x_548); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -lean_inc(x_559); -x_570 = l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__9(x_559, x_4, x_5, x_6, x_7, x_8, x_9, x_560); -if (lean_obj_tag(x_570) == 0) +lean_inc(x_549); +x_560 = l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__9(x_549, x_4, x_5, x_6, x_7, x_8, x_9, x_550); +if (lean_obj_tag(x_560) == 0) { -lean_object* x_571; uint8_t x_572; -x_571 = lean_ctor_get(x_570, 0); -lean_inc(x_571); -x_572 = lean_unbox(x_571); -lean_dec(x_571); -if (x_572 == 0) +lean_object* x_561; uint8_t x_562; +x_561 = lean_ctor_get(x_560, 0); +lean_inc(x_561); +x_562 = lean_unbox(x_561); +lean_dec(x_561); +if (x_562 == 0) { -lean_object* x_573; -x_573 = lean_ctor_get(x_570, 1); -lean_inc(x_573); -lean_dec(x_570); -x_561 = x_18; -x_562 = x_573; -goto block_569; +lean_object* x_563; +x_563 = lean_ctor_get(x_560, 1); +lean_inc(x_563); +lean_dec(x_560); +x_551 = x_18; +x_552 = x_563; +goto block_559; } else { -lean_object* x_574; lean_object* x_575; lean_object* x_576; -x_574 = lean_ctor_get(x_570, 1); -lean_inc(x_574); -lean_dec(x_570); -x_575 = l_Lean_Expr_mvarId_x21(x_559); -x_576 = lean_array_push(x_18, x_575); -x_561 = x_576; -x_562 = x_574; -goto block_569; +lean_object* x_564; lean_object* x_565; lean_object* x_566; +x_564 = lean_ctor_get(x_560, 1); +lean_inc(x_564); +lean_dec(x_560); +x_565 = l_Lean_Expr_mvarId_x21(x_549); +x_566 = lean_array_push(x_18, x_565); +x_551 = x_566; +x_552 = x_564; +goto block_559; } } else { -uint8_t x_577; -lean_dec(x_559); -lean_dec(x_554); +uint8_t x_567; +lean_dec(x_549); +lean_dec(x_544); lean_dec(x_114); lean_dec(x_8); lean_dec(x_19); @@ -6833,109 +6728,109 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_577 = !lean_is_exclusive(x_570); -if (x_577 == 0) +x_567 = !lean_is_exclusive(x_560); +if (x_567 == 0) { -return x_570; +return x_560; } else { -lean_object* x_578; lean_object* x_579; lean_object* x_580; -x_578 = lean_ctor_get(x_570, 0); -x_579 = lean_ctor_get(x_570, 1); -lean_inc(x_579); -lean_inc(x_578); -lean_dec(x_570); -x_580 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_580, 0, x_578); -lean_ctor_set(x_580, 1, x_579); -return x_580; +lean_object* x_568; lean_object* x_569; lean_object* x_570; +x_568 = lean_ctor_get(x_560, 0); +x_569 = lean_ctor_get(x_560, 1); +lean_inc(x_569); +lean_inc(x_568); +lean_dec(x_560); +x_570 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_570, 0, x_568); +lean_ctor_set(x_570, 1, x_569); +return x_570; } } -block_569: +block_559: { -lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; -x_563 = l_Lean_Expr_mvarId_x21(x_559); -x_564 = lean_array_push(x_19, x_563); -if (lean_is_scalar(x_554)) { - x_565 = lean_alloc_ctor(0, 8, 2); +lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; +x_553 = l_Lean_Expr_mvarId_x21(x_549); +x_554 = lean_array_push(x_19, x_553); +if (lean_is_scalar(x_544)) { + x_555 = lean_alloc_ctor(0, 8, 2); } else { - x_565 = x_554; + x_555 = x_544; } -lean_ctor_set(x_565, 0, x_11); -lean_ctor_set(x_565, 1, x_12); -lean_ctor_set(x_565, 2, x_13); -lean_ctor_set(x_565, 3, x_15); -lean_ctor_set(x_565, 4, x_16); -lean_ctor_set(x_565, 5, x_17); -lean_ctor_set(x_565, 6, x_561); -lean_ctor_set(x_565, 7, x_564); -lean_ctor_set_uint8(x_565, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_565, sizeof(void*)*8 + 1, x_21); -lean_inc(x_559); -x_566 = l_Lean_mkApp(x_2, x_559); -x_567 = lean_expr_instantiate1(x_114, x_559); -lean_dec(x_559); +lean_ctor_set(x_555, 0, x_11); +lean_ctor_set(x_555, 1, x_12); +lean_ctor_set(x_555, 2, x_13); +lean_ctor_set(x_555, 3, x_15); +lean_ctor_set(x_555, 4, x_16); +lean_ctor_set(x_555, 5, x_17); +lean_ctor_set(x_555, 6, x_551); +lean_ctor_set(x_555, 7, x_554); +lean_ctor_set_uint8(x_555, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_555, sizeof(void*)*8 + 1, x_21); +lean_inc(x_549); +x_556 = l_Lean_mkApp(x_2, x_549); +x_557 = lean_expr_instantiate1(x_114, x_549); +lean_dec(x_549); lean_dec(x_114); -x_1 = x_565; -x_2 = x_566; -x_3 = x_567; -x_10 = x_562; +x_1 = x_555; +x_2 = x_556; +x_3 = x_557; +x_10 = x_552; goto _start; } } else { -lean_object* x_581; uint8_t x_582; +lean_object* x_571; uint8_t x_572; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); lean_inc(x_1); -x_581 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_29); -x_582 = !lean_is_exclusive(x_1); -if (x_582 == 0) +x_571 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_29); +x_572 = !lean_is_exclusive(x_1); +if (x_572 == 0) { -lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; -x_583 = lean_ctor_get(x_1, 7); -lean_dec(x_583); -x_584 = lean_ctor_get(x_1, 6); -lean_dec(x_584); -x_585 = lean_ctor_get(x_1, 5); -lean_dec(x_585); -x_586 = lean_ctor_get(x_1, 4); -lean_dec(x_586); -x_587 = lean_ctor_get(x_1, 3); -lean_dec(x_587); -x_588 = lean_ctor_get(x_1, 2); -lean_dec(x_588); -x_589 = lean_ctor_get(x_1, 1); -lean_dec(x_589); -x_590 = lean_ctor_get(x_1, 0); -lean_dec(x_590); -if (lean_obj_tag(x_581) == 0) +lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; +x_573 = lean_ctor_get(x_1, 7); +lean_dec(x_573); +x_574 = lean_ctor_get(x_1, 6); +lean_dec(x_574); +x_575 = lean_ctor_get(x_1, 5); +lean_dec(x_575); +x_576 = lean_ctor_get(x_1, 4); +lean_dec(x_576); +x_577 = lean_ctor_get(x_1, 3); +lean_dec(x_577); +x_578 = lean_ctor_get(x_1, 2); +lean_dec(x_578); +x_579 = lean_ctor_get(x_1, 1); +lean_dec(x_579); +x_580 = lean_ctor_get(x_1, 0); +lean_dec(x_580); +if (lean_obj_tag(x_571) == 0) { -lean_object* x_591; lean_object* x_592; uint8_t x_593; -x_591 = lean_ctor_get(x_581, 1); -lean_inc(x_591); -lean_dec(x_581); -x_592 = lean_array_get_size(x_12); -x_593 = lean_nat_dec_lt(x_15, x_592); -lean_dec(x_592); -if (x_593 == 0) +lean_object* x_581; lean_object* x_582; uint8_t x_583; +x_581 = lean_ctor_get(x_571, 1); +lean_inc(x_581); +lean_dec(x_571); +x_582 = lean_array_get_size(x_12); +x_583 = lean_nat_dec_lt(x_15, x_582); +lean_dec(x_582); +if (x_583 == 0) { -uint8_t x_594; +uint8_t x_584; lean_free_object(x_1); lean_dec(x_114); lean_dec(x_113); lean_dec(x_18); lean_dec(x_15); lean_dec(x_12); -x_594 = l_Array_isEmpty___rarg(x_16); -if (x_594 == 0) +x_584 = l_Array_isEmpty___rarg(x_16); +if (x_584 == 0) { -lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; +lean_object* x_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_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_dec(x_22); lean_dec(x_19); lean_dec(x_17); @@ -6943,81 +6838,81 @@ lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_595 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_595, 0, x_112); -x_596 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_597 = lean_alloc_ctor(9, 2, 0); +x_585 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_585, 0, x_112); +x_586 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_587 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_587, 0, x_586); +lean_ctor_set(x_587, 1, x_585); +x_588 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_589 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_589, 0, x_587); +lean_ctor_set(x_589, 1, x_588); +x_590 = x_16; +x_591 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_590); +x_592 = x_591; +x_593 = l_Array_toList___rarg(x_592); +lean_dec(x_592); +x_594 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_593); +x_595 = l_Array_HasRepr___rarg___closed__1; +x_596 = lean_string_append(x_595, x_594); +lean_dec(x_594); +x_597 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_597, 0, x_596); -lean_ctor_set(x_597, 1, x_595); -x_598 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_598 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_598, 0, x_597); x_599 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_599, 0, x_597); +lean_ctor_set(x_599, 0, x_589); lean_ctor_set(x_599, 1, x_598); -x_600 = x_16; -x_601 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_600); -x_602 = x_601; -x_603 = l_Array_toList___rarg(x_602); -lean_dec(x_602); -x_604 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_603); -x_605 = l_Array_HasRepr___rarg___closed__1; -x_606 = lean_string_append(x_605, x_604); -lean_dec(x_604); -x_607 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_607, 0, x_606); -x_608 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_608, 0, x_607); -x_609 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_609, 0, x_599); -lean_ctor_set(x_609, 1, x_608); -x_610 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_609, x_4, x_5, x_6, x_7, x_8, x_9, x_591); +x_600 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_599, x_4, x_5, x_6, x_7, x_8, x_9, x_581); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_610; +return x_600; } else { -lean_object* x_611; uint8_t x_612; +lean_object* x_601; uint8_t x_602; lean_dec(x_112); lean_dec(x_16); -x_611 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_612 = l_Lean_checkTraceOption(x_22, x_611); +x_601 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_602 = l_Lean_checkTraceOption(x_22, x_601); lean_dec(x_22); -if (x_612 == 0) +if (x_602 == 0) { -lean_object* x_613; +lean_object* x_603; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_613 = x_591; -goto block_625; +x_603 = x_581; +goto block_615; } else { -lean_object* x_626; lean_object* x_627; -x_626 = lean_ctor_get(x_13, 0); -lean_inc(x_626); +lean_object* x_616; lean_object* x_617; +x_616 = lean_ctor_get(x_13, 0); +lean_inc(x_616); lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_627 = l_Lean_Elab_Term_isDefEq(x_626, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_591); -if (lean_obj_tag(x_627) == 0) +x_617 = l_Lean_Elab_Term_isDefEq(x_616, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_581); +if (lean_obj_tag(x_617) == 0) { -lean_object* x_628; -x_628 = lean_ctor_get(x_627, 1); -lean_inc(x_628); -lean_dec(x_627); -x_613 = x_628; -goto block_625; +lean_object* x_618; +x_618 = lean_ctor_get(x_617, 1); +lean_inc(x_618); +lean_dec(x_617); +x_603 = x_618; +goto block_615; } else { -uint8_t x_629; +uint8_t x_619; lean_dec(x_8); lean_dec(x_19); lean_dec(x_17); @@ -7028,251 +6923,251 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_629 = !lean_is_exclusive(x_627); -if (x_629 == 0) +x_619 = !lean_is_exclusive(x_617); +if (x_619 == 0) +{ +return x_617; +} +else +{ +lean_object* x_620; lean_object* x_621; lean_object* x_622; +x_620 = lean_ctor_get(x_617, 0); +x_621 = lean_ctor_get(x_617, 1); +lean_inc(x_621); +lean_inc(x_620); +lean_dec(x_617); +x_622 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_622, 0, x_620); +lean_ctor_set(x_622, 1, x_621); +return x_622; +} +} +} +block_615: +{ +lean_object* x_604; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_604 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_603); +lean_dec(x_17); +if (lean_obj_tag(x_604) == 0) +{ +lean_object* x_605; lean_object* x_606; uint8_t x_607; +x_605 = lean_ctor_get(x_604, 1); +lean_inc(x_605); +lean_dec(x_604); +lean_inc(x_2); +x_606 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__10(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_605); +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_19); +x_607 = !lean_is_exclusive(x_606); +if (x_607 == 0) +{ +lean_object* x_608; +x_608 = lean_ctor_get(x_606, 0); +lean_dec(x_608); +lean_ctor_set(x_606, 0, x_2); +return x_606; +} +else +{ +lean_object* x_609; lean_object* x_610; +x_609 = lean_ctor_get(x_606, 1); +lean_inc(x_609); +lean_dec(x_606); +x_610 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_610, 0, x_2); +lean_ctor_set(x_610, 1, x_609); +return x_610; +} +} +else +{ +uint8_t x_611; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_611 = !lean_is_exclusive(x_604); +if (x_611 == 0) +{ +return x_604; +} +else +{ +lean_object* x_612; lean_object* x_613; lean_object* x_614; +x_612 = lean_ctor_get(x_604, 0); +x_613 = lean_ctor_get(x_604, 1); +lean_inc(x_613); +lean_inc(x_612); +lean_dec(x_604); +x_614 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_614, 0, x_612); +lean_ctor_set(x_614, 1, x_613); +return x_614; +} +} +} +} +else +{ +lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; +lean_inc(x_2); +x_623 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_623, 0, x_2); +x_624 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_601, x_623, x_4, x_5, x_6, x_7, x_8, x_9, x_581); +x_625 = lean_ctor_get(x_624, 1); +lean_inc(x_625); +lean_dec(x_624); +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_626 = x_625; +goto block_638; +} +else +{ +lean_object* x_639; lean_object* x_640; +x_639 = lean_ctor_get(x_13, 0); +lean_inc(x_639); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_640 = l_Lean_Elab_Term_isDefEq(x_639, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_625); +if (lean_obj_tag(x_640) == 0) +{ +lean_object* x_641; +x_641 = lean_ctor_get(x_640, 1); +lean_inc(x_641); +lean_dec(x_640); +x_626 = x_641; +goto block_638; +} +else +{ +uint8_t x_642; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_642 = !lean_is_exclusive(x_640); +if (x_642 == 0) +{ +return x_640; +} +else +{ +lean_object* x_643; lean_object* x_644; lean_object* x_645; +x_643 = lean_ctor_get(x_640, 0); +x_644 = lean_ctor_get(x_640, 1); +lean_inc(x_644); +lean_inc(x_643); +lean_dec(x_640); +x_645 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_645, 0, x_643); +lean_ctor_set(x_645, 1, x_644); +return x_645; +} +} +} +block_638: +{ +lean_object* x_627; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_627 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_626); +lean_dec(x_17); +if (lean_obj_tag(x_627) == 0) +{ +lean_object* x_628; lean_object* x_629; uint8_t x_630; +x_628 = lean_ctor_get(x_627, 1); +lean_inc(x_628); +lean_dec(x_627); +lean_inc(x_2); +x_629 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__11(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_628); +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_19); +x_630 = !lean_is_exclusive(x_629); +if (x_630 == 0) +{ +lean_object* x_631; +x_631 = lean_ctor_get(x_629, 0); +lean_dec(x_631); +lean_ctor_set(x_629, 0, x_2); +return x_629; +} +else +{ +lean_object* x_632; lean_object* x_633; +x_632 = lean_ctor_get(x_629, 1); +lean_inc(x_632); +lean_dec(x_629); +x_633 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_633, 0, x_2); +lean_ctor_set(x_633, 1, x_632); +return x_633; +} +} +else +{ +uint8_t x_634; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_634 = !lean_is_exclusive(x_627); +if (x_634 == 0) { return x_627; } else { -lean_object* x_630; lean_object* x_631; lean_object* x_632; -x_630 = lean_ctor_get(x_627, 0); -x_631 = lean_ctor_get(x_627, 1); -lean_inc(x_631); -lean_inc(x_630); -lean_dec(x_627); -x_632 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_632, 0, x_630); -lean_ctor_set(x_632, 1, x_631); -return x_632; -} -} -} -block_625: -{ -lean_object* x_614; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_614 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_613); -lean_dec(x_17); -if (lean_obj_tag(x_614) == 0) -{ -lean_object* x_615; lean_object* x_616; uint8_t x_617; -x_615 = lean_ctor_get(x_614, 1); -lean_inc(x_615); -lean_dec(x_614); -lean_inc(x_2); -x_616 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__10(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_615); -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_19); -x_617 = !lean_is_exclusive(x_616); -if (x_617 == 0) -{ -lean_object* x_618; -x_618 = lean_ctor_get(x_616, 0); -lean_dec(x_618); -lean_ctor_set(x_616, 0, x_2); -return x_616; -} -else -{ -lean_object* x_619; lean_object* x_620; -x_619 = lean_ctor_get(x_616, 1); -lean_inc(x_619); -lean_dec(x_616); -x_620 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_620, 0, x_2); -lean_ctor_set(x_620, 1, x_619); -return x_620; -} -} -else -{ -uint8_t x_621; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_621 = !lean_is_exclusive(x_614); -if (x_621 == 0) -{ -return x_614; -} -else -{ -lean_object* x_622; lean_object* x_623; lean_object* x_624; -x_622 = lean_ctor_get(x_614, 0); -x_623 = lean_ctor_get(x_614, 1); -lean_inc(x_623); -lean_inc(x_622); -lean_dec(x_614); -x_624 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_624, 0, x_622); -lean_ctor_set(x_624, 1, x_623); -return x_624; -} -} -} -} -else -{ -lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; -lean_inc(x_2); -x_633 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_633, 0, x_2); -x_634 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_611, x_633, x_4, x_5, x_6, x_7, x_8, x_9, x_591); -x_635 = lean_ctor_get(x_634, 1); +lean_object* x_635; lean_object* x_636; lean_object* x_637; +x_635 = lean_ctor_get(x_627, 0); +x_636 = lean_ctor_get(x_627, 1); +lean_inc(x_636); lean_inc(x_635); -lean_dec(x_634); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_636 = x_635; -goto block_648; -} -else -{ -lean_object* x_649; lean_object* x_650; -x_649 = lean_ctor_get(x_13, 0); -lean_inc(x_649); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_650 = l_Lean_Elab_Term_isDefEq(x_649, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_635); -if (lean_obj_tag(x_650) == 0) -{ -lean_object* x_651; -x_651 = lean_ctor_get(x_650, 1); -lean_inc(x_651); -lean_dec(x_650); -x_636 = x_651; -goto block_648; -} -else -{ -uint8_t x_652; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_652 = !lean_is_exclusive(x_650); -if (x_652 == 0) -{ -return x_650; -} -else -{ -lean_object* x_653; lean_object* x_654; lean_object* x_655; -x_653 = lean_ctor_get(x_650, 0); -x_654 = lean_ctor_get(x_650, 1); -lean_inc(x_654); -lean_inc(x_653); -lean_dec(x_650); -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; -} -} -} -block_648: -{ -lean_object* x_637; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_637 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_636); -lean_dec(x_17); -if (lean_obj_tag(x_637) == 0) -{ -lean_object* x_638; lean_object* x_639; uint8_t x_640; -x_638 = lean_ctor_get(x_637, 1); -lean_inc(x_638); -lean_dec(x_637); -lean_inc(x_2); -x_639 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__11(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_638); -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_19); -x_640 = !lean_is_exclusive(x_639); -if (x_640 == 0) -{ -lean_object* x_641; -x_641 = lean_ctor_get(x_639, 0); -lean_dec(x_641); -lean_ctor_set(x_639, 0, x_2); -return x_639; -} -else -{ -lean_object* x_642; lean_object* x_643; -x_642 = lean_ctor_get(x_639, 1); -lean_inc(x_642); -lean_dec(x_639); -x_643 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_643, 0, x_2); -lean_ctor_set(x_643, 1, x_642); -return x_643; -} -} -else -{ -uint8_t x_644; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_644 = !lean_is_exclusive(x_637); -if (x_644 == 0) -{ +lean_dec(x_627); +x_637 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_637, 0, x_635); +lean_ctor_set(x_637, 1, x_636); return x_637; } -else -{ -lean_object* x_645; lean_object* x_646; lean_object* x_647; -x_645 = lean_ctor_get(x_637, 0); -x_646 = lean_ctor_get(x_637, 1); -lean_inc(x_646); -lean_inc(x_645); -lean_dec(x_637); -x_647 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_647, 0, x_645); -lean_ctor_set(x_647, 1, x_646); -return x_647; -} } } } @@ -7280,11 +7175,11 @@ return x_647; } else { -lean_object* x_656; lean_object* x_657; +lean_object* x_646; lean_object* x_647; lean_dec(x_112); lean_dec(x_22); lean_dec(x_3); -x_656 = lean_array_fget(x_12, x_15); +x_646 = lean_array_fget(x_12, x_15); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -7292,34 +7187,34 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_657 = l___private_Lean_Elab_App_2__elabArg(x_2, x_656, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_591); -if (lean_obj_tag(x_657) == 0) +x_647 = l___private_Lean_Elab_App_2__elabArg(x_2, x_646, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_581); +if (lean_obj_tag(x_647) == 0) { -lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; uint8_t x_662; lean_object* x_663; lean_object* x_664; -x_658 = lean_ctor_get(x_657, 0); -lean_inc(x_658); -x_659 = lean_ctor_get(x_657, 1); -lean_inc(x_659); -lean_dec(x_657); -x_660 = lean_unsigned_to_nat(1u); -x_661 = lean_nat_add(x_15, x_660); +lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; uint8_t x_652; lean_object* x_653; lean_object* x_654; +x_648 = lean_ctor_get(x_647, 0); +lean_inc(x_648); +x_649 = lean_ctor_get(x_647, 1); +lean_inc(x_649); +lean_dec(x_647); +x_650 = lean_unsigned_to_nat(1u); +x_651 = lean_nat_add(x_15, x_650); lean_dec(x_15); -x_662 = 1; -lean_ctor_set(x_1, 3, x_661); -lean_ctor_set_uint8(x_1, sizeof(void*)*8 + 1, x_662); -lean_inc(x_658); -x_663 = l_Lean_mkApp(x_2, x_658); -x_664 = lean_expr_instantiate1(x_114, x_658); -lean_dec(x_658); +x_652 = 1; +lean_ctor_set(x_1, 3, x_651); +lean_ctor_set_uint8(x_1, sizeof(void*)*8 + 1, x_652); +lean_inc(x_648); +x_653 = l_Lean_mkApp(x_2, x_648); +x_654 = lean_expr_instantiate1(x_114, x_648); +lean_dec(x_648); lean_dec(x_114); -x_2 = x_663; -x_3 = x_664; -x_10 = x_659; +x_2 = x_653; +x_3 = x_654; +x_10 = x_649; goto _start; } else { -uint8_t x_666; +uint8_t x_656; lean_free_object(x_1); lean_dec(x_114); lean_dec(x_8); @@ -7337,30 +7232,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_666 = !lean_is_exclusive(x_657); -if (x_666 == 0) +x_656 = !lean_is_exclusive(x_647); +if (x_656 == 0) { -return x_657; +return x_647; } else { -lean_object* x_667; lean_object* x_668; lean_object* x_669; -x_667 = lean_ctor_get(x_657, 0); -x_668 = lean_ctor_get(x_657, 1); -lean_inc(x_668); -lean_inc(x_667); -lean_dec(x_657); -x_669 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_669, 0, x_667); -lean_ctor_set(x_669, 1, x_668); -return x_669; +lean_object* x_657; lean_object* x_658; lean_object* x_659; +x_657 = lean_ctor_get(x_647, 0); +x_658 = lean_ctor_get(x_647, 1); +lean_inc(x_658); +lean_inc(x_657); +lean_dec(x_647); +x_659 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_659, 0, x_657); +lean_ctor_set(x_659, 1, x_658); +return x_659; } } } } else { -uint8_t x_670; +uint8_t x_660; lean_free_object(x_1); lean_dec(x_114); lean_dec(x_113); @@ -7382,50 +7277,50 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_670 = !lean_is_exclusive(x_581); -if (x_670 == 0) +x_660 = !lean_is_exclusive(x_571); +if (x_660 == 0) { -return x_581; +return x_571; } else { -lean_object* x_671; lean_object* x_672; lean_object* x_673; -x_671 = lean_ctor_get(x_581, 0); -x_672 = lean_ctor_get(x_581, 1); -lean_inc(x_672); -lean_inc(x_671); -lean_dec(x_581); -x_673 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_673, 0, x_671); -lean_ctor_set(x_673, 1, x_672); -return x_673; +lean_object* x_661; lean_object* x_662; lean_object* x_663; +x_661 = lean_ctor_get(x_571, 0); +x_662 = lean_ctor_get(x_571, 1); +lean_inc(x_662); +lean_inc(x_661); +lean_dec(x_571); +x_663 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_663, 0, x_661); +lean_ctor_set(x_663, 1, x_662); +return x_663; } } } else { lean_dec(x_1); -if (lean_obj_tag(x_581) == 0) +if (lean_obj_tag(x_571) == 0) { -lean_object* x_674; lean_object* x_675; uint8_t x_676; -x_674 = lean_ctor_get(x_581, 1); -lean_inc(x_674); -lean_dec(x_581); -x_675 = lean_array_get_size(x_12); -x_676 = lean_nat_dec_lt(x_15, x_675); -lean_dec(x_675); -if (x_676 == 0) +lean_object* x_664; lean_object* x_665; uint8_t x_666; +x_664 = lean_ctor_get(x_571, 1); +lean_inc(x_664); +lean_dec(x_571); +x_665 = lean_array_get_size(x_12); +x_666 = lean_nat_dec_lt(x_15, x_665); +lean_dec(x_665); +if (x_666 == 0) { -uint8_t x_677; +uint8_t x_667; lean_dec(x_114); lean_dec(x_113); lean_dec(x_18); lean_dec(x_15); lean_dec(x_12); -x_677 = l_Array_isEmpty___rarg(x_16); -if (x_677 == 0) +x_667 = l_Array_isEmpty___rarg(x_16); +if (x_667 == 0) { -lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; +lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_dec(x_22); lean_dec(x_19); lean_dec(x_17); @@ -7433,81 +7328,81 @@ lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_678 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_678, 0, x_112); -x_679 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_680 = lean_alloc_ctor(9, 2, 0); +x_668 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_668, 0, x_112); +x_669 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_670 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_670, 0, x_669); +lean_ctor_set(x_670, 1, x_668); +x_671 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_672 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_672, 0, x_670); +lean_ctor_set(x_672, 1, x_671); +x_673 = x_16; +x_674 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_673); +x_675 = x_674; +x_676 = l_Array_toList___rarg(x_675); +lean_dec(x_675); +x_677 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_676); +x_678 = l_Array_HasRepr___rarg___closed__1; +x_679 = lean_string_append(x_678, x_677); +lean_dec(x_677); +x_680 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_680, 0, x_679); -lean_ctor_set(x_680, 1, x_678); -x_681 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_681 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_681, 0, x_680); x_682 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_682, 0, x_680); +lean_ctor_set(x_682, 0, x_672); lean_ctor_set(x_682, 1, x_681); -x_683 = x_16; -x_684 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_683); -x_685 = x_684; -x_686 = l_Array_toList___rarg(x_685); -lean_dec(x_685); -x_687 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_686); -x_688 = l_Array_HasRepr___rarg___closed__1; -x_689 = lean_string_append(x_688, x_687); -lean_dec(x_687); -x_690 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_690, 0, x_689); -x_691 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_691, 0, x_690); -x_692 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_692, 0, x_682); -lean_ctor_set(x_692, 1, x_691); -x_693 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_692, x_4, x_5, x_6, x_7, x_8, x_9, x_674); +x_683 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_682, x_4, x_5, x_6, x_7, x_8, x_9, x_664); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_693; +return x_683; } else { -lean_object* x_694; uint8_t x_695; +lean_object* x_684; uint8_t x_685; lean_dec(x_112); lean_dec(x_16); -x_694 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_695 = l_Lean_checkTraceOption(x_22, x_694); +x_684 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_685 = l_Lean_checkTraceOption(x_22, x_684); lean_dec(x_22); -if (x_695 == 0) +if (x_685 == 0) { -lean_object* x_696; +lean_object* x_686; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_696 = x_674; -goto block_707; +x_686 = x_664; +goto block_697; } else { -lean_object* x_708; lean_object* x_709; -x_708 = lean_ctor_get(x_13, 0); -lean_inc(x_708); +lean_object* x_698; lean_object* x_699; +x_698 = lean_ctor_get(x_13, 0); +lean_inc(x_698); lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_709 = l_Lean_Elab_Term_isDefEq(x_708, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_674); -if (lean_obj_tag(x_709) == 0) +x_699 = l_Lean_Elab_Term_isDefEq(x_698, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_664); +if (lean_obj_tag(x_699) == 0) { -lean_object* x_710; -x_710 = lean_ctor_get(x_709, 1); -lean_inc(x_710); -lean_dec(x_709); -x_696 = x_710; -goto block_707; +lean_object* x_700; +x_700 = lean_ctor_get(x_699, 1); +lean_inc(x_700); +lean_dec(x_699); +x_686 = x_700; +goto block_697; } else { -lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; +lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_dec(x_8); lean_dec(x_19); lean_dec(x_17); @@ -7518,46 +7413,46 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_711 = lean_ctor_get(x_709, 0); -lean_inc(x_711); -x_712 = lean_ctor_get(x_709, 1); -lean_inc(x_712); -if (lean_is_exclusive(x_709)) { - lean_ctor_release(x_709, 0); - lean_ctor_release(x_709, 1); - x_713 = x_709; +x_701 = lean_ctor_get(x_699, 0); +lean_inc(x_701); +x_702 = lean_ctor_get(x_699, 1); +lean_inc(x_702); +if (lean_is_exclusive(x_699)) { + lean_ctor_release(x_699, 0); + lean_ctor_release(x_699, 1); + x_703 = x_699; } else { - lean_dec_ref(x_709); - x_713 = lean_box(0); + lean_dec_ref(x_699); + x_703 = lean_box(0); } -if (lean_is_scalar(x_713)) { - x_714 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_703)) { + x_704 = lean_alloc_ctor(1, 2, 0); } else { - x_714 = x_713; + x_704 = x_703; } -lean_ctor_set(x_714, 0, x_711); -lean_ctor_set(x_714, 1, x_712); -return x_714; +lean_ctor_set(x_704, 0, x_701); +lean_ctor_set(x_704, 1, x_702); +return x_704; } } -block_707: +block_697: { -lean_object* x_697; +lean_object* x_687; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_697 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_696); +x_687 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_686); lean_dec(x_17); -if (lean_obj_tag(x_697) == 0) +if (lean_obj_tag(x_687) == 0) { -lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; -x_698 = lean_ctor_get(x_697, 1); -lean_inc(x_698); -lean_dec(x_697); +lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; +x_688 = lean_ctor_get(x_687, 1); +lean_inc(x_688); +lean_dec(x_687); lean_inc(x_2); -x_699 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__10(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_698); +x_689 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__10(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_688); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -7565,28 +7460,28 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); -x_700 = lean_ctor_get(x_699, 1); -lean_inc(x_700); -if (lean_is_exclusive(x_699)) { - lean_ctor_release(x_699, 0); - lean_ctor_release(x_699, 1); - x_701 = x_699; +x_690 = lean_ctor_get(x_689, 1); +lean_inc(x_690); +if (lean_is_exclusive(x_689)) { + lean_ctor_release(x_689, 0); + lean_ctor_release(x_689, 1); + x_691 = x_689; } else { - lean_dec_ref(x_699); - x_701 = lean_box(0); + lean_dec_ref(x_689); + x_691 = lean_box(0); } -if (lean_is_scalar(x_701)) { - x_702 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_691)) { + x_692 = lean_alloc_ctor(0, 2, 0); } else { - x_702 = x_701; + x_692 = x_691; } -lean_ctor_set(x_702, 0, x_2); -lean_ctor_set(x_702, 1, x_700); -return x_702; +lean_ctor_set(x_692, 0, x_2); +lean_ctor_set(x_692, 1, x_690); +return x_692; } else { -lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; +lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_dec(x_8); lean_dec(x_19); lean_dec(x_11); @@ -7596,148 +7491,148 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_703 = lean_ctor_get(x_697, 0); -lean_inc(x_703); -x_704 = lean_ctor_get(x_697, 1); -lean_inc(x_704); -if (lean_is_exclusive(x_697)) { - lean_ctor_release(x_697, 0); - lean_ctor_release(x_697, 1); - x_705 = x_697; +x_693 = lean_ctor_get(x_687, 0); +lean_inc(x_693); +x_694 = lean_ctor_get(x_687, 1); +lean_inc(x_694); +if (lean_is_exclusive(x_687)) { + lean_ctor_release(x_687, 0); + lean_ctor_release(x_687, 1); + x_695 = x_687; } else { - lean_dec_ref(x_697); - x_705 = lean_box(0); + lean_dec_ref(x_687); + x_695 = lean_box(0); } -if (lean_is_scalar(x_705)) { - x_706 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_695)) { + x_696 = lean_alloc_ctor(1, 2, 0); } else { - x_706 = x_705; + x_696 = x_695; } -lean_ctor_set(x_706, 0, x_703); -lean_ctor_set(x_706, 1, x_704); -return x_706; +lean_ctor_set(x_696, 0, x_693); +lean_ctor_set(x_696, 1, x_694); +return x_696; } } } else { +lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; +lean_inc(x_2); +x_705 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_705, 0, x_2); +x_706 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_684, x_705, x_4, x_5, x_6, x_7, x_8, x_9, x_664); +x_707 = lean_ctor_get(x_706, 1); +lean_inc(x_707); +lean_dec(x_706); +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_708 = x_707; +goto block_719; +} +else +{ +lean_object* x_720; lean_object* x_721; +x_720 = lean_ctor_get(x_13, 0); +lean_inc(x_720); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_721 = l_Lean_Elab_Term_isDefEq(x_720, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_707); +if (lean_obj_tag(x_721) == 0) +{ +lean_object* x_722; +x_722 = lean_ctor_get(x_721, 1); +lean_inc(x_722); +lean_dec(x_721); +x_708 = x_722; +goto block_719; +} +else +{ +lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_723 = lean_ctor_get(x_721, 0); +lean_inc(x_723); +x_724 = lean_ctor_get(x_721, 1); +lean_inc(x_724); +if (lean_is_exclusive(x_721)) { + lean_ctor_release(x_721, 0); + lean_ctor_release(x_721, 1); + x_725 = x_721; +} else { + lean_dec_ref(x_721); + x_725 = lean_box(0); +} +if (lean_is_scalar(x_725)) { + x_726 = lean_alloc_ctor(1, 2, 0); +} else { + x_726 = x_725; +} +lean_ctor_set(x_726, 0, x_723); +lean_ctor_set(x_726, 1, x_724); +return x_726; +} +} +block_719: +{ +lean_object* x_709; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_709 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_708); +lean_dec(x_17); +if (lean_obj_tag(x_709) == 0) +{ +lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; +x_710 = lean_ctor_get(x_709, 1); +lean_inc(x_710); +lean_dec(x_709); +lean_inc(x_2); +x_711 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__11(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_710); +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_19); +x_712 = lean_ctor_get(x_711, 1); +lean_inc(x_712); +if (lean_is_exclusive(x_711)) { + lean_ctor_release(x_711, 0); + lean_ctor_release(x_711, 1); + x_713 = x_711; +} else { + lean_dec_ref(x_711); + x_713 = lean_box(0); +} +if (lean_is_scalar(x_713)) { + x_714 = lean_alloc_ctor(0, 2, 0); +} else { + x_714 = x_713; +} +lean_ctor_set(x_714, 0, x_2); +lean_ctor_set(x_714, 1, x_712); +return x_714; +} +else +{ lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; -lean_inc(x_2); -x_715 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_715, 0, x_2); -x_716 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_694, x_715, x_4, x_5, x_6, x_7, x_8, x_9, x_674); -x_717 = lean_ctor_get(x_716, 1); -lean_inc(x_717); -lean_dec(x_716); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_718 = x_717; -goto block_729; -} -else -{ -lean_object* x_730; lean_object* x_731; -x_730 = lean_ctor_get(x_13, 0); -lean_inc(x_730); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_731 = l_Lean_Elab_Term_isDefEq(x_730, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_717); -if (lean_obj_tag(x_731) == 0) -{ -lean_object* x_732; -x_732 = lean_ctor_get(x_731, 1); -lean_inc(x_732); -lean_dec(x_731); -x_718 = x_732; -goto block_729; -} -else -{ -lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_733 = lean_ctor_get(x_731, 0); -lean_inc(x_733); -x_734 = lean_ctor_get(x_731, 1); -lean_inc(x_734); -if (lean_is_exclusive(x_731)) { - lean_ctor_release(x_731, 0); - lean_ctor_release(x_731, 1); - x_735 = x_731; -} else { - lean_dec_ref(x_731); - x_735 = lean_box(0); -} -if (lean_is_scalar(x_735)) { - x_736 = lean_alloc_ctor(1, 2, 0); -} else { - x_736 = x_735; -} -lean_ctor_set(x_736, 0, x_733); -lean_ctor_set(x_736, 1, x_734); -return x_736; -} -} -block_729: -{ -lean_object* x_719; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_719 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_718); -lean_dec(x_17); -if (lean_obj_tag(x_719) == 0) -{ -lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; -x_720 = lean_ctor_get(x_719, 1); -lean_inc(x_720); -lean_dec(x_719); -lean_inc(x_2); -x_721 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__11(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_720); -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_19); -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; -} else { - lean_dec_ref(x_721); - x_723 = lean_box(0); -} -if (lean_is_scalar(x_723)) { - x_724 = lean_alloc_ctor(0, 2, 0); -} else { - x_724 = x_723; -} -lean_ctor_set(x_724, 0, x_2); -lean_ctor_set(x_724, 1, x_722); -return x_724; -} -else -{ -lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_dec(x_8); lean_dec(x_19); lean_dec(x_11); @@ -7747,26 +7642,26 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_725 = lean_ctor_get(x_719, 0); -lean_inc(x_725); -x_726 = lean_ctor_get(x_719, 1); -lean_inc(x_726); -if (lean_is_exclusive(x_719)) { - lean_ctor_release(x_719, 0); - lean_ctor_release(x_719, 1); - x_727 = x_719; +x_715 = lean_ctor_get(x_709, 0); +lean_inc(x_715); +x_716 = lean_ctor_get(x_709, 1); +lean_inc(x_716); +if (lean_is_exclusive(x_709)) { + lean_ctor_release(x_709, 0); + lean_ctor_release(x_709, 1); + x_717 = x_709; } else { - lean_dec_ref(x_719); - x_727 = lean_box(0); + lean_dec_ref(x_709); + x_717 = lean_box(0); } -if (lean_is_scalar(x_727)) { - x_728 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_717)) { + x_718 = lean_alloc_ctor(1, 2, 0); } else { - x_728 = x_727; + x_718 = x_717; } -lean_ctor_set(x_728, 0, x_725); -lean_ctor_set(x_728, 1, x_726); -return x_728; +lean_ctor_set(x_718, 0, x_715); +lean_ctor_set(x_718, 1, x_716); +return x_718; } } } @@ -7774,11 +7669,11 @@ return x_728; } else { -lean_object* x_737; lean_object* x_738; +lean_object* x_727; lean_object* x_728; lean_dec(x_112); lean_dec(x_22); lean_dec(x_3); -x_737 = lean_array_fget(x_12, x_15); +x_727 = lean_array_fget(x_12, x_15); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -7786,44 +7681,44 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_738 = l___private_Lean_Elab_App_2__elabArg(x_2, x_737, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_674); -if (lean_obj_tag(x_738) == 0) +x_728 = l___private_Lean_Elab_App_2__elabArg(x_2, x_727, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_664); +if (lean_obj_tag(x_728) == 0) { -lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; uint8_t x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; -x_739 = lean_ctor_get(x_738, 0); -lean_inc(x_739); -x_740 = lean_ctor_get(x_738, 1); -lean_inc(x_740); -lean_dec(x_738); -x_741 = lean_unsigned_to_nat(1u); -x_742 = lean_nat_add(x_15, x_741); +lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; uint8_t x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; +x_729 = lean_ctor_get(x_728, 0); +lean_inc(x_729); +x_730 = lean_ctor_get(x_728, 1); +lean_inc(x_730); +lean_dec(x_728); +x_731 = lean_unsigned_to_nat(1u); +x_732 = lean_nat_add(x_15, x_731); lean_dec(x_15); -x_743 = 1; -x_744 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_744, 0, x_11); -lean_ctor_set(x_744, 1, x_12); -lean_ctor_set(x_744, 2, x_13); -lean_ctor_set(x_744, 3, x_742); -lean_ctor_set(x_744, 4, x_16); -lean_ctor_set(x_744, 5, x_17); -lean_ctor_set(x_744, 6, x_18); -lean_ctor_set(x_744, 7, x_19); -lean_ctor_set_uint8(x_744, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_744, sizeof(void*)*8 + 1, x_743); -lean_inc(x_739); -x_745 = l_Lean_mkApp(x_2, x_739); -x_746 = lean_expr_instantiate1(x_114, x_739); -lean_dec(x_739); +x_733 = 1; +x_734 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_734, 0, x_11); +lean_ctor_set(x_734, 1, x_12); +lean_ctor_set(x_734, 2, x_13); +lean_ctor_set(x_734, 3, x_732); +lean_ctor_set(x_734, 4, x_16); +lean_ctor_set(x_734, 5, x_17); +lean_ctor_set(x_734, 6, x_18); +lean_ctor_set(x_734, 7, x_19); +lean_ctor_set_uint8(x_734, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_734, sizeof(void*)*8 + 1, x_733); +lean_inc(x_729); +x_735 = l_Lean_mkApp(x_2, x_729); +x_736 = lean_expr_instantiate1(x_114, x_729); +lean_dec(x_729); lean_dec(x_114); -x_1 = x_744; -x_2 = x_745; -x_3 = x_746; -x_10 = x_740; +x_1 = x_734; +x_2 = x_735; +x_3 = x_736; +x_10 = x_730; goto _start; } else { -lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; +lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_dec(x_114); lean_dec(x_8); lean_dec(x_19); @@ -7840,32 +7735,32 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_748 = lean_ctor_get(x_738, 0); -lean_inc(x_748); -x_749 = lean_ctor_get(x_738, 1); -lean_inc(x_749); -if (lean_is_exclusive(x_738)) { - lean_ctor_release(x_738, 0); - lean_ctor_release(x_738, 1); - x_750 = x_738; +x_738 = lean_ctor_get(x_728, 0); +lean_inc(x_738); +x_739 = lean_ctor_get(x_728, 1); +lean_inc(x_739); +if (lean_is_exclusive(x_728)) { + lean_ctor_release(x_728, 0); + lean_ctor_release(x_728, 1); + x_740 = x_728; } else { - lean_dec_ref(x_738); - x_750 = lean_box(0); + lean_dec_ref(x_728); + x_740 = lean_box(0); } -if (lean_is_scalar(x_750)) { - x_751 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_740)) { + x_741 = lean_alloc_ctor(1, 2, 0); } else { - x_751 = x_750; + x_741 = x_740; } -lean_ctor_set(x_751, 0, x_748); -lean_ctor_set(x_751, 1, x_749); -return x_751; +lean_ctor_set(x_741, 0, x_738); +lean_ctor_set(x_741, 1, x_739); +return x_741; } } } else { -lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; +lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_dec(x_114); lean_dec(x_113); lean_dec(x_112); @@ -7886,67 +7781,67 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_752 = lean_ctor_get(x_581, 0); -lean_inc(x_752); -x_753 = lean_ctor_get(x_581, 1); -lean_inc(x_753); -if (lean_is_exclusive(x_581)) { - lean_ctor_release(x_581, 0); - lean_ctor_release(x_581, 1); - x_754 = x_581; +x_742 = lean_ctor_get(x_571, 0); +lean_inc(x_742); +x_743 = lean_ctor_get(x_571, 1); +lean_inc(x_743); +if (lean_is_exclusive(x_571)) { + lean_ctor_release(x_571, 0); + lean_ctor_release(x_571, 1); + x_744 = x_571; } else { - lean_dec_ref(x_581); - x_754 = lean_box(0); + lean_dec_ref(x_571); + x_744 = lean_box(0); } -if (lean_is_scalar(x_754)) { - x_755 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_744)) { + x_745 = lean_alloc_ctor(1, 2, 0); } else { - x_755 = x_754; + x_745 = x_744; } -lean_ctor_set(x_755, 0, x_752); -lean_ctor_set(x_755, 1, x_753); -return x_755; +lean_ctor_set(x_745, 0, x_742); +lean_ctor_set(x_745, 1, x_743); +return x_745; } } } } case 2: { -lean_object* x_756; uint8_t x_757; +lean_object* x_746; uint8_t x_747; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); lean_inc(x_1); -x_756 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_29); -x_757 = !lean_is_exclusive(x_1); -if (x_757 == 0) +x_746 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_29); +x_747 = !lean_is_exclusive(x_1); +if (x_747 == 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; -x_758 = lean_ctor_get(x_1, 7); -lean_dec(x_758); -x_759 = lean_ctor_get(x_1, 6); -lean_dec(x_759); -x_760 = lean_ctor_get(x_1, 5); -lean_dec(x_760); -x_761 = lean_ctor_get(x_1, 4); -lean_dec(x_761); -x_762 = lean_ctor_get(x_1, 3); -lean_dec(x_762); -x_763 = lean_ctor_get(x_1, 2); -lean_dec(x_763); -x_764 = lean_ctor_get(x_1, 1); -lean_dec(x_764); -x_765 = lean_ctor_get(x_1, 0); -lean_dec(x_765); -if (lean_obj_tag(x_756) == 0) +lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; +x_748 = lean_ctor_get(x_1, 7); +lean_dec(x_748); +x_749 = lean_ctor_get(x_1, 6); +lean_dec(x_749); +x_750 = lean_ctor_get(x_1, 5); +lean_dec(x_750); +x_751 = lean_ctor_get(x_1, 4); +lean_dec(x_751); +x_752 = lean_ctor_get(x_1, 3); +lean_dec(x_752); +x_753 = lean_ctor_get(x_1, 2); +lean_dec(x_753); +x_754 = lean_ctor_get(x_1, 1); +lean_dec(x_754); +x_755 = lean_ctor_get(x_1, 0); +lean_dec(x_755); +if (lean_obj_tag(x_746) == 0) { -lean_object* x_766; uint8_t x_767; lean_object* x_768; uint8_t x_769; -x_766 = lean_ctor_get(x_756, 1); -lean_inc(x_766); -lean_dec(x_756); -x_767 = 1; +lean_object* x_756; uint8_t x_757; lean_object* x_758; uint8_t x_759; +x_756 = lean_ctor_get(x_746, 1); +lean_inc(x_756); +lean_dec(x_746); +x_757 = 1; lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); @@ -7955,33 +7850,33 @@ lean_inc(x_15); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -lean_ctor_set_uint8(x_1, sizeof(void*)*8 + 1, x_767); -x_768 = lean_array_get_size(x_12); -x_769 = lean_nat_dec_lt(x_15, x_768); -lean_dec(x_768); -if (x_769 == 0) +lean_ctor_set_uint8(x_1, sizeof(void*)*8 + 1, x_757); +x_758 = lean_array_get_size(x_12); +x_759 = lean_nat_dec_lt(x_15, x_758); +lean_dec(x_758); +if (x_759 == 0) { lean_dec(x_18); lean_dec(x_15); lean_dec(x_12); if (x_14 == 0) { -lean_object* x_770; -x_770 = l_Lean_Expr_getOptParamDefault_x3f(x_113); -if (lean_obj_tag(x_770) == 0) +lean_object* x_760; +x_760 = l_Lean_Expr_getOptParamDefault_x3f(x_113); +if (lean_obj_tag(x_760) == 0) { -lean_object* x_771; -x_771 = l_Lean_Expr_getAutoParamTactic_x3f(x_113); -if (lean_obj_tag(x_771) == 0) +lean_object* x_761; +x_761 = l_Lean_Expr_getAutoParamTactic_x3f(x_113); +if (lean_obj_tag(x_761) == 0) { -uint8_t x_772; +uint8_t x_762; lean_dec(x_1); lean_dec(x_114); lean_dec(x_113); -x_772 = l_Array_isEmpty___rarg(x_16); -if (x_772 == 0) +x_762 = l_Array_isEmpty___rarg(x_16); +if (x_762 == 0) { -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; lean_object* x_787; lean_object* x_788; +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_dec(x_22); lean_dec(x_19); lean_dec(x_17); @@ -7989,81 +7884,81 @@ lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_773 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_773, 0, x_112); -x_774 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_775 = lean_alloc_ctor(9, 2, 0); +x_763 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_763, 0, x_112); +x_764 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_765 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_765, 0, x_764); +lean_ctor_set(x_765, 1, x_763); +x_766 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_767 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_767, 0, x_765); +lean_ctor_set(x_767, 1, x_766); +x_768 = x_16; +x_769 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_768); +x_770 = x_769; +x_771 = l_Array_toList___rarg(x_770); +lean_dec(x_770); +x_772 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_771); +x_773 = l_Array_HasRepr___rarg___closed__1; +x_774 = lean_string_append(x_773, x_772); +lean_dec(x_772); +x_775 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_775, 0, x_774); -lean_ctor_set(x_775, 1, x_773); -x_776 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_776 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_776, 0, x_775); x_777 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_777, 0, x_775); +lean_ctor_set(x_777, 0, x_767); lean_ctor_set(x_777, 1, x_776); -x_778 = x_16; -x_779 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_778); -x_780 = x_779; -x_781 = l_Array_toList___rarg(x_780); -lean_dec(x_780); -x_782 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_781); -x_783 = l_Array_HasRepr___rarg___closed__1; -x_784 = lean_string_append(x_783, x_782); -lean_dec(x_782); -x_785 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_785, 0, x_784); -x_786 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_786, 0, x_785); -x_787 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_787, 0, x_777); -lean_ctor_set(x_787, 1, x_786); -x_788 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_787, x_4, x_5, x_6, x_7, x_8, x_9, x_766); +x_778 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_777, x_4, x_5, x_6, x_7, x_8, x_9, x_756); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_788; +return x_778; } else { -lean_object* x_789; uint8_t x_790; +lean_object* x_779; uint8_t x_780; lean_dec(x_112); lean_dec(x_16); -x_789 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_790 = l_Lean_checkTraceOption(x_22, x_789); +x_779 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_780 = l_Lean_checkTraceOption(x_22, x_779); lean_dec(x_22); -if (x_790 == 0) +if (x_780 == 0) { -lean_object* x_791; +lean_object* x_781; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_791 = x_766; -goto block_803; +x_781 = x_756; +goto block_793; } else { -lean_object* x_804; lean_object* x_805; -x_804 = lean_ctor_get(x_13, 0); -lean_inc(x_804); +lean_object* x_794; lean_object* x_795; +x_794 = lean_ctor_get(x_13, 0); +lean_inc(x_794); lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_805 = l_Lean_Elab_Term_isDefEq(x_804, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_766); -if (lean_obj_tag(x_805) == 0) +x_795 = l_Lean_Elab_Term_isDefEq(x_794, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_756); +if (lean_obj_tag(x_795) == 0) { -lean_object* x_806; -x_806 = lean_ctor_get(x_805, 1); -lean_inc(x_806); -lean_dec(x_805); -x_791 = x_806; -goto block_803; +lean_object* x_796; +x_796 = lean_ctor_get(x_795, 1); +lean_inc(x_796); +lean_dec(x_795); +x_781 = x_796; +goto block_793; } else { -uint8_t x_807; +uint8_t x_797; lean_dec(x_8); lean_dec(x_19); lean_dec(x_17); @@ -8074,251 +7969,251 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_807 = !lean_is_exclusive(x_805); -if (x_807 == 0) +x_797 = !lean_is_exclusive(x_795); +if (x_797 == 0) +{ +return x_795; +} +else +{ +lean_object* x_798; lean_object* x_799; lean_object* x_800; +x_798 = lean_ctor_get(x_795, 0); +x_799 = lean_ctor_get(x_795, 1); +lean_inc(x_799); +lean_inc(x_798); +lean_dec(x_795); +x_800 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_800, 0, x_798); +lean_ctor_set(x_800, 1, x_799); +return x_800; +} +} +} +block_793: +{ +lean_object* x_782; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_782 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_781); +lean_dec(x_17); +if (lean_obj_tag(x_782) == 0) +{ +lean_object* x_783; lean_object* x_784; uint8_t x_785; +x_783 = lean_ctor_get(x_782, 1); +lean_inc(x_783); +lean_dec(x_782); +lean_inc(x_2); +x_784 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__12(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_783); +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_19); +x_785 = !lean_is_exclusive(x_784); +if (x_785 == 0) +{ +lean_object* x_786; +x_786 = lean_ctor_get(x_784, 0); +lean_dec(x_786); +lean_ctor_set(x_784, 0, x_2); +return x_784; +} +else +{ +lean_object* x_787; lean_object* x_788; +x_787 = lean_ctor_get(x_784, 1); +lean_inc(x_787); +lean_dec(x_784); +x_788 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_788, 0, x_2); +lean_ctor_set(x_788, 1, x_787); +return x_788; +} +} +else +{ +uint8_t x_789; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_789 = !lean_is_exclusive(x_782); +if (x_789 == 0) +{ +return x_782; +} +else +{ +lean_object* x_790; lean_object* x_791; lean_object* x_792; +x_790 = lean_ctor_get(x_782, 0); +x_791 = lean_ctor_get(x_782, 1); +lean_inc(x_791); +lean_inc(x_790); +lean_dec(x_782); +x_792 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_792, 0, x_790); +lean_ctor_set(x_792, 1, x_791); +return x_792; +} +} +} +} +else +{ +lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; +lean_inc(x_2); +x_801 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_801, 0, x_2); +x_802 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_779, x_801, x_4, x_5, x_6, x_7, x_8, x_9, x_756); +x_803 = lean_ctor_get(x_802, 1); +lean_inc(x_803); +lean_dec(x_802); +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_804 = x_803; +goto block_816; +} +else +{ +lean_object* x_817; lean_object* x_818; +x_817 = lean_ctor_get(x_13, 0); +lean_inc(x_817); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_818 = l_Lean_Elab_Term_isDefEq(x_817, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_803); +if (lean_obj_tag(x_818) == 0) +{ +lean_object* x_819; +x_819 = lean_ctor_get(x_818, 1); +lean_inc(x_819); +lean_dec(x_818); +x_804 = x_819; +goto block_816; +} +else +{ +uint8_t x_820; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_820 = !lean_is_exclusive(x_818); +if (x_820 == 0) +{ +return x_818; +} +else +{ +lean_object* x_821; lean_object* x_822; lean_object* x_823; +x_821 = lean_ctor_get(x_818, 0); +x_822 = lean_ctor_get(x_818, 1); +lean_inc(x_822); +lean_inc(x_821); +lean_dec(x_818); +x_823 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_823, 0, x_821); +lean_ctor_set(x_823, 1, x_822); +return x_823; +} +} +} +block_816: +{ +lean_object* x_805; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_805 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_804); +lean_dec(x_17); +if (lean_obj_tag(x_805) == 0) +{ +lean_object* x_806; lean_object* x_807; uint8_t x_808; +x_806 = lean_ctor_get(x_805, 1); +lean_inc(x_806); +lean_dec(x_805); +lean_inc(x_2); +x_807 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__13(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_806); +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_19); +x_808 = !lean_is_exclusive(x_807); +if (x_808 == 0) +{ +lean_object* x_809; +x_809 = lean_ctor_get(x_807, 0); +lean_dec(x_809); +lean_ctor_set(x_807, 0, x_2); +return x_807; +} +else +{ +lean_object* x_810; lean_object* x_811; +x_810 = lean_ctor_get(x_807, 1); +lean_inc(x_810); +lean_dec(x_807); +x_811 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_811, 0, x_2); +lean_ctor_set(x_811, 1, x_810); +return x_811; +} +} +else +{ +uint8_t x_812; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_812 = !lean_is_exclusive(x_805); +if (x_812 == 0) { return x_805; } else { -lean_object* x_808; lean_object* x_809; lean_object* x_810; -x_808 = lean_ctor_get(x_805, 0); -x_809 = lean_ctor_get(x_805, 1); -lean_inc(x_809); -lean_inc(x_808); -lean_dec(x_805); -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; -} -} -} -block_803: -{ -lean_object* x_792; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_792 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_791); -lean_dec(x_17); -if (lean_obj_tag(x_792) == 0) -{ -lean_object* x_793; lean_object* x_794; uint8_t x_795; -x_793 = lean_ctor_get(x_792, 1); -lean_inc(x_793); -lean_dec(x_792); -lean_inc(x_2); -x_794 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__12(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_793); -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_19); -x_795 = !lean_is_exclusive(x_794); -if (x_795 == 0) -{ -lean_object* x_796; -x_796 = lean_ctor_get(x_794, 0); -lean_dec(x_796); -lean_ctor_set(x_794, 0, x_2); -return x_794; -} -else -{ -lean_object* x_797; lean_object* x_798; -x_797 = lean_ctor_get(x_794, 1); -lean_inc(x_797); -lean_dec(x_794); -x_798 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_798, 0, x_2); -lean_ctor_set(x_798, 1, x_797); -return x_798; -} -} -else -{ -uint8_t x_799; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_799 = !lean_is_exclusive(x_792); -if (x_799 == 0) -{ -return x_792; -} -else -{ -lean_object* x_800; lean_object* x_801; lean_object* x_802; -x_800 = lean_ctor_get(x_792, 0); -x_801 = lean_ctor_get(x_792, 1); -lean_inc(x_801); -lean_inc(x_800); -lean_dec(x_792); -x_802 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_802, 0, x_800); -lean_ctor_set(x_802, 1, x_801); -return x_802; -} -} -} -} -else -{ -lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; -lean_inc(x_2); -x_811 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_811, 0, x_2); -x_812 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_789, x_811, x_4, x_5, x_6, x_7, x_8, x_9, x_766); -x_813 = lean_ctor_get(x_812, 1); +lean_object* x_813; lean_object* x_814; lean_object* x_815; +x_813 = lean_ctor_get(x_805, 0); +x_814 = lean_ctor_get(x_805, 1); +lean_inc(x_814); lean_inc(x_813); -lean_dec(x_812); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_814 = x_813; -goto block_826; -} -else -{ -lean_object* x_827; lean_object* x_828; -x_827 = lean_ctor_get(x_13, 0); -lean_inc(x_827); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_828 = l_Lean_Elab_Term_isDefEq(x_827, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_813); -if (lean_obj_tag(x_828) == 0) -{ -lean_object* x_829; -x_829 = lean_ctor_get(x_828, 1); -lean_inc(x_829); -lean_dec(x_828); -x_814 = x_829; -goto block_826; -} -else -{ -uint8_t x_830; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_830 = !lean_is_exclusive(x_828); -if (x_830 == 0) -{ -return x_828; -} -else -{ -lean_object* x_831; lean_object* x_832; lean_object* x_833; -x_831 = lean_ctor_get(x_828, 0); -x_832 = lean_ctor_get(x_828, 1); -lean_inc(x_832); -lean_inc(x_831); -lean_dec(x_828); -x_833 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_833, 0, x_831); -lean_ctor_set(x_833, 1, x_832); -return x_833; -} -} -} -block_826: -{ -lean_object* x_815; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_815 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_814); -lean_dec(x_17); -if (lean_obj_tag(x_815) == 0) -{ -lean_object* x_816; lean_object* x_817; uint8_t x_818; -x_816 = lean_ctor_get(x_815, 1); -lean_inc(x_816); -lean_dec(x_815); -lean_inc(x_2); -x_817 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__13(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_816); -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_19); -x_818 = !lean_is_exclusive(x_817); -if (x_818 == 0) -{ -lean_object* x_819; -x_819 = lean_ctor_get(x_817, 0); -lean_dec(x_819); -lean_ctor_set(x_817, 0, x_2); -return x_817; -} -else -{ -lean_object* x_820; lean_object* x_821; -x_820 = lean_ctor_get(x_817, 1); -lean_inc(x_820); -lean_dec(x_817); -x_821 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_821, 0, x_2); -lean_ctor_set(x_821, 1, x_820); -return x_821; -} -} -else -{ -uint8_t x_822; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_822 = !lean_is_exclusive(x_815); -if (x_822 == 0) -{ +lean_dec(x_805); +x_815 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_815, 0, x_813); +lean_ctor_set(x_815, 1, x_814); return x_815; } -else -{ -lean_object* x_823; lean_object* x_824; lean_object* x_825; -x_823 = lean_ctor_get(x_815, 0); -x_824 = lean_ctor_get(x_815, 1); -lean_inc(x_824); -lean_inc(x_823); -lean_dec(x_815); -x_825 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_825, 0, x_823); -lean_ctor_set(x_825, 1, x_824); -return x_825; -} } } } @@ -8326,7 +8221,7 @@ return x_825; } else { -lean_object* x_834; +lean_object* x_824; lean_dec(x_112); lean_dec(x_22); lean_dec(x_19); @@ -8334,99 +8229,110 @@ lean_dec(x_17); lean_dec(x_16); lean_dec(x_13); lean_dec(x_3); -x_834 = lean_ctor_get(x_771, 0); -lean_inc(x_834); -lean_dec(x_771); -if (lean_obj_tag(x_834) == 4) +x_824 = lean_ctor_get(x_761, 0); +lean_inc(x_824); +lean_dec(x_761); +if (lean_obj_tag(x_824) == 4) { -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_835 = lean_ctor_get(x_834, 0); -lean_inc(x_835); -lean_dec(x_834); -x_836 = lean_st_ref_get(x_9, x_766); -x_837 = lean_ctor_get(x_836, 0); -lean_inc(x_837); -x_838 = lean_ctor_get(x_836, 1); -lean_inc(x_838); -lean_dec(x_836); -x_839 = lean_ctor_get(x_837, 0); -lean_inc(x_839); -lean_dec(x_837); -x_840 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_839, x_835); -if (lean_obj_tag(x_840) == 0) +lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; +x_825 = lean_ctor_get(x_824, 0); +lean_inc(x_825); +lean_dec(x_824); +x_826 = lean_st_ref_get(x_9, x_756); +x_827 = lean_ctor_get(x_826, 0); +lean_inc(x_827); +x_828 = lean_ctor_get(x_826, 1); +lean_inc(x_828); +lean_dec(x_826); +x_829 = lean_ctor_get(x_827, 0); +lean_inc(x_829); +lean_dec(x_827); +x_830 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_829, x_825); +if (lean_obj_tag(x_830) == 0) { -lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; +lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_dec(x_1); lean_dec(x_114); lean_dec(x_113); lean_dec(x_11); lean_dec(x_2); -x_841 = lean_ctor_get(x_840, 0); -lean_inc(x_841); -lean_dec(x_840); -x_842 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_842, 0, x_841); -x_843 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_843, 0, x_842); -x_844 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_843, x_4, x_5, x_6, x_7, x_8, x_9, x_838); +x_831 = lean_ctor_get(x_830, 0); +lean_inc(x_831); +lean_dec(x_830); +x_832 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_832, 0, x_831); +x_833 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_833, 0, x_832); +x_834 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_833, x_4, x_5, x_6, x_7, x_8, x_9, x_828); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_844; +return x_834; } else { -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_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; -x_845 = lean_ctor_get(x_840, 0); -lean_inc(x_845); +lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* 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_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; +x_835 = lean_ctor_get(x_830, 0); +lean_inc(x_835); +lean_dec(x_830); +x_836 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_828); +x_837 = lean_ctor_get(x_836, 1); +lean_inc(x_837); +lean_dec(x_836); +x_838 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_837); +x_839 = lean_ctor_get(x_838, 1); +lean_inc(x_839); +lean_dec(x_838); +x_840 = l_Lean_Syntax_getArgs(x_835); +lean_dec(x_835); +x_841 = l_Array_empty___closed__1; +x_842 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_840, x_840, x_116, x_841); lean_dec(x_840); -x_846 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_838); -x_847 = lean_ctor_get(x_846, 1); -lean_inc(x_847); -lean_dec(x_846); -x_848 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_847); -x_849 = lean_ctor_get(x_848, 1); -lean_inc(x_849); -lean_dec(x_848); -x_850 = l_Lean_Syntax_getArgs(x_845); -lean_dec(x_845); -x_851 = l_Array_empty___closed__1; -x_852 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_850, x_850, x_116, x_851); -lean_dec(x_850); -x_853 = l_Lean_nullKind___closed__2; -x_854 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_854, 0, x_853); -lean_ctor_set(x_854, 1, x_852); -x_855 = lean_array_push(x_851, x_854); -x_856 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; +x_843 = l_Lean_nullKind___closed__2; +x_844 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_844, 0, x_843); +lean_ctor_set(x_844, 1, x_842); +x_845 = lean_array_push(x_841, x_844); +x_846 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; +x_847 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_847, 0, x_846); +lean_ctor_set(x_847, 1, x_845); +x_848 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__4; +x_849 = lean_array_push(x_848, x_847); +x_850 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__20; +x_851 = lean_array_push(x_849, x_850); +x_852 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; +x_853 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_853, 0, x_852); +lean_ctor_set(x_853, 1, x_851); +x_854 = lean_array_push(x_841, x_853); +x_855 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_855, 0, x_843); +lean_ctor_set(x_855, 1, x_854); +x_856 = lean_array_push(x_841, x_855); x_857 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_857, 0, x_856); -lean_ctor_set(x_857, 1, x_855); +lean_ctor_set(x_857, 0, x_846); +lean_ctor_set(x_857, 1, x_856); x_858 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; x_859 = lean_array_push(x_858, x_857); -x_860 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; -x_861 = lean_array_push(x_859, x_860); -x_862 = l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__2; -x_863 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_863, 0, x_862); -lean_ctor_set(x_863, 1, x_861); -x_864 = l_Lean_Syntax_getHeadInfo___main(x_11); +x_860 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +x_861 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_861, 0, x_860); +lean_ctor_set(x_861, 1, x_859); +x_862 = l_Lean_Syntax_copyInfo(x_861, x_11); lean_dec(x_11); -x_865 = l_Lean_Expr_getAppNumArgsAux___main(x_113, x_116); -x_866 = lean_nat_sub(x_865, x_116); -lean_dec(x_865); -x_867 = lean_unsigned_to_nat(1u); -x_868 = lean_nat_sub(x_866, x_867); -lean_dec(x_866); -x_869 = l_Lean_Expr_getRevArg_x21___main(x_113, x_868); +x_863 = l_Lean_Expr_getAppNumArgsAux___main(x_113, x_116); +x_864 = lean_nat_sub(x_863, x_116); +lean_dec(x_863); +x_865 = lean_unsigned_to_nat(1u); +x_866 = lean_nat_sub(x_864, x_865); +lean_dec(x_864); +x_867 = l_Lean_Expr_getRevArg_x21___main(x_113, x_866); lean_dec(x_113); -if (lean_obj_tag(x_864) == 0) -{ -lean_object* x_870; lean_object* x_871; -x_870 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_870, 0, x_863); +x_868 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_868, 0, x_862); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -8434,28 +8340,28 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_871 = l___private_Lean_Elab_App_2__elabArg(x_2, x_870, x_869, x_4, x_5, x_6, x_7, x_8, x_9, x_849); -if (lean_obj_tag(x_871) == 0) +x_869 = l___private_Lean_Elab_App_2__elabArg(x_2, x_868, x_867, x_4, x_5, x_6, x_7, x_8, x_9, x_839); +if (lean_obj_tag(x_869) == 0) { -lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; -x_872 = lean_ctor_get(x_871, 0); -lean_inc(x_872); -x_873 = lean_ctor_get(x_871, 1); -lean_inc(x_873); -lean_dec(x_871); -lean_inc(x_872); -x_874 = l_Lean_mkApp(x_2, x_872); -x_875 = lean_expr_instantiate1(x_114, x_872); -lean_dec(x_872); +lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; +x_870 = lean_ctor_get(x_869, 0); +lean_inc(x_870); +x_871 = lean_ctor_get(x_869, 1); +lean_inc(x_871); +lean_dec(x_869); +lean_inc(x_870); +x_872 = l_Lean_mkApp(x_2, x_870); +x_873 = lean_expr_instantiate1(x_114, x_870); +lean_dec(x_870); lean_dec(x_114); -x_2 = x_874; -x_3 = x_875; -x_10 = x_873; +x_2 = x_872; +x_3 = x_873; +x_10 = x_871; goto _start; } else { -uint8_t x_877; +uint8_t x_875; lean_dec(x_1); lean_dec(x_114); lean_dec(x_8); @@ -8465,236 +8371,395 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_877 = !lean_is_exclusive(x_871); -if (x_877 == 0) +x_875 = !lean_is_exclusive(x_869); +if (x_875 == 0) { -return x_871; +return x_869; } else { -lean_object* x_878; lean_object* x_879; lean_object* x_880; -x_878 = lean_ctor_get(x_871, 0); -x_879 = lean_ctor_get(x_871, 1); -lean_inc(x_879); -lean_inc(x_878); -lean_dec(x_871); -x_880 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_880, 0, x_878); -lean_ctor_set(x_880, 1, x_879); +lean_object* x_876; lean_object* x_877; lean_object* x_878; +x_876 = lean_ctor_get(x_869, 0); +x_877 = lean_ctor_get(x_869, 1); +lean_inc(x_877); +lean_inc(x_876); +lean_dec(x_869); +x_878 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_878, 0, x_876); +lean_ctor_set(x_878, 1, x_877); +return x_878; +} +} +} +} +else +{ +lean_object* x_879; lean_object* x_880; +lean_dec(x_824); +lean_dec(x_1); +lean_dec(x_114); +lean_dec(x_113); +lean_dec(x_11); +lean_dec(x_2); +x_879 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_880 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_879, x_4, x_5, x_6, x_7, x_8, x_9, x_756); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); return x_880; } } } else { -lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; -x_881 = lean_ctor_get(x_864, 0); +lean_object* x_881; lean_object* x_882; lean_object* x_883; +lean_dec(x_113); +lean_dec(x_112); +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_3); +x_881 = lean_ctor_get(x_760, 0); lean_inc(x_881); -lean_dec(x_864); -x_882 = l_Lean_Syntax_replaceInfo___main(x_881, x_863); -x_883 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_883, 0, x_882); +lean_dec(x_760); +lean_inc(x_881); +x_882 = l_Lean_mkApp(x_2, x_881); +x_883 = lean_expr_instantiate1(x_114, x_881); +lean_dec(x_881); +lean_dec(x_114); +x_2 = x_882; +x_3 = x_883; +x_10 = x_756; +goto _start; +} +} +else +{ +uint8_t x_885; +lean_dec(x_1); +lean_dec(x_114); +lean_dec(x_113); +x_885 = l_Array_isEmpty___rarg(x_16); +if (x_885 == 0) +{ +lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; 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_dec(x_22); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_3); +lean_dec(x_2); +x_886 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_886, 0, x_112); +x_887 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_888 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_888, 0, x_887); +lean_ctor_set(x_888, 1, x_886); +x_889 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_890 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_890, 0, x_888); +lean_ctor_set(x_890, 1, x_889); +x_891 = x_16; +x_892 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_891); +x_893 = x_892; +x_894 = l_Array_toList___rarg(x_893); +lean_dec(x_893); +x_895 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_894); +x_896 = l_Array_HasRepr___rarg___closed__1; +x_897 = lean_string_append(x_896, x_895); +lean_dec(x_895); +x_898 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_898, 0, x_897); +x_899 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_899, 0, x_898); +x_900 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_900, 0, x_890); +lean_ctor_set(x_900, 1, x_899); +x_901 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_900, x_4, x_5, x_6, x_7, x_8, x_9, x_756); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_901; +} +else +{ +lean_object* x_902; uint8_t x_903; +lean_dec(x_112); +lean_dec(x_16); +x_902 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_903 = l_Lean_checkTraceOption(x_22, x_902); +lean_dec(x_22); +if (x_903 == 0) +{ +lean_object* x_904; +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_904 = x_756; +goto block_916; +} +else +{ +lean_object* x_917; lean_object* x_918; +x_917 = lean_ctor_get(x_13, 0); +lean_inc(x_917); +lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_5); lean_inc(x_4); -lean_inc(x_2); -x_884 = l___private_Lean_Elab_App_2__elabArg(x_2, x_883, x_869, x_4, x_5, x_6, x_7, x_8, x_9, x_849); -if (lean_obj_tag(x_884) == 0) +x_918 = l_Lean_Elab_Term_isDefEq(x_917, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_756); +if (lean_obj_tag(x_918) == 0) { -lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; -x_885 = lean_ctor_get(x_884, 0); -lean_inc(x_885); -x_886 = lean_ctor_get(x_884, 1); -lean_inc(x_886); -lean_dec(x_884); -lean_inc(x_885); -x_887 = l_Lean_mkApp(x_2, x_885); -x_888 = lean_expr_instantiate1(x_114, x_885); -lean_dec(x_885); -lean_dec(x_114); -x_2 = x_887; -x_3 = x_888; -x_10 = x_886; -goto _start; +lean_object* x_919; +x_919 = lean_ctor_get(x_918, 1); +lean_inc(x_919); +lean_dec(x_918); +x_904 = x_919; +goto block_916; } else { -uint8_t x_890; -lean_dec(x_1); -lean_dec(x_114); +uint8_t x_920; lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_890 = !lean_is_exclusive(x_884); -if (x_890 == 0) +x_920 = !lean_is_exclusive(x_918); +if (x_920 == 0) { -return x_884; +return x_918; } else { -lean_object* x_891; lean_object* x_892; lean_object* x_893; -x_891 = lean_ctor_get(x_884, 0); -x_892 = lean_ctor_get(x_884, 1); -lean_inc(x_892); -lean_inc(x_891); -lean_dec(x_884); -x_893 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_893, 0, x_891); -lean_ctor_set(x_893, 1, x_892); -return x_893; +lean_object* x_921; lean_object* x_922; lean_object* x_923; +x_921 = lean_ctor_get(x_918, 0); +x_922 = lean_ctor_get(x_918, 1); +lean_inc(x_922); +lean_inc(x_921); +lean_dec(x_918); +x_923 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_923, 0, x_921); +lean_ctor_set(x_923, 1, x_922); +return x_923; } } } -} -} -else +block_916: { -lean_object* x_894; lean_object* x_895; -lean_dec(x_834); -lean_dec(x_1); -lean_dec(x_114); -lean_dec(x_113); -lean_dec(x_11); -lean_dec(x_2); -x_894 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; -x_895 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_894, x_4, x_5, x_6, x_7, x_8, x_9, x_766); +lean_object* x_905; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_905 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_904); +lean_dec(x_17); +if (lean_obj_tag(x_905) == 0) +{ +lean_object* x_906; lean_object* x_907; uint8_t x_908; +x_906 = lean_ctor_get(x_905, 1); +lean_inc(x_906); +lean_dec(x_905); +lean_inc(x_2); +x_907 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__14(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_906); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_895; +lean_dec(x_4); +lean_dec(x_19); +x_908 = !lean_is_exclusive(x_907); +if (x_908 == 0) +{ +lean_object* x_909; +x_909 = lean_ctor_get(x_907, 0); +lean_dec(x_909); +lean_ctor_set(x_907, 0, x_2); +return x_907; } +else +{ +lean_object* x_910; lean_object* x_911; +x_910 = lean_ctor_get(x_907, 1); +lean_inc(x_910); +lean_dec(x_907); +x_911 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_911, 0, x_2); +lean_ctor_set(x_911, 1, x_910); +return x_911; } } else { -lean_object* x_896; lean_object* x_897; lean_object* x_898; -lean_dec(x_113); -lean_dec(x_112); -lean_dec(x_22); +uint8_t x_912; +lean_dec(x_8); lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_13); lean_dec(x_11); -lean_dec(x_3); -x_896 = lean_ctor_get(x_770, 0); -lean_inc(x_896); -lean_dec(x_770); -lean_inc(x_896); -x_897 = l_Lean_mkApp(x_2, x_896); -x_898 = lean_expr_instantiate1(x_114, x_896); -lean_dec(x_896); -lean_dec(x_114); -x_2 = x_897; -x_3 = x_898; -x_10 = x_766; -goto _start; -} -} -else -{ -uint8_t x_900; -lean_dec(x_1); -lean_dec(x_114); -lean_dec(x_113); -x_900 = l_Array_isEmpty___rarg(x_16); -if (x_900 == 0) -{ -lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_3); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_2); -x_901 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_901, 0, x_112); -x_902 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_903 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_903, 0, x_902); -lean_ctor_set(x_903, 1, x_901); -x_904 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_905 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_905, 0, x_903); -lean_ctor_set(x_905, 1, x_904); -x_906 = x_16; -x_907 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_906); -x_908 = x_907; -x_909 = l_Array_toList___rarg(x_908); -lean_dec(x_908); -x_910 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_909); -x_911 = l_Array_HasRepr___rarg___closed__1; -x_912 = lean_string_append(x_911, x_910); -lean_dec(x_910); -x_913 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_913, 0, x_912); -x_914 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_914, 0, x_913); -x_915 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_915, 0, x_905); +x_912 = !lean_is_exclusive(x_905); +if (x_912 == 0) +{ +return x_905; +} +else +{ +lean_object* x_913; lean_object* x_914; lean_object* x_915; +x_913 = lean_ctor_get(x_905, 0); +x_914 = lean_ctor_get(x_905, 1); +lean_inc(x_914); +lean_inc(x_913); +lean_dec(x_905); +x_915 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_915, 0, x_913); lean_ctor_set(x_915, 1, x_914); -x_916 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_915, x_4, x_5, x_6, x_7, x_8, x_9, x_766); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_916; +return x_915; +} +} +} } else { -lean_object* x_917; uint8_t x_918; -lean_dec(x_112); -lean_dec(x_16); -x_917 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_918 = l_Lean_checkTraceOption(x_22, x_917); -lean_dec(x_22); -if (x_918 == 0) -{ -lean_object* x_919; +lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; +lean_inc(x_2); +x_924 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_924, 0, x_2); +x_925 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_902, x_924, x_4, x_5, x_6, x_7, x_8, x_9, x_756); +x_926 = lean_ctor_get(x_925, 1); +lean_inc(x_926); +lean_dec(x_925); if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_919 = x_766; -goto block_931; +x_927 = x_926; +goto block_939; } else { -lean_object* x_932; lean_object* x_933; -x_932 = lean_ctor_get(x_13, 0); -lean_inc(x_932); +lean_object* x_940; lean_object* x_941; +x_940 = lean_ctor_get(x_13, 0); +lean_inc(x_940); lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_933 = l_Lean_Elab_Term_isDefEq(x_932, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_766); -if (lean_obj_tag(x_933) == 0) +x_941 = l_Lean_Elab_Term_isDefEq(x_940, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_926); +if (lean_obj_tag(x_941) == 0) { -lean_object* x_934; -x_934 = lean_ctor_get(x_933, 1); -lean_inc(x_934); -lean_dec(x_933); -x_919 = x_934; -goto block_931; +lean_object* x_942; +x_942 = lean_ctor_get(x_941, 1); +lean_inc(x_942); +lean_dec(x_941); +x_927 = x_942; +goto block_939; +} +else +{ +uint8_t x_943; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_943 = !lean_is_exclusive(x_941); +if (x_943 == 0) +{ +return x_941; +} +else +{ +lean_object* x_944; lean_object* x_945; lean_object* x_946; +x_944 = lean_ctor_get(x_941, 0); +x_945 = lean_ctor_get(x_941, 1); +lean_inc(x_945); +lean_inc(x_944); +lean_dec(x_941); +x_946 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_946, 0, x_944); +lean_ctor_set(x_946, 1, x_945); +return x_946; +} +} +} +block_939: +{ +lean_object* x_928; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_928 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_927); +lean_dec(x_17); +if (lean_obj_tag(x_928) == 0) +{ +lean_object* x_929; lean_object* x_930; uint8_t x_931; +x_929 = lean_ctor_get(x_928, 1); +lean_inc(x_929); +lean_dec(x_928); +lean_inc(x_2); +x_930 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__15(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_929); +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_19); +x_931 = !lean_is_exclusive(x_930); +if (x_931 == 0) +{ +lean_object* x_932; +x_932 = lean_ctor_get(x_930, 0); +lean_dec(x_932); +lean_ctor_set(x_930, 0, x_2); +return x_930; +} +else +{ +lean_object* x_933; lean_object* x_934; +x_933 = lean_ctor_get(x_930, 1); +lean_inc(x_933); +lean_dec(x_930); +x_934 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_934, 0, x_2); +lean_ctor_set(x_934, 1, x_933); +return x_934; +} } else { uint8_t x_935; lean_dec(x_8); lean_dec(x_19); -lean_dec(x_17); lean_dec(x_11); lean_dec(x_9); lean_dec(x_7); @@ -8702,19 +8767,19 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_935 = !lean_is_exclusive(x_933); +x_935 = !lean_is_exclusive(x_928); if (x_935 == 0) { -return x_933; +return x_928; } else { lean_object* x_936; lean_object* x_937; lean_object* x_938; -x_936 = lean_ctor_get(x_933, 0); -x_937 = lean_ctor_get(x_933, 1); +x_936 = lean_ctor_get(x_928, 0); +x_937 = lean_ctor_get(x_928, 1); lean_inc(x_937); lean_inc(x_936); -lean_dec(x_933); +lean_dec(x_928); x_938 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_938, 0, x_936); lean_ctor_set(x_938, 1, x_937); @@ -8722,245 +8787,18 @@ return x_938; } } } -block_931: -{ -lean_object* x_920; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_920 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_919); -lean_dec(x_17); -if (lean_obj_tag(x_920) == 0) -{ -lean_object* x_921; lean_object* x_922; uint8_t x_923; -x_921 = lean_ctor_get(x_920, 1); -lean_inc(x_921); -lean_dec(x_920); -lean_inc(x_2); -x_922 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__14(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_921); -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_19); -x_923 = !lean_is_exclusive(x_922); -if (x_923 == 0) -{ -lean_object* x_924; -x_924 = lean_ctor_get(x_922, 0); -lean_dec(x_924); -lean_ctor_set(x_922, 0, x_2); -return x_922; -} -else -{ -lean_object* x_925; lean_object* x_926; -x_925 = lean_ctor_get(x_922, 1); -lean_inc(x_925); -lean_dec(x_922); -x_926 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_926, 0, x_2); -lean_ctor_set(x_926, 1, x_925); -return x_926; -} -} -else -{ -uint8_t x_927; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_927 = !lean_is_exclusive(x_920); -if (x_927 == 0) -{ -return x_920; -} -else -{ -lean_object* x_928; lean_object* x_929; lean_object* x_930; -x_928 = lean_ctor_get(x_920, 0); -x_929 = lean_ctor_get(x_920, 1); -lean_inc(x_929); -lean_inc(x_928); -lean_dec(x_920); -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 { -lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; -lean_inc(x_2); -x_939 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_939, 0, x_2); -x_940 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_917, x_939, x_4, x_5, x_6, x_7, x_8, x_9, x_766); -x_941 = lean_ctor_get(x_940, 1); -lean_inc(x_941); -lean_dec(x_940); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_942 = x_941; -goto block_954; -} -else -{ -lean_object* x_955; lean_object* x_956; -x_955 = lean_ctor_get(x_13, 0); -lean_inc(x_955); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_956 = l_Lean_Elab_Term_isDefEq(x_955, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_941); -if (lean_obj_tag(x_956) == 0) -{ -lean_object* x_957; -x_957 = lean_ctor_get(x_956, 1); -lean_inc(x_957); -lean_dec(x_956); -x_942 = x_957; -goto block_954; -} -else -{ -uint8_t x_958; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_958 = !lean_is_exclusive(x_956); -if (x_958 == 0) -{ -return x_956; -} -else -{ -lean_object* x_959; lean_object* x_960; lean_object* x_961; -x_959 = lean_ctor_get(x_956, 0); -x_960 = lean_ctor_get(x_956, 1); -lean_inc(x_960); -lean_inc(x_959); -lean_dec(x_956); -x_961 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_961, 0, x_959); -lean_ctor_set(x_961, 1, x_960); -return x_961; -} -} -} -block_954: -{ -lean_object* x_943; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_943 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_942); -lean_dec(x_17); -if (lean_obj_tag(x_943) == 0) -{ -lean_object* x_944; lean_object* x_945; uint8_t x_946; -x_944 = lean_ctor_get(x_943, 1); -lean_inc(x_944); -lean_dec(x_943); -lean_inc(x_2); -x_945 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__15(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_944); -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_19); -x_946 = !lean_is_exclusive(x_945); -if (x_946 == 0) -{ -lean_object* x_947; -x_947 = lean_ctor_get(x_945, 0); -lean_dec(x_947); -lean_ctor_set(x_945, 0, x_2); -return x_945; -} -else -{ -lean_object* x_948; lean_object* x_949; -x_948 = lean_ctor_get(x_945, 1); -lean_inc(x_948); -lean_dec(x_945); -x_949 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_949, 0, x_2); -lean_ctor_set(x_949, 1, x_948); -return x_949; -} -} -else -{ -uint8_t x_950; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_950 = !lean_is_exclusive(x_943); -if (x_950 == 0) -{ -return x_943; -} -else -{ -lean_object* x_951; lean_object* x_952; lean_object* x_953; -x_951 = lean_ctor_get(x_943, 0); -x_952 = lean_ctor_get(x_943, 1); -lean_inc(x_952); -lean_inc(x_951); -lean_dec(x_943); -x_953 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_953, 0, x_951); -lean_ctor_set(x_953, 1, x_952); -return x_953; -} -} -} -} -} -} -} -else -{ -lean_object* x_962; lean_object* x_963; +lean_object* x_947; lean_object* x_948; lean_dec(x_1); lean_dec(x_112); lean_dec(x_22); lean_dec(x_3); -x_962 = lean_array_fget(x_12, x_15); +x_947 = lean_array_fget(x_12, x_15); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -8968,43 +8806,43 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_963 = l___private_Lean_Elab_App_2__elabArg(x_2, x_962, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_766); -if (lean_obj_tag(x_963) == 0) +x_948 = l___private_Lean_Elab_App_2__elabArg(x_2, x_947, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_756); +if (lean_obj_tag(x_948) == 0) { -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; -x_964 = lean_ctor_get(x_963, 0); -lean_inc(x_964); -x_965 = lean_ctor_get(x_963, 1); -lean_inc(x_965); -lean_dec(x_963); -x_966 = lean_unsigned_to_nat(1u); -x_967 = lean_nat_add(x_15, x_966); +lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; +x_949 = lean_ctor_get(x_948, 0); +lean_inc(x_949); +x_950 = lean_ctor_get(x_948, 1); +lean_inc(x_950); +lean_dec(x_948); +x_951 = lean_unsigned_to_nat(1u); +x_952 = lean_nat_add(x_15, x_951); lean_dec(x_15); -x_968 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_968, 0, x_11); -lean_ctor_set(x_968, 1, x_12); -lean_ctor_set(x_968, 2, x_13); -lean_ctor_set(x_968, 3, x_967); -lean_ctor_set(x_968, 4, x_16); -lean_ctor_set(x_968, 5, x_17); -lean_ctor_set(x_968, 6, x_18); -lean_ctor_set(x_968, 7, x_19); -lean_ctor_set_uint8(x_968, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_968, sizeof(void*)*8 + 1, x_767); -lean_inc(x_964); -x_969 = l_Lean_mkApp(x_2, x_964); -x_970 = lean_expr_instantiate1(x_114, x_964); -lean_dec(x_964); +x_953 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_953, 0, x_11); +lean_ctor_set(x_953, 1, x_12); +lean_ctor_set(x_953, 2, x_13); +lean_ctor_set(x_953, 3, x_952); +lean_ctor_set(x_953, 4, x_16); +lean_ctor_set(x_953, 5, x_17); +lean_ctor_set(x_953, 6, x_18); +lean_ctor_set(x_953, 7, x_19); +lean_ctor_set_uint8(x_953, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_953, sizeof(void*)*8 + 1, x_757); +lean_inc(x_949); +x_954 = l_Lean_mkApp(x_2, x_949); +x_955 = lean_expr_instantiate1(x_114, x_949); +lean_dec(x_949); lean_dec(x_114); -x_1 = x_968; -x_2 = x_969; -x_3 = x_970; -x_10 = x_965; +x_1 = x_953; +x_2 = x_954; +x_3 = x_955; +x_10 = x_950; goto _start; } else { -uint8_t x_972; +uint8_t x_957; lean_dec(x_114); lean_dec(x_8); lean_dec(x_19); @@ -9021,30 +8859,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_972 = !lean_is_exclusive(x_963); -if (x_972 == 0) +x_957 = !lean_is_exclusive(x_948); +if (x_957 == 0) { -return x_963; +return x_948; } else { -lean_object* x_973; lean_object* x_974; lean_object* x_975; -x_973 = lean_ctor_get(x_963, 0); -x_974 = lean_ctor_get(x_963, 1); -lean_inc(x_974); -lean_inc(x_973); -lean_dec(x_963); -x_975 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_975, 0, x_973); -lean_ctor_set(x_975, 1, x_974); -return x_975; +lean_object* x_958; lean_object* x_959; lean_object* x_960; +x_958 = lean_ctor_get(x_948, 0); +x_959 = lean_ctor_get(x_948, 1); +lean_inc(x_959); +lean_inc(x_958); +lean_dec(x_948); +x_960 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_960, 0, x_958); +lean_ctor_set(x_960, 1, x_959); +return x_960; } } } } else { -uint8_t x_976; +uint8_t x_961; lean_free_object(x_1); lean_dec(x_114); lean_dec(x_113); @@ -9066,36 +8904,36 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_976 = !lean_is_exclusive(x_756); -if (x_976 == 0) +x_961 = !lean_is_exclusive(x_746); +if (x_961 == 0) { -return x_756; +return x_746; } else { -lean_object* x_977; lean_object* x_978; lean_object* x_979; -x_977 = lean_ctor_get(x_756, 0); -x_978 = lean_ctor_get(x_756, 1); -lean_inc(x_978); -lean_inc(x_977); -lean_dec(x_756); -x_979 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_979, 0, x_977); -lean_ctor_set(x_979, 1, x_978); -return x_979; +lean_object* x_962; lean_object* x_963; lean_object* x_964; +x_962 = lean_ctor_get(x_746, 0); +x_963 = lean_ctor_get(x_746, 1); +lean_inc(x_963); +lean_inc(x_962); +lean_dec(x_746); +x_964 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_964, 0, x_962); +lean_ctor_set(x_964, 1, x_963); +return x_964; } } } else { lean_dec(x_1); -if (lean_obj_tag(x_756) == 0) +if (lean_obj_tag(x_746) == 0) { -lean_object* x_980; uint8_t x_981; lean_object* x_982; lean_object* x_983; uint8_t x_984; -x_980 = lean_ctor_get(x_756, 1); -lean_inc(x_980); -lean_dec(x_756); -x_981 = 1; +lean_object* x_965; uint8_t x_966; lean_object* x_967; lean_object* x_968; uint8_t x_969; +x_965 = lean_ctor_get(x_746, 1); +lean_inc(x_965); +lean_dec(x_746); +x_966 = 1; lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); @@ -9104,43 +8942,43 @@ lean_inc(x_15); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_982 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_982, 0, x_11); -lean_ctor_set(x_982, 1, x_12); -lean_ctor_set(x_982, 2, x_13); -lean_ctor_set(x_982, 3, x_15); -lean_ctor_set(x_982, 4, x_16); -lean_ctor_set(x_982, 5, x_17); -lean_ctor_set(x_982, 6, x_18); -lean_ctor_set(x_982, 7, x_19); -lean_ctor_set_uint8(x_982, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_982, sizeof(void*)*8 + 1, x_981); -x_983 = lean_array_get_size(x_12); -x_984 = lean_nat_dec_lt(x_15, x_983); -lean_dec(x_983); -if (x_984 == 0) +x_967 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_967, 0, x_11); +lean_ctor_set(x_967, 1, x_12); +lean_ctor_set(x_967, 2, x_13); +lean_ctor_set(x_967, 3, x_15); +lean_ctor_set(x_967, 4, x_16); +lean_ctor_set(x_967, 5, x_17); +lean_ctor_set(x_967, 6, x_18); +lean_ctor_set(x_967, 7, x_19); +lean_ctor_set_uint8(x_967, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_967, sizeof(void*)*8 + 1, x_966); +x_968 = lean_array_get_size(x_12); +x_969 = lean_nat_dec_lt(x_15, x_968); +lean_dec(x_968); +if (x_969 == 0) { lean_dec(x_18); lean_dec(x_15); lean_dec(x_12); if (x_14 == 0) { -lean_object* x_985; -x_985 = l_Lean_Expr_getOptParamDefault_x3f(x_113); -if (lean_obj_tag(x_985) == 0) +lean_object* x_970; +x_970 = l_Lean_Expr_getOptParamDefault_x3f(x_113); +if (lean_obj_tag(x_970) == 0) { -lean_object* x_986; -x_986 = l_Lean_Expr_getAutoParamTactic_x3f(x_113); -if (lean_obj_tag(x_986) == 0) +lean_object* x_971; +x_971 = l_Lean_Expr_getAutoParamTactic_x3f(x_113); +if (lean_obj_tag(x_971) == 0) { -uint8_t x_987; -lean_dec(x_982); +uint8_t x_972; +lean_dec(x_967); lean_dec(x_114); lean_dec(x_113); -x_987 = l_Array_isEmpty___rarg(x_16); -if (x_987 == 0) +x_972 = l_Array_isEmpty___rarg(x_16); +if (x_972 == 0) { -lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; +lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_dec(x_22); lean_dec(x_19); lean_dec(x_17); @@ -9148,81 +8986,81 @@ lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_988 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_988, 0, x_112); -x_989 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_990 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_990, 0, x_989); -lean_ctor_set(x_990, 1, x_988); -x_991 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_992 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_992, 0, x_990); -lean_ctor_set(x_992, 1, x_991); -x_993 = x_16; -x_994 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_993); -x_995 = x_994; -x_996 = l_Array_toList___rarg(x_995); -lean_dec(x_995); -x_997 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_996); -x_998 = l_Array_HasRepr___rarg___closed__1; -x_999 = lean_string_append(x_998, x_997); -lean_dec(x_997); -x_1000 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1000, 0, x_999); -x_1001 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1001, 0, x_1000); -x_1002 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1002, 0, x_992); -lean_ctor_set(x_1002, 1, x_1001); -x_1003 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1002, x_4, x_5, x_6, x_7, x_8, x_9, x_980); +x_973 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_973, 0, x_112); +x_974 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_975 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_975, 0, x_974); +lean_ctor_set(x_975, 1, x_973); +x_976 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_977 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_977, 0, x_975); +lean_ctor_set(x_977, 1, x_976); +x_978 = x_16; +x_979 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_978); +x_980 = x_979; +x_981 = l_Array_toList___rarg(x_980); +lean_dec(x_980); +x_982 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_981); +x_983 = l_Array_HasRepr___rarg___closed__1; +x_984 = lean_string_append(x_983, x_982); +lean_dec(x_982); +x_985 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_985, 0, x_984); +x_986 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_986, 0, x_985); +x_987 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_987, 0, x_977); +lean_ctor_set(x_987, 1, x_986); +x_988 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_987, x_4, x_5, x_6, x_7, x_8, x_9, x_965); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_1003; +return x_988; } else { -lean_object* x_1004; uint8_t x_1005; +lean_object* x_989; uint8_t x_990; lean_dec(x_112); lean_dec(x_16); -x_1004 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_1005 = l_Lean_checkTraceOption(x_22, x_1004); +x_989 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_990 = l_Lean_checkTraceOption(x_22, x_989); lean_dec(x_22); -if (x_1005 == 0) +if (x_990 == 0) { -lean_object* x_1006; +lean_object* x_991; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_1006 = x_980; -goto block_1017; +x_991 = x_965; +goto block_1002; } else { -lean_object* x_1018; lean_object* x_1019; -x_1018 = lean_ctor_get(x_13, 0); -lean_inc(x_1018); +lean_object* x_1003; lean_object* x_1004; +x_1003 = lean_ctor_get(x_13, 0); +lean_inc(x_1003); lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1019 = l_Lean_Elab_Term_isDefEq(x_1018, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_980); -if (lean_obj_tag(x_1019) == 0) +x_1004 = l_Lean_Elab_Term_isDefEq(x_1003, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_965); +if (lean_obj_tag(x_1004) == 0) { -lean_object* x_1020; -x_1020 = lean_ctor_get(x_1019, 1); -lean_inc(x_1020); -lean_dec(x_1019); -x_1006 = x_1020; -goto block_1017; +lean_object* x_1005; +x_1005 = lean_ctor_get(x_1004, 1); +lean_inc(x_1005); +lean_dec(x_1004); +x_991 = x_1005; +goto block_1002; } else { -lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; +lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_dec(x_8); lean_dec(x_19); lean_dec(x_17); @@ -9233,46 +9071,46 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1021 = lean_ctor_get(x_1019, 0); -lean_inc(x_1021); -x_1022 = lean_ctor_get(x_1019, 1); -lean_inc(x_1022); -if (lean_is_exclusive(x_1019)) { - lean_ctor_release(x_1019, 0); - lean_ctor_release(x_1019, 1); - x_1023 = x_1019; +x_1006 = lean_ctor_get(x_1004, 0); +lean_inc(x_1006); +x_1007 = lean_ctor_get(x_1004, 1); +lean_inc(x_1007); +if (lean_is_exclusive(x_1004)) { + lean_ctor_release(x_1004, 0); + lean_ctor_release(x_1004, 1); + x_1008 = x_1004; } else { - lean_dec_ref(x_1019); - x_1023 = lean_box(0); + lean_dec_ref(x_1004); + x_1008 = lean_box(0); } -if (lean_is_scalar(x_1023)) { - x_1024 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1008)) { + x_1009 = lean_alloc_ctor(1, 2, 0); } else { - x_1024 = x_1023; + x_1009 = x_1008; } -lean_ctor_set(x_1024, 0, x_1021); -lean_ctor_set(x_1024, 1, x_1022); -return x_1024; +lean_ctor_set(x_1009, 0, x_1006); +lean_ctor_set(x_1009, 1, x_1007); +return x_1009; } } -block_1017: +block_1002: { -lean_object* x_1007; +lean_object* x_992; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1007 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1006); +x_992 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_991); lean_dec(x_17); -if (lean_obj_tag(x_1007) == 0) +if (lean_obj_tag(x_992) == 0) { -lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; -x_1008 = lean_ctor_get(x_1007, 1); -lean_inc(x_1008); -lean_dec(x_1007); +lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; +x_993 = lean_ctor_get(x_992, 1); +lean_inc(x_993); +lean_dec(x_992); lean_inc(x_2); -x_1009 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__12(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1008); +x_994 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__12(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_993); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -9280,28 +9118,28 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); -x_1010 = lean_ctor_get(x_1009, 1); -lean_inc(x_1010); -if (lean_is_exclusive(x_1009)) { - lean_ctor_release(x_1009, 0); - lean_ctor_release(x_1009, 1); - x_1011 = x_1009; +x_995 = lean_ctor_get(x_994, 1); +lean_inc(x_995); +if (lean_is_exclusive(x_994)) { + lean_ctor_release(x_994, 0); + lean_ctor_release(x_994, 1); + x_996 = x_994; } else { - lean_dec_ref(x_1009); - x_1011 = lean_box(0); + lean_dec_ref(x_994); + x_996 = lean_box(0); } -if (lean_is_scalar(x_1011)) { - x_1012 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_996)) { + x_997 = lean_alloc_ctor(0, 2, 0); } else { - x_1012 = x_1011; + x_997 = x_996; } -lean_ctor_set(x_1012, 0, x_2); -lean_ctor_set(x_1012, 1, x_1010); -return x_1012; +lean_ctor_set(x_997, 0, x_2); +lean_ctor_set(x_997, 1, x_995); +return x_997; } else { -lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; +lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_dec(x_8); lean_dec(x_19); lean_dec(x_11); @@ -9311,69 +9149,69 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1013 = lean_ctor_get(x_1007, 0); -lean_inc(x_1013); -x_1014 = lean_ctor_get(x_1007, 1); -lean_inc(x_1014); -if (lean_is_exclusive(x_1007)) { - lean_ctor_release(x_1007, 0); - lean_ctor_release(x_1007, 1); - x_1015 = x_1007; +x_998 = lean_ctor_get(x_992, 0); +lean_inc(x_998); +x_999 = lean_ctor_get(x_992, 1); +lean_inc(x_999); +if (lean_is_exclusive(x_992)) { + lean_ctor_release(x_992, 0); + lean_ctor_release(x_992, 1); + x_1000 = x_992; } else { - lean_dec_ref(x_1007); - x_1015 = lean_box(0); + lean_dec_ref(x_992); + x_1000 = lean_box(0); } -if (lean_is_scalar(x_1015)) { - x_1016 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1000)) { + x_1001 = lean_alloc_ctor(1, 2, 0); } else { - x_1016 = x_1015; + x_1001 = x_1000; } -lean_ctor_set(x_1016, 0, x_1013); -lean_ctor_set(x_1016, 1, x_1014); -return x_1016; +lean_ctor_set(x_1001, 0, x_998); +lean_ctor_set(x_1001, 1, x_999); +return x_1001; } } } else { -lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; +lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_inc(x_2); -x_1025 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1025, 0, x_2); -x_1026 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1004, x_1025, x_4, x_5, x_6, x_7, x_8, x_9, x_980); +x_1010 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1010, 0, x_2); +x_1011 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_989, x_1010, x_4, x_5, x_6, x_7, x_8, x_9, x_965); +x_1012 = lean_ctor_get(x_1011, 1); +lean_inc(x_1012); +lean_dec(x_1011); +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_1013 = x_1012; +goto block_1024; +} +else +{ +lean_object* x_1025; lean_object* x_1026; +x_1025 = lean_ctor_get(x_13, 0); +lean_inc(x_1025); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_1026 = l_Lean_Elab_Term_isDefEq(x_1025, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1012); +if (lean_obj_tag(x_1026) == 0) +{ +lean_object* x_1027; x_1027 = lean_ctor_get(x_1026, 1); lean_inc(x_1027); lean_dec(x_1026); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_1028 = x_1027; -goto block_1039; +x_1013 = x_1027; +goto block_1024; } else { -lean_object* x_1040; lean_object* x_1041; -x_1040 = lean_ctor_get(x_13, 0); -lean_inc(x_1040); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_1041 = l_Lean_Elab_Term_isDefEq(x_1040, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1027); -if (lean_obj_tag(x_1041) == 0) -{ -lean_object* x_1042; -x_1042 = lean_ctor_get(x_1041, 1); -lean_inc(x_1042); -lean_dec(x_1041); -x_1028 = x_1042; -goto block_1039; -} -else -{ -lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; +lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_dec(x_8); lean_dec(x_19); lean_dec(x_17); @@ -9384,46 +9222,46 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1043 = lean_ctor_get(x_1041, 0); -lean_inc(x_1043); -x_1044 = lean_ctor_get(x_1041, 1); -lean_inc(x_1044); -if (lean_is_exclusive(x_1041)) { - lean_ctor_release(x_1041, 0); - lean_ctor_release(x_1041, 1); - x_1045 = x_1041; +x_1028 = lean_ctor_get(x_1026, 0); +lean_inc(x_1028); +x_1029 = lean_ctor_get(x_1026, 1); +lean_inc(x_1029); +if (lean_is_exclusive(x_1026)) { + lean_ctor_release(x_1026, 0); + lean_ctor_release(x_1026, 1); + x_1030 = x_1026; } else { - lean_dec_ref(x_1041); - x_1045 = lean_box(0); + lean_dec_ref(x_1026); + x_1030 = lean_box(0); } -if (lean_is_scalar(x_1045)) { - x_1046 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1030)) { + x_1031 = lean_alloc_ctor(1, 2, 0); } else { - x_1046 = x_1045; + x_1031 = x_1030; } -lean_ctor_set(x_1046, 0, x_1043); -lean_ctor_set(x_1046, 1, x_1044); -return x_1046; +lean_ctor_set(x_1031, 0, x_1028); +lean_ctor_set(x_1031, 1, x_1029); +return x_1031; } } -block_1039: +block_1024: { -lean_object* x_1029; +lean_object* x_1014; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1029 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1028); +x_1014 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1013); lean_dec(x_17); -if (lean_obj_tag(x_1029) == 0) +if (lean_obj_tag(x_1014) == 0) { -lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; -x_1030 = lean_ctor_get(x_1029, 1); -lean_inc(x_1030); -lean_dec(x_1029); +lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; +x_1015 = lean_ctor_get(x_1014, 1); +lean_inc(x_1015); +lean_dec(x_1014); lean_inc(x_2); -x_1031 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__13(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1030); +x_1016 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__13(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1015); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -9431,28 +9269,28 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); -x_1032 = lean_ctor_get(x_1031, 1); -lean_inc(x_1032); -if (lean_is_exclusive(x_1031)) { - lean_ctor_release(x_1031, 0); - lean_ctor_release(x_1031, 1); - x_1033 = x_1031; +x_1017 = lean_ctor_get(x_1016, 1); +lean_inc(x_1017); +if (lean_is_exclusive(x_1016)) { + lean_ctor_release(x_1016, 0); + lean_ctor_release(x_1016, 1); + x_1018 = x_1016; } else { - lean_dec_ref(x_1031); - x_1033 = lean_box(0); + lean_dec_ref(x_1016); + x_1018 = lean_box(0); } -if (lean_is_scalar(x_1033)) { - x_1034 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_1018)) { + x_1019 = lean_alloc_ctor(0, 2, 0); } else { - x_1034 = x_1033; + x_1019 = x_1018; } -lean_ctor_set(x_1034, 0, x_2); -lean_ctor_set(x_1034, 1, x_1032); -return x_1034; +lean_ctor_set(x_1019, 0, x_2); +lean_ctor_set(x_1019, 1, x_1017); +return x_1019; } else { -lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; +lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_dec(x_8); lean_dec(x_19); lean_dec(x_11); @@ -9462,26 +9300,26 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1035 = lean_ctor_get(x_1029, 0); -lean_inc(x_1035); -x_1036 = lean_ctor_get(x_1029, 1); -lean_inc(x_1036); -if (lean_is_exclusive(x_1029)) { - lean_ctor_release(x_1029, 0); - lean_ctor_release(x_1029, 1); - x_1037 = x_1029; +x_1020 = lean_ctor_get(x_1014, 0); +lean_inc(x_1020); +x_1021 = lean_ctor_get(x_1014, 1); +lean_inc(x_1021); +if (lean_is_exclusive(x_1014)) { + lean_ctor_release(x_1014, 0); + lean_ctor_release(x_1014, 1); + x_1022 = x_1014; } else { - lean_dec_ref(x_1029); - x_1037 = lean_box(0); + lean_dec_ref(x_1014); + x_1022 = lean_box(0); } -if (lean_is_scalar(x_1037)) { - x_1038 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1022)) { + x_1023 = lean_alloc_ctor(1, 2, 0); } else { - x_1038 = x_1037; + x_1023 = x_1022; } -lean_ctor_set(x_1038, 0, x_1035); -lean_ctor_set(x_1038, 1, x_1036); -return x_1038; +lean_ctor_set(x_1023, 0, x_1020); +lean_ctor_set(x_1023, 1, x_1021); +return x_1023; } } } @@ -9489,7 +9327,7 @@ return x_1038; } else { -lean_object* x_1047; +lean_object* x_1032; lean_dec(x_112); lean_dec(x_22); lean_dec(x_19); @@ -9497,200 +9335,141 @@ lean_dec(x_17); lean_dec(x_16); lean_dec(x_13); lean_dec(x_3); -x_1047 = lean_ctor_get(x_986, 0); -lean_inc(x_1047); -lean_dec(x_986); -if (lean_obj_tag(x_1047) == 4) +x_1032 = lean_ctor_get(x_971, 0); +lean_inc(x_1032); +lean_dec(x_971); +if (lean_obj_tag(x_1032) == 4) { -lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; -x_1048 = lean_ctor_get(x_1047, 0); -lean_inc(x_1048); -lean_dec(x_1047); -x_1049 = lean_st_ref_get(x_9, x_980); -x_1050 = lean_ctor_get(x_1049, 0); -lean_inc(x_1050); -x_1051 = lean_ctor_get(x_1049, 1); -lean_inc(x_1051); -lean_dec(x_1049); -x_1052 = lean_ctor_get(x_1050, 0); -lean_inc(x_1052); -lean_dec(x_1050); -x_1053 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_1052, x_1048); -if (lean_obj_tag(x_1053) == 0) +lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; +x_1033 = lean_ctor_get(x_1032, 0); +lean_inc(x_1033); +lean_dec(x_1032); +x_1034 = lean_st_ref_get(x_9, x_965); +x_1035 = lean_ctor_get(x_1034, 0); +lean_inc(x_1035); +x_1036 = lean_ctor_get(x_1034, 1); +lean_inc(x_1036); +lean_dec(x_1034); +x_1037 = lean_ctor_get(x_1035, 0); +lean_inc(x_1037); +lean_dec(x_1035); +x_1038 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_1037, x_1033); +if (lean_obj_tag(x_1038) == 0) { -lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; -lean_dec(x_982); +lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; +lean_dec(x_967); lean_dec(x_114); lean_dec(x_113); lean_dec(x_11); lean_dec(x_2); -x_1054 = lean_ctor_get(x_1053, 0); -lean_inc(x_1054); -lean_dec(x_1053); -x_1055 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1055, 0, x_1054); -x_1056 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1056, 0, x_1055); -x_1057 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1056, x_4, x_5, x_6, x_7, x_8, x_9, x_1051); +x_1039 = lean_ctor_get(x_1038, 0); +lean_inc(x_1039); +lean_dec(x_1038); +x_1040 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1040, 0, x_1039); +x_1041 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1041, 0, x_1040); +x_1042 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1041, x_4, x_5, x_6, x_7, x_8, x_9, x_1036); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_1057; +return x_1042; } else { -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_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; -x_1058 = lean_ctor_get(x_1053, 0); -lean_inc(x_1058); -lean_dec(x_1053); -x_1059 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_1051); -x_1060 = lean_ctor_get(x_1059, 1); -lean_inc(x_1060); -lean_dec(x_1059); -x_1061 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1060); -x_1062 = lean_ctor_get(x_1061, 1); -lean_inc(x_1062); -lean_dec(x_1061); -x_1063 = l_Lean_Syntax_getArgs(x_1058); -lean_dec(x_1058); -x_1064 = l_Array_empty___closed__1; -x_1065 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1063, x_1063, x_116, x_1064); -lean_dec(x_1063); -x_1066 = l_Lean_nullKind___closed__2; -x_1067 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1067, 0, x_1066); -lean_ctor_set(x_1067, 1, x_1065); -x_1068 = lean_array_push(x_1064, x_1067); -x_1069 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; -x_1070 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1070, 0, x_1069); -lean_ctor_set(x_1070, 1, x_1068); -x_1071 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; -x_1072 = lean_array_push(x_1071, x_1070); -x_1073 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; -x_1074 = lean_array_push(x_1072, x_1073); -x_1075 = l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__2; -x_1076 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1076, 0, x_1075); -lean_ctor_set(x_1076, 1, x_1074); -x_1077 = l_Lean_Syntax_getHeadInfo___main(x_11); +lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; +x_1043 = lean_ctor_get(x_1038, 0); +lean_inc(x_1043); +lean_dec(x_1038); +x_1044 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_1036); +x_1045 = lean_ctor_get(x_1044, 1); +lean_inc(x_1045); +lean_dec(x_1044); +x_1046 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1045); +x_1047 = lean_ctor_get(x_1046, 1); +lean_inc(x_1047); +lean_dec(x_1046); +x_1048 = l_Lean_Syntax_getArgs(x_1043); +lean_dec(x_1043); +x_1049 = l_Array_empty___closed__1; +x_1050 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1048, x_1048, x_116, x_1049); +lean_dec(x_1048); +x_1051 = l_Lean_nullKind___closed__2; +x_1052 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1052, 0, x_1051); +lean_ctor_set(x_1052, 1, x_1050); +x_1053 = lean_array_push(x_1049, x_1052); +x_1054 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; +x_1055 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1055, 0, x_1054); +lean_ctor_set(x_1055, 1, x_1053); +x_1056 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__4; +x_1057 = lean_array_push(x_1056, x_1055); +x_1058 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__20; +x_1059 = lean_array_push(x_1057, x_1058); +x_1060 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; +x_1061 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1061, 0, x_1060); +lean_ctor_set(x_1061, 1, x_1059); +x_1062 = lean_array_push(x_1049, x_1061); +x_1063 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1063, 0, x_1051); +lean_ctor_set(x_1063, 1, x_1062); +x_1064 = lean_array_push(x_1049, x_1063); +x_1065 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1065, 0, x_1054); +lean_ctor_set(x_1065, 1, x_1064); +x_1066 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_1067 = lean_array_push(x_1066, x_1065); +x_1068 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +x_1069 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1069, 0, x_1068); +lean_ctor_set(x_1069, 1, x_1067); +x_1070 = l_Lean_Syntax_copyInfo(x_1069, x_11); lean_dec(x_11); -x_1078 = l_Lean_Expr_getAppNumArgsAux___main(x_113, x_116); -x_1079 = lean_nat_sub(x_1078, x_116); -lean_dec(x_1078); -x_1080 = lean_unsigned_to_nat(1u); -x_1081 = lean_nat_sub(x_1079, x_1080); -lean_dec(x_1079); -x_1082 = l_Lean_Expr_getRevArg_x21___main(x_113, x_1081); +x_1071 = l_Lean_Expr_getAppNumArgsAux___main(x_113, x_116); +x_1072 = lean_nat_sub(x_1071, x_116); +lean_dec(x_1071); +x_1073 = lean_unsigned_to_nat(1u); +x_1074 = lean_nat_sub(x_1072, x_1073); +lean_dec(x_1072); +x_1075 = l_Lean_Expr_getRevArg_x21___main(x_113, x_1074); lean_dec(x_113); +x_1076 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1076, 0, x_1070); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_1077 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1076, x_1075, x_4, x_5, x_6, x_7, x_8, x_9, x_1047); if (lean_obj_tag(x_1077) == 0) { -lean_object* x_1083; lean_object* x_1084; -x_1083 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1083, 0, x_1076); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_1084 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1083, x_1082, x_4, x_5, x_6, x_7, x_8, x_9, x_1062); -if (lean_obj_tag(x_1084) == 0) -{ -lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; -x_1085 = lean_ctor_get(x_1084, 0); -lean_inc(x_1085); -x_1086 = lean_ctor_get(x_1084, 1); -lean_inc(x_1086); -lean_dec(x_1084); -lean_inc(x_1085); -x_1087 = l_Lean_mkApp(x_2, x_1085); -x_1088 = lean_expr_instantiate1(x_114, x_1085); -lean_dec(x_1085); -lean_dec(x_114); -x_1 = x_982; -x_2 = x_1087; -x_3 = x_1088; -x_10 = x_1086; -goto _start; -} -else -{ -lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; -lean_dec(x_982); -lean_dec(x_114); -lean_dec(x_8); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1090 = lean_ctor_get(x_1084, 0); -lean_inc(x_1090); -x_1091 = lean_ctor_get(x_1084, 1); -lean_inc(x_1091); -if (lean_is_exclusive(x_1084)) { - lean_ctor_release(x_1084, 0); - lean_ctor_release(x_1084, 1); - x_1092 = x_1084; -} else { - lean_dec_ref(x_1084); - x_1092 = lean_box(0); -} -if (lean_is_scalar(x_1092)) { - x_1093 = lean_alloc_ctor(1, 2, 0); -} else { - x_1093 = x_1092; -} -lean_ctor_set(x_1093, 0, x_1090); -lean_ctor_set(x_1093, 1, x_1091); -return x_1093; -} -} -else -{ -lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; -x_1094 = lean_ctor_get(x_1077, 0); -lean_inc(x_1094); +lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; +x_1078 = lean_ctor_get(x_1077, 0); +lean_inc(x_1078); +x_1079 = lean_ctor_get(x_1077, 1); +lean_inc(x_1079); lean_dec(x_1077); -x_1095 = l_Lean_Syntax_replaceInfo___main(x_1094, x_1076); -x_1096 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1096, 0, x_1095); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_1097 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1096, x_1082, x_4, x_5, x_6, x_7, x_8, x_9, x_1062); -if (lean_obj_tag(x_1097) == 0) -{ -lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; -x_1098 = lean_ctor_get(x_1097, 0); -lean_inc(x_1098); -x_1099 = lean_ctor_get(x_1097, 1); -lean_inc(x_1099); -lean_dec(x_1097); -lean_inc(x_1098); -x_1100 = l_Lean_mkApp(x_2, x_1098); -x_1101 = lean_expr_instantiate1(x_114, x_1098); -lean_dec(x_1098); +lean_inc(x_1078); +x_1080 = l_Lean_mkApp(x_2, x_1078); +x_1081 = lean_expr_instantiate1(x_114, x_1078); +lean_dec(x_1078); lean_dec(x_114); -x_1 = x_982; -x_2 = x_1100; -x_3 = x_1101; -x_10 = x_1099; +x_1 = x_967; +x_2 = x_1080; +x_3 = x_1081; +x_10 = x_1079; goto _start; } else { -lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; -lean_dec(x_982); +lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; +lean_dec(x_967); lean_dec(x_114); lean_dec(x_8); lean_dec(x_9); @@ -9699,53 +9478,52 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1103 = lean_ctor_get(x_1097, 0); -lean_inc(x_1103); -x_1104 = lean_ctor_get(x_1097, 1); -lean_inc(x_1104); -if (lean_is_exclusive(x_1097)) { - lean_ctor_release(x_1097, 0); - lean_ctor_release(x_1097, 1); - x_1105 = x_1097; +x_1083 = lean_ctor_get(x_1077, 0); +lean_inc(x_1083); +x_1084 = lean_ctor_get(x_1077, 1); +lean_inc(x_1084); +if (lean_is_exclusive(x_1077)) { + lean_ctor_release(x_1077, 0); + lean_ctor_release(x_1077, 1); + x_1085 = x_1077; } else { - lean_dec_ref(x_1097); - x_1105 = lean_box(0); + lean_dec_ref(x_1077); + x_1085 = lean_box(0); } -if (lean_is_scalar(x_1105)) { - x_1106 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1085)) { + x_1086 = lean_alloc_ctor(1, 2, 0); } else { - x_1106 = x_1105; -} -lean_ctor_set(x_1106, 0, x_1103); -lean_ctor_set(x_1106, 1, x_1104); -return x_1106; + x_1086 = x_1085; } +lean_ctor_set(x_1086, 0, x_1083); +lean_ctor_set(x_1086, 1, x_1084); +return x_1086; } } } else { -lean_object* x_1107; lean_object* x_1108; -lean_dec(x_1047); -lean_dec(x_982); +lean_object* x_1087; lean_object* x_1088; +lean_dec(x_1032); +lean_dec(x_967); lean_dec(x_114); lean_dec(x_113); lean_dec(x_11); lean_dec(x_2); -x_1107 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; -x_1108 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1107, x_4, x_5, x_6, x_7, x_8, x_9, x_980); +x_1087 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_1088 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1087, x_4, x_5, x_6, x_7, x_8, x_9, x_965); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_1108; +return x_1088; } } } else { -lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; +lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_dec(x_113); lean_dec(x_112); lean_dec(x_22); @@ -9755,31 +9533,31 @@ lean_dec(x_16); lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); -x_1109 = lean_ctor_get(x_985, 0); -lean_inc(x_1109); -lean_dec(x_985); -lean_inc(x_1109); -x_1110 = l_Lean_mkApp(x_2, x_1109); -x_1111 = lean_expr_instantiate1(x_114, x_1109); -lean_dec(x_1109); +x_1089 = lean_ctor_get(x_970, 0); +lean_inc(x_1089); +lean_dec(x_970); +lean_inc(x_1089); +x_1090 = l_Lean_mkApp(x_2, x_1089); +x_1091 = lean_expr_instantiate1(x_114, x_1089); +lean_dec(x_1089); lean_dec(x_114); -x_1 = x_982; -x_2 = x_1110; -x_3 = x_1111; -x_10 = x_980; +x_1 = x_967; +x_2 = x_1090; +x_3 = x_1091; +x_10 = x_965; goto _start; } } else { -uint8_t x_1113; -lean_dec(x_982); +uint8_t x_1093; +lean_dec(x_967); lean_dec(x_114); lean_dec(x_113); -x_1113 = l_Array_isEmpty___rarg(x_16); -if (x_1113 == 0) +x_1093 = l_Array_isEmpty___rarg(x_16); +if (x_1093 == 0) { -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_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; +lean_object* x_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_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_dec(x_22); lean_dec(x_19); lean_dec(x_17); @@ -9787,81 +9565,81 @@ lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_1114 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1114, 0, x_112); -x_1115 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_1116 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1116, 0, x_1115); -lean_ctor_set(x_1116, 1, x_1114); -x_1117 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_1118 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1118, 0, x_1116); -lean_ctor_set(x_1118, 1, x_1117); -x_1119 = x_16; -x_1120 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_1119); -x_1121 = x_1120; -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_1118); -lean_ctor_set(x_1128, 1, x_1127); -x_1129 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1128, x_4, x_5, x_6, x_7, x_8, x_9, x_980); +x_1094 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1094, 0, x_112); +x_1095 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1096 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1096, 0, x_1095); +lean_ctor_set(x_1096, 1, x_1094); +x_1097 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1098 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1098, 0, x_1096); +lean_ctor_set(x_1098, 1, x_1097); +x_1099 = x_16; +x_1100 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_1099); +x_1101 = x_1100; +x_1102 = l_Array_toList___rarg(x_1101); +lean_dec(x_1101); +x_1103 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1102); +x_1104 = l_Array_HasRepr___rarg___closed__1; +x_1105 = lean_string_append(x_1104, x_1103); +lean_dec(x_1103); +x_1106 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1106, 0, x_1105); +x_1107 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1107, 0, x_1106); +x_1108 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1108, 0, x_1098); +lean_ctor_set(x_1108, 1, x_1107); +x_1109 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1108, x_4, x_5, x_6, x_7, x_8, x_9, x_965); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_1129; +return x_1109; } else { -lean_object* x_1130; uint8_t x_1131; +lean_object* x_1110; uint8_t x_1111; lean_dec(x_112); lean_dec(x_16); -x_1130 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_1131 = l_Lean_checkTraceOption(x_22, x_1130); +x_1110 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1111 = l_Lean_checkTraceOption(x_22, x_1110); lean_dec(x_22); -if (x_1131 == 0) +if (x_1111 == 0) { -lean_object* x_1132; +lean_object* x_1112; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_1132 = x_980; -goto block_1143; +x_1112 = x_965; +goto block_1123; } else { -lean_object* x_1144; lean_object* x_1145; -x_1144 = lean_ctor_get(x_13, 0); -lean_inc(x_1144); +lean_object* x_1124; lean_object* x_1125; +x_1124 = lean_ctor_get(x_13, 0); +lean_inc(x_1124); lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1145 = l_Lean_Elab_Term_isDefEq(x_1144, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_980); -if (lean_obj_tag(x_1145) == 0) +x_1125 = l_Lean_Elab_Term_isDefEq(x_1124, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_965); +if (lean_obj_tag(x_1125) == 0) { -lean_object* x_1146; -x_1146 = lean_ctor_get(x_1145, 1); -lean_inc(x_1146); -lean_dec(x_1145); -x_1132 = x_1146; -goto block_1143; +lean_object* x_1126; +x_1126 = lean_ctor_get(x_1125, 1); +lean_inc(x_1126); +lean_dec(x_1125); +x_1112 = x_1126; +goto block_1123; } else { -lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; +lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_dec(x_8); lean_dec(x_19); lean_dec(x_17); @@ -9872,46 +9650,46 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1147 = lean_ctor_get(x_1145, 0); -lean_inc(x_1147); -x_1148 = lean_ctor_get(x_1145, 1); -lean_inc(x_1148); -if (lean_is_exclusive(x_1145)) { - lean_ctor_release(x_1145, 0); - lean_ctor_release(x_1145, 1); - x_1149 = x_1145; +x_1127 = lean_ctor_get(x_1125, 0); +lean_inc(x_1127); +x_1128 = lean_ctor_get(x_1125, 1); +lean_inc(x_1128); +if (lean_is_exclusive(x_1125)) { + lean_ctor_release(x_1125, 0); + lean_ctor_release(x_1125, 1); + x_1129 = x_1125; } else { - lean_dec_ref(x_1145); - x_1149 = lean_box(0); + lean_dec_ref(x_1125); + x_1129 = lean_box(0); } -if (lean_is_scalar(x_1149)) { - x_1150 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1129)) { + x_1130 = lean_alloc_ctor(1, 2, 0); } else { - x_1150 = x_1149; + x_1130 = x_1129; } -lean_ctor_set(x_1150, 0, x_1147); -lean_ctor_set(x_1150, 1, x_1148); -return x_1150; +lean_ctor_set(x_1130, 0, x_1127); +lean_ctor_set(x_1130, 1, x_1128); +return x_1130; } } -block_1143: +block_1123: { -lean_object* x_1133; +lean_object* x_1113; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1133 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1132); +x_1113 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1112); lean_dec(x_17); -if (lean_obj_tag(x_1133) == 0) +if (lean_obj_tag(x_1113) == 0) { -lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; -x_1134 = lean_ctor_get(x_1133, 1); -lean_inc(x_1134); -lean_dec(x_1133); +lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; +x_1114 = lean_ctor_get(x_1113, 1); +lean_inc(x_1114); +lean_dec(x_1113); lean_inc(x_2); -x_1135 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__14(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1134); +x_1115 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__14(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1114); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -9919,208 +9697,208 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); +x_1116 = lean_ctor_get(x_1115, 1); +lean_inc(x_1116); +if (lean_is_exclusive(x_1115)) { + lean_ctor_release(x_1115, 0); + lean_ctor_release(x_1115, 1); + x_1117 = x_1115; +} else { + lean_dec_ref(x_1115); + x_1117 = lean_box(0); +} +if (lean_is_scalar(x_1117)) { + x_1118 = lean_alloc_ctor(0, 2, 0); +} else { + x_1118 = x_1117; +} +lean_ctor_set(x_1118, 0, x_2); +lean_ctor_set(x_1118, 1, x_1116); +return x_1118; +} +else +{ +lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1119 = lean_ctor_get(x_1113, 0); +lean_inc(x_1119); +x_1120 = lean_ctor_get(x_1113, 1); +lean_inc(x_1120); +if (lean_is_exclusive(x_1113)) { + lean_ctor_release(x_1113, 0); + lean_ctor_release(x_1113, 1); + x_1121 = x_1113; +} else { + lean_dec_ref(x_1113); + x_1121 = lean_box(0); +} +if (lean_is_scalar(x_1121)) { + x_1122 = lean_alloc_ctor(1, 2, 0); +} else { + x_1122 = x_1121; +} +lean_ctor_set(x_1122, 0, x_1119); +lean_ctor_set(x_1122, 1, x_1120); +return x_1122; +} +} +} +else +{ +lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; +lean_inc(x_2); +x_1131 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1131, 0, x_2); +x_1132 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1110, x_1131, x_4, x_5, x_6, x_7, x_8, x_9, x_965); +x_1133 = lean_ctor_get(x_1132, 1); +lean_inc(x_1133); +lean_dec(x_1132); +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_1134 = x_1133; +goto block_1145; +} +else +{ +lean_object* x_1146; lean_object* x_1147; +x_1146 = lean_ctor_get(x_13, 0); +lean_inc(x_1146); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_1147 = l_Lean_Elab_Term_isDefEq(x_1146, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1133); +if (lean_obj_tag(x_1147) == 0) +{ +lean_object* x_1148; +x_1148 = lean_ctor_get(x_1147, 1); +lean_inc(x_1148); +lean_dec(x_1147); +x_1134 = x_1148; +goto block_1145; +} +else +{ +lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1149 = lean_ctor_get(x_1147, 0); +lean_inc(x_1149); +x_1150 = lean_ctor_get(x_1147, 1); +lean_inc(x_1150); +if (lean_is_exclusive(x_1147)) { + lean_ctor_release(x_1147, 0); + lean_ctor_release(x_1147, 1); + x_1151 = x_1147; +} else { + lean_dec_ref(x_1147); + x_1151 = lean_box(0); +} +if (lean_is_scalar(x_1151)) { + x_1152 = lean_alloc_ctor(1, 2, 0); +} else { + x_1152 = x_1151; +} +lean_ctor_set(x_1152, 0, x_1149); +lean_ctor_set(x_1152, 1, x_1150); +return x_1152; +} +} +block_1145: +{ +lean_object* x_1135; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_1135 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1134); +lean_dec(x_17); +if (lean_obj_tag(x_1135) == 0) +{ +lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; x_1136 = lean_ctor_get(x_1135, 1); lean_inc(x_1136); +lean_dec(x_1135); +lean_inc(x_2); +x_1137 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__15(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1136); +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_19); +x_1138 = lean_ctor_get(x_1137, 1); +lean_inc(x_1138); +if (lean_is_exclusive(x_1137)) { + lean_ctor_release(x_1137, 0); + lean_ctor_release(x_1137, 1); + x_1139 = x_1137; +} else { + lean_dec_ref(x_1137); + x_1139 = lean_box(0); +} +if (lean_is_scalar(x_1139)) { + x_1140 = lean_alloc_ctor(0, 2, 0); +} else { + x_1140 = x_1139; +} +lean_ctor_set(x_1140, 0, x_2); +lean_ctor_set(x_1140, 1, x_1138); +return x_1140; +} +else +{ +lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1141 = lean_ctor_get(x_1135, 0); +lean_inc(x_1141); +x_1142 = lean_ctor_get(x_1135, 1); +lean_inc(x_1142); if (lean_is_exclusive(x_1135)) { lean_ctor_release(x_1135, 0); lean_ctor_release(x_1135, 1); - x_1137 = x_1135; + x_1143 = x_1135; } else { lean_dec_ref(x_1135); - x_1137 = lean_box(0); + x_1143 = lean_box(0); } -if (lean_is_scalar(x_1137)) { - x_1138 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_1143)) { + x_1144 = lean_alloc_ctor(1, 2, 0); } else { - x_1138 = x_1137; + x_1144 = x_1143; } -lean_ctor_set(x_1138, 0, x_2); -lean_ctor_set(x_1138, 1, x_1136); -return x_1138; -} -else -{ -lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1139 = lean_ctor_get(x_1133, 0); -lean_inc(x_1139); -x_1140 = lean_ctor_get(x_1133, 1); -lean_inc(x_1140); -if (lean_is_exclusive(x_1133)) { - lean_ctor_release(x_1133, 0); - lean_ctor_release(x_1133, 1); - x_1141 = x_1133; -} else { - lean_dec_ref(x_1133); - x_1141 = lean_box(0); -} -if (lean_is_scalar(x_1141)) { - x_1142 = lean_alloc_ctor(1, 2, 0); -} else { - x_1142 = x_1141; -} -lean_ctor_set(x_1142, 0, x_1139); -lean_ctor_set(x_1142, 1, x_1140); -return x_1142; -} -} -} -else -{ -lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; -lean_inc(x_2); -x_1151 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1151, 0, x_2); -x_1152 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1130, x_1151, x_4, x_5, x_6, x_7, x_8, x_9, x_980); -x_1153 = lean_ctor_get(x_1152, 1); -lean_inc(x_1153); -lean_dec(x_1152); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_1154 = x_1153; -goto block_1165; -} -else -{ -lean_object* x_1166; lean_object* x_1167; -x_1166 = lean_ctor_get(x_13, 0); -lean_inc(x_1166); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_1167 = l_Lean_Elab_Term_isDefEq(x_1166, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1153); -if (lean_obj_tag(x_1167) == 0) -{ -lean_object* x_1168; -x_1168 = lean_ctor_get(x_1167, 1); -lean_inc(x_1168); -lean_dec(x_1167); -x_1154 = x_1168; -goto block_1165; -} -else -{ -lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1169 = lean_ctor_get(x_1167, 0); -lean_inc(x_1169); -x_1170 = lean_ctor_get(x_1167, 1); -lean_inc(x_1170); -if (lean_is_exclusive(x_1167)) { - lean_ctor_release(x_1167, 0); - lean_ctor_release(x_1167, 1); - x_1171 = x_1167; -} else { - lean_dec_ref(x_1167); - x_1171 = lean_box(0); -} -if (lean_is_scalar(x_1171)) { - x_1172 = lean_alloc_ctor(1, 2, 0); -} else { - x_1172 = x_1171; -} -lean_ctor_set(x_1172, 0, x_1169); -lean_ctor_set(x_1172, 1, x_1170); -return x_1172; -} -} -block_1165: -{ -lean_object* x_1155; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_1155 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1154); -lean_dec(x_17); -if (lean_obj_tag(x_1155) == 0) -{ -lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; -x_1156 = lean_ctor_get(x_1155, 1); -lean_inc(x_1156); -lean_dec(x_1155); -lean_inc(x_2); -x_1157 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__15(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1156); -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_19); -x_1158 = lean_ctor_get(x_1157, 1); -lean_inc(x_1158); -if (lean_is_exclusive(x_1157)) { - lean_ctor_release(x_1157, 0); - lean_ctor_release(x_1157, 1); - x_1159 = x_1157; -} else { - lean_dec_ref(x_1157); - x_1159 = lean_box(0); -} -if (lean_is_scalar(x_1159)) { - x_1160 = lean_alloc_ctor(0, 2, 0); -} else { - x_1160 = x_1159; -} -lean_ctor_set(x_1160, 0, x_2); -lean_ctor_set(x_1160, 1, x_1158); -return x_1160; -} -else -{ -lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1161 = lean_ctor_get(x_1155, 0); -lean_inc(x_1161); -x_1162 = lean_ctor_get(x_1155, 1); -lean_inc(x_1162); -if (lean_is_exclusive(x_1155)) { - lean_ctor_release(x_1155, 0); - lean_ctor_release(x_1155, 1); - x_1163 = x_1155; -} else { - lean_dec_ref(x_1155); - x_1163 = lean_box(0); -} -if (lean_is_scalar(x_1163)) { - x_1164 = lean_alloc_ctor(1, 2, 0); -} else { - x_1164 = x_1163; -} -lean_ctor_set(x_1164, 0, x_1161); -lean_ctor_set(x_1164, 1, x_1162); -return x_1164; +lean_ctor_set(x_1144, 0, x_1141); +lean_ctor_set(x_1144, 1, x_1142); +return x_1144; } } } @@ -10129,12 +9907,12 @@ return x_1164; } else { -lean_object* x_1173; lean_object* x_1174; -lean_dec(x_982); +lean_object* x_1153; lean_object* x_1154; +lean_dec(x_967); lean_dec(x_112); lean_dec(x_22); lean_dec(x_3); -x_1173 = lean_array_fget(x_12, x_15); +x_1153 = lean_array_fget(x_12, x_15); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -10142,43 +9920,43 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_1174 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1173, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_980); -if (lean_obj_tag(x_1174) == 0) +x_1154 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1153, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_965); +if (lean_obj_tag(x_1154) == 0) { -lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; -x_1175 = lean_ctor_get(x_1174, 0); -lean_inc(x_1175); -x_1176 = lean_ctor_get(x_1174, 1); -lean_inc(x_1176); -lean_dec(x_1174); -x_1177 = lean_unsigned_to_nat(1u); -x_1178 = lean_nat_add(x_15, x_1177); +lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; +x_1155 = lean_ctor_get(x_1154, 0); +lean_inc(x_1155); +x_1156 = lean_ctor_get(x_1154, 1); +lean_inc(x_1156); +lean_dec(x_1154); +x_1157 = lean_unsigned_to_nat(1u); +x_1158 = lean_nat_add(x_15, x_1157); lean_dec(x_15); -x_1179 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_1179, 0, x_11); -lean_ctor_set(x_1179, 1, x_12); -lean_ctor_set(x_1179, 2, x_13); -lean_ctor_set(x_1179, 3, x_1178); -lean_ctor_set(x_1179, 4, x_16); -lean_ctor_set(x_1179, 5, x_17); -lean_ctor_set(x_1179, 6, x_18); -lean_ctor_set(x_1179, 7, x_19); -lean_ctor_set_uint8(x_1179, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_1179, sizeof(void*)*8 + 1, x_981); -lean_inc(x_1175); -x_1180 = l_Lean_mkApp(x_2, x_1175); -x_1181 = lean_expr_instantiate1(x_114, x_1175); -lean_dec(x_1175); +x_1159 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_1159, 0, x_11); +lean_ctor_set(x_1159, 1, x_12); +lean_ctor_set(x_1159, 2, x_13); +lean_ctor_set(x_1159, 3, x_1158); +lean_ctor_set(x_1159, 4, x_16); +lean_ctor_set(x_1159, 5, x_17); +lean_ctor_set(x_1159, 6, x_18); +lean_ctor_set(x_1159, 7, x_19); +lean_ctor_set_uint8(x_1159, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_1159, sizeof(void*)*8 + 1, x_966); +lean_inc(x_1155); +x_1160 = l_Lean_mkApp(x_2, x_1155); +x_1161 = lean_expr_instantiate1(x_114, x_1155); +lean_dec(x_1155); lean_dec(x_114); -x_1 = x_1179; -x_2 = x_1180; -x_3 = x_1181; -x_10 = x_1176; +x_1 = x_1159; +x_2 = x_1160; +x_3 = x_1161; +x_10 = x_1156; goto _start; } else { -lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; +lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; lean_dec(x_114); lean_dec(x_8); lean_dec(x_19); @@ -10195,32 +9973,32 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1183 = lean_ctor_get(x_1174, 0); -lean_inc(x_1183); -x_1184 = lean_ctor_get(x_1174, 1); -lean_inc(x_1184); -if (lean_is_exclusive(x_1174)) { - lean_ctor_release(x_1174, 0); - lean_ctor_release(x_1174, 1); - x_1185 = x_1174; +x_1163 = lean_ctor_get(x_1154, 0); +lean_inc(x_1163); +x_1164 = lean_ctor_get(x_1154, 1); +lean_inc(x_1164); +if (lean_is_exclusive(x_1154)) { + lean_ctor_release(x_1154, 0); + lean_ctor_release(x_1154, 1); + x_1165 = x_1154; } else { - lean_dec_ref(x_1174); - x_1185 = lean_box(0); + lean_dec_ref(x_1154); + x_1165 = lean_box(0); } -if (lean_is_scalar(x_1185)) { - x_1186 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1165)) { + x_1166 = lean_alloc_ctor(1, 2, 0); } else { - x_1186 = x_1185; + x_1166 = x_1165; } -lean_ctor_set(x_1186, 0, x_1183); -lean_ctor_set(x_1186, 1, x_1184); -return x_1186; +lean_ctor_set(x_1166, 0, x_1163); +lean_ctor_set(x_1166, 1, x_1164); +return x_1166; } } } else { -lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; +lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; lean_dec(x_114); lean_dec(x_113); lean_dec(x_112); @@ -10241,26 +10019,26 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_1187 = lean_ctor_get(x_756, 0); -lean_inc(x_1187); -x_1188 = lean_ctor_get(x_756, 1); -lean_inc(x_1188); -if (lean_is_exclusive(x_756)) { - lean_ctor_release(x_756, 0); - lean_ctor_release(x_756, 1); - x_1189 = x_756; +x_1167 = lean_ctor_get(x_746, 0); +lean_inc(x_1167); +x_1168 = lean_ctor_get(x_746, 1); +lean_inc(x_1168); +if (lean_is_exclusive(x_746)) { + lean_ctor_release(x_746, 0); + lean_ctor_release(x_746, 1); + x_1169 = x_746; } else { - lean_dec_ref(x_756); - x_1189 = lean_box(0); + lean_dec_ref(x_746); + x_1169 = lean_box(0); } -if (lean_is_scalar(x_1189)) { - x_1190 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1169)) { + x_1170 = lean_alloc_ctor(1, 2, 0); } else { - x_1190 = x_1189; + x_1170 = x_1169; } -lean_ctor_set(x_1190, 0, x_1187); -lean_ctor_set(x_1190, 1, x_1188); -return x_1190; +lean_ctor_set(x_1170, 0, x_1167); +lean_ctor_set(x_1170, 1, x_1168); +return x_1170; } } } @@ -10268,153 +10046,153 @@ case 3: { if (x_14 == 0) { -uint8_t x_1191; +uint8_t x_1171; lean_dec(x_112); lean_dec(x_28); lean_dec(x_22); lean_dec(x_3); -x_1191 = !lean_is_exclusive(x_1); -if (x_1191 == 0) +x_1171 = !lean_is_exclusive(x_1); +if (x_1171 == 0) { -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; uint8_t x_1201; lean_object* x_1202; lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; -x_1192 = lean_ctor_get(x_1, 7); -lean_dec(x_1192); -x_1193 = lean_ctor_get(x_1, 6); -lean_dec(x_1193); -x_1194 = lean_ctor_get(x_1, 5); -lean_dec(x_1194); -x_1195 = lean_ctor_get(x_1, 4); -lean_dec(x_1195); -x_1196 = lean_ctor_get(x_1, 3); -lean_dec(x_1196); -x_1197 = lean_ctor_get(x_1, 2); -lean_dec(x_1197); -x_1198 = lean_ctor_get(x_1, 1); -lean_dec(x_1198); -x_1199 = lean_ctor_get(x_1, 0); -lean_dec(x_1199); -x_1200 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1200, 0, x_113); -x_1201 = 1; -x_1202 = lean_box(0); +lean_object* x_1172; lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; uint8_t x_1181; lean_object* x_1182; 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; +x_1172 = lean_ctor_get(x_1, 7); +lean_dec(x_1172); +x_1173 = lean_ctor_get(x_1, 6); +lean_dec(x_1173); +x_1174 = lean_ctor_get(x_1, 5); +lean_dec(x_1174); +x_1175 = lean_ctor_get(x_1, 4); +lean_dec(x_1175); +x_1176 = lean_ctor_get(x_1, 3); +lean_dec(x_1176); +x_1177 = lean_ctor_get(x_1, 2); +lean_dec(x_1177); +x_1178 = lean_ctor_get(x_1, 1); +lean_dec(x_1178); +x_1179 = lean_ctor_get(x_1, 0); +lean_dec(x_1179); +x_1180 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1180, 0, x_113); +x_1181 = 1; +x_1182 = lean_box(0); lean_inc(x_6); lean_inc(x_4); -x_1203 = l_Lean_Meta_mkFreshExprMVar___at_Lean_Elab_Term_tryCoe___spec__2(x_1200, x_1201, x_1202, x_4, x_5, x_6, x_7, x_8, x_9, x_29); -x_1204 = lean_ctor_get(x_1203, 0); -lean_inc(x_1204); -x_1205 = lean_ctor_get(x_1203, 1); -lean_inc(x_1205); -lean_dec(x_1203); -x_1206 = l_Lean_Expr_mvarId_x21(x_1204); -x_1207 = lean_array_push(x_17, x_1206); -lean_ctor_set(x_1, 5, x_1207); -lean_inc(x_1204); -x_1208 = l_Lean_mkApp(x_2, x_1204); -x_1209 = lean_expr_instantiate1(x_114, x_1204); -lean_dec(x_1204); +x_1183 = l_Lean_Meta_mkFreshExprMVar___at_Lean_Elab_Term_tryCoe___spec__2(x_1180, x_1181, x_1182, x_4, x_5, x_6, x_7, x_8, x_9, x_29); +x_1184 = lean_ctor_get(x_1183, 0); +lean_inc(x_1184); +x_1185 = lean_ctor_get(x_1183, 1); +lean_inc(x_1185); +lean_dec(x_1183); +x_1186 = l_Lean_Expr_mvarId_x21(x_1184); +x_1187 = lean_array_push(x_17, x_1186); +lean_ctor_set(x_1, 5, x_1187); +lean_inc(x_1184); +x_1188 = l_Lean_mkApp(x_2, x_1184); +x_1189 = lean_expr_instantiate1(x_114, x_1184); +lean_dec(x_1184); lean_dec(x_114); -x_2 = x_1208; -x_3 = x_1209; -x_10 = x_1205; +x_2 = x_1188; +x_3 = x_1189; +x_10 = x_1185; goto _start; } else { -lean_object* x_1211; uint8_t x_1212; lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; +lean_object* x_1191; uint8_t 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_object* x_1201; lean_dec(x_1); -x_1211 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1211, 0, x_113); -x_1212 = 1; -x_1213 = lean_box(0); +x_1191 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1191, 0, x_113); +x_1192 = 1; +x_1193 = lean_box(0); lean_inc(x_6); lean_inc(x_4); -x_1214 = l_Lean_Meta_mkFreshExprMVar___at_Lean_Elab_Term_tryCoe___spec__2(x_1211, x_1212, x_1213, x_4, x_5, x_6, x_7, x_8, x_9, x_29); -x_1215 = lean_ctor_get(x_1214, 0); -lean_inc(x_1215); -x_1216 = lean_ctor_get(x_1214, 1); -lean_inc(x_1216); -lean_dec(x_1214); -x_1217 = l_Lean_Expr_mvarId_x21(x_1215); -x_1218 = lean_array_push(x_17, x_1217); -x_1219 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_1219, 0, x_11); -lean_ctor_set(x_1219, 1, x_12); -lean_ctor_set(x_1219, 2, x_13); -lean_ctor_set(x_1219, 3, x_15); -lean_ctor_set(x_1219, 4, x_16); -lean_ctor_set(x_1219, 5, x_1218); -lean_ctor_set(x_1219, 6, x_18); -lean_ctor_set(x_1219, 7, x_19); -lean_ctor_set_uint8(x_1219, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_1219, sizeof(void*)*8 + 1, x_21); -lean_inc(x_1215); -x_1220 = l_Lean_mkApp(x_2, x_1215); -x_1221 = lean_expr_instantiate1(x_114, x_1215); -lean_dec(x_1215); +x_1194 = l_Lean_Meta_mkFreshExprMVar___at_Lean_Elab_Term_tryCoe___spec__2(x_1191, x_1192, x_1193, x_4, x_5, x_6, x_7, x_8, x_9, x_29); +x_1195 = lean_ctor_get(x_1194, 0); +lean_inc(x_1195); +x_1196 = lean_ctor_get(x_1194, 1); +lean_inc(x_1196); +lean_dec(x_1194); +x_1197 = l_Lean_Expr_mvarId_x21(x_1195); +x_1198 = lean_array_push(x_17, x_1197); +x_1199 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_1199, 0, x_11); +lean_ctor_set(x_1199, 1, x_12); +lean_ctor_set(x_1199, 2, x_13); +lean_ctor_set(x_1199, 3, x_15); +lean_ctor_set(x_1199, 4, x_16); +lean_ctor_set(x_1199, 5, x_1198); +lean_ctor_set(x_1199, 6, x_18); +lean_ctor_set(x_1199, 7, x_19); +lean_ctor_set_uint8(x_1199, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_1199, sizeof(void*)*8 + 1, x_21); +lean_inc(x_1195); +x_1200 = l_Lean_mkApp(x_2, x_1195); +x_1201 = lean_expr_instantiate1(x_114, x_1195); +lean_dec(x_1195); lean_dec(x_114); -x_1 = x_1219; -x_2 = x_1220; -x_3 = x_1221; -x_10 = x_1216; +x_1 = x_1199; +x_2 = x_1200; +x_3 = x_1201; +x_10 = x_1196; goto _start; } } else { -uint8_t x_1223; -x_1223 = l___private_Lean_Elab_App_9__nextArgIsHole(x_1); -if (x_1223 == 0) +uint8_t x_1203; +x_1203 = l___private_Lean_Elab_App_9__nextArgIsHole(x_1); +if (x_1203 == 0) { -lean_object* x_1224; uint8_t x_1225; +lean_object* x_1204; uint8_t x_1205; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); lean_inc(x_1); -x_1224 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_29); -x_1225 = !lean_is_exclusive(x_1); -if (x_1225 == 0) +x_1204 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_29); +x_1205 = !lean_is_exclusive(x_1); +if (x_1205 == 0) { -lean_object* x_1226; lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; -x_1226 = lean_ctor_get(x_1, 7); -lean_dec(x_1226); -x_1227 = lean_ctor_get(x_1, 6); -lean_dec(x_1227); -x_1228 = lean_ctor_get(x_1, 5); -lean_dec(x_1228); -x_1229 = lean_ctor_get(x_1, 4); -lean_dec(x_1229); -x_1230 = lean_ctor_get(x_1, 3); -lean_dec(x_1230); -x_1231 = lean_ctor_get(x_1, 2); -lean_dec(x_1231); -x_1232 = lean_ctor_get(x_1, 1); -lean_dec(x_1232); -x_1233 = lean_ctor_get(x_1, 0); -lean_dec(x_1233); -if (lean_obj_tag(x_1224) == 0) +lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; +x_1206 = lean_ctor_get(x_1, 7); +lean_dec(x_1206); +x_1207 = lean_ctor_get(x_1, 6); +lean_dec(x_1207); +x_1208 = lean_ctor_get(x_1, 5); +lean_dec(x_1208); +x_1209 = lean_ctor_get(x_1, 4); +lean_dec(x_1209); +x_1210 = lean_ctor_get(x_1, 3); +lean_dec(x_1210); +x_1211 = lean_ctor_get(x_1, 2); +lean_dec(x_1211); +x_1212 = lean_ctor_get(x_1, 1); +lean_dec(x_1212); +x_1213 = lean_ctor_get(x_1, 0); +lean_dec(x_1213); +if (lean_obj_tag(x_1204) == 0) { -lean_object* x_1234; lean_object* x_1235; uint8_t x_1236; -x_1234 = lean_ctor_get(x_1224, 1); -lean_inc(x_1234); -lean_dec(x_1224); -x_1235 = lean_array_get_size(x_12); -x_1236 = lean_nat_dec_lt(x_15, x_1235); -lean_dec(x_1235); -if (x_1236 == 0) +lean_object* x_1214; lean_object* x_1215; uint8_t x_1216; +x_1214 = lean_ctor_get(x_1204, 1); +lean_inc(x_1214); +lean_dec(x_1204); +x_1215 = lean_array_get_size(x_12); +x_1216 = lean_nat_dec_lt(x_15, x_1215); +lean_dec(x_1215); +if (x_1216 == 0) { -uint8_t x_1237; +uint8_t x_1217; lean_free_object(x_1); lean_dec(x_114); lean_dec(x_113); lean_dec(x_18); lean_dec(x_15); lean_dec(x_12); -x_1237 = l_Array_isEmpty___rarg(x_16); -if (x_1237 == 0) +x_1217 = l_Array_isEmpty___rarg(x_16); +if (x_1217 == 0) { -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_1249; lean_object* x_1250; lean_object* x_1251; lean_object* x_1252; lean_object* x_1253; +lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_dec(x_22); lean_dec(x_19); lean_dec(x_17); @@ -10422,81 +10200,81 @@ lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_1238 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1238, 0, x_112); -x_1239 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_1240 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1240, 0, x_1239); -lean_ctor_set(x_1240, 1, x_1238); -x_1241 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_1242 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1242, 0, x_1240); -lean_ctor_set(x_1242, 1, x_1241); -x_1243 = x_16; -x_1244 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_1243); -x_1245 = x_1244; -x_1246 = l_Array_toList___rarg(x_1245); -lean_dec(x_1245); -x_1247 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1246); -x_1248 = l_Array_HasRepr___rarg___closed__1; -x_1249 = lean_string_append(x_1248, x_1247); -lean_dec(x_1247); -x_1250 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1250, 0, x_1249); -x_1251 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1251, 0, x_1250); -x_1252 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1252, 0, x_1242); -lean_ctor_set(x_1252, 1, x_1251); -x_1253 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1252, x_4, x_5, x_6, x_7, x_8, x_9, x_1234); +x_1218 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1218, 0, x_112); +x_1219 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1220 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1220, 0, x_1219); +lean_ctor_set(x_1220, 1, x_1218); +x_1221 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1222 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1222, 0, x_1220); +lean_ctor_set(x_1222, 1, x_1221); +x_1223 = x_16; +x_1224 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_1223); +x_1225 = x_1224; +x_1226 = l_Array_toList___rarg(x_1225); +lean_dec(x_1225); +x_1227 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1226); +x_1228 = l_Array_HasRepr___rarg___closed__1; +x_1229 = lean_string_append(x_1228, x_1227); +lean_dec(x_1227); +x_1230 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1230, 0, x_1229); +x_1231 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1231, 0, x_1230); +x_1232 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1232, 0, x_1222); +lean_ctor_set(x_1232, 1, x_1231); +x_1233 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1232, x_4, x_5, x_6, x_7, x_8, x_9, x_1214); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_1253; +return x_1233; } else { -lean_object* x_1254; uint8_t x_1255; +lean_object* x_1234; uint8_t x_1235; lean_dec(x_112); lean_dec(x_16); -x_1254 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_1255 = l_Lean_checkTraceOption(x_22, x_1254); +x_1234 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1235 = l_Lean_checkTraceOption(x_22, x_1234); lean_dec(x_22); -if (x_1255 == 0) +if (x_1235 == 0) { -lean_object* x_1256; +lean_object* x_1236; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_1256 = x_1234; -goto block_1268; +x_1236 = x_1214; +goto block_1248; } else { -lean_object* x_1269; lean_object* x_1270; -x_1269 = lean_ctor_get(x_13, 0); -lean_inc(x_1269); +lean_object* x_1249; lean_object* x_1250; +x_1249 = lean_ctor_get(x_13, 0); +lean_inc(x_1249); lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1270 = l_Lean_Elab_Term_isDefEq(x_1269, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1234); -if (lean_obj_tag(x_1270) == 0) +x_1250 = l_Lean_Elab_Term_isDefEq(x_1249, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1214); +if (lean_obj_tag(x_1250) == 0) { -lean_object* x_1271; -x_1271 = lean_ctor_get(x_1270, 1); -lean_inc(x_1271); -lean_dec(x_1270); -x_1256 = x_1271; -goto block_1268; +lean_object* x_1251; +x_1251 = lean_ctor_get(x_1250, 1); +lean_inc(x_1251); +lean_dec(x_1250); +x_1236 = x_1251; +goto block_1248; } else { -uint8_t x_1272; +uint8_t x_1252; lean_dec(x_8); lean_dec(x_19); lean_dec(x_17); @@ -10507,145 +10285,145 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1272 = !lean_is_exclusive(x_1270); -if (x_1272 == 0) +x_1252 = !lean_is_exclusive(x_1250); +if (x_1252 == 0) { -return x_1270; +return x_1250; } else { -lean_object* x_1273; lean_object* x_1274; lean_object* x_1275; -x_1273 = lean_ctor_get(x_1270, 0); -x_1274 = lean_ctor_get(x_1270, 1); -lean_inc(x_1274); -lean_inc(x_1273); -lean_dec(x_1270); -x_1275 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1275, 0, x_1273); -lean_ctor_set(x_1275, 1, x_1274); -return x_1275; +lean_object* x_1253; lean_object* x_1254; lean_object* x_1255; +x_1253 = lean_ctor_get(x_1250, 0); +x_1254 = lean_ctor_get(x_1250, 1); +lean_inc(x_1254); +lean_inc(x_1253); +lean_dec(x_1250); +x_1255 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1255, 0, x_1253); +lean_ctor_set(x_1255, 1, x_1254); +return x_1255; } } } -block_1268: +block_1248: { -lean_object* x_1257; +lean_object* x_1237; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1257 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1256); +x_1237 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1236); lean_dec(x_17); -if (lean_obj_tag(x_1257) == 0) +if (lean_obj_tag(x_1237) == 0) { -lean_object* x_1258; lean_object* x_1259; uint8_t x_1260; +lean_object* x_1238; lean_object* x_1239; uint8_t x_1240; +x_1238 = lean_ctor_get(x_1237, 1); +lean_inc(x_1238); +lean_dec(x_1237); +lean_inc(x_2); +x_1239 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__16(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1238); +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_19); +x_1240 = !lean_is_exclusive(x_1239); +if (x_1240 == 0) +{ +lean_object* x_1241; +x_1241 = lean_ctor_get(x_1239, 0); +lean_dec(x_1241); +lean_ctor_set(x_1239, 0, x_2); +return x_1239; +} +else +{ +lean_object* x_1242; lean_object* x_1243; +x_1242 = lean_ctor_get(x_1239, 1); +lean_inc(x_1242); +lean_dec(x_1239); +x_1243 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1243, 0, x_2); +lean_ctor_set(x_1243, 1, x_1242); +return x_1243; +} +} +else +{ +uint8_t x_1244; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1244 = !lean_is_exclusive(x_1237); +if (x_1244 == 0) +{ +return x_1237; +} +else +{ +lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; +x_1245 = lean_ctor_get(x_1237, 0); +x_1246 = lean_ctor_get(x_1237, 1); +lean_inc(x_1246); +lean_inc(x_1245); +lean_dec(x_1237); +x_1247 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1247, 0, x_1245); +lean_ctor_set(x_1247, 1, x_1246); +return x_1247; +} +} +} +} +else +{ +lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; +lean_inc(x_2); +x_1256 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1256, 0, x_2); +x_1257 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1234, x_1256, x_4, x_5, x_6, x_7, x_8, x_9, x_1214); x_1258 = lean_ctor_get(x_1257, 1); lean_inc(x_1258); lean_dec(x_1257); -lean_inc(x_2); -x_1259 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__16(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1258); -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_19); -x_1260 = !lean_is_exclusive(x_1259); -if (x_1260 == 0) -{ -lean_object* x_1261; -x_1261 = lean_ctor_get(x_1259, 0); -lean_dec(x_1261); -lean_ctor_set(x_1259, 0, x_2); -return x_1259; -} -else -{ -lean_object* x_1262; lean_object* x_1263; -x_1262 = lean_ctor_get(x_1259, 1); -lean_inc(x_1262); -lean_dec(x_1259); -x_1263 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1263, 0, x_2); -lean_ctor_set(x_1263, 1, x_1262); -return x_1263; -} -} -else -{ -uint8_t x_1264; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1264 = !lean_is_exclusive(x_1257); -if (x_1264 == 0) -{ -return x_1257; -} -else -{ -lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; -x_1265 = lean_ctor_get(x_1257, 0); -x_1266 = lean_ctor_get(x_1257, 1); -lean_inc(x_1266); -lean_inc(x_1265); -lean_dec(x_1257); -x_1267 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1267, 0, x_1265); -lean_ctor_set(x_1267, 1, x_1266); -return x_1267; -} -} -} -} -else -{ -lean_object* x_1276; lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; -lean_inc(x_2); -x_1276 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1276, 0, x_2); -x_1277 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1254, x_1276, x_4, x_5, x_6, x_7, x_8, x_9, x_1234); -x_1278 = lean_ctor_get(x_1277, 1); -lean_inc(x_1278); -lean_dec(x_1277); if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_1279 = x_1278; -goto block_1291; +x_1259 = x_1258; +goto block_1271; } else { -lean_object* x_1292; lean_object* x_1293; -x_1292 = lean_ctor_get(x_13, 0); -lean_inc(x_1292); +lean_object* x_1272; lean_object* x_1273; +x_1272 = lean_ctor_get(x_13, 0); +lean_inc(x_1272); lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1293 = l_Lean_Elab_Term_isDefEq(x_1292, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1278); -if (lean_obj_tag(x_1293) == 0) +x_1273 = l_Lean_Elab_Term_isDefEq(x_1272, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1258); +if (lean_obj_tag(x_1273) == 0) { -lean_object* x_1294; -x_1294 = lean_ctor_get(x_1293, 1); -lean_inc(x_1294); -lean_dec(x_1293); -x_1279 = x_1294; -goto block_1291; +lean_object* x_1274; +x_1274 = lean_ctor_get(x_1273, 1); +lean_inc(x_1274); +lean_dec(x_1273); +x_1259 = x_1274; +goto block_1271; } else { -uint8_t x_1295; +uint8_t x_1275; lean_dec(x_8); lean_dec(x_19); lean_dec(x_17); @@ -10656,44 +10434,44 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1295 = !lean_is_exclusive(x_1293); -if (x_1295 == 0) +x_1275 = !lean_is_exclusive(x_1273); +if (x_1275 == 0) { -return x_1293; +return x_1273; } else { -lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; -x_1296 = lean_ctor_get(x_1293, 0); -x_1297 = lean_ctor_get(x_1293, 1); -lean_inc(x_1297); -lean_inc(x_1296); -lean_dec(x_1293); -x_1298 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1298, 0, x_1296); -lean_ctor_set(x_1298, 1, x_1297); -return x_1298; +lean_object* x_1276; lean_object* x_1277; lean_object* x_1278; +x_1276 = lean_ctor_get(x_1273, 0); +x_1277 = lean_ctor_get(x_1273, 1); +lean_inc(x_1277); +lean_inc(x_1276); +lean_dec(x_1273); +x_1278 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1278, 0, x_1276); +lean_ctor_set(x_1278, 1, x_1277); +return x_1278; } } } -block_1291: +block_1271: { -lean_object* x_1280; +lean_object* x_1260; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1280 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1279); +x_1260 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1259); lean_dec(x_17); -if (lean_obj_tag(x_1280) == 0) +if (lean_obj_tag(x_1260) == 0) { -lean_object* x_1281; lean_object* x_1282; uint8_t x_1283; -x_1281 = lean_ctor_get(x_1280, 1); -lean_inc(x_1281); -lean_dec(x_1280); +lean_object* x_1261; lean_object* x_1262; uint8_t x_1263; +x_1261 = lean_ctor_get(x_1260, 1); +lean_inc(x_1261); +lean_dec(x_1260); lean_inc(x_2); -x_1282 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__17(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1281); +x_1262 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__17(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1261); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -10701,30 +10479,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); -x_1283 = !lean_is_exclusive(x_1282); -if (x_1283 == 0) +x_1263 = !lean_is_exclusive(x_1262); +if (x_1263 == 0) { -lean_object* x_1284; -x_1284 = lean_ctor_get(x_1282, 0); -lean_dec(x_1284); -lean_ctor_set(x_1282, 0, x_2); -return x_1282; +lean_object* x_1264; +x_1264 = lean_ctor_get(x_1262, 0); +lean_dec(x_1264); +lean_ctor_set(x_1262, 0, x_2); +return x_1262; } else { -lean_object* x_1285; lean_object* x_1286; -x_1285 = lean_ctor_get(x_1282, 1); -lean_inc(x_1285); -lean_dec(x_1282); -x_1286 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1286, 0, x_2); -lean_ctor_set(x_1286, 1, x_1285); -return x_1286; +lean_object* x_1265; lean_object* x_1266; +x_1265 = lean_ctor_get(x_1262, 1); +lean_inc(x_1265); +lean_dec(x_1262); +x_1266 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1266, 0, x_2); +lean_ctor_set(x_1266, 1, x_1265); +return x_1266; } } else { -uint8_t x_1287; +uint8_t x_1267; lean_dec(x_8); lean_dec(x_19); lean_dec(x_11); @@ -10734,112 +10512,112 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1287 = !lean_is_exclusive(x_1280); -if (x_1287 == 0) +x_1267 = !lean_is_exclusive(x_1260); +if (x_1267 == 0) +{ +return x_1260; +} +else +{ +lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; +x_1268 = lean_ctor_get(x_1260, 0); +x_1269 = lean_ctor_get(x_1260, 1); +lean_inc(x_1269); +lean_inc(x_1268); +lean_dec(x_1260); +x_1270 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1270, 0, x_1268); +lean_ctor_set(x_1270, 1, x_1269); +return x_1270; +} +} +} +} +} +} +else +{ +lean_object* x_1279; lean_object* x_1280; +lean_dec(x_112); +lean_dec(x_22); +lean_dec(x_3); +x_1279 = lean_array_fget(x_12, x_15); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_1280 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1279, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_1214); +if (lean_obj_tag(x_1280) == 0) +{ +lean_object* x_1281; lean_object* x_1282; lean_object* x_1283; lean_object* x_1284; uint8_t x_1285; lean_object* x_1286; lean_object* x_1287; +x_1281 = lean_ctor_get(x_1280, 0); +lean_inc(x_1281); +x_1282 = lean_ctor_get(x_1280, 1); +lean_inc(x_1282); +lean_dec(x_1280); +x_1283 = lean_unsigned_to_nat(1u); +x_1284 = lean_nat_add(x_15, x_1283); +lean_dec(x_15); +x_1285 = 1; +lean_ctor_set(x_1, 3, x_1284); +lean_ctor_set_uint8(x_1, sizeof(void*)*8 + 1, x_1285); +lean_inc(x_1281); +x_1286 = l_Lean_mkApp(x_2, x_1281); +x_1287 = lean_expr_instantiate1(x_114, x_1281); +lean_dec(x_1281); +lean_dec(x_114); +x_2 = x_1286; +x_3 = x_1287; +x_10 = x_1282; +goto _start; +} +else +{ +uint8_t x_1289; +lean_free_object(x_1); +lean_dec(x_114); +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1289 = !lean_is_exclusive(x_1280); +if (x_1289 == 0) { return x_1280; } else { -lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; -x_1288 = lean_ctor_get(x_1280, 0); -x_1289 = lean_ctor_get(x_1280, 1); -lean_inc(x_1289); -lean_inc(x_1288); +lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; +x_1290 = lean_ctor_get(x_1280, 0); +x_1291 = lean_ctor_get(x_1280, 1); +lean_inc(x_1291); +lean_inc(x_1290); lean_dec(x_1280); -x_1290 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1290, 0, x_1288); -lean_ctor_set(x_1290, 1, x_1289); -return x_1290; -} -} -} -} -} -} -else -{ -lean_object* x_1299; lean_object* x_1300; -lean_dec(x_112); -lean_dec(x_22); -lean_dec(x_3); -x_1299 = lean_array_fget(x_12, x_15); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_1300 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1299, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_1234); -if (lean_obj_tag(x_1300) == 0) -{ -lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; uint8_t x_1305; lean_object* x_1306; lean_object* x_1307; -x_1301 = lean_ctor_get(x_1300, 0); -lean_inc(x_1301); -x_1302 = lean_ctor_get(x_1300, 1); -lean_inc(x_1302); -lean_dec(x_1300); -x_1303 = lean_unsigned_to_nat(1u); -x_1304 = lean_nat_add(x_15, x_1303); -lean_dec(x_15); -x_1305 = 1; -lean_ctor_set(x_1, 3, x_1304); -lean_ctor_set_uint8(x_1, sizeof(void*)*8 + 1, x_1305); -lean_inc(x_1301); -x_1306 = l_Lean_mkApp(x_2, x_1301); -x_1307 = lean_expr_instantiate1(x_114, x_1301); -lean_dec(x_1301); -lean_dec(x_114); -x_2 = x_1306; -x_3 = x_1307; -x_10 = x_1302; -goto _start; -} -else -{ -uint8_t x_1309; -lean_free_object(x_1); -lean_dec(x_114); -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1309 = !lean_is_exclusive(x_1300); -if (x_1309 == 0) -{ -return x_1300; -} -else -{ -lean_object* x_1310; lean_object* x_1311; lean_object* x_1312; -x_1310 = lean_ctor_get(x_1300, 0); -x_1311 = lean_ctor_get(x_1300, 1); -lean_inc(x_1311); -lean_inc(x_1310); -lean_dec(x_1300); -x_1312 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1312, 0, x_1310); -lean_ctor_set(x_1312, 1, x_1311); -return x_1312; +x_1292 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1292, 0, x_1290); +lean_ctor_set(x_1292, 1, x_1291); +return x_1292; } } } } else { -uint8_t x_1313; +uint8_t x_1293; lean_free_object(x_1); lean_dec(x_114); lean_dec(x_113); @@ -10861,50 +10639,50 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_1313 = !lean_is_exclusive(x_1224); -if (x_1313 == 0) +x_1293 = !lean_is_exclusive(x_1204); +if (x_1293 == 0) { -return x_1224; +return x_1204; } else { -lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; -x_1314 = lean_ctor_get(x_1224, 0); -x_1315 = lean_ctor_get(x_1224, 1); -lean_inc(x_1315); -lean_inc(x_1314); -lean_dec(x_1224); -x_1316 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1316, 0, x_1314); -lean_ctor_set(x_1316, 1, x_1315); -return x_1316; +lean_object* x_1294; lean_object* x_1295; lean_object* x_1296; +x_1294 = lean_ctor_get(x_1204, 0); +x_1295 = lean_ctor_get(x_1204, 1); +lean_inc(x_1295); +lean_inc(x_1294); +lean_dec(x_1204); +x_1296 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1296, 0, x_1294); +lean_ctor_set(x_1296, 1, x_1295); +return x_1296; } } } else { lean_dec(x_1); -if (lean_obj_tag(x_1224) == 0) +if (lean_obj_tag(x_1204) == 0) { -lean_object* x_1317; lean_object* x_1318; uint8_t x_1319; -x_1317 = lean_ctor_get(x_1224, 1); -lean_inc(x_1317); -lean_dec(x_1224); -x_1318 = lean_array_get_size(x_12); -x_1319 = lean_nat_dec_lt(x_15, x_1318); -lean_dec(x_1318); -if (x_1319 == 0) +lean_object* x_1297; lean_object* x_1298; uint8_t x_1299; +x_1297 = lean_ctor_get(x_1204, 1); +lean_inc(x_1297); +lean_dec(x_1204); +x_1298 = lean_array_get_size(x_12); +x_1299 = lean_nat_dec_lt(x_15, x_1298); +lean_dec(x_1298); +if (x_1299 == 0) { -uint8_t x_1320; +uint8_t x_1300; lean_dec(x_114); lean_dec(x_113); lean_dec(x_18); lean_dec(x_15); lean_dec(x_12); -x_1320 = l_Array_isEmpty___rarg(x_16); -if (x_1320 == 0) +x_1300 = l_Array_isEmpty___rarg(x_16); +if (x_1300 == 0) { -lean_object* x_1321; lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; lean_object* x_1331; lean_object* x_1332; lean_object* x_1333; lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; +lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; 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_dec(x_22); lean_dec(x_19); lean_dec(x_17); @@ -10912,81 +10690,81 @@ lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_1321 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1321, 0, x_112); -x_1322 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_1323 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1323, 0, x_1322); -lean_ctor_set(x_1323, 1, x_1321); -x_1324 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_1325 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1325, 0, x_1323); -lean_ctor_set(x_1325, 1, x_1324); -x_1326 = x_16; -x_1327 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_1326); -x_1328 = x_1327; -x_1329 = l_Array_toList___rarg(x_1328); -lean_dec(x_1328); -x_1330 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1329); -x_1331 = l_Array_HasRepr___rarg___closed__1; -x_1332 = lean_string_append(x_1331, x_1330); -lean_dec(x_1330); -x_1333 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1333, 0, x_1332); -x_1334 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1334, 0, x_1333); -x_1335 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1335, 0, x_1325); -lean_ctor_set(x_1335, 1, x_1334); -x_1336 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1335, x_4, x_5, x_6, x_7, x_8, x_9, x_1317); +x_1301 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1301, 0, x_112); +x_1302 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1303 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1303, 0, x_1302); +lean_ctor_set(x_1303, 1, x_1301); +x_1304 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1305 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1305, 0, x_1303); +lean_ctor_set(x_1305, 1, x_1304); +x_1306 = x_16; +x_1307 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_1306); +x_1308 = x_1307; +x_1309 = l_Array_toList___rarg(x_1308); +lean_dec(x_1308); +x_1310 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1309); +x_1311 = l_Array_HasRepr___rarg___closed__1; +x_1312 = lean_string_append(x_1311, x_1310); +lean_dec(x_1310); +x_1313 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1313, 0, x_1312); +x_1314 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1314, 0, x_1313); +x_1315 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1315, 0, x_1305); +lean_ctor_set(x_1315, 1, x_1314); +x_1316 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1315, x_4, x_5, x_6, x_7, x_8, x_9, x_1297); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_1336; +return x_1316; } else { -lean_object* x_1337; uint8_t x_1338; +lean_object* x_1317; uint8_t x_1318; lean_dec(x_112); lean_dec(x_16); -x_1337 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_1338 = l_Lean_checkTraceOption(x_22, x_1337); +x_1317 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1318 = l_Lean_checkTraceOption(x_22, x_1317); lean_dec(x_22); -if (x_1338 == 0) +if (x_1318 == 0) { -lean_object* x_1339; +lean_object* x_1319; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_1339 = x_1317; -goto block_1350; +x_1319 = x_1297; +goto block_1330; } else { -lean_object* x_1351; lean_object* x_1352; -x_1351 = lean_ctor_get(x_13, 0); -lean_inc(x_1351); +lean_object* x_1331; lean_object* x_1332; +x_1331 = lean_ctor_get(x_13, 0); +lean_inc(x_1331); lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1352 = l_Lean_Elab_Term_isDefEq(x_1351, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1317); -if (lean_obj_tag(x_1352) == 0) +x_1332 = l_Lean_Elab_Term_isDefEq(x_1331, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1297); +if (lean_obj_tag(x_1332) == 0) { -lean_object* x_1353; -x_1353 = lean_ctor_get(x_1352, 1); -lean_inc(x_1353); -lean_dec(x_1352); -x_1339 = x_1353; -goto block_1350; +lean_object* x_1333; +x_1333 = lean_ctor_get(x_1332, 1); +lean_inc(x_1333); +lean_dec(x_1332); +x_1319 = x_1333; +goto block_1330; } else { -lean_object* x_1354; lean_object* x_1355; lean_object* x_1356; lean_object* x_1357; +lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; lean_dec(x_8); lean_dec(x_19); lean_dec(x_17); @@ -10997,46 +10775,46 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1354 = lean_ctor_get(x_1352, 0); -lean_inc(x_1354); -x_1355 = lean_ctor_get(x_1352, 1); -lean_inc(x_1355); -if (lean_is_exclusive(x_1352)) { - lean_ctor_release(x_1352, 0); - lean_ctor_release(x_1352, 1); - x_1356 = x_1352; +x_1334 = lean_ctor_get(x_1332, 0); +lean_inc(x_1334); +x_1335 = lean_ctor_get(x_1332, 1); +lean_inc(x_1335); +if (lean_is_exclusive(x_1332)) { + lean_ctor_release(x_1332, 0); + lean_ctor_release(x_1332, 1); + x_1336 = x_1332; } else { - lean_dec_ref(x_1352); - x_1356 = lean_box(0); + lean_dec_ref(x_1332); + x_1336 = lean_box(0); } -if (lean_is_scalar(x_1356)) { - x_1357 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1336)) { + x_1337 = lean_alloc_ctor(1, 2, 0); } else { - x_1357 = x_1356; + x_1337 = x_1336; } -lean_ctor_set(x_1357, 0, x_1354); -lean_ctor_set(x_1357, 1, x_1355); -return x_1357; +lean_ctor_set(x_1337, 0, x_1334); +lean_ctor_set(x_1337, 1, x_1335); +return x_1337; } } -block_1350: +block_1330: { -lean_object* x_1340; +lean_object* x_1320; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1340 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1339); +x_1320 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1319); lean_dec(x_17); -if (lean_obj_tag(x_1340) == 0) +if (lean_obj_tag(x_1320) == 0) { -lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; lean_object* x_1344; lean_object* x_1345; -x_1341 = lean_ctor_get(x_1340, 1); -lean_inc(x_1341); -lean_dec(x_1340); +lean_object* x_1321; lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; +x_1321 = lean_ctor_get(x_1320, 1); +lean_inc(x_1321); +lean_dec(x_1320); lean_inc(x_2); -x_1342 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__16(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1341); +x_1322 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__16(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1321); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -11044,208 +10822,208 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); +x_1323 = lean_ctor_get(x_1322, 1); +lean_inc(x_1323); +if (lean_is_exclusive(x_1322)) { + lean_ctor_release(x_1322, 0); + lean_ctor_release(x_1322, 1); + x_1324 = x_1322; +} else { + lean_dec_ref(x_1322); + x_1324 = lean_box(0); +} +if (lean_is_scalar(x_1324)) { + x_1325 = lean_alloc_ctor(0, 2, 0); +} else { + x_1325 = x_1324; +} +lean_ctor_set(x_1325, 0, x_2); +lean_ctor_set(x_1325, 1, x_1323); +return x_1325; +} +else +{ +lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1326 = lean_ctor_get(x_1320, 0); +lean_inc(x_1326); +x_1327 = lean_ctor_get(x_1320, 1); +lean_inc(x_1327); +if (lean_is_exclusive(x_1320)) { + lean_ctor_release(x_1320, 0); + lean_ctor_release(x_1320, 1); + x_1328 = x_1320; +} else { + lean_dec_ref(x_1320); + x_1328 = lean_box(0); +} +if (lean_is_scalar(x_1328)) { + x_1329 = lean_alloc_ctor(1, 2, 0); +} else { + x_1329 = x_1328; +} +lean_ctor_set(x_1329, 0, x_1326); +lean_ctor_set(x_1329, 1, x_1327); +return x_1329; +} +} +} +else +{ +lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; lean_object* x_1341; +lean_inc(x_2); +x_1338 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1338, 0, x_2); +x_1339 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1317, x_1338, x_4, x_5, x_6, x_7, x_8, x_9, x_1297); +x_1340 = lean_ctor_get(x_1339, 1); +lean_inc(x_1340); +lean_dec(x_1339); +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_1341 = x_1340; +goto block_1352; +} +else +{ +lean_object* x_1353; lean_object* x_1354; +x_1353 = lean_ctor_get(x_13, 0); +lean_inc(x_1353); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_1354 = l_Lean_Elab_Term_isDefEq(x_1353, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1340); +if (lean_obj_tag(x_1354) == 0) +{ +lean_object* x_1355; +x_1355 = lean_ctor_get(x_1354, 1); +lean_inc(x_1355); +lean_dec(x_1354); +x_1341 = x_1355; +goto block_1352; +} +else +{ +lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1356 = lean_ctor_get(x_1354, 0); +lean_inc(x_1356); +x_1357 = lean_ctor_get(x_1354, 1); +lean_inc(x_1357); +if (lean_is_exclusive(x_1354)) { + lean_ctor_release(x_1354, 0); + lean_ctor_release(x_1354, 1); + x_1358 = x_1354; +} else { + lean_dec_ref(x_1354); + x_1358 = lean_box(0); +} +if (lean_is_scalar(x_1358)) { + x_1359 = lean_alloc_ctor(1, 2, 0); +} else { + x_1359 = x_1358; +} +lean_ctor_set(x_1359, 0, x_1356); +lean_ctor_set(x_1359, 1, x_1357); +return x_1359; +} +} +block_1352: +{ +lean_object* x_1342; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_1342 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1341); +lean_dec(x_17); +if (lean_obj_tag(x_1342) == 0) +{ +lean_object* x_1343; lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; x_1343 = lean_ctor_get(x_1342, 1); lean_inc(x_1343); +lean_dec(x_1342); +lean_inc(x_2); +x_1344 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__17(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1343); +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_19); +x_1345 = lean_ctor_get(x_1344, 1); +lean_inc(x_1345); +if (lean_is_exclusive(x_1344)) { + lean_ctor_release(x_1344, 0); + lean_ctor_release(x_1344, 1); + x_1346 = x_1344; +} else { + lean_dec_ref(x_1344); + x_1346 = lean_box(0); +} +if (lean_is_scalar(x_1346)) { + x_1347 = lean_alloc_ctor(0, 2, 0); +} else { + x_1347 = x_1346; +} +lean_ctor_set(x_1347, 0, x_2); +lean_ctor_set(x_1347, 1, x_1345); +return x_1347; +} +else +{ +lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; lean_object* x_1351; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1348 = lean_ctor_get(x_1342, 0); +lean_inc(x_1348); +x_1349 = lean_ctor_get(x_1342, 1); +lean_inc(x_1349); if (lean_is_exclusive(x_1342)) { lean_ctor_release(x_1342, 0); lean_ctor_release(x_1342, 1); - x_1344 = x_1342; + x_1350 = x_1342; } else { lean_dec_ref(x_1342); - x_1344 = lean_box(0); + x_1350 = lean_box(0); } -if (lean_is_scalar(x_1344)) { - x_1345 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_1350)) { + x_1351 = lean_alloc_ctor(1, 2, 0); } else { - x_1345 = x_1344; + x_1351 = x_1350; } -lean_ctor_set(x_1345, 0, x_2); -lean_ctor_set(x_1345, 1, x_1343); -return x_1345; -} -else -{ -lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1346 = lean_ctor_get(x_1340, 0); -lean_inc(x_1346); -x_1347 = lean_ctor_get(x_1340, 1); -lean_inc(x_1347); -if (lean_is_exclusive(x_1340)) { - lean_ctor_release(x_1340, 0); - lean_ctor_release(x_1340, 1); - x_1348 = x_1340; -} else { - lean_dec_ref(x_1340); - x_1348 = lean_box(0); -} -if (lean_is_scalar(x_1348)) { - x_1349 = lean_alloc_ctor(1, 2, 0); -} else { - x_1349 = x_1348; -} -lean_ctor_set(x_1349, 0, x_1346); -lean_ctor_set(x_1349, 1, x_1347); -return x_1349; -} -} -} -else -{ -lean_object* x_1358; lean_object* x_1359; lean_object* x_1360; lean_object* x_1361; -lean_inc(x_2); -x_1358 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1358, 0, x_2); -x_1359 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1337, x_1358, x_4, x_5, x_6, x_7, x_8, x_9, x_1317); -x_1360 = lean_ctor_get(x_1359, 1); -lean_inc(x_1360); -lean_dec(x_1359); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_1361 = x_1360; -goto block_1372; -} -else -{ -lean_object* x_1373; lean_object* x_1374; -x_1373 = lean_ctor_get(x_13, 0); -lean_inc(x_1373); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_1374 = l_Lean_Elab_Term_isDefEq(x_1373, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1360); -if (lean_obj_tag(x_1374) == 0) -{ -lean_object* x_1375; -x_1375 = lean_ctor_get(x_1374, 1); -lean_inc(x_1375); -lean_dec(x_1374); -x_1361 = x_1375; -goto block_1372; -} -else -{ -lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; lean_object* x_1379; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1376 = lean_ctor_get(x_1374, 0); -lean_inc(x_1376); -x_1377 = lean_ctor_get(x_1374, 1); -lean_inc(x_1377); -if (lean_is_exclusive(x_1374)) { - lean_ctor_release(x_1374, 0); - lean_ctor_release(x_1374, 1); - x_1378 = x_1374; -} else { - lean_dec_ref(x_1374); - x_1378 = lean_box(0); -} -if (lean_is_scalar(x_1378)) { - x_1379 = lean_alloc_ctor(1, 2, 0); -} else { - x_1379 = x_1378; -} -lean_ctor_set(x_1379, 0, x_1376); -lean_ctor_set(x_1379, 1, x_1377); -return x_1379; -} -} -block_1372: -{ -lean_object* x_1362; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_1362 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1361); -lean_dec(x_17); -if (lean_obj_tag(x_1362) == 0) -{ -lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; lean_object* x_1366; lean_object* x_1367; -x_1363 = lean_ctor_get(x_1362, 1); -lean_inc(x_1363); -lean_dec(x_1362); -lean_inc(x_2); -x_1364 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__17(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1363); -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_19); -x_1365 = lean_ctor_get(x_1364, 1); -lean_inc(x_1365); -if (lean_is_exclusive(x_1364)) { - lean_ctor_release(x_1364, 0); - lean_ctor_release(x_1364, 1); - x_1366 = x_1364; -} else { - lean_dec_ref(x_1364); - x_1366 = lean_box(0); -} -if (lean_is_scalar(x_1366)) { - x_1367 = lean_alloc_ctor(0, 2, 0); -} else { - x_1367 = x_1366; -} -lean_ctor_set(x_1367, 0, x_2); -lean_ctor_set(x_1367, 1, x_1365); -return x_1367; -} -else -{ -lean_object* x_1368; lean_object* x_1369; lean_object* x_1370; lean_object* x_1371; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1368 = lean_ctor_get(x_1362, 0); -lean_inc(x_1368); -x_1369 = lean_ctor_get(x_1362, 1); -lean_inc(x_1369); -if (lean_is_exclusive(x_1362)) { - lean_ctor_release(x_1362, 0); - lean_ctor_release(x_1362, 1); - x_1370 = x_1362; -} else { - lean_dec_ref(x_1362); - x_1370 = lean_box(0); -} -if (lean_is_scalar(x_1370)) { - x_1371 = lean_alloc_ctor(1, 2, 0); -} else { - x_1371 = x_1370; -} -lean_ctor_set(x_1371, 0, x_1368); -lean_ctor_set(x_1371, 1, x_1369); -return x_1371; +lean_ctor_set(x_1351, 0, x_1348); +lean_ctor_set(x_1351, 1, x_1349); +return x_1351; } } } @@ -11253,11 +11031,11 @@ return x_1371; } else { -lean_object* x_1380; lean_object* x_1381; +lean_object* x_1360; lean_object* x_1361; lean_dec(x_112); lean_dec(x_22); lean_dec(x_3); -x_1380 = lean_array_fget(x_12, x_15); +x_1360 = lean_array_fget(x_12, x_15); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -11265,44 +11043,44 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_1381 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1380, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_1317); -if (lean_obj_tag(x_1381) == 0) +x_1361 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1360, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_1297); +if (lean_obj_tag(x_1361) == 0) { -lean_object* x_1382; lean_object* x_1383; lean_object* x_1384; lean_object* x_1385; uint8_t x_1386; lean_object* x_1387; lean_object* x_1388; lean_object* x_1389; -x_1382 = lean_ctor_get(x_1381, 0); -lean_inc(x_1382); -x_1383 = lean_ctor_get(x_1381, 1); -lean_inc(x_1383); -lean_dec(x_1381); -x_1384 = lean_unsigned_to_nat(1u); -x_1385 = lean_nat_add(x_15, x_1384); +lean_object* x_1362; lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; uint8_t x_1366; lean_object* x_1367; lean_object* x_1368; lean_object* x_1369; +x_1362 = lean_ctor_get(x_1361, 0); +lean_inc(x_1362); +x_1363 = lean_ctor_get(x_1361, 1); +lean_inc(x_1363); +lean_dec(x_1361); +x_1364 = lean_unsigned_to_nat(1u); +x_1365 = lean_nat_add(x_15, x_1364); lean_dec(x_15); -x_1386 = 1; -x_1387 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_1387, 0, x_11); -lean_ctor_set(x_1387, 1, x_12); -lean_ctor_set(x_1387, 2, x_13); -lean_ctor_set(x_1387, 3, x_1385); -lean_ctor_set(x_1387, 4, x_16); -lean_ctor_set(x_1387, 5, x_17); -lean_ctor_set(x_1387, 6, x_18); -lean_ctor_set(x_1387, 7, x_19); -lean_ctor_set_uint8(x_1387, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_1387, sizeof(void*)*8 + 1, x_1386); -lean_inc(x_1382); -x_1388 = l_Lean_mkApp(x_2, x_1382); -x_1389 = lean_expr_instantiate1(x_114, x_1382); -lean_dec(x_1382); +x_1366 = 1; +x_1367 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_1367, 0, x_11); +lean_ctor_set(x_1367, 1, x_12); +lean_ctor_set(x_1367, 2, x_13); +lean_ctor_set(x_1367, 3, x_1365); +lean_ctor_set(x_1367, 4, x_16); +lean_ctor_set(x_1367, 5, x_17); +lean_ctor_set(x_1367, 6, x_18); +lean_ctor_set(x_1367, 7, x_19); +lean_ctor_set_uint8(x_1367, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_1367, sizeof(void*)*8 + 1, x_1366); +lean_inc(x_1362); +x_1368 = l_Lean_mkApp(x_2, x_1362); +x_1369 = lean_expr_instantiate1(x_114, x_1362); +lean_dec(x_1362); lean_dec(x_114); -x_1 = x_1387; -x_2 = x_1388; -x_3 = x_1389; -x_10 = x_1383; +x_1 = x_1367; +x_2 = x_1368; +x_3 = x_1369; +x_10 = x_1363; goto _start; } else { -lean_object* x_1391; lean_object* x_1392; lean_object* x_1393; lean_object* x_1394; +lean_object* x_1371; lean_object* x_1372; lean_object* x_1373; lean_object* x_1374; lean_dec(x_114); lean_dec(x_8); lean_dec(x_19); @@ -11319,32 +11097,32 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1391 = lean_ctor_get(x_1381, 0); -lean_inc(x_1391); -x_1392 = lean_ctor_get(x_1381, 1); -lean_inc(x_1392); -if (lean_is_exclusive(x_1381)) { - lean_ctor_release(x_1381, 0); - lean_ctor_release(x_1381, 1); - x_1393 = x_1381; +x_1371 = lean_ctor_get(x_1361, 0); +lean_inc(x_1371); +x_1372 = lean_ctor_get(x_1361, 1); +lean_inc(x_1372); +if (lean_is_exclusive(x_1361)) { + lean_ctor_release(x_1361, 0); + lean_ctor_release(x_1361, 1); + x_1373 = x_1361; } else { - lean_dec_ref(x_1381); - x_1393 = lean_box(0); + lean_dec_ref(x_1361); + x_1373 = lean_box(0); } -if (lean_is_scalar(x_1393)) { - x_1394 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1373)) { + x_1374 = lean_alloc_ctor(1, 2, 0); } else { - x_1394 = x_1393; + x_1374 = x_1373; } -lean_ctor_set(x_1394, 0, x_1391); -lean_ctor_set(x_1394, 1, x_1392); -return x_1394; +lean_ctor_set(x_1374, 0, x_1371); +lean_ctor_set(x_1374, 1, x_1372); +return x_1374; } } } else { -lean_object* x_1395; lean_object* x_1396; lean_object* x_1397; lean_object* x_1398; +lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; lean_dec(x_114); lean_dec(x_113); lean_dec(x_112); @@ -11365,126 +11143,126 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_1395 = lean_ctor_get(x_1224, 0); -lean_inc(x_1395); -x_1396 = lean_ctor_get(x_1224, 1); -lean_inc(x_1396); -if (lean_is_exclusive(x_1224)) { - lean_ctor_release(x_1224, 0); - lean_ctor_release(x_1224, 1); - x_1397 = x_1224; +x_1375 = lean_ctor_get(x_1204, 0); +lean_inc(x_1375); +x_1376 = lean_ctor_get(x_1204, 1); +lean_inc(x_1376); +if (lean_is_exclusive(x_1204)) { + lean_ctor_release(x_1204, 0); + lean_ctor_release(x_1204, 1); + x_1377 = x_1204; } else { - lean_dec_ref(x_1224); - x_1397 = lean_box(0); + lean_dec_ref(x_1204); + x_1377 = lean_box(0); } -if (lean_is_scalar(x_1397)) { - x_1398 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1377)) { + x_1378 = lean_alloc_ctor(1, 2, 0); } else { - x_1398 = x_1397; + x_1378 = x_1377; } -lean_ctor_set(x_1398, 0, x_1395); -lean_ctor_set(x_1398, 1, x_1396); -return x_1398; +lean_ctor_set(x_1378, 0, x_1375); +lean_ctor_set(x_1378, 1, x_1376); +return x_1378; } } } else { -uint8_t x_1399; +uint8_t x_1379; lean_dec(x_112); lean_dec(x_28); lean_dec(x_22); lean_dec(x_3); -x_1399 = !lean_is_exclusive(x_1); -if (x_1399 == 0) +x_1379 = !lean_is_exclusive(x_1); +if (x_1379 == 0) { -lean_object* x_1400; lean_object* x_1401; lean_object* x_1402; lean_object* x_1403; lean_object* x_1404; lean_object* x_1405; lean_object* x_1406; lean_object* x_1407; lean_object* x_1408; uint8_t x_1409; lean_object* x_1410; lean_object* x_1411; lean_object* x_1412; lean_object* x_1413; lean_object* x_1414; lean_object* x_1415; lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; lean_object* x_1419; -x_1400 = lean_ctor_get(x_1, 7); -lean_dec(x_1400); -x_1401 = lean_ctor_get(x_1, 6); -lean_dec(x_1401); -x_1402 = lean_ctor_get(x_1, 5); -lean_dec(x_1402); -x_1403 = lean_ctor_get(x_1, 4); -lean_dec(x_1403); -x_1404 = lean_ctor_get(x_1, 3); -lean_dec(x_1404); -x_1405 = lean_ctor_get(x_1, 2); -lean_dec(x_1405); -x_1406 = lean_ctor_get(x_1, 1); -lean_dec(x_1406); -x_1407 = lean_ctor_get(x_1, 0); -lean_dec(x_1407); -x_1408 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1408, 0, x_113); -x_1409 = 1; -x_1410 = lean_box(0); +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; lean_object* x_1388; uint8_t x_1389; lean_object* x_1390; lean_object* x_1391; lean_object* x_1392; lean_object* x_1393; lean_object* x_1394; lean_object* x_1395; lean_object* x_1396; lean_object* x_1397; lean_object* x_1398; lean_object* x_1399; +x_1380 = lean_ctor_get(x_1, 7); +lean_dec(x_1380); +x_1381 = lean_ctor_get(x_1, 6); +lean_dec(x_1381); +x_1382 = lean_ctor_get(x_1, 5); +lean_dec(x_1382); +x_1383 = lean_ctor_get(x_1, 4); +lean_dec(x_1383); +x_1384 = lean_ctor_get(x_1, 3); +lean_dec(x_1384); +x_1385 = lean_ctor_get(x_1, 2); +lean_dec(x_1385); +x_1386 = lean_ctor_get(x_1, 1); +lean_dec(x_1386); +x_1387 = lean_ctor_get(x_1, 0); +lean_dec(x_1387); +x_1388 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1388, 0, x_113); +x_1389 = 1; +x_1390 = lean_box(0); lean_inc(x_6); lean_inc(x_4); -x_1411 = l_Lean_Meta_mkFreshExprMVar___at_Lean_Elab_Term_tryCoe___spec__2(x_1408, x_1409, x_1410, x_4, x_5, x_6, x_7, x_8, x_9, x_29); -x_1412 = lean_ctor_get(x_1411, 0); -lean_inc(x_1412); -x_1413 = lean_ctor_get(x_1411, 1); -lean_inc(x_1413); -lean_dec(x_1411); -x_1414 = lean_unsigned_to_nat(1u); -x_1415 = lean_nat_add(x_15, x_1414); +x_1391 = l_Lean_Meta_mkFreshExprMVar___at_Lean_Elab_Term_tryCoe___spec__2(x_1388, x_1389, x_1390, x_4, x_5, x_6, x_7, x_8, x_9, x_29); +x_1392 = lean_ctor_get(x_1391, 0); +lean_inc(x_1392); +x_1393 = lean_ctor_get(x_1391, 1); +lean_inc(x_1393); +lean_dec(x_1391); +x_1394 = lean_unsigned_to_nat(1u); +x_1395 = lean_nat_add(x_15, x_1394); lean_dec(x_15); -x_1416 = l_Lean_Expr_mvarId_x21(x_1412); -x_1417 = lean_array_push(x_17, x_1416); -lean_ctor_set(x_1, 5, x_1417); -lean_ctor_set(x_1, 3, x_1415); -lean_inc(x_1412); -x_1418 = l_Lean_mkApp(x_2, x_1412); -x_1419 = lean_expr_instantiate1(x_114, x_1412); -lean_dec(x_1412); +x_1396 = l_Lean_Expr_mvarId_x21(x_1392); +x_1397 = lean_array_push(x_17, x_1396); +lean_ctor_set(x_1, 5, x_1397); +lean_ctor_set(x_1, 3, x_1395); +lean_inc(x_1392); +x_1398 = l_Lean_mkApp(x_2, x_1392); +x_1399 = lean_expr_instantiate1(x_114, x_1392); +lean_dec(x_1392); lean_dec(x_114); -x_2 = x_1418; -x_3 = x_1419; -x_10 = x_1413; +x_2 = x_1398; +x_3 = x_1399; +x_10 = x_1393; goto _start; } else { -lean_object* x_1421; uint8_t 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_object* x_1433; +lean_object* x_1401; uint8_t x_1402; lean_object* x_1403; lean_object* x_1404; lean_object* x_1405; lean_object* x_1406; lean_object* x_1407; lean_object* x_1408; lean_object* x_1409; lean_object* x_1410; lean_object* x_1411; lean_object* x_1412; lean_object* x_1413; lean_dec(x_1); -x_1421 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1421, 0, x_113); -x_1422 = 1; -x_1423 = lean_box(0); +x_1401 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1401, 0, x_113); +x_1402 = 1; +x_1403 = lean_box(0); lean_inc(x_6); lean_inc(x_4); -x_1424 = l_Lean_Meta_mkFreshExprMVar___at_Lean_Elab_Term_tryCoe___spec__2(x_1421, x_1422, x_1423, x_4, x_5, x_6, x_7, x_8, x_9, x_29); -x_1425 = lean_ctor_get(x_1424, 0); -lean_inc(x_1425); -x_1426 = lean_ctor_get(x_1424, 1); -lean_inc(x_1426); -lean_dec(x_1424); -x_1427 = lean_unsigned_to_nat(1u); -x_1428 = lean_nat_add(x_15, x_1427); +x_1404 = l_Lean_Meta_mkFreshExprMVar___at_Lean_Elab_Term_tryCoe___spec__2(x_1401, x_1402, x_1403, x_4, x_5, x_6, x_7, x_8, x_9, x_29); +x_1405 = lean_ctor_get(x_1404, 0); +lean_inc(x_1405); +x_1406 = lean_ctor_get(x_1404, 1); +lean_inc(x_1406); +lean_dec(x_1404); +x_1407 = lean_unsigned_to_nat(1u); +x_1408 = lean_nat_add(x_15, x_1407); lean_dec(x_15); -x_1429 = l_Lean_Expr_mvarId_x21(x_1425); -x_1430 = lean_array_push(x_17, x_1429); -x_1431 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_1431, 0, x_11); -lean_ctor_set(x_1431, 1, x_12); -lean_ctor_set(x_1431, 2, x_13); -lean_ctor_set(x_1431, 3, x_1428); -lean_ctor_set(x_1431, 4, x_16); -lean_ctor_set(x_1431, 5, x_1430); -lean_ctor_set(x_1431, 6, x_18); -lean_ctor_set(x_1431, 7, x_19); -lean_ctor_set_uint8(x_1431, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_1431, sizeof(void*)*8 + 1, x_21); -lean_inc(x_1425); -x_1432 = l_Lean_mkApp(x_2, x_1425); -x_1433 = lean_expr_instantiate1(x_114, x_1425); -lean_dec(x_1425); +x_1409 = l_Lean_Expr_mvarId_x21(x_1405); +x_1410 = lean_array_push(x_17, x_1409); +x_1411 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_1411, 0, x_11); +lean_ctor_set(x_1411, 1, x_12); +lean_ctor_set(x_1411, 2, x_13); +lean_ctor_set(x_1411, 3, x_1408); +lean_ctor_set(x_1411, 4, x_16); +lean_ctor_set(x_1411, 5, x_1410); +lean_ctor_set(x_1411, 6, x_18); +lean_ctor_set(x_1411, 7, x_19); +lean_ctor_set_uint8(x_1411, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_1411, sizeof(void*)*8 + 1, x_21); +lean_inc(x_1405); +x_1412 = l_Lean_mkApp(x_2, x_1405); +x_1413 = lean_expr_instantiate1(x_114, x_1405); +lean_dec(x_1405); lean_dec(x_114); -x_1 = x_1431; -x_2 = x_1432; -x_3 = x_1433; -x_10 = x_1426; +x_1 = x_1411; +x_2 = x_1412; +x_3 = x_1413; +x_10 = x_1406; goto _start; } } @@ -11492,41 +11270,41 @@ goto _start; } default: { -lean_object* x_1435; uint8_t x_1436; +lean_object* x_1415; uint8_t x_1416; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); lean_inc(x_1); -x_1435 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_29); -x_1436 = !lean_is_exclusive(x_1); -if (x_1436 == 0) +x_1415 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_29); +x_1416 = !lean_is_exclusive(x_1); +if (x_1416 == 0) { -lean_object* x_1437; lean_object* x_1438; lean_object* x_1439; lean_object* x_1440; lean_object* x_1441; lean_object* x_1442; lean_object* x_1443; lean_object* x_1444; -x_1437 = lean_ctor_get(x_1, 7); -lean_dec(x_1437); -x_1438 = lean_ctor_get(x_1, 6); -lean_dec(x_1438); -x_1439 = lean_ctor_get(x_1, 5); -lean_dec(x_1439); -x_1440 = lean_ctor_get(x_1, 4); -lean_dec(x_1440); -x_1441 = lean_ctor_get(x_1, 3); -lean_dec(x_1441); -x_1442 = lean_ctor_get(x_1, 2); -lean_dec(x_1442); -x_1443 = lean_ctor_get(x_1, 1); -lean_dec(x_1443); -x_1444 = lean_ctor_get(x_1, 0); -lean_dec(x_1444); -if (lean_obj_tag(x_1435) == 0) +lean_object* x_1417; lean_object* x_1418; lean_object* x_1419; lean_object* x_1420; lean_object* x_1421; lean_object* x_1422; lean_object* x_1423; lean_object* x_1424; +x_1417 = lean_ctor_get(x_1, 7); +lean_dec(x_1417); +x_1418 = lean_ctor_get(x_1, 6); +lean_dec(x_1418); +x_1419 = lean_ctor_get(x_1, 5); +lean_dec(x_1419); +x_1420 = lean_ctor_get(x_1, 4); +lean_dec(x_1420); +x_1421 = lean_ctor_get(x_1, 3); +lean_dec(x_1421); +x_1422 = lean_ctor_get(x_1, 2); +lean_dec(x_1422); +x_1423 = lean_ctor_get(x_1, 1); +lean_dec(x_1423); +x_1424 = lean_ctor_get(x_1, 0); +lean_dec(x_1424); +if (lean_obj_tag(x_1415) == 0) { -lean_object* x_1445; uint8_t x_1446; lean_object* x_1447; uint8_t x_1448; -x_1445 = lean_ctor_get(x_1435, 1); -lean_inc(x_1445); -lean_dec(x_1435); -x_1446 = 1; +lean_object* x_1425; uint8_t x_1426; lean_object* x_1427; uint8_t x_1428; +x_1425 = lean_ctor_get(x_1415, 1); +lean_inc(x_1425); +lean_dec(x_1415); +x_1426 = 1; lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); @@ -11535,33 +11313,33 @@ lean_inc(x_15); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -lean_ctor_set_uint8(x_1, sizeof(void*)*8 + 1, x_1446); -x_1447 = lean_array_get_size(x_12); -x_1448 = lean_nat_dec_lt(x_15, x_1447); -lean_dec(x_1447); -if (x_1448 == 0) +lean_ctor_set_uint8(x_1, sizeof(void*)*8 + 1, x_1426); +x_1427 = lean_array_get_size(x_12); +x_1428 = lean_nat_dec_lt(x_15, x_1427); +lean_dec(x_1427); +if (x_1428 == 0) { lean_dec(x_18); lean_dec(x_15); lean_dec(x_12); if (x_14 == 0) { -lean_object* x_1449; -x_1449 = l_Lean_Expr_getOptParamDefault_x3f(x_113); -if (lean_obj_tag(x_1449) == 0) +lean_object* x_1429; +x_1429 = l_Lean_Expr_getOptParamDefault_x3f(x_113); +if (lean_obj_tag(x_1429) == 0) { -lean_object* x_1450; -x_1450 = l_Lean_Expr_getAutoParamTactic_x3f(x_113); -if (lean_obj_tag(x_1450) == 0) +lean_object* x_1430; +x_1430 = l_Lean_Expr_getAutoParamTactic_x3f(x_113); +if (lean_obj_tag(x_1430) == 0) { -uint8_t x_1451; +uint8_t x_1431; lean_dec(x_1); lean_dec(x_114); lean_dec(x_113); -x_1451 = l_Array_isEmpty___rarg(x_16); -if (x_1451 == 0) +x_1431 = l_Array_isEmpty___rarg(x_16); +if (x_1431 == 0) { -lean_object* x_1452; lean_object* x_1453; lean_object* x_1454; lean_object* x_1455; lean_object* x_1456; lean_object* x_1457; lean_object* x_1458; lean_object* x_1459; lean_object* x_1460; lean_object* x_1461; lean_object* x_1462; lean_object* x_1463; lean_object* x_1464; lean_object* x_1465; lean_object* x_1466; lean_object* x_1467; +lean_object* x_1432; lean_object* x_1433; lean_object* x_1434; lean_object* x_1435; lean_object* x_1436; lean_object* x_1437; lean_object* x_1438; lean_object* x_1439; lean_object* x_1440; lean_object* x_1441; lean_object* x_1442; lean_object* x_1443; lean_object* x_1444; lean_object* x_1445; lean_object* x_1446; lean_object* x_1447; lean_dec(x_22); lean_dec(x_19); lean_dec(x_17); @@ -11569,81 +11347,81 @@ lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_1452 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1452, 0, x_112); -x_1453 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_1454 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1454, 0, x_1453); -lean_ctor_set(x_1454, 1, x_1452); -x_1455 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_1456 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1456, 0, x_1454); -lean_ctor_set(x_1456, 1, x_1455); -x_1457 = x_16; -x_1458 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_1457); -x_1459 = x_1458; -x_1460 = l_Array_toList___rarg(x_1459); -lean_dec(x_1459); -x_1461 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1460); -x_1462 = l_Array_HasRepr___rarg___closed__1; -x_1463 = lean_string_append(x_1462, x_1461); -lean_dec(x_1461); -x_1464 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1464, 0, x_1463); -x_1465 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1465, 0, x_1464); -x_1466 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1466, 0, x_1456); -lean_ctor_set(x_1466, 1, x_1465); -x_1467 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1466, x_4, x_5, x_6, x_7, x_8, x_9, x_1445); +x_1432 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1432, 0, x_112); +x_1433 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1434 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1434, 0, x_1433); +lean_ctor_set(x_1434, 1, x_1432); +x_1435 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1436 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1436, 0, x_1434); +lean_ctor_set(x_1436, 1, x_1435); +x_1437 = x_16; +x_1438 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_1437); +x_1439 = x_1438; +x_1440 = l_Array_toList___rarg(x_1439); +lean_dec(x_1439); +x_1441 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1440); +x_1442 = l_Array_HasRepr___rarg___closed__1; +x_1443 = lean_string_append(x_1442, x_1441); +lean_dec(x_1441); +x_1444 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1444, 0, x_1443); +x_1445 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1445, 0, x_1444); +x_1446 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1446, 0, x_1436); +lean_ctor_set(x_1446, 1, x_1445); +x_1447 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1446, x_4, x_5, x_6, x_7, x_8, x_9, x_1425); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_1467; +return x_1447; } else { -lean_object* x_1468; uint8_t x_1469; +lean_object* x_1448; uint8_t x_1449; lean_dec(x_112); lean_dec(x_16); -x_1468 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_1469 = l_Lean_checkTraceOption(x_22, x_1468); +x_1448 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1449 = l_Lean_checkTraceOption(x_22, x_1448); lean_dec(x_22); -if (x_1469 == 0) +if (x_1449 == 0) { -lean_object* x_1470; +lean_object* x_1450; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_1470 = x_1445; -goto block_1482; +x_1450 = x_1425; +goto block_1462; } else { -lean_object* x_1483; lean_object* x_1484; -x_1483 = lean_ctor_get(x_13, 0); -lean_inc(x_1483); +lean_object* x_1463; lean_object* x_1464; +x_1463 = lean_ctor_get(x_13, 0); +lean_inc(x_1463); lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1484 = l_Lean_Elab_Term_isDefEq(x_1483, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1445); -if (lean_obj_tag(x_1484) == 0) +x_1464 = l_Lean_Elab_Term_isDefEq(x_1463, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1425); +if (lean_obj_tag(x_1464) == 0) { -lean_object* x_1485; -x_1485 = lean_ctor_get(x_1484, 1); -lean_inc(x_1485); -lean_dec(x_1484); -x_1470 = x_1485; -goto block_1482; +lean_object* x_1465; +x_1465 = lean_ctor_get(x_1464, 1); +lean_inc(x_1465); +lean_dec(x_1464); +x_1450 = x_1465; +goto block_1462; } else { -uint8_t x_1486; +uint8_t x_1466; lean_dec(x_8); lean_dec(x_19); lean_dec(x_17); @@ -11654,44 +11432,193 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1486 = !lean_is_exclusive(x_1484); -if (x_1486 == 0) +x_1466 = !lean_is_exclusive(x_1464); +if (x_1466 == 0) { -return x_1484; +return x_1464; } else { -lean_object* x_1487; lean_object* x_1488; lean_object* x_1489; -x_1487 = lean_ctor_get(x_1484, 0); -x_1488 = lean_ctor_get(x_1484, 1); -lean_inc(x_1488); -lean_inc(x_1487); -lean_dec(x_1484); -x_1489 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1489, 0, x_1487); -lean_ctor_set(x_1489, 1, x_1488); -return x_1489; +lean_object* x_1467; lean_object* x_1468; lean_object* x_1469; +x_1467 = lean_ctor_get(x_1464, 0); +x_1468 = lean_ctor_get(x_1464, 1); +lean_inc(x_1468); +lean_inc(x_1467); +lean_dec(x_1464); +x_1469 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1469, 0, x_1467); +lean_ctor_set(x_1469, 1, x_1468); +return x_1469; } } } -block_1482: +block_1462: { -lean_object* x_1471; +lean_object* x_1451; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1471 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1470); +x_1451 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1450); lean_dec(x_17); -if (lean_obj_tag(x_1471) == 0) +if (lean_obj_tag(x_1451) == 0) { -lean_object* x_1472; lean_object* x_1473; uint8_t x_1474; +lean_object* x_1452; lean_object* x_1453; uint8_t x_1454; +x_1452 = lean_ctor_get(x_1451, 1); +lean_inc(x_1452); +lean_dec(x_1451); +lean_inc(x_2); +x_1453 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__18(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1452); +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_19); +x_1454 = !lean_is_exclusive(x_1453); +if (x_1454 == 0) +{ +lean_object* x_1455; +x_1455 = lean_ctor_get(x_1453, 0); +lean_dec(x_1455); +lean_ctor_set(x_1453, 0, x_2); +return x_1453; +} +else +{ +lean_object* x_1456; lean_object* x_1457; +x_1456 = lean_ctor_get(x_1453, 1); +lean_inc(x_1456); +lean_dec(x_1453); +x_1457 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1457, 0, x_2); +lean_ctor_set(x_1457, 1, x_1456); +return x_1457; +} +} +else +{ +uint8_t x_1458; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1458 = !lean_is_exclusive(x_1451); +if (x_1458 == 0) +{ +return x_1451; +} +else +{ +lean_object* x_1459; lean_object* x_1460; lean_object* x_1461; +x_1459 = lean_ctor_get(x_1451, 0); +x_1460 = lean_ctor_get(x_1451, 1); +lean_inc(x_1460); +lean_inc(x_1459); +lean_dec(x_1451); +x_1461 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1461, 0, x_1459); +lean_ctor_set(x_1461, 1, x_1460); +return x_1461; +} +} +} +} +else +{ +lean_object* x_1470; lean_object* x_1471; lean_object* x_1472; lean_object* x_1473; +lean_inc(x_2); +x_1470 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1470, 0, x_2); +x_1471 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1448, x_1470, x_4, x_5, x_6, x_7, x_8, x_9, x_1425); x_1472 = lean_ctor_get(x_1471, 1); lean_inc(x_1472); lean_dec(x_1471); +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_1473 = x_1472; +goto block_1485; +} +else +{ +lean_object* x_1486; lean_object* x_1487; +x_1486 = lean_ctor_get(x_13, 0); +lean_inc(x_1486); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_1487 = l_Lean_Elab_Term_isDefEq(x_1486, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1472); +if (lean_obj_tag(x_1487) == 0) +{ +lean_object* x_1488; +x_1488 = lean_ctor_get(x_1487, 1); +lean_inc(x_1488); +lean_dec(x_1487); +x_1473 = x_1488; +goto block_1485; +} +else +{ +uint8_t x_1489; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1489 = !lean_is_exclusive(x_1487); +if (x_1489 == 0) +{ +return x_1487; +} +else +{ +lean_object* x_1490; lean_object* x_1491; lean_object* x_1492; +x_1490 = lean_ctor_get(x_1487, 0); +x_1491 = lean_ctor_get(x_1487, 1); +lean_inc(x_1491); +lean_inc(x_1490); +lean_dec(x_1487); +x_1492 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1492, 0, x_1490); +lean_ctor_set(x_1492, 1, x_1491); +return x_1492; +} +} +} +block_1485: +{ +lean_object* x_1474; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_1474 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1473); +lean_dec(x_17); +if (lean_obj_tag(x_1474) == 0) +{ +lean_object* x_1475; lean_object* x_1476; uint8_t x_1477; +x_1475 = lean_ctor_get(x_1474, 1); +lean_inc(x_1475); +lean_dec(x_1474); lean_inc(x_2); -x_1473 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__18(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1472); +x_1476 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__19(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1475); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -11699,30 +11626,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); -x_1474 = !lean_is_exclusive(x_1473); -if (x_1474 == 0) +x_1477 = !lean_is_exclusive(x_1476); +if (x_1477 == 0) { -lean_object* x_1475; -x_1475 = lean_ctor_get(x_1473, 0); -lean_dec(x_1475); -lean_ctor_set(x_1473, 0, x_2); -return x_1473; +lean_object* x_1478; +x_1478 = lean_ctor_get(x_1476, 0); +lean_dec(x_1478); +lean_ctor_set(x_1476, 0, x_2); +return x_1476; } else { -lean_object* x_1476; lean_object* x_1477; -x_1476 = lean_ctor_get(x_1473, 1); -lean_inc(x_1476); -lean_dec(x_1473); -x_1477 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1477, 0, x_2); -lean_ctor_set(x_1477, 1, x_1476); -return x_1477; +lean_object* x_1479; lean_object* x_1480; +x_1479 = lean_ctor_get(x_1476, 1); +lean_inc(x_1479); +lean_dec(x_1476); +x_1480 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1480, 0, x_2); +lean_ctor_set(x_1480, 1, x_1479); +return x_1480; } } else { -uint8_t x_1478; +uint8_t x_1481; lean_dec(x_8); lean_dec(x_19); lean_dec(x_11); @@ -11732,281 +11659,143 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1478 = !lean_is_exclusive(x_1471); -if (x_1478 == 0) +x_1481 = !lean_is_exclusive(x_1474); +if (x_1481 == 0) { -return x_1471; +return x_1474; } else { -lean_object* x_1479; lean_object* x_1480; lean_object* x_1481; -x_1479 = lean_ctor_get(x_1471, 0); -x_1480 = lean_ctor_get(x_1471, 1); -lean_inc(x_1480); -lean_inc(x_1479); -lean_dec(x_1471); -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_object* x_1482; lean_object* x_1483; lean_object* x_1484; +x_1482 = lean_ctor_get(x_1474, 0); +x_1483 = lean_ctor_get(x_1474, 1); +lean_inc(x_1483); +lean_inc(x_1482); +lean_dec(x_1474); +x_1484 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1484, 0, x_1482); +lean_ctor_set(x_1484, 1, x_1483); +return x_1484; +} +} } } } } else { -lean_object* x_1490; lean_object* x_1491; lean_object* x_1492; lean_object* x_1493; -lean_inc(x_2); -x_1490 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1490, 0, x_2); -x_1491 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1468, x_1490, x_4, x_5, x_6, x_7, x_8, x_9, x_1445); -x_1492 = lean_ctor_get(x_1491, 1); -lean_inc(x_1492); -lean_dec(x_1491); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_1493 = x_1492; -goto block_1505; -} -else -{ -lean_object* x_1506; lean_object* x_1507; -x_1506 = lean_ctor_get(x_13, 0); -lean_inc(x_1506); +lean_object* x_1493; +lean_dec(x_112); +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_1507 = l_Lean_Elab_Term_isDefEq(x_1506, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1492); -if (lean_obj_tag(x_1507) == 0) +lean_dec(x_3); +x_1493 = lean_ctor_get(x_1430, 0); +lean_inc(x_1493); +lean_dec(x_1430); +if (lean_obj_tag(x_1493) == 4) { -lean_object* x_1508; +lean_object* x_1494; lean_object* x_1495; lean_object* x_1496; lean_object* x_1497; lean_object* x_1498; lean_object* x_1499; +x_1494 = lean_ctor_get(x_1493, 0); +lean_inc(x_1494); +lean_dec(x_1493); +x_1495 = lean_st_ref_get(x_9, x_1425); +x_1496 = lean_ctor_get(x_1495, 0); +lean_inc(x_1496); +x_1497 = lean_ctor_get(x_1495, 1); +lean_inc(x_1497); +lean_dec(x_1495); +x_1498 = lean_ctor_get(x_1496, 0); +lean_inc(x_1498); +lean_dec(x_1496); +x_1499 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_1498, x_1494); +if (lean_obj_tag(x_1499) == 0) +{ +lean_object* x_1500; lean_object* x_1501; lean_object* x_1502; lean_object* x_1503; +lean_dec(x_1); +lean_dec(x_114); +lean_dec(x_113); +lean_dec(x_11); +lean_dec(x_2); +x_1500 = lean_ctor_get(x_1499, 0); +lean_inc(x_1500); +lean_dec(x_1499); +x_1501 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1501, 0, x_1500); +x_1502 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1502, 0, x_1501); +x_1503 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1502, x_4, x_5, x_6, x_7, x_8, x_9, x_1497); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_1503; +} +else +{ +lean_object* x_1504; lean_object* x_1505; lean_object* x_1506; lean_object* x_1507; lean_object* x_1508; lean_object* x_1509; lean_object* x_1510; lean_object* x_1511; lean_object* x_1512; lean_object* x_1513; lean_object* x_1514; lean_object* x_1515; lean_object* x_1516; lean_object* x_1517; lean_object* x_1518; lean_object* x_1519; lean_object* x_1520; lean_object* x_1521; lean_object* x_1522; lean_object* x_1523; lean_object* x_1524; lean_object* x_1525; lean_object* x_1526; lean_object* x_1527; lean_object* x_1528; lean_object* x_1529; lean_object* x_1530; lean_object* x_1531; lean_object* x_1532; lean_object* x_1533; lean_object* x_1534; lean_object* x_1535; lean_object* x_1536; lean_object* x_1537; lean_object* x_1538; +x_1504 = lean_ctor_get(x_1499, 0); +lean_inc(x_1504); +lean_dec(x_1499); +x_1505 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_1497); +x_1506 = lean_ctor_get(x_1505, 1); +lean_inc(x_1506); +lean_dec(x_1505); +x_1507 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1506); x_1508 = lean_ctor_get(x_1507, 1); lean_inc(x_1508); lean_dec(x_1507); -x_1493 = x_1508; -goto block_1505; -} -else -{ -uint8_t x_1509; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1509 = !lean_is_exclusive(x_1507); -if (x_1509 == 0) -{ -return x_1507; -} -else -{ -lean_object* x_1510; lean_object* x_1511; lean_object* x_1512; -x_1510 = lean_ctor_get(x_1507, 0); -x_1511 = lean_ctor_get(x_1507, 1); -lean_inc(x_1511); -lean_inc(x_1510); -lean_dec(x_1507); -x_1512 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1512, 0, x_1510); -lean_ctor_set(x_1512, 1, x_1511); -return x_1512; -} -} -} -block_1505: -{ -lean_object* x_1494; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_1494 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1493); -lean_dec(x_17); -if (lean_obj_tag(x_1494) == 0) -{ -lean_object* x_1495; lean_object* x_1496; uint8_t x_1497; -x_1495 = lean_ctor_get(x_1494, 1); -lean_inc(x_1495); -lean_dec(x_1494); -lean_inc(x_2); -x_1496 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__19(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1495); -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_19); -x_1497 = !lean_is_exclusive(x_1496); -if (x_1497 == 0) -{ -lean_object* x_1498; -x_1498 = lean_ctor_get(x_1496, 0); -lean_dec(x_1498); -lean_ctor_set(x_1496, 0, x_2); -return x_1496; -} -else -{ -lean_object* x_1499; lean_object* x_1500; -x_1499 = lean_ctor_get(x_1496, 1); -lean_inc(x_1499); -lean_dec(x_1496); -x_1500 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1500, 0, x_2); -lean_ctor_set(x_1500, 1, x_1499); -return x_1500; -} -} -else -{ -uint8_t x_1501; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1501 = !lean_is_exclusive(x_1494); -if (x_1501 == 0) -{ -return x_1494; -} -else -{ -lean_object* x_1502; lean_object* x_1503; lean_object* x_1504; -x_1502 = lean_ctor_get(x_1494, 0); -x_1503 = lean_ctor_get(x_1494, 1); -lean_inc(x_1503); -lean_inc(x_1502); -lean_dec(x_1494); -x_1504 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1504, 0, x_1502); -lean_ctor_set(x_1504, 1, x_1503); -return x_1504; -} -} -} -} -} -} -else -{ -lean_object* x_1513; -lean_dec(x_112); -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_13); -lean_dec(x_3); -x_1513 = lean_ctor_get(x_1450, 0); -lean_inc(x_1513); -lean_dec(x_1450); -if (lean_obj_tag(x_1513) == 4) -{ -lean_object* x_1514; lean_object* x_1515; lean_object* x_1516; lean_object* x_1517; lean_object* x_1518; lean_object* x_1519; -x_1514 = lean_ctor_get(x_1513, 0); -lean_inc(x_1514); -lean_dec(x_1513); -x_1515 = lean_st_ref_get(x_9, x_1445); -x_1516 = lean_ctor_get(x_1515, 0); -lean_inc(x_1516); -x_1517 = lean_ctor_get(x_1515, 1); -lean_inc(x_1517); -lean_dec(x_1515); -x_1518 = lean_ctor_get(x_1516, 0); -lean_inc(x_1518); -lean_dec(x_1516); -x_1519 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_1518, x_1514); -if (lean_obj_tag(x_1519) == 0) -{ -lean_object* x_1520; lean_object* x_1521; lean_object* x_1522; lean_object* x_1523; -lean_dec(x_1); -lean_dec(x_114); -lean_dec(x_113); -lean_dec(x_11); -lean_dec(x_2); -x_1520 = lean_ctor_get(x_1519, 0); -lean_inc(x_1520); -lean_dec(x_1519); -x_1521 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1521, 0, x_1520); -x_1522 = lean_alloc_ctor(0, 1, 0); +x_1509 = l_Lean_Syntax_getArgs(x_1504); +lean_dec(x_1504); +x_1510 = l_Array_empty___closed__1; +x_1511 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1509, x_1509, x_116, x_1510); +lean_dec(x_1509); +x_1512 = l_Lean_nullKind___closed__2; +x_1513 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1513, 0, x_1512); +lean_ctor_set(x_1513, 1, x_1511); +x_1514 = lean_array_push(x_1510, x_1513); +x_1515 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; +x_1516 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1516, 0, x_1515); +lean_ctor_set(x_1516, 1, x_1514); +x_1517 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__4; +x_1518 = lean_array_push(x_1517, x_1516); +x_1519 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__20; +x_1520 = lean_array_push(x_1518, x_1519); +x_1521 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; +x_1522 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1522, 0, x_1521); -x_1523 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1522, x_4, x_5, x_6, x_7, x_8, x_9, x_1517); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_1523; -} -else -{ -lean_object* x_1524; lean_object* x_1525; lean_object* x_1526; lean_object* x_1527; lean_object* x_1528; lean_object* x_1529; lean_object* x_1530; lean_object* x_1531; lean_object* x_1532; lean_object* x_1533; lean_object* x_1534; lean_object* x_1535; lean_object* x_1536; lean_object* x_1537; lean_object* x_1538; lean_object* x_1539; lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; lean_object* x_1543; lean_object* x_1544; lean_object* x_1545; lean_object* x_1546; lean_object* x_1547; lean_object* x_1548; -x_1524 = lean_ctor_get(x_1519, 0); -lean_inc(x_1524); -lean_dec(x_1519); -x_1525 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_1517); -x_1526 = lean_ctor_get(x_1525, 1); -lean_inc(x_1526); -lean_dec(x_1525); -x_1527 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1526); -x_1528 = lean_ctor_get(x_1527, 1); -lean_inc(x_1528); -lean_dec(x_1527); -x_1529 = l_Lean_Syntax_getArgs(x_1524); -lean_dec(x_1524); -x_1530 = l_Array_empty___closed__1; -x_1531 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1529, x_1529, x_116, x_1530); -lean_dec(x_1529); -x_1532 = l_Lean_nullKind___closed__2; -x_1533 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1533, 0, x_1532); -lean_ctor_set(x_1533, 1, x_1531); -x_1534 = lean_array_push(x_1530, x_1533); -x_1535 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; -x_1536 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1536, 0, x_1535); -lean_ctor_set(x_1536, 1, x_1534); -x_1537 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; -x_1538 = lean_array_push(x_1537, x_1536); -x_1539 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; -x_1540 = lean_array_push(x_1538, x_1539); -x_1541 = l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__2; -x_1542 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1542, 0, x_1541); -lean_ctor_set(x_1542, 1, x_1540); -x_1543 = l_Lean_Syntax_getHeadInfo___main(x_11); +lean_ctor_set(x_1522, 1, x_1520); +x_1523 = lean_array_push(x_1510, x_1522); +x_1524 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1524, 0, x_1512); +lean_ctor_set(x_1524, 1, x_1523); +x_1525 = lean_array_push(x_1510, x_1524); +x_1526 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1526, 0, x_1515); +lean_ctor_set(x_1526, 1, x_1525); +x_1527 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_1528 = lean_array_push(x_1527, x_1526); +x_1529 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +x_1530 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1530, 0, x_1529); +lean_ctor_set(x_1530, 1, x_1528); +x_1531 = l_Lean_Syntax_copyInfo(x_1530, x_11); lean_dec(x_11); -x_1544 = l_Lean_Expr_getAppNumArgsAux___main(x_113, x_116); -x_1545 = lean_nat_sub(x_1544, x_116); -lean_dec(x_1544); -x_1546 = lean_unsigned_to_nat(1u); -x_1547 = lean_nat_sub(x_1545, x_1546); -lean_dec(x_1545); -x_1548 = l_Lean_Expr_getRevArg_x21___main(x_113, x_1547); +x_1532 = l_Lean_Expr_getAppNumArgsAux___main(x_113, x_116); +x_1533 = lean_nat_sub(x_1532, x_116); +lean_dec(x_1532); +x_1534 = lean_unsigned_to_nat(1u); +x_1535 = lean_nat_sub(x_1533, x_1534); +lean_dec(x_1533); +x_1536 = l_Lean_Expr_getRevArg_x21___main(x_113, x_1535); lean_dec(x_113); -if (lean_obj_tag(x_1543) == 0) -{ -lean_object* x_1549; lean_object* x_1550; -x_1549 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1549, 0, x_1542); +x_1537 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1537, 0, x_1531); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -12014,28 +11803,28 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_1550 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1549, x_1548, x_4, x_5, x_6, x_7, x_8, x_9, x_1528); -if (lean_obj_tag(x_1550) == 0) +x_1538 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1537, x_1536, x_4, x_5, x_6, x_7, x_8, x_9, x_1508); +if (lean_obj_tag(x_1538) == 0) { -lean_object* x_1551; lean_object* x_1552; lean_object* x_1553; lean_object* x_1554; -x_1551 = lean_ctor_get(x_1550, 0); -lean_inc(x_1551); -x_1552 = lean_ctor_get(x_1550, 1); -lean_inc(x_1552); -lean_dec(x_1550); -lean_inc(x_1551); -x_1553 = l_Lean_mkApp(x_2, x_1551); -x_1554 = lean_expr_instantiate1(x_114, x_1551); -lean_dec(x_1551); +lean_object* x_1539; lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; +x_1539 = lean_ctor_get(x_1538, 0); +lean_inc(x_1539); +x_1540 = lean_ctor_get(x_1538, 1); +lean_inc(x_1540); +lean_dec(x_1538); +lean_inc(x_1539); +x_1541 = l_Lean_mkApp(x_2, x_1539); +x_1542 = lean_expr_instantiate1(x_114, x_1539); +lean_dec(x_1539); lean_dec(x_114); -x_2 = x_1553; -x_3 = x_1554; -x_10 = x_1552; +x_2 = x_1541; +x_3 = x_1542; +x_10 = x_1540; goto _start; } else { -uint8_t x_1556; +uint8_t x_1544; lean_dec(x_1); lean_dec(x_114); lean_dec(x_8); @@ -12045,233 +11834,165 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1556 = !lean_is_exclusive(x_1550); -if (x_1556 == 0) +x_1544 = !lean_is_exclusive(x_1538); +if (x_1544 == 0) { -return x_1550; +return x_1538; } else { -lean_object* x_1557; lean_object* x_1558; lean_object* x_1559; -x_1557 = lean_ctor_get(x_1550, 0); -x_1558 = lean_ctor_get(x_1550, 1); -lean_inc(x_1558); -lean_inc(x_1557); +lean_object* x_1545; lean_object* x_1546; lean_object* x_1547; +x_1545 = lean_ctor_get(x_1538, 0); +x_1546 = lean_ctor_get(x_1538, 1); +lean_inc(x_1546); +lean_inc(x_1545); +lean_dec(x_1538); +x_1547 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1547, 0, x_1545); +lean_ctor_set(x_1547, 1, x_1546); +return x_1547; +} +} +} +} +else +{ +lean_object* x_1548; lean_object* x_1549; +lean_dec(x_1493); +lean_dec(x_1); +lean_dec(x_114); +lean_dec(x_113); +lean_dec(x_11); +lean_dec(x_2); +x_1548 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_1549 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1548, x_4, x_5, x_6, x_7, x_8, x_9, x_1425); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_1549; +} +} +} +else +{ +lean_object* x_1550; lean_object* x_1551; lean_object* x_1552; +lean_dec(x_113); +lean_dec(x_112); +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_3); +x_1550 = lean_ctor_get(x_1429, 0); +lean_inc(x_1550); +lean_dec(x_1429); +lean_inc(x_1550); +x_1551 = l_Lean_mkApp(x_2, x_1550); +x_1552 = lean_expr_instantiate1(x_114, x_1550); lean_dec(x_1550); -x_1559 = lean_alloc_ctor(1, 2, 0); +lean_dec(x_114); +x_2 = x_1551; +x_3 = x_1552; +x_10 = x_1425; +goto _start; +} +} +else +{ +uint8_t x_1554; +lean_dec(x_1); +lean_dec(x_114); +lean_dec(x_113); +x_1554 = l_Array_isEmpty___rarg(x_16); +if (x_1554 == 0) +{ +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_dec(x_22); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_3); +lean_dec(x_2); +x_1555 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1555, 0, x_112); +x_1556 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1557 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1557, 0, x_1556); +lean_ctor_set(x_1557, 1, x_1555); +x_1558 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1559 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_1559, 0, x_1557); lean_ctor_set(x_1559, 1, x_1558); -return x_1559; -} -} -} -else -{ -lean_object* x_1560; lean_object* x_1561; lean_object* x_1562; lean_object* x_1563; -x_1560 = lean_ctor_get(x_1543, 0); -lean_inc(x_1560); -lean_dec(x_1543); -x_1561 = l_Lean_Syntax_replaceInfo___main(x_1560, x_1542); -x_1562 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1562, 0, x_1561); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_1563 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1562, x_1548, x_4, x_5, x_6, x_7, x_8, x_9, x_1528); -if (lean_obj_tag(x_1563) == 0) -{ -lean_object* x_1564; lean_object* x_1565; lean_object* x_1566; lean_object* x_1567; -x_1564 = lean_ctor_get(x_1563, 0); -lean_inc(x_1564); -x_1565 = lean_ctor_get(x_1563, 1); -lean_inc(x_1565); -lean_dec(x_1563); -lean_inc(x_1564); -x_1566 = l_Lean_mkApp(x_2, x_1564); -x_1567 = lean_expr_instantiate1(x_114, x_1564); +x_1560 = x_16; +x_1561 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_1560); +x_1562 = x_1561; +x_1563 = l_Array_toList___rarg(x_1562); +lean_dec(x_1562); +x_1564 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1563); +x_1565 = l_Array_HasRepr___rarg___closed__1; +x_1566 = lean_string_append(x_1565, x_1564); lean_dec(x_1564); -lean_dec(x_114); -x_2 = x_1566; -x_3 = x_1567; -x_10 = x_1565; -goto _start; -} -else -{ -uint8_t x_1569; -lean_dec(x_1); -lean_dec(x_114); -lean_dec(x_8); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1569 = !lean_is_exclusive(x_1563); -if (x_1569 == 0) -{ -return x_1563; -} -else -{ -lean_object* x_1570; lean_object* x_1571; lean_object* x_1572; -x_1570 = lean_ctor_get(x_1563, 0); -x_1571 = lean_ctor_get(x_1563, 1); -lean_inc(x_1571); -lean_inc(x_1570); -lean_dec(x_1563); -x_1572 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1572, 0, x_1570); -lean_ctor_set(x_1572, 1, x_1571); -return x_1572; -} -} -} -} -} -else -{ -lean_object* x_1573; lean_object* x_1574; -lean_dec(x_1513); -lean_dec(x_1); -lean_dec(x_114); -lean_dec(x_113); -lean_dec(x_11); -lean_dec(x_2); -x_1573 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; -x_1574 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1573, x_4, x_5, x_6, x_7, x_8, x_9, x_1445); +x_1567 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1567, 0, x_1566); +x_1568 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1568, 0, x_1567); +x_1569 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1569, 0, x_1559); +lean_ctor_set(x_1569, 1, x_1568); +x_1570 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1569, x_4, x_5, x_6, x_7, x_8, x_9, x_1425); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_1574; -} -} +return x_1570; } else { -lean_object* x_1575; lean_object* x_1576; lean_object* x_1577; -lean_dec(x_113); -lean_dec(x_112); -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_3); -x_1575 = lean_ctor_get(x_1449, 0); -lean_inc(x_1575); -lean_dec(x_1449); -lean_inc(x_1575); -x_1576 = l_Lean_mkApp(x_2, x_1575); -x_1577 = lean_expr_instantiate1(x_114, x_1575); -lean_dec(x_1575); -lean_dec(x_114); -x_2 = x_1576; -x_3 = x_1577; -x_10 = x_1445; -goto _start; -} -} -else -{ -uint8_t x_1579; -lean_dec(x_1); -lean_dec(x_114); -lean_dec(x_113); -x_1579 = l_Array_isEmpty___rarg(x_16); -if (x_1579 == 0) -{ -lean_object* x_1580; lean_object* x_1581; lean_object* x_1582; lean_object* x_1583; lean_object* x_1584; lean_object* x_1585; lean_object* x_1586; lean_object* x_1587; lean_object* x_1588; lean_object* x_1589; lean_object* x_1590; lean_object* x_1591; lean_object* x_1592; lean_object* x_1593; lean_object* x_1594; lean_object* x_1595; -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_3); -lean_dec(x_2); -x_1580 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1580, 0, x_112); -x_1581 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_1582 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1582, 0, x_1581); -lean_ctor_set(x_1582, 1, x_1580); -x_1583 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_1584 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1584, 0, x_1582); -lean_ctor_set(x_1584, 1, x_1583); -x_1585 = x_16; -x_1586 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_1585); -x_1587 = x_1586; -x_1588 = l_Array_toList___rarg(x_1587); -lean_dec(x_1587); -x_1589 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1588); -x_1590 = l_Array_HasRepr___rarg___closed__1; -x_1591 = lean_string_append(x_1590, x_1589); -lean_dec(x_1589); -x_1592 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1592, 0, x_1591); -x_1593 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1593, 0, x_1592); -x_1594 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1594, 0, x_1584); -lean_ctor_set(x_1594, 1, x_1593); -x_1595 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1594, x_4, x_5, x_6, x_7, x_8, x_9, x_1445); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_1595; -} -else -{ -lean_object* x_1596; uint8_t x_1597; +lean_object* x_1571; uint8_t x_1572; lean_dec(x_112); lean_dec(x_16); -x_1596 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_1597 = l_Lean_checkTraceOption(x_22, x_1596); +x_1571 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1572 = l_Lean_checkTraceOption(x_22, x_1571); lean_dec(x_22); -if (x_1597 == 0) +if (x_1572 == 0) { -lean_object* x_1598; +lean_object* x_1573; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_1598 = x_1445; -goto block_1610; +x_1573 = x_1425; +goto block_1585; } else { -lean_object* x_1611; lean_object* x_1612; -x_1611 = lean_ctor_get(x_13, 0); -lean_inc(x_1611); +lean_object* x_1586; lean_object* x_1587; +x_1586 = lean_ctor_get(x_13, 0); +lean_inc(x_1586); lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1612 = l_Lean_Elab_Term_isDefEq(x_1611, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1445); -if (lean_obj_tag(x_1612) == 0) +x_1587 = l_Lean_Elab_Term_isDefEq(x_1586, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1425); +if (lean_obj_tag(x_1587) == 0) { -lean_object* x_1613; -x_1613 = lean_ctor_get(x_1612, 1); -lean_inc(x_1613); -lean_dec(x_1612); -x_1598 = x_1613; -goto block_1610; +lean_object* x_1588; +x_1588 = lean_ctor_get(x_1587, 1); +lean_inc(x_1588); +lean_dec(x_1587); +x_1573 = x_1588; +goto block_1585; } else { -uint8_t x_1614; +uint8_t x_1589; lean_dec(x_8); lean_dec(x_19); lean_dec(x_17); @@ -12282,44 +12003,44 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1614 = !lean_is_exclusive(x_1612); -if (x_1614 == 0) +x_1589 = !lean_is_exclusive(x_1587); +if (x_1589 == 0) { -return x_1612; +return x_1587; } else { -lean_object* x_1615; lean_object* x_1616; lean_object* x_1617; -x_1615 = lean_ctor_get(x_1612, 0); -x_1616 = lean_ctor_get(x_1612, 1); -lean_inc(x_1616); -lean_inc(x_1615); -lean_dec(x_1612); -x_1617 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1617, 0, x_1615); -lean_ctor_set(x_1617, 1, x_1616); -return x_1617; +lean_object* x_1590; lean_object* x_1591; lean_object* x_1592; +x_1590 = lean_ctor_get(x_1587, 0); +x_1591 = lean_ctor_get(x_1587, 1); +lean_inc(x_1591); +lean_inc(x_1590); +lean_dec(x_1587); +x_1592 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1592, 0, x_1590); +lean_ctor_set(x_1592, 1, x_1591); +return x_1592; } } } -block_1610: +block_1585: { -lean_object* x_1599; +lean_object* x_1574; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1599 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1598); +x_1574 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1573); lean_dec(x_17); -if (lean_obj_tag(x_1599) == 0) +if (lean_obj_tag(x_1574) == 0) { -lean_object* x_1600; lean_object* x_1601; uint8_t x_1602; -x_1600 = lean_ctor_get(x_1599, 1); -lean_inc(x_1600); -lean_dec(x_1599); +lean_object* x_1575; lean_object* x_1576; uint8_t x_1577; +x_1575 = lean_ctor_get(x_1574, 1); +lean_inc(x_1575); +lean_dec(x_1574); lean_inc(x_2); -x_1601 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__20(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1600); +x_1576 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__20(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1575); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -12327,30 +12048,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); -x_1602 = !lean_is_exclusive(x_1601); -if (x_1602 == 0) +x_1577 = !lean_is_exclusive(x_1576); +if (x_1577 == 0) { -lean_object* x_1603; -x_1603 = lean_ctor_get(x_1601, 0); -lean_dec(x_1603); -lean_ctor_set(x_1601, 0, x_2); -return x_1601; +lean_object* x_1578; +x_1578 = lean_ctor_get(x_1576, 0); +lean_dec(x_1578); +lean_ctor_set(x_1576, 0, x_2); +return x_1576; } else { -lean_object* x_1604; lean_object* x_1605; -x_1604 = lean_ctor_get(x_1601, 1); -lean_inc(x_1604); -lean_dec(x_1601); -x_1605 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1605, 0, x_2); -lean_ctor_set(x_1605, 1, x_1604); -return x_1605; +lean_object* x_1579; lean_object* x_1580; +x_1579 = lean_ctor_get(x_1576, 1); +lean_inc(x_1579); +lean_dec(x_1576); +x_1580 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1580, 0, x_2); +lean_ctor_set(x_1580, 1, x_1579); +return x_1580; } } else { -uint8_t x_1606; +uint8_t x_1581; lean_dec(x_8); lean_dec(x_19); lean_dec(x_11); @@ -12360,146 +12081,146 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1606 = !lean_is_exclusive(x_1599); -if (x_1606 == 0) +x_1581 = !lean_is_exclusive(x_1574); +if (x_1581 == 0) { +return x_1574; +} +else +{ +lean_object* x_1582; lean_object* x_1583; lean_object* x_1584; +x_1582 = lean_ctor_get(x_1574, 0); +x_1583 = lean_ctor_get(x_1574, 1); +lean_inc(x_1583); +lean_inc(x_1582); +lean_dec(x_1574); +x_1584 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1584, 0, x_1582); +lean_ctor_set(x_1584, 1, x_1583); +return x_1584; +} +} +} +} +else +{ +lean_object* x_1593; lean_object* x_1594; lean_object* x_1595; lean_object* x_1596; +lean_inc(x_2); +x_1593 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1593, 0, x_2); +x_1594 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1571, x_1593, x_4, x_5, x_6, x_7, x_8, x_9, x_1425); +x_1595 = lean_ctor_get(x_1594, 1); +lean_inc(x_1595); +lean_dec(x_1594); +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_1596 = x_1595; +goto block_1608; +} +else +{ +lean_object* x_1609; lean_object* x_1610; +x_1609 = lean_ctor_get(x_13, 0); +lean_inc(x_1609); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_1610 = l_Lean_Elab_Term_isDefEq(x_1609, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1595); +if (lean_obj_tag(x_1610) == 0) +{ +lean_object* x_1611; +x_1611 = lean_ctor_get(x_1610, 1); +lean_inc(x_1611); +lean_dec(x_1610); +x_1596 = x_1611; +goto block_1608; +} +else +{ +uint8_t x_1612; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1612 = !lean_is_exclusive(x_1610); +if (x_1612 == 0) +{ +return x_1610; +} +else +{ +lean_object* x_1613; lean_object* x_1614; lean_object* x_1615; +x_1613 = lean_ctor_get(x_1610, 0); +x_1614 = lean_ctor_get(x_1610, 1); +lean_inc(x_1614); +lean_inc(x_1613); +lean_dec(x_1610); +x_1615 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1615, 0, x_1613); +lean_ctor_set(x_1615, 1, x_1614); +return x_1615; +} +} +} +block_1608: +{ +lean_object* x_1597; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_1597 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1596); +lean_dec(x_17); +if (lean_obj_tag(x_1597) == 0) +{ +lean_object* x_1598; lean_object* x_1599; uint8_t x_1600; +x_1598 = lean_ctor_get(x_1597, 1); +lean_inc(x_1598); +lean_dec(x_1597); +lean_inc(x_2); +x_1599 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__21(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1598); +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_19); +x_1600 = !lean_is_exclusive(x_1599); +if (x_1600 == 0) +{ +lean_object* x_1601; +x_1601 = lean_ctor_get(x_1599, 0); +lean_dec(x_1601); +lean_ctor_set(x_1599, 0, x_2); return x_1599; } else { -lean_object* x_1607; lean_object* x_1608; lean_object* x_1609; -x_1607 = lean_ctor_get(x_1599, 0); -x_1608 = lean_ctor_get(x_1599, 1); -lean_inc(x_1608); -lean_inc(x_1607); +lean_object* x_1602; lean_object* x_1603; +x_1602 = lean_ctor_get(x_1599, 1); +lean_inc(x_1602); lean_dec(x_1599); -x_1609 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1609, 0, x_1607); -lean_ctor_set(x_1609, 1, x_1608); -return x_1609; -} -} +x_1603 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1603, 0, x_2); +lean_ctor_set(x_1603, 1, x_1602); +return x_1603; } } else { -lean_object* x_1618; lean_object* x_1619; lean_object* x_1620; lean_object* x_1621; -lean_inc(x_2); -x_1618 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1618, 0, x_2); -x_1619 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1596, x_1618, x_4, x_5, x_6, x_7, x_8, x_9, x_1445); -x_1620 = lean_ctor_get(x_1619, 1); -lean_inc(x_1620); -lean_dec(x_1619); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_1621 = x_1620; -goto block_1633; -} -else -{ -lean_object* x_1634; lean_object* x_1635; -x_1634 = lean_ctor_get(x_13, 0); -lean_inc(x_1634); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_1635 = l_Lean_Elab_Term_isDefEq(x_1634, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1620); -if (lean_obj_tag(x_1635) == 0) -{ -lean_object* x_1636; -x_1636 = lean_ctor_get(x_1635, 1); -lean_inc(x_1636); -lean_dec(x_1635); -x_1621 = x_1636; -goto block_1633; -} -else -{ -uint8_t x_1637; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1637 = !lean_is_exclusive(x_1635); -if (x_1637 == 0) -{ -return x_1635; -} -else -{ -lean_object* x_1638; lean_object* x_1639; lean_object* x_1640; -x_1638 = lean_ctor_get(x_1635, 0); -x_1639 = lean_ctor_get(x_1635, 1); -lean_inc(x_1639); -lean_inc(x_1638); -lean_dec(x_1635); -x_1640 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1640, 0, x_1638); -lean_ctor_set(x_1640, 1, x_1639); -return x_1640; -} -} -} -block_1633: -{ -lean_object* x_1622; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_1622 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1621); -lean_dec(x_17); -if (lean_obj_tag(x_1622) == 0) -{ -lean_object* x_1623; lean_object* x_1624; uint8_t x_1625; -x_1623 = lean_ctor_get(x_1622, 1); -lean_inc(x_1623); -lean_dec(x_1622); -lean_inc(x_2); -x_1624 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__21(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1623); -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_19); -x_1625 = !lean_is_exclusive(x_1624); -if (x_1625 == 0) -{ -lean_object* x_1626; -x_1626 = lean_ctor_get(x_1624, 0); -lean_dec(x_1626); -lean_ctor_set(x_1624, 0, x_2); -return x_1624; -} -else -{ -lean_object* x_1627; lean_object* x_1628; -x_1627 = lean_ctor_get(x_1624, 1); -lean_inc(x_1627); -lean_dec(x_1624); -x_1628 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1628, 0, x_2); -lean_ctor_set(x_1628, 1, x_1627); -return x_1628; -} -} -else -{ -uint8_t x_1629; +uint8_t x_1604; lean_dec(x_8); lean_dec(x_19); lean_dec(x_11); @@ -12509,23 +12230,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1629 = !lean_is_exclusive(x_1622); -if (x_1629 == 0) +x_1604 = !lean_is_exclusive(x_1597); +if (x_1604 == 0) { -return x_1622; +return x_1597; } else { -lean_object* x_1630; lean_object* x_1631; lean_object* x_1632; -x_1630 = lean_ctor_get(x_1622, 0); -x_1631 = lean_ctor_get(x_1622, 1); -lean_inc(x_1631); -lean_inc(x_1630); -lean_dec(x_1622); -x_1632 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1632, 0, x_1630); -lean_ctor_set(x_1632, 1, x_1631); -return x_1632; +lean_object* x_1605; lean_object* x_1606; lean_object* x_1607; +x_1605 = lean_ctor_get(x_1597, 0); +x_1606 = lean_ctor_get(x_1597, 1); +lean_inc(x_1606); +lean_inc(x_1605); +lean_dec(x_1597); +x_1607 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1607, 0, x_1605); +lean_ctor_set(x_1607, 1, x_1606); +return x_1607; } } } @@ -12535,12 +12256,12 @@ return x_1632; } else { -lean_object* x_1641; lean_object* x_1642; +lean_object* x_1616; lean_object* x_1617; lean_dec(x_1); lean_dec(x_112); lean_dec(x_22); lean_dec(x_3); -x_1641 = lean_array_fget(x_12, x_15); +x_1616 = lean_array_fget(x_12, x_15); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -12548,43 +12269,43 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_1642 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1641, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_1445); -if (lean_obj_tag(x_1642) == 0) +x_1617 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1616, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_1425); +if (lean_obj_tag(x_1617) == 0) { -lean_object* x_1643; lean_object* x_1644; lean_object* x_1645; lean_object* x_1646; lean_object* x_1647; lean_object* x_1648; lean_object* x_1649; -x_1643 = lean_ctor_get(x_1642, 0); -lean_inc(x_1643); -x_1644 = lean_ctor_get(x_1642, 1); -lean_inc(x_1644); -lean_dec(x_1642); -x_1645 = lean_unsigned_to_nat(1u); -x_1646 = lean_nat_add(x_15, x_1645); +lean_object* x_1618; lean_object* x_1619; lean_object* x_1620; lean_object* x_1621; lean_object* x_1622; lean_object* x_1623; lean_object* x_1624; +x_1618 = lean_ctor_get(x_1617, 0); +lean_inc(x_1618); +x_1619 = lean_ctor_get(x_1617, 1); +lean_inc(x_1619); +lean_dec(x_1617); +x_1620 = lean_unsigned_to_nat(1u); +x_1621 = lean_nat_add(x_15, x_1620); lean_dec(x_15); -x_1647 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_1647, 0, x_11); -lean_ctor_set(x_1647, 1, x_12); -lean_ctor_set(x_1647, 2, x_13); -lean_ctor_set(x_1647, 3, x_1646); -lean_ctor_set(x_1647, 4, x_16); -lean_ctor_set(x_1647, 5, x_17); -lean_ctor_set(x_1647, 6, x_18); -lean_ctor_set(x_1647, 7, x_19); -lean_ctor_set_uint8(x_1647, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_1647, sizeof(void*)*8 + 1, x_1446); -lean_inc(x_1643); -x_1648 = l_Lean_mkApp(x_2, x_1643); -x_1649 = lean_expr_instantiate1(x_114, x_1643); -lean_dec(x_1643); +x_1622 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_1622, 0, x_11); +lean_ctor_set(x_1622, 1, x_12); +lean_ctor_set(x_1622, 2, x_13); +lean_ctor_set(x_1622, 3, x_1621); +lean_ctor_set(x_1622, 4, x_16); +lean_ctor_set(x_1622, 5, x_17); +lean_ctor_set(x_1622, 6, x_18); +lean_ctor_set(x_1622, 7, x_19); +lean_ctor_set_uint8(x_1622, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_1622, sizeof(void*)*8 + 1, x_1426); +lean_inc(x_1618); +x_1623 = l_Lean_mkApp(x_2, x_1618); +x_1624 = lean_expr_instantiate1(x_114, x_1618); +lean_dec(x_1618); lean_dec(x_114); -x_1 = x_1647; -x_2 = x_1648; -x_3 = x_1649; -x_10 = x_1644; +x_1 = x_1622; +x_2 = x_1623; +x_3 = x_1624; +x_10 = x_1619; goto _start; } else { -uint8_t x_1651; +uint8_t x_1626; lean_dec(x_114); lean_dec(x_8); lean_dec(x_19); @@ -12601,30 +12322,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1651 = !lean_is_exclusive(x_1642); -if (x_1651 == 0) +x_1626 = !lean_is_exclusive(x_1617); +if (x_1626 == 0) { -return x_1642; +return x_1617; } else { -lean_object* x_1652; lean_object* x_1653; lean_object* x_1654; -x_1652 = lean_ctor_get(x_1642, 0); -x_1653 = lean_ctor_get(x_1642, 1); -lean_inc(x_1653); -lean_inc(x_1652); -lean_dec(x_1642); -x_1654 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1654, 0, x_1652); -lean_ctor_set(x_1654, 1, x_1653); -return x_1654; +lean_object* x_1627; lean_object* x_1628; lean_object* x_1629; +x_1627 = lean_ctor_get(x_1617, 0); +x_1628 = lean_ctor_get(x_1617, 1); +lean_inc(x_1628); +lean_inc(x_1627); +lean_dec(x_1617); +x_1629 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1629, 0, x_1627); +lean_ctor_set(x_1629, 1, x_1628); +return x_1629; } } } } else { -uint8_t x_1655; +uint8_t x_1630; lean_free_object(x_1); lean_dec(x_114); lean_dec(x_113); @@ -12646,36 +12367,36 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_1655 = !lean_is_exclusive(x_1435); -if (x_1655 == 0) +x_1630 = !lean_is_exclusive(x_1415); +if (x_1630 == 0) { -return x_1435; +return x_1415; } else { -lean_object* x_1656; lean_object* x_1657; lean_object* x_1658; -x_1656 = lean_ctor_get(x_1435, 0); -x_1657 = lean_ctor_get(x_1435, 1); -lean_inc(x_1657); -lean_inc(x_1656); -lean_dec(x_1435); -x_1658 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1658, 0, x_1656); -lean_ctor_set(x_1658, 1, x_1657); -return x_1658; +lean_object* x_1631; lean_object* x_1632; lean_object* x_1633; +x_1631 = lean_ctor_get(x_1415, 0); +x_1632 = lean_ctor_get(x_1415, 1); +lean_inc(x_1632); +lean_inc(x_1631); +lean_dec(x_1415); +x_1633 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1633, 0, x_1631); +lean_ctor_set(x_1633, 1, x_1632); +return x_1633; } } } else { lean_dec(x_1); -if (lean_obj_tag(x_1435) == 0) +if (lean_obj_tag(x_1415) == 0) { -lean_object* x_1659; uint8_t x_1660; lean_object* x_1661; lean_object* x_1662; uint8_t x_1663; -x_1659 = lean_ctor_get(x_1435, 1); -lean_inc(x_1659); -lean_dec(x_1435); -x_1660 = 1; +lean_object* x_1634; uint8_t x_1635; lean_object* x_1636; lean_object* x_1637; uint8_t x_1638; +x_1634 = lean_ctor_get(x_1415, 1); +lean_inc(x_1634); +lean_dec(x_1415); +x_1635 = 1; lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); @@ -12684,43 +12405,43 @@ lean_inc(x_15); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_1661 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_1661, 0, x_11); -lean_ctor_set(x_1661, 1, x_12); -lean_ctor_set(x_1661, 2, x_13); -lean_ctor_set(x_1661, 3, x_15); -lean_ctor_set(x_1661, 4, x_16); -lean_ctor_set(x_1661, 5, x_17); -lean_ctor_set(x_1661, 6, x_18); -lean_ctor_set(x_1661, 7, x_19); -lean_ctor_set_uint8(x_1661, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_1661, sizeof(void*)*8 + 1, x_1660); -x_1662 = lean_array_get_size(x_12); -x_1663 = lean_nat_dec_lt(x_15, x_1662); -lean_dec(x_1662); -if (x_1663 == 0) +x_1636 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_1636, 0, x_11); +lean_ctor_set(x_1636, 1, x_12); +lean_ctor_set(x_1636, 2, x_13); +lean_ctor_set(x_1636, 3, x_15); +lean_ctor_set(x_1636, 4, x_16); +lean_ctor_set(x_1636, 5, x_17); +lean_ctor_set(x_1636, 6, x_18); +lean_ctor_set(x_1636, 7, x_19); +lean_ctor_set_uint8(x_1636, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_1636, sizeof(void*)*8 + 1, x_1635); +x_1637 = lean_array_get_size(x_12); +x_1638 = lean_nat_dec_lt(x_15, x_1637); +lean_dec(x_1637); +if (x_1638 == 0) { lean_dec(x_18); lean_dec(x_15); lean_dec(x_12); if (x_14 == 0) { -lean_object* x_1664; -x_1664 = l_Lean_Expr_getOptParamDefault_x3f(x_113); -if (lean_obj_tag(x_1664) == 0) +lean_object* x_1639; +x_1639 = l_Lean_Expr_getOptParamDefault_x3f(x_113); +if (lean_obj_tag(x_1639) == 0) { -lean_object* x_1665; -x_1665 = l_Lean_Expr_getAutoParamTactic_x3f(x_113); -if (lean_obj_tag(x_1665) == 0) +lean_object* x_1640; +x_1640 = l_Lean_Expr_getAutoParamTactic_x3f(x_113); +if (lean_obj_tag(x_1640) == 0) { -uint8_t x_1666; -lean_dec(x_1661); +uint8_t x_1641; +lean_dec(x_1636); lean_dec(x_114); lean_dec(x_113); -x_1666 = l_Array_isEmpty___rarg(x_16); -if (x_1666 == 0) +x_1641 = l_Array_isEmpty___rarg(x_16); +if (x_1641 == 0) { -lean_object* x_1667; lean_object* x_1668; lean_object* x_1669; lean_object* x_1670; lean_object* x_1671; 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_object* x_1678; lean_object* x_1679; lean_object* x_1680; lean_object* x_1681; lean_object* x_1682; +lean_object* x_1642; lean_object* x_1643; lean_object* x_1644; lean_object* x_1645; lean_object* x_1646; lean_object* x_1647; lean_object* x_1648; lean_object* x_1649; lean_object* x_1650; lean_object* x_1651; lean_object* x_1652; lean_object* x_1653; lean_object* x_1654; lean_object* x_1655; lean_object* x_1656; lean_object* x_1657; lean_dec(x_22); lean_dec(x_19); lean_dec(x_17); @@ -12728,84 +12449,313 @@ lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_1667 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1667, 0, x_112); -x_1668 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_1669 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1669, 0, x_1668); -lean_ctor_set(x_1669, 1, x_1667); -x_1670 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_1671 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1671, 0, x_1669); -lean_ctor_set(x_1671, 1, x_1670); -x_1672 = x_16; -x_1673 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_1672); -x_1674 = x_1673; -x_1675 = l_Array_toList___rarg(x_1674); -lean_dec(x_1674); -x_1676 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1675); -x_1677 = l_Array_HasRepr___rarg___closed__1; -x_1678 = lean_string_append(x_1677, x_1676); -lean_dec(x_1676); +x_1642 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1642, 0, x_112); +x_1643 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1644 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1644, 0, x_1643); +lean_ctor_set(x_1644, 1, x_1642); +x_1645 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1646 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1646, 0, x_1644); +lean_ctor_set(x_1646, 1, x_1645); +x_1647 = x_16; +x_1648 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_1647); +x_1649 = x_1648; +x_1650 = l_Array_toList___rarg(x_1649); +lean_dec(x_1649); +x_1651 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1650); +x_1652 = l_Array_HasRepr___rarg___closed__1; +x_1653 = lean_string_append(x_1652, x_1651); +lean_dec(x_1651); +x_1654 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1654, 0, x_1653); +x_1655 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1655, 0, x_1654); +x_1656 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1656, 0, x_1646); +lean_ctor_set(x_1656, 1, x_1655); +x_1657 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1656, x_4, x_5, x_6, x_7, x_8, x_9, x_1634); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_1657; +} +else +{ +lean_object* x_1658; uint8_t x_1659; +lean_dec(x_112); +lean_dec(x_16); +x_1658 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1659 = l_Lean_checkTraceOption(x_22, x_1658); +lean_dec(x_22); +if (x_1659 == 0) +{ +lean_object* x_1660; +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_1660 = x_1634; +goto block_1671; +} +else +{ +lean_object* x_1672; lean_object* x_1673; +x_1672 = lean_ctor_get(x_13, 0); +lean_inc(x_1672); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_1673 = l_Lean_Elab_Term_isDefEq(x_1672, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1634); +if (lean_obj_tag(x_1673) == 0) +{ +lean_object* x_1674; +x_1674 = lean_ctor_get(x_1673, 1); +lean_inc(x_1674); +lean_dec(x_1673); +x_1660 = x_1674; +goto block_1671; +} +else +{ +lean_object* x_1675; lean_object* x_1676; lean_object* x_1677; lean_object* x_1678; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1675 = lean_ctor_get(x_1673, 0); +lean_inc(x_1675); +x_1676 = lean_ctor_get(x_1673, 1); +lean_inc(x_1676); +if (lean_is_exclusive(x_1673)) { + lean_ctor_release(x_1673, 0); + lean_ctor_release(x_1673, 1); + x_1677 = x_1673; +} else { + lean_dec_ref(x_1673); + x_1677 = lean_box(0); +} +if (lean_is_scalar(x_1677)) { + x_1678 = lean_alloc_ctor(1, 2, 0); +} else { + x_1678 = x_1677; +} +lean_ctor_set(x_1678, 0, x_1675); +lean_ctor_set(x_1678, 1, x_1676); +return x_1678; +} +} +block_1671: +{ +lean_object* x_1661; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_1661 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1660); +lean_dec(x_17); +if (lean_obj_tag(x_1661) == 0) +{ +lean_object* x_1662; lean_object* x_1663; lean_object* x_1664; lean_object* x_1665; lean_object* x_1666; +x_1662 = lean_ctor_get(x_1661, 1); +lean_inc(x_1662); +lean_dec(x_1661); +lean_inc(x_2); +x_1663 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__18(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1662); +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_19); +x_1664 = lean_ctor_get(x_1663, 1); +lean_inc(x_1664); +if (lean_is_exclusive(x_1663)) { + lean_ctor_release(x_1663, 0); + lean_ctor_release(x_1663, 1); + x_1665 = x_1663; +} else { + lean_dec_ref(x_1663); + x_1665 = lean_box(0); +} +if (lean_is_scalar(x_1665)) { + x_1666 = lean_alloc_ctor(0, 2, 0); +} else { + x_1666 = x_1665; +} +lean_ctor_set(x_1666, 0, x_2); +lean_ctor_set(x_1666, 1, x_1664); +return x_1666; +} +else +{ +lean_object* x_1667; lean_object* x_1668; lean_object* x_1669; lean_object* x_1670; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1667 = lean_ctor_get(x_1661, 0); +lean_inc(x_1667); +x_1668 = lean_ctor_get(x_1661, 1); +lean_inc(x_1668); +if (lean_is_exclusive(x_1661)) { + lean_ctor_release(x_1661, 0); + lean_ctor_release(x_1661, 1); + x_1669 = x_1661; +} else { + lean_dec_ref(x_1661); + x_1669 = lean_box(0); +} +if (lean_is_scalar(x_1669)) { + x_1670 = lean_alloc_ctor(1, 2, 0); +} else { + x_1670 = x_1669; +} +lean_ctor_set(x_1670, 0, x_1667); +lean_ctor_set(x_1670, 1, x_1668); +return x_1670; +} +} +} +else +{ +lean_object* x_1679; lean_object* x_1680; lean_object* x_1681; lean_object* x_1682; +lean_inc(x_2); x_1679 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1679, 0, x_1678); -x_1680 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1680, 0, x_1679); -x_1681 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1681, 0, x_1671); -lean_ctor_set(x_1681, 1, x_1680); -x_1682 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1681, x_4, x_5, x_6, x_7, x_8, x_9, x_1659); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_1682; -} -else -{ -lean_object* x_1683; uint8_t x_1684; -lean_dec(x_112); -lean_dec(x_16); -x_1683 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_1684 = l_Lean_checkTraceOption(x_22, x_1683); -lean_dec(x_22); -if (x_1684 == 0) -{ -lean_object* x_1685; +lean_ctor_set(x_1679, 0, x_2); +x_1680 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1658, x_1679, x_4, x_5, x_6, x_7, x_8, x_9, x_1634); +x_1681 = lean_ctor_get(x_1680, 1); +lean_inc(x_1681); +lean_dec(x_1680); if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_1685 = x_1659; -goto block_1696; +x_1682 = x_1681; +goto block_1693; } else { -lean_object* x_1697; lean_object* x_1698; -x_1697 = lean_ctor_get(x_13, 0); +lean_object* x_1694; lean_object* x_1695; +x_1694 = lean_ctor_get(x_13, 0); +lean_inc(x_1694); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_1695 = l_Lean_Elab_Term_isDefEq(x_1694, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1681); +if (lean_obj_tag(x_1695) == 0) +{ +lean_object* x_1696; +x_1696 = lean_ctor_get(x_1695, 1); +lean_inc(x_1696); +lean_dec(x_1695); +x_1682 = x_1696; +goto block_1693; +} +else +{ +lean_object* x_1697; lean_object* x_1698; lean_object* x_1699; lean_object* x_1700; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1697 = lean_ctor_get(x_1695, 0); lean_inc(x_1697); -lean_dec(x_13); +x_1698 = lean_ctor_get(x_1695, 1); +lean_inc(x_1698); +if (lean_is_exclusive(x_1695)) { + lean_ctor_release(x_1695, 0); + lean_ctor_release(x_1695, 1); + x_1699 = x_1695; +} else { + lean_dec_ref(x_1695); + x_1699 = lean_box(0); +} +if (lean_is_scalar(x_1699)) { + x_1700 = lean_alloc_ctor(1, 2, 0); +} else { + x_1700 = x_1699; +} +lean_ctor_set(x_1700, 0, x_1697); +lean_ctor_set(x_1700, 1, x_1698); +return x_1700; +} +} +block_1693: +{ +lean_object* x_1683; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1698 = l_Lean_Elab_Term_isDefEq(x_1697, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1659); -if (lean_obj_tag(x_1698) == 0) +x_1683 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1682); +lean_dec(x_17); +if (lean_obj_tag(x_1683) == 0) { -lean_object* x_1699; -x_1699 = lean_ctor_get(x_1698, 1); -lean_inc(x_1699); -lean_dec(x_1698); -x_1685 = x_1699; -goto block_1696; +lean_object* x_1684; lean_object* x_1685; lean_object* x_1686; lean_object* x_1687; lean_object* x_1688; +x_1684 = lean_ctor_get(x_1683, 1); +lean_inc(x_1684); +lean_dec(x_1683); +lean_inc(x_2); +x_1685 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__19(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1684); +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_19); +x_1686 = lean_ctor_get(x_1685, 1); +lean_inc(x_1686); +if (lean_is_exclusive(x_1685)) { + lean_ctor_release(x_1685, 0); + lean_ctor_release(x_1685, 1); + x_1687 = x_1685; +} else { + lean_dec_ref(x_1685); + x_1687 = lean_box(0); +} +if (lean_is_scalar(x_1687)) { + x_1688 = lean_alloc_ctor(0, 2, 0); +} else { + x_1688 = x_1687; +} +lean_ctor_set(x_1688, 0, x_2); +lean_ctor_set(x_1688, 1, x_1686); +return x_1688; } else { -lean_object* x_1700; lean_object* x_1701; lean_object* x_1702; lean_object* x_1703; +lean_object* x_1689; lean_object* x_1690; lean_object* x_1691; lean_object* x_1692; lean_dec(x_8); lean_dec(x_19); -lean_dec(x_17); lean_dec(x_11); lean_dec(x_9); lean_dec(x_7); @@ -12813,255 +12763,26 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1700 = lean_ctor_get(x_1698, 0); -lean_inc(x_1700); -x_1701 = lean_ctor_get(x_1698, 1); -lean_inc(x_1701); -if (lean_is_exclusive(x_1698)) { - lean_ctor_release(x_1698, 0); - lean_ctor_release(x_1698, 1); - x_1702 = x_1698; -} else { - lean_dec_ref(x_1698); - x_1702 = lean_box(0); -} -if (lean_is_scalar(x_1702)) { - x_1703 = lean_alloc_ctor(1, 2, 0); -} else { - x_1703 = x_1702; -} -lean_ctor_set(x_1703, 0, x_1700); -lean_ctor_set(x_1703, 1, x_1701); -return x_1703; -} -} -block_1696: -{ -lean_object* x_1686; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_1686 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1685); -lean_dec(x_17); -if (lean_obj_tag(x_1686) == 0) -{ -lean_object* x_1687; lean_object* x_1688; lean_object* x_1689; lean_object* x_1690; lean_object* x_1691; -x_1687 = lean_ctor_get(x_1686, 1); -lean_inc(x_1687); -lean_dec(x_1686); -lean_inc(x_2); -x_1688 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__18(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1687); -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_19); -x_1689 = lean_ctor_get(x_1688, 1); +x_1689 = lean_ctor_get(x_1683, 0); lean_inc(x_1689); -if (lean_is_exclusive(x_1688)) { - lean_ctor_release(x_1688, 0); - lean_ctor_release(x_1688, 1); - x_1690 = x_1688; +x_1690 = lean_ctor_get(x_1683, 1); +lean_inc(x_1690); +if (lean_is_exclusive(x_1683)) { + lean_ctor_release(x_1683, 0); + lean_ctor_release(x_1683, 1); + x_1691 = x_1683; } else { - lean_dec_ref(x_1688); - x_1690 = lean_box(0); + lean_dec_ref(x_1683); + x_1691 = lean_box(0); } -if (lean_is_scalar(x_1690)) { - x_1691 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_1691)) { + x_1692 = lean_alloc_ctor(1, 2, 0); } else { - x_1691 = x_1690; + x_1692 = x_1691; } -lean_ctor_set(x_1691, 0, x_2); -lean_ctor_set(x_1691, 1, x_1689); -return x_1691; -} -else -{ -lean_object* x_1692; lean_object* x_1693; lean_object* x_1694; lean_object* x_1695; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1692 = lean_ctor_get(x_1686, 0); -lean_inc(x_1692); -x_1693 = lean_ctor_get(x_1686, 1); -lean_inc(x_1693); -if (lean_is_exclusive(x_1686)) { - lean_ctor_release(x_1686, 0); - lean_ctor_release(x_1686, 1); - x_1694 = x_1686; -} else { - lean_dec_ref(x_1686); - x_1694 = lean_box(0); -} -if (lean_is_scalar(x_1694)) { - x_1695 = lean_alloc_ctor(1, 2, 0); -} else { - x_1695 = x_1694; -} -lean_ctor_set(x_1695, 0, x_1692); -lean_ctor_set(x_1695, 1, x_1693); -return x_1695; -} -} -} -else -{ -lean_object* x_1704; lean_object* x_1705; lean_object* x_1706; lean_object* x_1707; -lean_inc(x_2); -x_1704 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1704, 0, x_2); -x_1705 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1683, x_1704, x_4, x_5, x_6, x_7, x_8, x_9, x_1659); -x_1706 = lean_ctor_get(x_1705, 1); -lean_inc(x_1706); -lean_dec(x_1705); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_1707 = x_1706; -goto block_1718; -} -else -{ -lean_object* x_1719; lean_object* x_1720; -x_1719 = lean_ctor_get(x_13, 0); -lean_inc(x_1719); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_1720 = l_Lean_Elab_Term_isDefEq(x_1719, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1706); -if (lean_obj_tag(x_1720) == 0) -{ -lean_object* x_1721; -x_1721 = lean_ctor_get(x_1720, 1); -lean_inc(x_1721); -lean_dec(x_1720); -x_1707 = x_1721; -goto block_1718; -} -else -{ -lean_object* x_1722; lean_object* x_1723; lean_object* x_1724; lean_object* x_1725; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1722 = lean_ctor_get(x_1720, 0); -lean_inc(x_1722); -x_1723 = lean_ctor_get(x_1720, 1); -lean_inc(x_1723); -if (lean_is_exclusive(x_1720)) { - lean_ctor_release(x_1720, 0); - lean_ctor_release(x_1720, 1); - x_1724 = x_1720; -} else { - lean_dec_ref(x_1720); - x_1724 = lean_box(0); -} -if (lean_is_scalar(x_1724)) { - x_1725 = lean_alloc_ctor(1, 2, 0); -} else { - x_1725 = x_1724; -} -lean_ctor_set(x_1725, 0, x_1722); -lean_ctor_set(x_1725, 1, x_1723); -return x_1725; -} -} -block_1718: -{ -lean_object* x_1708; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_1708 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1707); -lean_dec(x_17); -if (lean_obj_tag(x_1708) == 0) -{ -lean_object* x_1709; lean_object* x_1710; lean_object* x_1711; lean_object* x_1712; lean_object* x_1713; -x_1709 = lean_ctor_get(x_1708, 1); -lean_inc(x_1709); -lean_dec(x_1708); -lean_inc(x_2); -x_1710 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__19(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1709); -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_19); -x_1711 = lean_ctor_get(x_1710, 1); -lean_inc(x_1711); -if (lean_is_exclusive(x_1710)) { - lean_ctor_release(x_1710, 0); - lean_ctor_release(x_1710, 1); - x_1712 = x_1710; -} else { - lean_dec_ref(x_1710); - x_1712 = lean_box(0); -} -if (lean_is_scalar(x_1712)) { - x_1713 = lean_alloc_ctor(0, 2, 0); -} else { - x_1713 = x_1712; -} -lean_ctor_set(x_1713, 0, x_2); -lean_ctor_set(x_1713, 1, x_1711); -return x_1713; -} -else -{ -lean_object* x_1714; lean_object* x_1715; lean_object* x_1716; lean_object* x_1717; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1714 = lean_ctor_get(x_1708, 0); -lean_inc(x_1714); -x_1715 = lean_ctor_get(x_1708, 1); -lean_inc(x_1715); -if (lean_is_exclusive(x_1708)) { - lean_ctor_release(x_1708, 0); - lean_ctor_release(x_1708, 1); - x_1716 = x_1708; -} else { - lean_dec_ref(x_1708); - x_1716 = lean_box(0); -} -if (lean_is_scalar(x_1716)) { - x_1717 = lean_alloc_ctor(1, 2, 0); -} else { - x_1717 = x_1716; -} -lean_ctor_set(x_1717, 0, x_1714); -lean_ctor_set(x_1717, 1, x_1715); -return x_1717; +lean_ctor_set(x_1692, 0, x_1689); +lean_ctor_set(x_1692, 1, x_1690); +return x_1692; } } } @@ -13069,7 +12790,7 @@ return x_1717; } else { -lean_object* x_1726; +lean_object* x_1701; lean_dec(x_112); lean_dec(x_22); lean_dec(x_19); @@ -13077,452 +12798,465 @@ lean_dec(x_17); lean_dec(x_16); lean_dec(x_13); lean_dec(x_3); -x_1726 = lean_ctor_get(x_1665, 0); -lean_inc(x_1726); -lean_dec(x_1665); -if (lean_obj_tag(x_1726) == 4) +x_1701 = lean_ctor_get(x_1640, 0); +lean_inc(x_1701); +lean_dec(x_1640); +if (lean_obj_tag(x_1701) == 4) { -lean_object* x_1727; lean_object* x_1728; lean_object* x_1729; lean_object* x_1730; lean_object* x_1731; lean_object* x_1732; -x_1727 = lean_ctor_get(x_1726, 0); -lean_inc(x_1727); -lean_dec(x_1726); -x_1728 = lean_st_ref_get(x_9, x_1659); -x_1729 = lean_ctor_get(x_1728, 0); -lean_inc(x_1729); -x_1730 = lean_ctor_get(x_1728, 1); -lean_inc(x_1730); -lean_dec(x_1728); -x_1731 = lean_ctor_get(x_1729, 0); -lean_inc(x_1731); -lean_dec(x_1729); -x_1732 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_1731, x_1727); -if (lean_obj_tag(x_1732) == 0) +lean_object* x_1702; lean_object* x_1703; lean_object* x_1704; lean_object* x_1705; lean_object* x_1706; lean_object* x_1707; +x_1702 = lean_ctor_get(x_1701, 0); +lean_inc(x_1702); +lean_dec(x_1701); +x_1703 = lean_st_ref_get(x_9, x_1634); +x_1704 = lean_ctor_get(x_1703, 0); +lean_inc(x_1704); +x_1705 = lean_ctor_get(x_1703, 1); +lean_inc(x_1705); +lean_dec(x_1703); +x_1706 = lean_ctor_get(x_1704, 0); +lean_inc(x_1706); +lean_dec(x_1704); +x_1707 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_1706, x_1702); +if (lean_obj_tag(x_1707) == 0) { -lean_object* x_1733; lean_object* x_1734; lean_object* x_1735; lean_object* x_1736; -lean_dec(x_1661); +lean_object* x_1708; lean_object* x_1709; lean_object* x_1710; lean_object* x_1711; +lean_dec(x_1636); lean_dec(x_114); lean_dec(x_113); lean_dec(x_11); lean_dec(x_2); -x_1733 = lean_ctor_get(x_1732, 0); -lean_inc(x_1733); -lean_dec(x_1732); -x_1734 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1734, 0, x_1733); -x_1735 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1735, 0, x_1734); -x_1736 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1735, x_4, x_5, x_6, x_7, x_8, x_9, x_1730); +x_1708 = lean_ctor_get(x_1707, 0); +lean_inc(x_1708); +lean_dec(x_1707); +x_1709 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1709, 0, x_1708); +x_1710 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1710, 0, x_1709); +x_1711 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1710, x_4, x_5, x_6, x_7, x_8, x_9, x_1705); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_1736; +return x_1711; } else { -lean_object* x_1737; lean_object* x_1738; lean_object* x_1739; lean_object* x_1740; lean_object* x_1741; lean_object* x_1742; lean_object* x_1743; lean_object* x_1744; lean_object* x_1745; lean_object* x_1746; lean_object* x_1747; lean_object* x_1748; lean_object* x_1749; lean_object* x_1750; lean_object* x_1751; lean_object* x_1752; lean_object* x_1753; lean_object* x_1754; lean_object* x_1755; lean_object* x_1756; lean_object* x_1757; lean_object* x_1758; lean_object* x_1759; lean_object* x_1760; lean_object* x_1761; -x_1737 = lean_ctor_get(x_1732, 0); -lean_inc(x_1737); -lean_dec(x_1732); -x_1738 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_1730); -x_1739 = lean_ctor_get(x_1738, 1); -lean_inc(x_1739); -lean_dec(x_1738); -x_1740 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1739); -x_1741 = lean_ctor_get(x_1740, 1); -lean_inc(x_1741); +lean_object* x_1712; lean_object* x_1713; lean_object* x_1714; lean_object* x_1715; lean_object* x_1716; lean_object* x_1717; lean_object* x_1718; lean_object* x_1719; lean_object* x_1720; lean_object* x_1721; lean_object* x_1722; lean_object* x_1723; lean_object* x_1724; lean_object* x_1725; lean_object* x_1726; lean_object* x_1727; lean_object* x_1728; lean_object* x_1729; lean_object* x_1730; lean_object* x_1731; lean_object* x_1732; lean_object* x_1733; lean_object* x_1734; lean_object* x_1735; lean_object* x_1736; lean_object* x_1737; lean_object* x_1738; lean_object* x_1739; lean_object* x_1740; lean_object* x_1741; lean_object* x_1742; lean_object* x_1743; lean_object* x_1744; lean_object* x_1745; lean_object* x_1746; +x_1712 = lean_ctor_get(x_1707, 0); +lean_inc(x_1712); +lean_dec(x_1707); +x_1713 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_1705); +x_1714 = lean_ctor_get(x_1713, 1); +lean_inc(x_1714); +lean_dec(x_1713); +x_1715 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1714); +x_1716 = lean_ctor_get(x_1715, 1); +lean_inc(x_1716); +lean_dec(x_1715); +x_1717 = l_Lean_Syntax_getArgs(x_1712); +lean_dec(x_1712); +x_1718 = l_Array_empty___closed__1; +x_1719 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1717, x_1717, x_116, x_1718); +lean_dec(x_1717); +x_1720 = l_Lean_nullKind___closed__2; +x_1721 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1721, 0, x_1720); +lean_ctor_set(x_1721, 1, x_1719); +x_1722 = lean_array_push(x_1718, x_1721); +x_1723 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; +x_1724 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1724, 0, x_1723); +lean_ctor_set(x_1724, 1, x_1722); +x_1725 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__4; +x_1726 = lean_array_push(x_1725, x_1724); +x_1727 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__20; +x_1728 = lean_array_push(x_1726, x_1727); +x_1729 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; +x_1730 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1730, 0, x_1729); +lean_ctor_set(x_1730, 1, x_1728); +x_1731 = lean_array_push(x_1718, x_1730); +x_1732 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1732, 0, x_1720); +lean_ctor_set(x_1732, 1, x_1731); +x_1733 = lean_array_push(x_1718, x_1732); +x_1734 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1734, 0, x_1723); +lean_ctor_set(x_1734, 1, x_1733); +x_1735 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_1736 = lean_array_push(x_1735, x_1734); +x_1737 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +x_1738 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1738, 0, x_1737); +lean_ctor_set(x_1738, 1, x_1736); +x_1739 = l_Lean_Syntax_copyInfo(x_1738, x_11); +lean_dec(x_11); +x_1740 = l_Lean_Expr_getAppNumArgsAux___main(x_113, x_116); +x_1741 = lean_nat_sub(x_1740, x_116); lean_dec(x_1740); -x_1742 = l_Lean_Syntax_getArgs(x_1737); -lean_dec(x_1737); -x_1743 = l_Array_empty___closed__1; -x_1744 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1742, x_1742, x_116, x_1743); -lean_dec(x_1742); -x_1745 = l_Lean_nullKind___closed__2; -x_1746 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1746, 0, x_1745); -lean_ctor_set(x_1746, 1, x_1744); -x_1747 = lean_array_push(x_1743, x_1746); -x_1748 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; -x_1749 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1749, 0, x_1748); -lean_ctor_set(x_1749, 1, x_1747); -x_1750 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; -x_1751 = lean_array_push(x_1750, x_1749); -x_1752 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; -x_1753 = lean_array_push(x_1751, x_1752); -x_1754 = l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__2; -x_1755 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1755, 0, x_1754); +x_1742 = lean_unsigned_to_nat(1u); +x_1743 = lean_nat_sub(x_1741, x_1742); +lean_dec(x_1741); +x_1744 = l_Lean_Expr_getRevArg_x21___main(x_113, x_1743); +lean_dec(x_113); +x_1745 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1745, 0, x_1739); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_1746 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1745, x_1744, x_4, x_5, x_6, x_7, x_8, x_9, x_1716); +if (lean_obj_tag(x_1746) == 0) +{ +lean_object* x_1747; lean_object* x_1748; lean_object* x_1749; lean_object* x_1750; +x_1747 = lean_ctor_get(x_1746, 0); +lean_inc(x_1747); +x_1748 = lean_ctor_get(x_1746, 1); +lean_inc(x_1748); +lean_dec(x_1746); +lean_inc(x_1747); +x_1749 = l_Lean_mkApp(x_2, x_1747); +x_1750 = lean_expr_instantiate1(x_114, x_1747); +lean_dec(x_1747); +lean_dec(x_114); +x_1 = x_1636; +x_2 = x_1749; +x_3 = x_1750; +x_10 = x_1748; +goto _start; +} +else +{ +lean_object* x_1752; lean_object* x_1753; lean_object* x_1754; lean_object* x_1755; +lean_dec(x_1636); +lean_dec(x_114); +lean_dec(x_8); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1752 = lean_ctor_get(x_1746, 0); +lean_inc(x_1752); +x_1753 = lean_ctor_get(x_1746, 1); +lean_inc(x_1753); +if (lean_is_exclusive(x_1746)) { + lean_ctor_release(x_1746, 0); + lean_ctor_release(x_1746, 1); + x_1754 = x_1746; +} else { + lean_dec_ref(x_1746); + x_1754 = lean_box(0); +} +if (lean_is_scalar(x_1754)) { + x_1755 = lean_alloc_ctor(1, 2, 0); +} else { + x_1755 = x_1754; +} +lean_ctor_set(x_1755, 0, x_1752); lean_ctor_set(x_1755, 1, x_1753); -x_1756 = l_Lean_Syntax_getHeadInfo___main(x_11); +return x_1755; +} +} +} +else +{ +lean_object* x_1756; lean_object* x_1757; +lean_dec(x_1701); +lean_dec(x_1636); +lean_dec(x_114); +lean_dec(x_113); lean_dec(x_11); -x_1757 = l_Lean_Expr_getAppNumArgsAux___main(x_113, x_116); -x_1758 = lean_nat_sub(x_1757, x_116); -lean_dec(x_1757); -x_1759 = lean_unsigned_to_nat(1u); -x_1760 = lean_nat_sub(x_1758, x_1759); +lean_dec(x_2); +x_1756 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_1757 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1756, x_4, x_5, x_6, x_7, x_8, x_9, x_1634); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_1757; +} +} +} +else +{ +lean_object* x_1758; lean_object* x_1759; lean_object* x_1760; +lean_dec(x_113); +lean_dec(x_112); +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_3); +x_1758 = lean_ctor_get(x_1639, 0); +lean_inc(x_1758); +lean_dec(x_1639); +lean_inc(x_1758); +x_1759 = l_Lean_mkApp(x_2, x_1758); +x_1760 = lean_expr_instantiate1(x_114, x_1758); lean_dec(x_1758); -x_1761 = l_Lean_Expr_getRevArg_x21___main(x_113, x_1760); -lean_dec(x_113); -if (lean_obj_tag(x_1756) == 0) -{ -lean_object* x_1762; lean_object* x_1763; -x_1762 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1762, 0, x_1755); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_1763 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1762, x_1761, x_4, x_5, x_6, x_7, x_8, x_9, x_1741); -if (lean_obj_tag(x_1763) == 0) -{ -lean_object* x_1764; lean_object* x_1765; lean_object* x_1766; lean_object* x_1767; -x_1764 = lean_ctor_get(x_1763, 0); -lean_inc(x_1764); -x_1765 = lean_ctor_get(x_1763, 1); -lean_inc(x_1765); -lean_dec(x_1763); -lean_inc(x_1764); -x_1766 = l_Lean_mkApp(x_2, x_1764); -x_1767 = lean_expr_instantiate1(x_114, x_1764); -lean_dec(x_1764); lean_dec(x_114); -x_1 = x_1661; -x_2 = x_1766; -x_3 = x_1767; -x_10 = x_1765; +x_1 = x_1636; +x_2 = x_1759; +x_3 = x_1760; +x_10 = x_1634; goto _start; } -else -{ -lean_object* x_1769; lean_object* x_1770; lean_object* x_1771; lean_object* x_1772; -lean_dec(x_1661); -lean_dec(x_114); -lean_dec(x_8); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1769 = lean_ctor_get(x_1763, 0); -lean_inc(x_1769); -x_1770 = lean_ctor_get(x_1763, 1); -lean_inc(x_1770); -if (lean_is_exclusive(x_1763)) { - lean_ctor_release(x_1763, 0); - lean_ctor_release(x_1763, 1); - x_1771 = x_1763; -} else { - lean_dec_ref(x_1763); - x_1771 = lean_box(0); -} -if (lean_is_scalar(x_1771)) { - x_1772 = lean_alloc_ctor(1, 2, 0); -} else { - x_1772 = x_1771; -} -lean_ctor_set(x_1772, 0, x_1769); -lean_ctor_set(x_1772, 1, x_1770); -return x_1772; -} } else { -lean_object* x_1773; lean_object* x_1774; lean_object* x_1775; lean_object* x_1776; -x_1773 = lean_ctor_get(x_1756, 0); -lean_inc(x_1773); -lean_dec(x_1756); -x_1774 = l_Lean_Syntax_replaceInfo___main(x_1773, x_1755); -x_1775 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1775, 0, x_1774); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_1776 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1775, x_1761, x_4, x_5, x_6, x_7, x_8, x_9, x_1741); -if (lean_obj_tag(x_1776) == 0) -{ -lean_object* x_1777; lean_object* x_1778; lean_object* x_1779; lean_object* x_1780; -x_1777 = lean_ctor_get(x_1776, 0); -lean_inc(x_1777); -x_1778 = lean_ctor_get(x_1776, 1); -lean_inc(x_1778); -lean_dec(x_1776); -lean_inc(x_1777); -x_1779 = l_Lean_mkApp(x_2, x_1777); -x_1780 = lean_expr_instantiate1(x_114, x_1777); -lean_dec(x_1777); -lean_dec(x_114); -x_1 = x_1661; -x_2 = x_1779; -x_3 = x_1780; -x_10 = x_1778; -goto _start; -} -else -{ -lean_object* x_1782; lean_object* x_1783; lean_object* x_1784; lean_object* x_1785; -lean_dec(x_1661); -lean_dec(x_114); -lean_dec(x_8); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1782 = lean_ctor_get(x_1776, 0); -lean_inc(x_1782); -x_1783 = lean_ctor_get(x_1776, 1); -lean_inc(x_1783); -if (lean_is_exclusive(x_1776)) { - lean_ctor_release(x_1776, 0); - lean_ctor_release(x_1776, 1); - x_1784 = x_1776; -} else { - lean_dec_ref(x_1776); - x_1784 = lean_box(0); -} -if (lean_is_scalar(x_1784)) { - x_1785 = lean_alloc_ctor(1, 2, 0); -} else { - x_1785 = x_1784; -} -lean_ctor_set(x_1785, 0, x_1782); -lean_ctor_set(x_1785, 1, x_1783); -return x_1785; -} -} -} -} -else -{ -lean_object* x_1786; lean_object* x_1787; -lean_dec(x_1726); -lean_dec(x_1661); +uint8_t x_1762; +lean_dec(x_1636); lean_dec(x_114); lean_dec(x_113); +x_1762 = l_Array_isEmpty___rarg(x_16); +if (x_1762 == 0) +{ +lean_object* x_1763; lean_object* x_1764; lean_object* x_1765; lean_object* x_1766; lean_object* x_1767; lean_object* x_1768; lean_object* x_1769; lean_object* x_1770; lean_object* x_1771; lean_object* x_1772; lean_object* x_1773; lean_object* x_1774; lean_object* x_1775; lean_object* x_1776; lean_object* x_1777; lean_object* x_1778; +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_13); lean_dec(x_11); +lean_dec(x_3); lean_dec(x_2); -x_1786 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; -x_1787 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1786, x_4, x_5, x_6, x_7, x_8, x_9, x_1659); +x_1763 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1763, 0, x_112); +x_1764 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1765 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1765, 0, x_1764); +lean_ctor_set(x_1765, 1, x_1763); +x_1766 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1767 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1767, 0, x_1765); +lean_ctor_set(x_1767, 1, x_1766); +x_1768 = x_16; +x_1769 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_1768); +x_1770 = x_1769; +x_1771 = l_Array_toList___rarg(x_1770); +lean_dec(x_1770); +x_1772 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1771); +x_1773 = l_Array_HasRepr___rarg___closed__1; +x_1774 = lean_string_append(x_1773, x_1772); +lean_dec(x_1772); +x_1775 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1775, 0, x_1774); +x_1776 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1776, 0, x_1775); +x_1777 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1777, 0, x_1767); +lean_ctor_set(x_1777, 1, x_1776); +x_1778 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1777, x_4, x_5, x_6, x_7, x_8, x_9, x_1634); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +return x_1778; +} +else +{ +lean_object* x_1779; uint8_t x_1780; +lean_dec(x_112); +lean_dec(x_16); +x_1779 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1780 = l_Lean_checkTraceOption(x_22, x_1779); +lean_dec(x_22); +if (x_1780 == 0) +{ +lean_object* x_1781; +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_1781 = x_1634; +goto block_1792; +} +else +{ +lean_object* x_1793; lean_object* x_1794; +x_1793 = lean_ctor_get(x_13, 0); +lean_inc(x_1793); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_1794 = l_Lean_Elab_Term_isDefEq(x_1793, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1634); +if (lean_obj_tag(x_1794) == 0) +{ +lean_object* x_1795; +x_1795 = lean_ctor_get(x_1794, 1); +lean_inc(x_1795); +lean_dec(x_1794); +x_1781 = x_1795; +goto block_1792; +} +else +{ +lean_object* x_1796; lean_object* x_1797; lean_object* x_1798; lean_object* x_1799; +lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1796 = lean_ctor_get(x_1794, 0); +lean_inc(x_1796); +x_1797 = lean_ctor_get(x_1794, 1); +lean_inc(x_1797); +if (lean_is_exclusive(x_1794)) { + lean_ctor_release(x_1794, 0); + lean_ctor_release(x_1794, 1); + x_1798 = x_1794; +} else { + lean_dec_ref(x_1794); + x_1798 = lean_box(0); +} +if (lean_is_scalar(x_1798)) { + x_1799 = lean_alloc_ctor(1, 2, 0); +} else { + x_1799 = x_1798; +} +lean_ctor_set(x_1799, 0, x_1796); +lean_ctor_set(x_1799, 1, x_1797); +return x_1799; +} +} +block_1792: +{ +lean_object* x_1782; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_1782 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1781); +lean_dec(x_17); +if (lean_obj_tag(x_1782) == 0) +{ +lean_object* x_1783; lean_object* x_1784; lean_object* x_1785; lean_object* x_1786; lean_object* x_1787; +x_1783 = lean_ctor_get(x_1782, 1); +lean_inc(x_1783); +lean_dec(x_1782); +lean_inc(x_2); +x_1784 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__20(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1783); +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_19); +x_1785 = lean_ctor_get(x_1784, 1); +lean_inc(x_1785); +if (lean_is_exclusive(x_1784)) { + lean_ctor_release(x_1784, 0); + lean_ctor_release(x_1784, 1); + x_1786 = x_1784; +} else { + lean_dec_ref(x_1784); + x_1786 = lean_box(0); +} +if (lean_is_scalar(x_1786)) { + x_1787 = lean_alloc_ctor(0, 2, 0); +} else { + x_1787 = x_1786; +} +lean_ctor_set(x_1787, 0, x_2); +lean_ctor_set(x_1787, 1, x_1785); return x_1787; } -} -} else { -lean_object* x_1788; lean_object* x_1789; lean_object* x_1790; -lean_dec(x_113); -lean_dec(x_112); -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_3); -x_1788 = lean_ctor_get(x_1664, 0); -lean_inc(x_1788); -lean_dec(x_1664); -lean_inc(x_1788); -x_1789 = l_Lean_mkApp(x_2, x_1788); -x_1790 = lean_expr_instantiate1(x_114, x_1788); -lean_dec(x_1788); -lean_dec(x_114); -x_1 = x_1661; -x_2 = x_1789; -x_3 = x_1790; -x_10 = x_1659; -goto _start; -} -} -else -{ -uint8_t x_1792; -lean_dec(x_1661); -lean_dec(x_114); -lean_dec(x_113); -x_1792 = l_Array_isEmpty___rarg(x_16); -if (x_1792 == 0) -{ -lean_object* x_1793; lean_object* x_1794; lean_object* x_1795; lean_object* x_1796; lean_object* x_1797; lean_object* x_1798; lean_object* x_1799; lean_object* x_1800; lean_object* x_1801; lean_object* x_1802; lean_object* x_1803; lean_object* x_1804; lean_object* x_1805; lean_object* x_1806; lean_object* x_1807; lean_object* x_1808; -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_3); -lean_dec(x_2); -x_1793 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1793, 0, x_112); -x_1794 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_1795 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1795, 0, x_1794); -lean_ctor_set(x_1795, 1, x_1793); -x_1796 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_1797 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1797, 0, x_1795); -lean_ctor_set(x_1797, 1, x_1796); -x_1798 = x_16; -x_1799 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_116, x_1798); -x_1800 = x_1799; -x_1801 = l_Array_toList___rarg(x_1800); -lean_dec(x_1800); -x_1802 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1801); -x_1803 = l_Array_HasRepr___rarg___closed__1; -x_1804 = lean_string_append(x_1803, x_1802); -lean_dec(x_1802); -x_1805 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1805, 0, x_1804); -x_1806 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1806, 0, x_1805); -x_1807 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1807, 0, x_1797); -lean_ctor_set(x_1807, 1, x_1806); -x_1808 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1807, x_4, x_5, x_6, x_7, x_8, x_9, x_1659); -lean_dec(x_9); +lean_object* x_1788; lean_object* x_1789; lean_object* x_1790; lean_object* x_1791; lean_dec(x_8); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_1808; +lean_dec(x_4); +lean_dec(x_2); +x_1788 = lean_ctor_get(x_1782, 0); +lean_inc(x_1788); +x_1789 = lean_ctor_get(x_1782, 1); +lean_inc(x_1789); +if (lean_is_exclusive(x_1782)) { + lean_ctor_release(x_1782, 0); + lean_ctor_release(x_1782, 1); + x_1790 = x_1782; +} else { + lean_dec_ref(x_1782); + x_1790 = lean_box(0); +} +if (lean_is_scalar(x_1790)) { + x_1791 = lean_alloc_ctor(1, 2, 0); +} else { + x_1791 = x_1790; +} +lean_ctor_set(x_1791, 0, x_1788); +lean_ctor_set(x_1791, 1, x_1789); +return x_1791; +} +} } else { -lean_object* x_1809; uint8_t x_1810; -lean_dec(x_112); -lean_dec(x_16); -x_1809 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_1810 = l_Lean_checkTraceOption(x_22, x_1809); -lean_dec(x_22); -if (x_1810 == 0) -{ -lean_object* x_1811; +lean_object* x_1800; lean_object* x_1801; lean_object* x_1802; lean_object* x_1803; +lean_inc(x_2); +x_1800 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1800, 0, x_2); +x_1801 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1779, x_1800, x_4, x_5, x_6, x_7, x_8, x_9, x_1634); +x_1802 = lean_ctor_get(x_1801, 1); +lean_inc(x_1802); +lean_dec(x_1801); if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_1811 = x_1659; -goto block_1822; +x_1803 = x_1802; +goto block_1814; } else { -lean_object* x_1823; lean_object* x_1824; -x_1823 = lean_ctor_get(x_13, 0); -lean_inc(x_1823); +lean_object* x_1815; lean_object* x_1816; +x_1815 = lean_ctor_get(x_13, 0); +lean_inc(x_1815); lean_dec(x_13); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1824 = l_Lean_Elab_Term_isDefEq(x_1823, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1659); -if (lean_obj_tag(x_1824) == 0) +x_1816 = l_Lean_Elab_Term_isDefEq(x_1815, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1802); +if (lean_obj_tag(x_1816) == 0) { -lean_object* x_1825; -x_1825 = lean_ctor_get(x_1824, 1); -lean_inc(x_1825); -lean_dec(x_1824); -x_1811 = x_1825; -goto block_1822; -} -else -{ -lean_object* x_1826; lean_object* x_1827; lean_object* x_1828; lean_object* x_1829; -lean_dec(x_8); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1826 = lean_ctor_get(x_1824, 0); -lean_inc(x_1826); -x_1827 = lean_ctor_get(x_1824, 1); -lean_inc(x_1827); -if (lean_is_exclusive(x_1824)) { - lean_ctor_release(x_1824, 0); - lean_ctor_release(x_1824, 1); - x_1828 = x_1824; -} else { - lean_dec_ref(x_1824); - x_1828 = lean_box(0); -} -if (lean_is_scalar(x_1828)) { - x_1829 = lean_alloc_ctor(1, 2, 0); -} else { - x_1829 = x_1828; -} -lean_ctor_set(x_1829, 0, x_1826); -lean_ctor_set(x_1829, 1, x_1827); -return x_1829; -} -} -block_1822: -{ -lean_object* x_1812; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_1812 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1811); -lean_dec(x_17); -if (lean_obj_tag(x_1812) == 0) -{ -lean_object* x_1813; lean_object* x_1814; lean_object* x_1815; lean_object* x_1816; lean_object* x_1817; -x_1813 = lean_ctor_get(x_1812, 1); -lean_inc(x_1813); -lean_dec(x_1812); -lean_inc(x_2); -x_1814 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__20(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1813); -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_19); -x_1815 = lean_ctor_get(x_1814, 1); -lean_inc(x_1815); -if (lean_is_exclusive(x_1814)) { - lean_ctor_release(x_1814, 0); - lean_ctor_release(x_1814, 1); - x_1816 = x_1814; -} else { - lean_dec_ref(x_1814); - x_1816 = lean_box(0); -} -if (lean_is_scalar(x_1816)) { - x_1817 = lean_alloc_ctor(0, 2, 0); -} else { - x_1817 = x_1816; -} -lean_ctor_set(x_1817, 0, x_2); -lean_ctor_set(x_1817, 1, x_1815); -return x_1817; +lean_object* x_1817; +x_1817 = lean_ctor_get(x_1816, 1); +lean_inc(x_1817); +lean_dec(x_1816); +x_1803 = x_1817; +goto block_1814; } else { lean_object* x_1818; lean_object* x_1819; lean_object* x_1820; lean_object* x_1821; lean_dec(x_8); lean_dec(x_19); +lean_dec(x_17); lean_dec(x_11); lean_dec(x_9); lean_dec(x_7); @@ -13530,16 +13264,16 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1818 = lean_ctor_get(x_1812, 0); +x_1818 = lean_ctor_get(x_1816, 0); lean_inc(x_1818); -x_1819 = lean_ctor_get(x_1812, 1); +x_1819 = lean_ctor_get(x_1816, 1); lean_inc(x_1819); -if (lean_is_exclusive(x_1812)) { - lean_ctor_release(x_1812, 0); - lean_ctor_release(x_1812, 1); - x_1820 = x_1812; +if (lean_is_exclusive(x_1816)) { + lean_ctor_release(x_1816, 0); + lean_ctor_release(x_1816, 1); + x_1820 = x_1816; } else { - lean_dec_ref(x_1812); + lean_dec_ref(x_1816); x_1820 = lean_box(0); } if (lean_is_scalar(x_1820)) { @@ -13552,97 +13286,24 @@ lean_ctor_set(x_1821, 1, x_1819); return x_1821; } } -} -else +block_1814: { -lean_object* x_1830; lean_object* x_1831; lean_object* x_1832; lean_object* x_1833; -lean_inc(x_2); -x_1830 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1830, 0, x_2); -x_1831 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1809, x_1830, x_4, x_5, x_6, x_7, x_8, x_9, x_1659); -x_1832 = lean_ctor_get(x_1831, 1); -lean_inc(x_1832); -lean_dec(x_1831); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_1833 = x_1832; -goto block_1844; -} -else -{ -lean_object* x_1845; lean_object* x_1846; -x_1845 = lean_ctor_get(x_13, 0); -lean_inc(x_1845); -lean_dec(x_13); +lean_object* x_1804; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1846 = l_Lean_Elab_Term_isDefEq(x_1845, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1832); -if (lean_obj_tag(x_1846) == 0) -{ -lean_object* x_1847; -x_1847 = lean_ctor_get(x_1846, 1); -lean_inc(x_1847); -lean_dec(x_1846); -x_1833 = x_1847; -goto block_1844; -} -else -{ -lean_object* x_1848; lean_object* x_1849; lean_object* x_1850; lean_object* x_1851; -lean_dec(x_8); -lean_dec(x_19); +x_1804 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1803); lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1848 = lean_ctor_get(x_1846, 0); -lean_inc(x_1848); -x_1849 = lean_ctor_get(x_1846, 1); -lean_inc(x_1849); -if (lean_is_exclusive(x_1846)) { - lean_ctor_release(x_1846, 0); - lean_ctor_release(x_1846, 1); - x_1850 = x_1846; -} else { - lean_dec_ref(x_1846); - x_1850 = lean_box(0); -} -if (lean_is_scalar(x_1850)) { - x_1851 = lean_alloc_ctor(1, 2, 0); -} else { - x_1851 = x_1850; -} -lean_ctor_set(x_1851, 0, x_1848); -lean_ctor_set(x_1851, 1, x_1849); -return x_1851; -} -} -block_1844: +if (lean_obj_tag(x_1804) == 0) { -lean_object* x_1834; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_1834 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1833); -lean_dec(x_17); -if (lean_obj_tag(x_1834) == 0) -{ -lean_object* x_1835; lean_object* x_1836; lean_object* x_1837; lean_object* x_1838; lean_object* x_1839; -x_1835 = lean_ctor_get(x_1834, 1); -lean_inc(x_1835); -lean_dec(x_1834); +lean_object* x_1805; lean_object* x_1806; lean_object* x_1807; lean_object* x_1808; lean_object* x_1809; +x_1805 = lean_ctor_get(x_1804, 1); +lean_inc(x_1805); +lean_dec(x_1804); lean_inc(x_2); -x_1836 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__21(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1835); +x_1806 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__21(x_2, x_11, x_19, x_116, x_4, x_5, x_6, x_7, x_8, x_9, x_1805); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -13650,28 +13311,28 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); -x_1837 = lean_ctor_get(x_1836, 1); -lean_inc(x_1837); -if (lean_is_exclusive(x_1836)) { - lean_ctor_release(x_1836, 0); - lean_ctor_release(x_1836, 1); - x_1838 = x_1836; +x_1807 = lean_ctor_get(x_1806, 1); +lean_inc(x_1807); +if (lean_is_exclusive(x_1806)) { + lean_ctor_release(x_1806, 0); + lean_ctor_release(x_1806, 1); + x_1808 = x_1806; } else { - lean_dec_ref(x_1836); - x_1838 = lean_box(0); + lean_dec_ref(x_1806); + x_1808 = lean_box(0); } -if (lean_is_scalar(x_1838)) { - x_1839 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_1808)) { + x_1809 = lean_alloc_ctor(0, 2, 0); } else { - x_1839 = x_1838; + x_1809 = x_1808; } -lean_ctor_set(x_1839, 0, x_2); -lean_ctor_set(x_1839, 1, x_1837); -return x_1839; +lean_ctor_set(x_1809, 0, x_2); +lean_ctor_set(x_1809, 1, x_1807); +return x_1809; } else { -lean_object* x_1840; lean_object* x_1841; lean_object* x_1842; lean_object* x_1843; +lean_object* x_1810; lean_object* x_1811; lean_object* x_1812; lean_object* x_1813; lean_dec(x_8); lean_dec(x_19); lean_dec(x_11); @@ -13681,26 +13342,26 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1840 = lean_ctor_get(x_1834, 0); -lean_inc(x_1840); -x_1841 = lean_ctor_get(x_1834, 1); -lean_inc(x_1841); -if (lean_is_exclusive(x_1834)) { - lean_ctor_release(x_1834, 0); - lean_ctor_release(x_1834, 1); - x_1842 = x_1834; +x_1810 = lean_ctor_get(x_1804, 0); +lean_inc(x_1810); +x_1811 = lean_ctor_get(x_1804, 1); +lean_inc(x_1811); +if (lean_is_exclusive(x_1804)) { + lean_ctor_release(x_1804, 0); + lean_ctor_release(x_1804, 1); + x_1812 = x_1804; } else { - lean_dec_ref(x_1834); - x_1842 = lean_box(0); + lean_dec_ref(x_1804); + x_1812 = lean_box(0); } -if (lean_is_scalar(x_1842)) { - x_1843 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1812)) { + x_1813 = lean_alloc_ctor(1, 2, 0); } else { - x_1843 = x_1842; + x_1813 = x_1812; } -lean_ctor_set(x_1843, 0, x_1840); -lean_ctor_set(x_1843, 1, x_1841); -return x_1843; +lean_ctor_set(x_1813, 0, x_1810); +lean_ctor_set(x_1813, 1, x_1811); +return x_1813; } } } @@ -13709,12 +13370,12 @@ return x_1843; } else { -lean_object* x_1852; lean_object* x_1853; -lean_dec(x_1661); +lean_object* x_1822; lean_object* x_1823; +lean_dec(x_1636); lean_dec(x_112); lean_dec(x_22); lean_dec(x_3); -x_1852 = lean_array_fget(x_12, x_15); +x_1822 = lean_array_fget(x_12, x_15); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -13722,43 +13383,43 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_1853 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1852, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_1659); -if (lean_obj_tag(x_1853) == 0) +x_1823 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1822, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_1634); +if (lean_obj_tag(x_1823) == 0) { -lean_object* x_1854; lean_object* x_1855; lean_object* x_1856; lean_object* x_1857; lean_object* x_1858; lean_object* x_1859; lean_object* x_1860; -x_1854 = lean_ctor_get(x_1853, 0); -lean_inc(x_1854); -x_1855 = lean_ctor_get(x_1853, 1); -lean_inc(x_1855); -lean_dec(x_1853); -x_1856 = lean_unsigned_to_nat(1u); -x_1857 = lean_nat_add(x_15, x_1856); +lean_object* x_1824; lean_object* x_1825; lean_object* x_1826; lean_object* x_1827; lean_object* x_1828; lean_object* x_1829; lean_object* x_1830; +x_1824 = lean_ctor_get(x_1823, 0); +lean_inc(x_1824); +x_1825 = lean_ctor_get(x_1823, 1); +lean_inc(x_1825); +lean_dec(x_1823); +x_1826 = lean_unsigned_to_nat(1u); +x_1827 = lean_nat_add(x_15, x_1826); lean_dec(x_15); -x_1858 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_1858, 0, x_11); -lean_ctor_set(x_1858, 1, x_12); -lean_ctor_set(x_1858, 2, x_13); -lean_ctor_set(x_1858, 3, x_1857); -lean_ctor_set(x_1858, 4, x_16); -lean_ctor_set(x_1858, 5, x_17); -lean_ctor_set(x_1858, 6, x_18); -lean_ctor_set(x_1858, 7, x_19); -lean_ctor_set_uint8(x_1858, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_1858, sizeof(void*)*8 + 1, x_1660); -lean_inc(x_1854); -x_1859 = l_Lean_mkApp(x_2, x_1854); -x_1860 = lean_expr_instantiate1(x_114, x_1854); -lean_dec(x_1854); +x_1828 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_1828, 0, x_11); +lean_ctor_set(x_1828, 1, x_12); +lean_ctor_set(x_1828, 2, x_13); +lean_ctor_set(x_1828, 3, x_1827); +lean_ctor_set(x_1828, 4, x_16); +lean_ctor_set(x_1828, 5, x_17); +lean_ctor_set(x_1828, 6, x_18); +lean_ctor_set(x_1828, 7, x_19); +lean_ctor_set_uint8(x_1828, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_1828, sizeof(void*)*8 + 1, x_1635); +lean_inc(x_1824); +x_1829 = l_Lean_mkApp(x_2, x_1824); +x_1830 = lean_expr_instantiate1(x_114, x_1824); +lean_dec(x_1824); lean_dec(x_114); -x_1 = x_1858; -x_2 = x_1859; -x_3 = x_1860; -x_10 = x_1855; +x_1 = x_1828; +x_2 = x_1829; +x_3 = x_1830; +x_10 = x_1825; goto _start; } else { -lean_object* x_1862; lean_object* x_1863; lean_object* x_1864; lean_object* x_1865; +lean_object* x_1832; lean_object* x_1833; lean_object* x_1834; lean_object* x_1835; lean_dec(x_114); lean_dec(x_8); lean_dec(x_19); @@ -13775,32 +13436,32 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1862 = lean_ctor_get(x_1853, 0); -lean_inc(x_1862); -x_1863 = lean_ctor_get(x_1853, 1); -lean_inc(x_1863); -if (lean_is_exclusive(x_1853)) { - lean_ctor_release(x_1853, 0); - lean_ctor_release(x_1853, 1); - x_1864 = x_1853; +x_1832 = lean_ctor_get(x_1823, 0); +lean_inc(x_1832); +x_1833 = lean_ctor_get(x_1823, 1); +lean_inc(x_1833); +if (lean_is_exclusive(x_1823)) { + lean_ctor_release(x_1823, 0); + lean_ctor_release(x_1823, 1); + x_1834 = x_1823; } else { - lean_dec_ref(x_1853); - x_1864 = lean_box(0); + lean_dec_ref(x_1823); + x_1834 = lean_box(0); } -if (lean_is_scalar(x_1864)) { - x_1865 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1834)) { + x_1835 = lean_alloc_ctor(1, 2, 0); } else { - x_1865 = x_1864; + x_1835 = x_1834; } -lean_ctor_set(x_1865, 0, x_1862); -lean_ctor_set(x_1865, 1, x_1863); -return x_1865; +lean_ctor_set(x_1835, 0, x_1832); +lean_ctor_set(x_1835, 1, x_1833); +return x_1835; } } } else { -lean_object* x_1866; lean_object* x_1867; lean_object* x_1868; lean_object* x_1869; +lean_object* x_1836; lean_object* x_1837; lean_object* x_1838; lean_object* x_1839; lean_dec(x_114); lean_dec(x_113); lean_dec(x_112); @@ -13821,26 +13482,26 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_1866 = lean_ctor_get(x_1435, 0); -lean_inc(x_1866); -x_1867 = lean_ctor_get(x_1435, 1); -lean_inc(x_1867); -if (lean_is_exclusive(x_1435)) { - lean_ctor_release(x_1435, 0); - lean_ctor_release(x_1435, 1); - x_1868 = x_1435; +x_1836 = lean_ctor_get(x_1415, 0); +lean_inc(x_1836); +x_1837 = lean_ctor_get(x_1415, 1); +lean_inc(x_1837); +if (lean_is_exclusive(x_1415)) { + lean_ctor_release(x_1415, 0); + lean_ctor_release(x_1415, 1); + x_1838 = x_1415; } else { - lean_dec_ref(x_1435); - x_1868 = lean_box(0); + lean_dec_ref(x_1415); + x_1838 = lean_box(0); } -if (lean_is_scalar(x_1868)) { - x_1869 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1838)) { + x_1839 = lean_alloc_ctor(1, 2, 0); } else { - x_1869 = x_1868; + x_1839 = x_1838; } -lean_ctor_set(x_1869, 0, x_1866); -lean_ctor_set(x_1869, 1, x_1867); -return x_1869; +lean_ctor_set(x_1839, 0, x_1836); +lean_ctor_set(x_1839, 1, x_1837); +return x_1839; } } } @@ -13848,20 +13509,20 @@ return x_1869; } else { -lean_object* x_1870; lean_object* x_1871; lean_object* x_1872; lean_object* x_1873; lean_object* x_1874; lean_object* x_1875; +lean_object* x_1840; lean_object* x_1841; lean_object* x_1842; lean_object* x_1843; lean_object* x_1844; lean_object* x_1845; lean_dec(x_112); lean_dec(x_22); lean_dec(x_3); -x_1870 = lean_ctor_get(x_117, 0); -lean_inc(x_1870); +x_1840 = lean_ctor_get(x_117, 0); +lean_inc(x_1840); lean_dec(x_117); -x_1871 = l_Lean_Elab_Term_NamedArg_inhabited; -x_1872 = lean_array_get(x_1871, x_16, x_1870); -x_1873 = l_Array_eraseIdx___rarg(x_16, x_1870); -lean_dec(x_1870); -x_1874 = lean_ctor_get(x_1872, 1); -lean_inc(x_1874); -lean_dec(x_1872); +x_1841 = l_Lean_Elab_Term_NamedArg_inhabited; +x_1842 = lean_array_get(x_1841, x_16, x_1840); +x_1843 = l_Array_eraseIdx___rarg(x_16, x_1840); +lean_dec(x_1840); +x_1844 = lean_ctor_get(x_1842, 1); +lean_inc(x_1844); +lean_dec(x_1842); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -13869,67 +13530,67 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_1875 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1874, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_29); -if (lean_obj_tag(x_1875) == 0) +x_1845 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1844, x_113, x_4, x_5, x_6, x_7, x_8, x_9, x_29); +if (lean_obj_tag(x_1845) == 0) { -lean_object* x_1876; lean_object* x_1877; lean_object* x_1878; uint8_t x_1879; -x_1876 = lean_ctor_get(x_1875, 0); -lean_inc(x_1876); -x_1877 = lean_ctor_get(x_1875, 1); -lean_inc(x_1877); -lean_dec(x_1875); +lean_object* x_1846; lean_object* x_1847; lean_object* x_1848; uint8_t x_1849; +x_1846 = lean_ctor_get(x_1845, 0); +lean_inc(x_1846); +x_1847 = lean_ctor_get(x_1845, 1); +lean_inc(x_1847); +lean_dec(x_1845); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); lean_inc(x_1); -x_1878 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_1877); -x_1879 = !lean_is_exclusive(x_1); -if (x_1879 == 0) +x_1848 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_1847); +x_1849 = !lean_is_exclusive(x_1); +if (x_1849 == 0) { -lean_object* x_1880; lean_object* x_1881; lean_object* x_1882; lean_object* x_1883; lean_object* x_1884; lean_object* x_1885; lean_object* x_1886; lean_object* x_1887; -x_1880 = lean_ctor_get(x_1, 7); -lean_dec(x_1880); -x_1881 = lean_ctor_get(x_1, 6); -lean_dec(x_1881); -x_1882 = lean_ctor_get(x_1, 5); -lean_dec(x_1882); -x_1883 = lean_ctor_get(x_1, 4); -lean_dec(x_1883); -x_1884 = lean_ctor_get(x_1, 3); -lean_dec(x_1884); -x_1885 = lean_ctor_get(x_1, 2); -lean_dec(x_1885); -x_1886 = lean_ctor_get(x_1, 1); -lean_dec(x_1886); -x_1887 = lean_ctor_get(x_1, 0); -lean_dec(x_1887); -if (lean_obj_tag(x_1878) == 0) +lean_object* x_1850; lean_object* x_1851; lean_object* x_1852; lean_object* x_1853; lean_object* x_1854; lean_object* x_1855; lean_object* x_1856; lean_object* x_1857; +x_1850 = lean_ctor_get(x_1, 7); +lean_dec(x_1850); +x_1851 = lean_ctor_get(x_1, 6); +lean_dec(x_1851); +x_1852 = lean_ctor_get(x_1, 5); +lean_dec(x_1852); +x_1853 = lean_ctor_get(x_1, 4); +lean_dec(x_1853); +x_1854 = lean_ctor_get(x_1, 3); +lean_dec(x_1854); +x_1855 = lean_ctor_get(x_1, 2); +lean_dec(x_1855); +x_1856 = lean_ctor_get(x_1, 1); +lean_dec(x_1856); +x_1857 = lean_ctor_get(x_1, 0); +lean_dec(x_1857); +if (lean_obj_tag(x_1848) == 0) { -lean_object* x_1888; uint8_t x_1889; lean_object* x_1890; lean_object* x_1891; -x_1888 = lean_ctor_get(x_1878, 1); -lean_inc(x_1888); -lean_dec(x_1878); -x_1889 = 1; -lean_ctor_set(x_1, 4, x_1873); -lean_ctor_set_uint8(x_1, sizeof(void*)*8 + 1, x_1889); -lean_inc(x_1876); -x_1890 = l_Lean_mkApp(x_2, x_1876); -x_1891 = lean_expr_instantiate1(x_114, x_1876); -lean_dec(x_1876); +lean_object* x_1858; uint8_t x_1859; lean_object* x_1860; lean_object* x_1861; +x_1858 = lean_ctor_get(x_1848, 1); +lean_inc(x_1858); +lean_dec(x_1848); +x_1859 = 1; +lean_ctor_set(x_1, 4, x_1843); +lean_ctor_set_uint8(x_1, sizeof(void*)*8 + 1, x_1859); +lean_inc(x_1846); +x_1860 = l_Lean_mkApp(x_2, x_1846); +x_1861 = lean_expr_instantiate1(x_114, x_1846); +lean_dec(x_1846); lean_dec(x_114); -x_2 = x_1890; -x_3 = x_1891; -x_10 = x_1888; +x_2 = x_1860; +x_3 = x_1861; +x_10 = x_1858; goto _start; } else { -uint8_t x_1893; +uint8_t x_1863; lean_free_object(x_1); -lean_dec(x_1876); -lean_dec(x_1873); +lean_dec(x_1846); +lean_dec(x_1843); lean_dec(x_114); lean_dec(x_8); lean_dec(x_19); @@ -13945,63 +13606,63 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1893 = !lean_is_exclusive(x_1878); -if (x_1893 == 0) +x_1863 = !lean_is_exclusive(x_1848); +if (x_1863 == 0) { -return x_1878; +return x_1848; } else { -lean_object* x_1894; lean_object* x_1895; lean_object* x_1896; -x_1894 = lean_ctor_get(x_1878, 0); -x_1895 = lean_ctor_get(x_1878, 1); -lean_inc(x_1895); -lean_inc(x_1894); -lean_dec(x_1878); -x_1896 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1896, 0, x_1894); -lean_ctor_set(x_1896, 1, x_1895); -return x_1896; +lean_object* x_1864; lean_object* x_1865; lean_object* x_1866; +x_1864 = lean_ctor_get(x_1848, 0); +x_1865 = lean_ctor_get(x_1848, 1); +lean_inc(x_1865); +lean_inc(x_1864); +lean_dec(x_1848); +x_1866 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1866, 0, x_1864); +lean_ctor_set(x_1866, 1, x_1865); +return x_1866; } } } else { lean_dec(x_1); -if (lean_obj_tag(x_1878) == 0) +if (lean_obj_tag(x_1848) == 0) { -lean_object* x_1897; uint8_t x_1898; lean_object* x_1899; lean_object* x_1900; lean_object* x_1901; -x_1897 = lean_ctor_get(x_1878, 1); -lean_inc(x_1897); -lean_dec(x_1878); -x_1898 = 1; -x_1899 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_1899, 0, x_11); -lean_ctor_set(x_1899, 1, x_12); -lean_ctor_set(x_1899, 2, x_13); -lean_ctor_set(x_1899, 3, x_15); -lean_ctor_set(x_1899, 4, x_1873); -lean_ctor_set(x_1899, 5, x_17); -lean_ctor_set(x_1899, 6, x_18); -lean_ctor_set(x_1899, 7, x_19); -lean_ctor_set_uint8(x_1899, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_1899, sizeof(void*)*8 + 1, x_1898); -lean_inc(x_1876); -x_1900 = l_Lean_mkApp(x_2, x_1876); -x_1901 = lean_expr_instantiate1(x_114, x_1876); -lean_dec(x_1876); +lean_object* x_1867; uint8_t x_1868; lean_object* x_1869; lean_object* x_1870; lean_object* x_1871; +x_1867 = lean_ctor_get(x_1848, 1); +lean_inc(x_1867); +lean_dec(x_1848); +x_1868 = 1; +x_1869 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_1869, 0, x_11); +lean_ctor_set(x_1869, 1, x_12); +lean_ctor_set(x_1869, 2, x_13); +lean_ctor_set(x_1869, 3, x_15); +lean_ctor_set(x_1869, 4, x_1843); +lean_ctor_set(x_1869, 5, x_17); +lean_ctor_set(x_1869, 6, x_18); +lean_ctor_set(x_1869, 7, x_19); +lean_ctor_set_uint8(x_1869, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_1869, sizeof(void*)*8 + 1, x_1868); +lean_inc(x_1846); +x_1870 = l_Lean_mkApp(x_2, x_1846); +x_1871 = lean_expr_instantiate1(x_114, x_1846); +lean_dec(x_1846); lean_dec(x_114); -x_1 = x_1899; -x_2 = x_1900; -x_3 = x_1901; -x_10 = x_1897; +x_1 = x_1869; +x_2 = x_1870; +x_3 = x_1871; +x_10 = x_1867; goto _start; } else { -lean_object* x_1903; lean_object* x_1904; lean_object* x_1905; lean_object* x_1906; -lean_dec(x_1876); -lean_dec(x_1873); +lean_object* x_1873; lean_object* x_1874; lean_object* x_1875; lean_object* x_1876; +lean_dec(x_1846); +lean_dec(x_1843); lean_dec(x_114); lean_dec(x_8); lean_dec(x_19); @@ -14017,33 +13678,33 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1903 = lean_ctor_get(x_1878, 0); -lean_inc(x_1903); -x_1904 = lean_ctor_get(x_1878, 1); -lean_inc(x_1904); -if (lean_is_exclusive(x_1878)) { - lean_ctor_release(x_1878, 0); - lean_ctor_release(x_1878, 1); - x_1905 = x_1878; +x_1873 = lean_ctor_get(x_1848, 0); +lean_inc(x_1873); +x_1874 = lean_ctor_get(x_1848, 1); +lean_inc(x_1874); +if (lean_is_exclusive(x_1848)) { + lean_ctor_release(x_1848, 0); + lean_ctor_release(x_1848, 1); + x_1875 = x_1848; } else { - lean_dec_ref(x_1878); - x_1905 = lean_box(0); + lean_dec_ref(x_1848); + x_1875 = lean_box(0); } -if (lean_is_scalar(x_1905)) { - x_1906 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1875)) { + x_1876 = lean_alloc_ctor(1, 2, 0); } else { - x_1906 = x_1905; + x_1876 = x_1875; } -lean_ctor_set(x_1906, 0, x_1903); -lean_ctor_set(x_1906, 1, x_1904); -return x_1906; +lean_ctor_set(x_1876, 0, x_1873); +lean_ctor_set(x_1876, 1, x_1874); +return x_1876; } } } else { -uint8_t x_1907; -lean_dec(x_1873); +uint8_t x_1877; +lean_dec(x_1843); lean_dec(x_114); lean_dec(x_28); lean_dec(x_8); @@ -14061,33 +13722,33 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_1907 = !lean_is_exclusive(x_1875); -if (x_1907 == 0) +x_1877 = !lean_is_exclusive(x_1845); +if (x_1877 == 0) { -return x_1875; +return x_1845; } else { -lean_object* x_1908; lean_object* x_1909; lean_object* x_1910; -x_1908 = lean_ctor_get(x_1875, 0); -x_1909 = lean_ctor_get(x_1875, 1); -lean_inc(x_1909); -lean_inc(x_1908); -lean_dec(x_1875); -x_1910 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1910, 0, x_1908); -lean_ctor_set(x_1910, 1, x_1909); -return x_1910; +lean_object* x_1878; lean_object* x_1879; lean_object* x_1880; +x_1878 = lean_ctor_get(x_1845, 0); +x_1879 = lean_ctor_get(x_1845, 1); +lean_inc(x_1879); +lean_inc(x_1878); +lean_dec(x_1845); +x_1880 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1880, 0, x_1878); +lean_ctor_set(x_1880, 1, x_1879); +return x_1880; } } } } else { -lean_object* x_1911; +lean_object* x_1881; lean_dec(x_18); -x_1911 = lean_box(0); -x_30 = x_1911; +x_1881 = lean_box(0); +x_30 = x_1881; goto block_111; } block_111: @@ -14619,7 +14280,7 @@ return x_102; } else { -uint8_t x_1912; +uint8_t x_1882; lean_dec(x_8); lean_dec(x_22); lean_dec(x_19); @@ -14638,92 +14299,92 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_1912 = !lean_is_exclusive(x_27); -if (x_1912 == 0) +x_1882 = !lean_is_exclusive(x_27); +if (x_1882 == 0) { return x_27; } else { -lean_object* x_1913; lean_object* x_1914; lean_object* x_1915; -x_1913 = lean_ctor_get(x_27, 0); -x_1914 = lean_ctor_get(x_27, 1); -lean_inc(x_1914); -lean_inc(x_1913); +lean_object* x_1883; lean_object* x_1884; lean_object* x_1885; +x_1883 = lean_ctor_get(x_27, 0); +x_1884 = lean_ctor_get(x_27, 1); +lean_inc(x_1884); +lean_inc(x_1883); lean_dec(x_27); -x_1915 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1915, 0, x_1913); -lean_ctor_set(x_1915, 1, x_1914); -return x_1915; +x_1885 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1885, 0, x_1883); +lean_ctor_set(x_1885, 1, x_1884); +return x_1885; } } } else { -uint8_t x_1916; lean_object* x_1917; lean_object* x_1918; lean_object* x_1919; lean_object* x_1920; lean_object* x_1921; lean_object* x_1922; lean_object* x_1923; lean_object* x_1924; lean_object* x_1925; -x_1916 = lean_ctor_get_uint8(x_1, sizeof(void*)*8 + 1); -x_1917 = lean_ctor_get(x_8, 0); -x_1918 = lean_ctor_get(x_8, 1); -x_1919 = lean_ctor_get(x_8, 2); -x_1920 = lean_ctor_get(x_8, 3); -lean_inc(x_1920); -lean_inc(x_1919); -lean_inc(x_1918); -lean_inc(x_1917); +uint8_t x_1886; lean_object* x_1887; lean_object* x_1888; lean_object* x_1889; lean_object* x_1890; lean_object* x_1891; lean_object* x_1892; lean_object* x_1893; lean_object* x_1894; lean_object* x_1895; +x_1886 = lean_ctor_get_uint8(x_1, sizeof(void*)*8 + 1); +x_1887 = lean_ctor_get(x_8, 0); +x_1888 = lean_ctor_get(x_8, 1); +x_1889 = lean_ctor_get(x_8, 2); +x_1890 = lean_ctor_get(x_8, 3); +lean_inc(x_1890); +lean_inc(x_1889); +lean_inc(x_1888); +lean_inc(x_1887); lean_dec(x_8); -x_1921 = l_Lean_replaceRef(x_11, x_1920); -x_1922 = l_Lean_replaceRef(x_1921, x_1920); -lean_dec(x_1921); -x_1923 = l_Lean_replaceRef(x_1922, x_1920); -lean_dec(x_1920); -lean_dec(x_1922); -lean_inc(x_1917); -x_1924 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_1924, 0, x_1917); -lean_ctor_set(x_1924, 1, x_1918); -lean_ctor_set(x_1924, 2, x_1919); -lean_ctor_set(x_1924, 3, x_1923); +x_1891 = l_Lean_replaceRef(x_11, x_1890); +x_1892 = l_Lean_replaceRef(x_1891, x_1890); +lean_dec(x_1891); +x_1893 = l_Lean_replaceRef(x_1892, x_1890); +lean_dec(x_1890); +lean_dec(x_1892); +lean_inc(x_1887); +x_1894 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1894, 0, x_1887); +lean_ctor_set(x_1894, 1, x_1888); +lean_ctor_set(x_1894, 2, x_1889); +lean_ctor_set(x_1894, 3, x_1893); lean_inc(x_9); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); lean_inc(x_3); -x_1925 = l_Lean_Meta_whnfForall___at_Lean_Elab_Term_useImplicitLambda_x3f___spec__1(x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_10); -if (lean_obj_tag(x_1925) == 0) +x_1895 = l_Lean_Meta_whnfForall___at_Lean_Elab_Term_useImplicitLambda_x3f___spec__1(x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_10); +if (lean_obj_tag(x_1895) == 0) { -lean_object* x_1926; lean_object* x_1927; lean_object* x_1928; -x_1926 = lean_ctor_get(x_1925, 0); -lean_inc(x_1926); -x_1927 = lean_ctor_get(x_1925, 1); -lean_inc(x_1927); -lean_dec(x_1925); -if (lean_obj_tag(x_1926) == 7) +lean_object* x_1896; lean_object* x_1897; lean_object* x_1898; +x_1896 = lean_ctor_get(x_1895, 0); +lean_inc(x_1896); +x_1897 = lean_ctor_get(x_1895, 1); +lean_inc(x_1897); +lean_dec(x_1895); +if (lean_obj_tag(x_1896) == 7) { -lean_object* x_2008; lean_object* x_2009; lean_object* x_2010; uint64_t x_2011; lean_object* x_2012; lean_object* x_2013; -x_2008 = lean_ctor_get(x_1926, 0); -lean_inc(x_2008); -x_2009 = lean_ctor_get(x_1926, 1); -lean_inc(x_2009); -x_2010 = lean_ctor_get(x_1926, 2); -lean_inc(x_2010); -x_2011 = lean_ctor_get_uint64(x_1926, sizeof(void*)*3); -x_2012 = lean_unsigned_to_nat(0u); -x_2013 = l_Array_findIdxAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__3(x_2008, x_16, x_2012); -if (lean_obj_tag(x_2013) == 0) +lean_object* x_1978; lean_object* x_1979; lean_object* x_1980; uint64_t x_1981; lean_object* x_1982; lean_object* x_1983; +x_1978 = lean_ctor_get(x_1896, 0); +lean_inc(x_1978); +x_1979 = lean_ctor_get(x_1896, 1); +lean_inc(x_1979); +x_1980 = lean_ctor_get(x_1896, 2); +lean_inc(x_1980); +x_1981 = lean_ctor_get_uint64(x_1896, sizeof(void*)*3); +x_1982 = lean_unsigned_to_nat(0u); +x_1983 = l_Array_findIdxAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__3(x_1978, x_16, x_1982); +if (lean_obj_tag(x_1983) == 0) { -uint8_t x_2014; -x_2014 = (uint8_t)((x_2011 << 24) >> 61); -switch (x_2014) { +uint8_t x_1984; +x_1984 = (uint8_t)((x_1981 << 24) >> 61); +switch (x_1984) { case 0: { -lean_object* x_2015; lean_object* x_2016; +lean_object* x_1985; lean_object* x_1986; lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); lean_inc(x_1); -x_2015 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1926, x_4, x_5, x_6, x_7, x_1924, x_9, x_1927); +x_1985 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1896, x_4, x_5, x_6, x_7, x_1894, x_9, x_1897); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); lean_ctor_release(x_1, 1); @@ -14733,18 +14394,18 @@ if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 5); lean_ctor_release(x_1, 6); lean_ctor_release(x_1, 7); - x_2016 = x_1; + x_1986 = x_1; } else { lean_dec_ref(x_1); - x_2016 = lean_box(0); + x_1986 = lean_box(0); } -if (lean_obj_tag(x_2015) == 0) +if (lean_obj_tag(x_1985) == 0) { -lean_object* x_2017; uint8_t x_2018; lean_object* x_2019; lean_object* x_2020; uint8_t x_2021; -x_2017 = lean_ctor_get(x_2015, 1); -lean_inc(x_2017); -lean_dec(x_2015); -x_2018 = 1; +lean_object* x_1987; uint8_t x_1988; lean_object* x_1989; lean_object* x_1990; uint8_t x_1991; +x_1987 = lean_ctor_get(x_1985, 1); +lean_inc(x_1987); +lean_dec(x_1985); +x_1988 = 1; lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); @@ -14753,130 +14414,130 @@ lean_inc(x_15); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -if (lean_is_scalar(x_2016)) { - x_2019 = lean_alloc_ctor(0, 8, 2); +if (lean_is_scalar(x_1986)) { + x_1989 = lean_alloc_ctor(0, 8, 2); } else { - x_2019 = x_2016; + x_1989 = x_1986; } -lean_ctor_set(x_2019, 0, x_11); -lean_ctor_set(x_2019, 1, x_12); -lean_ctor_set(x_2019, 2, x_13); -lean_ctor_set(x_2019, 3, x_15); -lean_ctor_set(x_2019, 4, x_16); -lean_ctor_set(x_2019, 5, x_17); -lean_ctor_set(x_2019, 6, x_18); -lean_ctor_set(x_2019, 7, x_19); -lean_ctor_set_uint8(x_2019, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_2019, sizeof(void*)*8 + 1, x_2018); -x_2020 = lean_array_get_size(x_12); -x_2021 = lean_nat_dec_lt(x_15, x_2020); -lean_dec(x_2020); -if (x_2021 == 0) +lean_ctor_set(x_1989, 0, x_11); +lean_ctor_set(x_1989, 1, x_12); +lean_ctor_set(x_1989, 2, x_13); +lean_ctor_set(x_1989, 3, x_15); +lean_ctor_set(x_1989, 4, x_16); +lean_ctor_set(x_1989, 5, x_17); +lean_ctor_set(x_1989, 6, x_18); +lean_ctor_set(x_1989, 7, x_19); +lean_ctor_set_uint8(x_1989, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_1989, sizeof(void*)*8 + 1, x_1988); +x_1990 = lean_array_get_size(x_12); +x_1991 = lean_nat_dec_lt(x_15, x_1990); +lean_dec(x_1990); +if (x_1991 == 0) { lean_dec(x_18); lean_dec(x_15); lean_dec(x_12); if (x_14 == 0) { -lean_object* x_2022; -x_2022 = l_Lean_Expr_getOptParamDefault_x3f(x_2009); -if (lean_obj_tag(x_2022) == 0) +lean_object* x_1992; +x_1992 = l_Lean_Expr_getOptParamDefault_x3f(x_1979); +if (lean_obj_tag(x_1992) == 0) { -lean_object* x_2023; -x_2023 = l_Lean_Expr_getAutoParamTactic_x3f(x_2009); -if (lean_obj_tag(x_2023) == 0) +lean_object* x_1993; +x_1993 = l_Lean_Expr_getAutoParamTactic_x3f(x_1979); +if (lean_obj_tag(x_1993) == 0) { -uint8_t x_2024; -lean_dec(x_2019); -lean_dec(x_2010); -lean_dec(x_2009); -x_2024 = l_Array_isEmpty___rarg(x_16); -if (x_2024 == 0) +uint8_t x_1994; +lean_dec(x_1989); +lean_dec(x_1980); +lean_dec(x_1979); +x_1994 = l_Array_isEmpty___rarg(x_16); +if (x_1994 == 0) { -lean_object* x_2025; lean_object* x_2026; lean_object* x_2027; lean_object* x_2028; lean_object* x_2029; lean_object* x_2030; lean_object* x_2031; lean_object* x_2032; lean_object* x_2033; lean_object* x_2034; lean_object* x_2035; lean_object* x_2036; lean_object* x_2037; lean_object* x_2038; lean_object* x_2039; lean_object* x_2040; -lean_dec(x_1917); +lean_object* x_1995; lean_object* x_1996; lean_object* x_1997; lean_object* x_1998; lean_object* x_1999; lean_object* x_2000; lean_object* x_2001; lean_object* x_2002; lean_object* x_2003; lean_object* x_2004; lean_object* x_2005; lean_object* x_2006; lean_object* x_2007; lean_object* x_2008; lean_object* x_2009; lean_object* x_2010; +lean_dec(x_1887); lean_dec(x_19); lean_dec(x_17); lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_2025 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_2025, 0, x_2008); -x_2026 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_2027 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2027, 0, x_2026); -lean_ctor_set(x_2027, 1, x_2025); -x_2028 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_2029 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2029, 0, x_2027); -lean_ctor_set(x_2029, 1, x_2028); -x_2030 = x_16; -x_2031 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_2012, x_2030); -x_2032 = x_2031; -x_2033 = l_Array_toList___rarg(x_2032); -lean_dec(x_2032); -x_2034 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2033); -x_2035 = l_Array_HasRepr___rarg___closed__1; -x_2036 = lean_string_append(x_2035, x_2034); -lean_dec(x_2034); -x_2037 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2037, 0, x_2036); -x_2038 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2038, 0, x_2037); -x_2039 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2039, 0, x_2029); -lean_ctor_set(x_2039, 1, x_2038); -x_2040 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2039, x_4, x_5, x_6, x_7, x_1924, x_9, x_2017); +x_1995 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1995, 0, x_1978); +x_1996 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1997 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1997, 0, x_1996); +lean_ctor_set(x_1997, 1, x_1995); +x_1998 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1999 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1999, 0, x_1997); +lean_ctor_set(x_1999, 1, x_1998); +x_2000 = x_16; +x_2001 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_1982, x_2000); +x_2002 = x_2001; +x_2003 = l_Array_toList___rarg(x_2002); +lean_dec(x_2002); +x_2004 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2003); +x_2005 = l_Array_HasRepr___rarg___closed__1; +x_2006 = lean_string_append(x_2005, x_2004); +lean_dec(x_2004); +x_2007 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2007, 0, x_2006); +x_2008 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2008, 0, x_2007); +x_2009 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2009, 0, x_1999); +lean_ctor_set(x_2009, 1, x_2008); +x_2010 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2009, x_4, x_5, x_6, x_7, x_1894, x_9, x_1987); lean_dec(x_9); -lean_dec(x_1924); +lean_dec(x_1894); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_2040; +return x_2010; } else { -lean_object* x_2041; uint8_t x_2042; -lean_dec(x_2008); +lean_object* x_2011; uint8_t x_2012; +lean_dec(x_1978); lean_dec(x_16); -x_2041 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_2042 = l_Lean_checkTraceOption(x_1917, x_2041); -lean_dec(x_1917); -if (x_2042 == 0) +x_2011 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_2012 = l_Lean_checkTraceOption(x_1887, x_2011); +lean_dec(x_1887); +if (x_2012 == 0) { -lean_object* x_2043; +lean_object* x_2013; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_2043 = x_2017; -goto block_2054; +x_2013 = x_1987; +goto block_2024; } else { -lean_object* x_2055; lean_object* x_2056; -x_2055 = lean_ctor_get(x_13, 0); -lean_inc(x_2055); +lean_object* x_2025; lean_object* x_2026; +x_2025 = lean_ctor_get(x_13, 0); +lean_inc(x_2025); lean_dec(x_13); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_2056 = l_Lean_Elab_Term_isDefEq(x_2055, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_2017); -if (lean_obj_tag(x_2056) == 0) +x_2026 = l_Lean_Elab_Term_isDefEq(x_2025, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_1987); +if (lean_obj_tag(x_2026) == 0) { -lean_object* x_2057; -x_2057 = lean_ctor_get(x_2056, 1); -lean_inc(x_2057); -lean_dec(x_2056); -x_2043 = x_2057; -goto block_2054; +lean_object* x_2027; +x_2027 = lean_ctor_get(x_2026, 1); +lean_inc(x_2027); +lean_dec(x_2026); +x_2013 = x_2027; +goto block_2024; } else { -lean_object* x_2058; lean_object* x_2059; lean_object* x_2060; lean_object* x_2061; -lean_dec(x_1924); +lean_object* x_2028; lean_object* x_2029; lean_object* x_2030; lean_object* x_2031; +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_17); lean_dec(x_11); @@ -14886,77 +14547,150 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2058 = lean_ctor_get(x_2056, 0); -lean_inc(x_2058); -x_2059 = lean_ctor_get(x_2056, 1); -lean_inc(x_2059); -if (lean_is_exclusive(x_2056)) { - lean_ctor_release(x_2056, 0); - lean_ctor_release(x_2056, 1); - x_2060 = x_2056; +x_2028 = lean_ctor_get(x_2026, 0); +lean_inc(x_2028); +x_2029 = lean_ctor_get(x_2026, 1); +lean_inc(x_2029); +if (lean_is_exclusive(x_2026)) { + lean_ctor_release(x_2026, 0); + lean_ctor_release(x_2026, 1); + x_2030 = x_2026; } else { - lean_dec_ref(x_2056); - x_2060 = lean_box(0); + lean_dec_ref(x_2026); + x_2030 = lean_box(0); } -if (lean_is_scalar(x_2060)) { - x_2061 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2030)) { + x_2031 = lean_alloc_ctor(1, 2, 0); } else { - x_2061 = x_2060; + x_2031 = x_2030; } -lean_ctor_set(x_2061, 0, x_2058); -lean_ctor_set(x_2061, 1, x_2059); -return x_2061; +lean_ctor_set(x_2031, 0, x_2028); +lean_ctor_set(x_2031, 1, x_2029); +return x_2031; } } -block_2054: +block_2024: { -lean_object* x_2044; +lean_object* x_2014; lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_2044 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2043); +x_2014 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2013); lean_dec(x_17); -if (lean_obj_tag(x_2044) == 0) +if (lean_obj_tag(x_2014) == 0) { -lean_object* x_2045; lean_object* x_2046; lean_object* x_2047; lean_object* x_2048; lean_object* x_2049; -x_2045 = lean_ctor_get(x_2044, 1); -lean_inc(x_2045); -lean_dec(x_2044); +lean_object* x_2015; lean_object* x_2016; lean_object* x_2017; lean_object* x_2018; lean_object* x_2019; +x_2015 = lean_ctor_get(x_2014, 1); +lean_inc(x_2015); +lean_dec(x_2014); lean_inc(x_2); -x_2046 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__5(x_2, x_11, x_19, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2045); +x_2016 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__5(x_2, x_11, x_19, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2015); lean_dec(x_9); -lean_dec(x_1924); +lean_dec(x_1894); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); -x_2047 = lean_ctor_get(x_2046, 1); +x_2017 = lean_ctor_get(x_2016, 1); +lean_inc(x_2017); +if (lean_is_exclusive(x_2016)) { + lean_ctor_release(x_2016, 0); + lean_ctor_release(x_2016, 1); + x_2018 = x_2016; +} else { + lean_dec_ref(x_2016); + x_2018 = lean_box(0); +} +if (lean_is_scalar(x_2018)) { + x_2019 = lean_alloc_ctor(0, 2, 0); +} else { + x_2019 = x_2018; +} +lean_ctor_set(x_2019, 0, x_2); +lean_ctor_set(x_2019, 1, x_2017); +return x_2019; +} +else +{ +lean_object* x_2020; lean_object* x_2021; lean_object* x_2022; lean_object* x_2023; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2020 = lean_ctor_get(x_2014, 0); +lean_inc(x_2020); +x_2021 = lean_ctor_get(x_2014, 1); +lean_inc(x_2021); +if (lean_is_exclusive(x_2014)) { + lean_ctor_release(x_2014, 0); + lean_ctor_release(x_2014, 1); + x_2022 = x_2014; +} else { + lean_dec_ref(x_2014); + x_2022 = lean_box(0); +} +if (lean_is_scalar(x_2022)) { + x_2023 = lean_alloc_ctor(1, 2, 0); +} else { + x_2023 = x_2022; +} +lean_ctor_set(x_2023, 0, x_2020); +lean_ctor_set(x_2023, 1, x_2021); +return x_2023; +} +} +} +else +{ +lean_object* x_2032; lean_object* x_2033; lean_object* x_2034; lean_object* x_2035; +lean_inc(x_2); +x_2032 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2032, 0, x_2); +x_2033 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_2011, x_2032, x_4, x_5, x_6, x_7, x_1894, x_9, x_1987); +x_2034 = lean_ctor_get(x_2033, 1); +lean_inc(x_2034); +lean_dec(x_2033); +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_2035 = x_2034; +goto block_2046; +} +else +{ +lean_object* x_2047; lean_object* x_2048; +x_2047 = lean_ctor_get(x_13, 0); lean_inc(x_2047); -if (lean_is_exclusive(x_2046)) { - lean_ctor_release(x_2046, 0); - lean_ctor_release(x_2046, 1); - x_2048 = x_2046; -} else { - lean_dec_ref(x_2046); - x_2048 = lean_box(0); -} -if (lean_is_scalar(x_2048)) { - x_2049 = lean_alloc_ctor(0, 2, 0); -} else { - x_2049 = x_2048; -} -lean_ctor_set(x_2049, 0, x_2); -lean_ctor_set(x_2049, 1, x_2047); -return x_2049; +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2048 = l_Lean_Elab_Term_isDefEq(x_2047, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_2034); +if (lean_obj_tag(x_2048) == 0) +{ +lean_object* x_2049; +x_2049 = lean_ctor_get(x_2048, 1); +lean_inc(x_2049); +lean_dec(x_2048); +x_2035 = x_2049; +goto block_2046; } else { lean_object* x_2050; lean_object* x_2051; lean_object* x_2052; lean_object* x_2053; -lean_dec(x_1924); +lean_dec(x_1894); lean_dec(x_19); +lean_dec(x_17); lean_dec(x_11); lean_dec(x_9); lean_dec(x_7); @@ -14964,16 +14698,16 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2050 = lean_ctor_get(x_2044, 0); +x_2050 = lean_ctor_get(x_2048, 0); lean_inc(x_2050); -x_2051 = lean_ctor_get(x_2044, 1); +x_2051 = lean_ctor_get(x_2048, 1); lean_inc(x_2051); -if (lean_is_exclusive(x_2044)) { - lean_ctor_release(x_2044, 0); - lean_ctor_release(x_2044, 1); - x_2052 = x_2044; +if (lean_is_exclusive(x_2048)) { + lean_ctor_release(x_2048, 0); + lean_ctor_release(x_2048, 1); + x_2052 = x_2048; } else { - lean_dec_ref(x_2044); + lean_dec_ref(x_2048); x_2052 = lean_box(0); } if (lean_is_scalar(x_2052)) { @@ -14986,50 +14720,55 @@ lean_ctor_set(x_2053, 1, x_2051); return x_2053; } } -} -else +block_2046: { -lean_object* x_2062; lean_object* x_2063; lean_object* x_2064; lean_object* x_2065; -lean_inc(x_2); -x_2062 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2062, 0, x_2); -x_2063 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_2041, x_2062, x_4, x_5, x_6, x_7, x_1924, x_9, x_2017); -x_2064 = lean_ctor_get(x_2063, 1); -lean_inc(x_2064); -lean_dec(x_2063); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_2065 = x_2064; -goto block_2076; -} -else -{ -lean_object* x_2077; lean_object* x_2078; -x_2077 = lean_ctor_get(x_13, 0); -lean_inc(x_2077); -lean_dec(x_13); +lean_object* x_2036; lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_2078 = l_Lean_Elab_Term_isDefEq(x_2077, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_2064); -if (lean_obj_tag(x_2078) == 0) +x_2036 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2035); +lean_dec(x_17); +if (lean_obj_tag(x_2036) == 0) { -lean_object* x_2079; -x_2079 = lean_ctor_get(x_2078, 1); -lean_inc(x_2079); -lean_dec(x_2078); -x_2065 = x_2079; -goto block_2076; +lean_object* x_2037; lean_object* x_2038; lean_object* x_2039; lean_object* x_2040; lean_object* x_2041; +x_2037 = lean_ctor_get(x_2036, 1); +lean_inc(x_2037); +lean_dec(x_2036); +lean_inc(x_2); +x_2038 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__6(x_2, x_11, x_19, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2037); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_19); +x_2039 = lean_ctor_get(x_2038, 1); +lean_inc(x_2039); +if (lean_is_exclusive(x_2038)) { + lean_ctor_release(x_2038, 0); + lean_ctor_release(x_2038, 1); + x_2040 = x_2038; +} else { + lean_dec_ref(x_2038); + x_2040 = lean_box(0); +} +if (lean_is_scalar(x_2040)) { + x_2041 = lean_alloc_ctor(0, 2, 0); +} else { + x_2041 = x_2040; +} +lean_ctor_set(x_2041, 0, x_2); +lean_ctor_set(x_2041, 1, x_2039); +return x_2041; } else { -lean_object* x_2080; lean_object* x_2081; lean_object* x_2082; lean_object* x_2083; -lean_dec(x_1924); +lean_object* x_2042; lean_object* x_2043; lean_object* x_2044; lean_object* x_2045; +lean_dec(x_1894); lean_dec(x_19); -lean_dec(x_17); lean_dec(x_11); lean_dec(x_9); lean_dec(x_7); @@ -15037,488 +14776,349 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2080 = lean_ctor_get(x_2078, 0); -lean_inc(x_2080); -x_2081 = lean_ctor_get(x_2078, 1); -lean_inc(x_2081); -if (lean_is_exclusive(x_2078)) { - lean_ctor_release(x_2078, 0); - lean_ctor_release(x_2078, 1); - x_2082 = x_2078; +x_2042 = lean_ctor_get(x_2036, 0); +lean_inc(x_2042); +x_2043 = lean_ctor_get(x_2036, 1); +lean_inc(x_2043); +if (lean_is_exclusive(x_2036)) { + lean_ctor_release(x_2036, 0); + lean_ctor_release(x_2036, 1); + x_2044 = x_2036; } else { - lean_dec_ref(x_2078); - x_2082 = lean_box(0); + lean_dec_ref(x_2036); + x_2044 = lean_box(0); } -if (lean_is_scalar(x_2082)) { - x_2083 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2044)) { + x_2045 = lean_alloc_ctor(1, 2, 0); } else { - x_2083 = x_2082; + x_2045 = x_2044; } -lean_ctor_set(x_2083, 0, x_2080); -lean_ctor_set(x_2083, 1, x_2081); -return x_2083; +lean_ctor_set(x_2045, 0, x_2042); +lean_ctor_set(x_2045, 1, x_2043); +return x_2045; } } -block_2076: +} +} +} +else { -lean_object* x_2066; -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_2066 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2065); +lean_object* x_2054; +lean_dec(x_1978); +lean_dec(x_1887); +lean_dec(x_19); lean_dec(x_17); -if (lean_obj_tag(x_2066) == 0) +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_3); +x_2054 = lean_ctor_get(x_1993, 0); +lean_inc(x_2054); +lean_dec(x_1993); +if (lean_obj_tag(x_2054) == 4) { -lean_object* x_2067; lean_object* x_2068; lean_object* x_2069; lean_object* x_2070; lean_object* x_2071; +lean_object* x_2055; lean_object* x_2056; lean_object* x_2057; lean_object* x_2058; lean_object* x_2059; lean_object* x_2060; +x_2055 = lean_ctor_get(x_2054, 0); +lean_inc(x_2055); +lean_dec(x_2054); +x_2056 = lean_st_ref_get(x_9, x_1987); +x_2057 = lean_ctor_get(x_2056, 0); +lean_inc(x_2057); +x_2058 = lean_ctor_get(x_2056, 1); +lean_inc(x_2058); +lean_dec(x_2056); +x_2059 = lean_ctor_get(x_2057, 0); +lean_inc(x_2059); +lean_dec(x_2057); +x_2060 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_2059, x_2055); +if (lean_obj_tag(x_2060) == 0) +{ +lean_object* x_2061; lean_object* x_2062; lean_object* x_2063; lean_object* x_2064; +lean_dec(x_1989); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_11); +lean_dec(x_2); +x_2061 = lean_ctor_get(x_2060, 0); +lean_inc(x_2061); +lean_dec(x_2060); +x_2062 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2062, 0, x_2061); +x_2063 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2063, 0, x_2062); +x_2064 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2063, x_4, x_5, x_6, x_7, x_1894, x_9, x_2058); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_2064; +} +else +{ +lean_object* x_2065; lean_object* x_2066; lean_object* x_2067; lean_object* x_2068; lean_object* x_2069; lean_object* x_2070; lean_object* x_2071; lean_object* x_2072; lean_object* x_2073; lean_object* x_2074; lean_object* x_2075; lean_object* x_2076; lean_object* x_2077; lean_object* x_2078; lean_object* x_2079; lean_object* x_2080; lean_object* x_2081; lean_object* x_2082; lean_object* x_2083; lean_object* x_2084; lean_object* x_2085; lean_object* x_2086; lean_object* x_2087; lean_object* x_2088; lean_object* x_2089; lean_object* x_2090; lean_object* x_2091; lean_object* x_2092; lean_object* x_2093; lean_object* x_2094; lean_object* x_2095; lean_object* x_2096; lean_object* x_2097; lean_object* x_2098; lean_object* x_2099; +x_2065 = lean_ctor_get(x_2060, 0); +lean_inc(x_2065); +lean_dec(x_2060); +x_2066 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_1894, x_9, x_2058); x_2067 = lean_ctor_get(x_2066, 1); lean_inc(x_2067); lean_dec(x_2066); -lean_inc(x_2); -x_2068 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__6(x_2, x_11, x_19, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2067); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_19); +x_2068 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_2067); x_2069 = lean_ctor_get(x_2068, 1); lean_inc(x_2069); -if (lean_is_exclusive(x_2068)) { - lean_ctor_release(x_2068, 0); - lean_ctor_release(x_2068, 1); - x_2070 = x_2068; -} else { - lean_dec_ref(x_2068); - x_2070 = lean_box(0); -} -if (lean_is_scalar(x_2070)) { - x_2071 = lean_alloc_ctor(0, 2, 0); -} else { - x_2071 = x_2070; -} -lean_ctor_set(x_2071, 0, x_2); -lean_ctor_set(x_2071, 1, x_2069); -return x_2071; -} -else -{ -lean_object* x_2072; lean_object* x_2073; lean_object* x_2074; lean_object* x_2075; -lean_dec(x_1924); -lean_dec(x_19); +lean_dec(x_2068); +x_2070 = l_Lean_Syntax_getArgs(x_2065); +lean_dec(x_2065); +x_2071 = l_Array_empty___closed__1; +x_2072 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2070, x_2070, x_1982, x_2071); +lean_dec(x_2070); +x_2073 = l_Lean_nullKind___closed__2; +x_2074 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2074, 0, x_2073); +lean_ctor_set(x_2074, 1, x_2072); +x_2075 = lean_array_push(x_2071, x_2074); +x_2076 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; +x_2077 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2077, 0, x_2076); +lean_ctor_set(x_2077, 1, x_2075); +x_2078 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__4; +x_2079 = lean_array_push(x_2078, x_2077); +x_2080 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__20; +x_2081 = lean_array_push(x_2079, x_2080); +x_2082 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; +x_2083 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2083, 0, x_2082); +lean_ctor_set(x_2083, 1, x_2081); +x_2084 = lean_array_push(x_2071, x_2083); +x_2085 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2085, 0, x_2073); +lean_ctor_set(x_2085, 1, x_2084); +x_2086 = lean_array_push(x_2071, x_2085); +x_2087 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2087, 0, x_2076); +lean_ctor_set(x_2087, 1, x_2086); +x_2088 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_2089 = lean_array_push(x_2088, x_2087); +x_2090 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +x_2091 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2091, 0, x_2090); +lean_ctor_set(x_2091, 1, x_2089); +x_2092 = l_Lean_Syntax_copyInfo(x_2091, x_11); lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2072 = lean_ctor_get(x_2066, 0); -lean_inc(x_2072); -x_2073 = lean_ctor_get(x_2066, 1); -lean_inc(x_2073); -if (lean_is_exclusive(x_2066)) { - lean_ctor_release(x_2066, 0); - lean_ctor_release(x_2066, 1); - x_2074 = x_2066; -} else { - lean_dec_ref(x_2066); - x_2074 = lean_box(0); -} -if (lean_is_scalar(x_2074)) { - x_2075 = lean_alloc_ctor(1, 2, 0); -} else { - x_2075 = x_2074; -} -lean_ctor_set(x_2075, 0, x_2072); -lean_ctor_set(x_2075, 1, x_2073); -return x_2075; -} -} -} -} -} -else +x_2093 = l_Lean_Expr_getAppNumArgsAux___main(x_1979, x_1982); +x_2094 = lean_nat_sub(x_2093, x_1982); +lean_dec(x_2093); +x_2095 = lean_unsigned_to_nat(1u); +x_2096 = lean_nat_sub(x_2094, x_2095); +lean_dec(x_2094); +x_2097 = l_Lean_Expr_getRevArg_x21___main(x_1979, x_2096); +lean_dec(x_1979); +x_2098 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2098, 0, x_2092); +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_2099 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2098, x_2097, x_4, x_5, x_6, x_7, x_1894, x_9, x_2069); +if (lean_obj_tag(x_2099) == 0) { -lean_object* x_2084; -lean_dec(x_2008); -lean_dec(x_1917); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_13); -lean_dec(x_3); -x_2084 = lean_ctor_get(x_2023, 0); -lean_inc(x_2084); -lean_dec(x_2023); -if (lean_obj_tag(x_2084) == 4) -{ -lean_object* x_2085; lean_object* x_2086; lean_object* x_2087; lean_object* x_2088; lean_object* x_2089; lean_object* x_2090; -x_2085 = lean_ctor_get(x_2084, 0); -lean_inc(x_2085); -lean_dec(x_2084); -x_2086 = lean_st_ref_get(x_9, x_2017); -x_2087 = lean_ctor_get(x_2086, 0); -lean_inc(x_2087); -x_2088 = lean_ctor_get(x_2086, 1); -lean_inc(x_2088); -lean_dec(x_2086); -x_2089 = lean_ctor_get(x_2087, 0); -lean_inc(x_2089); -lean_dec(x_2087); -x_2090 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_2089, x_2085); -if (lean_obj_tag(x_2090) == 0) -{ -lean_object* x_2091; lean_object* x_2092; lean_object* x_2093; lean_object* x_2094; -lean_dec(x_2019); -lean_dec(x_2010); -lean_dec(x_2009); -lean_dec(x_11); -lean_dec(x_2); -x_2091 = lean_ctor_get(x_2090, 0); -lean_inc(x_2091); -lean_dec(x_2090); -x_2092 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2092, 0, x_2091); -x_2093 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2093, 0, x_2092); -x_2094 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2093, x_4, x_5, x_6, x_7, x_1924, x_9, x_2088); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_2094; -} -else -{ -lean_object* x_2095; lean_object* x_2096; lean_object* x_2097; lean_object* x_2098; lean_object* x_2099; lean_object* x_2100; lean_object* x_2101; lean_object* x_2102; lean_object* x_2103; lean_object* x_2104; lean_object* x_2105; lean_object* x_2106; lean_object* x_2107; lean_object* x_2108; lean_object* x_2109; lean_object* x_2110; lean_object* x_2111; lean_object* x_2112; lean_object* x_2113; lean_object* x_2114; lean_object* x_2115; lean_object* x_2116; lean_object* x_2117; lean_object* x_2118; lean_object* x_2119; -x_2095 = lean_ctor_get(x_2090, 0); -lean_inc(x_2095); -lean_dec(x_2090); -x_2096 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_1924, x_9, x_2088); -x_2097 = lean_ctor_get(x_2096, 1); -lean_inc(x_2097); -lean_dec(x_2096); -x_2098 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_2097); -x_2099 = lean_ctor_get(x_2098, 1); -lean_inc(x_2099); -lean_dec(x_2098); -x_2100 = l_Lean_Syntax_getArgs(x_2095); -lean_dec(x_2095); -x_2101 = l_Array_empty___closed__1; -x_2102 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2100, x_2100, x_2012, x_2101); +lean_object* x_2100; lean_object* x_2101; lean_object* x_2102; lean_object* x_2103; +x_2100 = lean_ctor_get(x_2099, 0); +lean_inc(x_2100); +x_2101 = lean_ctor_get(x_2099, 1); +lean_inc(x_2101); +lean_dec(x_2099); +lean_inc(x_2100); +x_2102 = l_Lean_mkApp(x_2, x_2100); +x_2103 = lean_expr_instantiate1(x_1980, x_2100); lean_dec(x_2100); -x_2103 = l_Lean_nullKind___closed__2; -x_2104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2104, 0, x_2103); -lean_ctor_set(x_2104, 1, x_2102); -x_2105 = lean_array_push(x_2101, x_2104); -x_2106 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; -x_2107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2107, 0, x_2106); -lean_ctor_set(x_2107, 1, x_2105); -x_2108 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; -x_2109 = lean_array_push(x_2108, x_2107); -x_2110 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; -x_2111 = lean_array_push(x_2109, x_2110); -x_2112 = l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__2; -x_2113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2113, 0, x_2112); -lean_ctor_set(x_2113, 1, x_2111); -x_2114 = l_Lean_Syntax_getHeadInfo___main(x_11); -lean_dec(x_11); -x_2115 = l_Lean_Expr_getAppNumArgsAux___main(x_2009, x_2012); -x_2116 = lean_nat_sub(x_2115, x_2012); -lean_dec(x_2115); -x_2117 = lean_unsigned_to_nat(1u); -x_2118 = lean_nat_sub(x_2116, x_2117); -lean_dec(x_2116); -x_2119 = l_Lean_Expr_getRevArg_x21___main(x_2009, x_2118); -lean_dec(x_2009); -if (lean_obj_tag(x_2114) == 0) -{ -lean_object* x_2120; lean_object* x_2121; -x_2120 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2120, 0, x_2113); -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_2121 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2120, x_2119, x_4, x_5, x_6, x_7, x_1924, x_9, x_2099); -if (lean_obj_tag(x_2121) == 0) -{ -lean_object* x_2122; lean_object* x_2123; lean_object* x_2124; lean_object* x_2125; -x_2122 = lean_ctor_get(x_2121, 0); -lean_inc(x_2122); -x_2123 = lean_ctor_get(x_2121, 1); -lean_inc(x_2123); -lean_dec(x_2121); -lean_inc(x_2122); -x_2124 = l_Lean_mkApp(x_2, x_2122); -x_2125 = lean_expr_instantiate1(x_2010, x_2122); -lean_dec(x_2122); -lean_dec(x_2010); -x_1 = x_2019; -x_2 = x_2124; -x_3 = x_2125; -x_8 = x_1924; -x_10 = x_2123; +lean_dec(x_1980); +x_1 = x_1989; +x_2 = x_2102; +x_3 = x_2103; +x_8 = x_1894; +x_10 = x_2101; goto _start; } else { -lean_object* x_2127; lean_object* x_2128; lean_object* x_2129; lean_object* x_2130; -lean_dec(x_2019); -lean_dec(x_2010); -lean_dec(x_1924); +lean_object* x_2105; lean_object* x_2106; lean_object* x_2107; lean_object* x_2108; +lean_dec(x_1989); +lean_dec(x_1980); +lean_dec(x_1894); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2127 = lean_ctor_get(x_2121, 0); -lean_inc(x_2127); -x_2128 = lean_ctor_get(x_2121, 1); -lean_inc(x_2128); -if (lean_is_exclusive(x_2121)) { - lean_ctor_release(x_2121, 0); - lean_ctor_release(x_2121, 1); - x_2129 = x_2121; +x_2105 = lean_ctor_get(x_2099, 0); +lean_inc(x_2105); +x_2106 = lean_ctor_get(x_2099, 1); +lean_inc(x_2106); +if (lean_is_exclusive(x_2099)) { + lean_ctor_release(x_2099, 0); + lean_ctor_release(x_2099, 1); + x_2107 = x_2099; } else { - lean_dec_ref(x_2121); - x_2129 = lean_box(0); + lean_dec_ref(x_2099); + x_2107 = lean_box(0); } -if (lean_is_scalar(x_2129)) { - x_2130 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2107)) { + x_2108 = lean_alloc_ctor(1, 2, 0); } else { - x_2130 = x_2129; -} -lean_ctor_set(x_2130, 0, x_2127); -lean_ctor_set(x_2130, 1, x_2128); -return x_2130; -} -} -else -{ -lean_object* x_2131; lean_object* x_2132; lean_object* x_2133; lean_object* x_2134; -x_2131 = lean_ctor_get(x_2114, 0); -lean_inc(x_2131); -lean_dec(x_2114); -x_2132 = l_Lean_Syntax_replaceInfo___main(x_2131, x_2113); -x_2133 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2133, 0, x_2132); -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_2134 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2133, x_2119, x_4, x_5, x_6, x_7, x_1924, x_9, x_2099); -if (lean_obj_tag(x_2134) == 0) -{ -lean_object* x_2135; lean_object* x_2136; lean_object* x_2137; lean_object* x_2138; -x_2135 = lean_ctor_get(x_2134, 0); -lean_inc(x_2135); -x_2136 = lean_ctor_get(x_2134, 1); -lean_inc(x_2136); -lean_dec(x_2134); -lean_inc(x_2135); -x_2137 = l_Lean_mkApp(x_2, x_2135); -x_2138 = lean_expr_instantiate1(x_2010, x_2135); -lean_dec(x_2135); -lean_dec(x_2010); -x_1 = x_2019; -x_2 = x_2137; -x_3 = x_2138; -x_8 = x_1924; -x_10 = x_2136; -goto _start; -} -else -{ -lean_object* x_2140; lean_object* x_2141; lean_object* x_2142; lean_object* x_2143; -lean_dec(x_2019); -lean_dec(x_2010); -lean_dec(x_1924); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2140 = lean_ctor_get(x_2134, 0); -lean_inc(x_2140); -x_2141 = lean_ctor_get(x_2134, 1); -lean_inc(x_2141); -if (lean_is_exclusive(x_2134)) { - lean_ctor_release(x_2134, 0); - lean_ctor_release(x_2134, 1); - x_2142 = x_2134; -} else { - lean_dec_ref(x_2134); - x_2142 = lean_box(0); -} -if (lean_is_scalar(x_2142)) { - x_2143 = lean_alloc_ctor(1, 2, 0); -} else { - x_2143 = x_2142; -} -lean_ctor_set(x_2143, 0, x_2140); -lean_ctor_set(x_2143, 1, x_2141); -return x_2143; + x_2108 = x_2107; } +lean_ctor_set(x_2108, 0, x_2105); +lean_ctor_set(x_2108, 1, x_2106); +return x_2108; } } } else { -lean_object* x_2144; lean_object* x_2145; -lean_dec(x_2084); -lean_dec(x_2019); -lean_dec(x_2010); -lean_dec(x_2009); +lean_object* x_2109; lean_object* x_2110; +lean_dec(x_2054); +lean_dec(x_1989); +lean_dec(x_1980); +lean_dec(x_1979); lean_dec(x_11); lean_dec(x_2); -x_2144 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; -x_2145 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2144, x_4, x_5, x_6, x_7, x_1924, x_9, x_2017); +x_2109 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_2110 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2109, x_4, x_5, x_6, x_7, x_1894, x_9, x_1987); lean_dec(x_9); -lean_dec(x_1924); +lean_dec(x_1894); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_2145; +return x_2110; } } } else { -lean_object* x_2146; lean_object* x_2147; lean_object* x_2148; -lean_dec(x_2009); -lean_dec(x_2008); -lean_dec(x_1917); +lean_object* x_2111; lean_object* x_2112; lean_object* x_2113; +lean_dec(x_1979); +lean_dec(x_1978); +lean_dec(x_1887); lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); -x_2146 = lean_ctor_get(x_2022, 0); -lean_inc(x_2146); -lean_dec(x_2022); -lean_inc(x_2146); -x_2147 = l_Lean_mkApp(x_2, x_2146); -x_2148 = lean_expr_instantiate1(x_2010, x_2146); -lean_dec(x_2146); -lean_dec(x_2010); -x_1 = x_2019; -x_2 = x_2147; -x_3 = x_2148; -x_8 = x_1924; -x_10 = x_2017; +x_2111 = lean_ctor_get(x_1992, 0); +lean_inc(x_2111); +lean_dec(x_1992); +lean_inc(x_2111); +x_2112 = l_Lean_mkApp(x_2, x_2111); +x_2113 = lean_expr_instantiate1(x_1980, x_2111); +lean_dec(x_2111); +lean_dec(x_1980); +x_1 = x_1989; +x_2 = x_2112; +x_3 = x_2113; +x_8 = x_1894; +x_10 = x_1987; goto _start; } } else { -uint8_t x_2150; -lean_dec(x_2019); -lean_dec(x_2010); -lean_dec(x_2009); -x_2150 = l_Array_isEmpty___rarg(x_16); -if (x_2150 == 0) +uint8_t x_2115; +lean_dec(x_1989); +lean_dec(x_1980); +lean_dec(x_1979); +x_2115 = l_Array_isEmpty___rarg(x_16); +if (x_2115 == 0) { -lean_object* x_2151; lean_object* x_2152; lean_object* x_2153; lean_object* x_2154; lean_object* x_2155; lean_object* x_2156; lean_object* x_2157; lean_object* x_2158; lean_object* x_2159; lean_object* x_2160; lean_object* x_2161; lean_object* x_2162; lean_object* x_2163; lean_object* x_2164; lean_object* x_2165; lean_object* x_2166; -lean_dec(x_1917); +lean_object* x_2116; lean_object* x_2117; lean_object* x_2118; lean_object* x_2119; lean_object* x_2120; lean_object* x_2121; lean_object* x_2122; lean_object* x_2123; lean_object* x_2124; lean_object* x_2125; lean_object* x_2126; lean_object* x_2127; lean_object* x_2128; lean_object* x_2129; lean_object* x_2130; lean_object* x_2131; +lean_dec(x_1887); lean_dec(x_19); lean_dec(x_17); lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_2151 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_2151, 0, x_2008); -x_2152 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_2153 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2153, 0, x_2152); -lean_ctor_set(x_2153, 1, x_2151); -x_2154 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_2155 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2155, 0, x_2153); -lean_ctor_set(x_2155, 1, x_2154); -x_2156 = x_16; -x_2157 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_2012, x_2156); -x_2158 = x_2157; -x_2159 = l_Array_toList___rarg(x_2158); -lean_dec(x_2158); -x_2160 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2159); -x_2161 = l_Array_HasRepr___rarg___closed__1; -x_2162 = lean_string_append(x_2161, x_2160); -lean_dec(x_2160); -x_2163 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2163, 0, x_2162); -x_2164 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2164, 0, x_2163); -x_2165 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2165, 0, x_2155); -lean_ctor_set(x_2165, 1, x_2164); -x_2166 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2165, x_4, x_5, x_6, x_7, x_1924, x_9, x_2017); +x_2116 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_2116, 0, x_1978); +x_2117 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_2118 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2118, 0, x_2117); +lean_ctor_set(x_2118, 1, x_2116); +x_2119 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_2120 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2120, 0, x_2118); +lean_ctor_set(x_2120, 1, x_2119); +x_2121 = x_16; +x_2122 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_1982, x_2121); +x_2123 = x_2122; +x_2124 = l_Array_toList___rarg(x_2123); +lean_dec(x_2123); +x_2125 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2124); +x_2126 = l_Array_HasRepr___rarg___closed__1; +x_2127 = lean_string_append(x_2126, x_2125); +lean_dec(x_2125); +x_2128 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2128, 0, x_2127); +x_2129 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2129, 0, x_2128); +x_2130 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2130, 0, x_2120); +lean_ctor_set(x_2130, 1, x_2129); +x_2131 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2130, x_4, x_5, x_6, x_7, x_1894, x_9, x_1987); lean_dec(x_9); -lean_dec(x_1924); +lean_dec(x_1894); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_2166; +return x_2131; } else { -lean_object* x_2167; uint8_t x_2168; -lean_dec(x_2008); +lean_object* x_2132; uint8_t x_2133; +lean_dec(x_1978); lean_dec(x_16); -x_2167 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_2168 = l_Lean_checkTraceOption(x_1917, x_2167); -lean_dec(x_1917); -if (x_2168 == 0) +x_2132 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_2133 = l_Lean_checkTraceOption(x_1887, x_2132); +lean_dec(x_1887); +if (x_2133 == 0) { -lean_object* x_2169; +lean_object* x_2134; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_2169 = x_2017; -goto block_2180; +x_2134 = x_1987; +goto block_2145; } else { -lean_object* x_2181; lean_object* x_2182; -x_2181 = lean_ctor_get(x_13, 0); -lean_inc(x_2181); +lean_object* x_2146; lean_object* x_2147; +x_2146 = lean_ctor_get(x_13, 0); +lean_inc(x_2146); lean_dec(x_13); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_2182 = l_Lean_Elab_Term_isDefEq(x_2181, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_2017); -if (lean_obj_tag(x_2182) == 0) +x_2147 = l_Lean_Elab_Term_isDefEq(x_2146, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_1987); +if (lean_obj_tag(x_2147) == 0) { -lean_object* x_2183; -x_2183 = lean_ctor_get(x_2182, 1); -lean_inc(x_2183); -lean_dec(x_2182); -x_2169 = x_2183; -goto block_2180; +lean_object* x_2148; +x_2148 = lean_ctor_get(x_2147, 1); +lean_inc(x_2148); +lean_dec(x_2147); +x_2134 = x_2148; +goto block_2145; } else { -lean_object* x_2184; lean_object* x_2185; lean_object* x_2186; lean_object* x_2187; -lean_dec(x_1924); +lean_object* x_2149; lean_object* x_2150; lean_object* x_2151; lean_object* x_2152; +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_17); lean_dec(x_11); @@ -15528,227 +15128,227 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2184 = lean_ctor_get(x_2182, 0); -lean_inc(x_2184); -x_2185 = lean_ctor_get(x_2182, 1); -lean_inc(x_2185); -if (lean_is_exclusive(x_2182)) { - lean_ctor_release(x_2182, 0); - lean_ctor_release(x_2182, 1); - x_2186 = x_2182; +x_2149 = lean_ctor_get(x_2147, 0); +lean_inc(x_2149); +x_2150 = lean_ctor_get(x_2147, 1); +lean_inc(x_2150); +if (lean_is_exclusive(x_2147)) { + lean_ctor_release(x_2147, 0); + lean_ctor_release(x_2147, 1); + x_2151 = x_2147; } else { - lean_dec_ref(x_2182); - x_2186 = lean_box(0); + lean_dec_ref(x_2147); + x_2151 = lean_box(0); } -if (lean_is_scalar(x_2186)) { - x_2187 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2151)) { + x_2152 = lean_alloc_ctor(1, 2, 0); } else { - x_2187 = x_2186; + x_2152 = x_2151; } -lean_ctor_set(x_2187, 0, x_2184); -lean_ctor_set(x_2187, 1, x_2185); -return x_2187; +lean_ctor_set(x_2152, 0, x_2149); +lean_ctor_set(x_2152, 1, x_2150); +return x_2152; } } -block_2180: +block_2145: +{ +lean_object* x_2135; +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2135 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2134); +lean_dec(x_17); +if (lean_obj_tag(x_2135) == 0) +{ +lean_object* x_2136; lean_object* x_2137; lean_object* x_2138; lean_object* x_2139; lean_object* x_2140; +x_2136 = lean_ctor_get(x_2135, 1); +lean_inc(x_2136); +lean_dec(x_2135); +lean_inc(x_2); +x_2137 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__7(x_2, x_11, x_19, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2136); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_19); +x_2138 = lean_ctor_get(x_2137, 1); +lean_inc(x_2138); +if (lean_is_exclusive(x_2137)) { + lean_ctor_release(x_2137, 0); + lean_ctor_release(x_2137, 1); + x_2139 = x_2137; +} else { + lean_dec_ref(x_2137); + x_2139 = lean_box(0); +} +if (lean_is_scalar(x_2139)) { + x_2140 = lean_alloc_ctor(0, 2, 0); +} else { + x_2140 = x_2139; +} +lean_ctor_set(x_2140, 0, x_2); +lean_ctor_set(x_2140, 1, x_2138); +return x_2140; +} +else +{ +lean_object* x_2141; lean_object* x_2142; lean_object* x_2143; lean_object* x_2144; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2141 = lean_ctor_get(x_2135, 0); +lean_inc(x_2141); +x_2142 = lean_ctor_get(x_2135, 1); +lean_inc(x_2142); +if (lean_is_exclusive(x_2135)) { + lean_ctor_release(x_2135, 0); + lean_ctor_release(x_2135, 1); + x_2143 = x_2135; +} else { + lean_dec_ref(x_2135); + x_2143 = lean_box(0); +} +if (lean_is_scalar(x_2143)) { + x_2144 = lean_alloc_ctor(1, 2, 0); +} else { + x_2144 = x_2143; +} +lean_ctor_set(x_2144, 0, x_2141); +lean_ctor_set(x_2144, 1, x_2142); +return x_2144; +} +} +} +else +{ +lean_object* x_2153; lean_object* x_2154; lean_object* x_2155; lean_object* x_2156; +lean_inc(x_2); +x_2153 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2153, 0, x_2); +x_2154 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_2132, x_2153, x_4, x_5, x_6, x_7, x_1894, x_9, x_1987); +x_2155 = lean_ctor_get(x_2154, 1); +lean_inc(x_2155); +lean_dec(x_2154); +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_2156 = x_2155; +goto block_2167; +} +else +{ +lean_object* x_2168; lean_object* x_2169; +x_2168 = lean_ctor_get(x_13, 0); +lean_inc(x_2168); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2169 = l_Lean_Elab_Term_isDefEq(x_2168, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_2155); +if (lean_obj_tag(x_2169) == 0) { lean_object* x_2170; -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_2170 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2169); -lean_dec(x_17); -if (lean_obj_tag(x_2170) == 0) +x_2170 = lean_ctor_get(x_2169, 1); +lean_inc(x_2170); +lean_dec(x_2169); +x_2156 = x_2170; +goto block_2167; +} +else { -lean_object* x_2171; lean_object* x_2172; lean_object* x_2173; lean_object* x_2174; lean_object* x_2175; -x_2171 = lean_ctor_get(x_2170, 1); +lean_object* x_2171; lean_object* x_2172; lean_object* x_2173; lean_object* x_2174; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2171 = lean_ctor_get(x_2169, 0); lean_inc(x_2171); -lean_dec(x_2170); -lean_inc(x_2); -x_2172 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__7(x_2, x_11, x_19, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2171); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_19); -x_2173 = lean_ctor_get(x_2172, 1); -lean_inc(x_2173); -if (lean_is_exclusive(x_2172)) { - lean_ctor_release(x_2172, 0); - lean_ctor_release(x_2172, 1); - x_2174 = x_2172; +x_2172 = lean_ctor_get(x_2169, 1); +lean_inc(x_2172); +if (lean_is_exclusive(x_2169)) { + lean_ctor_release(x_2169, 0); + lean_ctor_release(x_2169, 1); + x_2173 = x_2169; } else { - lean_dec_ref(x_2172); - x_2174 = lean_box(0); + lean_dec_ref(x_2169); + x_2173 = lean_box(0); } -if (lean_is_scalar(x_2174)) { - x_2175 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_2173)) { + x_2174 = lean_alloc_ctor(1, 2, 0); } else { - x_2175 = x_2174; + x_2174 = x_2173; } -lean_ctor_set(x_2175, 0, x_2); -lean_ctor_set(x_2175, 1, x_2173); -return x_2175; +lean_ctor_set(x_2174, 0, x_2171); +lean_ctor_set(x_2174, 1, x_2172); +return x_2174; } -else +} +block_2167: { -lean_object* x_2176; lean_object* x_2177; lean_object* x_2178; lean_object* x_2179; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2176 = lean_ctor_get(x_2170, 0); -lean_inc(x_2176); -x_2177 = lean_ctor_get(x_2170, 1); -lean_inc(x_2177); -if (lean_is_exclusive(x_2170)) { - lean_ctor_release(x_2170, 0); - lean_ctor_release(x_2170, 1); - x_2178 = x_2170; -} else { - lean_dec_ref(x_2170); - x_2178 = lean_box(0); -} -if (lean_is_scalar(x_2178)) { - x_2179 = lean_alloc_ctor(1, 2, 0); -} else { - x_2179 = x_2178; -} -lean_ctor_set(x_2179, 0, x_2176); -lean_ctor_set(x_2179, 1, x_2177); -return x_2179; -} -} -} -else -{ -lean_object* x_2188; lean_object* x_2189; lean_object* x_2190; lean_object* x_2191; -lean_inc(x_2); -x_2188 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2188, 0, x_2); -x_2189 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_2167, x_2188, x_4, x_5, x_6, x_7, x_1924, x_9, x_2017); -x_2190 = lean_ctor_get(x_2189, 1); -lean_inc(x_2190); -lean_dec(x_2189); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_2191 = x_2190; -goto block_2202; -} -else -{ -lean_object* x_2203; lean_object* x_2204; -x_2203 = lean_ctor_get(x_13, 0); -lean_inc(x_2203); -lean_dec(x_13); +lean_object* x_2157; lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_2204 = l_Lean_Elab_Term_isDefEq(x_2203, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_2190); -if (lean_obj_tag(x_2204) == 0) -{ -lean_object* x_2205; -x_2205 = lean_ctor_get(x_2204, 1); -lean_inc(x_2205); -lean_dec(x_2204); -x_2191 = x_2205; -goto block_2202; -} -else -{ -lean_object* x_2206; lean_object* x_2207; lean_object* x_2208; lean_object* x_2209; -lean_dec(x_1924); -lean_dec(x_19); +x_2157 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2156); lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2206 = lean_ctor_get(x_2204, 0); -lean_inc(x_2206); -x_2207 = lean_ctor_get(x_2204, 1); -lean_inc(x_2207); -if (lean_is_exclusive(x_2204)) { - lean_ctor_release(x_2204, 0); - lean_ctor_release(x_2204, 1); - x_2208 = x_2204; -} else { - lean_dec_ref(x_2204); - x_2208 = lean_box(0); -} -if (lean_is_scalar(x_2208)) { - x_2209 = lean_alloc_ctor(1, 2, 0); -} else { - x_2209 = x_2208; -} -lean_ctor_set(x_2209, 0, x_2206); -lean_ctor_set(x_2209, 1, x_2207); -return x_2209; -} -} -block_2202: +if (lean_obj_tag(x_2157) == 0) { -lean_object* x_2192; -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_2192 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2191); -lean_dec(x_17); -if (lean_obj_tag(x_2192) == 0) -{ -lean_object* x_2193; lean_object* x_2194; lean_object* x_2195; lean_object* x_2196; lean_object* x_2197; -x_2193 = lean_ctor_get(x_2192, 1); -lean_inc(x_2193); -lean_dec(x_2192); +lean_object* x_2158; lean_object* x_2159; lean_object* x_2160; lean_object* x_2161; lean_object* x_2162; +x_2158 = lean_ctor_get(x_2157, 1); +lean_inc(x_2158); +lean_dec(x_2157); lean_inc(x_2); -x_2194 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__8(x_2, x_11, x_19, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2193); +x_2159 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__8(x_2, x_11, x_19, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2158); lean_dec(x_9); -lean_dec(x_1924); +lean_dec(x_1894); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); -x_2195 = lean_ctor_get(x_2194, 1); -lean_inc(x_2195); -if (lean_is_exclusive(x_2194)) { - lean_ctor_release(x_2194, 0); - lean_ctor_release(x_2194, 1); - x_2196 = x_2194; +x_2160 = lean_ctor_get(x_2159, 1); +lean_inc(x_2160); +if (lean_is_exclusive(x_2159)) { + lean_ctor_release(x_2159, 0); + lean_ctor_release(x_2159, 1); + x_2161 = x_2159; } else { - lean_dec_ref(x_2194); - x_2196 = lean_box(0); + lean_dec_ref(x_2159); + x_2161 = lean_box(0); } -if (lean_is_scalar(x_2196)) { - x_2197 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_2161)) { + x_2162 = lean_alloc_ctor(0, 2, 0); } else { - x_2197 = x_2196; + x_2162 = x_2161; } -lean_ctor_set(x_2197, 0, x_2); -lean_ctor_set(x_2197, 1, x_2195); -return x_2197; +lean_ctor_set(x_2162, 0, x_2); +lean_ctor_set(x_2162, 1, x_2160); +return x_2162; } else { -lean_object* x_2198; lean_object* x_2199; lean_object* x_2200; lean_object* x_2201; -lean_dec(x_1924); +lean_object* x_2163; lean_object* x_2164; lean_object* x_2165; lean_object* x_2166; +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_11); lean_dec(x_9); @@ -15757,26 +15357,26 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2198 = lean_ctor_get(x_2192, 0); -lean_inc(x_2198); -x_2199 = lean_ctor_get(x_2192, 1); -lean_inc(x_2199); -if (lean_is_exclusive(x_2192)) { - lean_ctor_release(x_2192, 0); - lean_ctor_release(x_2192, 1); - x_2200 = x_2192; +x_2163 = lean_ctor_get(x_2157, 0); +lean_inc(x_2163); +x_2164 = lean_ctor_get(x_2157, 1); +lean_inc(x_2164); +if (lean_is_exclusive(x_2157)) { + lean_ctor_release(x_2157, 0); + lean_ctor_release(x_2157, 1); + x_2165 = x_2157; } else { - lean_dec_ref(x_2192); - x_2200 = lean_box(0); + lean_dec_ref(x_2157); + x_2165 = lean_box(0); } -if (lean_is_scalar(x_2200)) { - x_2201 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2165)) { + x_2166 = lean_alloc_ctor(1, 2, 0); } else { - x_2201 = x_2200; + x_2166 = x_2165; } -lean_ctor_set(x_2201, 0, x_2198); -lean_ctor_set(x_2201, 1, x_2199); -return x_2201; +lean_ctor_set(x_2166, 0, x_2163); +lean_ctor_set(x_2166, 1, x_2164); +return x_2166; } } } @@ -15785,59 +15385,59 @@ return x_2201; } else { -lean_object* x_2210; lean_object* x_2211; -lean_dec(x_2019); -lean_dec(x_2008); -lean_dec(x_1917); +lean_object* x_2175; lean_object* x_2176; +lean_dec(x_1989); +lean_dec(x_1978); +lean_dec(x_1887); lean_dec(x_3); -x_2210 = lean_array_fget(x_12, x_15); +x_2175 = lean_array_fget(x_12, x_15); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_2211 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2210, x_2009, x_4, x_5, x_6, x_7, x_1924, x_9, x_2017); -if (lean_obj_tag(x_2211) == 0) +x_2176 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2175, x_1979, x_4, x_5, x_6, x_7, x_1894, x_9, x_1987); +if (lean_obj_tag(x_2176) == 0) { -lean_object* x_2212; lean_object* x_2213; lean_object* x_2214; lean_object* x_2215; lean_object* x_2216; lean_object* x_2217; lean_object* x_2218; -x_2212 = lean_ctor_get(x_2211, 0); -lean_inc(x_2212); -x_2213 = lean_ctor_get(x_2211, 1); -lean_inc(x_2213); -lean_dec(x_2211); -x_2214 = lean_unsigned_to_nat(1u); -x_2215 = lean_nat_add(x_15, x_2214); +lean_object* x_2177; lean_object* x_2178; lean_object* x_2179; lean_object* x_2180; lean_object* x_2181; lean_object* x_2182; lean_object* x_2183; +x_2177 = lean_ctor_get(x_2176, 0); +lean_inc(x_2177); +x_2178 = lean_ctor_get(x_2176, 1); +lean_inc(x_2178); +lean_dec(x_2176); +x_2179 = lean_unsigned_to_nat(1u); +x_2180 = lean_nat_add(x_15, x_2179); lean_dec(x_15); -x_2216 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_2216, 0, x_11); -lean_ctor_set(x_2216, 1, x_12); -lean_ctor_set(x_2216, 2, x_13); -lean_ctor_set(x_2216, 3, x_2215); -lean_ctor_set(x_2216, 4, x_16); -lean_ctor_set(x_2216, 5, x_17); -lean_ctor_set(x_2216, 6, x_18); -lean_ctor_set(x_2216, 7, x_19); -lean_ctor_set_uint8(x_2216, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_2216, sizeof(void*)*8 + 1, x_2018); -lean_inc(x_2212); -x_2217 = l_Lean_mkApp(x_2, x_2212); -x_2218 = lean_expr_instantiate1(x_2010, x_2212); -lean_dec(x_2212); -lean_dec(x_2010); -x_1 = x_2216; -x_2 = x_2217; -x_3 = x_2218; -x_8 = x_1924; -x_10 = x_2213; +x_2181 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_2181, 0, x_11); +lean_ctor_set(x_2181, 1, x_12); +lean_ctor_set(x_2181, 2, x_13); +lean_ctor_set(x_2181, 3, x_2180); +lean_ctor_set(x_2181, 4, x_16); +lean_ctor_set(x_2181, 5, x_17); +lean_ctor_set(x_2181, 6, x_18); +lean_ctor_set(x_2181, 7, x_19); +lean_ctor_set_uint8(x_2181, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_2181, sizeof(void*)*8 + 1, x_1988); +lean_inc(x_2177); +x_2182 = l_Lean_mkApp(x_2, x_2177); +x_2183 = lean_expr_instantiate1(x_1980, x_2177); +lean_dec(x_2177); +lean_dec(x_1980); +x_1 = x_2181; +x_2 = x_2182; +x_3 = x_2183; +x_8 = x_1894; +x_10 = x_2178; goto _start; } else { -lean_object* x_2220; lean_object* x_2221; lean_object* x_2222; lean_object* x_2223; -lean_dec(x_2010); -lean_dec(x_1924); +lean_object* x_2185; lean_object* x_2186; lean_object* x_2187; lean_object* x_2188; +lean_dec(x_1980); +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -15852,38 +15452,38 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2220 = lean_ctor_get(x_2211, 0); -lean_inc(x_2220); -x_2221 = lean_ctor_get(x_2211, 1); -lean_inc(x_2221); -if (lean_is_exclusive(x_2211)) { - lean_ctor_release(x_2211, 0); - lean_ctor_release(x_2211, 1); - x_2222 = x_2211; +x_2185 = lean_ctor_get(x_2176, 0); +lean_inc(x_2185); +x_2186 = lean_ctor_get(x_2176, 1); +lean_inc(x_2186); +if (lean_is_exclusive(x_2176)) { + lean_ctor_release(x_2176, 0); + lean_ctor_release(x_2176, 1); + x_2187 = x_2176; } else { - lean_dec_ref(x_2211); - x_2222 = lean_box(0); + lean_dec_ref(x_2176); + x_2187 = lean_box(0); } -if (lean_is_scalar(x_2222)) { - x_2223 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2187)) { + x_2188 = lean_alloc_ctor(1, 2, 0); } else { - x_2223 = x_2222; + x_2188 = x_2187; } -lean_ctor_set(x_2223, 0, x_2220); -lean_ctor_set(x_2223, 1, x_2221); -return x_2223; +lean_ctor_set(x_2188, 0, x_2185); +lean_ctor_set(x_2188, 1, x_2186); +return x_2188; } } } else { -lean_object* x_2224; lean_object* x_2225; lean_object* x_2226; lean_object* x_2227; -lean_dec(x_2016); -lean_dec(x_2010); -lean_dec(x_2009); -lean_dec(x_2008); -lean_dec(x_1924); -lean_dec(x_1917); +lean_object* x_2189; lean_object* x_2190; lean_object* x_2191; lean_object* x_2192; +lean_dec(x_1986); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_1978); +lean_dec(x_1894); +lean_dec(x_1887); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -15899,36 +15499,36 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_2224 = lean_ctor_get(x_2015, 0); -lean_inc(x_2224); -x_2225 = lean_ctor_get(x_2015, 1); -lean_inc(x_2225); -if (lean_is_exclusive(x_2015)) { - lean_ctor_release(x_2015, 0); - lean_ctor_release(x_2015, 1); - x_2226 = x_2015; +x_2189 = lean_ctor_get(x_1985, 0); +lean_inc(x_2189); +x_2190 = lean_ctor_get(x_1985, 1); +lean_inc(x_2190); +if (lean_is_exclusive(x_1985)) { + lean_ctor_release(x_1985, 0); + lean_ctor_release(x_1985, 1); + x_2191 = x_1985; } else { - lean_dec_ref(x_2015); - x_2226 = lean_box(0); + lean_dec_ref(x_1985); + x_2191 = lean_box(0); } -if (lean_is_scalar(x_2226)) { - x_2227 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2191)) { + x_2192 = lean_alloc_ctor(1, 2, 0); } else { - x_2227 = x_2226; + x_2192 = x_2191; } -lean_ctor_set(x_2227, 0, x_2224); -lean_ctor_set(x_2227, 1, x_2225); -return x_2227; +lean_ctor_set(x_2192, 0, x_2189); +lean_ctor_set(x_2192, 1, x_2190); +return x_2192; } } case 1: { if (x_14 == 0) { -lean_object* x_2228; lean_object* x_2229; uint8_t x_2230; lean_object* x_2231; lean_object* x_2232; lean_object* x_2233; lean_object* x_2234; lean_object* x_2235; lean_object* x_2236; lean_object* x_2244; -lean_dec(x_2008); -lean_dec(x_1926); -lean_dec(x_1917); +lean_object* x_2193; lean_object* x_2194; uint8_t x_2195; lean_object* x_2196; lean_object* x_2197; lean_object* x_2198; lean_object* x_2199; lean_object* x_2200; lean_object* x_2201; lean_object* x_2209; +lean_dec(x_1978); +lean_dec(x_1896); +lean_dec(x_1887); lean_dec(x_3); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); @@ -15939,67 +15539,67 @@ if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 5); lean_ctor_release(x_1, 6); lean_ctor_release(x_1, 7); - x_2228 = x_1; + x_2193 = x_1; } else { lean_dec_ref(x_1); - x_2228 = lean_box(0); + x_2193 = lean_box(0); } -x_2229 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2229, 0, x_2009); -x_2230 = 0; -x_2231 = lean_box(0); +x_2194 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2194, 0, x_1979); +x_2195 = 0; +x_2196 = lean_box(0); lean_inc(x_6); lean_inc(x_4); -x_2232 = l_Lean_Meta_mkFreshExprMVar___at_Lean_Elab_Term_tryCoe___spec__2(x_2229, x_2230, x_2231, x_4, x_5, x_6, x_7, x_1924, x_9, x_1927); -x_2233 = lean_ctor_get(x_2232, 0); -lean_inc(x_2233); -x_2234 = lean_ctor_get(x_2232, 1); -lean_inc(x_2234); -lean_dec(x_2232); +x_2197 = l_Lean_Meta_mkFreshExprMVar___at_Lean_Elab_Term_tryCoe___spec__2(x_2194, x_2195, x_2196, x_4, x_5, x_6, x_7, x_1894, x_9, x_1897); +x_2198 = lean_ctor_get(x_2197, 0); +lean_inc(x_2198); +x_2199 = lean_ctor_get(x_2197, 1); +lean_inc(x_2199); +lean_dec(x_2197); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -lean_inc(x_2233); -x_2244 = l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__9(x_2233, x_4, x_5, x_6, x_7, x_1924, x_9, x_2234); -if (lean_obj_tag(x_2244) == 0) +lean_inc(x_2198); +x_2209 = l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__9(x_2198, x_4, x_5, x_6, x_7, x_1894, x_9, x_2199); +if (lean_obj_tag(x_2209) == 0) { -lean_object* x_2245; uint8_t x_2246; -x_2245 = lean_ctor_get(x_2244, 0); -lean_inc(x_2245); -x_2246 = lean_unbox(x_2245); -lean_dec(x_2245); -if (x_2246 == 0) +lean_object* x_2210; uint8_t x_2211; +x_2210 = lean_ctor_get(x_2209, 0); +lean_inc(x_2210); +x_2211 = lean_unbox(x_2210); +lean_dec(x_2210); +if (x_2211 == 0) { -lean_object* x_2247; -x_2247 = lean_ctor_get(x_2244, 1); -lean_inc(x_2247); -lean_dec(x_2244); -x_2235 = x_18; -x_2236 = x_2247; -goto block_2243; +lean_object* x_2212; +x_2212 = lean_ctor_get(x_2209, 1); +lean_inc(x_2212); +lean_dec(x_2209); +x_2200 = x_18; +x_2201 = x_2212; +goto block_2208; } else { -lean_object* x_2248; lean_object* x_2249; lean_object* x_2250; -x_2248 = lean_ctor_get(x_2244, 1); -lean_inc(x_2248); -lean_dec(x_2244); -x_2249 = l_Lean_Expr_mvarId_x21(x_2233); -x_2250 = lean_array_push(x_18, x_2249); -x_2235 = x_2250; -x_2236 = x_2248; -goto block_2243; +lean_object* x_2213; lean_object* x_2214; lean_object* x_2215; +x_2213 = lean_ctor_get(x_2209, 1); +lean_inc(x_2213); +lean_dec(x_2209); +x_2214 = l_Lean_Expr_mvarId_x21(x_2198); +x_2215 = lean_array_push(x_18, x_2214); +x_2200 = x_2215; +x_2201 = x_2213; +goto block_2208; } } else { -lean_object* x_2251; lean_object* x_2252; lean_object* x_2253; lean_object* x_2254; -lean_dec(x_2233); -lean_dec(x_2228); -lean_dec(x_2010); -lean_dec(x_1924); +lean_object* x_2216; lean_object* x_2217; lean_object* x_2218; lean_object* x_2219; +lean_dec(x_2198); +lean_dec(x_2193); +lean_dec(x_1980); +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -16014,16 +15614,286 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2251 = lean_ctor_get(x_2244, 0); -lean_inc(x_2251); -x_2252 = lean_ctor_get(x_2244, 1); -lean_inc(x_2252); -if (lean_is_exclusive(x_2244)) { - lean_ctor_release(x_2244, 0); - lean_ctor_release(x_2244, 1); - x_2253 = x_2244; +x_2216 = lean_ctor_get(x_2209, 0); +lean_inc(x_2216); +x_2217 = lean_ctor_get(x_2209, 1); +lean_inc(x_2217); +if (lean_is_exclusive(x_2209)) { + lean_ctor_release(x_2209, 0); + lean_ctor_release(x_2209, 1); + x_2218 = x_2209; } else { - lean_dec_ref(x_2244); + lean_dec_ref(x_2209); + x_2218 = lean_box(0); +} +if (lean_is_scalar(x_2218)) { + x_2219 = lean_alloc_ctor(1, 2, 0); +} else { + x_2219 = x_2218; +} +lean_ctor_set(x_2219, 0, x_2216); +lean_ctor_set(x_2219, 1, x_2217); +return x_2219; +} +block_2208: +{ +lean_object* x_2202; lean_object* x_2203; lean_object* x_2204; lean_object* x_2205; lean_object* x_2206; +x_2202 = l_Lean_Expr_mvarId_x21(x_2198); +x_2203 = lean_array_push(x_19, x_2202); +if (lean_is_scalar(x_2193)) { + x_2204 = lean_alloc_ctor(0, 8, 2); +} else { + x_2204 = x_2193; +} +lean_ctor_set(x_2204, 0, x_11); +lean_ctor_set(x_2204, 1, x_12); +lean_ctor_set(x_2204, 2, x_13); +lean_ctor_set(x_2204, 3, x_15); +lean_ctor_set(x_2204, 4, x_16); +lean_ctor_set(x_2204, 5, x_17); +lean_ctor_set(x_2204, 6, x_2200); +lean_ctor_set(x_2204, 7, x_2203); +lean_ctor_set_uint8(x_2204, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_2204, sizeof(void*)*8 + 1, x_1886); +lean_inc(x_2198); +x_2205 = l_Lean_mkApp(x_2, x_2198); +x_2206 = lean_expr_instantiate1(x_1980, x_2198); +lean_dec(x_2198); +lean_dec(x_1980); +x_1 = x_2204; +x_2 = x_2205; +x_3 = x_2206; +x_8 = x_1894; +x_10 = x_2201; +goto _start; +} +} +else +{ +lean_object* x_2220; lean_object* x_2221; +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +lean_inc(x_1); +x_2220 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1896, x_4, x_5, x_6, x_7, x_1894, x_9, x_1897); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + lean_ctor_release(x_1, 2); + lean_ctor_release(x_1, 3); + lean_ctor_release(x_1, 4); + lean_ctor_release(x_1, 5); + lean_ctor_release(x_1, 6); + lean_ctor_release(x_1, 7); + x_2221 = x_1; +} else { + lean_dec_ref(x_1); + x_2221 = lean_box(0); +} +if (lean_obj_tag(x_2220) == 0) +{ +lean_object* x_2222; lean_object* x_2223; uint8_t x_2224; +x_2222 = lean_ctor_get(x_2220, 1); +lean_inc(x_2222); +lean_dec(x_2220); +x_2223 = lean_array_get_size(x_12); +x_2224 = lean_nat_dec_lt(x_15, x_2223); +lean_dec(x_2223); +if (x_2224 == 0) +{ +uint8_t x_2225; +lean_dec(x_2221); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_18); +lean_dec(x_15); +lean_dec(x_12); +x_2225 = l_Array_isEmpty___rarg(x_16); +if (x_2225 == 0) +{ +lean_object* x_2226; lean_object* x_2227; lean_object* x_2228; lean_object* x_2229; lean_object* x_2230; lean_object* x_2231; lean_object* x_2232; lean_object* x_2233; lean_object* x_2234; lean_object* x_2235; lean_object* x_2236; lean_object* x_2237; lean_object* x_2238; lean_object* x_2239; lean_object* x_2240; lean_object* x_2241; +lean_dec(x_1887); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_3); +lean_dec(x_2); +x_2226 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_2226, 0, x_1978); +x_2227 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_2228 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2228, 0, x_2227); +lean_ctor_set(x_2228, 1, x_2226); +x_2229 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_2230 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2230, 0, x_2228); +lean_ctor_set(x_2230, 1, x_2229); +x_2231 = x_16; +x_2232 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_1982, x_2231); +x_2233 = x_2232; +x_2234 = l_Array_toList___rarg(x_2233); +lean_dec(x_2233); +x_2235 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2234); +x_2236 = l_Array_HasRepr___rarg___closed__1; +x_2237 = lean_string_append(x_2236, x_2235); +lean_dec(x_2235); +x_2238 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2238, 0, x_2237); +x_2239 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2239, 0, x_2238); +x_2240 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2240, 0, x_2230); +lean_ctor_set(x_2240, 1, x_2239); +x_2241 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2240, x_4, x_5, x_6, x_7, x_1894, x_9, x_2222); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_2241; +} +else +{ +lean_object* x_2242; uint8_t x_2243; +lean_dec(x_1978); +lean_dec(x_16); +x_2242 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_2243 = l_Lean_checkTraceOption(x_1887, x_2242); +lean_dec(x_1887); +if (x_2243 == 0) +{ +lean_object* x_2244; +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_2244 = x_2222; +goto block_2255; +} +else +{ +lean_object* x_2256; lean_object* x_2257; +x_2256 = lean_ctor_get(x_13, 0); +lean_inc(x_2256); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2257 = l_Lean_Elab_Term_isDefEq(x_2256, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_2222); +if (lean_obj_tag(x_2257) == 0) +{ +lean_object* x_2258; +x_2258 = lean_ctor_get(x_2257, 1); +lean_inc(x_2258); +lean_dec(x_2257); +x_2244 = x_2258; +goto block_2255; +} +else +{ +lean_object* x_2259; lean_object* x_2260; lean_object* x_2261; lean_object* x_2262; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2259 = lean_ctor_get(x_2257, 0); +lean_inc(x_2259); +x_2260 = lean_ctor_get(x_2257, 1); +lean_inc(x_2260); +if (lean_is_exclusive(x_2257)) { + lean_ctor_release(x_2257, 0); + lean_ctor_release(x_2257, 1); + x_2261 = x_2257; +} else { + lean_dec_ref(x_2257); + x_2261 = lean_box(0); +} +if (lean_is_scalar(x_2261)) { + x_2262 = lean_alloc_ctor(1, 2, 0); +} else { + x_2262 = x_2261; +} +lean_ctor_set(x_2262, 0, x_2259); +lean_ctor_set(x_2262, 1, x_2260); +return x_2262; +} +} +block_2255: +{ +lean_object* x_2245; +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2245 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2244); +lean_dec(x_17); +if (lean_obj_tag(x_2245) == 0) +{ +lean_object* x_2246; lean_object* x_2247; lean_object* x_2248; lean_object* x_2249; lean_object* x_2250; +x_2246 = lean_ctor_get(x_2245, 1); +lean_inc(x_2246); +lean_dec(x_2245); +lean_inc(x_2); +x_2247 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__10(x_2, x_11, x_19, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2246); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_19); +x_2248 = lean_ctor_get(x_2247, 1); +lean_inc(x_2248); +if (lean_is_exclusive(x_2247)) { + lean_ctor_release(x_2247, 0); + lean_ctor_release(x_2247, 1); + x_2249 = x_2247; +} else { + lean_dec_ref(x_2247); + x_2249 = lean_box(0); +} +if (lean_is_scalar(x_2249)) { + x_2250 = lean_alloc_ctor(0, 2, 0); +} else { + x_2250 = x_2249; +} +lean_ctor_set(x_2250, 0, x_2); +lean_ctor_set(x_2250, 1, x_2248); +return x_2250; +} +else +{ +lean_object* x_2251; lean_object* x_2252; lean_object* x_2253; lean_object* x_2254; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2251 = lean_ctor_get(x_2245, 0); +lean_inc(x_2251); +x_2252 = lean_ctor_get(x_2245, 1); +lean_inc(x_2252); +if (lean_is_exclusive(x_2245)) { + lean_ctor_release(x_2245, 0); + lean_ctor_release(x_2245, 1); + x_2253 = x_2245; +} else { + lean_dec_ref(x_2245); x_2253 = lean_box(0); } if (lean_is_scalar(x_2253)) { @@ -16035,398 +15905,128 @@ lean_ctor_set(x_2254, 0, x_2251); lean_ctor_set(x_2254, 1, x_2252); return x_2254; } -block_2243: -{ -lean_object* x_2237; lean_object* x_2238; lean_object* x_2239; lean_object* x_2240; lean_object* x_2241; -x_2237 = l_Lean_Expr_mvarId_x21(x_2233); -x_2238 = lean_array_push(x_19, x_2237); -if (lean_is_scalar(x_2228)) { - x_2239 = lean_alloc_ctor(0, 8, 2); -} else { - x_2239 = x_2228; -} -lean_ctor_set(x_2239, 0, x_11); -lean_ctor_set(x_2239, 1, x_12); -lean_ctor_set(x_2239, 2, x_13); -lean_ctor_set(x_2239, 3, x_15); -lean_ctor_set(x_2239, 4, x_16); -lean_ctor_set(x_2239, 5, x_17); -lean_ctor_set(x_2239, 6, x_2235); -lean_ctor_set(x_2239, 7, x_2238); -lean_ctor_set_uint8(x_2239, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_2239, sizeof(void*)*8 + 1, x_1916); -lean_inc(x_2233); -x_2240 = l_Lean_mkApp(x_2, x_2233); -x_2241 = lean_expr_instantiate1(x_2010, x_2233); -lean_dec(x_2233); -lean_dec(x_2010); -x_1 = x_2239; -x_2 = x_2240; -x_3 = x_2241; -x_8 = x_1924; -x_10 = x_2236; -goto _start; } } else { -lean_object* x_2255; lean_object* x_2256; -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -lean_inc(x_1); -x_2255 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1926, x_4, x_5, x_6, x_7, x_1924, x_9, x_1927); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - lean_ctor_release(x_1, 2); - lean_ctor_release(x_1, 3); - lean_ctor_release(x_1, 4); - lean_ctor_release(x_1, 5); - lean_ctor_release(x_1, 6); - lean_ctor_release(x_1, 7); - x_2256 = x_1; -} else { - lean_dec_ref(x_1); - x_2256 = lean_box(0); -} -if (lean_obj_tag(x_2255) == 0) -{ -lean_object* x_2257; lean_object* x_2258; uint8_t x_2259; -x_2257 = lean_ctor_get(x_2255, 1); -lean_inc(x_2257); -lean_dec(x_2255); -x_2258 = lean_array_get_size(x_12); -x_2259 = lean_nat_dec_lt(x_15, x_2258); -lean_dec(x_2258); -if (x_2259 == 0) -{ -uint8_t x_2260; -lean_dec(x_2256); -lean_dec(x_2010); -lean_dec(x_2009); -lean_dec(x_18); -lean_dec(x_15); -lean_dec(x_12); -x_2260 = l_Array_isEmpty___rarg(x_16); -if (x_2260 == 0) -{ -lean_object* x_2261; lean_object* x_2262; lean_object* x_2263; lean_object* x_2264; lean_object* x_2265; lean_object* x_2266; lean_object* x_2267; lean_object* x_2268; lean_object* x_2269; lean_object* x_2270; lean_object* x_2271; lean_object* x_2272; lean_object* x_2273; lean_object* x_2274; lean_object* x_2275; lean_object* x_2276; -lean_dec(x_1917); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_3); -lean_dec(x_2); -x_2261 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_2261, 0, x_2008); -x_2262 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_2263 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2263, 0, x_2262); -lean_ctor_set(x_2263, 1, x_2261); -x_2264 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_2265 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2265, 0, x_2263); -lean_ctor_set(x_2265, 1, x_2264); -x_2266 = x_16; -x_2267 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_2012, x_2266); -x_2268 = x_2267; -x_2269 = l_Array_toList___rarg(x_2268); -lean_dec(x_2268); -x_2270 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2269); -x_2271 = l_Array_HasRepr___rarg___closed__1; -x_2272 = lean_string_append(x_2271, x_2270); -lean_dec(x_2270); -x_2273 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2273, 0, x_2272); -x_2274 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2274, 0, x_2273); -x_2275 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2275, 0, x_2265); -lean_ctor_set(x_2275, 1, x_2274); -x_2276 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2275, x_4, x_5, x_6, x_7, x_1924, x_9, x_2257); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_2276; -} -else -{ -lean_object* x_2277; uint8_t x_2278; -lean_dec(x_2008); -lean_dec(x_16); -x_2277 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_2278 = l_Lean_checkTraceOption(x_1917, x_2277); -lean_dec(x_1917); -if (x_2278 == 0) -{ -lean_object* x_2279; +lean_object* x_2263; lean_object* x_2264; lean_object* x_2265; lean_object* x_2266; +lean_inc(x_2); +x_2263 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2263, 0, x_2); +x_2264 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_2242, x_2263, x_4, x_5, x_6, x_7, x_1894, x_9, x_2222); +x_2265 = lean_ctor_get(x_2264, 1); +lean_inc(x_2265); +lean_dec(x_2264); if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_2279 = x_2257; -goto block_2290; +x_2266 = x_2265; +goto block_2277; } else { -lean_object* x_2291; lean_object* x_2292; -x_2291 = lean_ctor_get(x_13, 0); -lean_inc(x_2291); +lean_object* x_2278; lean_object* x_2279; +x_2278 = lean_ctor_get(x_13, 0); +lean_inc(x_2278); lean_dec(x_13); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_2292 = l_Lean_Elab_Term_isDefEq(x_2291, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_2257); -if (lean_obj_tag(x_2292) == 0) -{ -lean_object* x_2293; -x_2293 = lean_ctor_get(x_2292, 1); -lean_inc(x_2293); -lean_dec(x_2292); -x_2279 = x_2293; -goto block_2290; -} -else -{ -lean_object* x_2294; lean_object* x_2295; lean_object* x_2296; lean_object* x_2297; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2294 = lean_ctor_get(x_2292, 0); -lean_inc(x_2294); -x_2295 = lean_ctor_get(x_2292, 1); -lean_inc(x_2295); -if (lean_is_exclusive(x_2292)) { - lean_ctor_release(x_2292, 0); - lean_ctor_release(x_2292, 1); - x_2296 = x_2292; -} else { - lean_dec_ref(x_2292); - x_2296 = lean_box(0); -} -if (lean_is_scalar(x_2296)) { - x_2297 = lean_alloc_ctor(1, 2, 0); -} else { - x_2297 = x_2296; -} -lean_ctor_set(x_2297, 0, x_2294); -lean_ctor_set(x_2297, 1, x_2295); -return x_2297; -} -} -block_2290: +x_2279 = l_Lean_Elab_Term_isDefEq(x_2278, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_2265); +if (lean_obj_tag(x_2279) == 0) { lean_object* x_2280; -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_2280 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2279); -lean_dec(x_17); -if (lean_obj_tag(x_2280) == 0) +x_2280 = lean_ctor_get(x_2279, 1); +lean_inc(x_2280); +lean_dec(x_2279); +x_2266 = x_2280; +goto block_2277; +} +else { -lean_object* x_2281; lean_object* x_2282; lean_object* x_2283; lean_object* x_2284; lean_object* x_2285; -x_2281 = lean_ctor_get(x_2280, 1); +lean_object* x_2281; lean_object* x_2282; lean_object* x_2283; lean_object* x_2284; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2281 = lean_ctor_get(x_2279, 0); lean_inc(x_2281); -lean_dec(x_2280); -lean_inc(x_2); -x_2282 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__10(x_2, x_11, x_19, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2281); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_19); -x_2283 = lean_ctor_get(x_2282, 1); -lean_inc(x_2283); -if (lean_is_exclusive(x_2282)) { - lean_ctor_release(x_2282, 0); - lean_ctor_release(x_2282, 1); - x_2284 = x_2282; +x_2282 = lean_ctor_get(x_2279, 1); +lean_inc(x_2282); +if (lean_is_exclusive(x_2279)) { + lean_ctor_release(x_2279, 0); + lean_ctor_release(x_2279, 1); + x_2283 = x_2279; } else { - lean_dec_ref(x_2282); - x_2284 = lean_box(0); + lean_dec_ref(x_2279); + x_2283 = lean_box(0); } -if (lean_is_scalar(x_2284)) { - x_2285 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_2283)) { + x_2284 = lean_alloc_ctor(1, 2, 0); } else { - x_2285 = x_2284; + x_2284 = x_2283; } -lean_ctor_set(x_2285, 0, x_2); -lean_ctor_set(x_2285, 1, x_2283); -return x_2285; +lean_ctor_set(x_2284, 0, x_2281); +lean_ctor_set(x_2284, 1, x_2282); +return x_2284; } -else +} +block_2277: { -lean_object* x_2286; lean_object* x_2287; lean_object* x_2288; lean_object* x_2289; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2286 = lean_ctor_get(x_2280, 0); -lean_inc(x_2286); -x_2287 = lean_ctor_get(x_2280, 1); -lean_inc(x_2287); -if (lean_is_exclusive(x_2280)) { - lean_ctor_release(x_2280, 0); - lean_ctor_release(x_2280, 1); - x_2288 = x_2280; -} else { - lean_dec_ref(x_2280); - x_2288 = lean_box(0); -} -if (lean_is_scalar(x_2288)) { - x_2289 = lean_alloc_ctor(1, 2, 0); -} else { - x_2289 = x_2288; -} -lean_ctor_set(x_2289, 0, x_2286); -lean_ctor_set(x_2289, 1, x_2287); -return x_2289; -} -} -} -else -{ -lean_object* x_2298; lean_object* x_2299; lean_object* x_2300; lean_object* x_2301; -lean_inc(x_2); -x_2298 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2298, 0, x_2); -x_2299 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_2277, x_2298, x_4, x_5, x_6, x_7, x_1924, x_9, x_2257); -x_2300 = lean_ctor_get(x_2299, 1); -lean_inc(x_2300); -lean_dec(x_2299); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_2301 = x_2300; -goto block_2312; -} -else -{ -lean_object* x_2313; lean_object* x_2314; -x_2313 = lean_ctor_get(x_13, 0); -lean_inc(x_2313); -lean_dec(x_13); +lean_object* x_2267; lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_2314 = l_Lean_Elab_Term_isDefEq(x_2313, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_2300); -if (lean_obj_tag(x_2314) == 0) -{ -lean_object* x_2315; -x_2315 = lean_ctor_get(x_2314, 1); -lean_inc(x_2315); -lean_dec(x_2314); -x_2301 = x_2315; -goto block_2312; -} -else -{ -lean_object* x_2316; lean_object* x_2317; lean_object* x_2318; lean_object* x_2319; -lean_dec(x_1924); -lean_dec(x_19); +x_2267 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2266); lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2316 = lean_ctor_get(x_2314, 0); -lean_inc(x_2316); -x_2317 = lean_ctor_get(x_2314, 1); -lean_inc(x_2317); -if (lean_is_exclusive(x_2314)) { - lean_ctor_release(x_2314, 0); - lean_ctor_release(x_2314, 1); - x_2318 = x_2314; -} else { - lean_dec_ref(x_2314); - x_2318 = lean_box(0); -} -if (lean_is_scalar(x_2318)) { - x_2319 = lean_alloc_ctor(1, 2, 0); -} else { - x_2319 = x_2318; -} -lean_ctor_set(x_2319, 0, x_2316); -lean_ctor_set(x_2319, 1, x_2317); -return x_2319; -} -} -block_2312: +if (lean_obj_tag(x_2267) == 0) { -lean_object* x_2302; -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_2302 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2301); -lean_dec(x_17); -if (lean_obj_tag(x_2302) == 0) -{ -lean_object* x_2303; lean_object* x_2304; lean_object* x_2305; lean_object* x_2306; lean_object* x_2307; -x_2303 = lean_ctor_get(x_2302, 1); -lean_inc(x_2303); -lean_dec(x_2302); +lean_object* x_2268; lean_object* x_2269; lean_object* x_2270; lean_object* x_2271; lean_object* x_2272; +x_2268 = lean_ctor_get(x_2267, 1); +lean_inc(x_2268); +lean_dec(x_2267); lean_inc(x_2); -x_2304 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__11(x_2, x_11, x_19, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2303); +x_2269 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__11(x_2, x_11, x_19, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2268); lean_dec(x_9); -lean_dec(x_1924); +lean_dec(x_1894); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); -x_2305 = lean_ctor_get(x_2304, 1); -lean_inc(x_2305); -if (lean_is_exclusive(x_2304)) { - lean_ctor_release(x_2304, 0); - lean_ctor_release(x_2304, 1); - x_2306 = x_2304; +x_2270 = lean_ctor_get(x_2269, 1); +lean_inc(x_2270); +if (lean_is_exclusive(x_2269)) { + lean_ctor_release(x_2269, 0); + lean_ctor_release(x_2269, 1); + x_2271 = x_2269; } else { - lean_dec_ref(x_2304); - x_2306 = lean_box(0); + lean_dec_ref(x_2269); + x_2271 = lean_box(0); } -if (lean_is_scalar(x_2306)) { - x_2307 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_2271)) { + x_2272 = lean_alloc_ctor(0, 2, 0); } else { - x_2307 = x_2306; + x_2272 = x_2271; } -lean_ctor_set(x_2307, 0, x_2); -lean_ctor_set(x_2307, 1, x_2305); -return x_2307; +lean_ctor_set(x_2272, 0, x_2); +lean_ctor_set(x_2272, 1, x_2270); +return x_2272; } else { -lean_object* x_2308; lean_object* x_2309; lean_object* x_2310; lean_object* x_2311; -lean_dec(x_1924); +lean_object* x_2273; lean_object* x_2274; lean_object* x_2275; lean_object* x_2276; +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_11); lean_dec(x_9); @@ -16435,26 +16035,26 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2308 = lean_ctor_get(x_2302, 0); -lean_inc(x_2308); -x_2309 = lean_ctor_get(x_2302, 1); -lean_inc(x_2309); -if (lean_is_exclusive(x_2302)) { - lean_ctor_release(x_2302, 0); - lean_ctor_release(x_2302, 1); - x_2310 = x_2302; +x_2273 = lean_ctor_get(x_2267, 0); +lean_inc(x_2273); +x_2274 = lean_ctor_get(x_2267, 1); +lean_inc(x_2274); +if (lean_is_exclusive(x_2267)) { + lean_ctor_release(x_2267, 0); + lean_ctor_release(x_2267, 1); + x_2275 = x_2267; } else { - lean_dec_ref(x_2302); - x_2310 = lean_box(0); + lean_dec_ref(x_2267); + x_2275 = lean_box(0); } -if (lean_is_scalar(x_2310)) { - x_2311 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2275)) { + x_2276 = lean_alloc_ctor(1, 2, 0); } else { - x_2311 = x_2310; + x_2276 = x_2275; } -lean_ctor_set(x_2311, 0, x_2308); -lean_ctor_set(x_2311, 1, x_2309); -return x_2311; +lean_ctor_set(x_2276, 0, x_2273); +lean_ctor_set(x_2276, 1, x_2274); +return x_2276; } } } @@ -16462,64 +16062,64 @@ return x_2311; } else { -lean_object* x_2320; lean_object* x_2321; -lean_dec(x_2008); -lean_dec(x_1917); +lean_object* x_2285; lean_object* x_2286; +lean_dec(x_1978); +lean_dec(x_1887); lean_dec(x_3); -x_2320 = lean_array_fget(x_12, x_15); +x_2285 = lean_array_fget(x_12, x_15); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_2321 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2320, x_2009, x_4, x_5, x_6, x_7, x_1924, x_9, x_2257); -if (lean_obj_tag(x_2321) == 0) +x_2286 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2285, x_1979, x_4, x_5, x_6, x_7, x_1894, x_9, x_2222); +if (lean_obj_tag(x_2286) == 0) { -lean_object* x_2322; lean_object* x_2323; lean_object* x_2324; lean_object* x_2325; uint8_t x_2326; lean_object* x_2327; lean_object* x_2328; lean_object* x_2329; -x_2322 = lean_ctor_get(x_2321, 0); -lean_inc(x_2322); -x_2323 = lean_ctor_get(x_2321, 1); -lean_inc(x_2323); -lean_dec(x_2321); -x_2324 = lean_unsigned_to_nat(1u); -x_2325 = lean_nat_add(x_15, x_2324); +lean_object* x_2287; lean_object* x_2288; lean_object* x_2289; lean_object* x_2290; uint8_t x_2291; lean_object* x_2292; lean_object* x_2293; lean_object* x_2294; +x_2287 = lean_ctor_get(x_2286, 0); +lean_inc(x_2287); +x_2288 = lean_ctor_get(x_2286, 1); +lean_inc(x_2288); +lean_dec(x_2286); +x_2289 = lean_unsigned_to_nat(1u); +x_2290 = lean_nat_add(x_15, x_2289); lean_dec(x_15); -x_2326 = 1; -if (lean_is_scalar(x_2256)) { - x_2327 = lean_alloc_ctor(0, 8, 2); +x_2291 = 1; +if (lean_is_scalar(x_2221)) { + x_2292 = lean_alloc_ctor(0, 8, 2); } else { - x_2327 = x_2256; + x_2292 = x_2221; } -lean_ctor_set(x_2327, 0, x_11); -lean_ctor_set(x_2327, 1, x_12); -lean_ctor_set(x_2327, 2, x_13); -lean_ctor_set(x_2327, 3, x_2325); -lean_ctor_set(x_2327, 4, x_16); -lean_ctor_set(x_2327, 5, x_17); -lean_ctor_set(x_2327, 6, x_18); -lean_ctor_set(x_2327, 7, x_19); -lean_ctor_set_uint8(x_2327, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_2327, sizeof(void*)*8 + 1, x_2326); -lean_inc(x_2322); -x_2328 = l_Lean_mkApp(x_2, x_2322); -x_2329 = lean_expr_instantiate1(x_2010, x_2322); -lean_dec(x_2322); -lean_dec(x_2010); -x_1 = x_2327; -x_2 = x_2328; -x_3 = x_2329; -x_8 = x_1924; -x_10 = x_2323; +lean_ctor_set(x_2292, 0, x_11); +lean_ctor_set(x_2292, 1, x_12); +lean_ctor_set(x_2292, 2, x_13); +lean_ctor_set(x_2292, 3, x_2290); +lean_ctor_set(x_2292, 4, x_16); +lean_ctor_set(x_2292, 5, x_17); +lean_ctor_set(x_2292, 6, x_18); +lean_ctor_set(x_2292, 7, x_19); +lean_ctor_set_uint8(x_2292, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_2292, sizeof(void*)*8 + 1, x_2291); +lean_inc(x_2287); +x_2293 = l_Lean_mkApp(x_2, x_2287); +x_2294 = lean_expr_instantiate1(x_1980, x_2287); +lean_dec(x_2287); +lean_dec(x_1980); +x_1 = x_2292; +x_2 = x_2293; +x_3 = x_2294; +x_8 = x_1894; +x_10 = x_2288; goto _start; } else { -lean_object* x_2331; lean_object* x_2332; lean_object* x_2333; lean_object* x_2334; -lean_dec(x_2256); -lean_dec(x_2010); -lean_dec(x_1924); +lean_object* x_2296; lean_object* x_2297; lean_object* x_2298; lean_object* x_2299; +lean_dec(x_2221); +lean_dec(x_1980); +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -16534,38 +16134,38 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2331 = lean_ctor_get(x_2321, 0); -lean_inc(x_2331); -x_2332 = lean_ctor_get(x_2321, 1); -lean_inc(x_2332); -if (lean_is_exclusive(x_2321)) { - lean_ctor_release(x_2321, 0); - lean_ctor_release(x_2321, 1); - x_2333 = x_2321; +x_2296 = lean_ctor_get(x_2286, 0); +lean_inc(x_2296); +x_2297 = lean_ctor_get(x_2286, 1); +lean_inc(x_2297); +if (lean_is_exclusive(x_2286)) { + lean_ctor_release(x_2286, 0); + lean_ctor_release(x_2286, 1); + x_2298 = x_2286; } else { - lean_dec_ref(x_2321); - x_2333 = lean_box(0); + lean_dec_ref(x_2286); + x_2298 = lean_box(0); } -if (lean_is_scalar(x_2333)) { - x_2334 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2298)) { + x_2299 = lean_alloc_ctor(1, 2, 0); } else { - x_2334 = x_2333; + x_2299 = x_2298; } -lean_ctor_set(x_2334, 0, x_2331); -lean_ctor_set(x_2334, 1, x_2332); -return x_2334; +lean_ctor_set(x_2299, 0, x_2296); +lean_ctor_set(x_2299, 1, x_2297); +return x_2299; } } } else { -lean_object* x_2335; lean_object* x_2336; lean_object* x_2337; lean_object* x_2338; -lean_dec(x_2256); -lean_dec(x_2010); -lean_dec(x_2009); -lean_dec(x_2008); -lean_dec(x_1924); -lean_dec(x_1917); +lean_object* x_2300; lean_object* x_2301; lean_object* x_2302; lean_object* x_2303; +lean_dec(x_2221); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_1978); +lean_dec(x_1894); +lean_dec(x_1887); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -16581,39 +16181,39 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_2335 = lean_ctor_get(x_2255, 0); -lean_inc(x_2335); -x_2336 = lean_ctor_get(x_2255, 1); -lean_inc(x_2336); -if (lean_is_exclusive(x_2255)) { - lean_ctor_release(x_2255, 0); - lean_ctor_release(x_2255, 1); - x_2337 = x_2255; +x_2300 = lean_ctor_get(x_2220, 0); +lean_inc(x_2300); +x_2301 = lean_ctor_get(x_2220, 1); +lean_inc(x_2301); +if (lean_is_exclusive(x_2220)) { + lean_ctor_release(x_2220, 0); + lean_ctor_release(x_2220, 1); + x_2302 = x_2220; } else { - lean_dec_ref(x_2255); - x_2337 = lean_box(0); + lean_dec_ref(x_2220); + x_2302 = lean_box(0); } -if (lean_is_scalar(x_2337)) { - x_2338 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2302)) { + x_2303 = lean_alloc_ctor(1, 2, 0); } else { - x_2338 = x_2337; + x_2303 = x_2302; } -lean_ctor_set(x_2338, 0, x_2335); -lean_ctor_set(x_2338, 1, x_2336); -return x_2338; +lean_ctor_set(x_2303, 0, x_2300); +lean_ctor_set(x_2303, 1, x_2301); +return x_2303; } } } case 2: { -lean_object* x_2339; lean_object* x_2340; +lean_object* x_2304; lean_object* x_2305; lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); lean_inc(x_1); -x_2339 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1926, x_4, x_5, x_6, x_7, x_1924, x_9, x_1927); +x_2304 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1896, x_4, x_5, x_6, x_7, x_1894, x_9, x_1897); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); lean_ctor_release(x_1, 1); @@ -16623,18 +16223,18 @@ if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 5); lean_ctor_release(x_1, 6); lean_ctor_release(x_1, 7); - x_2340 = x_1; + x_2305 = x_1; } else { lean_dec_ref(x_1); - x_2340 = lean_box(0); + x_2305 = lean_box(0); } -if (lean_obj_tag(x_2339) == 0) +if (lean_obj_tag(x_2304) == 0) { -lean_object* x_2341; uint8_t x_2342; lean_object* x_2343; lean_object* x_2344; uint8_t x_2345; -x_2341 = lean_ctor_get(x_2339, 1); -lean_inc(x_2341); -lean_dec(x_2339); -x_2342 = 1; +lean_object* x_2306; uint8_t x_2307; lean_object* x_2308; lean_object* x_2309; uint8_t x_2310; +x_2306 = lean_ctor_get(x_2304, 1); +lean_inc(x_2306); +lean_dec(x_2304); +x_2307 = 1; lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); @@ -16643,130 +16243,130 @@ lean_inc(x_15); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -if (lean_is_scalar(x_2340)) { - x_2343 = lean_alloc_ctor(0, 8, 2); +if (lean_is_scalar(x_2305)) { + x_2308 = lean_alloc_ctor(0, 8, 2); } else { - x_2343 = x_2340; + x_2308 = x_2305; } -lean_ctor_set(x_2343, 0, x_11); -lean_ctor_set(x_2343, 1, x_12); -lean_ctor_set(x_2343, 2, x_13); -lean_ctor_set(x_2343, 3, x_15); -lean_ctor_set(x_2343, 4, x_16); -lean_ctor_set(x_2343, 5, x_17); -lean_ctor_set(x_2343, 6, x_18); -lean_ctor_set(x_2343, 7, x_19); -lean_ctor_set_uint8(x_2343, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_2343, sizeof(void*)*8 + 1, x_2342); -x_2344 = lean_array_get_size(x_12); -x_2345 = lean_nat_dec_lt(x_15, x_2344); -lean_dec(x_2344); -if (x_2345 == 0) +lean_ctor_set(x_2308, 0, x_11); +lean_ctor_set(x_2308, 1, x_12); +lean_ctor_set(x_2308, 2, x_13); +lean_ctor_set(x_2308, 3, x_15); +lean_ctor_set(x_2308, 4, x_16); +lean_ctor_set(x_2308, 5, x_17); +lean_ctor_set(x_2308, 6, x_18); +lean_ctor_set(x_2308, 7, x_19); +lean_ctor_set_uint8(x_2308, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_2308, sizeof(void*)*8 + 1, x_2307); +x_2309 = lean_array_get_size(x_12); +x_2310 = lean_nat_dec_lt(x_15, x_2309); +lean_dec(x_2309); +if (x_2310 == 0) { lean_dec(x_18); lean_dec(x_15); lean_dec(x_12); if (x_14 == 0) { -lean_object* x_2346; -x_2346 = l_Lean_Expr_getOptParamDefault_x3f(x_2009); -if (lean_obj_tag(x_2346) == 0) +lean_object* x_2311; +x_2311 = l_Lean_Expr_getOptParamDefault_x3f(x_1979); +if (lean_obj_tag(x_2311) == 0) { -lean_object* x_2347; -x_2347 = l_Lean_Expr_getAutoParamTactic_x3f(x_2009); -if (lean_obj_tag(x_2347) == 0) +lean_object* x_2312; +x_2312 = l_Lean_Expr_getAutoParamTactic_x3f(x_1979); +if (lean_obj_tag(x_2312) == 0) { -uint8_t x_2348; -lean_dec(x_2343); -lean_dec(x_2010); -lean_dec(x_2009); -x_2348 = l_Array_isEmpty___rarg(x_16); -if (x_2348 == 0) +uint8_t x_2313; +lean_dec(x_2308); +lean_dec(x_1980); +lean_dec(x_1979); +x_2313 = l_Array_isEmpty___rarg(x_16); +if (x_2313 == 0) { -lean_object* x_2349; lean_object* x_2350; lean_object* x_2351; lean_object* x_2352; lean_object* x_2353; lean_object* x_2354; lean_object* x_2355; lean_object* x_2356; lean_object* x_2357; lean_object* x_2358; lean_object* x_2359; lean_object* x_2360; lean_object* x_2361; lean_object* x_2362; lean_object* x_2363; lean_object* x_2364; -lean_dec(x_1917); +lean_object* x_2314; lean_object* x_2315; lean_object* x_2316; lean_object* x_2317; lean_object* x_2318; lean_object* x_2319; lean_object* x_2320; lean_object* x_2321; lean_object* x_2322; lean_object* x_2323; lean_object* x_2324; lean_object* x_2325; lean_object* x_2326; lean_object* x_2327; lean_object* x_2328; lean_object* x_2329; +lean_dec(x_1887); lean_dec(x_19); lean_dec(x_17); lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_2349 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_2349, 0, x_2008); -x_2350 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_2351 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2351, 0, x_2350); -lean_ctor_set(x_2351, 1, x_2349); -x_2352 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_2353 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2353, 0, x_2351); -lean_ctor_set(x_2353, 1, x_2352); -x_2354 = x_16; -x_2355 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_2012, x_2354); -x_2356 = x_2355; -x_2357 = l_Array_toList___rarg(x_2356); -lean_dec(x_2356); -x_2358 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2357); -x_2359 = l_Array_HasRepr___rarg___closed__1; -x_2360 = lean_string_append(x_2359, x_2358); -lean_dec(x_2358); -x_2361 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2361, 0, x_2360); -x_2362 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2362, 0, x_2361); -x_2363 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2363, 0, x_2353); -lean_ctor_set(x_2363, 1, x_2362); -x_2364 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2363, x_4, x_5, x_6, x_7, x_1924, x_9, x_2341); +x_2314 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_2314, 0, x_1978); +x_2315 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_2316 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2316, 0, x_2315); +lean_ctor_set(x_2316, 1, x_2314); +x_2317 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_2318 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2318, 0, x_2316); +lean_ctor_set(x_2318, 1, x_2317); +x_2319 = x_16; +x_2320 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_1982, x_2319); +x_2321 = x_2320; +x_2322 = l_Array_toList___rarg(x_2321); +lean_dec(x_2321); +x_2323 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2322); +x_2324 = l_Array_HasRepr___rarg___closed__1; +x_2325 = lean_string_append(x_2324, x_2323); +lean_dec(x_2323); +x_2326 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2326, 0, x_2325); +x_2327 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2327, 0, x_2326); +x_2328 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2328, 0, x_2318); +lean_ctor_set(x_2328, 1, x_2327); +x_2329 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2328, x_4, x_5, x_6, x_7, x_1894, x_9, x_2306); lean_dec(x_9); -lean_dec(x_1924); +lean_dec(x_1894); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_2364; +return x_2329; } else { -lean_object* x_2365; uint8_t x_2366; -lean_dec(x_2008); +lean_object* x_2330; uint8_t x_2331; +lean_dec(x_1978); lean_dec(x_16); -x_2365 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_2366 = l_Lean_checkTraceOption(x_1917, x_2365); -lean_dec(x_1917); -if (x_2366 == 0) +x_2330 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_2331 = l_Lean_checkTraceOption(x_1887, x_2330); +lean_dec(x_1887); +if (x_2331 == 0) { -lean_object* x_2367; +lean_object* x_2332; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_2367 = x_2341; -goto block_2378; +x_2332 = x_2306; +goto block_2343; } else { -lean_object* x_2379; lean_object* x_2380; -x_2379 = lean_ctor_get(x_13, 0); -lean_inc(x_2379); +lean_object* x_2344; lean_object* x_2345; +x_2344 = lean_ctor_get(x_13, 0); +lean_inc(x_2344); lean_dec(x_13); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_2380 = l_Lean_Elab_Term_isDefEq(x_2379, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_2341); -if (lean_obj_tag(x_2380) == 0) +x_2345 = l_Lean_Elab_Term_isDefEq(x_2344, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_2306); +if (lean_obj_tag(x_2345) == 0) { -lean_object* x_2381; -x_2381 = lean_ctor_get(x_2380, 1); -lean_inc(x_2381); -lean_dec(x_2380); -x_2367 = x_2381; -goto block_2378; +lean_object* x_2346; +x_2346 = lean_ctor_get(x_2345, 1); +lean_inc(x_2346); +lean_dec(x_2345); +x_2332 = x_2346; +goto block_2343; } else { -lean_object* x_2382; lean_object* x_2383; lean_object* x_2384; lean_object* x_2385; -lean_dec(x_1924); +lean_object* x_2347; lean_object* x_2348; lean_object* x_2349; lean_object* x_2350; +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_17); lean_dec(x_11); @@ -16776,76 +16376,227 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2382 = lean_ctor_get(x_2380, 0); -lean_inc(x_2382); -x_2383 = lean_ctor_get(x_2380, 1); -lean_inc(x_2383); -if (lean_is_exclusive(x_2380)) { - lean_ctor_release(x_2380, 0); - lean_ctor_release(x_2380, 1); - x_2384 = x_2380; +x_2347 = lean_ctor_get(x_2345, 0); +lean_inc(x_2347); +x_2348 = lean_ctor_get(x_2345, 1); +lean_inc(x_2348); +if (lean_is_exclusive(x_2345)) { + lean_ctor_release(x_2345, 0); + lean_ctor_release(x_2345, 1); + x_2349 = x_2345; } else { - lean_dec_ref(x_2380); - x_2384 = lean_box(0); + lean_dec_ref(x_2345); + x_2349 = lean_box(0); } -if (lean_is_scalar(x_2384)) { - x_2385 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2349)) { + x_2350 = lean_alloc_ctor(1, 2, 0); } else { - x_2385 = x_2384; + x_2350 = x_2349; } -lean_ctor_set(x_2385, 0, x_2382); -lean_ctor_set(x_2385, 1, x_2383); -return x_2385; +lean_ctor_set(x_2350, 0, x_2347); +lean_ctor_set(x_2350, 1, x_2348); +return x_2350; } } -block_2378: +block_2343: +{ +lean_object* x_2333; +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2333 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2332); +lean_dec(x_17); +if (lean_obj_tag(x_2333) == 0) +{ +lean_object* x_2334; lean_object* x_2335; lean_object* x_2336; lean_object* x_2337; lean_object* x_2338; +x_2334 = lean_ctor_get(x_2333, 1); +lean_inc(x_2334); +lean_dec(x_2333); +lean_inc(x_2); +x_2335 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__12(x_2, x_11, x_19, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2334); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_19); +x_2336 = lean_ctor_get(x_2335, 1); +lean_inc(x_2336); +if (lean_is_exclusive(x_2335)) { + lean_ctor_release(x_2335, 0); + lean_ctor_release(x_2335, 1); + x_2337 = x_2335; +} else { + lean_dec_ref(x_2335); + x_2337 = lean_box(0); +} +if (lean_is_scalar(x_2337)) { + x_2338 = lean_alloc_ctor(0, 2, 0); +} else { + x_2338 = x_2337; +} +lean_ctor_set(x_2338, 0, x_2); +lean_ctor_set(x_2338, 1, x_2336); +return x_2338; +} +else +{ +lean_object* x_2339; lean_object* x_2340; lean_object* x_2341; lean_object* x_2342; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2339 = lean_ctor_get(x_2333, 0); +lean_inc(x_2339); +x_2340 = lean_ctor_get(x_2333, 1); +lean_inc(x_2340); +if (lean_is_exclusive(x_2333)) { + lean_ctor_release(x_2333, 0); + lean_ctor_release(x_2333, 1); + x_2341 = x_2333; +} else { + lean_dec_ref(x_2333); + x_2341 = lean_box(0); +} +if (lean_is_scalar(x_2341)) { + x_2342 = lean_alloc_ctor(1, 2, 0); +} else { + x_2342 = x_2341; +} +lean_ctor_set(x_2342, 0, x_2339); +lean_ctor_set(x_2342, 1, x_2340); +return x_2342; +} +} +} +else +{ +lean_object* x_2351; lean_object* x_2352; lean_object* x_2353; lean_object* x_2354; +lean_inc(x_2); +x_2351 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2351, 0, x_2); +x_2352 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_2330, x_2351, x_4, x_5, x_6, x_7, x_1894, x_9, x_2306); +x_2353 = lean_ctor_get(x_2352, 1); +lean_inc(x_2353); +lean_dec(x_2352); +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_2354 = x_2353; +goto block_2365; +} +else +{ +lean_object* x_2366; lean_object* x_2367; +x_2366 = lean_ctor_get(x_13, 0); +lean_inc(x_2366); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2367 = l_Lean_Elab_Term_isDefEq(x_2366, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_2353); +if (lean_obj_tag(x_2367) == 0) { lean_object* x_2368; +x_2368 = lean_ctor_get(x_2367, 1); +lean_inc(x_2368); +lean_dec(x_2367); +x_2354 = x_2368; +goto block_2365; +} +else +{ +lean_object* x_2369; lean_object* x_2370; lean_object* x_2371; lean_object* x_2372; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2369 = lean_ctor_get(x_2367, 0); +lean_inc(x_2369); +x_2370 = lean_ctor_get(x_2367, 1); +lean_inc(x_2370); +if (lean_is_exclusive(x_2367)) { + lean_ctor_release(x_2367, 0); + lean_ctor_release(x_2367, 1); + x_2371 = x_2367; +} else { + lean_dec_ref(x_2367); + x_2371 = lean_box(0); +} +if (lean_is_scalar(x_2371)) { + x_2372 = lean_alloc_ctor(1, 2, 0); +} else { + x_2372 = x_2371; +} +lean_ctor_set(x_2372, 0, x_2369); +lean_ctor_set(x_2372, 1, x_2370); +return x_2372; +} +} +block_2365: +{ +lean_object* x_2355; lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_2368 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2367); +x_2355 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2354); lean_dec(x_17); -if (lean_obj_tag(x_2368) == 0) +if (lean_obj_tag(x_2355) == 0) { -lean_object* x_2369; lean_object* x_2370; lean_object* x_2371; lean_object* x_2372; lean_object* x_2373; -x_2369 = lean_ctor_get(x_2368, 1); -lean_inc(x_2369); -lean_dec(x_2368); +lean_object* x_2356; lean_object* x_2357; lean_object* x_2358; lean_object* x_2359; lean_object* x_2360; +x_2356 = lean_ctor_get(x_2355, 1); +lean_inc(x_2356); +lean_dec(x_2355); lean_inc(x_2); -x_2370 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__12(x_2, x_11, x_19, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2369); +x_2357 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__13(x_2, x_11, x_19, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2356); lean_dec(x_9); -lean_dec(x_1924); +lean_dec(x_1894); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); -x_2371 = lean_ctor_get(x_2370, 1); -lean_inc(x_2371); -if (lean_is_exclusive(x_2370)) { - lean_ctor_release(x_2370, 0); - lean_ctor_release(x_2370, 1); - x_2372 = x_2370; +x_2358 = lean_ctor_get(x_2357, 1); +lean_inc(x_2358); +if (lean_is_exclusive(x_2357)) { + lean_ctor_release(x_2357, 0); + lean_ctor_release(x_2357, 1); + x_2359 = x_2357; } else { - lean_dec_ref(x_2370); - x_2372 = lean_box(0); + lean_dec_ref(x_2357); + x_2359 = lean_box(0); } -if (lean_is_scalar(x_2372)) { - x_2373 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_2359)) { + x_2360 = lean_alloc_ctor(0, 2, 0); } else { - x_2373 = x_2372; + x_2360 = x_2359; } -lean_ctor_set(x_2373, 0, x_2); -lean_ctor_set(x_2373, 1, x_2371); -return x_2373; +lean_ctor_set(x_2360, 0, x_2); +lean_ctor_set(x_2360, 1, x_2358); +return x_2360; } else { -lean_object* x_2374; lean_object* x_2375; lean_object* x_2376; lean_object* x_2377; -lean_dec(x_1924); +lean_object* x_2361; lean_object* x_2362; lean_object* x_2363; lean_object* x_2364; +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_11); lean_dec(x_9); @@ -16854,580 +16605,739 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2374 = lean_ctor_get(x_2368, 0); -lean_inc(x_2374); -x_2375 = lean_ctor_get(x_2368, 1); -lean_inc(x_2375); -if (lean_is_exclusive(x_2368)) { - lean_ctor_release(x_2368, 0); - lean_ctor_release(x_2368, 1); - x_2376 = x_2368; +x_2361 = lean_ctor_get(x_2355, 0); +lean_inc(x_2361); +x_2362 = lean_ctor_get(x_2355, 1); +lean_inc(x_2362); +if (lean_is_exclusive(x_2355)) { + lean_ctor_release(x_2355, 0); + lean_ctor_release(x_2355, 1); + x_2363 = x_2355; } else { - lean_dec_ref(x_2368); - x_2376 = lean_box(0); + lean_dec_ref(x_2355); + x_2363 = lean_box(0); } -if (lean_is_scalar(x_2376)) { - x_2377 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2363)) { + x_2364 = lean_alloc_ctor(1, 2, 0); } else { - x_2377 = x_2376; + x_2364 = x_2363; +} +lean_ctor_set(x_2364, 0, x_2361); +lean_ctor_set(x_2364, 1, x_2362); +return x_2364; +} } -lean_ctor_set(x_2377, 0, x_2374); -lean_ctor_set(x_2377, 1, x_2375); -return x_2377; } } } else { -lean_object* x_2386; lean_object* x_2387; lean_object* x_2388; lean_object* x_2389; -lean_inc(x_2); -x_2386 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2386, 0, x_2); -x_2387 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_2365, x_2386, x_4, x_5, x_6, x_7, x_1924, x_9, x_2341); +lean_object* x_2373; +lean_dec(x_1978); +lean_dec(x_1887); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_3); +x_2373 = lean_ctor_get(x_2312, 0); +lean_inc(x_2373); +lean_dec(x_2312); +if (lean_obj_tag(x_2373) == 4) +{ +lean_object* x_2374; lean_object* x_2375; lean_object* x_2376; lean_object* x_2377; lean_object* x_2378; lean_object* x_2379; +x_2374 = lean_ctor_get(x_2373, 0); +lean_inc(x_2374); +lean_dec(x_2373); +x_2375 = lean_st_ref_get(x_9, x_2306); +x_2376 = lean_ctor_get(x_2375, 0); +lean_inc(x_2376); +x_2377 = lean_ctor_get(x_2375, 1); +lean_inc(x_2377); +lean_dec(x_2375); +x_2378 = lean_ctor_get(x_2376, 0); +lean_inc(x_2378); +lean_dec(x_2376); +x_2379 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_2378, x_2374); +if (lean_obj_tag(x_2379) == 0) +{ +lean_object* x_2380; lean_object* x_2381; lean_object* x_2382; lean_object* x_2383; +lean_dec(x_2308); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_11); +lean_dec(x_2); +x_2380 = lean_ctor_get(x_2379, 0); +lean_inc(x_2380); +lean_dec(x_2379); +x_2381 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2381, 0, x_2380); +x_2382 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2382, 0, x_2381); +x_2383 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2382, x_4, x_5, x_6, x_7, x_1894, x_9, x_2377); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_2383; +} +else +{ +lean_object* x_2384; lean_object* x_2385; lean_object* x_2386; lean_object* x_2387; lean_object* x_2388; lean_object* x_2389; lean_object* x_2390; lean_object* x_2391; lean_object* x_2392; lean_object* x_2393; lean_object* x_2394; lean_object* x_2395; lean_object* x_2396; lean_object* x_2397; lean_object* x_2398; lean_object* x_2399; lean_object* x_2400; lean_object* x_2401; lean_object* x_2402; lean_object* x_2403; lean_object* x_2404; lean_object* x_2405; lean_object* x_2406; lean_object* x_2407; lean_object* x_2408; lean_object* x_2409; lean_object* x_2410; lean_object* x_2411; lean_object* x_2412; lean_object* x_2413; lean_object* x_2414; lean_object* x_2415; lean_object* x_2416; lean_object* x_2417; lean_object* x_2418; +x_2384 = lean_ctor_get(x_2379, 0); +lean_inc(x_2384); +lean_dec(x_2379); +x_2385 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_1894, x_9, x_2377); +x_2386 = lean_ctor_get(x_2385, 1); +lean_inc(x_2386); +lean_dec(x_2385); +x_2387 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_2386); x_2388 = lean_ctor_get(x_2387, 1); lean_inc(x_2388); lean_dec(x_2387); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_2389 = x_2388; -goto block_2400; -} -else -{ -lean_object* x_2401; lean_object* x_2402; -x_2401 = lean_ctor_get(x_13, 0); -lean_inc(x_2401); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_2402 = l_Lean_Elab_Term_isDefEq(x_2401, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_2388); -if (lean_obj_tag(x_2402) == 0) -{ -lean_object* x_2403; -x_2403 = lean_ctor_get(x_2402, 1); -lean_inc(x_2403); -lean_dec(x_2402); -x_2389 = x_2403; -goto block_2400; -} -else -{ -lean_object* x_2404; lean_object* x_2405; lean_object* x_2406; lean_object* x_2407; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_17); +x_2389 = l_Lean_Syntax_getArgs(x_2384); +lean_dec(x_2384); +x_2390 = l_Array_empty___closed__1; +x_2391 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2389, x_2389, x_1982, x_2390); +lean_dec(x_2389); +x_2392 = l_Lean_nullKind___closed__2; +x_2393 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2393, 0, x_2392); +lean_ctor_set(x_2393, 1, x_2391); +x_2394 = lean_array_push(x_2390, x_2393); +x_2395 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; +x_2396 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2396, 0, x_2395); +lean_ctor_set(x_2396, 1, x_2394); +x_2397 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__4; +x_2398 = lean_array_push(x_2397, x_2396); +x_2399 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__20; +x_2400 = lean_array_push(x_2398, x_2399); +x_2401 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; +x_2402 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2402, 0, x_2401); +lean_ctor_set(x_2402, 1, x_2400); +x_2403 = lean_array_push(x_2390, x_2402); +x_2404 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2404, 0, x_2392); +lean_ctor_set(x_2404, 1, x_2403); +x_2405 = lean_array_push(x_2390, x_2404); +x_2406 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2406, 0, x_2395); +lean_ctor_set(x_2406, 1, x_2405); +x_2407 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_2408 = lean_array_push(x_2407, x_2406); +x_2409 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +x_2410 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2410, 0, x_2409); +lean_ctor_set(x_2410, 1, x_2408); +x_2411 = l_Lean_Syntax_copyInfo(x_2410, x_11); lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2404 = lean_ctor_get(x_2402, 0); -lean_inc(x_2404); -x_2405 = lean_ctor_get(x_2402, 1); -lean_inc(x_2405); -if (lean_is_exclusive(x_2402)) { - lean_ctor_release(x_2402, 0); - lean_ctor_release(x_2402, 1); - x_2406 = x_2402; -} else { - lean_dec_ref(x_2402); - x_2406 = lean_box(0); -} -if (lean_is_scalar(x_2406)) { - x_2407 = lean_alloc_ctor(1, 2, 0); -} else { - x_2407 = x_2406; -} -lean_ctor_set(x_2407, 0, x_2404); -lean_ctor_set(x_2407, 1, x_2405); -return x_2407; -} -} -block_2400: -{ -lean_object* x_2390; +x_2412 = l_Lean_Expr_getAppNumArgsAux___main(x_1979, x_1982); +x_2413 = lean_nat_sub(x_2412, x_1982); +lean_dec(x_2412); +x_2414 = lean_unsigned_to_nat(1u); +x_2415 = lean_nat_sub(x_2413, x_2414); +lean_dec(x_2413); +x_2416 = l_Lean_Expr_getRevArg_x21___main(x_1979, x_2415); +lean_dec(x_1979); +x_2417 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2417, 0, x_2411); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); +lean_inc(x_5); lean_inc(x_4); -x_2390 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2389); -lean_dec(x_17); -if (lean_obj_tag(x_2390) == 0) -{ -lean_object* x_2391; lean_object* x_2392; lean_object* x_2393; lean_object* x_2394; lean_object* x_2395; -x_2391 = lean_ctor_get(x_2390, 1); -lean_inc(x_2391); -lean_dec(x_2390); lean_inc(x_2); -x_2392 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__13(x_2, x_11, x_19, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2391); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_19); -x_2393 = lean_ctor_get(x_2392, 1); -lean_inc(x_2393); -if (lean_is_exclusive(x_2392)) { - lean_ctor_release(x_2392, 0); - lean_ctor_release(x_2392, 1); - x_2394 = x_2392; -} else { - lean_dec_ref(x_2392); - x_2394 = lean_box(0); -} -if (lean_is_scalar(x_2394)) { - x_2395 = lean_alloc_ctor(0, 2, 0); -} else { - x_2395 = x_2394; -} -lean_ctor_set(x_2395, 0, x_2); -lean_ctor_set(x_2395, 1, x_2393); -return x_2395; +x_2418 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2417, x_2416, x_4, x_5, x_6, x_7, x_1894, x_9, x_2388); +if (lean_obj_tag(x_2418) == 0) +{ +lean_object* x_2419; lean_object* x_2420; lean_object* x_2421; lean_object* x_2422; +x_2419 = lean_ctor_get(x_2418, 0); +lean_inc(x_2419); +x_2420 = lean_ctor_get(x_2418, 1); +lean_inc(x_2420); +lean_dec(x_2418); +lean_inc(x_2419); +x_2421 = l_Lean_mkApp(x_2, x_2419); +x_2422 = lean_expr_instantiate1(x_1980, x_2419); +lean_dec(x_2419); +lean_dec(x_1980); +x_1 = x_2308; +x_2 = x_2421; +x_3 = x_2422; +x_8 = x_1894; +x_10 = x_2420; +goto _start; } else { -lean_object* x_2396; lean_object* x_2397; lean_object* x_2398; lean_object* x_2399; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_11); +lean_object* x_2424; lean_object* x_2425; lean_object* x_2426; lean_object* x_2427; +lean_dec(x_2308); +lean_dec(x_1980); +lean_dec(x_1894); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2396 = lean_ctor_get(x_2390, 0); -lean_inc(x_2396); -x_2397 = lean_ctor_get(x_2390, 1); -lean_inc(x_2397); -if (lean_is_exclusive(x_2390)) { - lean_ctor_release(x_2390, 0); - lean_ctor_release(x_2390, 1); - x_2398 = x_2390; +x_2424 = lean_ctor_get(x_2418, 0); +lean_inc(x_2424); +x_2425 = lean_ctor_get(x_2418, 1); +lean_inc(x_2425); +if (lean_is_exclusive(x_2418)) { + lean_ctor_release(x_2418, 0); + lean_ctor_release(x_2418, 1); + x_2426 = x_2418; } else { - lean_dec_ref(x_2390); - x_2398 = lean_box(0); + lean_dec_ref(x_2418); + x_2426 = lean_box(0); } -if (lean_is_scalar(x_2398)) { - x_2399 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2426)) { + x_2427 = lean_alloc_ctor(1, 2, 0); } else { - x_2399 = x_2398; -} -lean_ctor_set(x_2399, 0, x_2396); -lean_ctor_set(x_2399, 1, x_2397); -return x_2399; -} + x_2427 = x_2426; } +lean_ctor_set(x_2427, 0, x_2424); +lean_ctor_set(x_2427, 1, x_2425); +return x_2427; } } } else { -lean_object* x_2408; -lean_dec(x_2008); -lean_dec(x_1917); +lean_object* x_2428; lean_object* x_2429; +lean_dec(x_2373); +lean_dec(x_2308); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_11); +lean_dec(x_2); +x_2428 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_2429 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2428, x_4, x_5, x_6, x_7, x_1894, x_9, x_2306); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_2429; +} +} +} +else +{ +lean_object* x_2430; lean_object* x_2431; lean_object* x_2432; +lean_dec(x_1979); +lean_dec(x_1978); +lean_dec(x_1887); lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); lean_dec(x_13); -lean_dec(x_3); -x_2408 = lean_ctor_get(x_2347, 0); -lean_inc(x_2408); -lean_dec(x_2347); -if (lean_obj_tag(x_2408) == 4) -{ -lean_object* x_2409; lean_object* x_2410; lean_object* x_2411; lean_object* x_2412; lean_object* x_2413; lean_object* x_2414; -x_2409 = lean_ctor_get(x_2408, 0); -lean_inc(x_2409); -lean_dec(x_2408); -x_2410 = lean_st_ref_get(x_9, x_2341); -x_2411 = lean_ctor_get(x_2410, 0); -lean_inc(x_2411); -x_2412 = lean_ctor_get(x_2410, 1); -lean_inc(x_2412); -lean_dec(x_2410); -x_2413 = lean_ctor_get(x_2411, 0); -lean_inc(x_2413); -lean_dec(x_2411); -x_2414 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_2413, x_2409); -if (lean_obj_tag(x_2414) == 0) -{ -lean_object* x_2415; lean_object* x_2416; lean_object* x_2417; lean_object* x_2418; -lean_dec(x_2343); -lean_dec(x_2010); -lean_dec(x_2009); lean_dec(x_11); -lean_dec(x_2); -x_2415 = lean_ctor_get(x_2414, 0); -lean_inc(x_2415); -lean_dec(x_2414); -x_2416 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2416, 0, x_2415); -x_2417 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2417, 0, x_2416); -x_2418 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2417, x_4, x_5, x_6, x_7, x_1924, x_9, x_2412); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_2418; +lean_dec(x_3); +x_2430 = lean_ctor_get(x_2311, 0); +lean_inc(x_2430); +lean_dec(x_2311); +lean_inc(x_2430); +x_2431 = l_Lean_mkApp(x_2, x_2430); +x_2432 = lean_expr_instantiate1(x_1980, x_2430); +lean_dec(x_2430); +lean_dec(x_1980); +x_1 = x_2308; +x_2 = x_2431; +x_3 = x_2432; +x_8 = x_1894; +x_10 = x_2306; +goto _start; +} } else { -lean_object* x_2419; lean_object* x_2420; lean_object* x_2421; lean_object* x_2422; lean_object* x_2423; lean_object* x_2424; lean_object* x_2425; lean_object* x_2426; lean_object* x_2427; lean_object* x_2428; lean_object* x_2429; lean_object* x_2430; lean_object* x_2431; lean_object* x_2432; lean_object* x_2433; lean_object* x_2434; lean_object* x_2435; lean_object* x_2436; lean_object* x_2437; lean_object* x_2438; lean_object* x_2439; lean_object* x_2440; lean_object* x_2441; lean_object* x_2442; lean_object* x_2443; -x_2419 = lean_ctor_get(x_2414, 0); -lean_inc(x_2419); -lean_dec(x_2414); -x_2420 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_1924, x_9, x_2412); -x_2421 = lean_ctor_get(x_2420, 1); -lean_inc(x_2421); -lean_dec(x_2420); -x_2422 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_2421); -x_2423 = lean_ctor_get(x_2422, 1); -lean_inc(x_2423); -lean_dec(x_2422); -x_2424 = l_Lean_Syntax_getArgs(x_2419); -lean_dec(x_2419); -x_2425 = l_Array_empty___closed__1; -x_2426 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2424, x_2424, x_2012, x_2425); -lean_dec(x_2424); -x_2427 = l_Lean_nullKind___closed__2; -x_2428 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2428, 0, x_2427); -lean_ctor_set(x_2428, 1, x_2426); -x_2429 = lean_array_push(x_2425, x_2428); -x_2430 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; -x_2431 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2431, 0, x_2430); -lean_ctor_set(x_2431, 1, x_2429); -x_2432 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; -x_2433 = lean_array_push(x_2432, x_2431); -x_2434 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; -x_2435 = lean_array_push(x_2433, x_2434); -x_2436 = l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__2; -x_2437 = lean_alloc_ctor(1, 2, 0); +uint8_t x_2434; +lean_dec(x_2308); +lean_dec(x_1980); +lean_dec(x_1979); +x_2434 = l_Array_isEmpty___rarg(x_16); +if (x_2434 == 0) +{ +lean_object* x_2435; lean_object* x_2436; lean_object* x_2437; lean_object* x_2438; lean_object* x_2439; lean_object* x_2440; lean_object* x_2441; lean_object* x_2442; lean_object* x_2443; lean_object* x_2444; lean_object* x_2445; lean_object* x_2446; lean_object* x_2447; lean_object* x_2448; lean_object* x_2449; lean_object* x_2450; +lean_dec(x_1887); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_3); +lean_dec(x_2); +x_2435 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_2435, 0, x_1978); +x_2436 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_2437 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_2437, 0, x_2436); lean_ctor_set(x_2437, 1, x_2435); -x_2438 = l_Lean_Syntax_getHeadInfo___main(x_11); -lean_dec(x_11); -x_2439 = l_Lean_Expr_getAppNumArgsAux___main(x_2009, x_2012); -x_2440 = lean_nat_sub(x_2439, x_2012); -lean_dec(x_2439); -x_2441 = lean_unsigned_to_nat(1u); -x_2442 = lean_nat_sub(x_2440, x_2441); -lean_dec(x_2440); -x_2443 = l_Lean_Expr_getRevArg_x21___main(x_2009, x_2442); -lean_dec(x_2009); -if (lean_obj_tag(x_2438) == 0) -{ -lean_object* x_2444; lean_object* x_2445; -x_2444 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2444, 0, x_2437); -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_2445 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2444, x_2443, x_4, x_5, x_6, x_7, x_1924, x_9, x_2423); -if (lean_obj_tag(x_2445) == 0) -{ -lean_object* x_2446; lean_object* x_2447; lean_object* x_2448; lean_object* x_2449; -x_2446 = lean_ctor_get(x_2445, 0); -lean_inc(x_2446); -x_2447 = lean_ctor_get(x_2445, 1); -lean_inc(x_2447); -lean_dec(x_2445); -lean_inc(x_2446); -x_2448 = l_Lean_mkApp(x_2, x_2446); -x_2449 = lean_expr_instantiate1(x_2010, x_2446); -lean_dec(x_2446); -lean_dec(x_2010); -x_1 = x_2343; -x_2 = x_2448; -x_3 = x_2449; -x_8 = x_1924; -x_10 = x_2447; -goto _start; -} -else -{ -lean_object* x_2451; lean_object* x_2452; lean_object* x_2453; lean_object* x_2454; -lean_dec(x_2343); -lean_dec(x_2010); -lean_dec(x_1924); +x_2438 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_2439 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2439, 0, x_2437); +lean_ctor_set(x_2439, 1, x_2438); +x_2440 = x_16; +x_2441 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_1982, x_2440); +x_2442 = x_2441; +x_2443 = l_Array_toList___rarg(x_2442); +lean_dec(x_2442); +x_2444 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2443); +x_2445 = l_Array_HasRepr___rarg___closed__1; +x_2446 = lean_string_append(x_2445, x_2444); +lean_dec(x_2444); +x_2447 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2447, 0, x_2446); +x_2448 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2448, 0, x_2447); +x_2449 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2449, 0, x_2439); +lean_ctor_set(x_2449, 1, x_2448); +x_2450 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2449, x_4, x_5, x_6, x_7, x_1894, x_9, x_2306); lean_dec(x_9); +lean_dec(x_1894); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2451 = lean_ctor_get(x_2445, 0); -lean_inc(x_2451); -x_2452 = lean_ctor_get(x_2445, 1); -lean_inc(x_2452); -if (lean_is_exclusive(x_2445)) { - lean_ctor_release(x_2445, 0); - lean_ctor_release(x_2445, 1); - x_2453 = x_2445; -} else { - lean_dec_ref(x_2445); - x_2453 = lean_box(0); -} -if (lean_is_scalar(x_2453)) { - x_2454 = lean_alloc_ctor(1, 2, 0); -} else { - x_2454 = x_2453; -} -lean_ctor_set(x_2454, 0, x_2451); -lean_ctor_set(x_2454, 1, x_2452); -return x_2454; -} +return x_2450; } else { -lean_object* x_2455; lean_object* x_2456; lean_object* x_2457; lean_object* x_2458; -x_2455 = lean_ctor_get(x_2438, 0); -lean_inc(x_2455); -lean_dec(x_2438); -x_2456 = l_Lean_Syntax_replaceInfo___main(x_2455, x_2437); -x_2457 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2457, 0, x_2456); -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_2458 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2457, x_2443, x_4, x_5, x_6, x_7, x_1924, x_9, x_2423); -if (lean_obj_tag(x_2458) == 0) -{ -lean_object* x_2459; lean_object* x_2460; lean_object* x_2461; lean_object* x_2462; -x_2459 = lean_ctor_get(x_2458, 0); -lean_inc(x_2459); -x_2460 = lean_ctor_get(x_2458, 1); -lean_inc(x_2460); -lean_dec(x_2458); -lean_inc(x_2459); -x_2461 = l_Lean_mkApp(x_2, x_2459); -x_2462 = lean_expr_instantiate1(x_2010, x_2459); -lean_dec(x_2459); -lean_dec(x_2010); -x_1 = x_2343; -x_2 = x_2461; -x_3 = x_2462; -x_8 = x_1924; -x_10 = x_2460; -goto _start; -} -else -{ -lean_object* x_2464; lean_object* x_2465; lean_object* x_2466; lean_object* x_2467; -lean_dec(x_2343); -lean_dec(x_2010); -lean_dec(x_1924); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2464 = lean_ctor_get(x_2458, 0); -lean_inc(x_2464); -x_2465 = lean_ctor_get(x_2458, 1); -lean_inc(x_2465); -if (lean_is_exclusive(x_2458)) { - lean_ctor_release(x_2458, 0); - lean_ctor_release(x_2458, 1); - x_2466 = x_2458; -} else { - lean_dec_ref(x_2458); - x_2466 = lean_box(0); -} -if (lean_is_scalar(x_2466)) { - x_2467 = lean_alloc_ctor(1, 2, 0); -} else { - x_2467 = x_2466; -} -lean_ctor_set(x_2467, 0, x_2464); -lean_ctor_set(x_2467, 1, x_2465); -return x_2467; -} -} -} -} -else -{ -lean_object* x_2468; lean_object* x_2469; -lean_dec(x_2408); -lean_dec(x_2343); -lean_dec(x_2010); -lean_dec(x_2009); -lean_dec(x_11); -lean_dec(x_2); -x_2468 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; -x_2469 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2468, x_4, x_5, x_6, x_7, x_1924, x_9, x_2341); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_2469; -} -} -} -else -{ -lean_object* x_2470; lean_object* x_2471; lean_object* x_2472; -lean_dec(x_2009); -lean_dec(x_2008); -lean_dec(x_1917); -lean_dec(x_19); -lean_dec(x_17); +lean_object* x_2451; uint8_t x_2452; +lean_dec(x_1978); lean_dec(x_16); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_3); -x_2470 = lean_ctor_get(x_2346, 0); -lean_inc(x_2470); -lean_dec(x_2346); -lean_inc(x_2470); -x_2471 = l_Lean_mkApp(x_2, x_2470); -x_2472 = lean_expr_instantiate1(x_2010, x_2470); -lean_dec(x_2470); -lean_dec(x_2010); -x_1 = x_2343; -x_2 = x_2471; -x_3 = x_2472; -x_8 = x_1924; -x_10 = x_2341; -goto _start; -} -} -else +x_2451 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_2452 = l_Lean_checkTraceOption(x_1887, x_2451); +lean_dec(x_1887); +if (x_2452 == 0) { -uint8_t x_2474; -lean_dec(x_2343); -lean_dec(x_2010); -lean_dec(x_2009); -x_2474 = l_Array_isEmpty___rarg(x_16); -if (x_2474 == 0) -{ -lean_object* x_2475; lean_object* x_2476; lean_object* x_2477; lean_object* x_2478; lean_object* x_2479; lean_object* x_2480; lean_object* x_2481; lean_object* x_2482; lean_object* x_2483; lean_object* x_2484; lean_object* x_2485; lean_object* x_2486; lean_object* x_2487; lean_object* x_2488; lean_object* x_2489; lean_object* x_2490; -lean_dec(x_1917); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_3); -lean_dec(x_2); -x_2475 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_2475, 0, x_2008); -x_2476 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_2477 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2477, 0, x_2476); -lean_ctor_set(x_2477, 1, x_2475); -x_2478 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_2479 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2479, 0, x_2477); -lean_ctor_set(x_2479, 1, x_2478); -x_2480 = x_16; -x_2481 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_2012, x_2480); -x_2482 = x_2481; -x_2483 = l_Array_toList___rarg(x_2482); -lean_dec(x_2482); -x_2484 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2483); -x_2485 = l_Array_HasRepr___rarg___closed__1; -x_2486 = lean_string_append(x_2485, x_2484); -lean_dec(x_2484); -x_2487 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2487, 0, x_2486); -x_2488 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2488, 0, x_2487); -x_2489 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2489, 0, x_2479); -lean_ctor_set(x_2489, 1, x_2488); -x_2490 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2489, x_4, x_5, x_6, x_7, x_1924, x_9, x_2341); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_2490; -} -else -{ -lean_object* x_2491; uint8_t x_2492; -lean_dec(x_2008); -lean_dec(x_16); -x_2491 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_2492 = l_Lean_checkTraceOption(x_1917, x_2491); -lean_dec(x_1917); -if (x_2492 == 0) -{ -lean_object* x_2493; +lean_object* x_2453; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_2493 = x_2341; -goto block_2504; +x_2453 = x_2306; +goto block_2464; } else { -lean_object* x_2505; lean_object* x_2506; -x_2505 = lean_ctor_get(x_13, 0); -lean_inc(x_2505); +lean_object* x_2465; lean_object* x_2466; +x_2465 = lean_ctor_get(x_13, 0); +lean_inc(x_2465); lean_dec(x_13); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_2506 = l_Lean_Elab_Term_isDefEq(x_2505, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_2341); -if (lean_obj_tag(x_2506) == 0) +x_2466 = l_Lean_Elab_Term_isDefEq(x_2465, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_2306); +if (lean_obj_tag(x_2466) == 0) { -lean_object* x_2507; -x_2507 = lean_ctor_get(x_2506, 1); -lean_inc(x_2507); -lean_dec(x_2506); -x_2493 = x_2507; -goto block_2504; +lean_object* x_2467; +x_2467 = lean_ctor_get(x_2466, 1); +lean_inc(x_2467); +lean_dec(x_2466); +x_2453 = x_2467; +goto block_2464; +} +else +{ +lean_object* x_2468; lean_object* x_2469; lean_object* x_2470; lean_object* x_2471; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2468 = lean_ctor_get(x_2466, 0); +lean_inc(x_2468); +x_2469 = lean_ctor_get(x_2466, 1); +lean_inc(x_2469); +if (lean_is_exclusive(x_2466)) { + lean_ctor_release(x_2466, 0); + lean_ctor_release(x_2466, 1); + x_2470 = x_2466; +} else { + lean_dec_ref(x_2466); + x_2470 = lean_box(0); +} +if (lean_is_scalar(x_2470)) { + x_2471 = lean_alloc_ctor(1, 2, 0); +} else { + x_2471 = x_2470; +} +lean_ctor_set(x_2471, 0, x_2468); +lean_ctor_set(x_2471, 1, x_2469); +return x_2471; +} +} +block_2464: +{ +lean_object* x_2454; +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2454 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2453); +lean_dec(x_17); +if (lean_obj_tag(x_2454) == 0) +{ +lean_object* x_2455; lean_object* x_2456; lean_object* x_2457; lean_object* x_2458; lean_object* x_2459; +x_2455 = lean_ctor_get(x_2454, 1); +lean_inc(x_2455); +lean_dec(x_2454); +lean_inc(x_2); +x_2456 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__14(x_2, x_11, x_19, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2455); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_19); +x_2457 = lean_ctor_get(x_2456, 1); +lean_inc(x_2457); +if (lean_is_exclusive(x_2456)) { + lean_ctor_release(x_2456, 0); + lean_ctor_release(x_2456, 1); + x_2458 = x_2456; +} else { + lean_dec_ref(x_2456); + x_2458 = lean_box(0); +} +if (lean_is_scalar(x_2458)) { + x_2459 = lean_alloc_ctor(0, 2, 0); +} else { + x_2459 = x_2458; +} +lean_ctor_set(x_2459, 0, x_2); +lean_ctor_set(x_2459, 1, x_2457); +return x_2459; +} +else +{ +lean_object* x_2460; lean_object* x_2461; lean_object* x_2462; lean_object* x_2463; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2460 = lean_ctor_get(x_2454, 0); +lean_inc(x_2460); +x_2461 = lean_ctor_get(x_2454, 1); +lean_inc(x_2461); +if (lean_is_exclusive(x_2454)) { + lean_ctor_release(x_2454, 0); + lean_ctor_release(x_2454, 1); + x_2462 = x_2454; +} else { + lean_dec_ref(x_2454); + x_2462 = lean_box(0); +} +if (lean_is_scalar(x_2462)) { + x_2463 = lean_alloc_ctor(1, 2, 0); +} else { + x_2463 = x_2462; +} +lean_ctor_set(x_2463, 0, x_2460); +lean_ctor_set(x_2463, 1, x_2461); +return x_2463; +} +} +} +else +{ +lean_object* x_2472; lean_object* x_2473; lean_object* x_2474; lean_object* x_2475; +lean_inc(x_2); +x_2472 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2472, 0, x_2); +x_2473 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_2451, x_2472, x_4, x_5, x_6, x_7, x_1894, x_9, x_2306); +x_2474 = lean_ctor_get(x_2473, 1); +lean_inc(x_2474); +lean_dec(x_2473); +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_2475 = x_2474; +goto block_2486; +} +else +{ +lean_object* x_2487; lean_object* x_2488; +x_2487 = lean_ctor_get(x_13, 0); +lean_inc(x_2487); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2488 = l_Lean_Elab_Term_isDefEq(x_2487, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_2474); +if (lean_obj_tag(x_2488) == 0) +{ +lean_object* x_2489; +x_2489 = lean_ctor_get(x_2488, 1); +lean_inc(x_2489); +lean_dec(x_2488); +x_2475 = x_2489; +goto block_2486; +} +else +{ +lean_object* x_2490; lean_object* x_2491; lean_object* x_2492; lean_object* x_2493; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2490 = lean_ctor_get(x_2488, 0); +lean_inc(x_2490); +x_2491 = lean_ctor_get(x_2488, 1); +lean_inc(x_2491); +if (lean_is_exclusive(x_2488)) { + lean_ctor_release(x_2488, 0); + lean_ctor_release(x_2488, 1); + x_2492 = x_2488; +} else { + lean_dec_ref(x_2488); + x_2492 = lean_box(0); +} +if (lean_is_scalar(x_2492)) { + x_2493 = lean_alloc_ctor(1, 2, 0); +} else { + x_2493 = x_2492; +} +lean_ctor_set(x_2493, 0, x_2490); +lean_ctor_set(x_2493, 1, x_2491); +return x_2493; +} +} +block_2486: +{ +lean_object* x_2476; +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2476 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2475); +lean_dec(x_17); +if (lean_obj_tag(x_2476) == 0) +{ +lean_object* x_2477; lean_object* x_2478; lean_object* x_2479; lean_object* x_2480; lean_object* x_2481; +x_2477 = lean_ctor_get(x_2476, 1); +lean_inc(x_2477); +lean_dec(x_2476); +lean_inc(x_2); +x_2478 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__15(x_2, x_11, x_19, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2477); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_19); +x_2479 = lean_ctor_get(x_2478, 1); +lean_inc(x_2479); +if (lean_is_exclusive(x_2478)) { + lean_ctor_release(x_2478, 0); + lean_ctor_release(x_2478, 1); + x_2480 = x_2478; +} else { + lean_dec_ref(x_2478); + x_2480 = lean_box(0); +} +if (lean_is_scalar(x_2480)) { + x_2481 = lean_alloc_ctor(0, 2, 0); +} else { + x_2481 = x_2480; +} +lean_ctor_set(x_2481, 0, x_2); +lean_ctor_set(x_2481, 1, x_2479); +return x_2481; +} +else +{ +lean_object* x_2482; lean_object* x_2483; lean_object* x_2484; lean_object* x_2485; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2482 = lean_ctor_get(x_2476, 0); +lean_inc(x_2482); +x_2483 = lean_ctor_get(x_2476, 1); +lean_inc(x_2483); +if (lean_is_exclusive(x_2476)) { + lean_ctor_release(x_2476, 0); + lean_ctor_release(x_2476, 1); + x_2484 = x_2476; +} else { + lean_dec_ref(x_2476); + x_2484 = lean_box(0); +} +if (lean_is_scalar(x_2484)) { + x_2485 = lean_alloc_ctor(1, 2, 0); +} else { + x_2485 = x_2484; +} +lean_ctor_set(x_2485, 0, x_2482); +lean_ctor_set(x_2485, 1, x_2483); +return x_2485; +} +} +} +} +} +} +else +{ +lean_object* x_2494; lean_object* x_2495; +lean_dec(x_2308); +lean_dec(x_1978); +lean_dec(x_1887); +lean_dec(x_3); +x_2494 = lean_array_fget(x_12, x_15); +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_2495 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2494, x_1979, x_4, x_5, x_6, x_7, x_1894, x_9, x_2306); +if (lean_obj_tag(x_2495) == 0) +{ +lean_object* x_2496; lean_object* x_2497; lean_object* x_2498; lean_object* x_2499; lean_object* x_2500; lean_object* x_2501; lean_object* x_2502; +x_2496 = lean_ctor_get(x_2495, 0); +lean_inc(x_2496); +x_2497 = lean_ctor_get(x_2495, 1); +lean_inc(x_2497); +lean_dec(x_2495); +x_2498 = lean_unsigned_to_nat(1u); +x_2499 = lean_nat_add(x_15, x_2498); +lean_dec(x_15); +x_2500 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_2500, 0, x_11); +lean_ctor_set(x_2500, 1, x_12); +lean_ctor_set(x_2500, 2, x_13); +lean_ctor_set(x_2500, 3, x_2499); +lean_ctor_set(x_2500, 4, x_16); +lean_ctor_set(x_2500, 5, x_17); +lean_ctor_set(x_2500, 6, x_18); +lean_ctor_set(x_2500, 7, x_19); +lean_ctor_set_uint8(x_2500, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_2500, sizeof(void*)*8 + 1, x_2307); +lean_inc(x_2496); +x_2501 = l_Lean_mkApp(x_2, x_2496); +x_2502 = lean_expr_instantiate1(x_1980, x_2496); +lean_dec(x_2496); +lean_dec(x_1980); +x_1 = x_2500; +x_2 = x_2501; +x_3 = x_2502; +x_8 = x_1894; +x_10 = x_2497; +goto _start; +} +else +{ +lean_object* x_2504; lean_object* x_2505; lean_object* x_2506; lean_object* x_2507; +lean_dec(x_1980); +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2504 = lean_ctor_get(x_2495, 0); +lean_inc(x_2504); +x_2505 = lean_ctor_get(x_2495, 1); +lean_inc(x_2505); +if (lean_is_exclusive(x_2495)) { + lean_ctor_release(x_2495, 0); + lean_ctor_release(x_2495, 1); + x_2506 = x_2495; +} else { + lean_dec_ref(x_2495); + x_2506 = lean_box(0); +} +if (lean_is_scalar(x_2506)) { + x_2507 = lean_alloc_ctor(1, 2, 0); +} else { + x_2507 = x_2506; +} +lean_ctor_set(x_2507, 0, x_2504); +lean_ctor_set(x_2507, 1, x_2505); +return x_2507; +} +} } else { lean_object* x_2508; lean_object* x_2509; lean_object* x_2510; lean_object* x_2511; -lean_dec(x_1924); +lean_dec(x_2305); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_1978); +lean_dec(x_1894); +lean_dec(x_1887); lean_dec(x_19); +lean_dec(x_18); lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); -x_2508 = lean_ctor_get(x_2506, 0); +x_2508 = lean_ctor_get(x_2304, 0); lean_inc(x_2508); -x_2509 = lean_ctor_get(x_2506, 1); +x_2509 = lean_ctor_get(x_2304, 1); lean_inc(x_2509); -if (lean_is_exclusive(x_2506)) { - lean_ctor_release(x_2506, 0); - lean_ctor_release(x_2506, 1); - x_2510 = x_2506; +if (lean_is_exclusive(x_2304)) { + lean_ctor_release(x_2304, 0); + lean_ctor_release(x_2304, 1); + x_2510 = x_2304; } else { - lean_dec_ref(x_2506); + lean_dec_ref(x_2304); x_2510 = lean_box(0); } if (lean_is_scalar(x_2510)) { @@ -17440,385 +17350,14 @@ lean_ctor_set(x_2511, 1, x_2509); return x_2511; } } -block_2504: -{ -lean_object* x_2494; -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_2494 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2493); -lean_dec(x_17); -if (lean_obj_tag(x_2494) == 0) -{ -lean_object* x_2495; lean_object* x_2496; lean_object* x_2497; lean_object* x_2498; lean_object* x_2499; -x_2495 = lean_ctor_get(x_2494, 1); -lean_inc(x_2495); -lean_dec(x_2494); -lean_inc(x_2); -x_2496 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__14(x_2, x_11, x_19, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2495); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_19); -x_2497 = lean_ctor_get(x_2496, 1); -lean_inc(x_2497); -if (lean_is_exclusive(x_2496)) { - lean_ctor_release(x_2496, 0); - lean_ctor_release(x_2496, 1); - x_2498 = x_2496; -} else { - lean_dec_ref(x_2496); - x_2498 = lean_box(0); -} -if (lean_is_scalar(x_2498)) { - x_2499 = lean_alloc_ctor(0, 2, 0); -} else { - x_2499 = x_2498; -} -lean_ctor_set(x_2499, 0, x_2); -lean_ctor_set(x_2499, 1, x_2497); -return x_2499; -} -else -{ -lean_object* x_2500; lean_object* x_2501; lean_object* x_2502; lean_object* x_2503; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2500 = lean_ctor_get(x_2494, 0); -lean_inc(x_2500); -x_2501 = lean_ctor_get(x_2494, 1); -lean_inc(x_2501); -if (lean_is_exclusive(x_2494)) { - lean_ctor_release(x_2494, 0); - lean_ctor_release(x_2494, 1); - x_2502 = x_2494; -} else { - lean_dec_ref(x_2494); - x_2502 = lean_box(0); -} -if (lean_is_scalar(x_2502)) { - x_2503 = lean_alloc_ctor(1, 2, 0); -} else { - x_2503 = x_2502; -} -lean_ctor_set(x_2503, 0, x_2500); -lean_ctor_set(x_2503, 1, x_2501); -return x_2503; -} -} -} -else -{ -lean_object* x_2512; lean_object* x_2513; lean_object* x_2514; lean_object* x_2515; -lean_inc(x_2); -x_2512 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2512, 0, x_2); -x_2513 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_2491, x_2512, x_4, x_5, x_6, x_7, x_1924, x_9, x_2341); -x_2514 = lean_ctor_get(x_2513, 1); -lean_inc(x_2514); -lean_dec(x_2513); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_2515 = x_2514; -goto block_2526; -} -else -{ -lean_object* x_2527; lean_object* x_2528; -x_2527 = lean_ctor_get(x_13, 0); -lean_inc(x_2527); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_2528 = l_Lean_Elab_Term_isDefEq(x_2527, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_2514); -if (lean_obj_tag(x_2528) == 0) -{ -lean_object* x_2529; -x_2529 = lean_ctor_get(x_2528, 1); -lean_inc(x_2529); -lean_dec(x_2528); -x_2515 = x_2529; -goto block_2526; -} -else -{ -lean_object* x_2530; lean_object* x_2531; lean_object* x_2532; lean_object* x_2533; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2530 = lean_ctor_get(x_2528, 0); -lean_inc(x_2530); -x_2531 = lean_ctor_get(x_2528, 1); -lean_inc(x_2531); -if (lean_is_exclusive(x_2528)) { - lean_ctor_release(x_2528, 0); - lean_ctor_release(x_2528, 1); - x_2532 = x_2528; -} else { - lean_dec_ref(x_2528); - x_2532 = lean_box(0); -} -if (lean_is_scalar(x_2532)) { - x_2533 = lean_alloc_ctor(1, 2, 0); -} else { - x_2533 = x_2532; -} -lean_ctor_set(x_2533, 0, x_2530); -lean_ctor_set(x_2533, 1, x_2531); -return x_2533; -} -} -block_2526: -{ -lean_object* x_2516; -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_2516 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2515); -lean_dec(x_17); -if (lean_obj_tag(x_2516) == 0) -{ -lean_object* x_2517; lean_object* x_2518; lean_object* x_2519; lean_object* x_2520; lean_object* x_2521; -x_2517 = lean_ctor_get(x_2516, 1); -lean_inc(x_2517); -lean_dec(x_2516); -lean_inc(x_2); -x_2518 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__15(x_2, x_11, x_19, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2517); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_19); -x_2519 = lean_ctor_get(x_2518, 1); -lean_inc(x_2519); -if (lean_is_exclusive(x_2518)) { - lean_ctor_release(x_2518, 0); - lean_ctor_release(x_2518, 1); - x_2520 = x_2518; -} else { - lean_dec_ref(x_2518); - x_2520 = lean_box(0); -} -if (lean_is_scalar(x_2520)) { - x_2521 = lean_alloc_ctor(0, 2, 0); -} else { - x_2521 = x_2520; -} -lean_ctor_set(x_2521, 0, x_2); -lean_ctor_set(x_2521, 1, x_2519); -return x_2521; -} -else -{ -lean_object* x_2522; lean_object* x_2523; lean_object* x_2524; lean_object* x_2525; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2522 = lean_ctor_get(x_2516, 0); -lean_inc(x_2522); -x_2523 = lean_ctor_get(x_2516, 1); -lean_inc(x_2523); -if (lean_is_exclusive(x_2516)) { - lean_ctor_release(x_2516, 0); - lean_ctor_release(x_2516, 1); - x_2524 = x_2516; -} else { - lean_dec_ref(x_2516); - x_2524 = lean_box(0); -} -if (lean_is_scalar(x_2524)) { - x_2525 = lean_alloc_ctor(1, 2, 0); -} else { - x_2525 = x_2524; -} -lean_ctor_set(x_2525, 0, x_2522); -lean_ctor_set(x_2525, 1, x_2523); -return x_2525; -} -} -} -} -} -} -else -{ -lean_object* x_2534; lean_object* x_2535; -lean_dec(x_2343); -lean_dec(x_2008); -lean_dec(x_1917); -lean_dec(x_3); -x_2534 = lean_array_fget(x_12, x_15); -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_2535 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2534, x_2009, x_4, x_5, x_6, x_7, x_1924, x_9, x_2341); -if (lean_obj_tag(x_2535) == 0) -{ -lean_object* x_2536; lean_object* x_2537; lean_object* x_2538; lean_object* x_2539; lean_object* x_2540; lean_object* x_2541; lean_object* x_2542; -x_2536 = lean_ctor_get(x_2535, 0); -lean_inc(x_2536); -x_2537 = lean_ctor_get(x_2535, 1); -lean_inc(x_2537); -lean_dec(x_2535); -x_2538 = lean_unsigned_to_nat(1u); -x_2539 = lean_nat_add(x_15, x_2538); -lean_dec(x_15); -x_2540 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_2540, 0, x_11); -lean_ctor_set(x_2540, 1, x_12); -lean_ctor_set(x_2540, 2, x_13); -lean_ctor_set(x_2540, 3, x_2539); -lean_ctor_set(x_2540, 4, x_16); -lean_ctor_set(x_2540, 5, x_17); -lean_ctor_set(x_2540, 6, x_18); -lean_ctor_set(x_2540, 7, x_19); -lean_ctor_set_uint8(x_2540, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_2540, sizeof(void*)*8 + 1, x_2342); -lean_inc(x_2536); -x_2541 = l_Lean_mkApp(x_2, x_2536); -x_2542 = lean_expr_instantiate1(x_2010, x_2536); -lean_dec(x_2536); -lean_dec(x_2010); -x_1 = x_2540; -x_2 = x_2541; -x_3 = x_2542; -x_8 = x_1924; -x_10 = x_2537; -goto _start; -} -else -{ -lean_object* x_2544; lean_object* x_2545; lean_object* x_2546; lean_object* x_2547; -lean_dec(x_2010); -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2544 = lean_ctor_get(x_2535, 0); -lean_inc(x_2544); -x_2545 = lean_ctor_get(x_2535, 1); -lean_inc(x_2545); -if (lean_is_exclusive(x_2535)) { - lean_ctor_release(x_2535, 0); - lean_ctor_release(x_2535, 1); - x_2546 = x_2535; -} else { - lean_dec_ref(x_2535); - x_2546 = lean_box(0); -} -if (lean_is_scalar(x_2546)) { - x_2547 = lean_alloc_ctor(1, 2, 0); -} else { - x_2547 = x_2546; -} -lean_ctor_set(x_2547, 0, x_2544); -lean_ctor_set(x_2547, 1, x_2545); -return x_2547; -} -} -} -else -{ -lean_object* x_2548; lean_object* x_2549; lean_object* x_2550; lean_object* x_2551; -lean_dec(x_2340); -lean_dec(x_2010); -lean_dec(x_2009); -lean_dec(x_2008); -lean_dec(x_1924); -lean_dec(x_1917); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_2548 = lean_ctor_get(x_2339, 0); -lean_inc(x_2548); -x_2549 = lean_ctor_get(x_2339, 1); -lean_inc(x_2549); -if (lean_is_exclusive(x_2339)) { - lean_ctor_release(x_2339, 0); - lean_ctor_release(x_2339, 1); - x_2550 = x_2339; -} else { - lean_dec_ref(x_2339); - x_2550 = lean_box(0); -} -if (lean_is_scalar(x_2550)) { - x_2551 = lean_alloc_ctor(1, 2, 0); -} else { - x_2551 = x_2550; -} -lean_ctor_set(x_2551, 0, x_2548); -lean_ctor_set(x_2551, 1, x_2549); -return x_2551; -} -} case 3: { if (x_14 == 0) { -lean_object* x_2552; lean_object* x_2553; uint8_t x_2554; lean_object* x_2555; lean_object* x_2556; lean_object* x_2557; lean_object* x_2558; lean_object* x_2559; lean_object* x_2560; lean_object* x_2561; lean_object* x_2562; lean_object* x_2563; -lean_dec(x_2008); -lean_dec(x_1926); -lean_dec(x_1917); +lean_object* x_2512; lean_object* x_2513; uint8_t x_2514; lean_object* x_2515; lean_object* x_2516; lean_object* x_2517; lean_object* x_2518; lean_object* x_2519; lean_object* x_2520; lean_object* x_2521; lean_object* x_2522; lean_object* x_2523; +lean_dec(x_1978); +lean_dec(x_1896); +lean_dec(x_1887); lean_dec(x_3); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); @@ -17829,66 +17368,66 @@ if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 5); lean_ctor_release(x_1, 6); lean_ctor_release(x_1, 7); - x_2552 = x_1; + x_2512 = x_1; } else { lean_dec_ref(x_1); - x_2552 = lean_box(0); + x_2512 = lean_box(0); } -x_2553 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2553, 0, x_2009); -x_2554 = 1; -x_2555 = lean_box(0); +x_2513 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2513, 0, x_1979); +x_2514 = 1; +x_2515 = lean_box(0); lean_inc(x_6); lean_inc(x_4); -x_2556 = l_Lean_Meta_mkFreshExprMVar___at_Lean_Elab_Term_tryCoe___spec__2(x_2553, x_2554, x_2555, x_4, x_5, x_6, x_7, x_1924, x_9, x_1927); -x_2557 = lean_ctor_get(x_2556, 0); -lean_inc(x_2557); -x_2558 = lean_ctor_get(x_2556, 1); -lean_inc(x_2558); -lean_dec(x_2556); -x_2559 = l_Lean_Expr_mvarId_x21(x_2557); -x_2560 = lean_array_push(x_17, x_2559); -if (lean_is_scalar(x_2552)) { - x_2561 = lean_alloc_ctor(0, 8, 2); +x_2516 = l_Lean_Meta_mkFreshExprMVar___at_Lean_Elab_Term_tryCoe___spec__2(x_2513, x_2514, x_2515, x_4, x_5, x_6, x_7, x_1894, x_9, x_1897); +x_2517 = lean_ctor_get(x_2516, 0); +lean_inc(x_2517); +x_2518 = lean_ctor_get(x_2516, 1); +lean_inc(x_2518); +lean_dec(x_2516); +x_2519 = l_Lean_Expr_mvarId_x21(x_2517); +x_2520 = lean_array_push(x_17, x_2519); +if (lean_is_scalar(x_2512)) { + x_2521 = lean_alloc_ctor(0, 8, 2); } else { - x_2561 = x_2552; + x_2521 = x_2512; } -lean_ctor_set(x_2561, 0, x_11); -lean_ctor_set(x_2561, 1, x_12); -lean_ctor_set(x_2561, 2, x_13); -lean_ctor_set(x_2561, 3, x_15); -lean_ctor_set(x_2561, 4, x_16); -lean_ctor_set(x_2561, 5, x_2560); -lean_ctor_set(x_2561, 6, x_18); -lean_ctor_set(x_2561, 7, x_19); -lean_ctor_set_uint8(x_2561, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_2561, sizeof(void*)*8 + 1, x_1916); -lean_inc(x_2557); -x_2562 = l_Lean_mkApp(x_2, x_2557); -x_2563 = lean_expr_instantiate1(x_2010, x_2557); -lean_dec(x_2557); -lean_dec(x_2010); -x_1 = x_2561; -x_2 = x_2562; -x_3 = x_2563; -x_8 = x_1924; -x_10 = x_2558; +lean_ctor_set(x_2521, 0, x_11); +lean_ctor_set(x_2521, 1, x_12); +lean_ctor_set(x_2521, 2, x_13); +lean_ctor_set(x_2521, 3, x_15); +lean_ctor_set(x_2521, 4, x_16); +lean_ctor_set(x_2521, 5, x_2520); +lean_ctor_set(x_2521, 6, x_18); +lean_ctor_set(x_2521, 7, x_19); +lean_ctor_set_uint8(x_2521, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_2521, sizeof(void*)*8 + 1, x_1886); +lean_inc(x_2517); +x_2522 = l_Lean_mkApp(x_2, x_2517); +x_2523 = lean_expr_instantiate1(x_1980, x_2517); +lean_dec(x_2517); +lean_dec(x_1980); +x_1 = x_2521; +x_2 = x_2522; +x_3 = x_2523; +x_8 = x_1894; +x_10 = x_2518; goto _start; } else { -uint8_t x_2565; -x_2565 = l___private_Lean_Elab_App_9__nextArgIsHole(x_1); -if (x_2565 == 0) +uint8_t x_2525; +x_2525 = l___private_Lean_Elab_App_9__nextArgIsHole(x_1); +if (x_2525 == 0) { -lean_object* x_2566; lean_object* x_2567; +lean_object* x_2526; lean_object* x_2527; lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); lean_inc(x_1); -x_2566 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1926, x_4, x_5, x_6, x_7, x_1924, x_9, x_1927); +x_2526 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1896, x_4, x_5, x_6, x_7, x_1894, x_9, x_1897); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); lean_ctor_release(x_1, 1); @@ -17898,116 +17437,116 @@ if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 5); lean_ctor_release(x_1, 6); lean_ctor_release(x_1, 7); - x_2567 = x_1; + x_2527 = x_1; } else { lean_dec_ref(x_1); - x_2567 = lean_box(0); + x_2527 = lean_box(0); } -if (lean_obj_tag(x_2566) == 0) +if (lean_obj_tag(x_2526) == 0) { -lean_object* x_2568; lean_object* x_2569; uint8_t x_2570; -x_2568 = lean_ctor_get(x_2566, 1); -lean_inc(x_2568); -lean_dec(x_2566); -x_2569 = lean_array_get_size(x_12); -x_2570 = lean_nat_dec_lt(x_15, x_2569); -lean_dec(x_2569); -if (x_2570 == 0) +lean_object* x_2528; lean_object* x_2529; uint8_t x_2530; +x_2528 = lean_ctor_get(x_2526, 1); +lean_inc(x_2528); +lean_dec(x_2526); +x_2529 = lean_array_get_size(x_12); +x_2530 = lean_nat_dec_lt(x_15, x_2529); +lean_dec(x_2529); +if (x_2530 == 0) { -uint8_t x_2571; -lean_dec(x_2567); -lean_dec(x_2010); -lean_dec(x_2009); +uint8_t x_2531; +lean_dec(x_2527); +lean_dec(x_1980); +lean_dec(x_1979); lean_dec(x_18); lean_dec(x_15); lean_dec(x_12); -x_2571 = l_Array_isEmpty___rarg(x_16); -if (x_2571 == 0) +x_2531 = l_Array_isEmpty___rarg(x_16); +if (x_2531 == 0) { -lean_object* x_2572; lean_object* x_2573; lean_object* x_2574; lean_object* x_2575; lean_object* x_2576; lean_object* x_2577; lean_object* x_2578; lean_object* x_2579; lean_object* x_2580; lean_object* x_2581; lean_object* x_2582; lean_object* x_2583; lean_object* x_2584; lean_object* x_2585; lean_object* x_2586; lean_object* x_2587; -lean_dec(x_1917); +lean_object* x_2532; lean_object* x_2533; lean_object* x_2534; lean_object* x_2535; lean_object* x_2536; lean_object* x_2537; lean_object* x_2538; lean_object* x_2539; lean_object* x_2540; lean_object* x_2541; lean_object* x_2542; lean_object* x_2543; lean_object* x_2544; lean_object* x_2545; lean_object* x_2546; lean_object* x_2547; +lean_dec(x_1887); lean_dec(x_19); lean_dec(x_17); lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_2572 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_2572, 0, x_2008); -x_2573 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_2574 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2574, 0, x_2573); -lean_ctor_set(x_2574, 1, x_2572); -x_2575 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_2576 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2576, 0, x_2574); -lean_ctor_set(x_2576, 1, x_2575); -x_2577 = x_16; -x_2578 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_2012, x_2577); -x_2579 = x_2578; -x_2580 = l_Array_toList___rarg(x_2579); -lean_dec(x_2579); -x_2581 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2580); -x_2582 = l_Array_HasRepr___rarg___closed__1; -x_2583 = lean_string_append(x_2582, x_2581); -lean_dec(x_2581); -x_2584 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2584, 0, x_2583); -x_2585 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2585, 0, x_2584); -x_2586 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2586, 0, x_2576); -lean_ctor_set(x_2586, 1, x_2585); -x_2587 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2586, x_4, x_5, x_6, x_7, x_1924, x_9, x_2568); +x_2532 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_2532, 0, x_1978); +x_2533 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_2534 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2534, 0, x_2533); +lean_ctor_set(x_2534, 1, x_2532); +x_2535 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_2536 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2536, 0, x_2534); +lean_ctor_set(x_2536, 1, x_2535); +x_2537 = x_16; +x_2538 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_1982, x_2537); +x_2539 = x_2538; +x_2540 = l_Array_toList___rarg(x_2539); +lean_dec(x_2539); +x_2541 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2540); +x_2542 = l_Array_HasRepr___rarg___closed__1; +x_2543 = lean_string_append(x_2542, x_2541); +lean_dec(x_2541); +x_2544 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2544, 0, x_2543); +x_2545 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2545, 0, x_2544); +x_2546 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2546, 0, x_2536); +lean_ctor_set(x_2546, 1, x_2545); +x_2547 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2546, x_4, x_5, x_6, x_7, x_1894, x_9, x_2528); lean_dec(x_9); -lean_dec(x_1924); +lean_dec(x_1894); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_2587; +return x_2547; } else { -lean_object* x_2588; uint8_t x_2589; -lean_dec(x_2008); +lean_object* x_2548; uint8_t x_2549; +lean_dec(x_1978); lean_dec(x_16); -x_2588 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_2589 = l_Lean_checkTraceOption(x_1917, x_2588); -lean_dec(x_1917); -if (x_2589 == 0) +x_2548 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_2549 = l_Lean_checkTraceOption(x_1887, x_2548); +lean_dec(x_1887); +if (x_2549 == 0) { -lean_object* x_2590; +lean_object* x_2550; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_2590 = x_2568; -goto block_2601; +x_2550 = x_2528; +goto block_2561; } else { -lean_object* x_2602; lean_object* x_2603; -x_2602 = lean_ctor_get(x_13, 0); -lean_inc(x_2602); +lean_object* x_2562; lean_object* x_2563; +x_2562 = lean_ctor_get(x_13, 0); +lean_inc(x_2562); lean_dec(x_13); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_2603 = l_Lean_Elab_Term_isDefEq(x_2602, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_2568); -if (lean_obj_tag(x_2603) == 0) +x_2563 = l_Lean_Elab_Term_isDefEq(x_2562, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_2528); +if (lean_obj_tag(x_2563) == 0) { -lean_object* x_2604; -x_2604 = lean_ctor_get(x_2603, 1); -lean_inc(x_2604); -lean_dec(x_2603); -x_2590 = x_2604; -goto block_2601; +lean_object* x_2564; +x_2564 = lean_ctor_get(x_2563, 1); +lean_inc(x_2564); +lean_dec(x_2563); +x_2550 = x_2564; +goto block_2561; } else { -lean_object* x_2605; lean_object* x_2606; lean_object* x_2607; lean_object* x_2608; -lean_dec(x_1924); +lean_object* x_2565; lean_object* x_2566; lean_object* x_2567; lean_object* x_2568; +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_17); lean_dec(x_11); @@ -18017,76 +17556,76 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2605 = lean_ctor_get(x_2603, 0); -lean_inc(x_2605); -x_2606 = lean_ctor_get(x_2603, 1); -lean_inc(x_2606); -if (lean_is_exclusive(x_2603)) { - lean_ctor_release(x_2603, 0); - lean_ctor_release(x_2603, 1); - x_2607 = x_2603; +x_2565 = lean_ctor_get(x_2563, 0); +lean_inc(x_2565); +x_2566 = lean_ctor_get(x_2563, 1); +lean_inc(x_2566); +if (lean_is_exclusive(x_2563)) { + lean_ctor_release(x_2563, 0); + lean_ctor_release(x_2563, 1); + x_2567 = x_2563; } else { - lean_dec_ref(x_2603); - x_2607 = lean_box(0); + lean_dec_ref(x_2563); + x_2567 = lean_box(0); } -if (lean_is_scalar(x_2607)) { - x_2608 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2567)) { + x_2568 = lean_alloc_ctor(1, 2, 0); } else { - x_2608 = x_2607; + x_2568 = x_2567; } -lean_ctor_set(x_2608, 0, x_2605); -lean_ctor_set(x_2608, 1, x_2606); -return x_2608; +lean_ctor_set(x_2568, 0, x_2565); +lean_ctor_set(x_2568, 1, x_2566); +return x_2568; } } -block_2601: +block_2561: { -lean_object* x_2591; +lean_object* x_2551; lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_2591 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2590); +x_2551 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2550); lean_dec(x_17); -if (lean_obj_tag(x_2591) == 0) +if (lean_obj_tag(x_2551) == 0) { -lean_object* x_2592; lean_object* x_2593; lean_object* x_2594; lean_object* x_2595; lean_object* x_2596; -x_2592 = lean_ctor_get(x_2591, 1); -lean_inc(x_2592); -lean_dec(x_2591); +lean_object* x_2552; lean_object* x_2553; lean_object* x_2554; lean_object* x_2555; lean_object* x_2556; +x_2552 = lean_ctor_get(x_2551, 1); +lean_inc(x_2552); +lean_dec(x_2551); lean_inc(x_2); -x_2593 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__16(x_2, x_11, x_19, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2592); +x_2553 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__16(x_2, x_11, x_19, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2552); lean_dec(x_9); -lean_dec(x_1924); +lean_dec(x_1894); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); -x_2594 = lean_ctor_get(x_2593, 1); -lean_inc(x_2594); -if (lean_is_exclusive(x_2593)) { - lean_ctor_release(x_2593, 0); - lean_ctor_release(x_2593, 1); - x_2595 = x_2593; +x_2554 = lean_ctor_get(x_2553, 1); +lean_inc(x_2554); +if (lean_is_exclusive(x_2553)) { + lean_ctor_release(x_2553, 0); + lean_ctor_release(x_2553, 1); + x_2555 = x_2553; } else { - lean_dec_ref(x_2593); - x_2595 = lean_box(0); + lean_dec_ref(x_2553); + x_2555 = lean_box(0); } -if (lean_is_scalar(x_2595)) { - x_2596 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_2555)) { + x_2556 = lean_alloc_ctor(0, 2, 0); } else { - x_2596 = x_2595; + x_2556 = x_2555; } -lean_ctor_set(x_2596, 0, x_2); -lean_ctor_set(x_2596, 1, x_2594); -return x_2596; +lean_ctor_set(x_2556, 0, x_2); +lean_ctor_set(x_2556, 1, x_2554); +return x_2556; } else { -lean_object* x_2597; lean_object* x_2598; lean_object* x_2599; lean_object* x_2600; -lean_dec(x_1924); +lean_object* x_2557; lean_object* x_2558; lean_object* x_2559; lean_object* x_2560; +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_11); lean_dec(x_9); @@ -18095,70 +17634,70 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2597 = lean_ctor_get(x_2591, 0); -lean_inc(x_2597); -x_2598 = lean_ctor_get(x_2591, 1); -lean_inc(x_2598); -if (lean_is_exclusive(x_2591)) { - lean_ctor_release(x_2591, 0); - lean_ctor_release(x_2591, 1); - x_2599 = x_2591; +x_2557 = lean_ctor_get(x_2551, 0); +lean_inc(x_2557); +x_2558 = lean_ctor_get(x_2551, 1); +lean_inc(x_2558); +if (lean_is_exclusive(x_2551)) { + lean_ctor_release(x_2551, 0); + lean_ctor_release(x_2551, 1); + x_2559 = x_2551; } else { - lean_dec_ref(x_2591); - x_2599 = lean_box(0); + lean_dec_ref(x_2551); + x_2559 = lean_box(0); } -if (lean_is_scalar(x_2599)) { - x_2600 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2559)) { + x_2560 = lean_alloc_ctor(1, 2, 0); } else { - x_2600 = x_2599; + x_2560 = x_2559; } -lean_ctor_set(x_2600, 0, x_2597); -lean_ctor_set(x_2600, 1, x_2598); -return x_2600; +lean_ctor_set(x_2560, 0, x_2557); +lean_ctor_set(x_2560, 1, x_2558); +return x_2560; } } } else { -lean_object* x_2609; lean_object* x_2610; lean_object* x_2611; lean_object* x_2612; +lean_object* x_2569; lean_object* x_2570; lean_object* x_2571; lean_object* x_2572; lean_inc(x_2); -x_2609 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2609, 0, x_2); -x_2610 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_2588, x_2609, x_4, x_5, x_6, x_7, x_1924, x_9, x_2568); -x_2611 = lean_ctor_get(x_2610, 1); -lean_inc(x_2611); -lean_dec(x_2610); +x_2569 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2569, 0, x_2); +x_2570 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_2548, x_2569, x_4, x_5, x_6, x_7, x_1894, x_9, x_2528); +x_2571 = lean_ctor_get(x_2570, 1); +lean_inc(x_2571); +lean_dec(x_2570); if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_2612 = x_2611; -goto block_2623; +x_2572 = x_2571; +goto block_2583; } else { -lean_object* x_2624; lean_object* x_2625; -x_2624 = lean_ctor_get(x_13, 0); -lean_inc(x_2624); +lean_object* x_2584; lean_object* x_2585; +x_2584 = lean_ctor_get(x_13, 0); +lean_inc(x_2584); lean_dec(x_13); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_2625 = l_Lean_Elab_Term_isDefEq(x_2624, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_2611); -if (lean_obj_tag(x_2625) == 0) +x_2585 = l_Lean_Elab_Term_isDefEq(x_2584, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_2571); +if (lean_obj_tag(x_2585) == 0) { -lean_object* x_2626; -x_2626 = lean_ctor_get(x_2625, 1); -lean_inc(x_2626); -lean_dec(x_2625); -x_2612 = x_2626; -goto block_2623; +lean_object* x_2586; +x_2586 = lean_ctor_get(x_2585, 1); +lean_inc(x_2586); +lean_dec(x_2585); +x_2572 = x_2586; +goto block_2583; } else { -lean_object* x_2627; lean_object* x_2628; lean_object* x_2629; lean_object* x_2630; -lean_dec(x_1924); +lean_object* x_2587; lean_object* x_2588; lean_object* x_2589; lean_object* x_2590; +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_17); lean_dec(x_11); @@ -18168,76 +17707,76 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2627 = lean_ctor_get(x_2625, 0); -lean_inc(x_2627); -x_2628 = lean_ctor_get(x_2625, 1); -lean_inc(x_2628); -if (lean_is_exclusive(x_2625)) { - lean_ctor_release(x_2625, 0); - lean_ctor_release(x_2625, 1); - x_2629 = x_2625; +x_2587 = lean_ctor_get(x_2585, 0); +lean_inc(x_2587); +x_2588 = lean_ctor_get(x_2585, 1); +lean_inc(x_2588); +if (lean_is_exclusive(x_2585)) { + lean_ctor_release(x_2585, 0); + lean_ctor_release(x_2585, 1); + x_2589 = x_2585; } else { - lean_dec_ref(x_2625); - x_2629 = lean_box(0); + lean_dec_ref(x_2585); + x_2589 = lean_box(0); } -if (lean_is_scalar(x_2629)) { - x_2630 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2589)) { + x_2590 = lean_alloc_ctor(1, 2, 0); } else { - x_2630 = x_2629; + x_2590 = x_2589; } -lean_ctor_set(x_2630, 0, x_2627); -lean_ctor_set(x_2630, 1, x_2628); -return x_2630; +lean_ctor_set(x_2590, 0, x_2587); +lean_ctor_set(x_2590, 1, x_2588); +return x_2590; } } -block_2623: +block_2583: { -lean_object* x_2613; +lean_object* x_2573; lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_2613 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2612); +x_2573 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2572); lean_dec(x_17); -if (lean_obj_tag(x_2613) == 0) +if (lean_obj_tag(x_2573) == 0) { -lean_object* x_2614; lean_object* x_2615; lean_object* x_2616; lean_object* x_2617; lean_object* x_2618; -x_2614 = lean_ctor_get(x_2613, 1); -lean_inc(x_2614); -lean_dec(x_2613); +lean_object* x_2574; lean_object* x_2575; lean_object* x_2576; lean_object* x_2577; lean_object* x_2578; +x_2574 = lean_ctor_get(x_2573, 1); +lean_inc(x_2574); +lean_dec(x_2573); lean_inc(x_2); -x_2615 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__17(x_2, x_11, x_19, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2614); +x_2575 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__17(x_2, x_11, x_19, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2574); lean_dec(x_9); -lean_dec(x_1924); +lean_dec(x_1894); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); -x_2616 = lean_ctor_get(x_2615, 1); -lean_inc(x_2616); -if (lean_is_exclusive(x_2615)) { - lean_ctor_release(x_2615, 0); - lean_ctor_release(x_2615, 1); - x_2617 = x_2615; +x_2576 = lean_ctor_get(x_2575, 1); +lean_inc(x_2576); +if (lean_is_exclusive(x_2575)) { + lean_ctor_release(x_2575, 0); + lean_ctor_release(x_2575, 1); + x_2577 = x_2575; } else { - lean_dec_ref(x_2615); - x_2617 = lean_box(0); + lean_dec_ref(x_2575); + x_2577 = lean_box(0); } -if (lean_is_scalar(x_2617)) { - x_2618 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_2577)) { + x_2578 = lean_alloc_ctor(0, 2, 0); } else { - x_2618 = x_2617; + x_2578 = x_2577; } -lean_ctor_set(x_2618, 0, x_2); -lean_ctor_set(x_2618, 1, x_2616); -return x_2618; +lean_ctor_set(x_2578, 0, x_2); +lean_ctor_set(x_2578, 1, x_2576); +return x_2578; } else { -lean_object* x_2619; lean_object* x_2620; lean_object* x_2621; lean_object* x_2622; -lean_dec(x_1924); +lean_object* x_2579; lean_object* x_2580; lean_object* x_2581; lean_object* x_2582; +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_11); lean_dec(x_9); @@ -18246,26 +17785,26 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2619 = lean_ctor_get(x_2613, 0); -lean_inc(x_2619); -x_2620 = lean_ctor_get(x_2613, 1); -lean_inc(x_2620); -if (lean_is_exclusive(x_2613)) { - lean_ctor_release(x_2613, 0); - lean_ctor_release(x_2613, 1); - x_2621 = x_2613; +x_2579 = lean_ctor_get(x_2573, 0); +lean_inc(x_2579); +x_2580 = lean_ctor_get(x_2573, 1); +lean_inc(x_2580); +if (lean_is_exclusive(x_2573)) { + lean_ctor_release(x_2573, 0); + lean_ctor_release(x_2573, 1); + x_2581 = x_2573; } else { - lean_dec_ref(x_2613); - x_2621 = lean_box(0); + lean_dec_ref(x_2573); + x_2581 = lean_box(0); } -if (lean_is_scalar(x_2621)) { - x_2622 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2581)) { + x_2582 = lean_alloc_ctor(1, 2, 0); } else { - x_2622 = x_2621; + x_2582 = x_2581; } -lean_ctor_set(x_2622, 0, x_2619); -lean_ctor_set(x_2622, 1, x_2620); -return x_2622; +lean_ctor_set(x_2582, 0, x_2579); +lean_ctor_set(x_2582, 1, x_2580); +return x_2582; } } } @@ -18273,64 +17812,64 @@ return x_2622; } else { -lean_object* x_2631; lean_object* x_2632; -lean_dec(x_2008); -lean_dec(x_1917); +lean_object* x_2591; lean_object* x_2592; +lean_dec(x_1978); +lean_dec(x_1887); lean_dec(x_3); -x_2631 = lean_array_fget(x_12, x_15); +x_2591 = lean_array_fget(x_12, x_15); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_2632 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2631, x_2009, x_4, x_5, x_6, x_7, x_1924, x_9, x_2568); -if (lean_obj_tag(x_2632) == 0) +x_2592 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2591, x_1979, x_4, x_5, x_6, x_7, x_1894, x_9, x_2528); +if (lean_obj_tag(x_2592) == 0) { -lean_object* x_2633; lean_object* x_2634; lean_object* x_2635; lean_object* x_2636; uint8_t x_2637; lean_object* x_2638; lean_object* x_2639; lean_object* x_2640; -x_2633 = lean_ctor_get(x_2632, 0); -lean_inc(x_2633); -x_2634 = lean_ctor_get(x_2632, 1); -lean_inc(x_2634); -lean_dec(x_2632); -x_2635 = lean_unsigned_to_nat(1u); -x_2636 = lean_nat_add(x_15, x_2635); +lean_object* x_2593; lean_object* x_2594; lean_object* x_2595; lean_object* x_2596; uint8_t x_2597; lean_object* x_2598; lean_object* x_2599; lean_object* x_2600; +x_2593 = lean_ctor_get(x_2592, 0); +lean_inc(x_2593); +x_2594 = lean_ctor_get(x_2592, 1); +lean_inc(x_2594); +lean_dec(x_2592); +x_2595 = lean_unsigned_to_nat(1u); +x_2596 = lean_nat_add(x_15, x_2595); lean_dec(x_15); -x_2637 = 1; -if (lean_is_scalar(x_2567)) { - x_2638 = lean_alloc_ctor(0, 8, 2); +x_2597 = 1; +if (lean_is_scalar(x_2527)) { + x_2598 = lean_alloc_ctor(0, 8, 2); } else { - x_2638 = x_2567; + x_2598 = x_2527; } -lean_ctor_set(x_2638, 0, x_11); -lean_ctor_set(x_2638, 1, x_12); -lean_ctor_set(x_2638, 2, x_13); -lean_ctor_set(x_2638, 3, x_2636); -lean_ctor_set(x_2638, 4, x_16); -lean_ctor_set(x_2638, 5, x_17); -lean_ctor_set(x_2638, 6, x_18); -lean_ctor_set(x_2638, 7, x_19); -lean_ctor_set_uint8(x_2638, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_2638, sizeof(void*)*8 + 1, x_2637); -lean_inc(x_2633); -x_2639 = l_Lean_mkApp(x_2, x_2633); -x_2640 = lean_expr_instantiate1(x_2010, x_2633); -lean_dec(x_2633); -lean_dec(x_2010); -x_1 = x_2638; -x_2 = x_2639; -x_3 = x_2640; -x_8 = x_1924; -x_10 = x_2634; +lean_ctor_set(x_2598, 0, x_11); +lean_ctor_set(x_2598, 1, x_12); +lean_ctor_set(x_2598, 2, x_13); +lean_ctor_set(x_2598, 3, x_2596); +lean_ctor_set(x_2598, 4, x_16); +lean_ctor_set(x_2598, 5, x_17); +lean_ctor_set(x_2598, 6, x_18); +lean_ctor_set(x_2598, 7, x_19); +lean_ctor_set_uint8(x_2598, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_2598, sizeof(void*)*8 + 1, x_2597); +lean_inc(x_2593); +x_2599 = l_Lean_mkApp(x_2, x_2593); +x_2600 = lean_expr_instantiate1(x_1980, x_2593); +lean_dec(x_2593); +lean_dec(x_1980); +x_1 = x_2598; +x_2 = x_2599; +x_3 = x_2600; +x_8 = x_1894; +x_10 = x_2594; goto _start; } else { -lean_object* x_2642; lean_object* x_2643; lean_object* x_2644; lean_object* x_2645; -lean_dec(x_2567); -lean_dec(x_2010); -lean_dec(x_1924); +lean_object* x_2602; lean_object* x_2603; lean_object* x_2604; lean_object* x_2605; +lean_dec(x_2527); +lean_dec(x_1980); +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -18345,38 +17884,38 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2642 = lean_ctor_get(x_2632, 0); -lean_inc(x_2642); -x_2643 = lean_ctor_get(x_2632, 1); -lean_inc(x_2643); -if (lean_is_exclusive(x_2632)) { - lean_ctor_release(x_2632, 0); - lean_ctor_release(x_2632, 1); - x_2644 = x_2632; +x_2602 = lean_ctor_get(x_2592, 0); +lean_inc(x_2602); +x_2603 = lean_ctor_get(x_2592, 1); +lean_inc(x_2603); +if (lean_is_exclusive(x_2592)) { + lean_ctor_release(x_2592, 0); + lean_ctor_release(x_2592, 1); + x_2604 = x_2592; } else { - lean_dec_ref(x_2632); - x_2644 = lean_box(0); + lean_dec_ref(x_2592); + x_2604 = lean_box(0); } -if (lean_is_scalar(x_2644)) { - x_2645 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2604)) { + x_2605 = lean_alloc_ctor(1, 2, 0); } else { - x_2645 = x_2644; + x_2605 = x_2604; } -lean_ctor_set(x_2645, 0, x_2642); -lean_ctor_set(x_2645, 1, x_2643); -return x_2645; +lean_ctor_set(x_2605, 0, x_2602); +lean_ctor_set(x_2605, 1, x_2603); +return x_2605; } } } else { -lean_object* x_2646; lean_object* x_2647; lean_object* x_2648; lean_object* x_2649; -lean_dec(x_2567); -lean_dec(x_2010); -lean_dec(x_2009); -lean_dec(x_2008); -lean_dec(x_1924); -lean_dec(x_1917); +lean_object* x_2606; lean_object* x_2607; lean_object* x_2608; lean_object* x_2609; +lean_dec(x_2527); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_1978); +lean_dec(x_1894); +lean_dec(x_1887); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -18392,34 +17931,34 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_2646 = lean_ctor_get(x_2566, 0); -lean_inc(x_2646); -x_2647 = lean_ctor_get(x_2566, 1); -lean_inc(x_2647); -if (lean_is_exclusive(x_2566)) { - lean_ctor_release(x_2566, 0); - lean_ctor_release(x_2566, 1); - x_2648 = x_2566; +x_2606 = lean_ctor_get(x_2526, 0); +lean_inc(x_2606); +x_2607 = lean_ctor_get(x_2526, 1); +lean_inc(x_2607); +if (lean_is_exclusive(x_2526)) { + lean_ctor_release(x_2526, 0); + lean_ctor_release(x_2526, 1); + x_2608 = x_2526; } else { - lean_dec_ref(x_2566); - x_2648 = lean_box(0); + lean_dec_ref(x_2526); + x_2608 = lean_box(0); } -if (lean_is_scalar(x_2648)) { - x_2649 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2608)) { + x_2609 = lean_alloc_ctor(1, 2, 0); } else { - x_2649 = x_2648; + x_2609 = x_2608; } -lean_ctor_set(x_2649, 0, x_2646); -lean_ctor_set(x_2649, 1, x_2647); -return x_2649; +lean_ctor_set(x_2609, 0, x_2606); +lean_ctor_set(x_2609, 1, x_2607); +return x_2609; } } else { -lean_object* x_2650; lean_object* x_2651; uint8_t x_2652; lean_object* x_2653; lean_object* x_2654; lean_object* x_2655; lean_object* x_2656; lean_object* x_2657; lean_object* x_2658; lean_object* x_2659; lean_object* x_2660; lean_object* x_2661; lean_object* x_2662; lean_object* x_2663; -lean_dec(x_2008); -lean_dec(x_1926); -lean_dec(x_1917); +lean_object* x_2610; lean_object* x_2611; uint8_t x_2612; lean_object* x_2613; lean_object* x_2614; lean_object* x_2615; lean_object* x_2616; lean_object* x_2617; lean_object* x_2618; lean_object* x_2619; lean_object* x_2620; lean_object* x_2621; lean_object* x_2622; lean_object* x_2623; +lean_dec(x_1978); +lean_dec(x_1896); +lean_dec(x_1887); lean_dec(x_3); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); @@ -18430,67 +17969,67 @@ if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 5); lean_ctor_release(x_1, 6); lean_ctor_release(x_1, 7); - x_2650 = x_1; + x_2610 = x_1; } else { lean_dec_ref(x_1); - x_2650 = lean_box(0); + x_2610 = lean_box(0); } -x_2651 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2651, 0, x_2009); -x_2652 = 1; -x_2653 = lean_box(0); +x_2611 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2611, 0, x_1979); +x_2612 = 1; +x_2613 = lean_box(0); lean_inc(x_6); lean_inc(x_4); -x_2654 = l_Lean_Meta_mkFreshExprMVar___at_Lean_Elab_Term_tryCoe___spec__2(x_2651, x_2652, x_2653, x_4, x_5, x_6, x_7, x_1924, x_9, x_1927); -x_2655 = lean_ctor_get(x_2654, 0); -lean_inc(x_2655); -x_2656 = lean_ctor_get(x_2654, 1); -lean_inc(x_2656); -lean_dec(x_2654); -x_2657 = lean_unsigned_to_nat(1u); -x_2658 = lean_nat_add(x_15, x_2657); +x_2614 = l_Lean_Meta_mkFreshExprMVar___at_Lean_Elab_Term_tryCoe___spec__2(x_2611, x_2612, x_2613, x_4, x_5, x_6, x_7, x_1894, x_9, x_1897); +x_2615 = lean_ctor_get(x_2614, 0); +lean_inc(x_2615); +x_2616 = lean_ctor_get(x_2614, 1); +lean_inc(x_2616); +lean_dec(x_2614); +x_2617 = lean_unsigned_to_nat(1u); +x_2618 = lean_nat_add(x_15, x_2617); lean_dec(x_15); -x_2659 = l_Lean_Expr_mvarId_x21(x_2655); -x_2660 = lean_array_push(x_17, x_2659); -if (lean_is_scalar(x_2650)) { - x_2661 = lean_alloc_ctor(0, 8, 2); +x_2619 = l_Lean_Expr_mvarId_x21(x_2615); +x_2620 = lean_array_push(x_17, x_2619); +if (lean_is_scalar(x_2610)) { + x_2621 = lean_alloc_ctor(0, 8, 2); } else { - x_2661 = x_2650; + x_2621 = x_2610; } -lean_ctor_set(x_2661, 0, x_11); -lean_ctor_set(x_2661, 1, x_12); -lean_ctor_set(x_2661, 2, x_13); -lean_ctor_set(x_2661, 3, x_2658); -lean_ctor_set(x_2661, 4, x_16); -lean_ctor_set(x_2661, 5, x_2660); -lean_ctor_set(x_2661, 6, x_18); -lean_ctor_set(x_2661, 7, x_19); -lean_ctor_set_uint8(x_2661, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_2661, sizeof(void*)*8 + 1, x_1916); -lean_inc(x_2655); -x_2662 = l_Lean_mkApp(x_2, x_2655); -x_2663 = lean_expr_instantiate1(x_2010, x_2655); -lean_dec(x_2655); -lean_dec(x_2010); -x_1 = x_2661; -x_2 = x_2662; -x_3 = x_2663; -x_8 = x_1924; -x_10 = x_2656; +lean_ctor_set(x_2621, 0, x_11); +lean_ctor_set(x_2621, 1, x_12); +lean_ctor_set(x_2621, 2, x_13); +lean_ctor_set(x_2621, 3, x_2618); +lean_ctor_set(x_2621, 4, x_16); +lean_ctor_set(x_2621, 5, x_2620); +lean_ctor_set(x_2621, 6, x_18); +lean_ctor_set(x_2621, 7, x_19); +lean_ctor_set_uint8(x_2621, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_2621, sizeof(void*)*8 + 1, x_1886); +lean_inc(x_2615); +x_2622 = l_Lean_mkApp(x_2, x_2615); +x_2623 = lean_expr_instantiate1(x_1980, x_2615); +lean_dec(x_2615); +lean_dec(x_1980); +x_1 = x_2621; +x_2 = x_2622; +x_3 = x_2623; +x_8 = x_1894; +x_10 = x_2616; goto _start; } } } default: { -lean_object* x_2665; lean_object* x_2666; +lean_object* x_2625; lean_object* x_2626; lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); lean_inc(x_1); -x_2665 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1926, x_4, x_5, x_6, x_7, x_1924, x_9, x_1927); +x_2625 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1896, x_4, x_5, x_6, x_7, x_1894, x_9, x_1897); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); lean_ctor_release(x_1, 1); @@ -18500,18 +18039,18 @@ if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 5); lean_ctor_release(x_1, 6); lean_ctor_release(x_1, 7); - x_2666 = x_1; + x_2626 = x_1; } else { lean_dec_ref(x_1); - x_2666 = lean_box(0); + x_2626 = lean_box(0); } -if (lean_obj_tag(x_2665) == 0) +if (lean_obj_tag(x_2625) == 0) { -lean_object* x_2667; uint8_t x_2668; lean_object* x_2669; lean_object* x_2670; uint8_t x_2671; -x_2667 = lean_ctor_get(x_2665, 1); -lean_inc(x_2667); -lean_dec(x_2665); -x_2668 = 1; +lean_object* x_2627; uint8_t x_2628; lean_object* x_2629; lean_object* x_2630; uint8_t x_2631; +x_2627 = lean_ctor_get(x_2625, 1); +lean_inc(x_2627); +lean_dec(x_2625); +x_2628 = 1; lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); @@ -18520,774 +18059,1037 @@ lean_inc(x_15); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -if (lean_is_scalar(x_2666)) { - x_2669 = lean_alloc_ctor(0, 8, 2); +if (lean_is_scalar(x_2626)) { + x_2629 = lean_alloc_ctor(0, 8, 2); } else { - x_2669 = x_2666; + x_2629 = x_2626; } -lean_ctor_set(x_2669, 0, x_11); -lean_ctor_set(x_2669, 1, x_12); -lean_ctor_set(x_2669, 2, x_13); -lean_ctor_set(x_2669, 3, x_15); -lean_ctor_set(x_2669, 4, x_16); -lean_ctor_set(x_2669, 5, x_17); -lean_ctor_set(x_2669, 6, x_18); -lean_ctor_set(x_2669, 7, x_19); -lean_ctor_set_uint8(x_2669, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_2669, sizeof(void*)*8 + 1, x_2668); -x_2670 = lean_array_get_size(x_12); -x_2671 = lean_nat_dec_lt(x_15, x_2670); -lean_dec(x_2670); -if (x_2671 == 0) +lean_ctor_set(x_2629, 0, x_11); +lean_ctor_set(x_2629, 1, x_12); +lean_ctor_set(x_2629, 2, x_13); +lean_ctor_set(x_2629, 3, x_15); +lean_ctor_set(x_2629, 4, x_16); +lean_ctor_set(x_2629, 5, x_17); +lean_ctor_set(x_2629, 6, x_18); +lean_ctor_set(x_2629, 7, x_19); +lean_ctor_set_uint8(x_2629, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_2629, sizeof(void*)*8 + 1, x_2628); +x_2630 = lean_array_get_size(x_12); +x_2631 = lean_nat_dec_lt(x_15, x_2630); +lean_dec(x_2630); +if (x_2631 == 0) { lean_dec(x_18); lean_dec(x_15); lean_dec(x_12); if (x_14 == 0) { -lean_object* x_2672; -x_2672 = l_Lean_Expr_getOptParamDefault_x3f(x_2009); -if (lean_obj_tag(x_2672) == 0) +lean_object* x_2632; +x_2632 = l_Lean_Expr_getOptParamDefault_x3f(x_1979); +if (lean_obj_tag(x_2632) == 0) { -lean_object* x_2673; -x_2673 = l_Lean_Expr_getAutoParamTactic_x3f(x_2009); -if (lean_obj_tag(x_2673) == 0) +lean_object* x_2633; +x_2633 = l_Lean_Expr_getAutoParamTactic_x3f(x_1979); +if (lean_obj_tag(x_2633) == 0) { -uint8_t x_2674; -lean_dec(x_2669); -lean_dec(x_2010); -lean_dec(x_2009); -x_2674 = l_Array_isEmpty___rarg(x_16); -if (x_2674 == 0) +uint8_t x_2634; +lean_dec(x_2629); +lean_dec(x_1980); +lean_dec(x_1979); +x_2634 = l_Array_isEmpty___rarg(x_16); +if (x_2634 == 0) { -lean_object* x_2675; lean_object* x_2676; lean_object* x_2677; lean_object* x_2678; lean_object* x_2679; lean_object* x_2680; lean_object* x_2681; lean_object* x_2682; lean_object* x_2683; lean_object* x_2684; lean_object* x_2685; lean_object* x_2686; lean_object* x_2687; lean_object* x_2688; lean_object* x_2689; lean_object* x_2690; -lean_dec(x_1917); +lean_object* x_2635; lean_object* x_2636; lean_object* x_2637; lean_object* x_2638; lean_object* x_2639; lean_object* x_2640; lean_object* x_2641; lean_object* x_2642; lean_object* x_2643; lean_object* x_2644; lean_object* x_2645; lean_object* x_2646; lean_object* x_2647; lean_object* x_2648; lean_object* x_2649; lean_object* x_2650; +lean_dec(x_1887); lean_dec(x_19); lean_dec(x_17); lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_2675 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_2675, 0, x_2008); -x_2676 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_2677 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2677, 0, x_2676); -lean_ctor_set(x_2677, 1, x_2675); -x_2678 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_2679 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2679, 0, x_2677); -lean_ctor_set(x_2679, 1, x_2678); -x_2680 = x_16; -x_2681 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_2012, x_2680); -x_2682 = x_2681; -x_2683 = l_Array_toList___rarg(x_2682); -lean_dec(x_2682); -x_2684 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2683); -x_2685 = l_Array_HasRepr___rarg___closed__1; -x_2686 = lean_string_append(x_2685, x_2684); -lean_dec(x_2684); -x_2687 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2687, 0, x_2686); -x_2688 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2688, 0, x_2687); -x_2689 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2689, 0, x_2679); -lean_ctor_set(x_2689, 1, x_2688); -x_2690 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2689, x_4, x_5, x_6, x_7, x_1924, x_9, x_2667); +x_2635 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_2635, 0, x_1978); +x_2636 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_2637 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2637, 0, x_2636); +lean_ctor_set(x_2637, 1, x_2635); +x_2638 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_2639 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2639, 0, x_2637); +lean_ctor_set(x_2639, 1, x_2638); +x_2640 = x_16; +x_2641 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_1982, x_2640); +x_2642 = x_2641; +x_2643 = l_Array_toList___rarg(x_2642); +lean_dec(x_2642); +x_2644 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2643); +x_2645 = l_Array_HasRepr___rarg___closed__1; +x_2646 = lean_string_append(x_2645, x_2644); +lean_dec(x_2644); +x_2647 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2647, 0, x_2646); +x_2648 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2648, 0, x_2647); +x_2649 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2649, 0, x_2639); +lean_ctor_set(x_2649, 1, x_2648); +x_2650 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2649, x_4, x_5, x_6, x_7, x_1894, x_9, x_2627); lean_dec(x_9); -lean_dec(x_1924); +lean_dec(x_1894); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_2690; +return x_2650; } else { -lean_object* x_2691; uint8_t x_2692; -lean_dec(x_2008); +lean_object* x_2651; uint8_t x_2652; +lean_dec(x_1978); lean_dec(x_16); -x_2691 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_2692 = l_Lean_checkTraceOption(x_1917, x_2691); -lean_dec(x_1917); -if (x_2692 == 0) +x_2651 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_2652 = l_Lean_checkTraceOption(x_1887, x_2651); +lean_dec(x_1887); +if (x_2652 == 0) { -lean_object* x_2693; +lean_object* x_2653; if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_2693 = x_2667; -goto block_2704; +x_2653 = x_2627; +goto block_2664; } else { -lean_object* x_2705; lean_object* x_2706; -x_2705 = lean_ctor_get(x_13, 0); -lean_inc(x_2705); +lean_object* x_2665; lean_object* x_2666; +x_2665 = lean_ctor_get(x_13, 0); +lean_inc(x_2665); lean_dec(x_13); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_2706 = l_Lean_Elab_Term_isDefEq(x_2705, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_2667); -if (lean_obj_tag(x_2706) == 0) +x_2666 = l_Lean_Elab_Term_isDefEq(x_2665, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_2627); +if (lean_obj_tag(x_2666) == 0) { -lean_object* x_2707; +lean_object* x_2667; +x_2667 = lean_ctor_get(x_2666, 1); +lean_inc(x_2667); +lean_dec(x_2666); +x_2653 = x_2667; +goto block_2664; +} +else +{ +lean_object* x_2668; lean_object* x_2669; lean_object* x_2670; lean_object* x_2671; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2668 = lean_ctor_get(x_2666, 0); +lean_inc(x_2668); +x_2669 = lean_ctor_get(x_2666, 1); +lean_inc(x_2669); +if (lean_is_exclusive(x_2666)) { + lean_ctor_release(x_2666, 0); + lean_ctor_release(x_2666, 1); + x_2670 = x_2666; +} else { + lean_dec_ref(x_2666); + x_2670 = lean_box(0); +} +if (lean_is_scalar(x_2670)) { + x_2671 = lean_alloc_ctor(1, 2, 0); +} else { + x_2671 = x_2670; +} +lean_ctor_set(x_2671, 0, x_2668); +lean_ctor_set(x_2671, 1, x_2669); +return x_2671; +} +} +block_2664: +{ +lean_object* x_2654; +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2654 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2653); +lean_dec(x_17); +if (lean_obj_tag(x_2654) == 0) +{ +lean_object* x_2655; lean_object* x_2656; lean_object* x_2657; lean_object* x_2658; lean_object* x_2659; +x_2655 = lean_ctor_get(x_2654, 1); +lean_inc(x_2655); +lean_dec(x_2654); +lean_inc(x_2); +x_2656 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__18(x_2, x_11, x_19, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2655); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_19); +x_2657 = lean_ctor_get(x_2656, 1); +lean_inc(x_2657); +if (lean_is_exclusive(x_2656)) { + lean_ctor_release(x_2656, 0); + lean_ctor_release(x_2656, 1); + x_2658 = x_2656; +} else { + lean_dec_ref(x_2656); + x_2658 = lean_box(0); +} +if (lean_is_scalar(x_2658)) { + x_2659 = lean_alloc_ctor(0, 2, 0); +} else { + x_2659 = x_2658; +} +lean_ctor_set(x_2659, 0, x_2); +lean_ctor_set(x_2659, 1, x_2657); +return x_2659; +} +else +{ +lean_object* x_2660; lean_object* x_2661; lean_object* x_2662; lean_object* x_2663; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2660 = lean_ctor_get(x_2654, 0); +lean_inc(x_2660); +x_2661 = lean_ctor_get(x_2654, 1); +lean_inc(x_2661); +if (lean_is_exclusive(x_2654)) { + lean_ctor_release(x_2654, 0); + lean_ctor_release(x_2654, 1); + x_2662 = x_2654; +} else { + lean_dec_ref(x_2654); + x_2662 = lean_box(0); +} +if (lean_is_scalar(x_2662)) { + x_2663 = lean_alloc_ctor(1, 2, 0); +} else { + x_2663 = x_2662; +} +lean_ctor_set(x_2663, 0, x_2660); +lean_ctor_set(x_2663, 1, x_2661); +return x_2663; +} +} +} +else +{ +lean_object* x_2672; lean_object* x_2673; lean_object* x_2674; lean_object* x_2675; +lean_inc(x_2); +x_2672 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2672, 0, x_2); +x_2673 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_2651, x_2672, x_4, x_5, x_6, x_7, x_1894, x_9, x_2627); +x_2674 = lean_ctor_get(x_2673, 1); +lean_inc(x_2674); +lean_dec(x_2673); +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_2675 = x_2674; +goto block_2686; +} +else +{ +lean_object* x_2687; lean_object* x_2688; +x_2687 = lean_ctor_get(x_13, 0); +lean_inc(x_2687); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2688 = l_Lean_Elab_Term_isDefEq(x_2687, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_2674); +if (lean_obj_tag(x_2688) == 0) +{ +lean_object* x_2689; +x_2689 = lean_ctor_get(x_2688, 1); +lean_inc(x_2689); +lean_dec(x_2688); +x_2675 = x_2689; +goto block_2686; +} +else +{ +lean_object* x_2690; lean_object* x_2691; lean_object* x_2692; lean_object* x_2693; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2690 = lean_ctor_get(x_2688, 0); +lean_inc(x_2690); +x_2691 = lean_ctor_get(x_2688, 1); +lean_inc(x_2691); +if (lean_is_exclusive(x_2688)) { + lean_ctor_release(x_2688, 0); + lean_ctor_release(x_2688, 1); + x_2692 = x_2688; +} else { + lean_dec_ref(x_2688); + x_2692 = lean_box(0); +} +if (lean_is_scalar(x_2692)) { + x_2693 = lean_alloc_ctor(1, 2, 0); +} else { + x_2693 = x_2692; +} +lean_ctor_set(x_2693, 0, x_2690); +lean_ctor_set(x_2693, 1, x_2691); +return x_2693; +} +} +block_2686: +{ +lean_object* x_2676; +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2676 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2675); +lean_dec(x_17); +if (lean_obj_tag(x_2676) == 0) +{ +lean_object* x_2677; lean_object* x_2678; lean_object* x_2679; lean_object* x_2680; lean_object* x_2681; +x_2677 = lean_ctor_get(x_2676, 1); +lean_inc(x_2677); +lean_dec(x_2676); +lean_inc(x_2); +x_2678 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__19(x_2, x_11, x_19, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2677); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_19); +x_2679 = lean_ctor_get(x_2678, 1); +lean_inc(x_2679); +if (lean_is_exclusive(x_2678)) { + lean_ctor_release(x_2678, 0); + lean_ctor_release(x_2678, 1); + x_2680 = x_2678; +} else { + lean_dec_ref(x_2678); + x_2680 = lean_box(0); +} +if (lean_is_scalar(x_2680)) { + x_2681 = lean_alloc_ctor(0, 2, 0); +} else { + x_2681 = x_2680; +} +lean_ctor_set(x_2681, 0, x_2); +lean_ctor_set(x_2681, 1, x_2679); +return x_2681; +} +else +{ +lean_object* x_2682; lean_object* x_2683; lean_object* x_2684; lean_object* x_2685; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2682 = lean_ctor_get(x_2676, 0); +lean_inc(x_2682); +x_2683 = lean_ctor_get(x_2676, 1); +lean_inc(x_2683); +if (lean_is_exclusive(x_2676)) { + lean_ctor_release(x_2676, 0); + lean_ctor_release(x_2676, 1); + x_2684 = x_2676; +} else { + lean_dec_ref(x_2676); + x_2684 = lean_box(0); +} +if (lean_is_scalar(x_2684)) { + x_2685 = lean_alloc_ctor(1, 2, 0); +} else { + x_2685 = x_2684; +} +lean_ctor_set(x_2685, 0, x_2682); +lean_ctor_set(x_2685, 1, x_2683); +return x_2685; +} +} +} +} +} +else +{ +lean_object* x_2694; +lean_dec(x_1978); +lean_dec(x_1887); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_3); +x_2694 = lean_ctor_get(x_2633, 0); +lean_inc(x_2694); +lean_dec(x_2633); +if (lean_obj_tag(x_2694) == 4) +{ +lean_object* x_2695; lean_object* x_2696; lean_object* x_2697; lean_object* x_2698; lean_object* x_2699; lean_object* x_2700; +x_2695 = lean_ctor_get(x_2694, 0); +lean_inc(x_2695); +lean_dec(x_2694); +x_2696 = lean_st_ref_get(x_9, x_2627); +x_2697 = lean_ctor_get(x_2696, 0); +lean_inc(x_2697); +x_2698 = lean_ctor_get(x_2696, 1); +lean_inc(x_2698); +lean_dec(x_2696); +x_2699 = lean_ctor_get(x_2697, 0); +lean_inc(x_2699); +lean_dec(x_2697); +x_2700 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_2699, x_2695); +if (lean_obj_tag(x_2700) == 0) +{ +lean_object* x_2701; lean_object* x_2702; lean_object* x_2703; lean_object* x_2704; +lean_dec(x_2629); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_11); +lean_dec(x_2); +x_2701 = lean_ctor_get(x_2700, 0); +lean_inc(x_2701); +lean_dec(x_2700); +x_2702 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2702, 0, x_2701); +x_2703 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2703, 0, x_2702); +x_2704 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2703, x_4, x_5, x_6, x_7, x_1894, x_9, x_2698); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_2704; +} +else +{ +lean_object* x_2705; lean_object* x_2706; lean_object* x_2707; lean_object* x_2708; lean_object* x_2709; lean_object* x_2710; lean_object* x_2711; lean_object* x_2712; lean_object* x_2713; lean_object* x_2714; lean_object* x_2715; lean_object* x_2716; lean_object* x_2717; lean_object* x_2718; lean_object* x_2719; lean_object* x_2720; lean_object* x_2721; lean_object* x_2722; lean_object* x_2723; lean_object* x_2724; lean_object* x_2725; lean_object* x_2726; lean_object* x_2727; lean_object* x_2728; lean_object* x_2729; lean_object* x_2730; lean_object* x_2731; lean_object* x_2732; lean_object* x_2733; lean_object* x_2734; lean_object* x_2735; lean_object* x_2736; lean_object* x_2737; lean_object* x_2738; lean_object* x_2739; +x_2705 = lean_ctor_get(x_2700, 0); +lean_inc(x_2705); +lean_dec(x_2700); +x_2706 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_1894, x_9, x_2698); x_2707 = lean_ctor_get(x_2706, 1); lean_inc(x_2707); lean_dec(x_2706); -x_2693 = x_2707; -goto block_2704; -} -else -{ -lean_object* x_2708; lean_object* x_2709; lean_object* x_2710; lean_object* x_2711; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2708 = lean_ctor_get(x_2706, 0); -lean_inc(x_2708); -x_2709 = lean_ctor_get(x_2706, 1); +x_2708 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_2707); +x_2709 = lean_ctor_get(x_2708, 1); lean_inc(x_2709); -if (lean_is_exclusive(x_2706)) { - lean_ctor_release(x_2706, 0); - lean_ctor_release(x_2706, 1); - x_2710 = x_2706; -} else { - lean_dec_ref(x_2706); - x_2710 = lean_box(0); -} -if (lean_is_scalar(x_2710)) { - x_2711 = lean_alloc_ctor(1, 2, 0); -} else { - x_2711 = x_2710; -} -lean_ctor_set(x_2711, 0, x_2708); -lean_ctor_set(x_2711, 1, x_2709); -return x_2711; -} -} -block_2704: -{ -lean_object* x_2694; -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_2694 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2693); -lean_dec(x_17); -if (lean_obj_tag(x_2694) == 0) -{ -lean_object* x_2695; lean_object* x_2696; lean_object* x_2697; lean_object* x_2698; lean_object* x_2699; -x_2695 = lean_ctor_get(x_2694, 1); -lean_inc(x_2695); -lean_dec(x_2694); -lean_inc(x_2); -x_2696 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__18(x_2, x_11, x_19, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2695); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_19); -x_2697 = lean_ctor_get(x_2696, 1); -lean_inc(x_2697); -if (lean_is_exclusive(x_2696)) { - lean_ctor_release(x_2696, 0); - lean_ctor_release(x_2696, 1); - x_2698 = x_2696; -} else { - lean_dec_ref(x_2696); - x_2698 = lean_box(0); -} -if (lean_is_scalar(x_2698)) { - x_2699 = lean_alloc_ctor(0, 2, 0); -} else { - x_2699 = x_2698; -} -lean_ctor_set(x_2699, 0, x_2); -lean_ctor_set(x_2699, 1, x_2697); -return x_2699; -} -else -{ -lean_object* x_2700; lean_object* x_2701; lean_object* x_2702; lean_object* x_2703; -lean_dec(x_1924); -lean_dec(x_19); +lean_dec(x_2708); +x_2710 = l_Lean_Syntax_getArgs(x_2705); +lean_dec(x_2705); +x_2711 = l_Array_empty___closed__1; +x_2712 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2710, x_2710, x_1982, x_2711); +lean_dec(x_2710); +x_2713 = l_Lean_nullKind___closed__2; +x_2714 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2714, 0, x_2713); +lean_ctor_set(x_2714, 1, x_2712); +x_2715 = lean_array_push(x_2711, x_2714); +x_2716 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; +x_2717 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2717, 0, x_2716); +lean_ctor_set(x_2717, 1, x_2715); +x_2718 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__4; +x_2719 = lean_array_push(x_2718, x_2717); +x_2720 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__20; +x_2721 = lean_array_push(x_2719, x_2720); +x_2722 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; +x_2723 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2723, 0, x_2722); +lean_ctor_set(x_2723, 1, x_2721); +x_2724 = lean_array_push(x_2711, x_2723); +x_2725 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2725, 0, x_2713); +lean_ctor_set(x_2725, 1, x_2724); +x_2726 = lean_array_push(x_2711, x_2725); +x_2727 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2727, 0, x_2716); +lean_ctor_set(x_2727, 1, x_2726); +x_2728 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_2729 = lean_array_push(x_2728, x_2727); +x_2730 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +x_2731 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2731, 0, x_2730); +lean_ctor_set(x_2731, 1, x_2729); +x_2732 = l_Lean_Syntax_copyInfo(x_2731, x_11); lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2700 = lean_ctor_get(x_2694, 0); -lean_inc(x_2700); -x_2701 = lean_ctor_get(x_2694, 1); -lean_inc(x_2701); -if (lean_is_exclusive(x_2694)) { - lean_ctor_release(x_2694, 0); - lean_ctor_release(x_2694, 1); - x_2702 = x_2694; -} else { - lean_dec_ref(x_2694); - x_2702 = lean_box(0); -} -if (lean_is_scalar(x_2702)) { - x_2703 = lean_alloc_ctor(1, 2, 0); -} else { - x_2703 = x_2702; -} -lean_ctor_set(x_2703, 0, x_2700); -lean_ctor_set(x_2703, 1, x_2701); -return x_2703; -} -} -} -else -{ -lean_object* x_2712; lean_object* x_2713; lean_object* x_2714; lean_object* x_2715; -lean_inc(x_2); -x_2712 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2712, 0, x_2); -x_2713 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_2691, x_2712, x_4, x_5, x_6, x_7, x_1924, x_9, x_2667); -x_2714 = lean_ctor_get(x_2713, 1); -lean_inc(x_2714); -lean_dec(x_2713); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_2715 = x_2714; -goto block_2726; -} -else -{ -lean_object* x_2727; lean_object* x_2728; -x_2727 = lean_ctor_get(x_13, 0); -lean_inc(x_2727); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_2728 = l_Lean_Elab_Term_isDefEq(x_2727, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_2714); -if (lean_obj_tag(x_2728) == 0) -{ -lean_object* x_2729; -x_2729 = lean_ctor_get(x_2728, 1); -lean_inc(x_2729); -lean_dec(x_2728); -x_2715 = x_2729; -goto block_2726; -} -else -{ -lean_object* x_2730; lean_object* x_2731; lean_object* x_2732; lean_object* x_2733; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2730 = lean_ctor_get(x_2728, 0); -lean_inc(x_2730); -x_2731 = lean_ctor_get(x_2728, 1); -lean_inc(x_2731); -if (lean_is_exclusive(x_2728)) { - lean_ctor_release(x_2728, 0); - lean_ctor_release(x_2728, 1); - x_2732 = x_2728; -} else { - lean_dec_ref(x_2728); - x_2732 = lean_box(0); -} -if (lean_is_scalar(x_2732)) { - x_2733 = lean_alloc_ctor(1, 2, 0); -} else { - x_2733 = x_2732; -} -lean_ctor_set(x_2733, 0, x_2730); -lean_ctor_set(x_2733, 1, x_2731); -return x_2733; -} -} -block_2726: -{ -lean_object* x_2716; -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_2716 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2715); -lean_dec(x_17); -if (lean_obj_tag(x_2716) == 0) -{ -lean_object* x_2717; lean_object* x_2718; lean_object* x_2719; lean_object* x_2720; lean_object* x_2721; -x_2717 = lean_ctor_get(x_2716, 1); -lean_inc(x_2717); -lean_dec(x_2716); -lean_inc(x_2); -x_2718 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__19(x_2, x_11, x_19, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2717); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_19); -x_2719 = lean_ctor_get(x_2718, 1); -lean_inc(x_2719); -if (lean_is_exclusive(x_2718)) { - lean_ctor_release(x_2718, 0); - lean_ctor_release(x_2718, 1); - x_2720 = x_2718; -} else { - lean_dec_ref(x_2718); - x_2720 = lean_box(0); -} -if (lean_is_scalar(x_2720)) { - x_2721 = lean_alloc_ctor(0, 2, 0); -} else { - x_2721 = x_2720; -} -lean_ctor_set(x_2721, 0, x_2); -lean_ctor_set(x_2721, 1, x_2719); -return x_2721; -} -else -{ -lean_object* x_2722; lean_object* x_2723; lean_object* x_2724; lean_object* x_2725; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2722 = lean_ctor_get(x_2716, 0); -lean_inc(x_2722); -x_2723 = lean_ctor_get(x_2716, 1); -lean_inc(x_2723); -if (lean_is_exclusive(x_2716)) { - lean_ctor_release(x_2716, 0); - lean_ctor_release(x_2716, 1); - x_2724 = x_2716; -} else { - lean_dec_ref(x_2716); - x_2724 = lean_box(0); -} -if (lean_is_scalar(x_2724)) { - x_2725 = lean_alloc_ctor(1, 2, 0); -} else { - x_2725 = x_2724; -} -lean_ctor_set(x_2725, 0, x_2722); -lean_ctor_set(x_2725, 1, x_2723); -return x_2725; -} -} -} -} -} -else -{ -lean_object* x_2734; -lean_dec(x_2008); -lean_dec(x_1917); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_13); -lean_dec(x_3); -x_2734 = lean_ctor_get(x_2673, 0); -lean_inc(x_2734); -lean_dec(x_2673); -if (lean_obj_tag(x_2734) == 4) -{ -lean_object* x_2735; lean_object* x_2736; lean_object* x_2737; lean_object* x_2738; lean_object* x_2739; lean_object* x_2740; -x_2735 = lean_ctor_get(x_2734, 0); -lean_inc(x_2735); +x_2733 = l_Lean_Expr_getAppNumArgsAux___main(x_1979, x_1982); +x_2734 = lean_nat_sub(x_2733, x_1982); +lean_dec(x_2733); +x_2735 = lean_unsigned_to_nat(1u); +x_2736 = lean_nat_sub(x_2734, x_2735); lean_dec(x_2734); -x_2736 = lean_st_ref_get(x_9, x_2667); -x_2737 = lean_ctor_get(x_2736, 0); -lean_inc(x_2737); -x_2738 = lean_ctor_get(x_2736, 1); -lean_inc(x_2738); -lean_dec(x_2736); -x_2739 = lean_ctor_get(x_2737, 0); -lean_inc(x_2739); -lean_dec(x_2737); -x_2740 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_2739, x_2735); -if (lean_obj_tag(x_2740) == 0) -{ -lean_object* x_2741; lean_object* x_2742; lean_object* x_2743; lean_object* x_2744; -lean_dec(x_2669); -lean_dec(x_2010); -lean_dec(x_2009); -lean_dec(x_11); -lean_dec(x_2); -x_2741 = lean_ctor_get(x_2740, 0); -lean_inc(x_2741); -lean_dec(x_2740); -x_2742 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2742, 0, x_2741); -x_2743 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2743, 0, x_2742); -x_2744 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2743, x_4, x_5, x_6, x_7, x_1924, x_9, x_2738); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_2744; -} -else -{ -lean_object* x_2745; lean_object* x_2746; lean_object* x_2747; lean_object* x_2748; lean_object* x_2749; lean_object* x_2750; lean_object* x_2751; lean_object* x_2752; lean_object* x_2753; lean_object* x_2754; lean_object* x_2755; lean_object* x_2756; lean_object* x_2757; lean_object* x_2758; lean_object* x_2759; lean_object* x_2760; lean_object* x_2761; lean_object* x_2762; lean_object* x_2763; lean_object* x_2764; lean_object* x_2765; lean_object* x_2766; lean_object* x_2767; lean_object* x_2768; lean_object* x_2769; -x_2745 = lean_ctor_get(x_2740, 0); -lean_inc(x_2745); -lean_dec(x_2740); -x_2746 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_1924, x_9, x_2738); -x_2747 = lean_ctor_get(x_2746, 1); -lean_inc(x_2747); -lean_dec(x_2746); -x_2748 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_2747); -x_2749 = lean_ctor_get(x_2748, 1); -lean_inc(x_2749); -lean_dec(x_2748); -x_2750 = l_Lean_Syntax_getArgs(x_2745); -lean_dec(x_2745); -x_2751 = l_Array_empty___closed__1; -x_2752 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2750, x_2750, x_2012, x_2751); -lean_dec(x_2750); -x_2753 = l_Lean_nullKind___closed__2; -x_2754 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2754, 0, x_2753); -lean_ctor_set(x_2754, 1, x_2752); -x_2755 = lean_array_push(x_2751, x_2754); -x_2756 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__17; -x_2757 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2757, 0, x_2756); -lean_ctor_set(x_2757, 1, x_2755); -x_2758 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; -x_2759 = lean_array_push(x_2758, x_2757); -x_2760 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; -x_2761 = lean_array_push(x_2759, x_2760); -x_2762 = l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__2; -x_2763 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2763, 0, x_2762); -lean_ctor_set(x_2763, 1, x_2761); -x_2764 = l_Lean_Syntax_getHeadInfo___main(x_11); -lean_dec(x_11); -x_2765 = l_Lean_Expr_getAppNumArgsAux___main(x_2009, x_2012); -x_2766 = lean_nat_sub(x_2765, x_2012); -lean_dec(x_2765); -x_2767 = lean_unsigned_to_nat(1u); -x_2768 = lean_nat_sub(x_2766, x_2767); -lean_dec(x_2766); -x_2769 = l_Lean_Expr_getRevArg_x21___main(x_2009, x_2768); -lean_dec(x_2009); -if (lean_obj_tag(x_2764) == 0) -{ -lean_object* x_2770; lean_object* x_2771; -x_2770 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2770, 0, x_2763); +x_2737 = l_Lean_Expr_getRevArg_x21___main(x_1979, x_2736); +lean_dec(x_1979); +x_2738 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2738, 0, x_2732); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_2771 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2770, x_2769, x_4, x_5, x_6, x_7, x_1924, x_9, x_2749); -if (lean_obj_tag(x_2771) == 0) +x_2739 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2738, x_2737, x_4, x_5, x_6, x_7, x_1894, x_9, x_2709); +if (lean_obj_tag(x_2739) == 0) { -lean_object* x_2772; lean_object* x_2773; lean_object* x_2774; lean_object* x_2775; -x_2772 = lean_ctor_get(x_2771, 0); -lean_inc(x_2772); -x_2773 = lean_ctor_get(x_2771, 1); -lean_inc(x_2773); -lean_dec(x_2771); -lean_inc(x_2772); -x_2774 = l_Lean_mkApp(x_2, x_2772); -x_2775 = lean_expr_instantiate1(x_2010, x_2772); -lean_dec(x_2772); -lean_dec(x_2010); -x_1 = x_2669; -x_2 = x_2774; -x_3 = x_2775; -x_8 = x_1924; -x_10 = x_2773; +lean_object* x_2740; lean_object* x_2741; lean_object* x_2742; lean_object* x_2743; +x_2740 = lean_ctor_get(x_2739, 0); +lean_inc(x_2740); +x_2741 = lean_ctor_get(x_2739, 1); +lean_inc(x_2741); +lean_dec(x_2739); +lean_inc(x_2740); +x_2742 = l_Lean_mkApp(x_2, x_2740); +x_2743 = lean_expr_instantiate1(x_1980, x_2740); +lean_dec(x_2740); +lean_dec(x_1980); +x_1 = x_2629; +x_2 = x_2742; +x_3 = x_2743; +x_8 = x_1894; +x_10 = x_2741; goto _start; } else { -lean_object* x_2777; lean_object* x_2778; lean_object* x_2779; lean_object* x_2780; -lean_dec(x_2669); -lean_dec(x_2010); -lean_dec(x_1924); +lean_object* x_2745; lean_object* x_2746; lean_object* x_2747; lean_object* x_2748; +lean_dec(x_2629); +lean_dec(x_1980); +lean_dec(x_1894); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2777 = lean_ctor_get(x_2771, 0); -lean_inc(x_2777); -x_2778 = lean_ctor_get(x_2771, 1); -lean_inc(x_2778); -if (lean_is_exclusive(x_2771)) { - lean_ctor_release(x_2771, 0); - lean_ctor_release(x_2771, 1); - x_2779 = x_2771; +x_2745 = lean_ctor_get(x_2739, 0); +lean_inc(x_2745); +x_2746 = lean_ctor_get(x_2739, 1); +lean_inc(x_2746); +if (lean_is_exclusive(x_2739)) { + lean_ctor_release(x_2739, 0); + lean_ctor_release(x_2739, 1); + x_2747 = x_2739; } else { - lean_dec_ref(x_2771); + lean_dec_ref(x_2739); + x_2747 = lean_box(0); +} +if (lean_is_scalar(x_2747)) { + x_2748 = lean_alloc_ctor(1, 2, 0); +} else { + x_2748 = x_2747; +} +lean_ctor_set(x_2748, 0, x_2745); +lean_ctor_set(x_2748, 1, x_2746); +return x_2748; +} +} +} +else +{ +lean_object* x_2749; lean_object* x_2750; +lean_dec(x_2694); +lean_dec(x_2629); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_11); +lean_dec(x_2); +x_2749 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_2750 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2749, x_4, x_5, x_6, x_7, x_1894, x_9, x_2627); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_2750; +} +} +} +else +{ +lean_object* x_2751; lean_object* x_2752; lean_object* x_2753; +lean_dec(x_1979); +lean_dec(x_1978); +lean_dec(x_1887); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_3); +x_2751 = lean_ctor_get(x_2632, 0); +lean_inc(x_2751); +lean_dec(x_2632); +lean_inc(x_2751); +x_2752 = l_Lean_mkApp(x_2, x_2751); +x_2753 = lean_expr_instantiate1(x_1980, x_2751); +lean_dec(x_2751); +lean_dec(x_1980); +x_1 = x_2629; +x_2 = x_2752; +x_3 = x_2753; +x_8 = x_1894; +x_10 = x_2627; +goto _start; +} +} +else +{ +uint8_t x_2755; +lean_dec(x_2629); +lean_dec(x_1980); +lean_dec(x_1979); +x_2755 = l_Array_isEmpty___rarg(x_16); +if (x_2755 == 0) +{ +lean_object* x_2756; lean_object* x_2757; lean_object* x_2758; lean_object* x_2759; lean_object* x_2760; lean_object* x_2761; lean_object* x_2762; lean_object* x_2763; lean_object* x_2764; lean_object* x_2765; lean_object* x_2766; lean_object* x_2767; lean_object* x_2768; lean_object* x_2769; lean_object* x_2770; lean_object* x_2771; +lean_dec(x_1887); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_3); +lean_dec(x_2); +x_2756 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_2756, 0, x_1978); +x_2757 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_2758 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2758, 0, x_2757); +lean_ctor_set(x_2758, 1, x_2756); +x_2759 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_2760 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2760, 0, x_2758); +lean_ctor_set(x_2760, 1, x_2759); +x_2761 = x_16; +x_2762 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_1982, x_2761); +x_2763 = x_2762; +x_2764 = l_Array_toList___rarg(x_2763); +lean_dec(x_2763); +x_2765 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2764); +x_2766 = l_Array_HasRepr___rarg___closed__1; +x_2767 = lean_string_append(x_2766, x_2765); +lean_dec(x_2765); +x_2768 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2768, 0, x_2767); +x_2769 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2769, 0, x_2768); +x_2770 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2770, 0, x_2760); +lean_ctor_set(x_2770, 1, x_2769); +x_2771 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2770, x_4, x_5, x_6, x_7, x_1894, x_9, x_2627); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_2771; +} +else +{ +lean_object* x_2772; uint8_t x_2773; +lean_dec(x_1978); +lean_dec(x_16); +x_2772 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_2773 = l_Lean_checkTraceOption(x_1887, x_2772); +lean_dec(x_1887); +if (x_2773 == 0) +{ +lean_object* x_2774; +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_2774 = x_2627; +goto block_2785; +} +else +{ +lean_object* x_2786; lean_object* x_2787; +x_2786 = lean_ctor_get(x_13, 0); +lean_inc(x_2786); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2787 = l_Lean_Elab_Term_isDefEq(x_2786, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_2627); +if (lean_obj_tag(x_2787) == 0) +{ +lean_object* x_2788; +x_2788 = lean_ctor_get(x_2787, 1); +lean_inc(x_2788); +lean_dec(x_2787); +x_2774 = x_2788; +goto block_2785; +} +else +{ +lean_object* x_2789; lean_object* x_2790; lean_object* x_2791; lean_object* x_2792; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2789 = lean_ctor_get(x_2787, 0); +lean_inc(x_2789); +x_2790 = lean_ctor_get(x_2787, 1); +lean_inc(x_2790); +if (lean_is_exclusive(x_2787)) { + lean_ctor_release(x_2787, 0); + lean_ctor_release(x_2787, 1); + x_2791 = x_2787; +} else { + lean_dec_ref(x_2787); + x_2791 = lean_box(0); +} +if (lean_is_scalar(x_2791)) { + x_2792 = lean_alloc_ctor(1, 2, 0); +} else { + x_2792 = x_2791; +} +lean_ctor_set(x_2792, 0, x_2789); +lean_ctor_set(x_2792, 1, x_2790); +return x_2792; +} +} +block_2785: +{ +lean_object* x_2775; +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2775 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2774); +lean_dec(x_17); +if (lean_obj_tag(x_2775) == 0) +{ +lean_object* x_2776; lean_object* x_2777; lean_object* x_2778; lean_object* x_2779; lean_object* x_2780; +x_2776 = lean_ctor_get(x_2775, 1); +lean_inc(x_2776); +lean_dec(x_2775); +lean_inc(x_2); +x_2777 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__20(x_2, x_11, x_19, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2776); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_19); +x_2778 = lean_ctor_get(x_2777, 1); +lean_inc(x_2778); +if (lean_is_exclusive(x_2777)) { + lean_ctor_release(x_2777, 0); + lean_ctor_release(x_2777, 1); + x_2779 = x_2777; +} else { + lean_dec_ref(x_2777); x_2779 = lean_box(0); } if (lean_is_scalar(x_2779)) { - x_2780 = lean_alloc_ctor(1, 2, 0); + x_2780 = lean_alloc_ctor(0, 2, 0); } else { x_2780 = x_2779; } -lean_ctor_set(x_2780, 0, x_2777); +lean_ctor_set(x_2780, 0, x_2); lean_ctor_set(x_2780, 1, x_2778); return x_2780; } -} else { lean_object* x_2781; lean_object* x_2782; lean_object* x_2783; lean_object* x_2784; -x_2781 = lean_ctor_get(x_2764, 0); +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2781 = lean_ctor_get(x_2775, 0); lean_inc(x_2781); -lean_dec(x_2764); -x_2782 = l_Lean_Syntax_replaceInfo___main(x_2781, x_2763); -x_2783 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2783, 0, x_2782); +x_2782 = lean_ctor_get(x_2775, 1); +lean_inc(x_2782); +if (lean_is_exclusive(x_2775)) { + lean_ctor_release(x_2775, 0); + lean_ctor_release(x_2775, 1); + x_2783 = x_2775; +} else { + lean_dec_ref(x_2775); + x_2783 = lean_box(0); +} +if (lean_is_scalar(x_2783)) { + x_2784 = lean_alloc_ctor(1, 2, 0); +} else { + x_2784 = x_2783; +} +lean_ctor_set(x_2784, 0, x_2781); +lean_ctor_set(x_2784, 1, x_2782); +return x_2784; +} +} +} +else +{ +lean_object* x_2793; lean_object* x_2794; lean_object* x_2795; lean_object* x_2796; +lean_inc(x_2); +x_2793 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2793, 0, x_2); +x_2794 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_2772, x_2793, x_4, x_5, x_6, x_7, x_1894, x_9, x_2627); +x_2795 = lean_ctor_get(x_2794, 1); +lean_inc(x_2795); +lean_dec(x_2794); +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_2796 = x_2795; +goto block_2807; +} +else +{ +lean_object* x_2808; lean_object* x_2809; +x_2808 = lean_ctor_get(x_13, 0); +lean_inc(x_2808); +lean_dec(x_13); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2809 = l_Lean_Elab_Term_isDefEq(x_2808, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_2795); +if (lean_obj_tag(x_2809) == 0) +{ +lean_object* x_2810; +x_2810 = lean_ctor_get(x_2809, 1); +lean_inc(x_2810); +lean_dec(x_2809); +x_2796 = x_2810; +goto block_2807; +} +else +{ +lean_object* x_2811; lean_object* x_2812; lean_object* x_2813; lean_object* x_2814; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2811 = lean_ctor_get(x_2809, 0); +lean_inc(x_2811); +x_2812 = lean_ctor_get(x_2809, 1); +lean_inc(x_2812); +if (lean_is_exclusive(x_2809)) { + lean_ctor_release(x_2809, 0); + lean_ctor_release(x_2809, 1); + x_2813 = x_2809; +} else { + lean_dec_ref(x_2809); + x_2813 = lean_box(0); +} +if (lean_is_scalar(x_2813)) { + x_2814 = lean_alloc_ctor(1, 2, 0); +} else { + x_2814 = x_2813; +} +lean_ctor_set(x_2814, 0, x_2811); +lean_ctor_set(x_2814, 1, x_2812); +return x_2814; +} +} +block_2807: +{ +lean_object* x_2797; +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_2797 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2796); +lean_dec(x_17); +if (lean_obj_tag(x_2797) == 0) +{ +lean_object* x_2798; lean_object* x_2799; lean_object* x_2800; lean_object* x_2801; lean_object* x_2802; +x_2798 = lean_ctor_get(x_2797, 1); +lean_inc(x_2798); +lean_dec(x_2797); +lean_inc(x_2); +x_2799 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__21(x_2, x_11, x_19, x_1982, x_4, x_5, x_6, x_7, x_1894, x_9, x_2798); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_19); +x_2800 = lean_ctor_get(x_2799, 1); +lean_inc(x_2800); +if (lean_is_exclusive(x_2799)) { + lean_ctor_release(x_2799, 0); + lean_ctor_release(x_2799, 1); + x_2801 = x_2799; +} else { + lean_dec_ref(x_2799); + x_2801 = lean_box(0); +} +if (lean_is_scalar(x_2801)) { + x_2802 = lean_alloc_ctor(0, 2, 0); +} else { + x_2802 = x_2801; +} +lean_ctor_set(x_2802, 0, x_2); +lean_ctor_set(x_2802, 1, x_2800); +return x_2802; +} +else +{ +lean_object* x_2803; lean_object* x_2804; lean_object* x_2805; lean_object* x_2806; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_2803 = lean_ctor_get(x_2797, 0); +lean_inc(x_2803); +x_2804 = lean_ctor_get(x_2797, 1); +lean_inc(x_2804); +if (lean_is_exclusive(x_2797)) { + lean_ctor_release(x_2797, 0); + lean_ctor_release(x_2797, 1); + x_2805 = x_2797; +} else { + lean_dec_ref(x_2797); + x_2805 = lean_box(0); +} +if (lean_is_scalar(x_2805)) { + x_2806 = lean_alloc_ctor(1, 2, 0); +} else { + x_2806 = x_2805; +} +lean_ctor_set(x_2806, 0, x_2803); +lean_ctor_set(x_2806, 1, x_2804); +return x_2806; +} +} +} +} +} +} +else +{ +lean_object* x_2815; lean_object* x_2816; +lean_dec(x_2629); +lean_dec(x_1978); +lean_dec(x_1887); +lean_dec(x_3); +x_2815 = lean_array_fget(x_12, x_15); +lean_inc(x_9); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_2784 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2783, x_2769, x_4, x_5, x_6, x_7, x_1924, x_9, x_2749); -if (lean_obj_tag(x_2784) == 0) +x_2816 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2815, x_1979, x_4, x_5, x_6, x_7, x_1894, x_9, x_2627); +if (lean_obj_tag(x_2816) == 0) { -lean_object* x_2785; lean_object* x_2786; lean_object* x_2787; lean_object* x_2788; -x_2785 = lean_ctor_get(x_2784, 0); -lean_inc(x_2785); -x_2786 = lean_ctor_get(x_2784, 1); -lean_inc(x_2786); -lean_dec(x_2784); -lean_inc(x_2785); -x_2787 = l_Lean_mkApp(x_2, x_2785); -x_2788 = lean_expr_instantiate1(x_2010, x_2785); -lean_dec(x_2785); -lean_dec(x_2010); -x_1 = x_2669; -x_2 = x_2787; -x_3 = x_2788; -x_8 = x_1924; -x_10 = x_2786; +lean_object* x_2817; lean_object* x_2818; lean_object* x_2819; lean_object* x_2820; lean_object* x_2821; lean_object* x_2822; lean_object* x_2823; +x_2817 = lean_ctor_get(x_2816, 0); +lean_inc(x_2817); +x_2818 = lean_ctor_get(x_2816, 1); +lean_inc(x_2818); +lean_dec(x_2816); +x_2819 = lean_unsigned_to_nat(1u); +x_2820 = lean_nat_add(x_15, x_2819); +lean_dec(x_15); +x_2821 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_2821, 0, x_11); +lean_ctor_set(x_2821, 1, x_12); +lean_ctor_set(x_2821, 2, x_13); +lean_ctor_set(x_2821, 3, x_2820); +lean_ctor_set(x_2821, 4, x_16); +lean_ctor_set(x_2821, 5, x_17); +lean_ctor_set(x_2821, 6, x_18); +lean_ctor_set(x_2821, 7, x_19); +lean_ctor_set_uint8(x_2821, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_2821, sizeof(void*)*8 + 1, x_2628); +lean_inc(x_2817); +x_2822 = l_Lean_mkApp(x_2, x_2817); +x_2823 = lean_expr_instantiate1(x_1980, x_2817); +lean_dec(x_2817); +lean_dec(x_1980); +x_1 = x_2821; +x_2 = x_2822; +x_3 = x_2823; +x_8 = x_1894; +x_10 = x_2818; goto _start; } else { -lean_object* x_2790; lean_object* x_2791; lean_object* x_2792; lean_object* x_2793; -lean_dec(x_2669); -lean_dec(x_2010); -lean_dec(x_1924); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2790 = lean_ctor_get(x_2784, 0); -lean_inc(x_2790); -x_2791 = lean_ctor_get(x_2784, 1); -lean_inc(x_2791); -if (lean_is_exclusive(x_2784)) { - lean_ctor_release(x_2784, 0); - lean_ctor_release(x_2784, 1); - x_2792 = x_2784; -} else { - lean_dec_ref(x_2784); - x_2792 = lean_box(0); -} -if (lean_is_scalar(x_2792)) { - x_2793 = lean_alloc_ctor(1, 2, 0); -} else { - x_2793 = x_2792; -} -lean_ctor_set(x_2793, 0, x_2790); -lean_ctor_set(x_2793, 1, x_2791); -return x_2793; -} -} -} -} -else -{ -lean_object* x_2794; lean_object* x_2795; -lean_dec(x_2734); -lean_dec(x_2669); -lean_dec(x_2010); -lean_dec(x_2009); -lean_dec(x_11); -lean_dec(x_2); -x_2794 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; -x_2795 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2794, x_4, x_5, x_6, x_7, x_1924, x_9, x_2667); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_2795; -} -} -} -else -{ -lean_object* x_2796; lean_object* x_2797; lean_object* x_2798; -lean_dec(x_2009); -lean_dec(x_2008); -lean_dec(x_1917); +lean_object* x_2825; lean_object* x_2826; lean_object* x_2827; lean_object* x_2828; +lean_dec(x_1980); +lean_dec(x_1894); lean_dec(x_19); +lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); +lean_dec(x_15); lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_3); -x_2796 = lean_ctor_get(x_2672, 0); -lean_inc(x_2796); -lean_dec(x_2672); -lean_inc(x_2796); -x_2797 = l_Lean_mkApp(x_2, x_2796); -x_2798 = lean_expr_instantiate1(x_2010, x_2796); -lean_dec(x_2796); -lean_dec(x_2010); -x_1 = x_2669; -x_2 = x_2797; -x_3 = x_2798; -x_8 = x_1924; -x_10 = x_2667; -goto _start; -} -} -else -{ -uint8_t x_2800; -lean_dec(x_2669); -lean_dec(x_2010); -lean_dec(x_2009); -x_2800 = l_Array_isEmpty___rarg(x_16); -if (x_2800 == 0) -{ -lean_object* x_2801; lean_object* x_2802; lean_object* x_2803; lean_object* x_2804; lean_object* x_2805; lean_object* x_2806; lean_object* x_2807; lean_object* x_2808; lean_object* x_2809; lean_object* x_2810; lean_object* x_2811; lean_object* x_2812; lean_object* x_2813; lean_object* x_2814; lean_object* x_2815; lean_object* x_2816; -lean_dec(x_1917); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_3); -lean_dec(x_2); -x_2801 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_2801, 0, x_2008); -x_2802 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_2803 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2803, 0, x_2802); -lean_ctor_set(x_2803, 1, x_2801); -x_2804 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_2805 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2805, 0, x_2803); -lean_ctor_set(x_2805, 1, x_2804); -x_2806 = x_16; -x_2807 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_2012, x_2806); -x_2808 = x_2807; -x_2809 = l_Array_toList___rarg(x_2808); -lean_dec(x_2808); -x_2810 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2809); -x_2811 = l_Array_HasRepr___rarg___closed__1; -x_2812 = lean_string_append(x_2811, x_2810); -lean_dec(x_2810); -x_2813 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2813, 0, x_2812); -x_2814 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2814, 0, x_2813); -x_2815 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2815, 0, x_2805); -lean_ctor_set(x_2815, 1, x_2814); -x_2816 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_2815, x_4, x_5, x_6, x_7, x_1924, x_9, x_2667); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_2816; -} -else -{ -lean_object* x_2817; uint8_t x_2818; -lean_dec(x_2008); -lean_dec(x_16); -x_2817 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_2818 = l_Lean_checkTraceOption(x_1917, x_2817); -lean_dec(x_1917); -if (x_2818 == 0) -{ -lean_object* x_2819; -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_2819 = x_2667; -goto block_2830; -} -else -{ -lean_object* x_2831; lean_object* x_2832; -x_2831 = lean_ctor_get(x_13, 0); -lean_inc(x_2831); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_2832 = l_Lean_Elab_Term_isDefEq(x_2831, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_2667); -if (lean_obj_tag(x_2832) == 0) -{ -lean_object* x_2833; -x_2833 = lean_ctor_get(x_2832, 1); -lean_inc(x_2833); -lean_dec(x_2832); -x_2819 = x_2833; -goto block_2830; -} -else -{ -lean_object* x_2834; lean_object* x_2835; lean_object* x_2836; lean_object* x_2837; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_17); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_9); lean_dec(x_7); @@ -19295,440 +19097,116 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2834 = lean_ctor_get(x_2832, 0); -lean_inc(x_2834); -x_2835 = lean_ctor_get(x_2832, 1); -lean_inc(x_2835); -if (lean_is_exclusive(x_2832)) { - lean_ctor_release(x_2832, 0); - lean_ctor_release(x_2832, 1); - x_2836 = x_2832; -} else { - lean_dec_ref(x_2832); - x_2836 = lean_box(0); -} -if (lean_is_scalar(x_2836)) { - x_2837 = lean_alloc_ctor(1, 2, 0); -} else { - x_2837 = x_2836; -} -lean_ctor_set(x_2837, 0, x_2834); -lean_ctor_set(x_2837, 1, x_2835); -return x_2837; -} -} -block_2830: -{ -lean_object* x_2820; -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_2820 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2819); -lean_dec(x_17); -if (lean_obj_tag(x_2820) == 0) -{ -lean_object* x_2821; lean_object* x_2822; lean_object* x_2823; lean_object* x_2824; lean_object* x_2825; -x_2821 = lean_ctor_get(x_2820, 1); -lean_inc(x_2821); -lean_dec(x_2820); -lean_inc(x_2); -x_2822 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__20(x_2, x_11, x_19, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2821); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_19); -x_2823 = lean_ctor_get(x_2822, 1); -lean_inc(x_2823); -if (lean_is_exclusive(x_2822)) { - lean_ctor_release(x_2822, 0); - lean_ctor_release(x_2822, 1); - x_2824 = x_2822; -} else { - lean_dec_ref(x_2822); - x_2824 = lean_box(0); -} -if (lean_is_scalar(x_2824)) { - x_2825 = lean_alloc_ctor(0, 2, 0); -} else { - x_2825 = x_2824; -} -lean_ctor_set(x_2825, 0, x_2); -lean_ctor_set(x_2825, 1, x_2823); -return x_2825; -} -else -{ -lean_object* x_2826; lean_object* x_2827; lean_object* x_2828; lean_object* x_2829; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2826 = lean_ctor_get(x_2820, 0); +x_2825 = lean_ctor_get(x_2816, 0); +lean_inc(x_2825); +x_2826 = lean_ctor_get(x_2816, 1); lean_inc(x_2826); -x_2827 = lean_ctor_get(x_2820, 1); -lean_inc(x_2827); -if (lean_is_exclusive(x_2820)) { - lean_ctor_release(x_2820, 0); - lean_ctor_release(x_2820, 1); - x_2828 = x_2820; +if (lean_is_exclusive(x_2816)) { + lean_ctor_release(x_2816, 0); + lean_ctor_release(x_2816, 1); + x_2827 = x_2816; } else { - lean_dec_ref(x_2820); - x_2828 = lean_box(0); + lean_dec_ref(x_2816); + x_2827 = lean_box(0); } -if (lean_is_scalar(x_2828)) { - x_2829 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2827)) { + x_2828 = lean_alloc_ctor(1, 2, 0); } else { - x_2829 = x_2828; + x_2828 = x_2827; } -lean_ctor_set(x_2829, 0, x_2826); -lean_ctor_set(x_2829, 1, x_2827); -return x_2829; +lean_ctor_set(x_2828, 0, x_2825); +lean_ctor_set(x_2828, 1, x_2826); +return x_2828; } } } else { -lean_object* x_2838; lean_object* x_2839; lean_object* x_2840; lean_object* x_2841; +lean_object* x_2829; lean_object* x_2830; lean_object* x_2831; lean_object* x_2832; +lean_dec(x_2626); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_1978); +lean_dec(x_1894); +lean_dec(x_1887); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_2829 = lean_ctor_get(x_2625, 0); +lean_inc(x_2829); +x_2830 = lean_ctor_get(x_2625, 1); +lean_inc(x_2830); +if (lean_is_exclusive(x_2625)) { + lean_ctor_release(x_2625, 0); + lean_ctor_release(x_2625, 1); + x_2831 = x_2625; +} else { + lean_dec_ref(x_2625); + x_2831 = lean_box(0); +} +if (lean_is_scalar(x_2831)) { + x_2832 = lean_alloc_ctor(1, 2, 0); +} else { + x_2832 = x_2831; +} +lean_ctor_set(x_2832, 0, x_2829); +lean_ctor_set(x_2832, 1, x_2830); +return x_2832; +} +} +} +} +else +{ +lean_object* x_2833; lean_object* x_2834; lean_object* x_2835; lean_object* x_2836; lean_object* x_2837; lean_object* x_2838; +lean_dec(x_1978); +lean_dec(x_1887); +lean_dec(x_3); +x_2833 = lean_ctor_get(x_1983, 0); +lean_inc(x_2833); +lean_dec(x_1983); +x_2834 = l_Lean_Elab_Term_NamedArg_inhabited; +x_2835 = lean_array_get(x_2834, x_16, x_2833); +x_2836 = l_Array_eraseIdx___rarg(x_16, x_2833); +lean_dec(x_2833); +x_2837 = lean_ctor_get(x_2835, 1); +lean_inc(x_2837); +lean_dec(x_2835); +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); lean_inc(x_2); -x_2838 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2838, 0, x_2); -x_2839 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_2817, x_2838, x_4, x_5, x_6, x_7, x_1924, x_9, x_2667); -x_2840 = lean_ctor_get(x_2839, 1); +x_2838 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2837, x_1979, x_4, x_5, x_6, x_7, x_1894, x_9, x_1897); +if (lean_obj_tag(x_2838) == 0) +{ +lean_object* x_2839; lean_object* x_2840; lean_object* x_2841; lean_object* x_2842; +x_2839 = lean_ctor_get(x_2838, 0); +lean_inc(x_2839); +x_2840 = lean_ctor_get(x_2838, 1); lean_inc(x_2840); -lean_dec(x_2839); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_2841 = x_2840; -goto block_2852; -} -else -{ -lean_object* x_2853; lean_object* x_2854; -x_2853 = lean_ctor_get(x_13, 0); -lean_inc(x_2853); -lean_dec(x_13); +lean_dec(x_2838); lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_2854 = l_Lean_Elab_Term_isDefEq(x_2853, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_2840); -if (lean_obj_tag(x_2854) == 0) -{ -lean_object* x_2855; -x_2855 = lean_ctor_get(x_2854, 1); -lean_inc(x_2855); -lean_dec(x_2854); -x_2841 = x_2855; -goto block_2852; -} -else -{ -lean_object* x_2856; lean_object* x_2857; lean_object* x_2858; lean_object* x_2859; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2856 = lean_ctor_get(x_2854, 0); -lean_inc(x_2856); -x_2857 = lean_ctor_get(x_2854, 1); -lean_inc(x_2857); -if (lean_is_exclusive(x_2854)) { - lean_ctor_release(x_2854, 0); - lean_ctor_release(x_2854, 1); - x_2858 = x_2854; -} else { - lean_dec_ref(x_2854); - x_2858 = lean_box(0); -} -if (lean_is_scalar(x_2858)) { - x_2859 = lean_alloc_ctor(1, 2, 0); -} else { - x_2859 = x_2858; -} -lean_ctor_set(x_2859, 0, x_2856); -lean_ctor_set(x_2859, 1, x_2857); -return x_2859; -} -} -block_2852: -{ -lean_object* x_2842; -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_2842 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2841); -lean_dec(x_17); -if (lean_obj_tag(x_2842) == 0) -{ -lean_object* x_2843; lean_object* x_2844; lean_object* x_2845; lean_object* x_2846; lean_object* x_2847; -x_2843 = lean_ctor_get(x_2842, 1); -lean_inc(x_2843); -lean_dec(x_2842); -lean_inc(x_2); -x_2844 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__21(x_2, x_11, x_19, x_2012, x_4, x_5, x_6, x_7, x_1924, x_9, x_2843); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_19); -x_2845 = lean_ctor_get(x_2844, 1); -lean_inc(x_2845); -if (lean_is_exclusive(x_2844)) { - lean_ctor_release(x_2844, 0); - lean_ctor_release(x_2844, 1); - x_2846 = x_2844; -} else { - lean_dec_ref(x_2844); - x_2846 = lean_box(0); -} -if (lean_is_scalar(x_2846)) { - x_2847 = lean_alloc_ctor(0, 2, 0); -} else { - x_2847 = x_2846; -} -lean_ctor_set(x_2847, 0, x_2); -lean_ctor_set(x_2847, 1, x_2845); -return x_2847; -} -else -{ -lean_object* x_2848; lean_object* x_2849; lean_object* x_2850; lean_object* x_2851; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2848 = lean_ctor_get(x_2842, 0); -lean_inc(x_2848); -x_2849 = lean_ctor_get(x_2842, 1); -lean_inc(x_2849); -if (lean_is_exclusive(x_2842)) { - lean_ctor_release(x_2842, 0); - lean_ctor_release(x_2842, 1); - x_2850 = x_2842; -} else { - lean_dec_ref(x_2842); - x_2850 = lean_box(0); -} -if (lean_is_scalar(x_2850)) { - x_2851 = lean_alloc_ctor(1, 2, 0); -} else { - x_2851 = x_2850; -} -lean_ctor_set(x_2851, 0, x_2848); -lean_ctor_set(x_2851, 1, x_2849); -return x_2851; -} -} -} -} -} -} -else -{ -lean_object* x_2860; lean_object* x_2861; -lean_dec(x_2669); -lean_dec(x_2008); -lean_dec(x_1917); -lean_dec(x_3); -x_2860 = lean_array_fget(x_12, x_15); -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_2861 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2860, x_2009, x_4, x_5, x_6, x_7, x_1924, x_9, x_2667); -if (lean_obj_tag(x_2861) == 0) -{ -lean_object* x_2862; lean_object* x_2863; lean_object* x_2864; lean_object* x_2865; lean_object* x_2866; lean_object* x_2867; lean_object* x_2868; -x_2862 = lean_ctor_get(x_2861, 0); -lean_inc(x_2862); -x_2863 = lean_ctor_get(x_2861, 1); -lean_inc(x_2863); -lean_dec(x_2861); -x_2864 = lean_unsigned_to_nat(1u); -x_2865 = lean_nat_add(x_15, x_2864); -lean_dec(x_15); -x_2866 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_2866, 0, x_11); -lean_ctor_set(x_2866, 1, x_12); -lean_ctor_set(x_2866, 2, x_13); -lean_ctor_set(x_2866, 3, x_2865); -lean_ctor_set(x_2866, 4, x_16); -lean_ctor_set(x_2866, 5, x_17); -lean_ctor_set(x_2866, 6, x_18); -lean_ctor_set(x_2866, 7, x_19); -lean_ctor_set_uint8(x_2866, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_2866, sizeof(void*)*8 + 1, x_2668); -lean_inc(x_2862); -x_2867 = l_Lean_mkApp(x_2, x_2862); -x_2868 = lean_expr_instantiate1(x_2010, x_2862); -lean_dec(x_2862); -lean_dec(x_2010); -x_1 = x_2866; -x_2 = x_2867; -x_3 = x_2868; -x_8 = x_1924; -x_10 = x_2863; -goto _start; -} -else -{ -lean_object* x_2870; lean_object* x_2871; lean_object* x_2872; lean_object* x_2873; -lean_dec(x_2010); -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2870 = lean_ctor_get(x_2861, 0); -lean_inc(x_2870); -x_2871 = lean_ctor_get(x_2861, 1); -lean_inc(x_2871); -if (lean_is_exclusive(x_2861)) { - lean_ctor_release(x_2861, 0); - lean_ctor_release(x_2861, 1); - x_2872 = x_2861; -} else { - lean_dec_ref(x_2861); - x_2872 = lean_box(0); -} -if (lean_is_scalar(x_2872)) { - x_2873 = lean_alloc_ctor(1, 2, 0); -} else { - x_2873 = x_2872; -} -lean_ctor_set(x_2873, 0, x_2870); -lean_ctor_set(x_2873, 1, x_2871); -return x_2873; -} -} -} -else -{ -lean_object* x_2874; lean_object* x_2875; lean_object* x_2876; lean_object* x_2877; -lean_dec(x_2666); -lean_dec(x_2010); -lean_dec(x_2009); -lean_dec(x_2008); -lean_dec(x_1924); -lean_dec(x_1917); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_2874 = lean_ctor_get(x_2665, 0); -lean_inc(x_2874); -x_2875 = lean_ctor_get(x_2665, 1); -lean_inc(x_2875); -if (lean_is_exclusive(x_2665)) { - lean_ctor_release(x_2665, 0); - lean_ctor_release(x_2665, 1); - x_2876 = x_2665; -} else { - lean_dec_ref(x_2665); - x_2876 = lean_box(0); -} -if (lean_is_scalar(x_2876)) { - x_2877 = lean_alloc_ctor(1, 2, 0); -} else { - x_2877 = x_2876; -} -lean_ctor_set(x_2877, 0, x_2874); -lean_ctor_set(x_2877, 1, x_2875); -return x_2877; -} -} -} -} -else -{ -lean_object* x_2878; lean_object* x_2879; lean_object* x_2880; lean_object* x_2881; lean_object* x_2882; lean_object* x_2883; -lean_dec(x_2008); -lean_dec(x_1917); -lean_dec(x_3); -x_2878 = lean_ctor_get(x_2013, 0); -lean_inc(x_2878); -lean_dec(x_2013); -x_2879 = l_Lean_Elab_Term_NamedArg_inhabited; -x_2880 = lean_array_get(x_2879, x_16, x_2878); -x_2881 = l_Array_eraseIdx___rarg(x_16, x_2878); -lean_dec(x_2878); -x_2882 = lean_ctor_get(x_2880, 1); -lean_inc(x_2882); -lean_dec(x_2880); -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_2883 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2882, x_2009, x_4, x_5, x_6, x_7, x_1924, x_9, x_1927); -if (lean_obj_tag(x_2883) == 0) -{ -lean_object* x_2884; lean_object* x_2885; lean_object* x_2886; lean_object* x_2887; -x_2884 = lean_ctor_get(x_2883, 0); -lean_inc(x_2884); -x_2885 = lean_ctor_get(x_2883, 1); -lean_inc(x_2885); -lean_dec(x_2883); -lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); lean_inc(x_1); -x_2886 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1926, x_4, x_5, x_6, x_7, x_1924, x_9, x_2885); +x_2841 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1896, x_4, x_5, x_6, x_7, x_1894, x_9, x_2840); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); lean_ctor_release(x_1, 1); @@ -19738,53 +19216,53 @@ if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 5); lean_ctor_release(x_1, 6); lean_ctor_release(x_1, 7); - x_2887 = x_1; + x_2842 = x_1; } else { lean_dec_ref(x_1); - x_2887 = lean_box(0); + x_2842 = lean_box(0); } -if (lean_obj_tag(x_2886) == 0) +if (lean_obj_tag(x_2841) == 0) { -lean_object* x_2888; uint8_t x_2889; lean_object* x_2890; lean_object* x_2891; lean_object* x_2892; -x_2888 = lean_ctor_get(x_2886, 1); -lean_inc(x_2888); -lean_dec(x_2886); -x_2889 = 1; -if (lean_is_scalar(x_2887)) { - x_2890 = lean_alloc_ctor(0, 8, 2); +lean_object* x_2843; uint8_t x_2844; lean_object* x_2845; lean_object* x_2846; lean_object* x_2847; +x_2843 = lean_ctor_get(x_2841, 1); +lean_inc(x_2843); +lean_dec(x_2841); +x_2844 = 1; +if (lean_is_scalar(x_2842)) { + x_2845 = lean_alloc_ctor(0, 8, 2); } else { - x_2890 = x_2887; + x_2845 = x_2842; } -lean_ctor_set(x_2890, 0, x_11); -lean_ctor_set(x_2890, 1, x_12); -lean_ctor_set(x_2890, 2, x_13); -lean_ctor_set(x_2890, 3, x_15); -lean_ctor_set(x_2890, 4, x_2881); -lean_ctor_set(x_2890, 5, x_17); -lean_ctor_set(x_2890, 6, x_18); -lean_ctor_set(x_2890, 7, x_19); -lean_ctor_set_uint8(x_2890, sizeof(void*)*8, x_14); -lean_ctor_set_uint8(x_2890, sizeof(void*)*8 + 1, x_2889); -lean_inc(x_2884); -x_2891 = l_Lean_mkApp(x_2, x_2884); -x_2892 = lean_expr_instantiate1(x_2010, x_2884); -lean_dec(x_2884); -lean_dec(x_2010); -x_1 = x_2890; -x_2 = x_2891; -x_3 = x_2892; -x_8 = x_1924; -x_10 = x_2888; +lean_ctor_set(x_2845, 0, x_11); +lean_ctor_set(x_2845, 1, x_12); +lean_ctor_set(x_2845, 2, x_13); +lean_ctor_set(x_2845, 3, x_15); +lean_ctor_set(x_2845, 4, x_2836); +lean_ctor_set(x_2845, 5, x_17); +lean_ctor_set(x_2845, 6, x_18); +lean_ctor_set(x_2845, 7, x_19); +lean_ctor_set_uint8(x_2845, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_2845, sizeof(void*)*8 + 1, x_2844); +lean_inc(x_2839); +x_2846 = l_Lean_mkApp(x_2, x_2839); +x_2847 = lean_expr_instantiate1(x_1980, x_2839); +lean_dec(x_2839); +lean_dec(x_1980); +x_1 = x_2845; +x_2 = x_2846; +x_3 = x_2847; +x_8 = x_1894; +x_10 = x_2843; goto _start; } else { -lean_object* x_2894; lean_object* x_2895; lean_object* x_2896; lean_object* x_2897; -lean_dec(x_2887); -lean_dec(x_2884); -lean_dec(x_2881); -lean_dec(x_2010); -lean_dec(x_1924); +lean_object* x_2849; lean_object* x_2850; lean_object* x_2851; lean_object* x_2852; +lean_dec(x_2842); +lean_dec(x_2839); +lean_dec(x_2836); +lean_dec(x_1980); +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -19798,35 +19276,35 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_2894 = lean_ctor_get(x_2886, 0); -lean_inc(x_2894); -x_2895 = lean_ctor_get(x_2886, 1); -lean_inc(x_2895); -if (lean_is_exclusive(x_2886)) { - lean_ctor_release(x_2886, 0); - lean_ctor_release(x_2886, 1); - x_2896 = x_2886; +x_2849 = lean_ctor_get(x_2841, 0); +lean_inc(x_2849); +x_2850 = lean_ctor_get(x_2841, 1); +lean_inc(x_2850); +if (lean_is_exclusive(x_2841)) { + lean_ctor_release(x_2841, 0); + lean_ctor_release(x_2841, 1); + x_2851 = x_2841; } else { - lean_dec_ref(x_2886); - x_2896 = lean_box(0); + lean_dec_ref(x_2841); + x_2851 = lean_box(0); } -if (lean_is_scalar(x_2896)) { - x_2897 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2851)) { + x_2852 = lean_alloc_ctor(1, 2, 0); } else { - x_2897 = x_2896; + x_2852 = x_2851; } -lean_ctor_set(x_2897, 0, x_2894); -lean_ctor_set(x_2897, 1, x_2895); -return x_2897; +lean_ctor_set(x_2852, 0, x_2849); +lean_ctor_set(x_2852, 1, x_2850); +return x_2852; } } else { -lean_object* x_2898; lean_object* x_2899; lean_object* x_2900; lean_object* x_2901; -lean_dec(x_2881); -lean_dec(x_2010); -lean_dec(x_1926); -lean_dec(x_1924); +lean_object* x_2853; lean_object* x_2854; lean_object* x_2855; lean_object* x_2856; +lean_dec(x_2836); +lean_dec(x_1980); +lean_dec(x_1896); +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -19841,47 +19319,47 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_2898 = lean_ctor_get(x_2883, 0); -lean_inc(x_2898); -x_2899 = lean_ctor_get(x_2883, 1); -lean_inc(x_2899); -if (lean_is_exclusive(x_2883)) { - lean_ctor_release(x_2883, 0); - lean_ctor_release(x_2883, 1); - x_2900 = x_2883; +x_2853 = lean_ctor_get(x_2838, 0); +lean_inc(x_2853); +x_2854 = lean_ctor_get(x_2838, 1); +lean_inc(x_2854); +if (lean_is_exclusive(x_2838)) { + lean_ctor_release(x_2838, 0); + lean_ctor_release(x_2838, 1); + x_2855 = x_2838; } else { - lean_dec_ref(x_2883); - x_2900 = lean_box(0); + lean_dec_ref(x_2838); + x_2855 = lean_box(0); } -if (lean_is_scalar(x_2900)) { - x_2901 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2855)) { + x_2856 = lean_alloc_ctor(1, 2, 0); } else { - x_2901 = x_2900; + x_2856 = x_2855; } -lean_ctor_set(x_2901, 0, x_2898); -lean_ctor_set(x_2901, 1, x_2899); -return x_2901; +lean_ctor_set(x_2856, 0, x_2853); +lean_ctor_set(x_2856, 1, x_2854); +return x_2856; } } } else { -lean_object* x_2902; +lean_object* x_2857; lean_dec(x_18); -x_2902 = lean_box(0); -x_1928 = x_2902; -goto block_2007; +x_2857 = lean_box(0); +x_1898 = x_2857; +goto block_1977; } -block_2007: +block_1977: { -uint8_t x_1929; -lean_dec(x_1928); -x_1929 = l_Array_isEmpty___rarg(x_16); +uint8_t x_1899; +lean_dec(x_1898); +x_1899 = l_Array_isEmpty___rarg(x_16); lean_dec(x_16); -if (x_1929 == 0) +if (x_1899 == 0) { -lean_object* x_1930; -lean_dec(x_1917); +lean_object* x_1900; +lean_dec(x_1887); lean_dec(x_19); lean_dec(x_17); lean_dec(x_15); @@ -19890,494 +19368,494 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_3); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1930 = l___private_Lean_Elab_App_4__tryCoeFun(x_1926, x_2, x_4, x_5, x_6, x_7, x_1924, x_9, x_1927); -if (lean_obj_tag(x_1930) == 0) +x_1900 = l___private_Lean_Elab_App_4__tryCoeFun(x_1896, x_2, x_4, x_5, x_6, x_7, x_1894, x_9, x_1897); +if (lean_obj_tag(x_1900) == 0) { -lean_object* x_1931; lean_object* x_1932; lean_object* x_1933; -x_1931 = lean_ctor_get(x_1930, 0); -lean_inc(x_1931); -x_1932 = lean_ctor_get(x_1930, 1); -lean_inc(x_1932); -lean_dec(x_1930); +lean_object* x_1901; lean_object* x_1902; lean_object* x_1903; +x_1901 = lean_ctor_get(x_1900, 0); +lean_inc(x_1901); +x_1902 = lean_ctor_get(x_1900, 1); +lean_inc(x_1902); +lean_dec(x_1900); lean_inc(x_9); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -lean_inc(x_1931); -x_1933 = l_Lean_Meta_inferType___at_Lean_Elab_Term_tryLiftAndCoe___spec__2(x_1931, x_4, x_5, x_6, x_7, x_1924, x_9, x_1932); -if (lean_obj_tag(x_1933) == 0) +lean_inc(x_1901); +x_1903 = l_Lean_Meta_inferType___at_Lean_Elab_Term_tryLiftAndCoe___spec__2(x_1901, x_4, x_5, x_6, x_7, x_1894, x_9, x_1902); +if (lean_obj_tag(x_1903) == 0) { -lean_object* x_1934; lean_object* x_1935; -x_1934 = lean_ctor_get(x_1933, 0); -lean_inc(x_1934); -x_1935 = lean_ctor_get(x_1933, 1); -lean_inc(x_1935); -lean_dec(x_1933); -x_2 = x_1931; -x_3 = x_1934; -x_8 = x_1924; -x_10 = x_1935; +lean_object* x_1904; lean_object* x_1905; +x_1904 = lean_ctor_get(x_1903, 0); +lean_inc(x_1904); +x_1905 = lean_ctor_get(x_1903, 1); +lean_inc(x_1905); +lean_dec(x_1903); +x_2 = x_1901; +x_3 = x_1904; +x_8 = x_1894; +x_10 = x_1905; goto _start; } else { -lean_object* x_1937; lean_object* x_1938; lean_object* x_1939; lean_object* x_1940; -lean_dec(x_1931); -lean_dec(x_1924); +lean_object* x_1907; lean_object* x_1908; lean_object* x_1909; lean_object* x_1910; +lean_dec(x_1901); +lean_dec(x_1894); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_1937 = lean_ctor_get(x_1933, 0); -lean_inc(x_1937); -x_1938 = lean_ctor_get(x_1933, 1); -lean_inc(x_1938); -if (lean_is_exclusive(x_1933)) { - lean_ctor_release(x_1933, 0); - lean_ctor_release(x_1933, 1); - x_1939 = x_1933; +x_1907 = lean_ctor_get(x_1903, 0); +lean_inc(x_1907); +x_1908 = lean_ctor_get(x_1903, 1); +lean_inc(x_1908); +if (lean_is_exclusive(x_1903)) { + lean_ctor_release(x_1903, 0); + lean_ctor_release(x_1903, 1); + x_1909 = x_1903; } else { - lean_dec_ref(x_1933); - x_1939 = lean_box(0); + lean_dec_ref(x_1903); + x_1909 = lean_box(0); } -if (lean_is_scalar(x_1939)) { - x_1940 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1909)) { + x_1910 = lean_alloc_ctor(1, 2, 0); } else { - x_1940 = x_1939; + x_1910 = x_1909; } -lean_ctor_set(x_1940, 0, x_1937); -lean_ctor_set(x_1940, 1, x_1938); -return x_1940; +lean_ctor_set(x_1910, 0, x_1907); +lean_ctor_set(x_1910, 1, x_1908); +return x_1910; } } else { -lean_object* x_1941; lean_object* x_1942; lean_object* x_1943; lean_object* x_1944; -lean_dec(x_1924); +lean_object* x_1911; lean_object* x_1912; lean_object* x_1913; lean_object* x_1914; +lean_dec(x_1894); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_1941 = lean_ctor_get(x_1930, 0); -lean_inc(x_1941); -x_1942 = lean_ctor_get(x_1930, 1); -lean_inc(x_1942); -if (lean_is_exclusive(x_1930)) { - lean_ctor_release(x_1930, 0); - lean_ctor_release(x_1930, 1); - x_1943 = x_1930; +x_1911 = lean_ctor_get(x_1900, 0); +lean_inc(x_1911); +x_1912 = lean_ctor_get(x_1900, 1); +lean_inc(x_1912); +if (lean_is_exclusive(x_1900)) { + lean_ctor_release(x_1900, 0); + lean_ctor_release(x_1900, 1); + x_1913 = x_1900; } else { - lean_dec_ref(x_1930); - x_1943 = lean_box(0); + lean_dec_ref(x_1900); + x_1913 = lean_box(0); } -if (lean_is_scalar(x_1943)) { - x_1944 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1913)) { + x_1914 = lean_alloc_ctor(1, 2, 0); } else { - x_1944 = x_1943; + x_1914 = x_1913; } -lean_ctor_set(x_1944, 0, x_1941); -lean_ctor_set(x_1944, 1, x_1942); -return x_1944; +lean_ctor_set(x_1914, 0, x_1911); +lean_ctor_set(x_1914, 1, x_1912); +return x_1914; } } else { -lean_object* x_1945; uint8_t x_1946; -x_1945 = lean_array_get_size(x_12); +lean_object* x_1915; uint8_t x_1916; +x_1915 = lean_array_get_size(x_12); lean_dec(x_12); -x_1946 = lean_nat_dec_eq(x_15, x_1945); -lean_dec(x_1945); +x_1916 = lean_nat_dec_eq(x_15, x_1915); +lean_dec(x_1915); lean_dec(x_15); -if (x_1946 == 0) +if (x_1916 == 0) { -lean_object* x_1947; -lean_dec(x_1917); +lean_object* x_1917; +lean_dec(x_1887); lean_dec(x_19); lean_dec(x_17); lean_dec(x_13); lean_dec(x_11); lean_dec(x_3); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1947 = l___private_Lean_Elab_App_4__tryCoeFun(x_1926, x_2, x_4, x_5, x_6, x_7, x_1924, x_9, x_1927); -if (lean_obj_tag(x_1947) == 0) +x_1917 = l___private_Lean_Elab_App_4__tryCoeFun(x_1896, x_2, x_4, x_5, x_6, x_7, x_1894, x_9, x_1897); +if (lean_obj_tag(x_1917) == 0) { -lean_object* x_1948; lean_object* x_1949; lean_object* x_1950; -x_1948 = lean_ctor_get(x_1947, 0); -lean_inc(x_1948); -x_1949 = lean_ctor_get(x_1947, 1); +lean_object* x_1918; lean_object* x_1919; lean_object* x_1920; +x_1918 = lean_ctor_get(x_1917, 0); +lean_inc(x_1918); +x_1919 = lean_ctor_get(x_1917, 1); +lean_inc(x_1919); +lean_dec(x_1917); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +lean_inc(x_1918); +x_1920 = l_Lean_Meta_inferType___at_Lean_Elab_Term_tryLiftAndCoe___spec__2(x_1918, x_4, x_5, x_6, x_7, x_1894, x_9, x_1919); +if (lean_obj_tag(x_1920) == 0) +{ +lean_object* x_1921; lean_object* x_1922; +x_1921 = lean_ctor_get(x_1920, 0); +lean_inc(x_1921); +x_1922 = lean_ctor_get(x_1920, 1); +lean_inc(x_1922); +lean_dec(x_1920); +x_2 = x_1918; +x_3 = x_1921; +x_8 = x_1894; +x_10 = x_1922; +goto _start; +} +else +{ +lean_object* x_1924; lean_object* x_1925; lean_object* x_1926; lean_object* x_1927; +lean_dec(x_1918); +lean_dec(x_1894); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_1924 = lean_ctor_get(x_1920, 0); +lean_inc(x_1924); +x_1925 = lean_ctor_get(x_1920, 1); +lean_inc(x_1925); +if (lean_is_exclusive(x_1920)) { + lean_ctor_release(x_1920, 0); + lean_ctor_release(x_1920, 1); + x_1926 = x_1920; +} else { + lean_dec_ref(x_1920); + x_1926 = lean_box(0); +} +if (lean_is_scalar(x_1926)) { + x_1927 = lean_alloc_ctor(1, 2, 0); +} else { + x_1927 = x_1926; +} +lean_ctor_set(x_1927, 0, x_1924); +lean_ctor_set(x_1927, 1, x_1925); +return x_1927; +} +} +else +{ +lean_object* x_1928; lean_object* x_1929; lean_object* x_1930; lean_object* x_1931; +lean_dec(x_1894); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_1928 = lean_ctor_get(x_1917, 0); +lean_inc(x_1928); +x_1929 = lean_ctor_get(x_1917, 1); +lean_inc(x_1929); +if (lean_is_exclusive(x_1917)) { + lean_ctor_release(x_1917, 0); + lean_ctor_release(x_1917, 1); + x_1930 = x_1917; +} else { + lean_dec_ref(x_1917); + x_1930 = lean_box(0); +} +if (lean_is_scalar(x_1930)) { + x_1931 = lean_alloc_ctor(1, 2, 0); +} else { + x_1931 = x_1930; +} +lean_ctor_set(x_1931, 0, x_1928); +lean_ctor_set(x_1931, 1, x_1929); +return x_1931; +} +} +else +{ +lean_object* x_1932; uint8_t x_1933; +lean_dec(x_1896); +lean_dec(x_1); +x_1932 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1933 = l_Lean_checkTraceOption(x_1887, x_1932); +lean_dec(x_1887); +if (x_1933 == 0) +{ +lean_object* x_1934; +if (lean_obj_tag(x_13) == 0) +{ +lean_dec(x_3); +x_1934 = x_1897; +goto block_1946; +} +else +{ +lean_object* x_1947; lean_object* x_1948; +x_1947 = lean_ctor_get(x_13, 0); +lean_inc(x_1947); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_1894); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_1948 = l_Lean_Elab_Term_isDefEq(x_1947, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_1897); +if (lean_obj_tag(x_1948) == 0) +{ +lean_object* x_1949; +x_1949 = lean_ctor_get(x_1948, 1); lean_inc(x_1949); -lean_dec(x_1947); +lean_dec(x_1948); +x_1934 = x_1949; +goto block_1946; +} +else +{ +lean_object* x_1950; lean_object* x_1951; lean_object* x_1952; lean_object* x_1953; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1950 = lean_ctor_get(x_1948, 0); +lean_inc(x_1950); +x_1951 = lean_ctor_get(x_1948, 1); +lean_inc(x_1951); +if (lean_is_exclusive(x_1948)) { + lean_ctor_release(x_1948, 0); + lean_ctor_release(x_1948, 1); + x_1952 = x_1948; +} else { + lean_dec_ref(x_1948); + x_1952 = lean_box(0); +} +if (lean_is_scalar(x_1952)) { + x_1953 = lean_alloc_ctor(1, 2, 0); +} else { + x_1953 = x_1952; +} +lean_ctor_set(x_1953, 0, x_1950); +lean_ctor_set(x_1953, 1, x_1951); +return x_1953; +} +} +block_1946: +{ +lean_object* x_1935; lean_object* x_1936; +x_1935 = lean_unsigned_to_nat(0u); lean_inc(x_9); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -lean_inc(x_1948); -x_1950 = l_Lean_Meta_inferType___at_Lean_Elab_Term_tryLiftAndCoe___spec__2(x_1948, x_4, x_5, x_6, x_7, x_1924, x_9, x_1949); -if (lean_obj_tag(x_1950) == 0) +x_1936 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1935, x_4, x_5, x_6, x_7, x_1894, x_9, x_1934); +lean_dec(x_17); +if (lean_obj_tag(x_1936) == 0) { -lean_object* x_1951; lean_object* x_1952; -x_1951 = lean_ctor_get(x_1950, 0); -lean_inc(x_1951); -x_1952 = lean_ctor_get(x_1950, 1); -lean_inc(x_1952); -lean_dec(x_1950); -x_2 = x_1948; -x_3 = x_1951; -x_8 = x_1924; -x_10 = x_1952; -goto _start; +lean_object* x_1937; lean_object* x_1938; lean_object* x_1939; lean_object* x_1940; lean_object* x_1941; +x_1937 = lean_ctor_get(x_1936, 1); +lean_inc(x_1937); +lean_dec(x_1936); +lean_inc(x_2); +x_1938 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__1(x_2, x_11, x_19, x_1935, x_4, x_5, x_6, x_7, x_1894, x_9, x_1937); +lean_dec(x_9); +lean_dec(x_1894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_19); +x_1939 = lean_ctor_get(x_1938, 1); +lean_inc(x_1939); +if (lean_is_exclusive(x_1938)) { + lean_ctor_release(x_1938, 0); + lean_ctor_release(x_1938, 1); + x_1940 = x_1938; +} else { + lean_dec_ref(x_1938); + x_1940 = lean_box(0); +} +if (lean_is_scalar(x_1940)) { + x_1941 = lean_alloc_ctor(0, 2, 0); +} else { + x_1941 = x_1940; +} +lean_ctor_set(x_1941, 0, x_2); +lean_ctor_set(x_1941, 1, x_1939); +return x_1941; +} +else +{ +lean_object* x_1942; lean_object* x_1943; lean_object* x_1944; lean_object* x_1945; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1942 = lean_ctor_get(x_1936, 0); +lean_inc(x_1942); +x_1943 = lean_ctor_get(x_1936, 1); +lean_inc(x_1943); +if (lean_is_exclusive(x_1936)) { + lean_ctor_release(x_1936, 0); + lean_ctor_release(x_1936, 1); + x_1944 = x_1936; +} else { + lean_dec_ref(x_1936); + x_1944 = lean_box(0); +} +if (lean_is_scalar(x_1944)) { + x_1945 = lean_alloc_ctor(1, 2, 0); +} else { + x_1945 = x_1944; +} +lean_ctor_set(x_1945, 0, x_1942); +lean_ctor_set(x_1945, 1, x_1943); +return x_1945; +} +} } else { lean_object* x_1954; lean_object* x_1955; lean_object* x_1956; lean_object* x_1957; -lean_dec(x_1948); -lean_dec(x_1924); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_1954 = lean_ctor_get(x_1950, 0); -lean_inc(x_1954); -x_1955 = lean_ctor_get(x_1950, 1); -lean_inc(x_1955); -if (lean_is_exclusive(x_1950)) { - lean_ctor_release(x_1950, 0); - lean_ctor_release(x_1950, 1); - x_1956 = x_1950; -} else { - lean_dec_ref(x_1950); - x_1956 = lean_box(0); -} -if (lean_is_scalar(x_1956)) { - x_1957 = lean_alloc_ctor(1, 2, 0); -} else { - x_1957 = x_1956; -} -lean_ctor_set(x_1957, 0, x_1954); -lean_ctor_set(x_1957, 1, x_1955); -return x_1957; -} -} -else -{ -lean_object* x_1958; lean_object* x_1959; lean_object* x_1960; lean_object* x_1961; -lean_dec(x_1924); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_1958 = lean_ctor_get(x_1947, 0); -lean_inc(x_1958); -x_1959 = lean_ctor_get(x_1947, 1); -lean_inc(x_1959); -if (lean_is_exclusive(x_1947)) { - lean_ctor_release(x_1947, 0); - lean_ctor_release(x_1947, 1); - x_1960 = x_1947; -} else { - lean_dec_ref(x_1947); - x_1960 = lean_box(0); -} -if (lean_is_scalar(x_1960)) { - x_1961 = lean_alloc_ctor(1, 2, 0); -} else { - x_1961 = x_1960; -} -lean_ctor_set(x_1961, 0, x_1958); -lean_ctor_set(x_1961, 1, x_1959); -return x_1961; -} -} -else -{ -lean_object* x_1962; uint8_t x_1963; -lean_dec(x_1926); -lean_dec(x_1); -x_1962 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_1963 = l_Lean_checkTraceOption(x_1917, x_1962); -lean_dec(x_1917); -if (x_1963 == 0) -{ -lean_object* x_1964; +lean_inc(x_2); +x_1954 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1954, 0, x_2); +x_1955 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1932, x_1954, x_4, x_5, x_6, x_7, x_1894, x_9, x_1897); +x_1956 = lean_ctor_get(x_1955, 1); +lean_inc(x_1956); +lean_dec(x_1955); if (lean_obj_tag(x_13) == 0) { lean_dec(x_3); -x_1964 = x_1927; -goto block_1976; +x_1957 = x_1956; +goto block_1969; } else { -lean_object* x_1977; lean_object* x_1978; -x_1977 = lean_ctor_get(x_13, 0); -lean_inc(x_1977); +lean_object* x_1970; lean_object* x_1971; +x_1970 = lean_ctor_get(x_13, 0); +lean_inc(x_1970); lean_dec(x_13); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_1978 = l_Lean_Elab_Term_isDefEq(x_1977, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_1927); -if (lean_obj_tag(x_1978) == 0) +x_1971 = l_Lean_Elab_Term_isDefEq(x_1970, x_3, x_4, x_5, x_6, x_7, x_1894, x_9, x_1956); +if (lean_obj_tag(x_1971) == 0) { -lean_object* x_1979; -x_1979 = lean_ctor_get(x_1978, 1); -lean_inc(x_1979); -lean_dec(x_1978); -x_1964 = x_1979; -goto block_1976; -} -else -{ -lean_object* x_1980; lean_object* x_1981; lean_object* x_1982; lean_object* x_1983; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1980 = lean_ctor_get(x_1978, 0); -lean_inc(x_1980); -x_1981 = lean_ctor_get(x_1978, 1); -lean_inc(x_1981); -if (lean_is_exclusive(x_1978)) { - lean_ctor_release(x_1978, 0); - lean_ctor_release(x_1978, 1); - x_1982 = x_1978; -} else { - lean_dec_ref(x_1978); - x_1982 = lean_box(0); -} -if (lean_is_scalar(x_1982)) { - x_1983 = lean_alloc_ctor(1, 2, 0); -} else { - x_1983 = x_1982; -} -lean_ctor_set(x_1983, 0, x_1980); -lean_ctor_set(x_1983, 1, x_1981); -return x_1983; -} -} -block_1976: -{ -lean_object* x_1965; lean_object* x_1966; -x_1965 = lean_unsigned_to_nat(0u); -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_1966 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1965, x_4, x_5, x_6, x_7, x_1924, x_9, x_1964); -lean_dec(x_17); -if (lean_obj_tag(x_1966) == 0) -{ -lean_object* x_1967; lean_object* x_1968; lean_object* x_1969; lean_object* x_1970; lean_object* x_1971; -x_1967 = lean_ctor_get(x_1966, 1); -lean_inc(x_1967); -lean_dec(x_1966); -lean_inc(x_2); -x_1968 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__1(x_2, x_11, x_19, x_1965, x_4, x_5, x_6, x_7, x_1924, x_9, x_1967); -lean_dec(x_9); -lean_dec(x_1924); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_19); -x_1969 = lean_ctor_get(x_1968, 1); -lean_inc(x_1969); -if (lean_is_exclusive(x_1968)) { - lean_ctor_release(x_1968, 0); - lean_ctor_release(x_1968, 1); - x_1970 = x_1968; -} else { - lean_dec_ref(x_1968); - x_1970 = lean_box(0); -} -if (lean_is_scalar(x_1970)) { - x_1971 = lean_alloc_ctor(0, 2, 0); -} else { - x_1971 = x_1970; -} -lean_ctor_set(x_1971, 0, x_2); -lean_ctor_set(x_1971, 1, x_1969); -return x_1971; -} -else -{ -lean_object* x_1972; lean_object* x_1973; lean_object* x_1974; lean_object* x_1975; -lean_dec(x_1924); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1972 = lean_ctor_get(x_1966, 0); +lean_object* x_1972; +x_1972 = lean_ctor_get(x_1971, 1); lean_inc(x_1972); -x_1973 = lean_ctor_get(x_1966, 1); +lean_dec(x_1971); +x_1957 = x_1972; +goto block_1969; +} +else +{ +lean_object* x_1973; lean_object* x_1974; lean_object* x_1975; lean_object* x_1976; +lean_dec(x_1894); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_1973 = lean_ctor_get(x_1971, 0); lean_inc(x_1973); -if (lean_is_exclusive(x_1966)) { - lean_ctor_release(x_1966, 0); - lean_ctor_release(x_1966, 1); - x_1974 = x_1966; +x_1974 = lean_ctor_get(x_1971, 1); +lean_inc(x_1974); +if (lean_is_exclusive(x_1971)) { + lean_ctor_release(x_1971, 0); + lean_ctor_release(x_1971, 1); + x_1975 = x_1971; } else { - lean_dec_ref(x_1966); - x_1974 = lean_box(0); + lean_dec_ref(x_1971); + x_1975 = lean_box(0); } -if (lean_is_scalar(x_1974)) { - x_1975 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1975)) { + x_1976 = lean_alloc_ctor(1, 2, 0); } else { - x_1975 = x_1974; + x_1976 = x_1975; } -lean_ctor_set(x_1975, 0, x_1972); -lean_ctor_set(x_1975, 1, x_1973); -return x_1975; +lean_ctor_set(x_1976, 0, x_1973); +lean_ctor_set(x_1976, 1, x_1974); +return x_1976; } } -} -else +block_1969: { -lean_object* x_1984; lean_object* x_1985; lean_object* x_1986; lean_object* x_1987; -lean_inc(x_2); -x_1984 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1984, 0, x_2); -x_1985 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1962, x_1984, x_4, x_5, x_6, x_7, x_1924, x_9, x_1927); -x_1986 = lean_ctor_get(x_1985, 1); -lean_inc(x_1986); -lean_dec(x_1985); -if (lean_obj_tag(x_13) == 0) -{ -lean_dec(x_3); -x_1987 = x_1986; -goto block_1999; -} -else -{ -lean_object* x_2000; lean_object* x_2001; -x_2000 = lean_ctor_get(x_13, 0); -lean_inc(x_2000); -lean_dec(x_13); +lean_object* x_1958; lean_object* x_1959; +x_1958 = lean_unsigned_to_nat(0u); lean_inc(x_9); -lean_inc(x_1924); +lean_inc(x_1894); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_2001 = l_Lean_Elab_Term_isDefEq(x_2000, x_3, x_4, x_5, x_6, x_7, x_1924, x_9, x_1986); -if (lean_obj_tag(x_2001) == 0) -{ -lean_object* x_2002; -x_2002 = lean_ctor_get(x_2001, 1); -lean_inc(x_2002); -lean_dec(x_2001); -x_1987 = x_2002; -goto block_1999; -} -else -{ -lean_object* x_2003; lean_object* x_2004; lean_object* x_2005; lean_object* x_2006; -lean_dec(x_1924); -lean_dec(x_19); +x_1959 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1958, x_4, x_5, x_6, x_7, x_1894, x_9, x_1957); lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_2003 = lean_ctor_get(x_2001, 0); -lean_inc(x_2003); -x_2004 = lean_ctor_get(x_2001, 1); -lean_inc(x_2004); -if (lean_is_exclusive(x_2001)) { - lean_ctor_release(x_2001, 0); - lean_ctor_release(x_2001, 1); - x_2005 = x_2001; -} else { - lean_dec_ref(x_2001); - x_2005 = lean_box(0); -} -if (lean_is_scalar(x_2005)) { - x_2006 = lean_alloc_ctor(1, 2, 0); -} else { - x_2006 = x_2005; -} -lean_ctor_set(x_2006, 0, x_2003); -lean_ctor_set(x_2006, 1, x_2004); -return x_2006; -} -} -block_1999: +if (lean_obj_tag(x_1959) == 0) { -lean_object* x_1988; lean_object* x_1989; -x_1988 = lean_unsigned_to_nat(0u); -lean_inc(x_9); -lean_inc(x_1924); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_1989 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_17, x_1988, x_4, x_5, x_6, x_7, x_1924, x_9, x_1987); -lean_dec(x_17); -if (lean_obj_tag(x_1989) == 0) -{ -lean_object* x_1990; lean_object* x_1991; lean_object* x_1992; lean_object* x_1993; lean_object* x_1994; -x_1990 = lean_ctor_get(x_1989, 1); -lean_inc(x_1990); -lean_dec(x_1989); +lean_object* x_1960; lean_object* x_1961; lean_object* x_1962; lean_object* x_1963; lean_object* x_1964; +x_1960 = lean_ctor_get(x_1959, 1); +lean_inc(x_1960); +lean_dec(x_1959); lean_inc(x_2); -x_1991 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_2, x_11, x_19, x_1988, x_4, x_5, x_6, x_7, x_1924, x_9, x_1990); +x_1961 = l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_2, x_11, x_19, x_1958, x_4, x_5, x_6, x_7, x_1894, x_9, x_1960); lean_dec(x_9); -lean_dec(x_1924); +lean_dec(x_1894); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_19); -x_1992 = lean_ctor_get(x_1991, 1); -lean_inc(x_1992); -if (lean_is_exclusive(x_1991)) { - lean_ctor_release(x_1991, 0); - lean_ctor_release(x_1991, 1); - x_1993 = x_1991; +x_1962 = lean_ctor_get(x_1961, 1); +lean_inc(x_1962); +if (lean_is_exclusive(x_1961)) { + lean_ctor_release(x_1961, 0); + lean_ctor_release(x_1961, 1); + x_1963 = x_1961; } else { - lean_dec_ref(x_1991); - x_1993 = lean_box(0); + lean_dec_ref(x_1961); + x_1963 = lean_box(0); } -if (lean_is_scalar(x_1993)) { - x_1994 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_1963)) { + x_1964 = lean_alloc_ctor(0, 2, 0); } else { - x_1994 = x_1993; + x_1964 = x_1963; } -lean_ctor_set(x_1994, 0, x_2); -lean_ctor_set(x_1994, 1, x_1992); -return x_1994; +lean_ctor_set(x_1964, 0, x_2); +lean_ctor_set(x_1964, 1, x_1962); +return x_1964; } else { -lean_object* x_1995; lean_object* x_1996; lean_object* x_1997; lean_object* x_1998; -lean_dec(x_1924); +lean_object* x_1965; lean_object* x_1966; lean_object* x_1967; lean_object* x_1968; +lean_dec(x_1894); lean_dec(x_19); lean_dec(x_11); lean_dec(x_9); @@ -20386,26 +19864,26 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1995 = lean_ctor_get(x_1989, 0); -lean_inc(x_1995); -x_1996 = lean_ctor_get(x_1989, 1); -lean_inc(x_1996); -if (lean_is_exclusive(x_1989)) { - lean_ctor_release(x_1989, 0); - lean_ctor_release(x_1989, 1); - x_1997 = x_1989; +x_1965 = lean_ctor_get(x_1959, 0); +lean_inc(x_1965); +x_1966 = lean_ctor_get(x_1959, 1); +lean_inc(x_1966); +if (lean_is_exclusive(x_1959)) { + lean_ctor_release(x_1959, 0); + lean_ctor_release(x_1959, 1); + x_1967 = x_1959; } else { - lean_dec_ref(x_1989); - x_1997 = lean_box(0); + lean_dec_ref(x_1959); + x_1967 = lean_box(0); } -if (lean_is_scalar(x_1997)) { - x_1998 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1967)) { + x_1968 = lean_alloc_ctor(1, 2, 0); } else { - x_1998 = x_1997; + x_1968 = x_1967; } -lean_ctor_set(x_1998, 0, x_1995); -lean_ctor_set(x_1998, 1, x_1996); -return x_1998; +lean_ctor_set(x_1968, 0, x_1965); +lean_ctor_set(x_1968, 1, x_1966); +return x_1968; } } } @@ -20415,9 +19893,9 @@ return x_1998; } else { -lean_object* x_2903; lean_object* x_2904; lean_object* x_2905; lean_object* x_2906; -lean_dec(x_1924); -lean_dec(x_1917); +lean_object* x_2858; lean_object* x_2859; lean_object* x_2860; lean_object* x_2861; +lean_dec(x_1894); +lean_dec(x_1887); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -20434,26 +19912,26 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_2903 = lean_ctor_get(x_1925, 0); -lean_inc(x_2903); -x_2904 = lean_ctor_get(x_1925, 1); -lean_inc(x_2904); -if (lean_is_exclusive(x_1925)) { - lean_ctor_release(x_1925, 0); - lean_ctor_release(x_1925, 1); - x_2905 = x_1925; +x_2858 = lean_ctor_get(x_1895, 0); +lean_inc(x_2858); +x_2859 = lean_ctor_get(x_1895, 1); +lean_inc(x_2859); +if (lean_is_exclusive(x_1895)) { + lean_ctor_release(x_1895, 0); + lean_ctor_release(x_1895, 1); + x_2860 = x_1895; } else { - lean_dec_ref(x_1925); - x_2905 = lean_box(0); + lean_dec_ref(x_1895); + x_2860 = lean_box(0); } -if (lean_is_scalar(x_2905)) { - x_2906 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2860)) { + x_2861 = lean_alloc_ctor(1, 2, 0); } else { - x_2906 = x_2905; + x_2861 = x_2860; } -lean_ctor_set(x_2906, 0, x_2903); -lean_ctor_set(x_2906, 1, x_2904); -return x_2906; +lean_ctor_set(x_2861, 0, x_2858); +lean_ctor_set(x_2861, 1, x_2859); +return x_2861; } } } @@ -30718,6 +30196,8 @@ l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__18 = _init_l___pri lean_mark_persistent(l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__18); l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19 = _init_l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19(); lean_mark_persistent(l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19); +l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__20 = _init_l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__20(); +lean_mark_persistent(l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__20); l___private_Lean_Elab_App_11__elabAppArgs___closed__1 = _init_l___private_Lean_Elab_App_11__elabAppArgs___closed__1(); lean_mark_persistent(l___private_Lean_Elab_App_11__elabAppArgs___closed__1); l___private_Lean_Elab_App_11__elabAppArgs___closed__2 = _init_l___private_Lean_Elab_App_11__elabAppArgs___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Tactic.c b/stage0/stdlib/Lean/Elab/Tactic.c index e260de7b33..711f798f5e 100644 --- a/stage0/stdlib/Lean/Elab/Tactic.c +++ b/stage0/stdlib/Lean/Elab/Tactic.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Tactic -// Imports: Init Lean.Elab.Term Lean.Elab.Tactic.Basic Lean.Elab.Tactic.ElabTerm Lean.Elab.Tactic.Induction Lean.Elab.Tactic.Generalize Lean.Elab.Tactic.Injection Lean.Elab.Tactic.Match +// Imports: Init Lean.Elab.Term Lean.Elab.Tactic.Basic Lean.Elab.Tactic.ElabTerm Lean.Elab.Tactic.Induction Lean.Elab.Tactic.Generalize Lean.Elab.Tactic.Injection Lean.Elab.Tactic.Match Lean.Elab.Tactic.Binders #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -21,6 +21,7 @@ lean_object* initialize_Lean_Elab_Tactic_Induction(lean_object*); lean_object* initialize_Lean_Elab_Tactic_Generalize(lean_object*); lean_object* initialize_Lean_Elab_Tactic_Injection(lean_object*); lean_object* initialize_Lean_Elab_Tactic_Match(lean_object*); +lean_object* initialize_Lean_Elab_Tactic_Binders(lean_object*); static bool _G_initialized = false; lean_object* initialize_Lean_Elab_Tactic(lean_object* w) { lean_object * res; @@ -50,6 +51,9 @@ lean_dec_ref(res); res = initialize_Lean_Elab_Tactic_Match(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_Tactic_Binders(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/Lean/Elab/Tactic/Basic.c b/stage0/stdlib/Lean/Elab/Tactic/Basic.c index 681828b546..32ee920609 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Basic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Basic.c @@ -139,7 +139,6 @@ 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; lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__4; -lean_object* l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__2; size_t l_USize_shiftRight(size_t, size_t); lean_object* l_Lean_Elab_Tactic_evalIntro___closed__16; lean_object* l___private_Init_Data_Array_QSort_1__partitionAux___main___at___private_Lean_Elab_Tactic_Basic_5__sortFVarIds___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -201,7 +200,6 @@ lean_object* l_Lean_Elab_Tactic_evalCase(lean_object*, lean_object*, lean_object lean_object* l___regBuiltin_Lean_Elab_Tactic_evalClear___closed__1; lean_object* l_Lean_Elab_Tactic_monadExcept___closed__3; lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprMVarAssigned___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -288,7 +286,6 @@ lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean lean_object* l_Lean_Meta_getMVarDecl___at_Lean_Meta_isReadOnlyExprMVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalParen___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Tactic_evalTactic___main___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__3; lean_object* l_Lean_Elab_Tactic_getMainModule___rarg___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_3__introStep___closed__1; lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -386,7 +383,6 @@ lean_object* l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main__ lean_object* l_Lean_Elab_Tactic_evalRevert___closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_ensureHasNoMVars___closed__2; -lean_object* l_Lean_Elab_Tactic_evalNestedTacticBlockCurly(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__2; extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; lean_object* l_Lean_Elab_Tactic_liftMetaTactic___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -462,7 +458,6 @@ lean_object* l_Lean_Elab_Tactic_monadExcept___lambda__2(lean_object*, lean_objec lean_object* l_Array_toList___rarg(lean_object*); lean_object* l_Lean_Elab_Tactic_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalIntro___closed__29; -lean_object* l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__1; lean_object* l_Lean_Elab_Tactic_withMacroExpansion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_4__getIntrosSize(lean_object*); lean_object* l_Lean_Elab_Term_reportUnsolvedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -544,7 +539,6 @@ lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalTactic___main___spec__1 lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__2; extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__4; lean_object* l_Lean_addMessageDataContextFull___at_Lean_Meta_Lean_AddMessageDataContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_evalNestedTacticBlockCurly___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_TacticM_run_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_expandTacticMacro(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_MetaM_run_x27___rarg___closed__3; @@ -15872,7 +15866,7 @@ lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlock___close _start: { lean_object* x_1; -x_1 = lean_mk_string("nestedTacticBlock"); +x_1 = lean_mk_string("nestedTacticBlockCurly"); return x_1; } } @@ -15905,60 +15899,6 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Tactic_evalNestedTacticBlockCurly(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Elab_Tactic_evalNestedTacticBlock(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_11; -} -} -lean_object* l_Lean_Elab_Tactic_evalNestedTacticBlockCurly___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Elab_Tactic_evalNestedTacticBlockCurly(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_1); -return x_11; -} -} -lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("nestedTacticBlockCurly"); -return x_1; -} -} -lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_mkTacticAttribute___closed__8; -x_2 = l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalNestedTacticBlockCurly___boxed), 10, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly(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_Elab_Tactic_tacticElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__3; -x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); -return x_5; -} -} lean_object* l_List_findM_x3f___main___at_Lean_Elab_Tactic_evalCase___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { @@ -17144,15 +17084,6 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlock___clo res = l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlock(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__1); -l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__2); -l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__3 = _init_l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__3); -res = l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); l_Lean_Elab_Tactic_evalCase___closed__1 = _init_l_Lean_Elab_Tactic_evalCase___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_evalCase___closed__1); l_Lean_Elab_Tactic_evalCase___closed__2 = _init_l_Lean_Elab_Tactic_evalCase___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index 33096c44e1..2a650296ea 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -88,7 +88,6 @@ lean_object* l_Lean_Elab_Term_expandArrayLit___closed__10; lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_elabTacticBlock(lean_object*); extern lean_object* l_Lean_KeyedDeclsAttribute_Def_inhabited___closed__2; lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_commitWhenSome_x3f___at___private_Lean_Meta_ExprDefEq_1__isDefEqEta___spec__2___closed__1; @@ -374,7 +373,6 @@ lean_object* l___private_Lean_Meta_InferType_21__isTypeImp___at_Lean_Meta_isType lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabTacticBlock___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_List_foldlM___main___at___private_Lean_Elab_Term_24__mkConsts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Exception_hasSyntheticSorry(lean_object*); @@ -383,7 +381,6 @@ lean_object* l_Lean_Elab_Term_getMVarDecl___boxed(lean_object*, lean_object*, le lean_object* l_Lean_Elab_Term_elabUsingElabFns___closed__4; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__7; -lean_object* l_Lean_Elab_Term_elabTacticBlock___closed__1; lean_object* l_Lean_SMap_empty___at_Lean_Elab_Term_termElabAttribute___spec__1___closed__2; lean_object* l_Lean_Elab_Term_TermElabM_run_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryLiftAndCoe___closed__2; @@ -470,7 +467,6 @@ lean_object* l_Lean_Elab_Term_mkTermElabAttribute(lean_object*); extern lean_object* l_Lean_numLitKind___closed__2; lean_object* l_Lean_Elab_Term_MVarErrorContext_logError___closed__5; lean_object* l_Lean_Elab_Term_SavedState_inhabited___closed__1; -lean_object* l_Lean_Elab_Term_elabTacticBlock___closed__2; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabTermAux___main___spec__2___rarg(lean_object*); lean_object* l_Lean_Elab_Term_monadLog___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -480,7 +476,6 @@ lean_object* l_Lean_Elab_Term_expandArrayLit___closed__9; lean_object* l_Lean_Elab_Term_getMessageLog___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_useImplicitLambda_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__3; lean_object* l_Lean_Elab_Term_elabLevel___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldlM___main___at___private_Lean_Elab_Term_24__mkConsts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -622,7 +617,6 @@ lean_object* l_Lean_Elab_Term_traceAtCmdPos(lean_object*, lean_object*, lean_obj extern lean_object* l_Lean_Elab_postponeExceptionId; lean_object* l_Lean_Elab_throwPostpone___at_Lean_Elab_Term_tryPostpone___spec__1___rarg(lean_object*); lean_object* lean_environment_main_module(lean_object*); -lean_object* l_Lean_Elab_Term_elabTacticBlock___closed__3; extern lean_object* l_Std_PersistentArray_empty___closed__3; lean_object* l_Lean_Elab_Term_elabUsingElabFns___closed__5; uint8_t l_Lean_Expr_isMVar(lean_object*); @@ -771,7 +765,6 @@ extern lean_object* l_Lean_mkHole___closed__2; lean_object* l_Lean_Elab_logException___at___private_Lean_Elab_Term_10__exceptionToSorry___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabByTactic___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName___closed__2; -lean_object* l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__2; lean_object* l_Lean_Elab_Term_elabSyntheticHole(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkPairs___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__11; @@ -799,7 +792,6 @@ uint8_t l___private_Lean_Elab_Term_14__isExplicitApp(lean_object*); lean_object* l___private_Lean_Elab_Term_13__isExplicit___closed__1; extern lean_object* l_Lean_arrayToExpr___rarg___lambda__1___closed__2; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabTacticBlock(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkPure___at___private_Lean_Elab_Term_9__tryPureCoe_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; extern lean_object* l_Lean_Meta_mkPure___rarg___closed__4; @@ -809,7 +801,6 @@ lean_object* l_Lean_mkNatLit(lean_object*); lean_object* l_Lean_mkStrLit(lean_object*); extern lean_object* l_Lean_MessageData_coeOfOptExpr___closed__1; lean_object* l_Std_PersistentHashMap_findAtAux___main___at_Lean_Elab_Term_elabUsingElabFns___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__1; lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MonadError___closed__1; lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, uint8_t, lean_object*, lean_object*); @@ -28175,108 +28166,6 @@ lean_dec(x_4); return x_10; } } -lean_object* _init_l_Lean_Elab_Term_elabTacticBlock___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid tactic block, expected type has not been provided"); -return x_1; -} -} -lean_object* _init_l_Lean_Elab_Term_elabTacticBlock___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabTacticBlock___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_elabTacticBlock___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabTacticBlock___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_elabTacticBlock(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = l_Lean_Elab_Term_elabTacticBlock___closed__3; -x_11 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_7); -lean_dec(x_5); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_2, 0); -lean_inc(x_12); -lean_dec(x_2); -x_13 = lean_unsigned_to_nat(1u); -x_14 = l_Lean_Syntax_getArg(x_1, x_13); -x_15 = l_Lean_Elab_Term_mkTacticMVar(x_12, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_15; -} -} -} -lean_object* l_Lean_Elab_Term_elabTacticBlock___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Elab_Term_elabTacticBlock(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_1); -return x_10; -} -} -lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("tacticBlock"); -return x_1; -} -} -lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTacticBlock___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___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTacticBlock___boxed), 9, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Term_elabTacticBlock(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_Elab_Term_termElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__3; -x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); -return x_5; -} -} lean_object* _init_l_Lean_Elab_Term_elabByTactic___closed__1() { _start: { @@ -33168,21 +33057,6 @@ l_Lean_Elab_Term_mkTacticMVar___closed__1 = _init_l_Lean_Elab_Term_mkTacticMVar_ lean_mark_persistent(l_Lean_Elab_Term_mkTacticMVar___closed__1); l_Lean_Elab_Term_mkTacticMVar___closed__2 = _init_l_Lean_Elab_Term_mkTacticMVar___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_mkTacticMVar___closed__2); -l_Lean_Elab_Term_elabTacticBlock___closed__1 = _init_l_Lean_Elab_Term_elabTacticBlock___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_elabTacticBlock___closed__1); -l_Lean_Elab_Term_elabTacticBlock___closed__2 = _init_l_Lean_Elab_Term_elabTacticBlock___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_elabTacticBlock___closed__2); -l_Lean_Elab_Term_elabTacticBlock___closed__3 = _init_l_Lean_Elab_Term_elabTacticBlock___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_elabTacticBlock___closed__3); -l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__1); -l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__2); -l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__3); -res = l___regBuiltin_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(); diff --git a/stage0/stdlib/Lean/Parser/Command.c b/stage0/stdlib/Lean/Parser/Command.c index 196052339e..2feabf807e 100644 --- a/stage0/stdlib/Lean/Parser/Command.c +++ b/stage0/stdlib/Lean/Parser/Command.c @@ -43,6 +43,7 @@ lean_object* l_Lean_Parser_Command_structure___closed__7; lean_object* l_Lean_Parser_Command_openRenaming_formatter___closed__4; lean_object* l_Lean_Parser_Command_structImplicitBinder_parenthesizer___closed__6; lean_object* l_Lean_Parser_Command_section___elambda__1___closed__4; +lean_object* l_Lean_Parser_Command_mutual_formatter___closed__8; lean_object* l_Lean_Parser_Command_structure_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_open___closed__3; lean_object* l_Lean_Parser_Command_printAxioms___elambda__1___closed__7; @@ -287,7 +288,6 @@ lean_object* l_Lean_Parser_Command_openHiding_formatter(lean_object*, lean_objec lean_object* l_Lean_Parser_Command_structCtor_parenthesizer___closed__6; lean_object* l_Lean_Parser_Command_inferMod___closed__1; lean_object* l_Lean_Parser_Command_universe_parenthesizer___closed__1; -extern lean_object* l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; lean_object* l_Lean_Parser_Command_docComment_formatter___closed__4; lean_object* l_Lean_Parser_Command_abbrev___elambda__1___closed__9; lean_object* l_Lean_Parser_Command_declaration___closed__3; @@ -669,6 +669,7 @@ lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__8; lean_object* l_Lean_Parser_Command_declValSimple___elambda__1___closed__1; extern lean_object* l_Lean_Parser_Term_letrec_formatter___closed__6; lean_object* l_Lean_Parser_Command_axiom_parenthesizer___closed__2; +lean_object* l_Lean_Parser_Command_mutual___elambda__1___closed__12; lean_object* l_Lean_Parser_Command_inferMod_parenthesizer___closed__2; lean_object* l_Lean_Parser_Command_structInstBinder_formatter___closed__2; lean_object* l_Lean_Parser_Command_structImplicitBinder_parenthesizer___closed__4; @@ -810,7 +811,6 @@ lean_object* l_Lean_Parser_Command_printAxioms_formatter(lean_object*, lean_obje lean_object* l_Lean_Parser_Command_axiom_formatter___closed__4; lean_object* l___regBuiltin_Lean_Parser_Command_printAxioms_formatter(lean_object*); lean_object* l_Lean_Parser_Command_init__quot_parenthesizer___closed__1; -extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7; extern lean_object* l_Lean_Parser_Term_letrec_parenthesizer___closed__3; lean_object* l_Lean_Parser_Command_commentBody_parenthesizer___boxed(lean_object*); lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__2; @@ -882,6 +882,7 @@ lean_object* l_Lean_Parser_Command_structureTk___elambda__1___closed__5; lean_object* l_Lean_Parser_Command_structFields_parenthesizer___closed__4; uint8_t l_Lean_Parser_tryAnti(lean_object*, lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Command_exit(lean_object*); +lean_object* l_Lean_Parser_Command_mutual___elambda__1___closed__11; extern lean_object* l_Lean_Parser_Level_ident_parenthesizer___closed__1; lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__8; lean_object* l_Lean_Parser_Command_inductive___closed__9; @@ -918,6 +919,7 @@ lean_object* l_Lean_Parser_Command_structure_parenthesizer___closed__5; lean_object* l_Lean_Parser_Command_openRenaming___elambda__1___closed__8; lean_object* l___regBuiltin_Lean_Parser_Command_init__quot_formatter(lean_object*); lean_object* l_Lean_Parser_Command_unsafe___closed__5; +lean_object* l_Lean_Parser_Command_mutual___closed__9; lean_object* l_Lean_Parser_Command_structure_parenthesizer___closed__14; lean_object* l_Lean_Parser_Command_classInductive___closed__3; lean_object* l_Lean_Parser_Command_resolve__name___closed__7; @@ -1084,7 +1086,6 @@ extern lean_object* l_Lean_Parser_Term_typeAscription_parenthesizer___closed__2; lean_object* l_Lean_Parser_Command_section; lean_object* l_Lean_Parser_Command_openOnly_parenthesizer___closed__2; lean_object* l_Lean_Parser_Command_openRenaming___elambda__1___closed__2; -extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; extern lean_object* l_Lean_Parser_Term_subtype_parenthesizer___closed__2; lean_object* l___regBuiltin_Lean_Parser_Command_set__option_formatter(lean_object*); lean_object* l_Lean_Parser_Command_attribute_parenthesizer___closed__1; @@ -1201,7 +1202,6 @@ lean_object* l_Lean_Parser_Command_structInstBinder___closed__9; lean_object* l_Lean_Parser_Command_ctor___closed__4; lean_object* l_Lean_Parser_Command_universes___closed__4; lean_object* l_Lean_Parser_Command_axiom_formatter___closed__2; -extern lean_object* l_Lean_Parser_Term_tacticBlock___closed__2; extern lean_object* l_Lean_Parser_Term_letEqnsDecl___elambda__1___closed__3; lean_object* l_Lean_Parser_Command_classTk___elambda__1___closed__4; lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__6; @@ -1531,6 +1531,7 @@ lean_object* l_Lean_Parser_Command_structImplicitBinder___elambda__1(lean_object lean_object* l_Lean_Parser_Command_ctor___closed__2; lean_object* l_Lean_Parser_Term_quot; lean_object* l_Lean_Parser_Command_structure___elambda__1___closed__1; +lean_object* l_Lean_Parser_Command_mutual___elambda__1___closed__10; lean_object* l_Lean_Parser_commandParser_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_structCtor___closed__3; lean_object* l_Lean_Parser_Command_synth_formatter___closed__1; @@ -1633,6 +1634,7 @@ lean_object* l_Lean_Parser_Command_ctor___closed__9; 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_mutualElement___elambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Parser_Command_end___elambda__1___closed__9; lean_object* l_Lean_Parser_Command_print_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_instance___elambda__1___closed__7; lean_object* l_Lean_Parser_Command_section_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1733,6 +1735,7 @@ lean_object* l_Lean_Parser_Command_classInductive___elambda__1___closed__9; lean_object* l_Lean_Parser_Command_openRenaming___closed__2; lean_object* l_Lean_Parser_Command_section_formatter___closed__4; lean_object* l_Lean_Parser_Command_protected_parenthesizer___closed__2; +extern lean_object* l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; lean_object* l_Lean_Parser_Command_print___closed__8; lean_object* l_Lean_Parser_Command_openOnly_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_openHiding___elambda__1___closed__9; @@ -1879,6 +1882,7 @@ lean_object* l_Lean_Parser_Command_partial; lean_object* l_Lean_Parser_Command_declId___elambda__1___closed__4; lean_object* l_Lean_Parser_Command_declModifiers___closed__11; extern lean_object* l_Lean_Parser_Term_structInstArrayRef_formatter___closed__2; +lean_object* l_Lean_Parser_Command_mutual___elambda__1___closed__13; lean_object* l_Lean_Parser_Command_set__option_formatter___closed__2; lean_object* l_Lean_Parser_Command_end___elambda__1___closed__5; lean_object* l_Lean_Parser_Command_variable___elambda__1___closed__3; @@ -1931,7 +1935,6 @@ lean_object* l_Lean_Parser_Command_mutual___elambda__1___closed__5; lean_object* l_Lean_Parser_Command_openHiding_formatter___closed__1; lean_object* l_Lean_Parser_Command_declaration___closed__15; lean_object* l_Lean_Parser_Command_private_parenthesizer___closed__2; -extern lean_object* l_Lean_Parser_Term_tacticBlock_formatter___closed__3; lean_object* l_Lean_Parser_Command_declValSimple___closed__3; lean_object* l_Lean_Parser_Command_axiom___elambda__1___closed__3; lean_object* l_Lean_Parser_Command_openHiding___closed__6; @@ -2031,7 +2034,6 @@ lean_object* l_Lean_Parser_Command_example___closed__4; lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(lean_object*); lean_object* l_Lean_Parser_Command_structure___closed__14; lean_object* l_Lean_Parser_Command_instance___closed__3; -extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8; lean_object* l___regBuiltin_Lean_Parser_Command_mutual_formatter___closed__1; lean_object* l_Lean_Parser_Command_docComment___closed__6; lean_object* l_Lean_Parser_Command_private_formatter___closed__2; @@ -7272,7 +7274,7 @@ lean_dec(x_44); if (x_46 == 0) { lean_object* x_47; lean_object* x_48; -x_47 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_47 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_48 = l_Lean_Parser_ParserState_mkErrorsAt(x_40, x_47, x_39); x_16 = x_48; goto block_33; @@ -7288,7 +7290,7 @@ else { lean_object* x_49; lean_object* x_50; lean_dec(x_43); -x_49 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_49 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_50 = l_Lean_Parser_ParserState_mkErrorsAt(x_40, x_49, x_39); x_16 = x_50; goto block_33; @@ -7298,7 +7300,7 @@ else { lean_object* x_51; lean_object* x_52; lean_dec(x_41); -x_51 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_51 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_52 = l_Lean_Parser_ParserState_mkErrorsAt(x_40, x_51, x_39); x_16 = x_52; goto block_33; @@ -7553,7 +7555,7 @@ lean_dec(x_119); if (x_121 == 0) { lean_object* x_122; lean_object* x_123; -x_122 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_122 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_123 = l_Lean_Parser_ParserState_mkErrorsAt(x_115, x_122, x_114); x_88 = x_123; goto block_108; @@ -7569,7 +7571,7 @@ else { lean_object* x_124; lean_object* x_125; lean_dec(x_118); -x_124 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_124 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_125 = l_Lean_Parser_ParserState_mkErrorsAt(x_115, x_124, x_114); x_88 = x_125; goto block_108; @@ -7579,7 +7581,7 @@ else { lean_object* x_126; lean_object* x_127; lean_dec(x_116); -x_126 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_126 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_127 = l_Lean_Parser_ParserState_mkErrorsAt(x_115, x_126, x_114); x_88 = x_127; goto block_108; @@ -12976,7 +12978,7 @@ lean_dec(x_59); if (x_61 == 0) { lean_object* x_62; lean_object* x_63; -x_62 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_62 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; lean_inc(x_10); x_63 = l_Lean_Parser_ParserState_mkErrorsAt(x_55, x_62, x_10); x_23 = x_63; @@ -12992,7 +12994,7 @@ else { lean_object* x_64; lean_object* x_65; lean_dec(x_58); -x_64 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_64 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; lean_inc(x_10); x_65 = l_Lean_Parser_ParserState_mkErrorsAt(x_55, x_64, x_10); x_23 = x_65; @@ -13003,7 +13005,7 @@ else { lean_object* x_66; lean_object* x_67; lean_dec(x_56); -x_66 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_66 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; lean_inc(x_10); x_67 = l_Lean_Parser_ParserState_mkErrorsAt(x_55, x_66, x_10); x_23 = x_67; @@ -13068,7 +13070,7 @@ lean_dec(x_30); if (x_32 == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_33 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_33 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_34 = l_Lean_Parser_ParserState_mkErrorsAt(x_26, x_33, x_25); x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); @@ -13103,7 +13105,7 @@ else { lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_dec(x_29); -x_41 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_41 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_42 = l_Lean_Parser_ParserState_mkErrorsAt(x_26, x_41, x_25); x_43 = lean_ctor_get(x_42, 0); lean_inc(x_43); @@ -13122,7 +13124,7 @@ else { lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_dec(x_27); -x_46 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_46 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_47 = l_Lean_Parser_ParserState_mkErrorsAt(x_26, x_46, x_25); x_48 = lean_ctor_get(x_47, 0); lean_inc(x_48); @@ -13243,7 +13245,7 @@ lean_dec(x_132); if (x_134 == 0) { lean_object* x_135; lean_object* x_136; -x_135 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_135 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; lean_inc(x_81); x_136 = l_Lean_Parser_ParserState_mkErrorsAt(x_128, x_135, x_81); x_96 = x_136; @@ -13259,7 +13261,7 @@ else { lean_object* x_137; lean_object* x_138; lean_dec(x_131); -x_137 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_137 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; lean_inc(x_81); x_138 = l_Lean_Parser_ParserState_mkErrorsAt(x_128, x_137, x_81); x_96 = x_138; @@ -13270,7 +13272,7 @@ else { lean_object* x_139; lean_object* x_140; lean_dec(x_129); -x_139 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_139 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; lean_inc(x_81); x_140 = l_Lean_Parser_ParserState_mkErrorsAt(x_128, x_139, x_81); x_96 = x_140; @@ -13339,7 +13341,7 @@ lean_dec(x_103); if (x_105 == 0) { lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_106 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_106 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_107 = l_Lean_Parser_ParserState_mkErrorsAt(x_99, x_106, x_98); x_108 = lean_ctor_get(x_107, 0); lean_inc(x_108); @@ -13374,7 +13376,7 @@ else { lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_dec(x_102); -x_114 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_114 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_115 = l_Lean_Parser_ParserState_mkErrorsAt(x_99, x_114, x_98); x_116 = lean_ctor_get(x_115, 0); lean_inc(x_116); @@ -13393,7 +13395,7 @@ else { lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_dec(x_100); -x_119 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_119 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_120 = l_Lean_Parser_ParserState_mkErrorsAt(x_99, x_119, x_98); x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); @@ -17008,7 +17010,7 @@ lean_dec(x_99); if (x_101 == 0) { lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_102 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_102 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_103 = l_Lean_Parser_ParserState_mkErrorsAt(x_95, x_102, x_94); x_104 = lean_ctor_get(x_103, 0); lean_inc(x_104); @@ -17043,7 +17045,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_98); -x_110 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_110 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_111 = l_Lean_Parser_ParserState_mkErrorsAt(x_95, x_110, x_94); x_112 = lean_ctor_get(x_111, 0); lean_inc(x_112); @@ -17062,7 +17064,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_96); -x_115 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_115 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_116 = l_Lean_Parser_ParserState_mkErrorsAt(x_95, x_115, x_94); x_117 = lean_ctor_get(x_116, 0); lean_inc(x_117); @@ -17132,7 +17134,7 @@ lean_dec(x_21); if (x_23 == 0) { lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_24 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_25 = l_Lean_Parser_ParserState_mkErrorsAt(x_17, x_24, x_16); x_26 = l_Lean_Parser_Command_structImplicitBinder___elambda__1___closed__2; x_27 = l_Lean_Parser_ParserState_mkNode(x_25, x_26, x_11); @@ -17151,7 +17153,7 @@ else { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_dec(x_20); -x_30 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_30 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_31 = l_Lean_Parser_ParserState_mkErrorsAt(x_17, x_30, x_16); x_32 = l_Lean_Parser_Command_structImplicitBinder___elambda__1___closed__2; x_33 = l_Lean_Parser_ParserState_mkNode(x_31, x_32, x_11); @@ -17162,7 +17164,7 @@ else { lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_dec(x_18); -x_34 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_34 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_35 = l_Lean_Parser_ParserState_mkErrorsAt(x_17, x_34, x_16); x_36 = l_Lean_Parser_Command_structImplicitBinder___elambda__1___closed__2; x_37 = l_Lean_Parser_ParserState_mkNode(x_35, x_36, x_11); @@ -17468,7 +17470,7 @@ lean_dec(x_234); if (x_236 == 0) { lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; -x_237 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_237 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_238 = l_Lean_Parser_ParserState_mkErrorsAt(x_230, x_237, x_229); x_239 = lean_ctor_get(x_238, 0); lean_inc(x_239); @@ -17503,7 +17505,7 @@ else { lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_dec(x_233); -x_245 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_245 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_246 = l_Lean_Parser_ParserState_mkErrorsAt(x_230, x_245, x_229); x_247 = lean_ctor_get(x_246, 0); lean_inc(x_247); @@ -17522,7 +17524,7 @@ else { lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_dec(x_231); -x_250 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_250 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_251 = l_Lean_Parser_ParserState_mkErrorsAt(x_230, x_250, x_229); x_252 = lean_ctor_get(x_251, 0); lean_inc(x_252); @@ -17592,7 +17594,7 @@ lean_dec(x_147); if (x_149 == 0) { lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_150 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_150 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_151 = l_Lean_Parser_ParserState_mkErrorsAt(x_143, x_150, x_142); x_152 = l_Lean_Parser_Command_structImplicitBinder___elambda__1___closed__2; x_153 = l_Lean_Parser_ParserState_mkNode(x_151, x_152, x_137); @@ -17615,7 +17617,7 @@ else { lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_dec(x_146); -x_158 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_158 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_159 = l_Lean_Parser_ParserState_mkErrorsAt(x_143, x_158, x_142); x_160 = l_Lean_Parser_Command_structImplicitBinder___elambda__1___closed__2; x_161 = l_Lean_Parser_ParserState_mkNode(x_159, x_160, x_137); @@ -17628,7 +17630,7 @@ else { lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_dec(x_144); -x_163 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_163 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_164 = l_Lean_Parser_ParserState_mkErrorsAt(x_143, x_163, x_142); x_165 = l_Lean_Parser_Command_structImplicitBinder___elambda__1___closed__2; x_166 = l_Lean_Parser_ParserState_mkNode(x_164, x_165, x_137); @@ -30575,35 +30577,43 @@ return x_5; lean_object* _init_l_Lean_Parser_Command_end___elambda__1___closed__1() { _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_Term_tacticBlock___elambda__1___closed__7; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string("end"); +return x_1; } } lean_object* _init_l_Lean_Parser_Command_end___elambda__1___closed__2() { _start: { -lean_object* x_1; lean_object* x_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* 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_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() { +_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__7; -x_2 = 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___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_Command_end___elambda__1___closed__4() { +lean_object* _init_l_Lean_Parser_Command_end___elambda__1___closed__5() { _start: { lean_object* x_1; @@ -30611,31 +30621,21 @@ x_1 = lean_mk_string("end "); return x_1; } } -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__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* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__5; +x_2 = l_String_trim(x_1); +return x_2; } } 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_Lean_Parser_Command_end___elambda__1___closed__6; -x_2 = l_Char_HasRepr___closed__1; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Command_end___elambda__1___closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } @@ -30644,8 +30644,18 @@ 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__7; +x_2 = l_Lean_Parser_Command_end___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); @@ -30656,7 +30666,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__3; +x_3 = l_Lean_Parser_Command_end___elambda__1___closed__4; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_inc(x_2); @@ -30696,13 +30706,13 @@ lean_object* x_41; lean_object* x_42; uint8_t x_43; x_41 = lean_ctor_get(x_40, 1); lean_inc(x_41); lean_dec(x_40); -x_42 = l_Lean_Parser_Command_end___elambda__1___closed__5; +x_42 = l_Lean_Parser_Command_end___elambda__1___closed__6; x_43 = lean_string_dec_eq(x_41, x_42); lean_dec(x_41); if (x_43 == 0) { lean_object* x_44; lean_object* x_45; -x_44 = l_Lean_Parser_Command_end___elambda__1___closed__8; +x_44 = l_Lean_Parser_Command_end___elambda__1___closed__9; x_45 = l_Lean_Parser_ParserState_mkErrorsAt(x_37, x_44, x_36); x_11 = x_45; goto block_35; @@ -30718,7 +30728,7 @@ else { lean_object* x_46; lean_object* x_47; lean_dec(x_40); -x_46 = l_Lean_Parser_Command_end___elambda__1___closed__8; +x_46 = l_Lean_Parser_Command_end___elambda__1___closed__9; x_47 = l_Lean_Parser_ParserState_mkErrorsAt(x_37, x_46, x_36); x_11 = x_47; goto block_35; @@ -30728,7 +30738,7 @@ else { lean_object* x_48; lean_object* x_49; lean_dec(x_38); -x_48 = l_Lean_Parser_Command_end___elambda__1___closed__8; +x_48 = l_Lean_Parser_Command_end___elambda__1___closed__9; x_49 = l_Lean_Parser_ParserState_mkErrorsAt(x_37, x_48, x_36); x_11 = x_49; goto block_35; @@ -30756,7 +30766,7 @@ lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_dec(x_15); x_18 = l_Lean_nullKind; x_19 = l_Lean_Parser_ParserState_mkNode(x_16, x_18, x_14); -x_20 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_20 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_21 = l_Lean_Parser_ParserState_mkNode(x_19, x_20, x_10); return x_21; } @@ -30774,7 +30784,7 @@ lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_dec(x_15); x_24 = l_Lean_nullKind; x_25 = l_Lean_Parser_ParserState_mkNode(x_16, x_24, x_14); -x_26 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_26 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_27 = l_Lean_Parser_ParserState_mkNode(x_25, x_26, x_10); return x_27; } @@ -30784,7 +30794,7 @@ lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean x_28 = l_Lean_Parser_ParserState_restore(x_16, x_14, x_15); x_29 = l_Lean_nullKind; x_30 = l_Lean_Parser_ParserState_mkNode(x_28, x_29, x_14); -x_31 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_31 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_32 = l_Lean_Parser_ParserState_mkNode(x_30, x_31, x_10); return x_32; } @@ -30795,7 +30805,7 @@ else lean_object* x_33; lean_object* x_34; lean_dec(x_12); lean_dec(x_1); -x_33 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_33 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_34 = l_Lean_Parser_ParserState_mkNode(x_11, x_33, x_10); return x_34; } @@ -30882,13 +30892,13 @@ lean_object* x_98; lean_object* x_99; uint8_t x_100; x_98 = lean_ctor_get(x_97, 1); lean_inc(x_98); lean_dec(x_97); -x_99 = l_Lean_Parser_Command_end___elambda__1___closed__5; +x_99 = l_Lean_Parser_Command_end___elambda__1___closed__6; x_100 = lean_string_dec_eq(x_98, x_99); lean_dec(x_98); if (x_100 == 0) { lean_object* x_101; lean_object* x_102; -x_101 = l_Lean_Parser_Command_end___elambda__1___closed__8; +x_101 = l_Lean_Parser_Command_end___elambda__1___closed__9; x_102 = l_Lean_Parser_ParserState_mkErrorsAt(x_94, x_101, x_93); x_64 = x_102; goto block_92; @@ -30904,7 +30914,7 @@ else { lean_object* x_103; lean_object* x_104; lean_dec(x_97); -x_103 = l_Lean_Parser_Command_end___elambda__1___closed__8; +x_103 = l_Lean_Parser_Command_end___elambda__1___closed__9; x_104 = l_Lean_Parser_ParserState_mkErrorsAt(x_94, x_103, x_93); x_64 = x_104; goto block_92; @@ -30914,7 +30924,7 @@ else { lean_object* x_105; lean_object* x_106; lean_dec(x_95); -x_105 = l_Lean_Parser_Command_end___elambda__1___closed__8; +x_105 = l_Lean_Parser_Command_end___elambda__1___closed__9; x_106 = l_Lean_Parser_ParserState_mkErrorsAt(x_94, x_105, x_93); x_64 = x_106; goto block_92; @@ -30942,7 +30952,7 @@ lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean lean_dec(x_68); x_71 = l_Lean_nullKind; x_72 = l_Lean_Parser_ParserState_mkNode(x_69, x_71, x_67); -x_73 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_73 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_74 = l_Lean_Parser_ParserState_mkNode(x_72, x_73, x_63); x_75 = l_Lean_Parser_mergeOrElseErrors(x_74, x_55, x_52); lean_dec(x_52); @@ -30962,7 +30972,7 @@ lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean lean_dec(x_68); x_78 = l_Lean_nullKind; x_79 = l_Lean_Parser_ParserState_mkNode(x_69, x_78, x_67); -x_80 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_80 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_81 = l_Lean_Parser_ParserState_mkNode(x_79, x_80, x_63); x_82 = l_Lean_Parser_mergeOrElseErrors(x_81, x_55, x_52); lean_dec(x_52); @@ -30974,7 +30984,7 @@ lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean x_83 = l_Lean_Parser_ParserState_restore(x_69, x_67, x_68); x_84 = l_Lean_nullKind; x_85 = l_Lean_Parser_ParserState_mkNode(x_83, x_84, x_67); -x_86 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_86 = l_Lean_Parser_Command_end___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_55, x_52); lean_dec(x_52); @@ -30987,7 +30997,7 @@ else lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_dec(x_65); lean_dec(x_1); -x_89 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_89 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_90 = l_Lean_Parser_ParserState_mkNode(x_64, x_89, x_63); x_91 = l_Lean_Parser_mergeOrElseErrors(x_90, x_55, x_52); lean_dec(x_52); @@ -31013,7 +31023,7 @@ lean_object* _init_l_Lean_Parser_Command_end___closed__1() { _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__6; x_2 = l_Lean_Parser_symbolInfo(x_1); return x_2; } @@ -31032,7 +31042,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__1; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_2 = l_Lean_Parser_Command_end___closed__2; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; @@ -31052,7 +31062,7 @@ lean_object* _init_l_Lean_Parser_Command_end___closed__5() { _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__3; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__4; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_Lean_Parser_Command_end___closed__4; @@ -31093,7 +31103,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_PrettyPrinter_formatCommand___closed__2; -x_3 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_3 = l_Lean_Parser_Command_end___elambda__1___closed__2; 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); @@ -31104,8 +31114,8 @@ lean_object* _init_l_Lean_Parser_Command_end_formatter___closed__1() { _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7; -x_2 = 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___elambda__1___closed__3; x_3 = 1; x_4 = lean_box(x_3); x_5 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_formatter___boxed), 8, 3); @@ -31119,7 +31129,7 @@ lean_object* _init_l_Lean_Parser_Command_end_formatter___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_end___elambda__1___closed__4; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__5; x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_symbol_formatter___boxed), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; @@ -31141,7 +31151,7 @@ lean_object* _init_l_Lean_Parser_Command_end_formatter___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__1; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Command_end_formatter___closed__3; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); @@ -31174,7 +31184,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_PrettyPrinter_formatterAttribute; -x_3 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_3 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_4 = l___regBuiltin_Lean_Parser_Command_end_formatter___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -31184,7 +31194,7 @@ lean_object* _init_l_Lean_Parser_Command_end_parenthesizer___closed__1() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Command_end___elambda__1___closed__2; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__3; x_2 = 1; x_3 = lean_box(x_2); x_4 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_parenthesizer___rarg___boxed), 7, 2); @@ -31197,7 +31207,7 @@ lean_object* _init_l_Lean_Parser_Command_end_parenthesizer___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Command_section_parenthesizer___closed__3; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); @@ -31230,7 +31240,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_PrettyPrinter_parenthesizerAttribute; -x_3 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_3 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_4 = l___regBuiltin_Lean_Parser_Command_end_parenthesizer___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -48147,19 +48157,18 @@ return x_2; lean_object* _init_l_Lean_Parser_Command_mutual___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_mutual___elambda__1___closed__6; -x_3 = lean_string_append(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_2 = l_String_trim(x_1); +return x_2; } } lean_object* _init_l_Lean_Parser_Command_mutual___elambda__1___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_mutual___elambda__1___closed__7; -x_2 = l_Char_HasRepr___closed__1; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Command_mutual___elambda__1___closed__7; x_3 = lean_string_append(x_1, x_2); return x_3; } @@ -48168,8 +48177,50 @@ lean_object* _init_l_Lean_Parser_Command_mutual___elambda__1___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Command_mutual___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_Command_mutual___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_Command_mutual___elambda__1___closed__8; +x_2 = l_Lean_Parser_Command_mutual___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_Command_mutual___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_Command_mutual___elambda__1___closed__6; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Command_mutual___elambda__1___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Command_mutual___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_Command_mutual___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_Command_mutual___elambda__1___closed__12; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -48226,7 +48277,7 @@ lean_dec(x_57); if (x_59 == 0) { lean_object* x_60; lean_object* x_61; -x_60 = l_Lean_Parser_Command_mutual___elambda__1___closed__9; +x_60 = l_Lean_Parser_Command_mutual___elambda__1___closed__13; x_61 = l_Lean_Parser_ParserState_mkErrorsAt(x_53, x_60, x_52); x_38 = x_61; goto block_51; @@ -48242,7 +48293,7 @@ else { lean_object* x_62; lean_object* x_63; lean_dec(x_56); -x_62 = l_Lean_Parser_Command_mutual___elambda__1___closed__9; +x_62 = l_Lean_Parser_Command_mutual___elambda__1___closed__13; x_63 = l_Lean_Parser_ParserState_mkErrorsAt(x_53, x_62, x_52); x_38 = x_63; goto block_51; @@ -48252,7 +48303,7 @@ else { lean_object* x_64; lean_object* x_65; lean_dec(x_54); -x_64 = l_Lean_Parser_Command_mutual___elambda__1___closed__9; +x_64 = l_Lean_Parser_Command_mutual___elambda__1___closed__13; x_65 = l_Lean_Parser_ParserState_mkErrorsAt(x_53, x_64, x_52); x_38 = x_65; goto block_51; @@ -48283,13 +48334,13 @@ lean_object* x_18; lean_object* x_19; uint8_t x_20; x_18 = lean_ctor_get(x_17, 1); lean_inc(x_18); lean_dec(x_17); -x_19 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8; +x_19 = l_Lean_Parser_Command_mutual___elambda__1___closed__7; x_20 = lean_string_dec_eq(x_18, x_19); lean_dec(x_18); if (x_20 == 0) { lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_21 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; +x_21 = l_Lean_Parser_Command_mutual___elambda__1___closed__10; x_22 = l_Lean_Parser_ParserState_mkErrorsAt(x_14, x_21, x_13); x_23 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; x_24 = l_Lean_Parser_ParserState_mkNode(x_22, x_23, x_10); @@ -48308,7 +48359,7 @@ else { lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_dec(x_17); -x_27 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; +x_27 = l_Lean_Parser_Command_mutual___elambda__1___closed__10; x_28 = l_Lean_Parser_ParserState_mkErrorsAt(x_14, x_27, x_13); x_29 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; x_30 = l_Lean_Parser_ParserState_mkNode(x_28, x_29, x_10); @@ -48319,7 +48370,7 @@ else { lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_dec(x_15); -x_31 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; +x_31 = l_Lean_Parser_Command_mutual___elambda__1___closed__10; x_32 = l_Lean_Parser_ParserState_mkErrorsAt(x_14, x_31, x_13); x_33 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; x_34 = l_Lean_Parser_ParserState_mkNode(x_32, x_33, x_10); @@ -48470,7 +48521,7 @@ lean_dec(x_132); if (x_134 == 0) { lean_object* x_135; lean_object* x_136; -x_135 = l_Lean_Parser_Command_mutual___elambda__1___closed__9; +x_135 = l_Lean_Parser_Command_mutual___elambda__1___closed__13; x_136 = l_Lean_Parser_ParserState_mkErrorsAt(x_128, x_135, x_127); x_112 = x_136; goto block_126; @@ -48486,7 +48537,7 @@ else { lean_object* x_137; lean_object* x_138; lean_dec(x_131); -x_137 = l_Lean_Parser_Command_mutual___elambda__1___closed__9; +x_137 = l_Lean_Parser_Command_mutual___elambda__1___closed__13; x_138 = l_Lean_Parser_ParserState_mkErrorsAt(x_128, x_137, x_127); x_112 = x_138; goto block_126; @@ -48496,7 +48547,7 @@ else { lean_object* x_139; lean_object* x_140; lean_dec(x_129); -x_139 = l_Lean_Parser_Command_mutual___elambda__1___closed__9; +x_139 = l_Lean_Parser_Command_mutual___elambda__1___closed__13; x_140 = l_Lean_Parser_ParserState_mkErrorsAt(x_128, x_139, x_127); x_112 = x_140; goto block_126; @@ -48527,13 +48578,13 @@ lean_object* x_87; lean_object* x_88; uint8_t x_89; x_87 = lean_ctor_get(x_86, 1); lean_inc(x_87); lean_dec(x_86); -x_88 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8; +x_88 = l_Lean_Parser_Command_mutual___elambda__1___closed__7; x_89 = lean_string_dec_eq(x_87, x_88); lean_dec(x_87); if (x_89 == 0) { lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_90 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; +x_90 = l_Lean_Parser_Command_mutual___elambda__1___closed__10; x_91 = l_Lean_Parser_ParserState_mkErrorsAt(x_83, x_90, x_82); x_92 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; x_93 = l_Lean_Parser_ParserState_mkNode(x_91, x_92, x_79); @@ -48556,7 +48607,7 @@ else { lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_dec(x_86); -x_98 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; +x_98 = l_Lean_Parser_Command_mutual___elambda__1___closed__10; x_99 = l_Lean_Parser_ParserState_mkErrorsAt(x_83, x_98, x_82); x_100 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; x_101 = l_Lean_Parser_ParserState_mkNode(x_99, x_100, x_79); @@ -48569,7 +48620,7 @@ else { lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_dec(x_84); -x_103 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; +x_103 = l_Lean_Parser_Command_mutual___elambda__1___closed__10; x_104 = l_Lean_Parser_ParserState_mkErrorsAt(x_83, x_103, x_82); x_105 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; x_106 = l_Lean_Parser_ParserState_mkNode(x_104, x_105, x_79); @@ -48665,32 +48716,31 @@ return x_2; lean_object* _init_l_Lean_Parser_Command_mutual___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Command_mutualElement; -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* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Command_mutual___elambda__1___closed__7; +x_2 = l_Lean_Parser_symbolInfo(x_1); +return x_2; } } lean_object* _init_l_Lean_Parser_Command_mutual___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_mutual___closed__1; -x_2 = l_Lean_Parser_Command_mutual___closed__2; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Command_mutualElement; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Command_mutual___closed__2; +x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); +return x_4; } } lean_object* _init_l_Lean_Parser_Command_mutual___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; +x_1 = l_Lean_Parser_Command_mutual___closed__1; x_2 = l_Lean_Parser_Command_mutual___closed__3; -x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); return x_3; } } @@ -48698,25 +48748,35 @@ lean_object* _init_l_Lean_Parser_Command_mutual___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_epsilonInfo; +x_1 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; x_2 = l_Lean_Parser_Command_mutual___closed__4; -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_Command_mutual___closed__6() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_epsilonInfo; +x_2 = l_Lean_Parser_Command_mutual___closed__5; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Command_mutual___closed__7() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Command_mutual___elambda__1___closed__4; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Command_mutual___closed__5; +x_3 = l_Lean_Parser_Command_mutual___closed__6; x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); return x_4; } } -lean_object* _init_l_Lean_Parser_Command_mutual___closed__7() { +lean_object* _init_l_Lean_Parser_Command_mutual___closed__8() { _start: { lean_object* x_1; @@ -48724,12 +48784,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_mutual___elambda__1), 2, return x_1; } } -lean_object* _init_l_Lean_Parser_Command_mutual___closed__8() { +lean_object* _init_l_Lean_Parser_Command_mutual___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_mutual___closed__6; -x_2 = l_Lean_Parser_Command_mutual___closed__7; +x_1 = l_Lean_Parser_Command_mutual___closed__7; +x_2 = l_Lean_Parser_Command_mutual___closed__8; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -48740,7 +48800,7 @@ lean_object* _init_l_Lean_Parser_Command_mutual() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Command_mutual___closed__8; +x_1 = l_Lean_Parser_Command_mutual___closed__9; return x_1; } } @@ -48872,20 +48932,18 @@ return x_2; lean_object* _init_l_Lean_Parser_Command_mutual_formatter___closed__5() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_mutual_formatter___closed__4; -x_2 = l_Lean_Parser_Term_tacticBlock_formatter___closed__3; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_symbol_formatter___boxed), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; } } lean_object* _init_l_Lean_Parser_Command_mutual_formatter___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_mutual_formatter___closed__2; +x_1 = l_Lean_Parser_Command_mutual_formatter___closed__4; x_2 = l_Lean_Parser_Command_mutual_formatter___closed__5; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -48896,10 +48954,22 @@ return x_3; lean_object* _init_l_Lean_Parser_Command_mutual_formatter___closed__7() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Command_mutual_formatter___closed__2; +x_2 = l_Lean_Parser_Command_mutual_formatter___closed__6; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Command_mutual_formatter___closed__8() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Command_mutual_formatter___closed__6; +x_3 = l_Lean_Parser_Command_mutual_formatter___closed__7; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -48912,7 +48982,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Command_mutual_formatter___closed__1; -x_7 = l_Lean_Parser_Command_mutual_formatter___closed__7; +x_7 = l_Lean_Parser_Command_mutual_formatter___closed__8; x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -51239,6 +51309,8 @@ 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(); @@ -52723,6 +52795,14 @@ l_Lean_Parser_Command_mutual___elambda__1___closed__8 = _init_l_Lean_Parser_Comm lean_mark_persistent(l_Lean_Parser_Command_mutual___elambda__1___closed__8); l_Lean_Parser_Command_mutual___elambda__1___closed__9 = _init_l_Lean_Parser_Command_mutual___elambda__1___closed__9(); lean_mark_persistent(l_Lean_Parser_Command_mutual___elambda__1___closed__9); +l_Lean_Parser_Command_mutual___elambda__1___closed__10 = _init_l_Lean_Parser_Command_mutual___elambda__1___closed__10(); +lean_mark_persistent(l_Lean_Parser_Command_mutual___elambda__1___closed__10); +l_Lean_Parser_Command_mutual___elambda__1___closed__11 = _init_l_Lean_Parser_Command_mutual___elambda__1___closed__11(); +lean_mark_persistent(l_Lean_Parser_Command_mutual___elambda__1___closed__11); +l_Lean_Parser_Command_mutual___elambda__1___closed__12 = _init_l_Lean_Parser_Command_mutual___elambda__1___closed__12(); +lean_mark_persistent(l_Lean_Parser_Command_mutual___elambda__1___closed__12); +l_Lean_Parser_Command_mutual___elambda__1___closed__13 = _init_l_Lean_Parser_Command_mutual___elambda__1___closed__13(); +lean_mark_persistent(l_Lean_Parser_Command_mutual___elambda__1___closed__13); l_Lean_Parser_Command_mutual___closed__1 = _init_l_Lean_Parser_Command_mutual___closed__1(); lean_mark_persistent(l_Lean_Parser_Command_mutual___closed__1); l_Lean_Parser_Command_mutual___closed__2 = _init_l_Lean_Parser_Command_mutual___closed__2(); @@ -52739,6 +52819,8 @@ l_Lean_Parser_Command_mutual___closed__7 = _init_l_Lean_Parser_Command_mutual___ lean_mark_persistent(l_Lean_Parser_Command_mutual___closed__7); l_Lean_Parser_Command_mutual___closed__8 = _init_l_Lean_Parser_Command_mutual___closed__8(); lean_mark_persistent(l_Lean_Parser_Command_mutual___closed__8); +l_Lean_Parser_Command_mutual___closed__9 = _init_l_Lean_Parser_Command_mutual___closed__9(); +lean_mark_persistent(l_Lean_Parser_Command_mutual___closed__9); l_Lean_Parser_Command_mutual = _init_l_Lean_Parser_Command_mutual(); lean_mark_persistent(l_Lean_Parser_Command_mutual); res = l___regBuiltinParser_Lean_Parser_Command_mutual(lean_io_mk_world()); @@ -52768,6 +52850,8 @@ l_Lean_Parser_Command_mutual_formatter___closed__6 = _init_l_Lean_Parser_Command lean_mark_persistent(l_Lean_Parser_Command_mutual_formatter___closed__6); l_Lean_Parser_Command_mutual_formatter___closed__7 = _init_l_Lean_Parser_Command_mutual_formatter___closed__7(); lean_mark_persistent(l_Lean_Parser_Command_mutual_formatter___closed__7); +l_Lean_Parser_Command_mutual_formatter___closed__8 = _init_l_Lean_Parser_Command_mutual_formatter___closed__8(); +lean_mark_persistent(l_Lean_Parser_Command_mutual_formatter___closed__8); l___regBuiltin_Lean_Parser_Command_mutual_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Command_mutual_formatter___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_mutual_formatter___closed__1); res = l___regBuiltin_Lean_Parser_Command_mutual_formatter(lean_io_mk_world()); diff --git a/stage0/stdlib/Lean/Parser/Tactic.c b/stage0/stdlib/Lean/Parser/Tactic.c index 6b854fb337..97ae8beef7 100644 --- a/stage0/stdlib/Lean/Parser/Tactic.c +++ b/stage0/stdlib/Lean/Parser/Tactic.c @@ -113,6 +113,7 @@ lean_object* l_Lean_Parser_Tactic_majorPremise___closed__4; lean_object* l_Lean_Parser_Tactic_generalize___closed__6; lean_object* l_Lean_Parser_Tactic_location_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_changeWith___elambda__1___closed__2; +lean_object* l_Lean_PrettyPrinter_Parenthesizer_sepBy_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_majorPremise___closed__1; lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser_Tactic_inductionAlts___elambda__1___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_have___closed__1; @@ -148,7 +149,6 @@ lean_object* l_Lean_Parser_Tactic_matchAlts_parenthesizer___lambda__1___closed__ lean_object* l_Lean_Parser_Tactic_paren_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_failIfSuccess_formatter___closed__4; lean_object* l_Lean_Parser_Tactic_orelse_parenthesizer___closed__2; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__3; lean_object* l___regBuiltin_Lean_Parser_Tactic_orelse_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_withAlts_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_match_formatter___closed__4; @@ -164,11 +164,9 @@ lean_object* l_Lean_Parser_Tactic_intro___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__8; lean_object* l_Lean_Parser_Tactic_apply_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_generalizingVars_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltinParser_Lean_Parser_Tactic_nestedTacticBlock(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Tactic_withAlts___closed__4; lean_object* l_Lean_Parser_Tactic_location___closed__3; -lean_object* l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_formatter(lean_object*); extern lean_object* l_Lean_Parser_Term_subst___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_withAlts___closed__1; lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__1; @@ -179,10 +177,8 @@ lean_object* l_Lean_Parser_Tactic_allGoals_parenthesizer___closed__3; lean_object* l_Lean_Parser_Tactic_assumption___elambda__1___closed__6; lean_object* l___regBuiltin_Lean_Parser_Tactic_paren_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Tactic_matchAlts_parenthesizer___closed__1; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__4; lean_object* l___regBuiltin_Lean_Parser_Tactic_traceState_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_matchAlt___closed__2; -extern lean_object* l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_generalize_formatter___closed__11; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_inductionAlts___elambda__1___spec__11(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_inductionAlts; @@ -251,6 +247,7 @@ lean_object* l_Lean_Parser_Tactic_injection___closed__4; lean_object* l_Lean_Parser_Tactic_inductionAlt_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__7; lean_object* l_Lean_Parser_Tactic_clear___elambda__1___closed__5; +lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__4; lean_object* l_Lean_Parser_Tactic_change_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_paren___elambda__1(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Tactic_injection_formatter(lean_object*); @@ -302,7 +299,6 @@ lean_object* l_Lean_PrettyPrinter_Formatter_try_formatter(lean_object*, lean_obj lean_object* l_Lean_Parser_Tactic_have___closed__6; lean_object* l_Lean_Parser_Tactic_location_parenthesizer___closed__3; lean_object* l_Lean_Parser_Tactic_cases___closed__3; -extern lean_object* l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__4; extern lean_object* l_Lean_Parser_Term_eq___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_inductionAlts_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_failIfSuccess___elambda__1___closed__2; @@ -323,7 +319,7 @@ lean_object* l_Lean_Parser_Tactic_skip___closed__1; lean_object* l_Lean_Parser_Tactic_intro___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_sufficesDecl___elambda__1(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PrettyPrinter_Formatter_sepBy_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_have; lean_object* l_Lean_Parser_ParserState_mkErrorsAt(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_mkAntiquot_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -363,7 +359,6 @@ lean_object* l_Lean_Parser_Tactic_apply___closed__5; lean_object* l_Lean_Parser_Tactic_case___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_changeWith_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_match_parenthesizer___closed__2; -lean_object* l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_assumption___closed__4; lean_object* l_Lean_Parser_checkPrecFn(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_intros___closed__6; @@ -507,7 +502,6 @@ lean_object* l_Lean_Parser_Tactic_allGoals_formatter(lean_object*, lean_object*, lean_object* l_Lean_Parser_Tactic_allGoals___closed__7; lean_object* l_Lean_Parser_Tactic_let_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_optType; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__1; lean_object* l_Lean_Parser_Tactic_cases; lean_object* l___regBuiltin_Lean_Parser_Tactic_exact_parenthesizer(lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Tactic_case(lean_object*); @@ -593,7 +587,6 @@ lean_object* l_Lean_Parser_Tactic_case_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_intros___closed__2; lean_object* l_Lean_Parser_Tactic_let_x21___closed__2; lean_object* l_Lean_Parser_Tactic_changeWith_formatter___closed__1; -lean_object* l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Tactic_matchAlt___closed__1; lean_object* l_Lean_Parser_Tactic_majorPremise_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_generalize_formatter___closed__10; @@ -622,7 +615,9 @@ lean_object* l_Lean_Parser_Tactic_induction___closed__7; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_inductionAlts___elambda__1___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_revert___closed__5; extern lean_object* l_Lean_Parser_Term_have_parenthesizer___closed__2; +lean_object* l_Lean_PrettyPrinter_Formatter_node_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_suffices___elambda__1___closed__9; +extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___lambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_match_parenthesizer___closed__7; lean_object* l_Lean_Parser_Tactic_induction_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_traceState___closed__4; @@ -672,6 +667,7 @@ lean_object* l_Lean_Parser_Tactic_ident_x27_formatter(lean_object*, lean_object* lean_object* l_Lean_Parser_Tactic_generalize___closed__11; lean_object* l_Lean_Parser_Tactic_injection___elambda__1___closed__3; lean_object* l___regBuiltin_Lean_Parser_Tactic_match_formatter___closed__1; +lean_object* l_Lean_Parser_Tactic_seq_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_tupleTail___elambda__1___spec__1(uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_orelseInfo(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_have_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -687,6 +683,7 @@ lean_object* l_Lean_Parser_Tactic_match_parenthesizer___closed__5; lean_object* l_Lean_Parser_Tactic_suffices_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_intro_formatter___closed__4; lean_object* l_Lean_Parser_Tactic_majorPremise___closed__3; +extern lean_object* l_Lean_Parser_Term_have_formatter___closed__3; extern lean_object* l___regBuiltin_Lean_Parser_Term_syntheticHole_parenthesizer___closed__1; extern lean_object* l_Lean_Parser_termParser___closed__2; lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -723,6 +720,7 @@ lean_object* l_Lean_Parser_Tactic_inductionAlts_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_skip___elambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_refine_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_traceState___closed__6; +lean_object* l_Lean_Parser_Tactic_seq_formatter___closed__1; lean_object* l___regBuiltin_Lean_Parser_Tactic_skip_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Tactic_let___closed__4; lean_object* l_Lean_Parser_Tactic_let_formatter___closed__1; @@ -734,7 +732,6 @@ lean_object* l_Lean_Parser_Tactic_exact___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_location; lean_object* l_Lean_Parser_Tactic_have___elambda__1___closed__1; extern lean_object* l_Lean_Parser_Term_typeAscription_parenthesizer___closed__2; -extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; lean_object* l_Lean_Parser_Tactic_match_parenthesizer___closed__3; extern lean_object* l_Lean_Parser_Term_subtype_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_show_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -784,7 +781,6 @@ extern lean_object* l_Lean_Parser_Term_have___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_location___elambda__1___closed__10; extern lean_object* l_Lean_Parser_Term_structInst___closed__2; lean_object* l_Lean_Parser_Tactic_orelse_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock; lean_object* l_Lean_Parser_Tactic_intro_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_change___closed__5; lean_object* l_Lean_Parser_Tactic_induction_formatter___closed__8; @@ -824,7 +820,6 @@ lean_object* l_Lean_Parser_Tactic_exact___elambda__1(lean_object*, lean_object*) lean_object* l___regBuiltinParser_Lean_Parser_Tactic_change(lean_object*); lean_object* l_Lean_Parser_Tactic_let_x21___elambda__1___closed__1; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_inductionAlts___elambda__1___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_induction_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_match_formatter___closed__7; lean_object* l___regBuiltin_Lean_Parser_Tactic_intros_parenthesizer___closed__1; @@ -834,7 +829,6 @@ lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser lean_object* l_Lean_Parser_Tactic_assumption___closed__5; lean_object* l___regBuiltin_Lean_Parser_Tactic_orelse_formatter(lean_object*); lean_object* l_Lean_Parser_Tactic_changeWith_formatter___closed__2; -extern lean_object* l_Lean_Parser_Term_tacticBlock_formatter___closed__6; lean_object* l_Lean_Parser_Tactic_induction_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_intro_parenthesizer___closed__3; lean_object* l_Lean_Parser_ParserState_restore(lean_object*, lean_object*, lean_object*); @@ -854,12 +848,12 @@ lean_object* l_Lean_Parser_Tactic_paren_parenthesizer___closed__4; lean_object* l_Lean_Parser_Tactic_subst_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_paren___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_underscore_parenthesizer(lean_object*); +lean_object* l_Lean_Parser_Tactic_seq_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_intros_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_suffices___closed__2; lean_object* l_Lean_Parser_Tactic_case___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_injection___closed__7; lean_object* l_Lean_Parser_Tactic_ident_x27_parenthesizer___closed__1; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_matchAlt___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_generalize___elambda__1___closed__9; extern lean_object* l_Lean_Parser_Term_tupleTail_formatter___closed__3; @@ -924,7 +918,6 @@ lean_object* l_Lean_Parser_Tactic_induction___elambda__1___closed__6; lean_object* l___regBuiltin_Lean_Parser_Tactic_refine_formatter(lean_object*); lean_object* l_Lean_Parser_Tactic_withIds___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_location___closed__9; -extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_case_parenthesizer___closed__1; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_matchAlts___elambda__1___spec__5(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_nodeWithAntiquot_parenthesizer___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -953,7 +946,6 @@ lean_object* l_Lean_Parser_Tactic_let; lean_object* l___regBuiltin_Lean_Parser_Tactic_changeWith_parenthesizer(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Tactic_induction_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_intros_formatter___closed__1; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__2; 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_Lean_Parser_Tactic_orelse_formatter___closed__1; @@ -1046,7 +1038,6 @@ lean_object* l_Lean_Parser_Tactic_assumption_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_holeOrTactic___closed__1; lean_object* l_Lean_Parser_Tactic_matchAlt_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_usingRec_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_generalizingVars___closed__1; lean_object* l_Lean_Parser_Tactic_generalizingVars; lean_object* l_Lean_Parser_Tactic_intros_formatter___closed__3; @@ -1088,12 +1079,10 @@ extern lean_object* l_Lean_Parser_Term_typeAscription___closed__1; lean_object* l___regBuiltin_Lean_Parser_Tactic_changeWith_formatter(lean_object*); lean_object* l_Lean_Parser_Tactic_case_formatter___closed__5; lean_object* l_Lean_Parser_Tactic_majorPremise___elambda__1___closed__4; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__1; lean_object* l_Lean_Parser_categoryParser___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Tactic_show_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_exact_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_generalizingVars___closed__2; -extern lean_object* l_Lean_Parser_Term_tacticBlock___closed__4; lean_object* l_Lean_Parser_Tactic_generalize___elambda__1___closed__11; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_inductionAlts___elambda__1___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Tactic_let(lean_object*); @@ -1103,7 +1092,6 @@ lean_object* l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_induction___closed__5; lean_object* l_Lean_Parser_Tactic_case___closed__2; lean_object* l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__2; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__4; lean_object* l_Lean_Parser_Tactic_holeOrTactic_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_majorPremise_parenthesizer___closed__2; lean_object* l___regBuiltin_Lean_Parser_Tactic_allGoals_parenthesizer___closed__1; @@ -1139,11 +1127,11 @@ lean_object* l_Lean_Parser_Tactic_holeOrTactic___closed__4; lean_object* l_Lean_Parser_Tactic_withAlts_formatter(lean_object*, lean_object*, lean_object*, 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_nestedTacticBlockCurly_parenthesizer___closed__3; lean_object* l_Lean_Parser_Tactic_matchAlt_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_inductionAlts_formatter___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Tactic_subst_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_subst___elambda__1___closed__6; -extern lean_object* l_Lean_Parser_Term_tacticBlock_formatter___closed__4; extern lean_object* l_Lean_ppGoal___closed__5; lean_object* l_Lean_Parser_Tactic_let_x21_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_exact_formatter___closed__3; @@ -1155,6 +1143,8 @@ lean_object* l_Lean_Parser_Tactic_case___closed__7; extern lean_object* l_Lean_Parser_Term_hole; lean_object* l_Lean_Parser_Tactic_underscore_parenthesizer___boxed(lean_object*); lean_object* l_Lean_Parser_Tactic_case_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__5; +extern lean_object* l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; extern lean_object* l___regBuiltin_Lean_Parser_Term_hole_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_exact___closed__4; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_paren(lean_object*); @@ -1166,6 +1156,7 @@ lean_object* l___regBuiltin_Lean_Parser_Tactic_traceState_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_nonEmptySeq___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_withIds_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_change_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__5; lean_object* l_Lean_Parser_Tactic_change___elambda__1___closed__4; lean_object* l_Lean_Parser_darrow___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_matchAlt_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1193,6 +1184,7 @@ lean_object* l___regBuiltin_Lean_Parser_Tactic_intro_formatter(lean_object*); lean_object* l_Lean_Parser_Tactic_show___elambda__1___closed__1; extern lean_object* l_Lean_Parser_Term_implicitBinder___closed__2; lean_object* l_Lean_Parser_Tactic_generalize_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_seq_parenthesizer___closed__1; lean_object* l___regBuiltin_Lean_Parser_Tactic_refine_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_injection_formatter___closed__4; lean_object* l_Lean_Parser_Tactic_generalize___closed__7; @@ -1214,7 +1206,6 @@ lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__1; lean_object* l_Lean_Parser_Tactic_withIds_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_location_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_apply___elambda__1___closed__2; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_let_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_injection; lean_object* l_Lean_Parser_Tactic_induction_formatter___closed__9; @@ -1235,7 +1226,6 @@ lean_object* l_Lean_Parser_mkAntiquot(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Parser_Tactic_suffices_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_induction_parenthesizer___closed__8; lean_object* l_Lean_PrettyPrinter_Parenthesizer_withPosition_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__5; extern lean_object* l_Lean_Parser_Term_let_x21___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_cases___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_underscoreFn___closed__1; @@ -1245,7 +1235,6 @@ lean_object* l_Lean_Parser_Tactic_change___closed__7; lean_object* l_Lean_Parser_Tactic_failIfSuccess___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_assumption___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_change_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__2; lean_object* l___regBuiltin_Lean_Parser_Tactic_generalize_parenthesizer(lean_object*); lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser_Tactic_inductionAlts___elambda__1___spec__4(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_matchAlt___elambda__1(lean_object*, lean_object*); @@ -1264,7 +1253,6 @@ lean_object* l___regBuiltinParser_Lean_Parser_Tactic_induction(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Tactic_change_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Tactic_induction___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_induction___closed__9; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__3; lean_object* l_Lean_Parser_Tactic_allGoals___closed__4; lean_object* l_Lean_Parser_Tactic_revert___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_clear___closed__7; @@ -1341,7 +1329,6 @@ lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(lean_object*); extern lean_object* l_Lean_Parser_Term_let_x21_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_intro_formatter___closed__3; 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_inductionAlts_formatter___lambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_traceState___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_injection___elambda__1___closed__2; @@ -1357,7 +1344,6 @@ lean_object* l_Lean_Parser_Tactic_subst___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_show_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_let_x21___closed__3; lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1(lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_traceState(lean_object*); lean_object* l_Lean_Parser_Tactic_induction___elambda__1___closed__8; lean_object* l_Lean_Parser_Tactic_have_parenthesizer___closed__1; @@ -1366,7 +1352,6 @@ extern lean_object* l_Lean_Parser_Term_matchAlts___elambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_match_formatter___closed__5; lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__2; 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; lean_object* l___regBuiltin_Lean_Parser_Tactic_let_parenthesizer(lean_object*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_many_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1397,7 +1382,6 @@ lean_object* l_Lean_Parser_Tactic_withAlts_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_inductionAlt_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_assumption___elambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_let_x21_formatter___closed__2; -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; lean_object* l___regBuiltin_Lean_Parser_Tactic_generalize_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_underscore_parenthesizer___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_skip___closed__4; @@ -1420,7 +1404,6 @@ lean_object* l_Lean_Parser_Tactic_suffices_parenthesizer___closed__3; lean_object* l_Lean_Parser_Tactic_changeWith___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_paren___closed__7; lean_object* l___regBuiltin_Lean_Parser_Tactic_clear_formatter(lean_object*); -extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; lean_object* l_Lean_Parser_Tactic_clear_parenthesizer___closed__1; lean_object* l___regBuiltin_Lean_Parser_Tactic_have_formatter(lean_object*); lean_object* l_Lean_Parser_Tactic_allGoals___elambda__1___closed__4; @@ -1434,6 +1417,7 @@ lean_object* l_Lean_Parser_Tactic_majorPremise; lean_object* l_Lean_Parser_Tactic_failIfSuccess___elambda__1___closed__5; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_injection(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l_Lean_PrettyPrinter_Parenthesizer_node_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_andthenFn(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Tactic_paren_formatter(lean_object*); extern lean_object* l_Lean_Parser_Term_syntheticHole; @@ -21533,650 +21517,6 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("nestedTacticBlock"); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___lambda__1___closed__2; -x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___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_Tactic_nestedTacticBlock___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_Tactic_nestedTacticBlock___elambda__1___closed__1; -x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___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_Tactic_nestedTacticBlock___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_Tactic_nestedTacticBlock___elambda__1___closed__4; -x_4 = lean_ctor_get(x_3, 1); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_5 = l_Lean_Parser_tryAnti(x_1, x_2); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -lean_dec(x_4); -x_6 = lean_unsigned_to_nat(1024u); -x_7 = l_Lean_Parser_checkPrecFn(x_6, x_1, x_2); -x_8 = lean_ctor_get(x_7, 3); -lean_inc(x_8); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_9 = lean_ctor_get(x_7, 0); -lean_inc(x_9); -x_10 = lean_array_get_size(x_9); -lean_dec(x_9); -x_42 = lean_ctor_get(x_7, 1); -lean_inc(x_42); -lean_inc(x_1); -x_43 = l_Lean_Parser_tokenFn(x_1, x_7); -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; -x_45 = lean_ctor_get(x_43, 0); -lean_inc(x_45); -x_46 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_45); -lean_dec(x_45); -if (lean_obj_tag(x_46) == 2) -{ -lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_47 = lean_ctor_get(x_46, 1); -lean_inc(x_47); -lean_dec(x_46); -x_48 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6; -x_49 = lean_string_dec_eq(x_47, x_48); -lean_dec(x_47); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; -x_50 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; -x_51 = l_Lean_Parser_ParserState_mkErrorsAt(x_43, x_50, x_42); -x_11 = x_51; -goto block_41; -} -else -{ -lean_dec(x_42); -x_11 = x_43; -goto block_41; -} -} -else -{ -lean_object* x_52; lean_object* x_53; -lean_dec(x_46); -x_52 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; -x_53 = l_Lean_Parser_ParserState_mkErrorsAt(x_43, x_52, x_42); -x_11 = x_53; -goto block_41; -} -} -else -{ -lean_object* x_54; lean_object* x_55; -lean_dec(x_44); -x_54 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; -x_55 = l_Lean_Parser_ParserState_mkErrorsAt(x_43, x_54, x_42); -x_11 = x_55; -goto block_41; -} -block_41: -{ -lean_object* x_12; -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; -lean_inc(x_1); -x_13 = l_Lean_Parser_Tactic_seq___elambda__1(x_1, x_11); -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; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -x_16 = l_Lean_Parser_tokenFn(x_1, x_13); -x_17 = lean_ctor_get(x_16, 3); -lean_inc(x_17); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -x_19 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_18); -lean_dec(x_18); -if (lean_obj_tag(x_19) == 2) -{ -lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8; -x_22 = lean_string_dec_eq(x_20, x_21); -lean_dec(x_20); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; -x_24 = l_Lean_Parser_ParserState_mkErrorsAt(x_16, x_23, x_15); -x_25 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_26 = l_Lean_Parser_ParserState_mkNode(x_24, x_25, x_10); -return x_26; -} -else -{ -lean_object* x_27; lean_object* x_28; -lean_dec(x_15); -x_27 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_28 = l_Lean_Parser_ParserState_mkNode(x_16, x_27, x_10); -return x_28; -} -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -lean_dec(x_19); -x_29 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; -x_30 = l_Lean_Parser_ParserState_mkErrorsAt(x_16, x_29, x_15); -x_31 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_32 = l_Lean_Parser_ParserState_mkNode(x_30, x_31, x_10); -return x_32; -} -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_17); -x_33 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; -x_34 = l_Lean_Parser_ParserState_mkErrorsAt(x_16, x_33, x_15); -x_35 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_36 = l_Lean_Parser_ParserState_mkNode(x_34, x_35, x_10); -return x_36; -} -} -else -{ -lean_object* x_37; lean_object* x_38; -lean_dec(x_14); -lean_dec(x_1); -x_37 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_38 = l_Lean_Parser_ParserState_mkNode(x_13, x_37, x_10); -return x_38; -} -} -else -{ -lean_object* x_39; lean_object* x_40; -lean_dec(x_12); -lean_dec(x_1); -x_39 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_40 = l_Lean_Parser_ParserState_mkNode(x_11, x_39, x_10); -return x_40; -} -} -} -else -{ -lean_dec(x_8); -lean_dec(x_1); -return x_7; -} -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_56 = lean_ctor_get(x_2, 0); -lean_inc(x_56); -x_57 = lean_array_get_size(x_56); -lean_dec(x_56); -x_58 = lean_ctor_get(x_2, 1); -lean_inc(x_58); -lean_inc(x_1); -x_59 = lean_apply_2(x_4, x_1, x_2); -x_60 = lean_ctor_get(x_59, 3); -lean_inc(x_60); -if (lean_obj_tag(x_60) == 0) -{ -lean_dec(x_58); -lean_dec(x_57); -lean_dec(x_1); -return x_59; -} -else -{ -lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -lean_dec(x_60); -x_62 = lean_ctor_get(x_59, 1); -lean_inc(x_62); -x_63 = lean_nat_dec_eq(x_62, x_58); -lean_dec(x_62); -if (x_63 == 0) -{ -lean_dec(x_61); -lean_dec(x_58); -lean_dec(x_57); -lean_dec(x_1); -return x_59; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_inc(x_58); -x_64 = l_Lean_Parser_ParserState_restore(x_59, x_57, x_58); -lean_dec(x_57); -x_65 = lean_unsigned_to_nat(1024u); -x_66 = l_Lean_Parser_checkPrecFn(x_65, 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; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_68 = lean_ctor_get(x_66, 0); -lean_inc(x_68); -x_69 = lean_array_get_size(x_68); -lean_dec(x_68); -x_107 = lean_ctor_get(x_66, 1); -lean_inc(x_107); -lean_inc(x_1); -x_108 = l_Lean_Parser_tokenFn(x_1, x_66); -x_109 = lean_ctor_get(x_108, 3); -lean_inc(x_109); -if (lean_obj_tag(x_109) == 0) -{ -lean_object* x_110; lean_object* x_111; -x_110 = lean_ctor_get(x_108, 0); -lean_inc(x_110); -x_111 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_110); -lean_dec(x_110); -if (lean_obj_tag(x_111) == 2) -{ -lean_object* x_112; lean_object* x_113; uint8_t x_114; -x_112 = lean_ctor_get(x_111, 1); -lean_inc(x_112); -lean_dec(x_111); -x_113 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6; -x_114 = lean_string_dec_eq(x_112, x_113); -lean_dec(x_112); -if (x_114 == 0) -{ -lean_object* x_115; lean_object* x_116; -x_115 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; -x_116 = l_Lean_Parser_ParserState_mkErrorsAt(x_108, x_115, x_107); -x_70 = x_116; -goto block_106; -} -else -{ -lean_dec(x_107); -x_70 = x_108; -goto block_106; -} -} -else -{ -lean_object* x_117; lean_object* x_118; -lean_dec(x_111); -x_117 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; -x_118 = l_Lean_Parser_ParserState_mkErrorsAt(x_108, x_117, x_107); -x_70 = x_118; -goto block_106; -} -} -else -{ -lean_object* x_119; lean_object* x_120; -lean_dec(x_109); -x_119 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; -x_120 = l_Lean_Parser_ParserState_mkErrorsAt(x_108, x_119, x_107); -x_70 = x_120; -goto block_106; -} -block_106: -{ -lean_object* x_71; -x_71 = lean_ctor_get(x_70, 3); -lean_inc(x_71); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; lean_object* x_73; -lean_inc(x_1); -x_72 = l_Lean_Parser_Tactic_seq___elambda__1(x_1, x_70); -x_73 = lean_ctor_get(x_72, 3); -lean_inc(x_73); -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_72, 1); -lean_inc(x_74); -x_75 = l_Lean_Parser_tokenFn(x_1, x_72); -x_76 = lean_ctor_get(x_75, 3); -lean_inc(x_76); -if (lean_obj_tag(x_76) == 0) -{ -lean_object* x_77; lean_object* x_78; -x_77 = lean_ctor_get(x_75, 0); -lean_inc(x_77); -x_78 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_77); -lean_dec(x_77); -if (lean_obj_tag(x_78) == 2) -{ -lean_object* x_79; lean_object* x_80; uint8_t x_81; -x_79 = lean_ctor_get(x_78, 1); -lean_inc(x_79); -lean_dec(x_78); -x_80 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8; -x_81 = lean_string_dec_eq(x_79, x_80); -lean_dec(x_79); -if (x_81 == 0) -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_82 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; -x_83 = l_Lean_Parser_ParserState_mkErrorsAt(x_75, x_82, x_74); -x_84 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_85 = l_Lean_Parser_ParserState_mkNode(x_83, x_84, x_69); -x_86 = l_Lean_Parser_mergeOrElseErrors(x_85, x_61, x_58); -lean_dec(x_58); -return x_86; -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_74); -x_87 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_88 = l_Lean_Parser_ParserState_mkNode(x_75, x_87, x_69); -x_89 = l_Lean_Parser_mergeOrElseErrors(x_88, x_61, x_58); -lean_dec(x_58); -return x_89; -} -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_78); -x_90 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; -x_91 = l_Lean_Parser_ParserState_mkErrorsAt(x_75, x_90, x_74); -x_92 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_93 = l_Lean_Parser_ParserState_mkNode(x_91, x_92, x_69); -x_94 = l_Lean_Parser_mergeOrElseErrors(x_93, x_61, x_58); -lean_dec(x_58); -return x_94; -} -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -lean_dec(x_76); -x_95 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; -x_96 = l_Lean_Parser_ParserState_mkErrorsAt(x_75, x_95, x_74); -x_97 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_98 = l_Lean_Parser_ParserState_mkNode(x_96, x_97, x_69); -x_99 = l_Lean_Parser_mergeOrElseErrors(x_98, x_61, x_58); -lean_dec(x_58); -return x_99; -} -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_73); -lean_dec(x_1); -x_100 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_101 = l_Lean_Parser_ParserState_mkNode(x_72, x_100, x_69); -x_102 = l_Lean_Parser_mergeOrElseErrors(x_101, x_61, x_58); -lean_dec(x_58); -return x_102; -} -} -else -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; -lean_dec(x_71); -lean_dec(x_1); -x_103 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_104 = l_Lean_Parser_ParserState_mkNode(x_70, x_103, x_69); -x_105 = l_Lean_Parser_mergeOrElseErrors(x_104, x_61, x_58); -lean_dec(x_58); -return x_105; -} -} -} -else -{ -lean_object* x_121; -lean_dec(x_67); -lean_dec(x_1); -x_121 = l_Lean_Parser_mergeOrElseErrors(x_66, x_61, x_58); -lean_dec(x_58); -return x_121; -} -} -} -} -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___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__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_Tactic_nestedTacticBlock___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_epsilonInfo; -x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__1; -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_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__2; -x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); -return x_4; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1), 2, 0); -return x_1; -} -} -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___closed__3; -x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___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_nestedTacticBlock() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___closed__5; -return x_1; -} -} -lean_object* l___regBuiltinParser_Lean_Parser_Tactic_nestedTacticBlock(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_PrettyPrinter_Parenthesizer_tactic_parenthesizer___closed__2; -x_3 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_4 = 1; -x_5 = l_Lean_Parser_Tactic_nestedTacticBlock; -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_Tactic_nestedTacticBlock_formatter___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__1; -x_2 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__3; -x_3 = 1; -x_4 = lean_box(x_3); -x_5 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_formatter___boxed), 8, 3); -lean_closure_set(x_5, 0, x_1); -lean_closure_set(x_5, 1, x_2); -lean_closure_set(x_5, 2, x_4); -return x_5; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Term_tacticBlock_formatter___closed__6; -x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); -lean_closure_set(x_4, 0, x_1); -lean_closure_set(x_4, 1, x_2); -lean_closure_set(x_4, 2, x_3); -return x_4; -} -} -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__1; -x_7 = l_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__2; -x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); -return x_8; -} -} -lean_object* _init_l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_nestedTacticBlock_formatter), 5, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_formatter(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_PrettyPrinter_formatterAttribute; -x_3 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_4 = l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__1; -x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); -return x_5; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__1() { -_start: -{ -lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__3; -x_2 = 1; -x_3 = lean_box(x_2); -x_4 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_parenthesizer___rarg___boxed), 7, 2); -lean_closure_set(x_4, 0, x_1); -lean_closure_set(x_4, 1, x_3); -return x_4; -} -} -lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__4; -x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); -lean_closure_set(x_4, 0, x_1); -lean_closure_set(x_4, 1, x_2); -lean_closure_set(x_4, 2, x_3); -return x_4; -} -} -lean_object* l_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__2; -x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); -return x_8; -} -} -lean_object* _init_l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer), 5, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer(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_PrettyPrinter_parenthesizerAttribute; -x_3 = l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2; -x_4 = l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__1; -x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); -return x_5; -} -} lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__1() { _start: { @@ -22266,7 +21606,7 @@ lean_dec(x_47); if (x_49 == 0) { lean_object* x_50; lean_object* x_51; -x_50 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_50 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_51 = l_Lean_Parser_ParserState_mkErrorsAt(x_43, x_50, x_42); x_11 = x_51; goto block_41; @@ -22282,7 +21622,7 @@ else { lean_object* x_52; lean_object* x_53; lean_dec(x_46); -x_52 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_52 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_53 = l_Lean_Parser_ParserState_mkErrorsAt(x_43, x_52, x_42); x_11 = x_53; goto block_41; @@ -22292,7 +21632,7 @@ else { lean_object* x_54; lean_object* x_55; lean_dec(x_44); -x_54 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_54 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_55 = l_Lean_Parser_ParserState_mkErrorsAt(x_43, x_54, x_42); x_11 = x_55; goto block_41; @@ -22336,7 +21676,7 @@ lean_dec(x_20); if (x_22 == 0) { lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_23 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_24 = l_Lean_Parser_ParserState_mkErrorsAt(x_16, x_23, x_15); x_25 = l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__2; x_26 = l_Lean_Parser_ParserState_mkNode(x_24, x_25, x_10); @@ -22355,7 +21695,7 @@ else { lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_dec(x_19); -x_29 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_29 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_30 = l_Lean_Parser_ParserState_mkErrorsAt(x_16, x_29, x_15); x_31 = l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__2; x_32 = l_Lean_Parser_ParserState_mkNode(x_30, x_31, x_10); @@ -22366,7 +21706,7 @@ else { lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_dec(x_17); -x_33 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_33 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_34 = l_Lean_Parser_ParserState_mkErrorsAt(x_16, x_33, x_15); x_35 = l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__2; x_36 = l_Lean_Parser_ParserState_mkNode(x_34, x_35, x_10); @@ -22481,7 +21821,7 @@ lean_dec(x_112); if (x_114 == 0) { lean_object* x_115; lean_object* x_116; -x_115 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_115 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_116 = l_Lean_Parser_ParserState_mkErrorsAt(x_108, x_115, x_107); x_70 = x_116; goto block_106; @@ -22497,7 +21837,7 @@ else { lean_object* x_117; lean_object* x_118; lean_dec(x_111); -x_117 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_117 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_118 = l_Lean_Parser_ParserState_mkErrorsAt(x_108, x_117, x_107); x_70 = x_118; goto block_106; @@ -22507,7 +21847,7 @@ else { lean_object* x_119; lean_object* x_120; lean_dec(x_109); -x_119 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_119 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_120 = l_Lean_Parser_ParserState_mkErrorsAt(x_108, x_119, x_107); x_70 = x_120; goto block_106; @@ -22551,7 +21891,7 @@ lean_dec(x_79); if (x_81 == 0) { lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_82 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_82 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_83 = l_Lean_Parser_ParserState_mkErrorsAt(x_75, x_82, x_74); x_84 = l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__2; x_85 = l_Lean_Parser_ParserState_mkNode(x_83, x_84, x_69); @@ -22574,7 +21914,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_78); -x_90 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_90 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_91 = l_Lean_Parser_ParserState_mkErrorsAt(x_75, x_90, x_74); x_92 = l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__2; x_93 = l_Lean_Parser_ParserState_mkNode(x_91, x_92, x_69); @@ -22587,7 +21927,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_76); -x_95 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_95 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_96 = l_Lean_Parser_ParserState_mkErrorsAt(x_75, x_95, x_74); x_97 = l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__2; x_98 = l_Lean_Parser_ParserState_mkNode(x_96, x_97, x_69); @@ -22729,6 +22069,28 @@ 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_Tactic_seq_formatter___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_nonEmptySeq_formatter___closed__1; +x_2 = l_Lean_Parser_Term_have_formatter___closed__3; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_sepBy_formatter), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* l_Lean_Parser_Tactic_seq_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___lambda__1___closed__5; +x_7 = l_Lean_Parser_Tactic_seq_formatter___closed__1; +x_8 = l_Lean_PrettyPrinter_Formatter_node_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); +return x_8; +} +} lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__1() { _start: { @@ -22747,21 +22109,17 @@ return x_5; lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_tacticBlock_formatter___closed__4; -x_2 = l_Lean_Parser_Term_implicitBinder_formatter___closed__3; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_seq_formatter), 5, 0); +return x_1; } } lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_implicitBinder_formatter___closed__2; -x_2 = l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__2; +x_1 = l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__2; +x_2 = l_Lean_Parser_Term_implicitBinder_formatter___closed__3; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -22771,10 +22129,22 @@ return x_3; lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__4() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_implicitBinder_formatter___closed__2; +x_2 = l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__3; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__5() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__3; +x_3 = l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__4; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -22787,7 +22157,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__1; -x_7 = l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__4; +x_7 = l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__5; x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -22811,6 +22181,28 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } +lean_object* _init_l_Lean_Parser_Tactic_seq_parenthesizer___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_nonEmptySeq_parenthesizer___closed__1; +x_2 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_sepBy_parenthesizer), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* l_Lean_Parser_Tactic_seq_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___lambda__1___closed__5; +x_7 = l_Lean_Parser_Tactic_seq_parenthesizer___closed__1; +x_8 = l_Lean_PrettyPrinter_Parenthesizer_node_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); +return x_8; +} +} lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__1() { _start: { @@ -22827,10 +22219,42 @@ return x_4; lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__2() { _start: { +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_seq_parenthesizer), 5, 0); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__2; +x_2 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; +x_2 = l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__3; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__5() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__4; +x_3 = l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__4; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -22843,7 +22267,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__2; +x_7 = l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__5; x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -27541,47 +26965,6 @@ lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_paren_parenthesizer___clo res = l___regBuiltin_Lean_Parser_Tactic_paren_parenthesizer(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__1 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__1); -l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__2); -l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__3 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__3(); -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___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(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___closed__2); -l_Lean_Parser_Tactic_nestedTacticBlock___closed__3 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___closed__3); -l_Lean_Parser_Tactic_nestedTacticBlock___closed__4 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__4(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___closed__4); -l_Lean_Parser_Tactic_nestedTacticBlock___closed__5 = _init_l_Lean_Parser_Tactic_nestedTacticBlock___closed__5(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock___closed__5); -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()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__1 = _init_l_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__1); -l_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__2 = _init_l_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__2); -l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_formatter___closed__1); -res = l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_formatter(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__1); -l_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__2 = _init_l_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__2); -l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer___closed__1); -res = l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlock_parenthesizer(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__1 = _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__1); l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__2 = _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__2(); @@ -27609,6 +26992,8 @@ lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlockCurly); res = l___regBuiltinParser_Lean_Parser_Tactic_nestedTacticBlockCurly(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Parser_Tactic_seq_formatter___closed__1 = _init_l_Lean_Parser_Tactic_seq_formatter___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_seq_formatter___closed__1); l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__1 = _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__1); l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__2 = _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__2(); @@ -27617,15 +27002,25 @@ l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__3 = _init_l_Lean lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__3); l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__4 = _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__4(); lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__4); +l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__5 = _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__5); l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__1); res = l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Parser_Tactic_seq_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_seq_parenthesizer___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_seq_parenthesizer___closed__1); l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__1); l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__2 = _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__2(); lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__2); +l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__3 = _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__3); +l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__4 = _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__4); +l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__5 = _init_l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__5); l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__1); res = l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer(lean_io_mk_world()); diff --git a/stage0/stdlib/Lean/Parser/Term.c b/stage0/stdlib/Lean/Parser/Term.c index 7cd43850b0..cc39bb3951 100644 --- a/stage0/stdlib/Lean/Parser/Term.c +++ b/stage0/stdlib/Lean/Parser/Term.c @@ -125,7 +125,6 @@ lean_object* l_Lean_Parser_Term_fromTerm___closed__3; 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_bracketedDoSeq___elambda__1___closed__5; lean_object* l___regBuiltin_Lean_Parser_Term_tparser_x21_formatter___closed__1; lean_object* l_Lean_Parser_Term_decide___closed__1; lean_object* l_Lean_Parser_Term_simpleBinder___closed__2; @@ -187,6 +186,7 @@ lean_object* l_Lean_Parser_Term_and_parenthesizer(lean_object*, lean_object*, le lean_object* l___regBuiltin_Lean_Parser_Term_namedPattern_parenthesizer(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_mapRev_formatter(lean_object*); lean_object* l_Lean_Parser_Term_infixR_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__6; lean_object* l___regBuiltin_Lean_Parser_Term_do_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_attributes_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_suffices_parenthesizer___closed__3; @@ -292,7 +292,6 @@ lean_object* l___regBuiltin_Lean_Parser_Term_let_formatter___closed__1; lean_object* l_Lean_Parser_Term_not___elambda__1___closed__7; extern lean_object* l_Lean_identKind___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_anonymousCtor_formatter(lean_object*); -lean_object* l___regBuiltin_Lean_Parser_Term_tacticBlock_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_bracketedBinder(uint8_t); lean_object* l_Lean_Parser_Term_structInstLVal_parenthesizer___closed__5; lean_object* l_Lean_Parser_Term_structInst___closed__6; @@ -365,13 +364,11 @@ 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_match__syntax_parenthesizer___closed__4; -lean_object* l_Lean_Parser_Term_tacticBlock_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_structInstField_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_proj_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_tparser_x21_formatter___closed__2; lean_object* l_Lean_Parser_Term_namedArgument_formatter___closed__6; lean_object* l_Lean_Parser_Tactic_quot_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -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*); @@ -431,7 +428,6 @@ lean_object* l_Lean_Parser_Term_div; lean_object* l_Lean_Parser_Term_sort_parenthesizer___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_dollar_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_letDecl_parenthesizer___closed__3; -lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_structInst_formatter___closed__12; lean_object* l_Lean_Parser_Term_andM_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_orelse_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -473,7 +469,6 @@ lean_object* l_Lean_Parser_Term_attrInstance___closed__1; lean_object* l_Lean_Parser_regTacticParserAttribute___closed__2; lean_object* l_Lean_Parser_Level_quot___closed__4; 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_nativeRefl___closed__4; lean_object* l_Lean_Parser_Term_match___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_attributes___elambda__1___closed__6; @@ -542,7 +537,6 @@ lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__2; lean_object* l___regBuiltin_Lean_Parser_Term_not_formatter___closed__1; lean_object* l_Lean_Parser_Term_and_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Level_hole_formatter___closed__2; -lean_object* l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_byTactic; lean_object* l_Lean_Parser_Term_have___closed__3; lean_object* l_Lean_Parser_Term_unicodeInfixL_parenthesizer___boxed(lean_object*, lean_object*); @@ -643,6 +637,7 @@ lean_object* l_Lean_Parser_Term_uminus___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Level_quot_formatter___closed__5; lean_object* l___regBuiltin_Lean_Parser_Term_quotedName_formatter___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_namedPattern_formatter___closed__1; +lean_object* l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_sorry_formatter___closed__3; lean_object* l_Lean_Parser_Term_app_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_explicitBinder_formatter___closed__1; @@ -674,7 +669,6 @@ lean_object* l_Lean_Parser_Term_namedArgument___closed__3; lean_object* l_Lean_Parser_Term_dollarProj_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doLet_formatter___closed__3; 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_Lean_Parser_Term_match_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_doElem_parenthesizer___closed__5; lean_object* l___regBuiltinParser_Lean_Parser_Term_do(lean_object*); @@ -748,7 +742,6 @@ lean_object* l___regBuiltin_Lean_Parser_Term_prod_formatter___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Term_let_x21(lean_object*); lean_object* l_Lean_Parser_Term_let___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_suffices_parenthesizer___closed__2; -lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1(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*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_nameLitNoAntiquot_parenthesizer___boxed(lean_object*); @@ -819,7 +812,6 @@ lean_object* l_Lean_Parser_Term_hole___closed__5; lean_object* l_Lean_Parser_Term_add_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_uminus_formatter___closed__4; 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___regBuiltin_Lean_Parser_Term_fun_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_optType___closed__1; @@ -831,7 +823,6 @@ lean_object* l_Lean_Parser_Term_mod___elambda__1(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_bindOp_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_instBinder___closed__3; -lean_object* l_Lean_PrettyPrinter_Formatter_lookahead_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_listLit_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_pow_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_if_formatter___closed__7; @@ -849,7 +840,6 @@ lean_object* l_Lean_Parser_Term_type___closed__10; lean_object* l___regBuiltin_Lean_Parser_Term_bne_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_funBinder_quot___closed__2; lean_object* l_Lean_Parser_Term_bracketedDoSeq___elambda__1(lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_tacticBlock_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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_optExprPrecedence_formatter___closed__1; @@ -878,7 +868,6 @@ lean_object* l_Lean_Parser_Term_prop_parenthesizer___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Term_tparser_x21(lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Term_ident(lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_trailingNode_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_eq___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_emptyC_parenthesizer___closed__1; extern lean_object* l_List_repr___rarg___closed__3; @@ -1325,7 +1314,6 @@ lean_object* l_Lean_Parser_Term_emptyC___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_attributes___closed__3; lean_object* l_Lean_Parser_manyAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_matchAlt_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_structInst_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_quot_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_match___closed__6; @@ -1373,6 +1361,7 @@ lean_object* l_Lean_Parser_charLit_formatter___closed__2; lean_object* l_Lean_Parser_Term_let___closed__8; lean_object* l___regBuiltin_Lean_Parser_Term_explicitUniv_formatter___closed__1; lean_object* l_Lean_Parser_Term_optType; +lean_object* l_Lean_Parser_Term_funImplicitBinder_formatter___closed__6; lean_object* l___regBuiltin_Lean_Parser_Term_paren_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_binderTactic___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_tupleTail___closed__1; @@ -1381,7 +1370,6 @@ lean_object* l_Lean_Parser_Term_le___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_not_formatter___closed__2; lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser_Term_letrec___elambda__1___spec__2(uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_letrec_formatter(lean_object*); -lean_object* l___regBuiltin_Lean_Parser_Term_tacticBlock_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_seq___closed__5; lean_object* l___regBuiltin_Lean_Parser_Term_suffices_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_letEqnsDecl___closed__3; @@ -1445,7 +1433,6 @@ lean_object* l_Lean_Parser_Term_or___elambda__1___closed__1; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_binderTactic; lean_object* l_Lean_Parser_Term_paren___closed__9; -lean_object* l___regBuiltin_Lean_Parser_Term_tacticBlock_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_namedArgument___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_mapRev___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Term_forall(lean_object*); @@ -1488,7 +1475,6 @@ lean_object* l___regBuiltin_Lean_Parser_Term_liftMethod_parenthesizer(lean_objec lean_object* l_Lean_Parser_Term_type_parenthesizer___closed__8; lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser_Term_structInst___elambda__1___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_haveDecl_formatter___closed__2; -lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_where_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_type_formatter___closed__4; lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__6; @@ -1858,7 +1844,6 @@ lean_object* l_Lean_Parser_Term_fromTerm___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_dollarProj_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_nomatch_parenthesizer___closed__1; -lean_object* l_Lean_Parser_Tactic_seq_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_cdot___closed__5; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_tupleTail___elambda__1___spec__1(uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_emptyC_formatter___closed__2; @@ -1887,7 +1872,6 @@ lean_object* l_Lean_Parser_Term_nativeDecide___closed__1; lean_object* l_Lean_Parser_Term_nativeRefl___closed__5; lean_object* l_Lean_Parser_Term_binderIdent___closed__1; lean_object* l_Lean_Parser_Term_letEqnsDecl_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltinParser_Lean_Parser_Term_tacticBlock(lean_object*); lean_object* l_Lean_Parser_Term_doLet_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_ge___closed__3; lean_object* l___regBuiltin_Lean_Parser_Term_sub_parenthesizer___closed__1; @@ -2005,7 +1989,6 @@ lean_object* l_Lean_Parser_Term_arrayRef___elambda__1(lean_object*, lean_object* lean_object* l_Lean_Parser_darrow___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_beq___closed__4; lean_object* l_Lean_Parser_Term_orM___elambda__1___closed__2; -lean_object* l_Lean_Parser_Tactic_seq_formatter___closed__1; lean_object* l_Lean_Parser_Term_mod_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_nativeDecide___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Term_anonymousCtor(lean_object*); @@ -2034,7 +2017,6 @@ lean_object* l_Lean_Parser_Term_typeAscription_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_nativeDecide___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_le___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_attributes_formatter___closed__2; -lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; lean_object* l___regBuiltin_Lean_Parser_Term_paren_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_subtype_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_nomatch___elambda__1___closed__6; @@ -2117,6 +2099,7 @@ lean_object* l_Lean_Parser_sepByFn___at_Lean_Parser_Term_listLit___elambda__1___ lean_object* l_Lean_Parser_Term_leftArrow___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_char___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_funBinder_quot_formatter___closed__2; +lean_object* l_Lean_PrettyPrinter_Formatter_lookahead_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_anonymousCtor_formatter___closed__1; lean_object* l_Lean_Parser_Term_doElem_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Level_ident___closed__1; @@ -2142,7 +2125,6 @@ lean_object* l_Lean_Parser_tacticParser_parenthesizer(lean_object*, lean_object* lean_object* l_Lean_Parser_Term_binderTactic___closed__1; lean_object* l_Lean_Parser_Term_let_x21; lean_object* l___regBuiltin_Lean_Parser_Term_not_formatter(lean_object*); -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_char_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_bnot___elambda__1___closed__2; @@ -2225,7 +2207,6 @@ lean_object* l_Lean_Parser_Term_match_formatter___closed__4; lean_object* l_Lean_Parser_Term_if_formatter___closed__12; lean_object* l_Lean_Parser_Term_proj_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_subtype_parenthesizer___closed__4; -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_letrec___closed__1; lean_object* l_Lean_Parser_Term_letEqnsDecl___elambda__1___closed__3; @@ -2315,7 +2296,6 @@ lean_object* l_Lean_Parser_Term_instBinder_formatter___closed__4; lean_object* l_Lean_Parser_Term_not___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_match__syntax___closed__4; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_matchAlts___elambda__1___spec__15(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_tacticBlock_formatter___closed__6; lean_object* l_Lean_Parser_Term_show___closed__7; lean_object* l_Lean_Parser_ParserState_restore(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_borrowed_formatter___closed__2; @@ -2358,7 +2338,6 @@ lean_object* l___regBuiltin_Lean_Parser_Term_explicitUniv_formatter(lean_object* lean_object* l_Lean_Parser_Term_typeAscription_formatter___closed__3; lean_object* l_Lean_Parser_Term_inaccessible___elambda__1___closed__9; lean_object* l___regBuiltinParser_Lean_Parser_Term_nomatch(lean_object*); -lean_object* l_Lean_Parser_Tactic_seq_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_matchAlts_formatter___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_structInstField; lean_object* l_Lean_Parser_Term_iff___elambda__1___closed__4; @@ -2366,7 +2345,6 @@ lean_object* l___regBuiltin_Lean_Parser_Term_app_parenthesizer___closed__1; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_matchAlts___elambda__1___spec__5(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_borrowed___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_typeAscription___closed__3; -lean_object* l_Lean_Parser_Term_tacticBlock___closed__9; uint8_t l_Lean_Syntax_isAntiquot(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_nativeDecide_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_doId_formatter___closed__3; @@ -2521,7 +2499,6 @@ lean_object* l_Lean_Parser_Term_explicit___closed__3; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_match___elambda__1___spec__1(uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_binderType___closed__3; lean_object* l_Lean_Parser_Term_str_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Parser_Term_tacticBlock_formatter(lean_object*); lean_object* l_Lean_Parser_Tactic_quot_formatter___closed__4; lean_object* l_Lean_Parser_Term_byTactic_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_structInstArrayRef_formatter___closed__5; @@ -2541,7 +2518,6 @@ lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_mapRev; lean_object* l_Lean_Parser_Term_let_formatter___closed__4; 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_depArrow_parenthesizer___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_arrayRef_formatter(lean_object*); @@ -2769,7 +2745,6 @@ lean_object* l_Lean_Parser_Term_funImplicitBinder___closed__4; lean_object* l_Lean_Parser_Term_letDecl_formatter___closed__3; lean_object* l_Lean_Parser_Term_liftMethod_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_char_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__5; lean_object* l___regBuiltin_Lean_Parser_Term_paren_formatter___closed__1; lean_object* l_Lean_Parser_Term_matchAlts_formatter___lambda__1___closed__2; lean_object* l_Lean_Parser_Term_binderDefault_parenthesizer___closed__1; @@ -2936,7 +2911,6 @@ lean_object* l_Lean_Parser_Term_instBinder_formatter___closed__1; lean_object* l_Lean_Parser_Term_explicit___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_namedPattern___closed__1; lean_object* l_Lean_Parser_Term_cdot_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -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_letDecl___closed__8; lean_object* l_Lean_Parser_Tactic_quot___elambda__1___closed__4; @@ -2984,7 +2958,6 @@ 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_letrec___closed__15; -lean_object* l_Lean_Parser_Term_tacticBlock___closed__8; lean_object* l_Lean_Parser_Term_doExpr_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_binderDefault_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_charLit_parenthesizer___closed__1; @@ -3091,7 +3064,6 @@ lean_object* l_Lean_Parser_Term_fromTerm___closed__6; lean_object* l_Lean_Parser_Term_char_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_type; lean_object* l_Lean_Parser_Term_cons_formatter___closed__1; -lean_object* l_Lean_Parser_Term_tacticBlock___closed__4; lean_object* l_Lean_Parser_Term_unicodeInfixL_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_pow___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_seq_parenthesizer___closed__1; @@ -3102,11 +3074,10 @@ lean_object* l_Lean_Parser_Term_leftArrow___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_structInst_formatter___closed__18; 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_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__6; lean_object* l___regBuiltin_Lean_Parser_Term_arrayRef_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Level_quot___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_match__syntax_parenthesizer___closed__3; -lean_object* l_Lean_Parser_Term_tacticBlock; lean_object* l_Lean_Parser_Term_let___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_attributes_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_bne___closed__2; @@ -3156,7 +3127,6 @@ lean_object* l_Lean_Parser_Term_binderDefault___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_cons___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_bnot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser_Term_matchAlts___elambda__1___spec__2___closed__1; 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*); @@ -3218,7 +3188,6 @@ lean_object* l_Lean_Parser_Term_seqRight_parenthesizer(lean_object*, lean_object lean_object* l_Lean_Parser_Term_gt; lean_object* l_Lean_Parser_Term_doElem_formatter___closed__5; lean_object* l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -lean_object* l_Lean_Parser_Term_tacticBlock_formatter___closed__4; lean_object* l_Lean_Parser_Term_tparser_x21___closed__2; lean_object* l_Lean_Parser_Term_matchAlts___boxed(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_inaccessible_formatter(lean_object*); @@ -3256,6 +3225,7 @@ 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_letrec___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__3; +lean_object* l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; 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_Lean_Parser_Term_where_formatter___closed__3; lean_object* l_Lean_Parser_Term_bnot_formatter___closed__4; @@ -3268,7 +3238,6 @@ lean_object* l_Lean_Parser_Term_arrow_formatter(lean_object*, lean_object*, lean lean_object* l_Lean_Parser_Term_binderTactic_parenthesizer___closed__6; lean_object* l_Lean_Parser_Term_letIdDecl___closed__1; lean_object* l_Lean_Parser_Term_funBinder_quot_formatter___closed__5; -lean_object* l_Lean_Parser_Term_tacticBlock_formatter___closed__2; lean_object* l_Lean_Parser_Term_arrayLit___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_nativeRefl___elambda__1___closed__4; lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser_Term_subst___elambda__1___spec__2___closed__3; @@ -3357,7 +3326,6 @@ lean_object* l_Lean_Parser_Term_if_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_letrec___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_structInst_formatter___closed__16; lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__6; -lean_object* l_Lean_Parser_Term_tacticBlock_formatter___closed__7; lean_object* l_Lean_Parser_Term_if_formatter___closed__9; lean_object* l_Lean_PrettyPrinter_Parenthesizer_lookahead_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_nativeDecide___closed__7; @@ -3371,7 +3339,6 @@ lean_object* l_Lean_Parser_Term_match__syntax___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_implicitBinder___closed__2; lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser_Term_subst___elambda__1___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_if_formatter___closed__11; -lean_object* l_Lean_Parser_Tactic_seq_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_explicitBinder___closed__4; lean_object* l_Lean_Parser_Term_fun_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_andM___closed__3; @@ -3421,8 +3388,6 @@ lean_object* l_Lean_Parser_Term_doPat_parenthesizer___closed__5; lean_object* l_Lean_Parser_Term_or_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_structInstField_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_fcomp___closed__3; -lean_object* l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__3; -lean_object* l_Lean_Parser_Term_tacticBlock_formatter___closed__1; lean_object* l_Lean_Parser_Term_sort_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_attrInstance_parenthesizer___closed__5; lean_object* l_Lean_Parser_Term_doLet___closed__2; @@ -3448,7 +3413,6 @@ lean_object* l_Lean_Parser_Term_doId_parenthesizer(lean_object*, lean_object*, l 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_cons_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_tacticBlock___closed__6; extern lean_object* l_Lean_Parser_mkAntiquot___closed__6; lean_object* l_Lean_Parser_Term_doId_formatter___closed__1; lean_object* l_Lean_Parser_Term_equiv___elambda__1___closed__4; @@ -3504,7 +3468,6 @@ lean_object* l_Lean_Parser_Term_parenSpecial_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_match_formatter___closed__10; lean_object* l_Lean_Parser_Term_gt___closed__4; lean_object* l_Lean_Parser_Term_seq_parenthesizer___closed__1; -lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_let_x21___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_explicit; lean_object* l___private_Lean_Parser_Basic_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*); @@ -3614,7 +3577,6 @@ lean_object* l_Lean_Parser_Term_infixR___boxed(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_add_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_beq___closed__2; lean_object* l_Lean_Parser_Term_arrayLit___closed__2; -lean_object* l_Lean_Parser_Term_tacticBlock_formatter___closed__3; lean_object* l_Lean_Parser_Term_fun_formatter___closed__2; lean_object* l_Lean_Parser_Term_ne___elambda__1___closed__4; lean_object* l___regBuiltin_Lean_Parser_Term_liftMethod_formatter___closed__1; @@ -3626,7 +3588,6 @@ lean_object* l_Lean_Parser_Term_namedArgument_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_binderDefault_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_let_x21___closed__1; lean_object* l_Lean_Parser_Term_binderDefault_parenthesizer___closed__2; -lean_object* l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_parser_x21_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_parser_x21_formatter___closed__3; lean_object* l_Lean_Parser_Term_nomatch___closed__5; @@ -3649,7 +3610,6 @@ lean_object* l_Lean_Parser_Term_subst___closed__7; extern lean_object* l_Lean_Parser_mkAntiquot_parenthesizer___rarg___closed__1; lean_object* l_Lean_Parser_Term_haveAssign_formatter___closed__3; lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; -lean_object* l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_num_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_sepByFn___at_Lean_Parser_Term_structInst___elambda__1___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_fcomp___closed__2; @@ -3704,7 +3664,6 @@ lean_object* l_Lean_Parser_Term_subtype_parenthesizer___closed__5; lean_object* l___regBuiltin_Lean_Parser_Term_orM_formatter___closed__1; lean_object* l_Lean_Parser_Term_mapRev___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_subst_parenthesizer___closed__3; -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_matchDiscr___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_funBinder_quot___closed__6; @@ -3805,7 +3764,6 @@ lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_sub; lean_object* l_Lean_Parser_Term_bindOp_parenthesizer___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_andM_parenthesizer(lean_object*); -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_syntheticHole_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_do___closed__5; @@ -3834,7 +3792,6 @@ lean_object* l___regBuiltinParser_Lean_Parser_Term_or(lean_object*); lean_object* l_Lean_Parser_Term_letrec_formatter___closed__2; lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser_Term_subst___elambda__1___spec__2___closed__4; lean_object* l_Lean_Parser_Term_iff___elambda__1___closed__3; -lean_object* l_Lean_Parser_Term_tacticBlock_formatter___closed__5; lean_object* l_Lean_Parser_Term_doPat___closed__5; lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__4; extern lean_object* l_Lean_Parser_Level_paren_formatter___closed__2; @@ -3862,7 +3819,6 @@ lean_object* l___regBuiltin_Lean_Parser_Term_type_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_letDecl___closed__3; lean_object* l_Lean_Parser_Term_subtype___elambda__1___closed__3; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_letrec___elambda__1___spec__1(uint8_t, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_tacticBlock___closed__5; lean_object* l_Lean_Parser_Term_letrec_formatter___closed__1; lean_object* l_Lean_Parser_Term_if___closed__7; lean_object* l_Lean_Parser_Term_match___closed__10; @@ -3905,7 +3861,6 @@ lean_object* l_Lean_Parser_Term_attrInstance_parenthesizer___closed__6; lean_object* l___regBuiltin_Lean_Parser_Term_subtype_formatter(lean_object*); lean_object* l_Lean_Parser_Term_doExpr; lean_object* l_Lean_Parser_nameLit_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_nonEmptySeq_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_orelse___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_suffices___closed__6; @@ -4023,6 +3978,7 @@ lean_object* l_Lean_Parser_Term_fun_parenthesizer___closed__7; lean_object* l_Lean_Parser_Level_quot_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_emptyC_formatter___closed__1; lean_object* l_Lean_Parser_Term_let_x21___closed__2; +lean_object* l_Lean_Parser_Term_funImplicitBinder___closed__6; lean_object* l_Lean_Parser_Term_funBinder_quot___elambda__1___closed__8; lean_object* l___regBuiltin_Lean_Parser_Term_ident_formatter___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Term_ident___closed__1; @@ -4051,7 +4007,6 @@ lean_object* l_Lean_Parser_Term_do_parenthesizer___closed__2; 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_where_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -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_letrec_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_type___closed__9; @@ -35115,7 +35070,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_implicitBinder___closed__1; +x_2 = l_Lean_Parser_Term_implicitBinder___closed__4; x_3 = lean_string_append(x_1, x_2); return x_3; } @@ -35142,10 +35097,42 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } +lean_object* _init_l_Lean_Parser_Term_funImplicitBinder___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_implicitBinder___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_funImplicitBinder___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_funImplicitBinder___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_funImplicitBinder___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_funImplicitBinder___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_6; lean_object* x_7; lean_object* x_8; lean_object* x_24; lean_object* x_41; lean_object* x_53; lean_object* x_54; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_24; lean_object* x_67; lean_object* x_79; lean_object* x_80; x_3 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__1; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); @@ -35156,60 +35143,60 @@ lean_inc(x_6); x_7 = lean_array_get_size(x_5); lean_dec(x_5); lean_inc(x_1); -x_53 = l_Lean_Parser_tokenFn(x_1, x_2); -x_54 = lean_ctor_get(x_53, 3); -lean_inc(x_54); -if (lean_obj_tag(x_54) == 0) +x_79 = l_Lean_Parser_tokenFn(x_1, x_2); +x_80 = lean_ctor_get(x_79, 3); +lean_inc(x_80); +if (lean_obj_tag(x_80) == 0) { -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_53, 0); -lean_inc(x_55); -x_56 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_55); -lean_dec(x_55); -if (lean_obj_tag(x_56) == 2) +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_79, 0); +lean_inc(x_81); +x_82 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_81); +lean_dec(x_81); +if (lean_obj_tag(x_82) == 2) { -lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -lean_dec(x_56); -x_58 = l_Lean_Parser_Term_implicitBinder___closed__1; -x_59 = lean_string_dec_eq(x_57, x_58); -lean_dec(x_57); -if (x_59 == 0) +lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_83 = lean_ctor_get(x_82, 1); +lean_inc(x_83); +lean_dec(x_82); +x_84 = l_Lean_Parser_Term_implicitBinder___closed__1; +x_85 = lean_string_dec_eq(x_83, x_84); +lean_dec(x_83); +if (x_85 == 0) { -lean_object* x_60; lean_object* x_61; -x_60 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +lean_object* x_86; lean_object* x_87; +x_86 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; lean_inc(x_6); -x_61 = l_Lean_Parser_ParserState_mkErrorsAt(x_53, x_60, x_6); -x_41 = x_61; -goto block_52; +x_87 = l_Lean_Parser_ParserState_mkErrorsAt(x_79, x_86, x_6); +x_67 = x_87; +goto block_78; } else { -x_41 = x_53; -goto block_52; +x_67 = x_79; +goto block_78; } } else { -lean_object* x_62; lean_object* x_63; -lean_dec(x_56); -x_62 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +lean_object* x_88; lean_object* x_89; +lean_dec(x_82); +x_88 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; lean_inc(x_6); -x_63 = l_Lean_Parser_ParserState_mkErrorsAt(x_53, x_62, x_6); -x_41 = x_63; -goto block_52; +x_89 = l_Lean_Parser_ParserState_mkErrorsAt(x_79, x_88, x_6); +x_67 = x_89; +goto block_78; } } else { -lean_object* x_64; lean_object* x_65; -lean_dec(x_54); -x_64 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +lean_object* x_90; lean_object* x_91; +lean_dec(x_80); +x_90 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; lean_inc(x_6); -x_65 = l_Lean_Parser_ParserState_mkErrorsAt(x_53, x_64, x_6); -x_41 = x_65; -goto block_52; +x_91 = l_Lean_Parser_ParserState_mkErrorsAt(x_79, x_90, x_6); +x_67 = x_91; +goto block_78; } block_23: { @@ -35278,70 +35265,180 @@ return x_22; } } } -block_40: +block_66: { 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_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_53; lean_object* x_54; +x_26 = lean_ctor_get(x_24, 0); 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); +x_27 = lean_array_get_size(x_26); +lean_dec(x_26); +x_28 = lean_ctor_get(x_24, 1); lean_inc(x_28); -if (lean_obj_tag(x_28) == 0) +lean_inc(x_1); +x_53 = l_Lean_Parser_tokenFn(x_1, x_24); +x_54 = lean_ctor_get(x_53, 3); +lean_inc(x_54); +if (lean_obj_tag(x_54) == 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_Syntax_Traverser_up___spec__2(x_29); -lean_dec(x_29); -if (lean_obj_tag(x_30) == 2) +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_53, 0); +lean_inc(x_55); +x_56 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_55); +lean_dec(x_55); +if (lean_obj_tag(x_56) == 2) +{ +lean_object* x_57; lean_object* x_58; uint8_t x_59; +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +x_58 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__5; +x_59 = lean_string_dec_eq(x_57, x_58); +lean_dec(x_57); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__8; +lean_inc(x_28); +x_61 = l_Lean_Parser_ParserState_mkErrorsAt(x_53, x_60, x_28); +x_29 = x_61; +goto block_52; +} +else +{ +x_29 = x_53; +goto block_52; +} +} +else +{ +lean_object* x_62; lean_object* x_63; +lean_dec(x_56); +x_62 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__8; +lean_inc(x_28); +x_63 = l_Lean_Parser_ParserState_mkErrorsAt(x_53, x_62, x_28); +x_29 = x_63; +goto block_52; +} +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_54); +x_64 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__8; +lean_inc(x_28); +x_65 = l_Lean_Parser_ParserState_mkErrorsAt(x_53, x_64, x_28); +x_29 = x_65; +goto block_52; +} +block_52: +{ +lean_object* x_30; +x_30 = lean_ctor_get(x_29, 3); +lean_inc(x_30); +if (lean_obj_tag(x_30) == 0) +{ +lean_dec(x_28); +lean_dec(x_27); +x_8 = x_29; +goto block_23; +} +else { lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_30, 1); +x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); lean_dec(x_30); -x_32 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__5; -x_33 = lean_string_dec_eq(x_31, x_32); -lean_dec(x_31); +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +x_33 = lean_nat_dec_eq(x_32, x_28); +lean_dec(x_32); if (x_33 == 0) { -lean_object* x_34; lean_object* x_35; -x_34 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__8; -x_35 = l_Lean_Parser_ParserState_mkErrorsAt(x_27, x_34, x_26); -x_8 = x_35; -goto block_23; -} -else -{ -lean_dec(x_26); -x_8 = x_27; -goto block_23; -} -} -else -{ -lean_object* x_36; lean_object* x_37; -lean_dec(x_30); -x_36 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__8; -x_37 = l_Lean_Parser_ParserState_mkErrorsAt(x_27, x_36, x_26); -x_8 = x_37; -goto block_23; -} -} -else -{ -lean_object* x_38; lean_object* x_39; +lean_dec(x_31); lean_dec(x_28); -x_38 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__8; -x_39 = l_Lean_Parser_ParserState_mkErrorsAt(x_27, x_38, x_26); -x_8 = x_39; +lean_dec(x_27); +x_8 = x_29; goto block_23; } +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_inc(x_28); +x_34 = l_Lean_Parser_ParserState_restore(x_29, x_27, x_28); +lean_dec(x_27); +lean_inc(x_1); +x_35 = l_Lean_Parser_tokenFn(x_1, x_34); +x_36 = lean_ctor_get(x_35, 3); +lean_inc(x_36); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_35, 0); +lean_inc(x_37); +x_38 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_37); +lean_dec(x_37); +if (lean_obj_tag(x_38) == 2) +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = l_Lean_Parser_Term_implicitBinder___closed__4; +x_41 = lean_string_dec_eq(x_39, x_40); +lean_dec(x_39); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +lean_inc(x_28); +x_43 = l_Lean_Parser_ParserState_mkErrorsAt(x_35, x_42, x_28); +x_44 = l_Lean_Parser_mergeOrElseErrors(x_43, x_31, x_28); +lean_dec(x_28); +x_8 = x_44; +goto block_23; +} +else +{ +lean_object* x_45; +x_45 = l_Lean_Parser_mergeOrElseErrors(x_35, x_31, x_28); +lean_dec(x_28); +x_8 = x_45; +goto block_23; +} +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_dec(x_38); +x_46 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +lean_inc(x_28); +x_47 = l_Lean_Parser_ParserState_mkErrorsAt(x_35, x_46, x_28); +x_48 = l_Lean_Parser_mergeOrElseErrors(x_47, x_31, x_28); +lean_dec(x_28); +x_8 = x_48; +goto block_23; +} +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_36); +x_49 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +lean_inc(x_28); +x_50 = l_Lean_Parser_ParserState_mkErrorsAt(x_35, x_49, x_28); +x_51 = l_Lean_Parser_mergeOrElseErrors(x_50, x_31, x_28); +lean_dec(x_28); +x_8 = x_51; +goto block_23; +} +} +} +} } else { @@ -35350,46 +35447,46 @@ x_8 = x_24; goto block_23; } } -block_52: +block_78: { -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_68; +x_68 = lean_ctor_get(x_67, 3); +lean_inc(x_68); +if (lean_obj_tag(x_68) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_41, 0); -lean_inc(x_43); -x_44 = lean_array_get_size(x_43); -lean_dec(x_43); +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_69 = lean_ctor_get(x_67, 0); +lean_inc(x_69); +x_70 = lean_array_get_size(x_69); +lean_dec(x_69); lean_inc(x_1); -x_45 = l_Lean_Parser_Term_binderIdent___elambda__1(x_1, x_41); -x_46 = lean_ctor_get(x_45, 3); -lean_inc(x_46); -if (lean_obj_tag(x_46) == 0) +x_71 = l_Lean_Parser_Term_binderIdent___elambda__1(x_1, x_67); +x_72 = lean_ctor_get(x_71, 3); +lean_inc(x_72); +if (lean_obj_tag(x_72) == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_inc(x_1); -x_47 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_simpleBinder___elambda__1___spec__1(x_1, x_45); -x_48 = l_Lean_nullKind; -x_49 = l_Lean_Parser_ParserState_mkNode(x_47, x_48, x_44); -x_24 = x_49; -goto block_40; +x_73 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_simpleBinder___elambda__1___spec__1(x_1, x_71); +x_74 = l_Lean_nullKind; +x_75 = l_Lean_Parser_ParserState_mkNode(x_73, x_74, x_70); +x_24 = x_75; +goto block_66; } else { -lean_object* x_50; lean_object* x_51; -lean_dec(x_46); -x_50 = l_Lean_nullKind; -x_51 = l_Lean_Parser_ParserState_mkNode(x_45, x_50, x_44); -x_24 = x_51; -goto block_40; +lean_object* x_76; lean_object* x_77; +lean_dec(x_72); +x_76 = l_Lean_nullKind; +x_77 = l_Lean_Parser_ParserState_mkNode(x_71, x_76, x_70); +x_24 = x_77; +goto block_66; } } else { -lean_dec(x_42); -x_8 = x_41; +lean_dec(x_68); +x_8 = x_67; goto block_23; } } @@ -35398,38 +35495,48 @@ goto block_23; lean_object* _init_l_Lean_Parser_Term_funImplicitBinder___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_binderIdent; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_Term_typeAscription___closed__1; -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_typeAscription___closed__1; +x_2 = l_Lean_Parser_Term_implicitBinder___closed__5; +x_3 = l_Lean_Parser_orelseInfo(x_1, x_2); +return x_3; } } lean_object* _init_l_Lean_Parser_Term_funImplicitBinder___closed__2() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_binderIdent; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_funImplicitBinder___closed__1; +x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_funImplicitBinder___closed__3() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Term_implicitBinder___closed__2; -x_2 = l_Lean_Parser_Term_funImplicitBinder___closed__1; +x_2 = l_Lean_Parser_Term_funImplicitBinder___closed__2; x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Parser_Term_funImplicitBinder___closed__3() { +lean_object* _init_l_Lean_Parser_Term_funImplicitBinder___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_funImplicitBinder___elambda__1___closed__1; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Term_funImplicitBinder___closed__2; +x_3 = l_Lean_Parser_Term_funImplicitBinder___closed__3; x_4 = l_Lean_Parser_andthenInfo(x_3, x_2); return x_4; } } -lean_object* _init_l_Lean_Parser_Term_funImplicitBinder___closed__4() { +lean_object* _init_l_Lean_Parser_Term_funImplicitBinder___closed__5() { _start: { lean_object* x_1; @@ -35437,12 +35544,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_funImplicitBinder___elambda_ return x_1; } } -lean_object* _init_l_Lean_Parser_Term_funImplicitBinder___closed__5() { +lean_object* _init_l_Lean_Parser_Term_funImplicitBinder___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_funImplicitBinder___closed__3; -x_2 = l_Lean_Parser_Term_funImplicitBinder___closed__4; +x_1 = l_Lean_Parser_Term_funImplicitBinder___closed__4; +x_2 = l_Lean_Parser_Term_funImplicitBinder___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); @@ -35453,7 +35560,7 @@ lean_object* _init_l_Lean_Parser_Term_funImplicitBinder() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Term_funImplicitBinder___closed__5; +x_1 = l_Lean_Parser_Term_funImplicitBinder___closed__6; return x_1; } } @@ -36276,9 +36383,9 @@ lean_object* _init_l_Lean_Parser_Term_funImplicitBinder_formatter___closed__1() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_explicitBinder_formatter___closed__3; -x_2 = l_Lean_Parser_Term_typeAscription_formatter___closed__2; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); +x_1 = l_Lean_Parser_Term_typeAscription_formatter___closed__2; +x_2 = l_Lean_Parser_Term_implicitBinder_formatter___closed__3; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_orelse_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; @@ -36288,7 +36395,7 @@ lean_object* _init_l_Lean_Parser_Term_funImplicitBinder_formatter___closed__2() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_implicitBinder_formatter___closed__2; +x_1 = l_Lean_Parser_Term_explicitBinder_formatter___closed__3; x_2 = l_Lean_Parser_Term_funImplicitBinder_formatter___closed__1; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -36299,11 +36406,13 @@ return x_3; lean_object* _init_l_Lean_Parser_Term_funImplicitBinder_formatter___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_funImplicitBinder_formatter___closed__2; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_lookahead_formatter), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_implicitBinder_formatter___closed__2; +x_2 = l_Lean_Parser_Term_funImplicitBinder_formatter___closed__2; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; } } lean_object* _init_l_Lean_Parser_Term_funImplicitBinder_formatter___closed__4() { @@ -36311,7 +36420,7 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Parser_Term_funImplicitBinder_formatter___closed__3; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_try_formatter), 6, 1); +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_lookahead_formatter___boxed), 5, 1); lean_closure_set(x_2, 0, x_1); return x_2; } @@ -36319,6 +36428,16 @@ return x_2; lean_object* _init_l_Lean_Parser_Term_funImplicitBinder_formatter___closed__5() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_funImplicitBinder_formatter___closed__4; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_try_formatter), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_funImplicitBinder_formatter___closed__6() { +_start: +{ uint8_t x_1; lean_object* x_2; lean_object* x_3; x_1 = 0; x_2 = lean_box(x_1); @@ -36331,8 +36450,8 @@ lean_object* l_Lean_Parser_Term_funImplicitBinder_formatter(lean_object* x_1, le _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Parser_Term_funImplicitBinder_formatter___closed__4; -x_7 = l_Lean_Parser_Term_funImplicitBinder_formatter___closed__5; +x_6 = l_Lean_Parser_Term_funImplicitBinder_formatter___closed__5; +x_7 = l_Lean_Parser_Term_funImplicitBinder_formatter___closed__6; x_8 = l_Lean_PrettyPrinter_Formatter_andthen_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -36522,20 +36641,19 @@ return x_5; lean_object* _init_l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_explicitBinder_parenthesizer___closed__3; -x_2 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer), 7, 2); +lean_closure_set(x_2, 0, x_1); +lean_closure_set(x_2, 1, x_1); +return x_2; } } lean_object* _init_l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; +x_1 = l_Lean_Parser_Term_explicitBinder_parenthesizer___closed__3; x_2 = l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__1; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -36546,11 +36664,13 @@ return x_3; lean_object* _init_l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__2; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_lookahead_parenthesizer), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; +x_2 = l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__2; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; } } lean_object* _init_l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__4() { @@ -36558,7 +36678,7 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__3; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_try_parenthesizer), 6, 1); +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_lookahead_parenthesizer), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; } @@ -36566,6 +36686,16 @@ return x_2; lean_object* _init_l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__5() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__4; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_try_parenthesizer), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__6() { +_start: +{ uint8_t x_1; lean_object* x_2; lean_object* x_3; x_1 = 0; x_2 = lean_box(x_1); @@ -36578,8 +36708,8 @@ lean_object* l_Lean_Parser_Term_funImplicitBinder_parenthesizer(lean_object* x_1 _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__4; -x_7 = l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__5; +x_6 = l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__5; +x_7 = l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__6; x_8 = l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -55821,38 +55951,6 @@ x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); return x_4; } } -lean_object* _init_l_Lean_Parser_Term_bracketedDoSeq___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_implicitBinder___closed__4; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_bracketedDoSeq___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_bracketedDoSeq___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_bracketedDoSeq___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_bracketedDoSeq___elambda__1(lean_object* x_1, lean_object* x_2) { _start: { @@ -55903,7 +56001,7 @@ lean_dec(x_48); if (x_50 == 0) { lean_object* x_51; lean_object* x_52; -x_51 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_51 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_52 = l_Lean_Parser_ParserState_mkErrorsAt(x_44, x_51, x_43); x_11 = x_52; goto block_42; @@ -55919,7 +56017,7 @@ else { lean_object* x_53; lean_object* x_54; lean_dec(x_47); -x_53 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_53 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_54 = l_Lean_Parser_ParserState_mkErrorsAt(x_44, x_53, x_43); x_11 = x_54; goto block_42; @@ -55929,7 +56027,7 @@ else { lean_object* x_55; lean_object* x_56; lean_dec(x_45); -x_55 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_55 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_56 = l_Lean_Parser_ParserState_mkErrorsAt(x_44, x_55, x_43); x_11 = x_56; goto block_42; @@ -55974,7 +56072,7 @@ lean_dec(x_21); if (x_23 == 0) { lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_24 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_25 = l_Lean_Parser_ParserState_mkErrorsAt(x_17, x_24, x_16); x_26 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; x_27 = l_Lean_Parser_ParserState_mkNode(x_25, x_26, x_10); @@ -55993,7 +56091,7 @@ else { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_dec(x_20); -x_30 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_30 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_31 = l_Lean_Parser_ParserState_mkErrorsAt(x_17, x_30, x_16); x_32 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; x_33 = l_Lean_Parser_ParserState_mkNode(x_31, x_32, x_10); @@ -56004,7 +56102,7 @@ else { lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_dec(x_18); -x_34 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_34 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_35 = l_Lean_Parser_ParserState_mkErrorsAt(x_17, x_34, x_16); x_36 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; x_37 = l_Lean_Parser_ParserState_mkNode(x_35, x_36, x_10); @@ -56119,7 +56217,7 @@ lean_dec(x_114); if (x_116 == 0) { lean_object* x_117; lean_object* x_118; -x_117 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_117 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_118 = l_Lean_Parser_ParserState_mkErrorsAt(x_110, x_117, x_109); x_71 = x_118; goto block_108; @@ -56135,7 +56233,7 @@ else { lean_object* x_119; lean_object* x_120; lean_dec(x_113); -x_119 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_119 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_120 = l_Lean_Parser_ParserState_mkErrorsAt(x_110, x_119, x_109); x_71 = x_120; goto block_108; @@ -56145,7 +56243,7 @@ else { lean_object* x_121; lean_object* x_122; lean_dec(x_111); -x_121 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; +x_121 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7; x_122 = l_Lean_Parser_ParserState_mkErrorsAt(x_110, x_121, x_109); x_71 = x_122; goto block_108; @@ -56190,7 +56288,7 @@ lean_dec(x_81); if (x_83 == 0) { lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_84 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_84 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_85 = l_Lean_Parser_ParserState_mkErrorsAt(x_77, x_84, x_76); x_86 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; x_87 = l_Lean_Parser_ParserState_mkNode(x_85, x_86, x_70); @@ -56213,7 +56311,7 @@ else { lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_dec(x_80); -x_92 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_92 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_93 = l_Lean_Parser_ParserState_mkErrorsAt(x_77, x_92, x_76); x_94 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; x_95 = l_Lean_Parser_ParserState_mkNode(x_93, x_94, x_70); @@ -56226,7 +56324,7 @@ else { lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_dec(x_78); -x_97 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_97 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_98 = l_Lean_Parser_ParserState_mkErrorsAt(x_77, x_97, x_76); x_99 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; x_100 = l_Lean_Parser_ParserState_mkNode(x_98, x_99, x_70); @@ -65189,7 +65287,7 @@ lean_dec(x_23); if (x_25 == 0) { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_26 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_26 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_27 = l_Lean_Parser_ParserState_mkErrorsAt(x_19, x_26, x_18); x_28 = l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; x_29 = l_Lean_Parser_ParserState_mkTrailingNode(x_27, x_28, x_12); @@ -65210,7 +65308,7 @@ else { lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_dec(x_22); -x_32 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_32 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_33 = l_Lean_Parser_ParserState_mkErrorsAt(x_19, x_32, x_18); x_34 = l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; x_35 = l_Lean_Parser_ParserState_mkTrailingNode(x_33, x_34, x_12); @@ -65222,7 +65320,7 @@ else { lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_dec(x_20); -x_36 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7; +x_36 = l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4; x_37 = l_Lean_Parser_ParserState_mkErrorsAt(x_19, x_36, x_18); x_38 = l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; x_39 = l_Lean_Parser_ParserState_mkTrailingNode(x_37, x_38, x_12); @@ -75982,916 +76080,6 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -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_dec(x_4); -x_6 = lean_unsigned_to_nat(1024u); -x_7 = l_Lean_Parser_checkPrecFn(x_6, x_1, x_2); -x_8 = lean_ctor_get(x_7, 3); -lean_inc(x_8); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_9 = lean_ctor_get(x_7, 0); -lean_inc(x_9); -x_10 = lean_array_get_size(x_9); -lean_dec(x_9); -x_42 = lean_ctor_get(x_7, 1); -lean_inc(x_42); -lean_inc(x_1); -x_43 = l_Lean_Parser_tokenFn(x_1, x_7); -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; -x_45 = lean_ctor_get(x_43, 0); -lean_inc(x_45); -x_46 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_45); -lean_dec(x_45); -if (lean_obj_tag(x_46) == 2) -{ -lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_47 = lean_ctor_get(x_46, 1); -lean_inc(x_47); -lean_dec(x_46); -x_48 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6; -x_49 = lean_string_dec_eq(x_47, x_48); -lean_dec(x_47); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; -x_50 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; -x_51 = l_Lean_Parser_ParserState_mkErrorsAt(x_43, x_50, x_42); -x_11 = x_51; -goto block_41; -} -else -{ -lean_dec(x_42); -x_11 = x_43; -goto block_41; -} -} -else -{ -lean_object* x_52; lean_object* x_53; -lean_dec(x_46); -x_52 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; -x_53 = l_Lean_Parser_ParserState_mkErrorsAt(x_43, x_52, x_42); -x_11 = x_53; -goto block_41; -} -} -else -{ -lean_object* x_54; lean_object* x_55; -lean_dec(x_44); -x_54 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; -x_55 = l_Lean_Parser_ParserState_mkErrorsAt(x_43, x_54, x_42); -x_11 = x_55; -goto block_41; -} -block_41: -{ -lean_object* x_12; -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; -lean_inc(x_1); -x_13 = l_Lean_Parser_Tactic_seq___elambda__1(x_1, x_11); -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; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -x_16 = l_Lean_Parser_tokenFn(x_1, x_13); -x_17 = lean_ctor_get(x_16, 3); -lean_inc(x_17); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -x_19 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_18); -lean_dec(x_18); -if (lean_obj_tag(x_19) == 2) -{ -lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8; -x_22 = lean_string_dec_eq(x_20, x_21); -lean_dec(x_20); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; -x_24 = l_Lean_Parser_ParserState_mkErrorsAt(x_16, x_23, x_15); -x_25 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_26 = l_Lean_Parser_ParserState_mkNode(x_24, x_25, x_10); -return x_26; -} -else -{ -lean_object* x_27; lean_object* x_28; -lean_dec(x_15); -x_27 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_28 = l_Lean_Parser_ParserState_mkNode(x_16, x_27, x_10); -return x_28; -} -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -lean_dec(x_19); -x_29 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; -x_30 = l_Lean_Parser_ParserState_mkErrorsAt(x_16, x_29, x_15); -x_31 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_32 = l_Lean_Parser_ParserState_mkNode(x_30, x_31, x_10); -return x_32; -} -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_17); -x_33 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; -x_34 = l_Lean_Parser_ParserState_mkErrorsAt(x_16, x_33, x_15); -x_35 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_36 = l_Lean_Parser_ParserState_mkNode(x_34, x_35, x_10); -return x_36; -} -} -else -{ -lean_object* x_37; lean_object* x_38; -lean_dec(x_14); -lean_dec(x_1); -x_37 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_38 = l_Lean_Parser_ParserState_mkNode(x_13, x_37, x_10); -return x_38; -} -} -else -{ -lean_object* x_39; lean_object* x_40; -lean_dec(x_12); -lean_dec(x_1); -x_39 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_40 = l_Lean_Parser_ParserState_mkNode(x_11, x_39, x_10); -return x_40; -} -} -} -else -{ -lean_dec(x_8); -lean_dec(x_1); -return x_7; -} -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_56 = lean_ctor_get(x_2, 0); -lean_inc(x_56); -x_57 = lean_array_get_size(x_56); -lean_dec(x_56); -x_58 = lean_ctor_get(x_2, 1); -lean_inc(x_58); -lean_inc(x_1); -x_59 = lean_apply_2(x_4, x_1, x_2); -x_60 = lean_ctor_get(x_59, 3); -lean_inc(x_60); -if (lean_obj_tag(x_60) == 0) -{ -lean_dec(x_58); -lean_dec(x_57); -lean_dec(x_1); -return x_59; -} -else -{ -lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -lean_dec(x_60); -x_62 = lean_ctor_get(x_59, 1); -lean_inc(x_62); -x_63 = lean_nat_dec_eq(x_62, x_58); -lean_dec(x_62); -if (x_63 == 0) -{ -lean_dec(x_61); -lean_dec(x_58); -lean_dec(x_57); -lean_dec(x_1); -return x_59; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_inc(x_58); -x_64 = l_Lean_Parser_ParserState_restore(x_59, x_57, x_58); -lean_dec(x_57); -x_65 = lean_unsigned_to_nat(1024u); -x_66 = l_Lean_Parser_checkPrecFn(x_65, 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; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_68 = lean_ctor_get(x_66, 0); -lean_inc(x_68); -x_69 = lean_array_get_size(x_68); -lean_dec(x_68); -x_107 = lean_ctor_get(x_66, 1); -lean_inc(x_107); -lean_inc(x_1); -x_108 = l_Lean_Parser_tokenFn(x_1, x_66); -x_109 = lean_ctor_get(x_108, 3); -lean_inc(x_109); -if (lean_obj_tag(x_109) == 0) -{ -lean_object* x_110; lean_object* x_111; -x_110 = lean_ctor_get(x_108, 0); -lean_inc(x_110); -x_111 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_110); -lean_dec(x_110); -if (lean_obj_tag(x_111) == 2) -{ -lean_object* x_112; lean_object* x_113; uint8_t x_114; -x_112 = lean_ctor_get(x_111, 1); -lean_inc(x_112); -lean_dec(x_111); -x_113 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6; -x_114 = lean_string_dec_eq(x_112, x_113); -lean_dec(x_112); -if (x_114 == 0) -{ -lean_object* x_115; lean_object* x_116; -x_115 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; -x_116 = l_Lean_Parser_ParserState_mkErrorsAt(x_108, x_115, x_107); -x_70 = x_116; -goto block_106; -} -else -{ -lean_dec(x_107); -x_70 = x_108; -goto block_106; -} -} -else -{ -lean_object* x_117; lean_object* x_118; -lean_dec(x_111); -x_117 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; -x_118 = l_Lean_Parser_ParserState_mkErrorsAt(x_108, x_117, x_107); -x_70 = x_118; -goto block_106; -} -} -else -{ -lean_object* x_119; lean_object* x_120; -lean_dec(x_109); -x_119 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__14; -x_120 = l_Lean_Parser_ParserState_mkErrorsAt(x_108, x_119, x_107); -x_70 = x_120; -goto block_106; -} -block_106: -{ -lean_object* x_71; -x_71 = lean_ctor_get(x_70, 3); -lean_inc(x_71); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; lean_object* x_73; -lean_inc(x_1); -x_72 = l_Lean_Parser_Tactic_seq___elambda__1(x_1, x_70); -x_73 = lean_ctor_get(x_72, 3); -lean_inc(x_73); -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_72, 1); -lean_inc(x_74); -x_75 = l_Lean_Parser_tokenFn(x_1, x_72); -x_76 = lean_ctor_get(x_75, 3); -lean_inc(x_76); -if (lean_obj_tag(x_76) == 0) -{ -lean_object* x_77; lean_object* x_78; -x_77 = lean_ctor_get(x_75, 0); -lean_inc(x_77); -x_78 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_77); -lean_dec(x_77); -if (lean_obj_tag(x_78) == 2) -{ -lean_object* x_79; lean_object* x_80; uint8_t x_81; -x_79 = lean_ctor_get(x_78, 1); -lean_inc(x_79); -lean_dec(x_78); -x_80 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8; -x_81 = lean_string_dec_eq(x_79, x_80); -lean_dec(x_79); -if (x_81 == 0) -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_82 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; -x_83 = l_Lean_Parser_ParserState_mkErrorsAt(x_75, x_82, x_74); -x_84 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_85 = l_Lean_Parser_ParserState_mkNode(x_83, x_84, x_69); -x_86 = l_Lean_Parser_mergeOrElseErrors(x_85, x_61, x_58); -lean_dec(x_58); -return x_86; -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_74); -x_87 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_88 = l_Lean_Parser_ParserState_mkNode(x_75, x_87, x_69); -x_89 = l_Lean_Parser_mergeOrElseErrors(x_88, x_61, x_58); -lean_dec(x_58); -return x_89; -} -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_78); -x_90 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; -x_91 = l_Lean_Parser_ParserState_mkErrorsAt(x_75, x_90, x_74); -x_92 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_93 = l_Lean_Parser_ParserState_mkNode(x_91, x_92, x_69); -x_94 = l_Lean_Parser_mergeOrElseErrors(x_93, x_61, x_58); -lean_dec(x_58); -return x_94; -} -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -lean_dec(x_76); -x_95 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__11; -x_96 = l_Lean_Parser_ParserState_mkErrorsAt(x_75, x_95, x_74); -x_97 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_98 = l_Lean_Parser_ParserState_mkNode(x_96, x_97, x_69); -x_99 = l_Lean_Parser_mergeOrElseErrors(x_98, x_61, x_58); -lean_dec(x_58); -return x_99; -} -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_73); -lean_dec(x_1); -x_100 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_101 = l_Lean_Parser_ParserState_mkNode(x_72, x_100, x_69); -x_102 = l_Lean_Parser_mergeOrElseErrors(x_101, x_61, x_58); -lean_dec(x_58); -return x_102; -} -} -else -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; -lean_dec(x_71); -lean_dec(x_1); -x_103 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_104 = l_Lean_Parser_ParserState_mkNode(x_70, x_103, x_69); -x_105 = l_Lean_Parser_mergeOrElseErrors(x_104, x_61, x_58); -lean_dec(x_58); -return x_105; -} -} -} -else -{ -lean_object* x_121; -lean_dec(x_67); -lean_dec(x_1); -x_121 = l_Lean_Parser_mergeOrElseErrors(x_66, x_61, x_58); -lean_dec(x_58); -return x_121; -} -} -} -} -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__6; -x_2 = l_Lean_Parser_symbolInfo(x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__8; -x_2 = l_Lean_Parser_symbolInfo(x_1); -return x_2; -} -} -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; -x_1 = l_Lean_Parser_epsilonInfo; -x_2 = l_Lean_Parser_Term_tacticBlock___closed__5; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock___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_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__6; -x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); -return x_4; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock___closed__8() { -_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__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_tacticBlock___closed__7; -x_2 = l_Lean_Parser_Term_tacticBlock___closed__8; -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__9; -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_Tactic_seq_formatter___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_nonEmptySeq_formatter___closed__1; -x_2 = l_Lean_Parser_Term_have_formatter___closed__3; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_sepBy_formatter), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* l_Lean_Parser_Tactic_seq_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___lambda__1___closed__5; -x_7 = l_Lean_Parser_Tactic_seq_formatter___closed__1; -x_8 = l_Lean_PrettyPrinter_Formatter_node_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); -return x_8; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock_formatter___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__1; -x_2 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__3; -x_3 = 1; -x_4 = lean_box(x_3); -x_5 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_formatter___boxed), 8, 3); -lean_closure_set(x_5, 0, x_1); -lean_closure_set(x_5, 1, x_2); -lean_closure_set(x_5, 2, x_4); -return x_5; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock_formatter___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__5; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_symbol_formatter___boxed), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock_formatter___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_symbol_formatter___boxed), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock_formatter___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_seq_formatter), 5, 0); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock_formatter___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_tacticBlock_formatter___closed__4; -x_2 = l_Lean_Parser_Term_tacticBlock_formatter___closed__3; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock_formatter___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_tacticBlock_formatter___closed__2; -x_2 = l_Lean_Parser_Term_tacticBlock_formatter___closed__5; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock_formatter___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_tacticBlock___elambda__1___closed__2; -x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Term_tacticBlock_formatter___closed__6; -x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); -lean_closure_set(x_4, 0, x_1); -lean_closure_set(x_4, 1, x_2); -lean_closure_set(x_4, 2, x_3); -return x_4; -} -} -lean_object* l_Lean_Parser_Term_tacticBlock_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Parser_Term_tacticBlock_formatter___closed__1; -x_7 = l_Lean_Parser_Term_tacticBlock_formatter___closed__7; -x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); -return x_8; -} -} -lean_object* _init_l___regBuiltin_Lean_Parser_Term_tacticBlock_formatter___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_tacticBlock_formatter), 5, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Parser_Term_tacticBlock_formatter(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_PrettyPrinter_formatterAttribute; -x_3 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_4 = l___regBuiltin_Lean_Parser_Term_tacticBlock_formatter___closed__1; -x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); -return x_5; -} -} -lean_object* _init_l_Lean_Parser_Tactic_seq_parenthesizer___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_nonEmptySeq_parenthesizer___closed__1; -x_2 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_sepBy_parenthesizer), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* l_Lean_Parser_Tactic_seq_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___lambda__1___closed__5; -x_7 = l_Lean_Parser_Tactic_seq_parenthesizer___closed__1; -x_8 = l_Lean_PrettyPrinter_Parenthesizer_node_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); -return x_8; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__1() { -_start: -{ -lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__3; -x_2 = 1; -x_3 = lean_box(x_2); -x_4 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_parenthesizer___rarg___boxed), 7, 2); -lean_closure_set(x_4, 0, x_1); -lean_closure_set(x_4, 1, x_3); -return x_4; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_seq_parenthesizer), 5, 0); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__2; -x_2 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; -x_2 = l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__3; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_tacticBlock_parenthesizer___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_tacticBlock___elambda__1___closed__2; -x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__4; -x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); -lean_closure_set(x_4, 0, x_1); -lean_closure_set(x_4, 1, x_2); -lean_closure_set(x_4, 2, x_3); -return x_4; -} -} -lean_object* l_Lean_Parser_Term_tacticBlock_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__5; -x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); -return x_8; -} -} -lean_object* _init_l___regBuiltin_Lean_Parser_Term_tacticBlock_parenthesizer___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_tacticBlock_parenthesizer), 5, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Parser_Term_tacticBlock_parenthesizer(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_PrettyPrinter_parenthesizerAttribute; -x_3 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_4 = l___regBuiltin_Lean_Parser_Term_tacticBlock_parenthesizer___closed__1; -x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); -return x_5; -} -} lean_object* _init_l_Lean_Parser_Term_byTactic___elambda__1___closed__1() { _start: { @@ -82476,6 +81664,12 @@ l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__3 = _init_l_Lean_Par lean_mark_persistent(l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__3); l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4 = _init_l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4(); lean_mark_persistent(l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__4); +l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__5 = _init_l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__5); +l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__6 = _init_l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__6); +l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7 = _init_l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7(); +lean_mark_persistent(l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__7); l_Lean_Parser_Term_funImplicitBinder___closed__1 = _init_l_Lean_Parser_Term_funImplicitBinder___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_funImplicitBinder___closed__1); l_Lean_Parser_Term_funImplicitBinder___closed__2 = _init_l_Lean_Parser_Term_funImplicitBinder___closed__2(); @@ -82486,6 +81680,8 @@ l_Lean_Parser_Term_funImplicitBinder___closed__4 = _init_l_Lean_Parser_Term_funI lean_mark_persistent(l_Lean_Parser_Term_funImplicitBinder___closed__4); l_Lean_Parser_Term_funImplicitBinder___closed__5 = _init_l_Lean_Parser_Term_funImplicitBinder___closed__5(); lean_mark_persistent(l_Lean_Parser_Term_funImplicitBinder___closed__5); +l_Lean_Parser_Term_funImplicitBinder___closed__6 = _init_l_Lean_Parser_Term_funImplicitBinder___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_funImplicitBinder___closed__6); l_Lean_Parser_Term_funImplicitBinder = _init_l_Lean_Parser_Term_funImplicitBinder(); lean_mark_persistent(l_Lean_Parser_Term_funImplicitBinder); l_Lean_Parser_Term_funBinder___closed__1 = _init_l_Lean_Parser_Term_funBinder___closed__1(); @@ -82557,6 +81753,8 @@ l_Lean_Parser_Term_funImplicitBinder_formatter___closed__4 = _init_l_Lean_Parser lean_mark_persistent(l_Lean_Parser_Term_funImplicitBinder_formatter___closed__4); l_Lean_Parser_Term_funImplicitBinder_formatter___closed__5 = _init_l_Lean_Parser_Term_funImplicitBinder_formatter___closed__5(); lean_mark_persistent(l_Lean_Parser_Term_funImplicitBinder_formatter___closed__5); +l_Lean_Parser_Term_funImplicitBinder_formatter___closed__6 = _init_l_Lean_Parser_Term_funImplicitBinder_formatter___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_funImplicitBinder_formatter___closed__6); l_Lean_Parser_Term_funBinder_formatter___closed__1 = _init_l_Lean_Parser_Term_funBinder_formatter___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_funBinder_formatter___closed__1); l_Lean_Parser_Term_funBinder_formatter___closed__2 = _init_l_Lean_Parser_Term_funBinder_formatter___closed__2(); @@ -82594,6 +81792,8 @@ l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__4 = _init_l_Lean_Pa lean_mark_persistent(l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__4); l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__5 = _init_l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__5(); lean_mark_persistent(l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__5); +l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__6 = _init_l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__6); l_Lean_Parser_Term_funBinder_parenthesizer___closed__1 = _init_l_Lean_Parser_Term_funBinder_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_funBinder_parenthesizer___closed__1); l_Lean_Parser_Term_funBinder_parenthesizer___closed__2 = _init_l_Lean_Parser_Term_funBinder_parenthesizer___closed__2(); @@ -83951,12 +83151,6 @@ l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__3 = _init_l_Lean_Parser lean_mark_persistent(l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__3); l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__4 = _init_l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__4(); lean_mark_persistent(l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__4); -l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__5 = _init_l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__5(); -lean_mark_persistent(l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__5); -l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__6 = _init_l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__6(); -lean_mark_persistent(l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__6); -l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7 = _init_l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7(); -lean_mark_persistent(l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__7); l_Lean_Parser_Term_bracketedDoSeq___closed__1 = _init_l_Lean_Parser_Term_bracketedDoSeq___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_bracketedDoSeq___closed__1); l_Lean_Parser_Term_bracketedDoSeq___closed__2 = _init_l_Lean_Parser_Term_bracketedDoSeq___closed__2(); @@ -86359,95 +85553,6 @@ lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_map_parenthesizer___closed_ res = l___regBuiltin_Lean_Parser_Term_map_parenthesizer(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___closed__9 = _init_l_Lean_Parser_Term_tacticBlock___closed__9(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock___closed__9); -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_Tactic_seq_formatter___closed__1 = _init_l_Lean_Parser_Tactic_seq_formatter___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_seq_formatter___closed__1); -l_Lean_Parser_Term_tacticBlock_formatter___closed__1 = _init_l_Lean_Parser_Term_tacticBlock_formatter___closed__1(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock_formatter___closed__1); -l_Lean_Parser_Term_tacticBlock_formatter___closed__2 = _init_l_Lean_Parser_Term_tacticBlock_formatter___closed__2(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock_formatter___closed__2); -l_Lean_Parser_Term_tacticBlock_formatter___closed__3 = _init_l_Lean_Parser_Term_tacticBlock_formatter___closed__3(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock_formatter___closed__3); -l_Lean_Parser_Term_tacticBlock_formatter___closed__4 = _init_l_Lean_Parser_Term_tacticBlock_formatter___closed__4(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock_formatter___closed__4); -l_Lean_Parser_Term_tacticBlock_formatter___closed__5 = _init_l_Lean_Parser_Term_tacticBlock_formatter___closed__5(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock_formatter___closed__5); -l_Lean_Parser_Term_tacticBlock_formatter___closed__6 = _init_l_Lean_Parser_Term_tacticBlock_formatter___closed__6(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock_formatter___closed__6); -l_Lean_Parser_Term_tacticBlock_formatter___closed__7 = _init_l_Lean_Parser_Term_tacticBlock_formatter___closed__7(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock_formatter___closed__7); -l___regBuiltin_Lean_Parser_Term_tacticBlock_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_tacticBlock_formatter___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_tacticBlock_formatter___closed__1); -res = l___regBuiltin_Lean_Parser_Term_tacticBlock_formatter(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Parser_Tactic_seq_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_seq_parenthesizer___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_seq_parenthesizer___closed__1); -l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__1 = _init_l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__1(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__1); -l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__2 = _init_l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__2(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__2); -l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__3 = _init_l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__3(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__3); -l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__4 = _init_l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__4(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__4); -l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__5 = _init_l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__5(); -lean_mark_persistent(l_Lean_Parser_Term_tacticBlock_parenthesizer___closed__5); -l___regBuiltin_Lean_Parser_Term_tacticBlock_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_tacticBlock_parenthesizer___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_tacticBlock_parenthesizer___closed__1); -res = l___regBuiltin_Lean_Parser_Term_tacticBlock_parenthesizer(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(); diff --git a/stage0/stdlib/Lean/PrettyPrinter/Formatter.c b/stage0/stdlib/Lean/PrettyPrinter/Formatter.c index cf43530a65..d7b0a05d81 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Formatter.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Formatter.c @@ -87,7 +87,7 @@ lean_object* l_List_range(lean_object*); lean_object* l_Lean_Parser_tokenFn(lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___lambda__1(uint8_t, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_categoryParser_formatter___closed__1; -lean_object* l_Lean_PrettyPrinter_Formatter_lookahead_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PrettyPrinter_Formatter_lookahead_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_unicodeSymbol_formatter___closed__3; extern lean_object* l_String_splitAux___main___closed__1; lean_object* l_Lean_PrettyPrinter_Formatter_checkTailWs_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -177,6 +177,7 @@ extern lean_object* l_Lean_Parser_termParser___closed__2; lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_FormatterM_monadTraverser___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_charLitKind; +lean_object* l_Lean_PrettyPrinter_Formatter_lookahead_formatter___rarg(lean_object*); lean_object* l_Lean_PrettyPrinter_combinatorFormatterAttribute; lean_object* l_Lean_ParserCompiler_registerCombinatorAttribute(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_symbol_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -192,6 +193,7 @@ lean_object* l_Lean_PrettyPrinter_Formatter_quotedSymbol_formatter___closed__1; lean_object* l_Lean_Syntax_MonadTraverser_goUp___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_attrParamSyntaxToIdentifier(lean_object*); uint8_t l_Lean_Syntax_structEq___main(lean_object*, lean_object*); +lean_object* l_Lean_PrettyPrinter_Formatter_lookahead_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_unquotedSymbol_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_checkKind___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_mkAntiquot_formatter_x27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3267,12 +3269,36 @@ x_7 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_6); return x_7; } } -lean_object* l_Lean_PrettyPrinter_Formatter_lookahead_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_PrettyPrinter_Formatter_lookahead_formatter___rarg(lean_object* x_1) { _start: { -lean_object* x_7; -x_7 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_6); -return x_7; +lean_object* x_2; lean_object* x_3; +x_2 = lean_box(0); +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* l_Lean_PrettyPrinter_Formatter_lookahead_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_lookahead_formatter___rarg), 1, 0); +return x_6; +} +} +lean_object* l_Lean_PrettyPrinter_Formatter_lookahead_formatter___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_PrettyPrinter_Formatter_lookahead_formatter(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; } } lean_object* l_Lean_PrettyPrinter_Formatter_andthen_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { diff --git a/stage0/stdlib/Lean/PrettyPrinter/Meta.c b/stage0/stdlib/Lean/PrettyPrinter/Meta.c index 6f9926c629..89a850ae54 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Meta.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Meta.c @@ -18,6 +18,7 @@ lean_object* l_Lean_PrettyPrinter_Parenthesizer_interpretParserDescr___main___el lean_object* l_Lean_PrettyPrinter_Parenthesizer_interpretParserDescr___main___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___closed__3; lean_object* l_Lean_PrettyPrinter_Parenthesizer_categoryParser_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__4___rarg(lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_ctx(lean_object*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_interpretParserDescr___main___elambda__16___closed__3; extern lean_object* l_Lean_identKind___closed__1; @@ -77,6 +78,7 @@ extern lean_object* l_Lean_numLitKind___closed__1; extern lean_object* l_Lean_strLitKind___closed__1; lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___closed__6; lean_object* l_Lean_PrettyPrinter_Formatter_node_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_strLitKind___closed__2; lean_object* l_Lean_PrettyPrinter_Parenthesizer_charLitNoAntiquot_parenthesizer___boxed(lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___closed__4; @@ -87,7 +89,7 @@ lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___closed lean_object* l_Lean_PrettyPrinter_Parenthesizer_nonReservedSymbol_parenthesizer___boxed(lean_object*); extern lean_object* l_Lean_PrettyPrinter_combinatorFormatterAttribute; lean_object* l_Lean_PrettyPrinter_Formatter_symbol_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind___closed__2; lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_formatterAttribute; @@ -1589,12 +1591,23 @@ x_7 = l_Lean_PrettyPrinter_Formatter_concatArgs(x_1, x_2, x_3, x_4, x_5, x_6); return x_7; } } -lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__4___rarg(lean_object* x_1) { _start: { -lean_object* x_7; -x_7 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_6); -return x_7; +lean_object* x_2; lean_object* x_3; +x_2 = lean_box(0); +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* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__4___rarg), 1, 0); +return x_6; } } lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { @@ -2179,7 +2192,7 @@ if (x_62 == 0) { lean_object* x_63; lean_object* x_64; x_63 = lean_ctor_get(x_61, 0); -x_64 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__4), 6, 1); +x_64 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__4___boxed), 5, 1); lean_closure_set(x_64, 0, x_63); lean_ctor_set(x_61, 0, x_64); return x_61; @@ -2192,7 +2205,7 @@ x_66 = lean_ctor_get(x_61, 1); lean_inc(x_66); lean_inc(x_65); lean_dec(x_61); -x_67 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__4), 6, 1); +x_67 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__4___boxed), 5, 1); lean_closure_set(x_67, 0, x_65); x_68 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_68, 0, x_67); @@ -2848,6 +2861,19 @@ return x_204; } } } +lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__4(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___main___elambda__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: {