From 51a53cdc19d54ee1c9257a1043fc265faa2fee0c Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Mon, 14 Sep 2020 16:13:31 -0700 Subject: [PATCH] chore: update stage0 --- stage0/src/Lean/Elab/BuiltinNotation.lean | 17 +- stage0/src/Lean/Parser/Tactic.lean | 12 +- stage0/stdlib/Lean/Elab/BuiltinNotation.c | 1233 ++++++++++++++------- stage0/stdlib/Lean/Parser/Tactic.c | 888 ++++++++------- 4 files changed, 1330 insertions(+), 820 deletions(-) diff --git a/stage0/src/Lean/Elab/BuiltinNotation.lean b/stage0/src/Lean/Elab/BuiltinNotation.lean index 89c64c88ef..c28f34149c 100644 --- a/stage0/src/Lean/Elab/BuiltinNotation.lean +++ b/stage0/src/Lean/Elab/BuiltinNotation.lean @@ -55,16 +55,19 @@ fun stx expectedType? => match_syntax stx with @[builtinMacro Lean.Parser.Term.show] def expandShow : Macro := fun stx => match_syntax stx with -| `(show $type from $val) => let thisId := mkIdentFrom stx `this; `(let! $thisId : $type := $val; $thisId) -| _ => Macro.throwUnsupported +| `(show $type from $val) => let thisId := mkIdentFrom stx `this; `(let! $thisId : $type := $val; $thisId) +| `(show $type by $tac:tacticSeq) => `(show $type from by $tac:tacticSeq) +| _ => Macro.throwUnsupported @[builtinMacro Lean.Parser.Term.have] def expandHave : Macro := fun stx => match_syntax stx with -| `(have $type from $val; $body) => let thisId := mkIdentFrom stx `this; `(let! $thisId : $type := $val; $body) -| `(have $type := $val; $body) => let thisId := mkIdentFrom stx `this; `(let! $thisId : $type := $val; $body) -| `(have $x : $type from $val; $body) => `(let! $x:ident : $type := $val; $body) -| `(have $x : $type := $val; $body) => `(let! $x:ident : $type := $val; $body) -| _ => Macro.throwUnsupported +| `(have $type from $val; $body) => let thisId := mkIdentFrom stx `this; `(let! $thisId : $type := $val; $body) +| `(have $type by $tac:tacticSeq; $body) => `(have $type from by $tac:tacticSeq; $body) +| `(have $type := $val; $body) => let thisId := mkIdentFrom stx `this; `(let! $thisId : $type := $val; $body) +| `(have $x : $type from $val; $body) => `(let! $x:ident : $type := $val; $body) +| `(have $x : $type by $tac:tacticSeq; $body) => `(have $x : $type from by $tac:tacticSeq; $body) +| `(have $x : $type := $val; $body) => `(let! $x:ident : $type := $val; $body) +| _ => Macro.throwUnsupported @[builtinMacro Lean.Parser.Term.where] def expandWhere : Macro := fun stx => match_syntax stx with diff --git a/stage0/src/Lean/Parser/Tactic.lean b/stage0/src/Lean/Parser/Tactic.lean index de65e121b5..17fb7fa599 100644 --- a/stage0/src/Lean/Parser/Tactic.lean +++ b/stage0/src/Lean/Parser/Tactic.lean @@ -38,19 +38,19 @@ def ident' : Parser := ident <|> underscore @[builtinTacticParser] def «exact» := parser! nonReservedSymbol "exact " >> termParser @[builtinTacticParser] def «refine» := parser! nonReservedSymbol "refine " >> termParser @[builtinTacticParser] def «refine!» := parser! nonReservedSymbol "refine! " >> termParser -@[builtinTacticParser] def «case» := parser! nonReservedSymbol "case " >> ident >> tacticParser -@[builtinTacticParser] def «allGoals» := parser! nonReservedSymbol "allGoals " >> tacticParser +@[builtinTacticParser] def «case» := parser! nonReservedSymbol "case " >> ident >> darrow >> indentedNonEmptySeq +@[builtinTacticParser] def «allGoals» := parser! nonReservedSymbol "allGoals " >> indentedNonEmptySeq @[builtinTacticParser] def «skip» := parser! nonReservedSymbol "skip" @[builtinTacticParser] def «traceState» := parser! nonReservedSymbol "traceState" -@[builtinTacticParser] def «failIfSuccess» := parser! nonReservedSymbol "failIfSuccess " >> tacticParser +@[builtinTacticParser] def «failIfSuccess» := parser! nonReservedSymbol "failIfSuccess " >> indentedNonEmptySeq @[builtinTacticParser] def «generalize» := parser! nonReservedSymbol "generalize " >> optional (try (ident >> " : ")) >> termParser 51 >> " = " >> ident def location : Parser := "at " >> ("*" <|> (many ident >> optional (unicodeSymbol "⊢" "|-"))) @[builtinTacticParser] def change := parser! nonReservedSymbol "change " >> termParser >> optional location @[builtinTacticParser] def changeWith := parser! nonReservedSymbol "change " >> termParser >> " with " >> termParser >> optional location def majorPremise := parser! optional (try (ident >> " : ")) >> termParser -def holeOrTactic := Term.hole <|> Term.syntheticHole <|> tacticParser -def inductionAlt : Parser := nodeWithAntiquot "inductionAlt" `Lean.Parser.Tactic.inductionAlt $ ident' >> many ident' >> darrow >> holeOrTactic +def altRHS := Term.hole <|> Term.syntheticHole <|> indentedNonEmptySeq +def inductionAlt : Parser := nodeWithAntiquot "inductionAlt" `Lean.Parser.Tactic.inductionAlt $ ident' >> many ident' >> darrow >> altRHS def inductionAlts : Parser := withPosition $ fun pos => "|" >> sepBy1 inductionAlt (checkColGe pos.column "alternatives must be indented" >> "|") def withAlts : Parser := optional (" with " >> inductionAlts) def usingRec : Parser := optional (" using " >> ident) @@ -59,7 +59,7 @@ def generalizingVars := optional (" generalizing " >> many1 ident) @[builtinTacticParser] def «cases» := parser! nonReservedSymbol "cases " >> majorPremise >> withAlts def withIds : Parser := optional (" with " >> many1 ident') -def matchAlt : Parser := parser! sepBy1 termParser ", " >> darrow >> holeOrTactic +def matchAlt : Parser := parser! sepBy1 termParser ", " >> darrow >> altRHS def matchAlts : Parser := group $ withPosition $ fun pos => (optional "| ") >> sepBy1 matchAlt (checkColGe pos.column "alternatives must be indented" >> "|") @[builtinTacticParser] def «match» := parser! nonReservedSymbol "match " >> sepBy1 Term.matchDiscr ", " >> Term.optType >> " with " >> matchAlts @[builtinTacticParser] def «introMatch» := parser! nonReservedSymbol "intro " >> matchAlts diff --git a/stage0/stdlib/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Lean/Elab/BuiltinNotation.c index 3bcbe03daf..9d2861a441 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Lean/Elab/BuiltinNotation.c @@ -46,6 +46,7 @@ lean_object* l_Lean_Elab_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2(lean_ lean_object* l_Lean_Elab_Term_expandAssert___closed__20; lean_object* l_Lean_Elab_Term_expandPrefixOp___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandModN___closed__3; +lean_object* l_Lean_Elab_Term_expandShow___closed__12; lean_object* l_Lean_Elab_Term_expandNot___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__29; lean_object* l_Lean_Elab_Term_expandMod(lean_object*, lean_object*, lean_object*); @@ -86,6 +87,7 @@ lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__1; lean_object* l_Lean_Elab_Term_expandDiv___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_expandBNe___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_expandReturn___closed__3; +extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_11____closed__25; lean_object* l_Lean_Elab_Term_expandOrM___closed__1; lean_object* l_Lean_Elab_Term_expandGT___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_expandLE___closed__1; @@ -209,6 +211,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_expandMod(lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__3; lean_object* l_Lean_Elab_Term_expandBind___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandBOr___closed__3; +lean_object* l_Lean_Elab_Term_expandShow___closed__16; lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_mkDecideProof___rarg___lambda__1___closed__2; lean_object* l_Lean_Elab_Term_expandOrElse___boxed(lean_object*, lean_object*, lean_object*); @@ -276,6 +279,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabNativeDecide___closed__1; lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__6; lean_object* l___regBuiltin_Lean_Elab_Term_expandMod___closed__1; extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_11____closed__24; +extern lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSeq___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_expandReturn___closed__2; extern lean_object* l_Lean_Meta_mkDecideProof___rarg___closed__1; lean_object* l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__4; @@ -348,6 +352,7 @@ lean_object* l_Lean_Elab_Term_elabPanic___closed__5; extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__7; lean_object* l_Lean_Elab_Term_expandEquiv___closed__2; lean_object* l_Lean_Elab_Term_expandShow___closed__5; +lean_object* l_Lean_Elab_Term_expandShow___closed__15; lean_object* l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__1; lean_object* l_Lean_Elab_Term_expandBEq___closed__2; lean_object* l_Lean_Elab_Term_expandEquiv___closed__1; @@ -367,6 +372,7 @@ lean_object* l_Lean_Elab_Term_expandAndThen___closed__4; lean_object* l___regBuiltin_Lean_Elab_Term_expandNe___closed__2; lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_Elab_Term_elabPanic___closed__7; +lean_object* l_Lean_Elab_Term_expandShow___closed__11; extern lean_object* l_Lean_boolToExpr___closed__1; lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__23; lean_object* l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -451,6 +457,7 @@ extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3_ lean_object* l___regBuiltin_Lean_Elab_Term_expandLT___closed__3; extern lean_object* l_Lean_Meta_reduceNat_x3f___closed__8; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); +extern lean_object* l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; lean_object* l_Lean_Elab_Term_expandAppend___closed__2; extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_11____closed__26; lean_object* l___regBuiltin_Lean_Elab_Term_expandAndThen___closed__2; @@ -498,6 +505,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_expandOr___closed__2; lean_object* l___private_Lean_Elab_BuiltinNotation_4__elabClosedTerm___closed__2; lean_object* l_Lean_Elab_Term_expandLE(lean_object*, lean_object*, lean_object*); uint8_t l_List_beq___main___at___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_expandShow___closed__13; extern lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__7; lean_object* l___regBuiltin_Lean_Elab_Term_expandShow(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandSubtype___closed__1; @@ -505,6 +513,7 @@ extern lean_object* l_Lean_Elab_macroAttribute; extern lean_object* l_Lean_Meta_evalNat___main___closed__4; lean_object* l_Lean_Elab_Term_elabParserMacro(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandSubtype___closed__2; +lean_object* l_Lean_Elab_Term_expandHave___closed__7; lean_object* lean_environment_main_module(lean_object*); lean_object* l_Lean_Elab_Term_expandSorry___boxed(lean_object*); lean_object* l_Lean_Elab_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -546,6 +555,7 @@ lean_object* l_Lean_Elab_Term_expandOr___closed__1; lean_object* l_Lean_Elab_Term_expandIf___closed__8; lean_object* l___regBuiltin_Lean_Elab_Term_expandseqRight(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabNativeDecide___closed__3; +lean_object* l_Lean_Elab_Term_expandShow___closed__10; lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__11; lean_object* l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___closed__5; lean_object* l_Lean_Meta_mkAppM___at___private_Lean_Elab_Term_8__isMonad_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -570,10 +580,12 @@ lean_object* l_Lean_Syntax_getPos(lean_object*); lean_object* l_Lean_Elab_Term_expandSorry___rarg___closed__8; lean_object* l___regBuiltin_Lean_Elab_Term_expandSorry___closed__2; lean_object* l_Lean_Elab_Term_expandNe___closed__2; +lean_object* l_Lean_Elab_Term_expandShow___closed__9; lean_object* l_Lean_Elab_Term_expandAssert___closed__5; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_expandEq(lean_object*); +lean_object* l_Lean_Elab_Term_expandHave___closed__5; lean_object* l_Lean_Elab_Term_elabParserMacro___closed__1; extern lean_object* l_Lean_Meta_mkSorry___rarg___lambda__1___closed__4; lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__4; @@ -702,6 +714,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_expandLT___closed__1; lean_object* l_Lean_Elab_Term_expandAssert___closed__8; lean_object* l_Lean_Elab_Term_expandUnreachable___rarg___closed__5; +lean_object* l_Lean_Elab_Term_expandHave___closed__6; extern lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Quotation_2__quoteSyntax___main___spec__1___closed__8; lean_object* l_Lean_Elab_Term_expandMap(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandGE___closed__3; @@ -732,6 +745,7 @@ lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__17; lean_object* l_Lean_Elab_Term_expandAdd___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnf___at___private_Lean_Elab_Term_7__isTypeApp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_expandShow___closed__14; extern lean_object* l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__2___closed__4; lean_object* l_Lean_Elab_Term_expandseqRight___closed__1; lean_object* l_Lean_Elab_Term_expandGT___closed__2; @@ -2684,7 +2698,7 @@ lean_object* _init_l_Lean_Elab_Term_expandShow___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("this"); +x_1 = lean_mk_string("show"); return x_1; } } @@ -2692,7 +2706,7 @@ lean_object* _init_l_Lean_Elab_Term_expandShow___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); +x_1 = l_Lean_mkAppStx___closed__6; x_2 = l_Lean_Elab_Term_expandShow___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -2701,6 +2715,124 @@ return x_3; lean_object* _init_l_Lean_Elab_Term_expandShow___closed__3() { _start: { +lean_object* x_1; +x_1 = lean_mk_string("fromTerm"); +return x_1; +} +} +lean_object* _init_l_Lean_Elab_Term_expandShow___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkAppStx___closed__6; +x_2 = l_Lean_Elab_Term_expandShow___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Elab_Term_expandShow___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_SourceInfo_inhabited___closed__1; +x_2 = l_Lean_Elab_Term_expandShow___closed__1; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Elab_Term_expandShow___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_empty___closed__1; +x_2 = l_Lean_Elab_Term_expandShow___closed__5; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Elab_Term_expandShow___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("from"); +return x_1; +} +} +lean_object* _init_l_Lean_Elab_Term_expandShow___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_SourceInfo_inhabited___closed__1; +x_2 = l_Lean_Elab_Term_expandShow___closed__7; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Elab_Term_expandShow___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_empty___closed__1; +x_2 = l_Lean_Elab_Term_expandShow___closed__8; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Elab_Term_expandShow___closed__10() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("by"); +return x_1; +} +} +lean_object* _init_l_Lean_Elab_Term_expandShow___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_SourceInfo_inhabited___closed__1; +x_2 = l_Lean_Elab_Term_expandShow___closed__10; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Elab_Term_expandShow___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_empty___closed__1; +x_2 = l_Lean_Elab_Term_expandShow___closed__11; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Elab_Term_expandShow___closed__13() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("this"); +return x_1; +} +} +lean_object* _init_l_Lean_Elab_Term_expandShow___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_expandShow___closed__13; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Elab_Term_expandShow___closed__15() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_SourceInfo_inhabited___closed__1; x_2 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; @@ -2710,79 +2842,43 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l_Lean_Elab_Term_expandShow___closed__4() { +lean_object* _init_l_Lean_Elab_Term_expandShow___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_empty___closed__1; -x_2 = l_Lean_Elab_Term_expandShow___closed__3; +x_2 = l_Lean_Elab_Term_expandShow___closed__15; x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Elab_Term_expandShow___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("fromTerm"); -return x_1; -} -} -lean_object* _init_l_Lean_Elab_Term_expandShow___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Elab_Term_expandShow___closed__5; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Term_expandShow___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("show"); -return x_1; -} -} -lean_object* _init_l_Lean_Elab_Term_expandShow___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Elab_Term_expandShow___closed__7; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} lean_object* l_Lean_Elab_Term_expandShow(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_4; lean_object* x_53; uint8_t x_54; -x_53 = l_Lean_Elab_Term_expandShow___closed__8; +uint8_t x_4; lean_object* x_80; uint8_t x_81; +x_80 = l_Lean_Elab_Term_expandShow___closed__2; lean_inc(x_1); -x_54 = l_Lean_Syntax_isOfKind(x_1, x_53); -if (x_54 == 0) +x_81 = l_Lean_Syntax_isOfKind(x_1, x_80); +if (x_81 == 0) { -uint8_t x_55; -x_55 = 0; -x_4 = x_55; -goto block_52; +uint8_t x_82; +x_82 = 0; +x_4 = x_82; +goto block_79; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_56 = l_Lean_Syntax_getArgs(x_1); -x_57 = lean_array_get_size(x_56); -lean_dec(x_56); -x_58 = lean_unsigned_to_nat(3u); -x_59 = lean_nat_dec_eq(x_57, x_58); -lean_dec(x_57); -x_4 = x_59; -goto block_52; +lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +x_83 = l_Lean_Syntax_getArgs(x_1); +x_84 = lean_array_get_size(x_83); +lean_dec(x_83); +x_85 = lean_unsigned_to_nat(3u); +x_86 = lean_nat_dec_eq(x_84, x_85); +lean_dec(x_84); +x_4 = x_86; +goto block_79; } -block_52: +block_79: { if (x_4 == 0) { @@ -2796,96 +2892,171 @@ return x_6; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_46; uint8_t x_47; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_73; uint8_t x_74; x_7 = lean_unsigned_to_nat(1u); x_8 = l_Lean_Syntax_getArg(x_1, x_7); x_9 = lean_unsigned_to_nat(2u); x_10 = l_Lean_Syntax_getArg(x_1, x_9); -x_46 = l_Lean_Elab_Term_expandShow___closed__6; +x_73 = l_Lean_Elab_Term_expandShow___closed__4; lean_inc(x_10); -x_47 = l_Lean_Syntax_isOfKind(x_10, x_46); -if (x_47 == 0) +x_74 = l_Lean_Syntax_isOfKind(x_10, x_73); +if (x_74 == 0) { -uint8_t x_48; -x_48 = 0; -x_11 = x_48; -goto block_45; +uint8_t x_75; +x_75 = 0; +x_11 = x_75; +goto block_72; } else { -lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_49 = l_Lean_Syntax_getArgs(x_10); -x_50 = lean_array_get_size(x_49); -lean_dec(x_49); -x_51 = lean_nat_dec_eq(x_50, x_9); -lean_dec(x_50); -x_11 = x_51; -goto block_45; +lean_object* x_76; lean_object* x_77; uint8_t x_78; +x_76 = l_Lean_Syntax_getArgs(x_10); +x_77 = lean_array_get_size(x_76); +lean_dec(x_76); +x_78 = lean_nat_dec_eq(x_77, x_9); +lean_dec(x_77); +x_11 = x_78; +goto block_72; } -block_45: +block_72: { if (x_11 == 0) { -lean_object* x_12; lean_object* x_13; -lean_dec(x_10); -lean_dec(x_8); +uint8_t x_12; lean_object* x_35; uint8_t x_36; lean_dec(x_1); -x_12 = lean_box(1); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_3); -return x_13; +x_35 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +lean_inc(x_10); +x_36 = l_Lean_Syntax_isOfKind(x_10, x_35); +if (x_36 == 0) +{ +uint8_t x_37; +x_37 = 0; +x_12 = x_37; +goto block_34; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_14 = l_Lean_Syntax_getArg(x_10, x_7); +lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = l_Lean_Syntax_getArgs(x_10); +x_39 = lean_array_get_size(x_38); +lean_dec(x_38); +x_40 = lean_nat_dec_eq(x_39, x_9); +lean_dec(x_39); +x_12 = x_40; +goto block_34; +} +block_34: +{ +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_dec(x_10); -x_15 = l_Lean_Elab_Term_expandShow___closed__2; -x_16 = l_Lean_mkIdentFrom(x_1, x_15); -lean_dec(x_1); -x_17 = l_Array_empty___closed__1; -lean_inc(x_16); -x_18 = lean_array_push(x_17, x_16); -x_19 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__42; -x_20 = lean_array_push(x_18, x_19); -x_21 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_11____closed__26; -x_22 = lean_array_push(x_21, x_8); -x_23 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -x_25 = lean_array_push(x_17, x_24); -x_26 = l_Lean_nullKind___closed__2; -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -x_28 = lean_array_push(x_20, x_27); -x_29 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_30 = lean_array_push(x_28, x_29); -x_31 = lean_array_push(x_30, x_14); -x_32 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; -x_33 = lean_alloc_ctor(1, 2, 0); +lean_dec(x_8); +x_13 = lean_box(1); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_3); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = l_Lean_Syntax_getArg(x_10, x_7); +lean_dec(x_10); +x_16 = l___regBuiltin_Lean_Elab_Tactic_evalSeq___closed__2; +lean_inc(x_15); +x_17 = l_Lean_Syntax_isOfKind(x_15, x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_15); +lean_dec(x_8); +x_18 = lean_box(1); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_3); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_20 = l_Lean_Elab_Term_expandShow___closed__6; +x_21 = lean_array_push(x_20, x_8); +x_22 = l_Lean_Elab_Term_expandShow___closed__12; +x_23 = lean_array_push(x_22, x_15); +x_24 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = l_Lean_Elab_Term_expandShow___closed__9; +x_27 = lean_array_push(x_26, x_25); +x_28 = l_Lean_Elab_Term_expandShow___closed__4; +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +x_30 = lean_array_push(x_21, x_29); +x_31 = l_Lean_Elab_Term_expandShow___closed__2; +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_30); +x_33 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -x_34 = lean_array_push(x_17, x_33); -x_35 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__6; -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_34); -x_37 = l_Lean_Elab_Term_expandShow___closed__4; -x_38 = lean_array_push(x_37, x_36); -x_39 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; -x_40 = lean_array_push(x_38, x_39); -x_41 = lean_array_push(x_40, x_16); -x_42 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_3); -return x_44; +lean_ctor_set(x_33, 1, x_3); +return x_33; +} +} +} +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_41 = l_Lean_Syntax_getArg(x_10, x_7); +lean_dec(x_10); +x_42 = l_Lean_Elab_Term_expandShow___closed__14; +x_43 = l_Lean_mkIdentFrom(x_1, x_42); +lean_dec(x_1); +x_44 = l_Array_empty___closed__1; +lean_inc(x_43); +x_45 = lean_array_push(x_44, x_43); +x_46 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__42; +x_47 = lean_array_push(x_45, x_46); +x_48 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_11____closed__26; +x_49 = lean_array_push(x_48, x_8); +x_50 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +x_52 = lean_array_push(x_44, x_51); +x_53 = l_Lean_nullKind___closed__2; +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_55 = lean_array_push(x_47, x_54); +x_56 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_57 = lean_array_push(x_55, x_56); +x_58 = lean_array_push(x_57, x_41); +x_59 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_58); +x_61 = lean_array_push(x_44, x_60); +x_62 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__6; +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); +x_64 = l_Lean_Elab_Term_expandShow___closed__16; +x_65 = lean_array_push(x_64, x_63); +x_66 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; +x_67 = lean_array_push(x_65, x_66); +x_68 = lean_array_push(x_67, x_43); +x_69 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_68); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_3); +return x_71; } } } @@ -2914,7 +3085,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_macroAttribute; -x_3 = l_Lean_Elab_Term_expandShow___closed__8; +x_3 = l_Lean_Elab_Term_expandShow___closed__2; x_4 = l___regBuiltin_Lean_Elab_Term_expandShow___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -2924,7 +3095,7 @@ lean_object* _init_l_Lean_Elab_Term_expandHave___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("haveAssign"); +x_1 = lean_mk_string("have"); return x_1; } } @@ -2942,7 +3113,7 @@ lean_object* _init_l_Lean_Elab_Term_expandHave___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string("have"); +x_1 = lean_mk_string("haveAssign"); return x_1; } } @@ -2956,33 +3127,65 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } +lean_object* _init_l_Lean_Elab_Term_expandHave___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_SourceInfo_inhabited___closed__1; +x_2 = l_Lean_Elab_Term_expandHave___closed__1; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Elab_Term_expandHave___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_empty___closed__1; +x_2 = l_Lean_Elab_Term_expandHave___closed__5; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Elab_Term_expandHave___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_expandHave___closed__6; +x_2 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} lean_object* l_Lean_Elab_Term_expandHave(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_4; lean_object* x_200; uint8_t x_201; -x_200 = l_Lean_Elab_Term_expandHave___closed__4; +uint8_t x_4; lean_object* x_271; uint8_t x_272; +x_271 = l_Lean_Elab_Term_expandHave___closed__2; lean_inc(x_1); -x_201 = l_Lean_Syntax_isOfKind(x_1, x_200); -if (x_201 == 0) +x_272 = l_Lean_Syntax_isOfKind(x_1, x_271); +if (x_272 == 0) { -uint8_t x_202; -x_202 = 0; -x_4 = x_202; -goto block_199; +uint8_t x_273; +x_273 = 0; +x_4 = x_273; +goto block_270; } else { -lean_object* x_203; lean_object* x_204; lean_object* x_205; uint8_t x_206; -x_203 = l_Lean_Syntax_getArgs(x_1); -x_204 = lean_array_get_size(x_203); -lean_dec(x_203); -x_205 = lean_unsigned_to_nat(6u); -x_206 = lean_nat_dec_eq(x_204, x_205); -lean_dec(x_204); -x_4 = x_206; -goto block_199; +lean_object* x_274; lean_object* x_275; lean_object* x_276; uint8_t x_277; +x_274 = l_Lean_Syntax_getArgs(x_1); +x_275 = lean_array_get_size(x_274); +lean_dec(x_274); +x_276 = lean_unsigned_to_nat(6u); +x_277 = lean_nat_dec_eq(x_275, x_276); +lean_dec(x_275); +x_4 = x_277; +goto block_270; } -block_199: +block_270: { if (x_4 == 0) { @@ -2996,32 +3199,32 @@ return x_6; } else { -lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_99; uint8_t x_100; uint8_t x_101; +lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_138; uint8_t x_139; uint8_t x_140; x_7 = lean_unsigned_to_nat(1u); x_8 = l_Lean_Syntax_getArg(x_1, x_7); -x_99 = l_Lean_nullKind___closed__2; +x_138 = l_Lean_nullKind___closed__2; lean_inc(x_8); -x_100 = l_Lean_Syntax_isOfKind(x_8, x_99); -if (x_100 == 0) +x_139 = l_Lean_Syntax_isOfKind(x_8, x_138); +if (x_139 == 0) { -uint8_t x_194; -x_194 = 0; -x_101 = x_194; -goto block_193; +uint8_t x_265; +x_265 = 0; +x_140 = x_265; +goto block_264; } else { -lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; -x_195 = l_Lean_Syntax_getArgs(x_8); -x_196 = lean_array_get_size(x_195); -lean_dec(x_195); -x_197 = lean_unsigned_to_nat(0u); -x_198 = lean_nat_dec_eq(x_196, x_197); -lean_dec(x_196); -x_101 = x_198; -goto block_193; +lean_object* x_266; lean_object* x_267; lean_object* x_268; uint8_t x_269; +x_266 = l_Lean_Syntax_getArgs(x_8); +x_267 = lean_array_get_size(x_266); +lean_dec(x_266); +x_268 = lean_unsigned_to_nat(0u); +x_269 = lean_nat_dec_eq(x_267, x_268); +lean_dec(x_267); +x_140 = x_269; +goto block_264; } -block_98: +block_137: { if (x_9 == 0) { @@ -3036,7 +3239,7 @@ return x_11; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_53; lean_object* x_92; uint8_t x_93; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_53; lean_object* x_131; uint8_t x_132; x_12 = lean_unsigned_to_nat(0u); x_13 = l_Lean_Syntax_getArg(x_8, x_12); lean_dec(x_8); @@ -3044,26 +3247,26 @@ x_14 = lean_unsigned_to_nat(2u); x_15 = l_Lean_Syntax_getArg(x_1, x_14); x_16 = lean_unsigned_to_nat(3u); x_17 = l_Lean_Syntax_getArg(x_1, x_16); -x_92 = l_Lean_Elab_Term_expandShow___closed__6; +x_131 = l_Lean_Elab_Term_expandShow___closed__4; lean_inc(x_17); -x_93 = l_Lean_Syntax_isOfKind(x_17, x_92); -if (x_93 == 0) +x_132 = l_Lean_Syntax_isOfKind(x_17, x_131); +if (x_132 == 0) { -uint8_t x_94; -x_94 = 0; -x_53 = x_94; -goto block_91; +uint8_t x_133; +x_133 = 0; +x_53 = x_133; +goto block_130; } else { -lean_object* x_95; lean_object* x_96; uint8_t x_97; -x_95 = l_Lean_Syntax_getArgs(x_17); -x_96 = lean_array_get_size(x_95); -lean_dec(x_95); -x_97 = lean_nat_dec_eq(x_96, x_14); -lean_dec(x_96); -x_53 = x_97; -goto block_91; +lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_134 = l_Lean_Syntax_getArgs(x_17); +x_135 = lean_array_get_size(x_134); +lean_dec(x_134); +x_136 = lean_nat_dec_eq(x_135, x_14); +lean_dec(x_135); +x_53 = x_136; +goto block_130; } block_52: { @@ -3116,7 +3319,7 @@ x_42 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__6; x_43 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); -x_44 = l_Lean_Elab_Term_expandShow___closed__4; +x_44 = l_Lean_Elab_Term_expandShow___closed__16; x_45 = lean_array_push(x_44, x_43); x_46 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; x_47 = lean_array_push(x_45, x_46); @@ -3131,282 +3334,456 @@ lean_ctor_set(x_51, 1, x_3); return x_51; } } -block_91: +block_130: { if (x_53 == 0) { -lean_object* x_54; uint8_t x_55; -x_54 = l_Lean_Elab_Term_expandHave___closed__2; +uint8_t x_54; lean_object* x_93; uint8_t x_94; +x_93 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; lean_inc(x_17); -x_55 = l_Lean_Syntax_isOfKind(x_17, x_54); -if (x_55 == 0) +x_94 = l_Lean_Syntax_isOfKind(x_17, x_93); +if (x_94 == 0) { -uint8_t x_56; -x_56 = 0; -x_18 = x_56; +uint8_t x_95; +x_95 = 0; +x_54 = x_95; +goto block_92; +} +else +{ +lean_object* x_96; lean_object* x_97; uint8_t x_98; +x_96 = l_Lean_Syntax_getArgs(x_17); +x_97 = lean_array_get_size(x_96); +lean_dec(x_96); +x_98 = lean_nat_dec_eq(x_97, x_14); +lean_dec(x_97); +x_54 = x_98; +goto block_92; +} +block_92: +{ +if (x_54 == 0) +{ +lean_object* x_55; uint8_t x_56; +x_55 = l_Lean_Elab_Term_expandHave___closed__4; +lean_inc(x_17); +x_56 = l_Lean_Syntax_isOfKind(x_17, x_55); +if (x_56 == 0) +{ +uint8_t x_57; +x_57 = 0; +x_18 = x_57; goto block_52; } else { -lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_57 = l_Lean_Syntax_getArgs(x_17); -x_58 = lean_array_get_size(x_57); -lean_dec(x_57); -x_59 = lean_nat_dec_eq(x_58, x_14); +lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_58 = l_Lean_Syntax_getArgs(x_17); +x_59 = lean_array_get_size(x_58); lean_dec(x_58); -x_18 = x_59; +x_60 = lean_nat_dec_eq(x_59, x_14); +lean_dec(x_59); +x_18 = x_60; goto block_52; } } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_60 = l_Lean_Syntax_getArg(x_17, x_7); +lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_61 = l_Lean_Syntax_getArg(x_17, x_7); lean_dec(x_17); -x_61 = lean_unsigned_to_nat(5u); -x_62 = l_Lean_Syntax_getArg(x_1, x_61); +x_62 = l___regBuiltin_Lean_Elab_Tactic_evalSeq___closed__2; +lean_inc(x_61); +x_63 = l_Lean_Syntax_isOfKind(x_61, x_62); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_61); +lean_dec(x_15); +lean_dec(x_13); lean_dec(x_1); -x_63 = l_Array_empty___closed__1; -x_64 = lean_array_push(x_63, x_13); -x_65 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; -x_66 = lean_array_push(x_64, x_65); -x_67 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_11____closed__26; -x_68 = lean_array_push(x_67, x_15); -x_69 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_68); -x_71 = lean_array_push(x_63, x_70); +x_64 = lean_box(1); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_3); +return x_65; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_66 = lean_unsigned_to_nat(5u); +x_67 = l_Lean_Syntax_getArg(x_1, x_66); +lean_dec(x_1); +x_68 = l_Array_empty___closed__1; +x_69 = lean_array_push(x_68, x_13); +x_70 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_11____closed__25; +x_71 = lean_array_push(x_69, x_70); x_72 = l_Lean_nullKind___closed__2; x_73 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_73, 0, x_72); lean_ctor_set(x_73, 1, x_71); -x_74 = lean_array_push(x_66, x_73); -x_75 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_76 = lean_array_push(x_74, x_75); -x_77 = lean_array_push(x_76, x_60); -x_78 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_77); -x_80 = lean_array_push(x_63, x_79); -x_81 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__6; -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_80); +x_74 = l_Lean_Elab_Term_expandHave___closed__6; +x_75 = lean_array_push(x_74, x_73); +x_76 = lean_array_push(x_75, x_15); +x_77 = l_Lean_Elab_Term_expandShow___closed__12; +x_78 = lean_array_push(x_77, x_61); +x_79 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_78); +x_81 = l_Lean_Elab_Term_expandShow___closed__9; +x_82 = lean_array_push(x_81, x_80); x_83 = l_Lean_Elab_Term_expandShow___closed__4; -x_84 = lean_array_push(x_83, x_82); -x_85 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; -x_86 = lean_array_push(x_84, x_85); -x_87 = lean_array_push(x_86, x_62); -x_88 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_87); -x_90 = lean_alloc_ctor(0, 2, 0); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_82); +x_85 = lean_array_push(x_76, x_84); +x_86 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; +x_87 = lean_array_push(x_85, x_86); +x_88 = lean_array_push(x_87, x_67); +x_89 = l_Lean_Elab_Term_expandHave___closed__2; +x_90 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_3); -return x_90; +lean_ctor_set(x_90, 1, x_88); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_3); +return x_91; } } } } -block_193: -{ -if (x_101 == 0) -{ -if (x_100 == 0) -{ -uint8_t x_102; -x_102 = 0; -x_9 = x_102; -goto block_98; -} -else -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; -x_103 = l_Lean_Syntax_getArgs(x_8); -x_104 = lean_array_get_size(x_103); -lean_dec(x_103); -x_105 = lean_unsigned_to_nat(2u); -x_106 = lean_nat_dec_eq(x_104, x_105); -lean_dec(x_104); -x_9 = x_106; -goto block_98; -} -} else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; uint8_t x_147; lean_object* x_187; uint8_t x_188; -lean_dec(x_8); -x_107 = lean_unsigned_to_nat(2u); -x_108 = l_Lean_Syntax_getArg(x_1, x_107); -x_109 = lean_unsigned_to_nat(3u); -x_110 = l_Lean_Syntax_getArg(x_1, x_109); -x_187 = l_Lean_Elab_Term_expandShow___closed__6; -lean_inc(x_110); -x_188 = l_Lean_Syntax_isOfKind(x_110, x_187); -if (x_188 == 0) -{ -uint8_t x_189; -x_189 = 0; -x_147 = x_189; -goto block_186; -} -else -{ -lean_object* x_190; lean_object* x_191; uint8_t x_192; -x_190 = l_Lean_Syntax_getArgs(x_110); -x_191 = lean_array_get_size(x_190); -lean_dec(x_190); -x_192 = lean_nat_dec_eq(x_191, x_107); -lean_dec(x_191); -x_147 = x_192; -goto block_186; -} -block_146: -{ -if (x_111 == 0) -{ -lean_object* x_112; lean_object* x_113; -lean_dec(x_110); -lean_dec(x_108); +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_99 = l_Lean_Syntax_getArg(x_17, x_7); +lean_dec(x_17); +x_100 = lean_unsigned_to_nat(5u); +x_101 = l_Lean_Syntax_getArg(x_1, x_100); lean_dec(x_1); -x_112 = lean_box(1); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_3); -return x_113; -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_114 = l_Lean_Syntax_getArg(x_110, x_7); -lean_dec(x_110); -x_115 = lean_unsigned_to_nat(5u); -x_116 = l_Lean_Syntax_getArg(x_1, x_115); -x_117 = l_Lean_Elab_Term_expandShow___closed__2; -x_118 = l_Lean_mkIdentFrom(x_1, x_117); -lean_dec(x_1); -x_119 = l_Array_empty___closed__1; -x_120 = lean_array_push(x_119, x_118); -x_121 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; -x_122 = lean_array_push(x_120, x_121); -x_123 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_11____closed__26; -x_124 = lean_array_push(x_123, x_108); -x_125 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; -x_126 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = lean_array_push(x_119, x_126); +x_102 = l_Array_empty___closed__1; +x_103 = lean_array_push(x_102, x_13); +x_104 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; +x_105 = lean_array_push(x_103, x_104); +x_106 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_11____closed__26; +x_107 = lean_array_push(x_106, x_15); +x_108 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_107); +x_110 = lean_array_push(x_102, x_109); +x_111 = l_Lean_nullKind___closed__2; +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_110); +x_113 = lean_array_push(x_105, x_112); +x_114 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_115 = lean_array_push(x_113, x_114); +x_116 = lean_array_push(x_115, x_99); +x_117 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_116); +x_119 = lean_array_push(x_102, x_118); +x_120 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__6; +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_119); +x_122 = l_Lean_Elab_Term_expandShow___closed__16; +x_123 = lean_array_push(x_122, x_121); +x_124 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; +x_125 = lean_array_push(x_123, x_124); +x_126 = lean_array_push(x_125, x_101); +x_127 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; x_128 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_128, 0, x_99); -lean_ctor_set(x_128, 1, x_127); -x_129 = lean_array_push(x_122, x_128); -x_130 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_131 = lean_array_push(x_129, x_130); -x_132 = lean_array_push(x_131, x_114); -x_133 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; -x_134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_132); -x_135 = lean_array_push(x_119, x_134); -x_136 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__6; -x_137 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_137, 0, x_136); -lean_ctor_set(x_137, 1, x_135); -x_138 = l_Lean_Elab_Term_expandShow___closed__4; -x_139 = lean_array_push(x_138, x_137); -x_140 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; -x_141 = lean_array_push(x_139, x_140); -x_142 = lean_array_push(x_141, x_116); -x_143 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; -x_144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_142); -x_145 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_3); -return x_145; +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_3); +return x_129; } } -block_186: +} +} +block_264: { -if (x_147 == 0) +if (x_140 == 0) { -lean_object* x_148; uint8_t x_149; -x_148 = l_Lean_Elab_Term_expandHave___closed__2; -lean_inc(x_110); -x_149 = l_Lean_Syntax_isOfKind(x_110, x_148); -if (x_149 == 0) +if (x_139 == 0) { -uint8_t x_150; -x_150 = 0; -x_111 = x_150; -goto block_146; +uint8_t x_141; +x_141 = 0; +x_9 = x_141; +goto block_137; } else { -lean_object* x_151; lean_object* x_152; uint8_t x_153; -x_151 = l_Lean_Syntax_getArgs(x_110); -x_152 = lean_array_get_size(x_151); -lean_dec(x_151); -x_153 = lean_nat_dec_eq(x_152, x_107); -lean_dec(x_152); -x_111 = x_153; -goto block_146; +lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; +x_142 = l_Lean_Syntax_getArgs(x_8); +x_143 = lean_array_get_size(x_142); +lean_dec(x_142); +x_144 = lean_unsigned_to_nat(2u); +x_145 = lean_nat_dec_eq(x_143, x_144); +lean_dec(x_143); +x_9 = x_145; +goto block_137; } } else { -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_154 = l_Lean_Syntax_getArg(x_110, x_7); -lean_dec(x_110); -x_155 = lean_unsigned_to_nat(5u); -x_156 = l_Lean_Syntax_getArg(x_1, x_155); -x_157 = l_Lean_Elab_Term_expandShow___closed__2; -x_158 = l_Lean_mkIdentFrom(x_1, x_157); +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t x_150; uint8_t x_186; lean_object* x_258; uint8_t x_259; +lean_dec(x_8); +x_146 = lean_unsigned_to_nat(2u); +x_147 = l_Lean_Syntax_getArg(x_1, x_146); +x_148 = lean_unsigned_to_nat(3u); +x_149 = l_Lean_Syntax_getArg(x_1, x_148); +x_258 = l_Lean_Elab_Term_expandShow___closed__4; +lean_inc(x_149); +x_259 = l_Lean_Syntax_isOfKind(x_149, x_258); +if (x_259 == 0) +{ +uint8_t x_260; +x_260 = 0; +x_186 = x_260; +goto block_257; +} +else +{ +lean_object* x_261; lean_object* x_262; uint8_t x_263; +x_261 = l_Lean_Syntax_getArgs(x_149); +x_262 = lean_array_get_size(x_261); +lean_dec(x_261); +x_263 = lean_nat_dec_eq(x_262, x_146); +lean_dec(x_262); +x_186 = x_263; +goto block_257; +} +block_185: +{ +if (x_150 == 0) +{ +lean_object* x_151; lean_object* x_152; +lean_dec(x_149); +lean_dec(x_147); lean_dec(x_1); -x_159 = l_Array_empty___closed__1; -x_160 = lean_array_push(x_159, x_158); -x_161 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; -x_162 = lean_array_push(x_160, x_161); -x_163 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_11____closed__26; -x_164 = lean_array_push(x_163, x_108); -x_165 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_165); -lean_ctor_set(x_166, 1, x_164); -x_167 = lean_array_push(x_159, x_166); -x_168 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_168, 0, x_99); -lean_ctor_set(x_168, 1, x_167); -x_169 = lean_array_push(x_162, x_168); -x_170 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_171 = lean_array_push(x_169, x_170); -x_172 = lean_array_push(x_171, x_154); -x_173 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; -x_174 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_174, 0, x_173); -lean_ctor_set(x_174, 1, x_172); -x_175 = lean_array_push(x_159, x_174); -x_176 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__6; -x_177 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_177, 0, x_176); -lean_ctor_set(x_177, 1, x_175); -x_178 = l_Lean_Elab_Term_expandShow___closed__4; -x_179 = lean_array_push(x_178, x_177); -x_180 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; -x_181 = lean_array_push(x_179, x_180); -x_182 = lean_array_push(x_181, x_156); -x_183 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; -x_184 = lean_alloc_ctor(1, 2, 0); +x_151 = lean_box(1); +x_152 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_152, 0, x_151); +lean_ctor_set(x_152, 1, x_3); +return x_152; +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_153 = l_Lean_Syntax_getArg(x_149, x_7); +lean_dec(x_149); +x_154 = lean_unsigned_to_nat(5u); +x_155 = l_Lean_Syntax_getArg(x_1, x_154); +x_156 = l_Lean_Elab_Term_expandShow___closed__14; +x_157 = l_Lean_mkIdentFrom(x_1, x_156); +lean_dec(x_1); +x_158 = l_Array_empty___closed__1; +x_159 = lean_array_push(x_158, x_157); +x_160 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; +x_161 = lean_array_push(x_159, x_160); +x_162 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_11____closed__26; +x_163 = lean_array_push(x_162, x_147); +x_164 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_165 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_165, 1, x_163); +x_166 = lean_array_push(x_158, x_165); +x_167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_167, 0, x_138); +lean_ctor_set(x_167, 1, x_166); +x_168 = lean_array_push(x_161, x_167); +x_169 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_170 = lean_array_push(x_168, x_169); +x_171 = lean_array_push(x_170, x_153); +x_172 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; +x_173 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_171); +x_174 = lean_array_push(x_158, x_173); +x_175 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__6; +x_176 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_176, 0, x_175); +lean_ctor_set(x_176, 1, x_174); +x_177 = l_Lean_Elab_Term_expandShow___closed__16; +x_178 = lean_array_push(x_177, x_176); +x_179 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; +x_180 = lean_array_push(x_178, x_179); +x_181 = lean_array_push(x_180, x_155); +x_182 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; +x_183 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_183, 0, x_182); +lean_ctor_set(x_183, 1, x_181); +x_184 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_184, 0, x_183); -lean_ctor_set(x_184, 1, x_182); -x_185 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_3); -return x_185; +lean_ctor_set(x_184, 1, x_3); +return x_184; +} +} +block_257: +{ +if (x_186 == 0) +{ +uint8_t x_187; lean_object* x_219; uint8_t x_220; +x_219 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +lean_inc(x_149); +x_220 = l_Lean_Syntax_isOfKind(x_149, x_219); +if (x_220 == 0) +{ +uint8_t x_221; +x_221 = 0; +x_187 = x_221; +goto block_218; +} +else +{ +lean_object* x_222; lean_object* x_223; uint8_t x_224; +x_222 = l_Lean_Syntax_getArgs(x_149); +x_223 = lean_array_get_size(x_222); +lean_dec(x_222); +x_224 = lean_nat_dec_eq(x_223, x_146); +lean_dec(x_223); +x_187 = x_224; +goto block_218; +} +block_218: +{ +if (x_187 == 0) +{ +lean_object* x_188; uint8_t x_189; +x_188 = l_Lean_Elab_Term_expandHave___closed__4; +lean_inc(x_149); +x_189 = l_Lean_Syntax_isOfKind(x_149, x_188); +if (x_189 == 0) +{ +uint8_t x_190; +x_190 = 0; +x_150 = x_190; +goto block_185; +} +else +{ +lean_object* x_191; lean_object* x_192; uint8_t x_193; +x_191 = l_Lean_Syntax_getArgs(x_149); +x_192 = lean_array_get_size(x_191); +lean_dec(x_191); +x_193 = lean_nat_dec_eq(x_192, x_146); +lean_dec(x_192); +x_150 = x_193; +goto block_185; +} +} +else +{ +lean_object* x_194; lean_object* x_195; uint8_t x_196; +x_194 = l_Lean_Syntax_getArg(x_149, x_7); +lean_dec(x_149); +x_195 = l___regBuiltin_Lean_Elab_Tactic_evalSeq___closed__2; +lean_inc(x_194); +x_196 = l_Lean_Syntax_isOfKind(x_194, x_195); +if (x_196 == 0) +{ +lean_object* x_197; lean_object* x_198; +lean_dec(x_194); +lean_dec(x_147); +lean_dec(x_1); +x_197 = lean_box(1); +x_198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_198, 0, x_197); +lean_ctor_set(x_198, 1, x_3); +return x_198; +} +else +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_199 = lean_unsigned_to_nat(5u); +x_200 = l_Lean_Syntax_getArg(x_1, x_199); +lean_dec(x_1); +x_201 = l_Lean_Elab_Term_expandHave___closed__7; +x_202 = lean_array_push(x_201, x_147); +x_203 = l_Lean_Elab_Term_expandShow___closed__12; +x_204 = lean_array_push(x_203, x_194); +x_205 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +x_206 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_206, 0, x_205); +lean_ctor_set(x_206, 1, x_204); +x_207 = l_Lean_Elab_Term_expandShow___closed__9; +x_208 = lean_array_push(x_207, x_206); +x_209 = l_Lean_Elab_Term_expandShow___closed__4; +x_210 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_210, 0, x_209); +lean_ctor_set(x_210, 1, x_208); +x_211 = lean_array_push(x_202, x_210); +x_212 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; +x_213 = lean_array_push(x_211, x_212); +x_214 = lean_array_push(x_213, x_200); +x_215 = l_Lean_Elab_Term_expandHave___closed__2; +x_216 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_216, 1, x_214); +x_217 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_217, 0, x_216); +lean_ctor_set(x_217, 1, x_3); +return x_217; +} +} +} +} +else +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; +x_225 = l_Lean_Syntax_getArg(x_149, x_7); +lean_dec(x_149); +x_226 = lean_unsigned_to_nat(5u); +x_227 = l_Lean_Syntax_getArg(x_1, x_226); +x_228 = l_Lean_Elab_Term_expandShow___closed__14; +x_229 = l_Lean_mkIdentFrom(x_1, x_228); +lean_dec(x_1); +x_230 = l_Array_empty___closed__1; +x_231 = lean_array_push(x_230, x_229); +x_232 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; +x_233 = lean_array_push(x_231, x_232); +x_234 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_11____closed__26; +x_235 = lean_array_push(x_234, x_147); +x_236 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_237 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_237, 0, x_236); +lean_ctor_set(x_237, 1, x_235); +x_238 = lean_array_push(x_230, x_237); +x_239 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_239, 0, x_138); +lean_ctor_set(x_239, 1, x_238); +x_240 = lean_array_push(x_233, x_239); +x_241 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_242 = lean_array_push(x_240, x_241); +x_243 = lean_array_push(x_242, x_225); +x_244 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; +x_245 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_243); +x_246 = lean_array_push(x_230, x_245); +x_247 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__6; +x_248 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_248, 0, x_247); +lean_ctor_set(x_248, 1, x_246); +x_249 = l_Lean_Elab_Term_expandShow___closed__16; +x_250 = lean_array_push(x_249, x_248); +x_251 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; +x_252 = lean_array_push(x_250, x_251); +x_253 = lean_array_push(x_252, x_227); +x_254 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; +x_255 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_255, 0, x_254); +lean_ctor_set(x_255, 1, x_253); +x_256 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_256, 0, x_255); +lean_ctor_set(x_256, 1, x_3); +return x_256; } } } @@ -3437,7 +3814,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_macroAttribute; -x_3 = l_Lean_Elab_Term_expandHave___closed__4; +x_3 = l_Lean_Elab_Term_expandHave___closed__2; x_4 = l___regBuiltin_Lean_Elab_Term_expandHave___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -12324,6 +12701,22 @@ l_Lean_Elab_Term_expandShow___closed__7 = _init_l_Lean_Elab_Term_expandShow___cl lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__7); l_Lean_Elab_Term_expandShow___closed__8 = _init_l_Lean_Elab_Term_expandShow___closed__8(); lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__8); +l_Lean_Elab_Term_expandShow___closed__9 = _init_l_Lean_Elab_Term_expandShow___closed__9(); +lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__9); +l_Lean_Elab_Term_expandShow___closed__10 = _init_l_Lean_Elab_Term_expandShow___closed__10(); +lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__10); +l_Lean_Elab_Term_expandShow___closed__11 = _init_l_Lean_Elab_Term_expandShow___closed__11(); +lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__11); +l_Lean_Elab_Term_expandShow___closed__12 = _init_l_Lean_Elab_Term_expandShow___closed__12(); +lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__12); +l_Lean_Elab_Term_expandShow___closed__13 = _init_l_Lean_Elab_Term_expandShow___closed__13(); +lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__13); +l_Lean_Elab_Term_expandShow___closed__14 = _init_l_Lean_Elab_Term_expandShow___closed__14(); +lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__14); +l_Lean_Elab_Term_expandShow___closed__15 = _init_l_Lean_Elab_Term_expandShow___closed__15(); +lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__15); +l_Lean_Elab_Term_expandShow___closed__16 = _init_l_Lean_Elab_Term_expandShow___closed__16(); +lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__16); l___regBuiltin_Lean_Elab_Term_expandShow___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandShow___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandShow___closed__1); res = l___regBuiltin_Lean_Elab_Term_expandShow(lean_io_mk_world()); @@ -12337,6 +12730,12 @@ l_Lean_Elab_Term_expandHave___closed__3 = _init_l_Lean_Elab_Term_expandHave___cl lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__3); l_Lean_Elab_Term_expandHave___closed__4 = _init_l_Lean_Elab_Term_expandHave___closed__4(); lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__4); +l_Lean_Elab_Term_expandHave___closed__5 = _init_l_Lean_Elab_Term_expandHave___closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__5); +l_Lean_Elab_Term_expandHave___closed__6 = _init_l_Lean_Elab_Term_expandHave___closed__6(); +lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__6); +l_Lean_Elab_Term_expandHave___closed__7 = _init_l_Lean_Elab_Term_expandHave___closed__7(); +lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__7); l___regBuiltin_Lean_Elab_Term_expandHave___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandHave___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandHave___closed__1); res = l___regBuiltin_Lean_Elab_Term_expandHave(lean_io_mk_world()); diff --git a/stage0/stdlib/Lean/Parser/Tactic.c b/stage0/stdlib/Lean/Parser/Tactic.c index 999c044566..a239d6eab2 100644 --- a/stage0/stdlib/Lean/Parser/Tactic.c +++ b/stage0/stdlib/Lean/Parser/Tactic.c @@ -75,6 +75,7 @@ lean_object* l_Lean_Parser_Tactic_revert_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_location___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_case___closed__6; lean_object* l_Lean_Parser_Tactic_inductionAlts_parenthesizer___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_altRHS___closed__4; lean_object* l_Lean_Parser_andthenInfo(lean_object*, lean_object*); lean_object* l_Lean_Parser_ParserState_mkError(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_traceState_parenthesizer___closed__2; @@ -302,7 +303,6 @@ lean_object* l_Lean_Parser_Tactic_withIds___closed__2; lean_object* l_Lean_Parser_tokenFn(lean_object*, lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Tactic_nestedTacticBlockCurly(lean_object*); lean_object* l_Lean_Parser_Tactic_changeWith_parenthesizer___closed__1; -lean_object* l_Lean_Parser_Tactic_holeOrTactic___closed__2; lean_object* l_Lean_Parser_Tactic_show___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_introMatch_parenthesizer___closed__2; extern lean_object* l_Lean_Parser_Term_let_x21___elambda__1___closed__9; @@ -311,6 +311,7 @@ lean_object* l___regBuiltin_Lean_Parser_Tactic_let_x21_parenthesizer___closed__1 lean_object* l_Lean_Parser_Tactic_subst___closed__4; lean_object* l_Lean_Parser_Tactic_usingRec___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_induction_parenthesizer___closed__1; +lean_object* l_Lean_Parser_Tactic_altRHS___closed__3; lean_object* l___regBuiltin_Lean_Parser_Tactic_revert_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Tactic_intros___closed__5; lean_object* l_Lean_Parser_Tactic_injection_formatter___closed__5; @@ -383,6 +384,7 @@ lean_object* l_Lean_Parser_Tactic_let_x21___elambda__1(lean_object*, lean_object lean_object* l_Lean_Parser_Tactic_refine___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_revert_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_intros___closed__3; +lean_object* l_Lean_Parser_Tactic_case_formatter___closed__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; @@ -401,6 +403,7 @@ lean_object* l_Lean_Parser_Tactic_exact___closed__7; lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser_Tactic_matchAlts___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_clear___closed__2; lean_object* l_Lean_Parser_Tactic_have___elambda__1___closed__3; +lean_object* l_Lean_Parser_Tactic_altRHS_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_clear; lean_object* l___regBuiltin_Lean_Parser_Tactic_cases_parenthesizer___closed__1; extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___lambda__1___closed__3; @@ -448,6 +451,7 @@ extern lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_3____closed_ lean_object* l_Lean_Parser_Tactic_suffices_formatter___closed__1; lean_object* l_Lean_PrettyPrinter_Formatter_concatArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Tactic_subst_formatter(lean_object*); +lean_object* l_Lean_Parser_Tactic_case_parenthesizer___closed__5; extern lean_object* l___regBuiltin_Lean_Parser_Term_hole_parenthesizer___closed__1; extern lean_object* l_Lean_Parser_Term_have___elambda__1___closed__6; extern lean_object* l_Lean_Parser_mkAntiquot___closed__15; @@ -571,7 +575,6 @@ lean_object* l_Lean_Parser_Tactic_withAlts_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_paren_formatter___closed__1; extern lean_object* l_Lean_Parser_antiquotNestedExpr___closed__1; lean_object* l_Lean_Parser_Tactic_revert; -lean_object* l_Lean_Parser_Tactic_holeOrTactic_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_intros_parenthesizer___closed__4; lean_object* l_Lean_Parser_Tactic_generalize; lean_object* l_Lean_Parser_Tactic_failIfSuccess___closed__3; @@ -614,7 +617,6 @@ lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___closed__6; extern lean_object* l_Lean_Parser_Tactic_quot_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_intro_parenthesizer___closed__6; lean_object* l___regBuiltin_Lean_Parser_Tactic_clear_formatter___closed__1; -lean_object* l_Lean_Parser_Tactic_holeOrTactic___closed__3; lean_object* l___regBuiltin_Lean_Parser_Tactic_suffices_formatter(lean_object*); lean_object* l_Lean_Parser_Tactic_location___elambda__1___closed__13; extern lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__3; @@ -635,10 +637,10 @@ uint8_t l_Lean_Parser_tryAnti(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Level_ident_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_allGoals___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_induction_formatter___closed__3; +extern lean_object* l_Lean_Parser_Term_byTactic_formatter___closed__3; lean_object* l_Lean_Parser_optionaInfo(lean_object*); extern lean_object* l_Lean_Parser_Term_let___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_cases___closed__2; -lean_object* l_Lean_Parser_Tactic_holeOrTactic; extern lean_object* l_Lean_Parser_Term_sufficesDecl; lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__4; lean_object* l_Lean_PrettyPrinter_Parenthesizer_sepBy1_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -694,6 +696,7 @@ lean_object* l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesi lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__6; lean_object* l_Lean_Parser_Tactic_intro___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_intro_parenthesizer___closed__5; +extern lean_object* l_Lean_Parser_Term_byTactic_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_inductionAlts___closed__5; lean_object* l_Lean_Parser_Tactic_let_x21___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_allGoals_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -788,7 +791,9 @@ extern lean_object* l_Lean_Parser_Term_suffices___elambda__1___closed__6; lean_object* l___regBuiltin_Lean_Parser_Tactic_intro_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_ident_x27; lean_object* l_Lean_Parser_Tactic_exact___elambda__1___closed__4; +lean_object* l_Lean_Parser_Tactic_altRHS; lean_object* l_Lean_Parser_Tactic_exact___closed__5; +lean_object* l_Lean_Parser_Tactic_altRHS_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_formatterAttribute; lean_object* l_Lean_Parser_Tactic_inductionAlts_parenthesizer___lambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_matchAlts_formatter___lambda__1___closed__2; @@ -804,7 +809,6 @@ lean_object* l_Lean_Parser_Tactic_induction_parenthesizer___closed__3; lean_object* l_Lean_Parser_Tactic_match_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_let_x21___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_paren___closed__3; -lean_object* l_Lean_Parser_Tactic_holeOrTactic_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__3; lean_object* l_Lean_Parser_Tactic_majorPremise___closed__2; lean_object* l_Lean_Parser_Tactic_intro___elambda__1___closed__8; @@ -920,7 +924,6 @@ lean_object* l_Lean_Parser_Tactic_withIds_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_revert_formatter___closed__4; lean_object* l_Lean_Parser_Tactic_inductionAlts_parenthesizer___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_withIds_parenthesizer___closed__2; -lean_object* l_Lean_Parser_Tactic_holeOrTactic___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_subst_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_case___closed__5; lean_object* l_Lean_Parser_Tactic_orelse___elambda__1___closed__2; @@ -936,6 +939,7 @@ lean_object* l_Lean_Parser_Tactic_intros_formatter___closed__6; lean_object* l_Lean_Parser_Tactic_orelse; lean_object* l_Lean_Parser_Tactic_allGoals___closed__6; lean_object* l_Lean_Parser_Tactic_subst___closed__5; +lean_object* l_Lean_Parser_Tactic_altRHS_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__5; lean_object* l_Lean_Parser_Tactic_generalize___elambda__1___closed__4; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_matchAlts___elambda__1___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -992,6 +996,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Tactic_refine_x21(lean_object*); lean_object* l_Lean_Parser_Tactic_exact_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_ident___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_changeWith_formatter___closed__4; +extern lean_object* l_Lean_Parser_Tactic_indentedNonEmptySeq; lean_object* l_Lean_Parser_Tactic_exact_formatter___closed__4; lean_object* l_Lean_Parser_Tactic_assumption_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_generalize_parenthesizer___closed__6; @@ -1050,6 +1055,7 @@ lean_object* l_Lean_Parser_Tactic_introMatch_formatter___closed__2; lean_object* l_Lean_Parser_mergeOrElseErrors(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_withAlts___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_match_parenthesizer___closed__6; +lean_object* l_Lean_Parser_Tactic_altRHS_formatter___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_cases(lean_object*); lean_object* l_Lean_Parser_Tactic_assumption_formatter___closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -1106,7 +1112,6 @@ extern lean_object* l_Lean_Parser_Term_have___closed__1; extern lean_object* l_Lean_Parser_darrow___closed__2; lean_object* l_Lean_Parser_Tactic_failIfSuccess___closed__4; 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_generalizingVars___closed__1; @@ -1116,6 +1121,7 @@ lean_object* l_Lean_Parser_Tactic_intros_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__9; lean_object* l_Lean_Parser_Tactic_induction___closed__3; lean_object* l_Lean_Parser_Tactic_revert_formatter___closed__3; +lean_object* l_Lean_Parser_Tactic_case___closed__9; lean_object* l_Lean_Parser_symbolInfo(lean_object*); lean_object* l_Lean_Parser_Tactic_show___closed__2; extern lean_object* l_Lean_Parser_antiquotNestedExpr___elambda__1___closed__11; @@ -1157,6 +1163,7 @@ lean_object* l_Lean_Parser_Tactic_majorPremise___elambda__1___closed__4; 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_altRHS___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_generalizingVars___closed__2; 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*); @@ -1168,7 +1175,6 @@ lean_object* l_Lean_Parser_Tactic_induction___closed__5; lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser_Tactic_matchAlts___spec__4(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); 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_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; lean_object* l_Lean_Parser_Tactic_change_parenthesizer___closed__1; @@ -1198,7 +1204,6 @@ lean_object* l_Lean_Parser_Tactic_cases___closed__7; extern lean_object* l_Lean_Parser_Term_matchAlts___closed__2; lean_object* l_Lean_Parser_Tactic_show_formatter___closed__2; lean_object* l___regBuiltin_Lean_Parser_Tactic_revert_parenthesizer___closed__1; -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; @@ -1272,6 +1277,7 @@ extern lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean lean_object* l_Lean_Parser_Tactic_match_parenthesizer___closed__4; lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser_Tactic_matchAlts___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__2; +lean_object* l_Lean_Parser_Tactic_altRHS___closed__1; lean_object* l_Lean_Parser_Tactic_induction___closed__8; lean_object* l_Lean_Parser_Tactic_apply___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_show___elambda__1(lean_object*, lean_object*); @@ -1348,6 +1354,7 @@ lean_object* l___regBuiltin_Lean_Parser_Tactic_match_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_exact___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_refine_x21___closed__5; lean_object* l_Lean_Parser_Tactic_cases_parenthesizer___closed__3; +lean_object* l_Lean_Parser_Tactic_altRHS___closed__2; lean_object* l_Lean_Parser_Tactic_clear_formatter___closed__1; extern lean_object* l_Lean_Parser_Term_let_x21___closed__1; lean_object* l_Lean_Parser_Tactic_underscore_parenthesizer___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1481,7 +1488,6 @@ lean_object* l___regBuiltin_Lean_Parser_Tactic_allGoals_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_induction___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_injection_formatter___closed__6; lean_object* l_Lean_PrettyPrinter_Formatter_andthen_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_holeOrTactic_formatter___closed__1; extern lean_object* l_Lean_Parser_mkAntiquot_parenthesizer___rarg___closed__8; lean_object* l_Lean_Parser_Tactic_refine_x21___closed__3; lean_object* l_Lean_PrettyPrinter_Formatter_nonReservedSymbol_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -7332,192 +7338,237 @@ return x_3; lean_object* l_Lean_Parser_Tactic_case___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_case___elambda__1___closed__4; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_3 = l_Lean_Parser_Tactic_indentedNonEmptySeq; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); +x_5 = l_Lean_Parser_Tactic_case___elambda__1___closed__4; +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); lean_inc(x_2); lean_inc(x_1); -x_5 = l_Lean_Parser_tryAnti(x_1, x_2); -if (x_5 == 0) +x_7 = l_Lean_Parser_tryAnti(x_1, x_2); +if (x_7 == 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_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_6); +x_8 = lean_unsigned_to_nat(1024u); +x_9 = l_Lean_Parser_checkPrecFn(x_8, x_1, x_2); +x_10 = lean_ctor_get(x_9, 3); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_9 = lean_ctor_get(x_7, 0); -lean_inc(x_9); -x_10 = lean_array_get_size(x_9); -lean_dec(x_9); -x_11 = l_Lean_Parser_Tactic_case___elambda__1___closed__5; -x_12 = l_Lean_Parser_Tactic_case___elambda__1___closed__7; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +x_12 = lean_array_get_size(x_11); +lean_dec(x_11); +x_13 = l_Lean_Parser_Tactic_case___elambda__1___closed__5; +x_14 = l_Lean_Parser_Tactic_case___elambda__1___closed__7; lean_inc(x_1); -x_13 = l_Lean_Parser_nonReservedSymbolFnAux(x_11, x_12, x_1, x_7); -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_inc(x_1); -x_15 = l_Lean_Parser_ident___elambda__1(x_1, x_13); +x_15 = l_Lean_Parser_nonReservedSymbolFnAux(x_13, x_14, x_1, x_9); x_16 = lean_ctor_get(x_15, 3); lean_inc(x_16); if (lean_obj_tag(x_16) == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_17 = l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___closed__2; -x_18 = lean_unsigned_to_nat(0u); -x_19 = l_Lean_Parser_categoryParser___elambda__1(x_17, x_18, x_1, x_15); -x_20 = l_Lean_Parser_Tactic_case___elambda__1___closed__2; -x_21 = l_Lean_Parser_ParserState_mkNode(x_19, x_20, x_10); -return x_21; -} -else +lean_object* x_17; lean_object* x_18; +lean_inc(x_1); +x_17 = l_Lean_Parser_ident___elambda__1(x_1, x_15); +x_18 = lean_ctor_get(x_17, 3); +lean_inc(x_18); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_22; lean_object* x_23; -lean_dec(x_16); -lean_dec(x_1); +lean_object* x_19; lean_object* x_20; +lean_inc(x_1); +x_19 = l_Lean_Parser_darrow___elambda__1(x_1, x_17); +x_20 = lean_ctor_get(x_19, 3); +lean_inc(x_20); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_apply_2(x_4, x_1, x_19); x_22 = l_Lean_Parser_Tactic_case___elambda__1___closed__2; -x_23 = l_Lean_Parser_ParserState_mkNode(x_15, x_22, x_10); +x_23 = l_Lean_Parser_ParserState_mkNode(x_21, x_22, x_12); return x_23; } -} else { lean_object* x_24; lean_object* x_25; -lean_dec(x_14); +lean_dec(x_20); +lean_dec(x_4); lean_dec(x_1); x_24 = l_Lean_Parser_Tactic_case___elambda__1___closed__2; -x_25 = l_Lean_Parser_ParserState_mkNode(x_13, x_24, x_10); +x_25 = l_Lean_Parser_ParserState_mkNode(x_19, x_24, x_12); return x_25; } } else { -lean_dec(x_8); +lean_object* x_26; lean_object* x_27; +lean_dec(x_18); +lean_dec(x_4); lean_dec(x_1); -return x_7; +x_26 = l_Lean_Parser_Tactic_case___elambda__1___closed__2; +x_27 = l_Lean_Parser_ParserState_mkNode(x_17, x_26, x_12); +return x_27; } } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_26 = lean_ctor_get(x_2, 0); -lean_inc(x_26); -x_27 = lean_array_get_size(x_26); -lean_dec(x_26); -x_28 = lean_ctor_get(x_2, 1); -lean_inc(x_28); -lean_inc(x_1); -x_29 = lean_apply_2(x_4, x_1, x_2); -x_30 = lean_ctor_get(x_29, 3); +lean_object* x_28; lean_object* x_29; +lean_dec(x_16); +lean_dec(x_4); +lean_dec(x_1); +x_28 = l_Lean_Parser_Tactic_case___elambda__1___closed__2; +x_29 = l_Lean_Parser_ParserState_mkNode(x_15, x_28, x_12); +return x_29; +} +} +else +{ +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_1); +return x_9; +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_30 = lean_ctor_get(x_2, 0); lean_inc(x_30); -if (lean_obj_tag(x_30) == 0) -{ -lean_dec(x_28); -lean_dec(x_27); -lean_dec(x_1); -return x_29; -} -else -{ -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); +x_31 = lean_array_get_size(x_30); lean_dec(x_30); -x_32 = lean_ctor_get(x_29, 1); +x_32 = lean_ctor_get(x_2, 1); lean_inc(x_32); -x_33 = lean_nat_dec_eq(x_32, x_28); +lean_inc(x_1); +x_33 = lean_apply_2(x_6, x_1, x_2); +x_34 = lean_ctor_get(x_33, 3); +lean_inc(x_34); +if (lean_obj_tag(x_34) == 0) +{ lean_dec(x_32); -if (x_33 == 0) -{ lean_dec(x_31); -lean_dec(x_28); -lean_dec(x_27); +lean_dec(x_4); lean_dec(x_1); -return x_29; +return x_33; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -lean_inc(x_28); -x_34 = l_Lean_Parser_ParserState_restore(x_29, x_27, x_28); -lean_dec(x_27); -x_35 = lean_unsigned_to_nat(1024u); -x_36 = l_Lean_Parser_checkPrecFn(x_35, x_1, x_34); -x_37 = lean_ctor_get(x_36, 3); -lean_inc(x_37); -if (lean_obj_tag(x_37) == 0) +lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +lean_dec(x_34); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +x_37 = lean_nat_dec_eq(x_36, x_32); +lean_dec(x_36); +if (x_37 == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_38 = lean_ctor_get(x_36, 0); -lean_inc(x_38); -x_39 = lean_array_get_size(x_38); -lean_dec(x_38); -x_40 = l_Lean_Parser_Tactic_case___elambda__1___closed__5; -x_41 = l_Lean_Parser_Tactic_case___elambda__1___closed__7; +lean_dec(x_35); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_4); +lean_dec(x_1); +return x_33; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_inc(x_32); +x_38 = l_Lean_Parser_ParserState_restore(x_33, x_31, x_32); +lean_dec(x_31); +x_39 = lean_unsigned_to_nat(1024u); +x_40 = l_Lean_Parser_checkPrecFn(x_39, x_1, x_38); +x_41 = lean_ctor_get(x_40, 3); +lean_inc(x_41); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_40, 0); +lean_inc(x_42); +x_43 = lean_array_get_size(x_42); +lean_dec(x_42); +x_44 = l_Lean_Parser_Tactic_case___elambda__1___closed__5; +x_45 = l_Lean_Parser_Tactic_case___elambda__1___closed__7; lean_inc(x_1); -x_42 = l_Lean_Parser_nonReservedSymbolFnAux(x_40, x_41, x_1, x_36); -x_43 = lean_ctor_get(x_42, 3); -lean_inc(x_43); -if (lean_obj_tag(x_43) == 0) +x_46 = l_Lean_Parser_nonReservedSymbolFnAux(x_44, x_45, x_1, x_40); +x_47 = lean_ctor_get(x_46, 3); +lean_inc(x_47); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_44; lean_object* x_45; +lean_object* x_48; lean_object* x_49; lean_inc(x_1); -x_44 = l_Lean_Parser_ident___elambda__1(x_1, x_42); -x_45 = lean_ctor_get(x_44, 3); -lean_inc(x_45); -if (lean_obj_tag(x_45) == 0) +x_48 = l_Lean_Parser_ident___elambda__1(x_1, x_46); +x_49 = lean_ctor_get(x_48, 3); +lean_inc(x_49); +if (lean_obj_tag(x_49) == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_46 = l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___closed__2; -x_47 = lean_unsigned_to_nat(0u); -x_48 = l_Lean_Parser_categoryParser___elambda__1(x_46, x_47, x_1, x_44); -x_49 = l_Lean_Parser_Tactic_case___elambda__1___closed__2; -x_50 = l_Lean_Parser_ParserState_mkNode(x_48, x_49, x_39); -x_51 = l_Lean_Parser_mergeOrElseErrors(x_50, x_31, x_28); -lean_dec(x_28); -return x_51; +lean_object* x_50; lean_object* x_51; +lean_inc(x_1); +x_50 = l_Lean_Parser_darrow___elambda__1(x_1, x_48); +x_51 = lean_ctor_get(x_50, 3); +lean_inc(x_51); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_apply_2(x_4, x_1, x_50); +x_53 = l_Lean_Parser_Tactic_case___elambda__1___closed__2; +x_54 = l_Lean_Parser_ParserState_mkNode(x_52, x_53, x_43); +x_55 = l_Lean_Parser_mergeOrElseErrors(x_54, x_35, x_32); +lean_dec(x_32); +return x_55; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -lean_dec(x_45); +lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_51); +lean_dec(x_4); lean_dec(x_1); -x_52 = l_Lean_Parser_Tactic_case___elambda__1___closed__2; -x_53 = l_Lean_Parser_ParserState_mkNode(x_44, x_52, x_39); -x_54 = l_Lean_Parser_mergeOrElseErrors(x_53, x_31, x_28); -lean_dec(x_28); -return x_54; -} -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -lean_dec(x_43); -lean_dec(x_1); -x_55 = l_Lean_Parser_Tactic_case___elambda__1___closed__2; -x_56 = l_Lean_Parser_ParserState_mkNode(x_42, x_55, x_39); -x_57 = l_Lean_Parser_mergeOrElseErrors(x_56, x_31, x_28); -lean_dec(x_28); -return x_57; -} -} -else -{ -lean_object* x_58; -lean_dec(x_37); -lean_dec(x_1); -x_58 = l_Lean_Parser_mergeOrElseErrors(x_36, x_31, x_28); -lean_dec(x_28); +x_56 = l_Lean_Parser_Tactic_case___elambda__1___closed__2; +x_57 = l_Lean_Parser_ParserState_mkNode(x_50, x_56, x_43); +x_58 = l_Lean_Parser_mergeOrElseErrors(x_57, x_35, x_32); +lean_dec(x_32); return x_58; } } +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_dec(x_49); +lean_dec(x_4); +lean_dec(x_1); +x_59 = l_Lean_Parser_Tactic_case___elambda__1___closed__2; +x_60 = l_Lean_Parser_ParserState_mkNode(x_48, x_59, x_43); +x_61 = l_Lean_Parser_mergeOrElseErrors(x_60, x_35, x_32); +lean_dec(x_32); +return x_61; +} +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_47); +lean_dec(x_4); +lean_dec(x_1); +x_62 = l_Lean_Parser_Tactic_case___elambda__1___closed__2; +x_63 = l_Lean_Parser_ParserState_mkNode(x_46, x_62, x_43); +x_64 = l_Lean_Parser_mergeOrElseErrors(x_63, x_35, x_32); +lean_dec(x_32); +return x_64; +} +} +else +{ +lean_object* x_65; +lean_dec(x_41); +lean_dec(x_4); +lean_dec(x_1); +x_65 = l_Lean_Parser_mergeOrElseErrors(x_40, x_35, x_32); +lean_dec(x_32); +return x_65; +} +} } } } @@ -7536,10 +7587,10 @@ lean_object* _init_l_Lean_Parser_Tactic_case___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Parser_ident; +x_1 = l_Lean_Parser_darrow; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Tactic_indentedNonEmptySeq___closed__1; +x_3 = l_Lean_Parser_Tactic_indentedNonEmptySeq; x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); x_5 = l_Lean_Parser_andthenInfo(x_2, x_4); @@ -7549,20 +7600,22 @@ return x_5; lean_object* _init_l_Lean_Parser_Tactic_case___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_case___closed__1; -x_2 = l_Lean_Parser_Tactic_case___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_ident; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Tactic_case___closed__2; +x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); +return x_4; } } lean_object* _init_l_Lean_Parser_Tactic_case___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_case___elambda__1___closed__2; +x_1 = l_Lean_Parser_Tactic_case___closed__1; x_2 = l_Lean_Parser_Tactic_case___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; } } @@ -7570,25 +7623,35 @@ lean_object* _init_l_Lean_Parser_Tactic_case___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_Tactic_case___elambda__1___closed__2; x_2 = l_Lean_Parser_Tactic_case___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_Tactic_case___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_Tactic_case___closed__5; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Tactic_case___closed__7() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_case___elambda__1___closed__4; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Tactic_case___closed__5; +x_3 = l_Lean_Parser_Tactic_case___closed__6; x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); return x_4; } } -lean_object* _init_l_Lean_Parser_Tactic_case___closed__7() { +lean_object* _init_l_Lean_Parser_Tactic_case___closed__8() { _start: { lean_object* x_1; @@ -7596,12 +7659,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_case___elambda__1), 2, 0); return x_1; } } -lean_object* _init_l_Lean_Parser_Tactic_case___closed__8() { +lean_object* _init_l_Lean_Parser_Tactic_case___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_case___closed__6; -x_2 = l_Lean_Parser_Tactic_case___closed__7; +x_1 = l_Lean_Parser_Tactic_case___closed__7; +x_2 = l_Lean_Parser_Tactic_case___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); @@ -7612,7 +7675,7 @@ lean_object* _init_l_Lean_Parser_Tactic_case() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Tactic_case___closed__8; +x_1 = l_Lean_Parser_Tactic_case___closed__9; return x_1; } } @@ -7657,8 +7720,8 @@ lean_object* _init_l_Lean_Parser_Tactic_case_formatter___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Level_ident_formatter___closed__1; -x_2 = l_Lean_Parser_Tactic_indentedNonEmptySeq_formatter___lambda__1___closed__5; +x_1 = l_Lean_Parser_Term_matchAlt_formatter___closed__1; +x_2 = l_Lean_Parser_Term_byTactic_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); @@ -7669,7 +7732,7 @@ lean_object* _init_l_Lean_Parser_Tactic_case_formatter___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_case_formatter___closed__2; +x_1 = l_Lean_Parser_Level_ident_formatter___closed__1; x_2 = l_Lean_Parser_Tactic_case_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); @@ -7680,10 +7743,22 @@ return x_3; lean_object* _init_l_Lean_Parser_Tactic_case_formatter___closed__5() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_case_formatter___closed__2; +x_2 = l_Lean_Parser_Tactic_case_formatter___closed__4; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Tactic_case_formatter___closed__6() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_case___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_case_formatter___closed__4; +x_3 = l_Lean_Parser_Tactic_case_formatter___closed__5; 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); @@ -7696,7 +7771,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_case_formatter___closed__1; -x_7 = l_Lean_Parser_Tactic_case_formatter___closed__5; +x_7 = l_Lean_Parser_Tactic_case_formatter___closed__6; 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; } @@ -7737,8 +7812,8 @@ lean_object* _init_l_Lean_Parser_Tactic_case_parenthesizer___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Level_ident_parenthesizer___closed__1; -x_2 = l_Lean_Parser_Tactic_indentedNonEmptySeq_parenthesizer___lambda__1___closed__1; +x_1 = l_Lean_Parser_Term_matchAlt_parenthesizer___closed__1; +x_2 = l_Lean_Parser_Term_byTactic_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); @@ -7749,7 +7824,7 @@ lean_object* _init_l_Lean_Parser_Tactic_case_parenthesizer___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_mkAntiquot_parenthesizer___rarg___closed__8; +x_1 = l_Lean_Parser_Level_ident_parenthesizer___closed__1; x_2 = l_Lean_Parser_Tactic_case_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); @@ -7760,10 +7835,22 @@ return x_3; lean_object* _init_l_Lean_Parser_Tactic_case_parenthesizer___closed__4() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_mkAntiquot_parenthesizer___rarg___closed__8; +x_2 = l_Lean_Parser_Tactic_case_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_case_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_case___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_case_parenthesizer___closed__3; +x_3 = l_Lean_Parser_Tactic_case_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); @@ -7776,7 +7863,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_case_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Tactic_case_parenthesizer___closed__4; +x_7 = l_Lean_Parser_Tactic_case_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; } @@ -7879,59 +7966,62 @@ return x_3; lean_object* l_Lean_Parser_Tactic_allGoals___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_allGoals___elambda__1___closed__4; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_3 = l_Lean_Parser_Tactic_indentedNonEmptySeq; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); +x_5 = l_Lean_Parser_Tactic_allGoals___elambda__1___closed__4; +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); lean_inc(x_2); lean_inc(x_1); -x_5 = l_Lean_Parser_tryAnti(x_1, x_2); -if (x_5 == 0) +x_7 = l_Lean_Parser_tryAnti(x_1, x_2); +if (x_7 == 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_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_6); +x_8 = lean_unsigned_to_nat(1024u); +x_9 = l_Lean_Parser_checkPrecFn(x_8, x_1, x_2); +x_10 = lean_ctor_get(x_9, 3); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_9 = lean_ctor_get(x_7, 0); -lean_inc(x_9); -x_10 = lean_array_get_size(x_9); -lean_dec(x_9); -x_11 = l_Lean_Parser_Tactic_allGoals___elambda__1___closed__6; -x_12 = l_Lean_Parser_Tactic_allGoals___elambda__1___closed__8; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +x_12 = lean_array_get_size(x_11); +lean_dec(x_11); +x_13 = l_Lean_Parser_Tactic_allGoals___elambda__1___closed__6; +x_14 = l_Lean_Parser_Tactic_allGoals___elambda__1___closed__8; lean_inc(x_1); -x_13 = l_Lean_Parser_nonReservedSymbolFnAux(x_11, x_12, x_1, x_7); -x_14 = lean_ctor_get(x_13, 3); -lean_inc(x_14); -if (lean_obj_tag(x_14) == 0) +x_15 = l_Lean_Parser_nonReservedSymbolFnAux(x_13, x_14, x_1, x_9); +x_16 = lean_ctor_get(x_15, 3); +lean_inc(x_16); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_15 = l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___closed__2; -x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Lean_Parser_categoryParser___elambda__1(x_15, x_16, x_1, x_13); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_apply_2(x_4, x_1, x_15); x_18 = l_Lean_Parser_Tactic_allGoals___elambda__1___closed__2; -x_19 = l_Lean_Parser_ParserState_mkNode(x_17, x_18, x_10); +x_19 = l_Lean_Parser_ParserState_mkNode(x_17, x_18, x_12); return x_19; } else { lean_object* x_20; lean_object* x_21; -lean_dec(x_14); +lean_dec(x_16); +lean_dec(x_4); lean_dec(x_1); x_20 = l_Lean_Parser_Tactic_allGoals___elambda__1___closed__2; -x_21 = l_Lean_Parser_ParserState_mkNode(x_13, x_20, x_10); +x_21 = l_Lean_Parser_ParserState_mkNode(x_15, x_20, x_12); return x_21; } } else { -lean_dec(x_8); +lean_dec(x_10); +lean_dec(x_4); lean_dec(x_1); -return x_7; +return x_9; } } else @@ -7944,13 +8034,14 @@ lean_dec(x_22); x_24 = lean_ctor_get(x_2, 1); lean_inc(x_24); lean_inc(x_1); -x_25 = lean_apply_2(x_4, x_1, x_2); +x_25 = lean_apply_2(x_6, x_1, x_2); x_26 = lean_ctor_get(x_25, 3); lean_inc(x_26); if (lean_obj_tag(x_26) == 0) { lean_dec(x_24); lean_dec(x_23); +lean_dec(x_4); lean_dec(x_1); return x_25; } @@ -7969,6 +8060,7 @@ if (x_29 == 0) lean_dec(x_27); lean_dec(x_24); lean_dec(x_23); +lean_dec(x_4); lean_dec(x_1); return x_25; } @@ -7997,36 +8089,36 @@ x_39 = lean_ctor_get(x_38, 3); lean_inc(x_39); if (lean_obj_tag(x_39) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_40 = l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___closed__2; -x_41 = lean_unsigned_to_nat(0u); -x_42 = l_Lean_Parser_categoryParser___elambda__1(x_40, x_41, x_1, x_38); -x_43 = l_Lean_Parser_Tactic_allGoals___elambda__1___closed__2; -x_44 = l_Lean_Parser_ParserState_mkNode(x_42, x_43, x_35); -x_45 = l_Lean_Parser_mergeOrElseErrors(x_44, x_27, x_24); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_apply_2(x_4, x_1, x_38); +x_41 = l_Lean_Parser_Tactic_allGoals___elambda__1___closed__2; +x_42 = l_Lean_Parser_ParserState_mkNode(x_40, x_41, x_35); +x_43 = l_Lean_Parser_mergeOrElseErrors(x_42, x_27, x_24); lean_dec(x_24); -return x_45; +return x_43; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_dec(x_39); +lean_dec(x_4); lean_dec(x_1); -x_46 = l_Lean_Parser_Tactic_allGoals___elambda__1___closed__2; -x_47 = l_Lean_Parser_ParserState_mkNode(x_38, x_46, x_35); -x_48 = l_Lean_Parser_mergeOrElseErrors(x_47, x_27, x_24); +x_44 = l_Lean_Parser_Tactic_allGoals___elambda__1___closed__2; +x_45 = l_Lean_Parser_ParserState_mkNode(x_38, x_44, x_35); +x_46 = l_Lean_Parser_mergeOrElseErrors(x_45, x_27, x_24); lean_dec(x_24); -return x_48; +return x_46; } } else { -lean_object* x_49; +lean_object* x_47; lean_dec(x_33); +lean_dec(x_4); lean_dec(x_1); -x_49 = l_Lean_Parser_mergeOrElseErrors(x_32, x_27, x_24); +x_47 = l_Lean_Parser_mergeOrElseErrors(x_32, x_27, x_24); lean_dec(x_24); -return x_49; +return x_47; } } } @@ -8047,7 +8139,7 @@ lean_object* _init_l_Lean_Parser_Tactic_allGoals___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_indentedNonEmptySeq___closed__1; +x_1 = l_Lean_Parser_Tactic_indentedNonEmptySeq; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_Lean_Parser_Tactic_allGoals___closed__1; @@ -8157,7 +8249,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_allGoals_formatter___closed__2; -x_2 = l_Lean_Parser_Tactic_indentedNonEmptySeq_formatter___lambda__1___closed__5; +x_2 = l_Lean_Parser_Term_byTactic_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); @@ -8225,7 +8317,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_mkAntiquot_parenthesizer___rarg___closed__8; -x_2 = l_Lean_Parser_Tactic_indentedNonEmptySeq_parenthesizer___lambda__1___closed__1; +x_2 = l_Lean_Parser_Term_byTactic_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); @@ -9136,59 +9228,62 @@ return x_3; lean_object* l_Lean_Parser_Tactic_failIfSuccess___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_failIfSuccess___elambda__1___closed__4; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_3 = l_Lean_Parser_Tactic_indentedNonEmptySeq; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); +x_5 = l_Lean_Parser_Tactic_failIfSuccess___elambda__1___closed__4; +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); lean_inc(x_2); lean_inc(x_1); -x_5 = l_Lean_Parser_tryAnti(x_1, x_2); -if (x_5 == 0) +x_7 = l_Lean_Parser_tryAnti(x_1, x_2); +if (x_7 == 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_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_6); +x_8 = lean_unsigned_to_nat(1024u); +x_9 = l_Lean_Parser_checkPrecFn(x_8, x_1, x_2); +x_10 = lean_ctor_get(x_9, 3); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_9 = lean_ctor_get(x_7, 0); -lean_inc(x_9); -x_10 = lean_array_get_size(x_9); -lean_dec(x_9); -x_11 = l_Lean_Parser_Tactic_failIfSuccess___elambda__1___closed__6; -x_12 = l_Lean_Parser_Tactic_failIfSuccess___elambda__1___closed__8; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +x_12 = lean_array_get_size(x_11); +lean_dec(x_11); +x_13 = l_Lean_Parser_Tactic_failIfSuccess___elambda__1___closed__6; +x_14 = l_Lean_Parser_Tactic_failIfSuccess___elambda__1___closed__8; lean_inc(x_1); -x_13 = l_Lean_Parser_nonReservedSymbolFnAux(x_11, x_12, x_1, x_7); -x_14 = lean_ctor_get(x_13, 3); -lean_inc(x_14); -if (lean_obj_tag(x_14) == 0) +x_15 = l_Lean_Parser_nonReservedSymbolFnAux(x_13, x_14, x_1, x_9); +x_16 = lean_ctor_get(x_15, 3); +lean_inc(x_16); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_15 = l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___closed__2; -x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Lean_Parser_categoryParser___elambda__1(x_15, x_16, x_1, x_13); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_apply_2(x_4, x_1, x_15); x_18 = l_Lean_Parser_Tactic_failIfSuccess___elambda__1___closed__2; -x_19 = l_Lean_Parser_ParserState_mkNode(x_17, x_18, x_10); +x_19 = l_Lean_Parser_ParserState_mkNode(x_17, x_18, x_12); return x_19; } else { lean_object* x_20; lean_object* x_21; -lean_dec(x_14); +lean_dec(x_16); +lean_dec(x_4); lean_dec(x_1); x_20 = l_Lean_Parser_Tactic_failIfSuccess___elambda__1___closed__2; -x_21 = l_Lean_Parser_ParserState_mkNode(x_13, x_20, x_10); +x_21 = l_Lean_Parser_ParserState_mkNode(x_15, x_20, x_12); return x_21; } } else { -lean_dec(x_8); +lean_dec(x_10); +lean_dec(x_4); lean_dec(x_1); -return x_7; +return x_9; } } else @@ -9201,13 +9296,14 @@ lean_dec(x_22); x_24 = lean_ctor_get(x_2, 1); lean_inc(x_24); lean_inc(x_1); -x_25 = lean_apply_2(x_4, x_1, x_2); +x_25 = lean_apply_2(x_6, x_1, x_2); x_26 = lean_ctor_get(x_25, 3); lean_inc(x_26); if (lean_obj_tag(x_26) == 0) { lean_dec(x_24); lean_dec(x_23); +lean_dec(x_4); lean_dec(x_1); return x_25; } @@ -9226,6 +9322,7 @@ if (x_29 == 0) lean_dec(x_27); lean_dec(x_24); lean_dec(x_23); +lean_dec(x_4); lean_dec(x_1); return x_25; } @@ -9254,36 +9351,36 @@ x_39 = lean_ctor_get(x_38, 3); lean_inc(x_39); if (lean_obj_tag(x_39) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_40 = l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___closed__2; -x_41 = lean_unsigned_to_nat(0u); -x_42 = l_Lean_Parser_categoryParser___elambda__1(x_40, x_41, x_1, x_38); -x_43 = l_Lean_Parser_Tactic_failIfSuccess___elambda__1___closed__2; -x_44 = l_Lean_Parser_ParserState_mkNode(x_42, x_43, x_35); -x_45 = l_Lean_Parser_mergeOrElseErrors(x_44, x_27, x_24); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_apply_2(x_4, x_1, x_38); +x_41 = l_Lean_Parser_Tactic_failIfSuccess___elambda__1___closed__2; +x_42 = l_Lean_Parser_ParserState_mkNode(x_40, x_41, x_35); +x_43 = l_Lean_Parser_mergeOrElseErrors(x_42, x_27, x_24); lean_dec(x_24); -return x_45; +return x_43; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_dec(x_39); +lean_dec(x_4); lean_dec(x_1); -x_46 = l_Lean_Parser_Tactic_failIfSuccess___elambda__1___closed__2; -x_47 = l_Lean_Parser_ParserState_mkNode(x_38, x_46, x_35); -x_48 = l_Lean_Parser_mergeOrElseErrors(x_47, x_27, x_24); +x_44 = l_Lean_Parser_Tactic_failIfSuccess___elambda__1___closed__2; +x_45 = l_Lean_Parser_ParserState_mkNode(x_38, x_44, x_35); +x_46 = l_Lean_Parser_mergeOrElseErrors(x_45, x_27, x_24); lean_dec(x_24); -return x_48; +return x_46; } } else { -lean_object* x_49; +lean_object* x_47; lean_dec(x_33); +lean_dec(x_4); lean_dec(x_1); -x_49 = l_Lean_Parser_mergeOrElseErrors(x_32, x_27, x_24); +x_47 = l_Lean_Parser_mergeOrElseErrors(x_32, x_27, x_24); lean_dec(x_24); -return x_49; +return x_47; } } } @@ -9304,7 +9401,7 @@ lean_object* _init_l_Lean_Parser_Tactic_failIfSuccess___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_indentedNonEmptySeq___closed__1; +x_1 = l_Lean_Parser_Tactic_indentedNonEmptySeq; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_Lean_Parser_Tactic_failIfSuccess___closed__1; @@ -9414,7 +9511,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_failIfSuccess_formatter___closed__2; -x_2 = l_Lean_Parser_Tactic_indentedNonEmptySeq_formatter___lambda__1___closed__5; +x_2 = l_Lean_Parser_Term_byTactic_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); @@ -13712,100 +13809,105 @@ x_1 = l_Lean_Parser_Tactic_majorPremise___closed__6; return x_1; } } -lean_object* l_Lean_Parser_Tactic_holeOrTactic___elambda__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Parser_Tactic_altRHS___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; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_array_get_size(x_3); -lean_dec(x_3); -x_5 = lean_ctor_get(x_2, 1); +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_3 = l_Lean_Parser_Tactic_indentedNonEmptySeq; +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_2, 0); lean_inc(x_5); -lean_inc(x_1); -x_6 = l_Lean_Parser_Term_hole___elambda__1(x_1, x_2); -x_7 = lean_ctor_get(x_6, 3); +x_6 = lean_array_get_size(x_5); +lean_dec(x_5); +x_7 = lean_ctor_get(x_2, 1); lean_inc(x_7); -if (lean_obj_tag(x_7) == 0) -{ -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_6; -} -else -{ -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -lean_dec(x_7); -x_9 = lean_ctor_get(x_6, 1); -lean_inc(x_9); -x_10 = lean_nat_dec_eq(x_9, x_5); -lean_dec(x_9); -if (x_10 == 0) -{ -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_6; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -lean_inc(x_5); -x_11 = l_Lean_Parser_ParserState_restore(x_6, x_4, x_5); -lean_dec(x_4); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_array_get_size(x_12); -lean_dec(x_12); lean_inc(x_1); -x_14 = l_Lean_Parser_Term_syntheticHole___elambda__1(x_1, x_11); -x_15 = lean_ctor_get(x_14, 3); -lean_inc(x_15); -if (lean_obj_tag(x_15) == 0) +x_8 = l_Lean_Parser_Term_hole___elambda__1(x_1, x_2); +x_9 = lean_ctor_get(x_8, 3); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_16; -lean_dec(x_13); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); lean_dec(x_1); -x_16 = l_Lean_Parser_mergeOrElseErrors(x_14, x_8, x_5); -lean_dec(x_5); -return x_16; +return x_8; } else { -lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_ctor_get(x_15, 0); +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_11); +x_12 = lean_nat_dec_eq(x_11, x_7); +lean_dec(x_11); +if (x_12 == 0) +{ +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +return x_8; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_inc(x_7); +x_13 = l_Lean_Parser_ParserState_restore(x_8, x_6, x_7); +lean_dec(x_6); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_array_get_size(x_14); +lean_dec(x_14); +lean_inc(x_1); +x_16 = l_Lean_Parser_Term_syntheticHole___elambda__1(x_1, x_13); +x_17 = lean_ctor_get(x_16, 3); lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_14, 1); -lean_inc(x_18); -x_19 = lean_nat_dec_eq(x_18, x_5); -lean_dec(x_18); -if (x_19 == 0) +if (lean_obj_tag(x_17) == 0) { -lean_object* x_20; -lean_dec(x_17); -lean_dec(x_13); +lean_object* x_18; +lean_dec(x_15); +lean_dec(x_4); lean_dec(x_1); -x_20 = l_Lean_Parser_mergeOrElseErrors(x_14, x_8, x_5); -lean_dec(x_5); -return x_20; +x_18 = l_Lean_Parser_mergeOrElseErrors(x_16, x_10, x_7); +lean_dec(x_7); +return x_18; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -lean_inc(x_5); -x_21 = l_Lean_Parser_ParserState_restore(x_14, x_13, x_5); -lean_dec(x_13); -x_22 = l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___closed__2; -x_23 = lean_unsigned_to_nat(0u); -x_24 = l_Lean_Parser_categoryParser___elambda__1(x_22, x_23, x_1, x_21); -x_25 = l_Lean_Parser_mergeOrElseErrors(x_24, x_17, x_5); -x_26 = l_Lean_Parser_mergeOrElseErrors(x_25, x_8, x_5); -lean_dec(x_5); +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +x_21 = lean_nat_dec_eq(x_20, x_7); +lean_dec(x_20); +if (x_21 == 0) +{ +lean_object* x_22; +lean_dec(x_19); +lean_dec(x_15); +lean_dec(x_4); +lean_dec(x_1); +x_22 = l_Lean_Parser_mergeOrElseErrors(x_16, x_10, x_7); +lean_dec(x_7); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_inc(x_7); +x_23 = l_Lean_Parser_ParserState_restore(x_16, x_15, x_7); +lean_dec(x_15); +x_24 = lean_apply_2(x_4, x_1, x_23); +x_25 = l_Lean_Parser_mergeOrElseErrors(x_24, x_19, x_7); +x_26 = l_Lean_Parser_mergeOrElseErrors(x_25, x_10, x_7); +lean_dec(x_7); return x_26; } } @@ -13813,57 +13915,57 @@ return x_26; } } } -lean_object* _init_l_Lean_Parser_Tactic_holeOrTactic___closed__1() { +lean_object* _init_l_Lean_Parser_Tactic_altRHS___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Parser_Term_syntheticHole; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Tactic_indentedNonEmptySeq___closed__1; +x_3 = l_Lean_Parser_Tactic_indentedNonEmptySeq; x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); x_5 = l_Lean_Parser_orelseInfo(x_2, x_4); return x_5; } } -lean_object* _init_l_Lean_Parser_Tactic_holeOrTactic___closed__2() { +lean_object* _init_l_Lean_Parser_Tactic_altRHS___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_hole; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Tactic_holeOrTactic___closed__1; +x_3 = l_Lean_Parser_Tactic_altRHS___closed__1; x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); return x_4; } } -lean_object* _init_l_Lean_Parser_Tactic_holeOrTactic___closed__3() { +lean_object* _init_l_Lean_Parser_Tactic_altRHS___closed__3() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_holeOrTactic___elambda__1), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_altRHS___elambda__1), 2, 0); return x_1; } } -lean_object* _init_l_Lean_Parser_Tactic_holeOrTactic___closed__4() { +lean_object* _init_l_Lean_Parser_Tactic_altRHS___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_holeOrTactic___closed__2; -x_2 = l_Lean_Parser_Tactic_holeOrTactic___closed__3; +x_1 = l_Lean_Parser_Tactic_altRHS___closed__2; +x_2 = l_Lean_Parser_Tactic_altRHS___closed__3; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l_Lean_Parser_Tactic_holeOrTactic() { +lean_object* _init_l_Lean_Parser_Tactic_altRHS() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Tactic_holeOrTactic___closed__4; +x_1 = l_Lean_Parser_Tactic_altRHS___closed__4; return x_1; } } @@ -13902,7 +14004,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l_Lean_Parser_darrow; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Tactic_holeOrTactic; +x_3 = l_Lean_Parser_Tactic_altRHS; x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); x_5 = l_Lean_Parser_andthenInfo(x_2, x_4); @@ -13914,7 +14016,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_darrow___closed__2; -x_2 = l_Lean_Parser_Tactic_holeOrTactic___closed__3; +x_2 = l_Lean_Parser_Tactic_altRHS___closed__3; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -17296,24 +17398,24 @@ x_7 = l_Lean_PrettyPrinter_Formatter_concatArgs(x_6, x_1, x_2, x_3, x_4, x_5); return x_7; } } -lean_object* _init_l_Lean_Parser_Tactic_holeOrTactic_formatter___closed__1() { +lean_object* _init_l_Lean_Parser_Tactic_altRHS_formatter___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___regBuiltin_Lean_Parser_Term_syntheticHole_formatter___closed__1; -x_2 = l_Lean_Parser_Tactic_indentedNonEmptySeq_formatter___lambda__1___closed__5; +x_2 = l_Lean_Parser_Term_byTactic_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; } } -lean_object* l_Lean_Parser_Tactic_holeOrTactic_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Parser_Tactic_altRHS_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___regBuiltin_Lean_Parser_Term_hole_formatter___closed__1; -x_7 = l_Lean_Parser_Tactic_holeOrTactic_formatter___closed__1; +x_7 = l_Lean_Parser_Tactic_altRHS_formatter___closed__1; 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; } @@ -17322,7 +17424,7 @@ lean_object* _init_l_Lean_Parser_Tactic_inductionAlt_formatter___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_holeOrTactic_formatter), 5, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_altRHS_formatter), 5, 0); return x_1; } } @@ -17685,24 +17787,24 @@ x_7 = l_Lean_PrettyPrinter_Parenthesizer_visitArgs(x_6, x_1, x_2, x_3, x_4, x_5) return x_7; } } -lean_object* _init_l_Lean_Parser_Tactic_holeOrTactic_parenthesizer___closed__1() { +lean_object* _init_l_Lean_Parser_Tactic_altRHS_parenthesizer___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___regBuiltin_Lean_Parser_Term_syntheticHole_parenthesizer___closed__1; -x_2 = l_Lean_Parser_Tactic_indentedNonEmptySeq_parenthesizer___lambda__1___closed__1; +x_2 = l_Lean_Parser_Term_byTactic_parenthesizer___closed__2; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; } } -lean_object* l_Lean_Parser_Tactic_holeOrTactic_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Parser_Tactic_altRHS_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___regBuiltin_Lean_Parser_Term_hole_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Tactic_holeOrTactic_parenthesizer___closed__1; +x_7 = l_Lean_Parser_Tactic_altRHS_parenthesizer___closed__1; 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; } @@ -17711,7 +17813,7 @@ lean_object* _init_l_Lean_Parser_Tactic_inductionAlt_parenthesizer___closed__1() _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_holeOrTactic_parenthesizer), 5, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_altRHS_parenthesizer), 5, 0); return x_1; } } @@ -18836,7 +18938,7 @@ lean_inc(x_15); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = l_Lean_Parser_Tactic_holeOrTactic___elambda__1(x_1, x_14); +x_16 = l_Lean_Parser_Tactic_altRHS___elambda__1(x_1, x_14); x_17 = l_Lean_Parser_Tactic_matchAlt___elambda__1___closed__1; x_18 = l_Lean_Parser_ParserState_mkNode(x_16, x_17, x_10); return x_18; @@ -18938,7 +19040,7 @@ lean_inc(x_41); if (lean_obj_tag(x_41) == 0) { lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = l_Lean_Parser_Tactic_holeOrTactic___elambda__1(x_1, x_40); +x_42 = l_Lean_Parser_Tactic_altRHS___elambda__1(x_1, x_40); x_43 = l_Lean_Parser_Tactic_matchAlt___elambda__1___closed__1; x_44 = l_Lean_Parser_ParserState_mkNode(x_42, x_43, x_36); x_45 = l_Lean_Parser_mergeOrElseErrors(x_44, x_28, x_25); @@ -28239,6 +28341,8 @@ l_Lean_Parser_Tactic_case___closed__7 = _init_l_Lean_Parser_Tactic_case___closed lean_mark_persistent(l_Lean_Parser_Tactic_case___closed__7); l_Lean_Parser_Tactic_case___closed__8 = _init_l_Lean_Parser_Tactic_case___closed__8(); lean_mark_persistent(l_Lean_Parser_Tactic_case___closed__8); +l_Lean_Parser_Tactic_case___closed__9 = _init_l_Lean_Parser_Tactic_case___closed__9(); +lean_mark_persistent(l_Lean_Parser_Tactic_case___closed__9); l_Lean_Parser_Tactic_case = _init_l_Lean_Parser_Tactic_case(); lean_mark_persistent(l_Lean_Parser_Tactic_case); res = l___regBuiltinParser_Lean_Parser_Tactic_case(lean_io_mk_world()); @@ -28254,6 +28358,8 @@ l_Lean_Parser_Tactic_case_formatter___closed__4 = _init_l_Lean_Parser_Tactic_cas lean_mark_persistent(l_Lean_Parser_Tactic_case_formatter___closed__4); l_Lean_Parser_Tactic_case_formatter___closed__5 = _init_l_Lean_Parser_Tactic_case_formatter___closed__5(); lean_mark_persistent(l_Lean_Parser_Tactic_case_formatter___closed__5); +l_Lean_Parser_Tactic_case_formatter___closed__6 = _init_l_Lean_Parser_Tactic_case_formatter___closed__6(); +lean_mark_persistent(l_Lean_Parser_Tactic_case_formatter___closed__6); l___regBuiltin_Lean_Parser_Tactic_case_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Tactic_case_formatter___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_case_formatter___closed__1); res = l___regBuiltin_Lean_Parser_Tactic_case_formatter(lean_io_mk_world()); @@ -28267,6 +28373,8 @@ l_Lean_Parser_Tactic_case_parenthesizer___closed__3 = _init_l_Lean_Parser_Tactic lean_mark_persistent(l_Lean_Parser_Tactic_case_parenthesizer___closed__3); l_Lean_Parser_Tactic_case_parenthesizer___closed__4 = _init_l_Lean_Parser_Tactic_case_parenthesizer___closed__4(); lean_mark_persistent(l_Lean_Parser_Tactic_case_parenthesizer___closed__4); +l_Lean_Parser_Tactic_case_parenthesizer___closed__5 = _init_l_Lean_Parser_Tactic_case_parenthesizer___closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_case_parenthesizer___closed__5); l___regBuiltin_Lean_Parser_Tactic_case_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Tactic_case_parenthesizer___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_case_parenthesizer___closed__1); res = l___regBuiltin_Lean_Parser_Tactic_case_parenthesizer(lean_io_mk_world()); @@ -28827,16 +28935,16 @@ l_Lean_Parser_Tactic_majorPremise___closed__6 = _init_l_Lean_Parser_Tactic_major lean_mark_persistent(l_Lean_Parser_Tactic_majorPremise___closed__6); l_Lean_Parser_Tactic_majorPremise = _init_l_Lean_Parser_Tactic_majorPremise(); lean_mark_persistent(l_Lean_Parser_Tactic_majorPremise); -l_Lean_Parser_Tactic_holeOrTactic___closed__1 = _init_l_Lean_Parser_Tactic_holeOrTactic___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_holeOrTactic___closed__1); -l_Lean_Parser_Tactic_holeOrTactic___closed__2 = _init_l_Lean_Parser_Tactic_holeOrTactic___closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_holeOrTactic___closed__2); -l_Lean_Parser_Tactic_holeOrTactic___closed__3 = _init_l_Lean_Parser_Tactic_holeOrTactic___closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_holeOrTactic___closed__3); -l_Lean_Parser_Tactic_holeOrTactic___closed__4 = _init_l_Lean_Parser_Tactic_holeOrTactic___closed__4(); -lean_mark_persistent(l_Lean_Parser_Tactic_holeOrTactic___closed__4); -l_Lean_Parser_Tactic_holeOrTactic = _init_l_Lean_Parser_Tactic_holeOrTactic(); -lean_mark_persistent(l_Lean_Parser_Tactic_holeOrTactic); +l_Lean_Parser_Tactic_altRHS___closed__1 = _init_l_Lean_Parser_Tactic_altRHS___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_altRHS___closed__1); +l_Lean_Parser_Tactic_altRHS___closed__2 = _init_l_Lean_Parser_Tactic_altRHS___closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_altRHS___closed__2); +l_Lean_Parser_Tactic_altRHS___closed__3 = _init_l_Lean_Parser_Tactic_altRHS___closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_altRHS___closed__3); +l_Lean_Parser_Tactic_altRHS___closed__4 = _init_l_Lean_Parser_Tactic_altRHS___closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_altRHS___closed__4); +l_Lean_Parser_Tactic_altRHS = _init_l_Lean_Parser_Tactic_altRHS(); +lean_mark_persistent(l_Lean_Parser_Tactic_altRHS); l_Lean_Parser_Tactic_inductionAlt___closed__1 = _init_l_Lean_Parser_Tactic_inductionAlt___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_inductionAlt___closed__1); l_Lean_Parser_Tactic_inductionAlt___closed__2 = _init_l_Lean_Parser_Tactic_inductionAlt___closed__2(); @@ -28982,8 +29090,8 @@ l_Lean_Parser_Tactic_generalizingVars_formatter___closed__1 = _init_l_Lean_Parse lean_mark_persistent(l_Lean_Parser_Tactic_generalizingVars_formatter___closed__1); l_Lean_Parser_Tactic_generalizingVars_formatter___closed__2 = _init_l_Lean_Parser_Tactic_generalizingVars_formatter___closed__2(); lean_mark_persistent(l_Lean_Parser_Tactic_generalizingVars_formatter___closed__2); -l_Lean_Parser_Tactic_holeOrTactic_formatter___closed__1 = _init_l_Lean_Parser_Tactic_holeOrTactic_formatter___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_holeOrTactic_formatter___closed__1); +l_Lean_Parser_Tactic_altRHS_formatter___closed__1 = _init_l_Lean_Parser_Tactic_altRHS_formatter___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_altRHS_formatter___closed__1); l_Lean_Parser_Tactic_inductionAlt_formatter___closed__1 = _init_l_Lean_Parser_Tactic_inductionAlt_formatter___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_inductionAlt_formatter___closed__1); l_Lean_Parser_Tactic_inductionAlt_formatter___closed__2 = _init_l_Lean_Parser_Tactic_inductionAlt_formatter___closed__2(); @@ -29037,8 +29145,8 @@ l_Lean_Parser_Tactic_majorPremise_parenthesizer___closed__3 = _init_l_Lean_Parse lean_mark_persistent(l_Lean_Parser_Tactic_majorPremise_parenthesizer___closed__3); l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_generalizingVars_parenthesizer___closed__1); -l_Lean_Parser_Tactic_holeOrTactic_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_holeOrTactic_parenthesizer___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_holeOrTactic_parenthesizer___closed__1); +l_Lean_Parser_Tactic_altRHS_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_altRHS_parenthesizer___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_altRHS_parenthesizer___closed__1); l_Lean_Parser_Tactic_inductionAlt_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_inductionAlt_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_inductionAlt_parenthesizer___closed__1); l_Lean_Parser_Tactic_inductionAlt_parenthesizer___closed__2 = _init_l_Lean_Parser_Tactic_inductionAlt_parenthesizer___closed__2();