diff --git a/stage0/src/Lean/Elab/Tactic/Basic.lean b/stage0/src/Lean/Elab/Tactic/Basic.lean index a6296d48fc..e00559ff1b 100644 --- a/stage0/src/Lean/Elab/Tactic/Basic.lean +++ b/stage0/src/Lean/Elab/Tactic/Basic.lean @@ -280,8 +280,8 @@ fun stx => liftMetaTactic $ fun mvarId => do Meta.assumption mvarId; pure [] @[builtinTactic Lean.Parser.Tactic.intro] def evalIntro : Tactic := fun stx => match_syntax stx with - | `(tactic| intro) => liftMetaTactic $ fun mvarId => do (_, mvarId) ← Meta.intro1 mvarId; pure [mvarId] - | `(tactic| intro $h) => liftMetaTactic $ fun mvarId => do (_, mvarId) ← Meta.intro mvarId h.getId; pure [mvarId] + | `(tactic| intro) => liftMetaTactic $ fun mvarId => do (_, mvarId) ← Meta.intro1 mvarId; pure [mvarId] +-- | `(tactic| intro $h) => liftMetaTactic $ fun mvarId => do (_, mvarId) ← Meta.intro mvarId h.getId; pure [mvarId] | _ => throwUnsupportedSyntax private def getIntrosSize : Expr → Nat diff --git a/stage0/src/Lean/Parser/Tactic.lean b/stage0/src/Lean/Parser/Tactic.lean index aa683e0803..37a1cd104e 100644 --- a/stage0/src/Lean/Parser/Tactic.lean +++ b/stage0/src/Lean/Parser/Tactic.lean @@ -25,7 +25,7 @@ fun c s => def ident' : Parser := ident <|> underscore -@[builtinTacticParser] def «intro» := parser! nonReservedSymbol "intro " >> optional ident' +@[builtinTacticParser] def «intro» := parser! nonReservedSymbol "intro " >> many (termParser maxPrec) @[builtinTacticParser] def «intros» := parser! nonReservedSymbol "intros " >> many ident' @[builtinTacticParser] def «revert» := parser! nonReservedSymbol "revert " >> many1 ident @[builtinTacticParser] def «clear» := parser! nonReservedSymbol "clear " >> many1 ident diff --git a/stage0/stdlib/Lean/Elab/Tactic/Basic.c b/stage0/stdlib/Lean/Elab/Tactic/Basic.c index ad1e690454..1b0b0054ce 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Basic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Basic.c @@ -50,7 +50,7 @@ lean_object* l_Lean_Elab_Tactic_monadExcept___lambda__1(lean_object*, lean_objec lean_object* l_Lean_Elab_Tactic_pruneSolvedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalChoiceAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_evalIntro___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalIntro___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalSkip(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -143,7 +143,6 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntros___closed__1; lean_object* l_Std_PersistentHashMap_empty___at_Lean_Elab_Tactic_tacticElabAttribute___spec__3; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalParen___closed__2; extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__1; -lean_object* l_Lean_Meta_intro(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic___main___spec__1(lean_object*); lean_object* l_Lean_Elab_Tactic_evalNestedTacticBlock___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_tagUntaggedGoals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -396,7 +395,6 @@ lean_object* l_Lean_Syntax_getTailWithPos___main(lean_object*); lean_object* l_Lean_setEnv___at_Lean_Elab_Tactic_BacktrackableState_restore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_tacticElabAttribute___closed__3; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntro(lean_object*); -lean_object* l_Lean_Elab_Tactic_evalIntro___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalRevert___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_liftMetaM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Tactic_getFVarIds___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -416,7 +414,6 @@ lean_object* l_Lean_Elab_Tactic_evalSubst(lean_object*, lean_object*, lean_objec lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_focus___spec__1(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__3; lean_object* l_Std_PersistentHashMap_findAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__4___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_evalIntro___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalChoiceAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withMacroExpansion(lean_object*); extern lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__2; @@ -9862,76 +9859,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Tactic_evalIntro___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; -x_8 = l_Lean_Syntax_getId(x_1); -x_9 = l_Lean_Meta_intro(x_2, x_8, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_9) == 0) -{ -uint8_t x_10; -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_ctor_get(x_9, 0); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_box(0); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -lean_ctor_set(x_9, 0, x_14); -return x_9; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_15 = lean_ctor_get(x_9, 0); -x_16 = lean_ctor_get(x_9, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_9); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_box(0); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_16); -return x_20; -} -} -else -{ -uint8_t x_21; -x_21 = !lean_is_exclusive(x_9); -if (x_21 == 0) -{ -return x_9; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_9, 0); -x_23 = lean_ctor_get(x_9, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_9); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} -} -lean_object* l_Lean_Elab_Tactic_evalIntro___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Elab_Tactic_evalIntro___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; lean_object* x_8; @@ -10021,30 +9949,30 @@ return x_3; lean_object* l_Lean_Elab_Tactic_evalIntro(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -uint8_t x_11; lean_object* x_100; uint8_t x_101; -x_100 = l_Lean_Elab_Tactic_evalIntro___closed__2; +uint8_t x_11; lean_object* x_59; uint8_t x_60; +x_59 = l_Lean_Elab_Tactic_evalIntro___closed__2; lean_inc(x_1); -x_101 = l_Lean_Syntax_isOfKind(x_1, x_100); -if (x_101 == 0) +x_60 = l_Lean_Syntax_isOfKind(x_1, x_59); +if (x_60 == 0) { -uint8_t x_102; -x_102 = 0; -x_11 = x_102; -goto block_99; +uint8_t x_61; +x_61 = 0; +x_11 = x_61; +goto block_58; } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; -x_103 = l_Lean_Syntax_getArgs(x_1); -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_11 = x_106; -goto block_99; +lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_62 = l_Lean_Syntax_getArgs(x_1); +x_63 = lean_array_get_size(x_62); +lean_dec(x_62); +x_64 = lean_unsigned_to_nat(2u); +x_65 = lean_nat_dec_eq(x_63, x_64); +lean_dec(x_63); +x_11 = x_65; +goto block_58; } -block_99: +block_58: { if (x_11 == 0) { @@ -10063,38 +9991,39 @@ return x_12; } else { -lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_53; uint8_t x_54; uint8_t x_55; +lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_51; uint8_t x_52; x_13 = lean_unsigned_to_nat(1u); x_14 = l_Lean_Syntax_getArg(x_1, x_13); lean_dec(x_1); -x_53 = l_Lean_nullKind___closed__2; +x_51 = l_Lean_nullKind___closed__2; lean_inc(x_14); -x_54 = l_Lean_Syntax_isOfKind(x_14, x_53); -if (x_54 == 0) +x_52 = l_Lean_Syntax_isOfKind(x_14, x_51); +if (x_52 == 0) { -uint8_t x_94; -x_94 = 0; -x_55 = x_94; -goto block_93; +uint8_t x_53; +lean_dec(x_14); +x_53 = 0; +x_15 = x_53; +goto block_50; } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; -x_95 = l_Lean_Syntax_getArgs(x_14); -x_96 = lean_array_get_size(x_95); -lean_dec(x_95); -x_97 = lean_unsigned_to_nat(0u); -x_98 = lean_nat_dec_eq(x_96, x_97); -lean_dec(x_96); -x_55 = x_98; -goto block_93; +lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_54 = l_Lean_Syntax_getArgs(x_14); +lean_dec(x_14); +x_55 = lean_array_get_size(x_54); +lean_dec(x_54); +x_56 = lean_unsigned_to_nat(0u); +x_57 = lean_nat_dec_eq(x_55, x_56); +lean_dec(x_55); +x_15 = x_57; +goto block_50; } -block_52: +block_50: { if (x_15 == 0) { lean_object* x_16; -lean_dec(x_14); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -10108,332 +10037,139 @@ return x_16; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_unsigned_to_nat(0u); -x_18 = l_Lean_Syntax_getArg(x_14, x_17); -lean_dec(x_14); +lean_object* x_17; lean_inc(x_4); -x_19 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_19) == 0) +x_17 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_20 = lean_ctor_get(x_19, 0); +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get(x_18, 0); lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); +x_21 = lean_ctor_get(x_18, 1); lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_ctor_get(x_20, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); -lean_dec(x_20); -lean_inc(x_22); -x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalIntro___lambda__1___boxed), 7, 2); -lean_closure_set(x_24, 0, x_18); -lean_closure_set(x_24, 1, x_22); -x_25 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; -x_26 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_26, 0, x_24); -lean_closure_set(x_26, 1, x_25); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg___boxed), 10, 5); -lean_closure_set(x_27, 0, x_26); -lean_closure_set(x_27, 1, x_2); -lean_closure_set(x_27, 2, x_3); -lean_closure_set(x_27, 3, x_4); -lean_closure_set(x_27, 4, x_5); -x_28 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 11, 5); -lean_closure_set(x_28, 0, x_23); -lean_closure_set(x_28, 1, x_2); -lean_closure_set(x_28, 2, x_3); -lean_closure_set(x_28, 3, x_4); -lean_closure_set(x_28, 4, x_5); -x_29 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_29, 0, x_27); -lean_closure_set(x_29, 1, x_28); -x_30 = l_Lean_Meta_getMVarDecl___at_Lean_Meta_isReadOnlyExprMVar___spec__1(x_22, x_6, x_7, x_8, x_9, x_21); -if (lean_obj_tag(x_30) == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -x_34 = lean_ctor_get(x_31, 4); -lean_inc(x_34); -lean_dec(x_31); -x_35 = l___private_Lean_Meta_Basic_27__withLocalContextImpl___rarg(x_33, x_34, x_29, x_6, x_7, x_8, x_9, x_32); -if (lean_obj_tag(x_35) == 0) -{ -uint8_t x_36; -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) -{ -return x_35; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_35, 0); -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_35); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} -} -else -{ -uint8_t x_40; -x_40 = !lean_is_exclusive(x_35); -if (x_40 == 0) -{ -return x_35; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_35, 0); -x_42 = lean_ctor_get(x_35, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_35); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} -} -} -else -{ -uint8_t x_44; -lean_dec(x_29); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_44 = !lean_is_exclusive(x_30); -if (x_44 == 0) -{ -return x_30; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_30, 0); -x_46 = lean_ctor_get(x_30, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_30); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -} -else -{ -uint8_t x_48; lean_dec(x_18); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_48 = !lean_is_exclusive(x_19); -if (x_48 == 0) -{ -return x_19; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_19, 0); -x_50 = lean_ctor_get(x_19, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_19); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; -} -} -} -} -block_93: -{ -if (x_55 == 0) -{ -if (x_54 == 0) -{ -uint8_t x_56; -x_56 = 0; -x_15 = x_56; -goto block_52; -} -else -{ -lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_57 = l_Lean_Syntax_getArgs(x_14); -x_58 = lean_array_get_size(x_57); -lean_dec(x_57); -x_59 = lean_nat_dec_eq(x_58, x_13); -lean_dec(x_58); -x_15 = x_59; -goto block_52; -} -} -else -{ -lean_object* x_60; -lean_dec(x_14); -lean_inc(x_4); -x_60 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_60) == 0) -{ -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_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -x_63 = lean_ctor_get(x_61, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -lean_dec(x_61); -lean_inc(x_63); -x_65 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalIntro___lambda__2), 6, 1); -lean_closure_set(x_65, 0, x_63); -x_66 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; -x_67 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_67, 0, x_65); -lean_closure_set(x_67, 1, x_66); +lean_inc(x_20); +x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalIntro___lambda__1), 6, 1); +lean_closure_set(x_22, 0, x_20); +x_23 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; +x_24 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); +lean_closure_set(x_24, 0, x_22); +lean_closure_set(x_24, 1, x_23); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_68 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg___boxed), 10, 5); -lean_closure_set(x_68, 0, x_67); -lean_closure_set(x_68, 1, x_2); -lean_closure_set(x_68, 2, x_3); -lean_closure_set(x_68, 3, x_4); -lean_closure_set(x_68, 4, x_5); -x_69 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 11, 5); -lean_closure_set(x_69, 0, x_64); -lean_closure_set(x_69, 1, x_2); -lean_closure_set(x_69, 2, x_3); -lean_closure_set(x_69, 3, x_4); -lean_closure_set(x_69, 4, x_5); -x_70 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_70, 0, x_68); -lean_closure_set(x_70, 1, x_69); -x_71 = l_Lean_Meta_getMVarDecl___at_Lean_Meta_isReadOnlyExprMVar___spec__1(x_63, x_6, x_7, x_8, x_9, x_62); -if (lean_obj_tag(x_71) == 0) +x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg___boxed), 10, 5); +lean_closure_set(x_25, 0, x_24); +lean_closure_set(x_25, 1, x_2); +lean_closure_set(x_25, 2, x_3); +lean_closure_set(x_25, 3, x_4); +lean_closure_set(x_25, 4, x_5); +x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 11, 5); +lean_closure_set(x_26, 0, x_21); +lean_closure_set(x_26, 1, x_2); +lean_closure_set(x_26, 2, x_3); +lean_closure_set(x_26, 3, x_4); +lean_closure_set(x_26, 4, x_5); +x_27 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); +lean_closure_set(x_27, 0, x_25); +lean_closure_set(x_27, 1, x_26); +x_28 = l_Lean_Meta_getMVarDecl___at_Lean_Meta_isReadOnlyExprMVar___spec__1(x_20, x_6, x_7, x_8, x_9, x_19); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); -lean_dec(x_71); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -x_75 = lean_ctor_get(x_72, 4); -lean_inc(x_75); -lean_dec(x_72); -x_76 = l___private_Lean_Meta_Basic_27__withLocalContextImpl___rarg(x_74, x_75, x_70, x_6, x_7, x_8, x_9, x_73); -if (lean_obj_tag(x_76) == 0) +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +x_32 = lean_ctor_get(x_29, 4); +lean_inc(x_32); +lean_dec(x_29); +x_33 = l___private_Lean_Meta_Basic_27__withLocalContextImpl___rarg(x_31, x_32, x_27, x_6, x_7, x_8, x_9, x_30); +if (lean_obj_tag(x_33) == 0) { -uint8_t x_77; -x_77 = !lean_is_exclusive(x_76); -if (x_77 == 0) +uint8_t x_34; +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) { -return x_76; +return x_33; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_76, 0); -x_79 = lean_ctor_get(x_76, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_76); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_33); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } else { -uint8_t x_81; -x_81 = !lean_is_exclusive(x_76); -if (x_81 == 0) +uint8_t x_38; +x_38 = !lean_is_exclusive(x_33); +if (x_38 == 0) { -return x_76; +return x_33; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_76, 0); -x_83 = lean_ctor_get(x_76, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_76); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_33, 0); +x_40 = lean_ctor_get(x_33, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_33); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } else { -uint8_t x_85; -lean_dec(x_70); +uint8_t x_42; +lean_dec(x_27); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_85 = !lean_is_exclusive(x_71); -if (x_85 == 0) +x_42 = !lean_is_exclusive(x_28); +if (x_42 == 0) { -return x_71; +return x_28; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_71, 0); -x_87 = lean_ctor_get(x_71, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_71); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -return x_88; +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_28, 0); +x_44 = lean_ctor_get(x_28, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_28); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } else { -uint8_t x_89; +uint8_t x_46; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -10442,23 +10178,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_89 = !lean_is_exclusive(x_60); -if (x_89 == 0) +x_46 = !lean_is_exclusive(x_17); +if (x_46 == 0) { -return x_60; +return x_17; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_60, 0); -x_91 = lean_ctor_get(x_60, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_60); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_17, 0); +x_48 = lean_ctor_get(x_17, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_17); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } } @@ -10467,15 +10203,6 @@ return x_92; } } } -lean_object* l_Lean_Elab_Tactic_evalIntro___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Elab_Tactic_evalIntro___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_1); -return x_8; -} -} lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntro___closed__1() { _start: { diff --git a/stage0/stdlib/Lean/Parser/Tactic.c b/stage0/stdlib/Lean/Parser/Tactic.c index 32c97e3d33..6527e105d8 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_apply___closed__2; lean_object* l_Lean_Parser_Tactic_matchAlts___closed__3; lean_object* l_Lean_Parser_Tactic_change_parenthesizer___closed__6; lean_object* l_Lean_Parser_Tactic_induction_formatter___closed__10; +extern lean_object* l_Lean_Parser_Term_explicit___closed__2; lean_object* l_Lean_Parser_Tactic_traceState_parenthesizer___closed__1; extern lean_object* l_Lean_Parser_Term_matchAlt___closed__3; lean_object* l_Lean_Parser_Tactic_skip___closed__6; @@ -314,7 +315,6 @@ lean_object* l___regBuiltin_Lean_Parser_Tactic_generalize_formatter(lean_object* lean_object* l_Lean_Parser_Tactic_majorPremise_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_location___closed__5; lean_object* l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_intro_formatter___closed__6; lean_object* l_Lean_Parser_Tactic_injection___closed__1; lean_object* l_Lean_Parser_Tactic_failIfSuccess_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_cases___closed__1; @@ -579,6 +579,7 @@ lean_object* l_Lean_Parser_Tactic_cases___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_underscore_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_failIfSuccess_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_generalizingVars___elambda__1___closed__4; +lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_intro___elambda__1___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_changeWith___closed__7; lean_object* l_Lean_Parser_Tactic_apply___closed__6; extern lean_object* l_Lean_Parser_mkAntiquot_formatter___closed__6; @@ -595,7 +596,6 @@ lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser lean_object* l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlockCurly_parenthesizer___closed__1; 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; lean_object* l_Lean_Parser_Tactic_inductionAlts___closed__5; extern lean_object* l_Lean_Parser_Term_namedHole; lean_object* l_Lean_Parser_Tactic_allGoals_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -636,12 +636,14 @@ lean_object* l_Lean_Parser_Tactic_change_formatter___closed__4; lean_object* l_Lean_Parser_Tactic_location___closed__4; lean_object* l_Lean_Parser_Tactic_location_formatter___closed__4; lean_object* l_Lean_Parser_Tactic_revert_parenthesizer___closed__4; +extern lean_object* l_Lean_Parser_maxPrec; lean_object* l_Lean_Parser_Tactic_underscore_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_apply___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_intro_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_generalize___elambda__1___closed__10; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_matchAlts___elambda__1___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_majorPremise___closed__5; +extern lean_object* l_Lean_Parser_Term_explicit_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_cases_formatter___closed__4; lean_object* l___regBuiltin_Lean_Parser_Tactic_nestedTacticBlockCurly_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_matchAlts___elambda__1(lean_object*, lean_object*); @@ -794,6 +796,7 @@ lean_object* l_Lean_PrettyPrinter_Formatter_withPosition_formatter(lean_object*, lean_object* l_Lean_Parser_Tactic_failIfSuccess_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_subst_formatter___closed__4; lean_object* l_Lean_Parser_Term_optType___elambda__1(lean_object*, lean_object*); +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; @@ -1224,6 +1227,7 @@ lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_intro; lean_object* l_Lean_PrettyPrinter_Parenthesizer_many_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_allGoals_formatter___closed__1; +lean_object* l_Lean_Parser_Tactic_intros_parenthesizer___closed__5; lean_object* l_Lean_Parser_Tactic_intros_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Parser_inhabited___closed__1; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Tactic_inductionAlts___elambda__1___spec__3(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); @@ -1564,6 +1568,70 @@ x_1 = l_Lean_Parser_Tactic_ident_x27___closed__3; return x_1; } } +lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_intro___elambda__1___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_array_get_size(x_3); +lean_dec(x_3); +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_5); +x_6 = l_Lean_Parser_termParser___closed__2; +x_7 = l_Lean_Parser_maxPrec; +lean_inc(x_1); +x_8 = l_Lean_Parser_categoryParser___elambda__1(x_6, x_7, 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_10; uint8_t x_11; +lean_dec(x_4); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +x_11 = lean_nat_dec_eq(x_5, x_10); +lean_dec(x_10); +lean_dec(x_5); +if (x_11 == 0) +{ +x_2 = x_8; +goto _start; +} +else +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_1); +x_13 = l_Lean_Parser_manyAux___main___closed__1; +x_14 = l_Lean_Parser_ParserState_mkUnexpectedError(x_8, x_13); +return x_14; +} +} +else +{ +lean_object* x_15; uint8_t x_16; +lean_dec(x_9); +lean_dec(x_1); +x_15 = lean_ctor_get(x_8, 1); +lean_inc(x_15); +x_16 = lean_nat_dec_eq(x_5, x_15); +lean_dec(x_15); +if (x_16 == 0) +{ +lean_dec(x_5); +lean_dec(x_4); +return x_8; +} +else +{ +lean_object* x_17; +x_17 = l_Lean_Parser_ParserState_restore(x_8, x_4, x_5); +lean_dec(x_4); +return x_17; +} +} +} +} lean_object* _init_l_Lean_Parser_Tactic_intro___elambda__1___closed__1() { _start: { @@ -1673,64 +1741,26 @@ x_14 = lean_ctor_get(x_13, 3); lean_inc(x_14); if (lean_obj_tag(x_14) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; x_15 = lean_ctor_get(x_13, 0); lean_inc(x_15); x_16 = lean_array_get_size(x_15); lean_dec(x_15); -x_17 = lean_ctor_get(x_13, 1); -lean_inc(x_17); -x_18 = l_Lean_Parser_Tactic_ident_x27___elambda__1(x_1, x_13); -x_19 = lean_ctor_get(x_18, 3); -lean_inc(x_19); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -lean_dec(x_17); -x_20 = l_Lean_nullKind; -x_21 = l_Lean_Parser_ParserState_mkNode(x_18, x_20, x_16); -x_22 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; -x_23 = l_Lean_Parser_ParserState_mkNode(x_21, x_22, x_10); -return x_23; +x_17 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_intro___elambda__1___spec__1(x_1, x_13); +x_18 = l_Lean_nullKind; +x_19 = l_Lean_Parser_ParserState_mkNode(x_17, x_18, x_16); +x_20 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; +x_21 = l_Lean_Parser_ParserState_mkNode(x_19, x_20, x_10); +return x_21; } else { -lean_object* x_24; uint8_t x_25; -lean_dec(x_19); -x_24 = lean_ctor_get(x_18, 1); -lean_inc(x_24); -x_25 = lean_nat_dec_eq(x_24, x_17); -lean_dec(x_24); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_dec(x_17); -x_26 = l_Lean_nullKind; -x_27 = l_Lean_Parser_ParserState_mkNode(x_18, x_26, x_16); -x_28 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; -x_29 = l_Lean_Parser_ParserState_mkNode(x_27, x_28, x_10); -return x_29; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_30 = l_Lean_Parser_ParserState_restore(x_18, x_16, x_17); -x_31 = l_Lean_nullKind; -x_32 = l_Lean_Parser_ParserState_mkNode(x_30, x_31, x_16); -x_33 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; -x_34 = l_Lean_Parser_ParserState_mkNode(x_32, x_33, x_10); -return x_34; -} -} -} -else -{ -lean_object* x_35; lean_object* x_36; +lean_object* x_22; lean_object* x_23; lean_dec(x_14); lean_dec(x_1); -x_35 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; -x_36 = l_Lean_Parser_ParserState_mkNode(x_13, x_35, x_10); -return x_36; +x_22 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; +x_23 = l_Lean_Parser_ParserState_mkNode(x_13, x_22, x_10); +return x_23; } } else @@ -1742,143 +1772,101 @@ return x_7; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_37 = lean_ctor_get(x_2, 0); -lean_inc(x_37); -x_38 = lean_array_get_size(x_37); -lean_dec(x_37); -x_39 = lean_ctor_get(x_2, 1); -lean_inc(x_39); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_24 = lean_ctor_get(x_2, 0); +lean_inc(x_24); +x_25 = lean_array_get_size(x_24); +lean_dec(x_24); +x_26 = lean_ctor_get(x_2, 1); +lean_inc(x_26); lean_inc(x_1); -x_40 = lean_apply_2(x_4, x_1, x_2); +x_27 = lean_apply_2(x_4, x_1, x_2); +x_28 = lean_ctor_get(x_27, 3); +lean_inc(x_28); +if (lean_obj_tag(x_28) == 0) +{ +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_1); +return x_27; +} +else +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +x_31 = lean_nat_dec_eq(x_30, x_26); +lean_dec(x_30); +if (x_31 == 0) +{ +lean_dec(x_29); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_1); +return x_27; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +lean_inc(x_26); +x_32 = l_Lean_Parser_ParserState_restore(x_27, x_25, x_26); +lean_dec(x_25); +x_33 = lean_unsigned_to_nat(1024u); +x_34 = l_Lean_Parser_checkPrecFn(x_33, x_1, x_32); +x_35 = lean_ctor_get(x_34, 3); +lean_inc(x_35); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_36 = lean_ctor_get(x_34, 0); +lean_inc(x_36); +x_37 = lean_array_get_size(x_36); +lean_dec(x_36); +x_38 = l_Lean_Parser_Tactic_intro___elambda__1___closed__6; +x_39 = l_Lean_Parser_Tactic_intro___elambda__1___closed__8; +lean_inc(x_1); +x_40 = l_Lean_Parser_nonReservedSymbolFnAux(x_38, x_39, x_1, x_34); x_41 = lean_ctor_get(x_40, 3); lean_inc(x_41); if (lean_obj_tag(x_41) == 0) { -lean_dec(x_39); -lean_dec(x_38); -lean_dec(x_1); -return x_40; -} -else -{ -lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = lean_ctor_get(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; lean_object* x_48; lean_object* x_49; +x_42 = lean_ctor_get(x_40, 0); lean_inc(x_42); -lean_dec(x_41); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -x_44 = lean_nat_dec_eq(x_43, x_39); -lean_dec(x_43); -if (x_44 == 0) -{ +x_43 = lean_array_get_size(x_42); lean_dec(x_42); -lean_dec(x_39); -lean_dec(x_38); +x_44 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_intro___elambda__1___spec__1(x_1, x_40); +x_45 = l_Lean_nullKind; +x_46 = l_Lean_Parser_ParserState_mkNode(x_44, x_45, x_43); +x_47 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; +x_48 = l_Lean_Parser_ParserState_mkNode(x_46, x_47, x_37); +x_49 = l_Lean_Parser_mergeOrElseErrors(x_48, x_29, x_26); +lean_dec(x_26); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_41); lean_dec(x_1); -return x_40; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_inc(x_39); -x_45 = l_Lean_Parser_ParserState_restore(x_40, x_38, x_39); -lean_dec(x_38); -x_46 = lean_unsigned_to_nat(1024u); -x_47 = l_Lean_Parser_checkPrecFn(x_46, x_1, x_45); -x_48 = lean_ctor_get(x_47, 3); -lean_inc(x_48); -if (lean_obj_tag(x_48) == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_49 = lean_ctor_get(x_47, 0); -lean_inc(x_49); -x_50 = lean_array_get_size(x_49); -lean_dec(x_49); -x_51 = l_Lean_Parser_Tactic_intro___elambda__1___closed__6; -x_52 = l_Lean_Parser_Tactic_intro___elambda__1___closed__8; -lean_inc(x_1); -x_53 = l_Lean_Parser_nonReservedSymbolFnAux(x_51, x_52, x_1, x_47); -x_54 = lean_ctor_get(x_53, 3); -lean_inc(x_54); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_55 = lean_ctor_get(x_53, 0); -lean_inc(x_55); -x_56 = lean_array_get_size(x_55); -lean_dec(x_55); -x_57 = lean_ctor_get(x_53, 1); -lean_inc(x_57); -x_58 = l_Lean_Parser_Tactic_ident_x27___elambda__1(x_1, x_53); -x_59 = lean_ctor_get(x_58, 3); -lean_inc(x_59); -if (lean_obj_tag(x_59) == 0) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -lean_dec(x_57); -x_60 = l_Lean_nullKind; -x_61 = l_Lean_Parser_ParserState_mkNode(x_58, x_60, x_56); -x_62 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; -x_63 = l_Lean_Parser_ParserState_mkNode(x_61, x_62, x_50); -x_64 = l_Lean_Parser_mergeOrElseErrors(x_63, x_42, x_39); -lean_dec(x_39); -return x_64; -} -else -{ -lean_object* x_65; uint8_t x_66; -lean_dec(x_59); -x_65 = lean_ctor_get(x_58, 1); -lean_inc(x_65); -x_66 = lean_nat_dec_eq(x_65, x_57); -lean_dec(x_65); -if (x_66 == 0) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -lean_dec(x_57); -x_67 = l_Lean_nullKind; -x_68 = l_Lean_Parser_ParserState_mkNode(x_58, x_67, x_56); -x_69 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; -x_70 = l_Lean_Parser_ParserState_mkNode(x_68, x_69, x_50); -x_71 = l_Lean_Parser_mergeOrElseErrors(x_70, x_42, x_39); -lean_dec(x_39); -return x_71; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_72 = l_Lean_Parser_ParserState_restore(x_58, x_56, x_57); -x_73 = l_Lean_nullKind; -x_74 = l_Lean_Parser_ParserState_mkNode(x_72, x_73, x_56); -x_75 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; -x_76 = l_Lean_Parser_ParserState_mkNode(x_74, x_75, x_50); -x_77 = l_Lean_Parser_mergeOrElseErrors(x_76, x_42, x_39); -lean_dec(x_39); -return x_77; -} +x_50 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; +x_51 = l_Lean_Parser_ParserState_mkNode(x_40, x_50, x_37); +x_52 = l_Lean_Parser_mergeOrElseErrors(x_51, x_29, x_26); +lean_dec(x_26); +return x_52; } } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_54); +lean_object* x_53; +lean_dec(x_35); lean_dec(x_1); -x_78 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; -x_79 = l_Lean_Parser_ParserState_mkNode(x_53, x_78, x_50); -x_80 = l_Lean_Parser_mergeOrElseErrors(x_79, x_42, x_39); -lean_dec(x_39); -return x_80; -} -} -else -{ -lean_object* x_81; -lean_dec(x_48); -lean_dec(x_1); -x_81 = l_Lean_Parser_mergeOrElseErrors(x_47, x_42, x_39); -lean_dec(x_39); -return x_81; +x_53 = l_Lean_Parser_mergeOrElseErrors(x_34, x_29, x_26); +lean_dec(x_26); +return x_53; } } } @@ -1899,10 +1887,10 @@ lean_object* _init_l_Lean_Parser_Tactic_intro___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_ident_x27; +x_1 = l_Lean_Parser_Term_explicit___closed__2; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_optionaInfo(x_2); +x_3 = l_Lean_Parser_noFirstTokenInfo(x_2); return x_3; } } @@ -1988,24 +1976,6 @@ x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); return x_6; } } -lean_object* _init_l_Lean_Parser_Tactic_ident_x27_formatter___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_underscore_formatter___boxed), 5, 0); -return x_1; -} -} -lean_object* l_Lean_Parser_Tactic_ident_x27_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Parser_Level_ident_formatter___closed__1; -x_7 = l_Lean_Parser_Tactic_ident_x27_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; -} -} lean_object* _init_l_Lean_Parser_Tactic_intro_formatter___closed__1() { _start: { @@ -2034,40 +2004,32 @@ return x_2; lean_object* _init_l_Lean_Parser_Tactic_intro_formatter___closed__3() { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_ident_x27_formatter), 5, 0); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_antiquotNestedExpr_formatter___closed__2; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_many_formatter), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; } } lean_object* _init_l_Lean_Parser_Tactic_intro_formatter___closed__4() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_intro_formatter___closed__3; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_optional_formatter), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Parser_Tactic_intro_formatter___closed__5() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_intro_formatter___closed__2; -x_2 = l_Lean_Parser_Tactic_intro_formatter___closed__4; +x_2 = l_Lean_Parser_Tactic_intro_formatter___closed__3; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l_Lean_Parser_Tactic_intro_formatter___closed__6() { +lean_object* _init_l_Lean_Parser_Tactic_intro_formatter___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_intro_formatter___closed__5; +x_3 = l_Lean_Parser_Tactic_intro_formatter___closed__4; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -2080,7 +2042,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_intro_formatter___closed__1; -x_7 = l_Lean_Parser_Tactic_intro_formatter___closed__6; +x_7 = l_Lean_Parser_Tactic_intro_formatter___closed__5; x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -2104,24 +2066,6 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* _init_l_Lean_Parser_Tactic_ident_x27_parenthesizer___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_underscore_parenthesizer___boxed), 1, 0); -return x_1; -} -} -lean_object* l_Lean_Parser_Tactic_ident_x27_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Parser_Level_ident_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Tactic_ident_x27_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; -} -} lean_object* _init_l_Lean_Parser_Tactic_intro_parenthesizer___closed__1() { _start: { @@ -2138,40 +2082,32 @@ return x_4; lean_object* _init_l_Lean_Parser_Tactic_intro_parenthesizer___closed__2() { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_ident_x27_parenthesizer), 5, 0); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_explicit_parenthesizer___closed__2; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_many_parenthesizer), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; } } lean_object* _init_l_Lean_Parser_Tactic_intro_parenthesizer___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_intro_parenthesizer___closed__2; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_optional_parenthesizer), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Parser_Tactic_intro_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_intro_parenthesizer___closed__3; +x_2 = l_Lean_Parser_Tactic_intro_parenthesizer___closed__2; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l_Lean_Parser_Tactic_intro_parenthesizer___closed__5() { +lean_object* _init_l_Lean_Parser_Tactic_intro_parenthesizer___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_intro_parenthesizer___closed__4; +x_3 = l_Lean_Parser_Tactic_intro_parenthesizer___closed__3; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -2184,7 +2120,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_intro_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Tactic_intro_parenthesizer___closed__5; +x_7 = l_Lean_Parser_Tactic_intro_parenthesizer___closed__4; 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; } @@ -2614,6 +2550,24 @@ x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); return x_6; } } +lean_object* _init_l_Lean_Parser_Tactic_ident_x27_formatter___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_underscore_formatter___boxed), 5, 0); +return x_1; +} +} +lean_object* l_Lean_Parser_Tactic_ident_x27_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = l_Lean_Parser_Level_ident_formatter___closed__1; +x_7 = l_Lean_Parser_Tactic_ident_x27_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; +} +} lean_object* _init_l_Lean_Parser_Tactic_intros_formatter___closed__1() { _start: { @@ -2642,32 +2596,40 @@ return x_2; lean_object* _init_l_Lean_Parser_Tactic_intros_formatter___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_intro_formatter___closed__3; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_many_formatter), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_ident_x27_formatter), 5, 0); +return x_1; } } lean_object* _init_l_Lean_Parser_Tactic_intros_formatter___closed__4() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Tactic_intros_formatter___closed__3; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_many_formatter), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Tactic_intros_formatter___closed__5() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_intros_formatter___closed__2; -x_2 = l_Lean_Parser_Tactic_intros_formatter___closed__3; +x_2 = l_Lean_Parser_Tactic_intros_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_intros_formatter___closed__5() { +lean_object* _init_l_Lean_Parser_Tactic_intros_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_intros___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_intros_formatter___closed__4; +x_3 = l_Lean_Parser_Tactic_intros_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); @@ -2680,7 +2642,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_intros_formatter___closed__1; -x_7 = l_Lean_Parser_Tactic_intros_formatter___closed__5; +x_7 = l_Lean_Parser_Tactic_intros_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; } @@ -2704,6 +2666,24 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } +lean_object* _init_l_Lean_Parser_Tactic_ident_x27_parenthesizer___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_underscore_parenthesizer___boxed), 1, 0); +return x_1; +} +} +lean_object* l_Lean_Parser_Tactic_ident_x27_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = l_Lean_Parser_Level_ident_parenthesizer___closed__1; +x_7 = l_Lean_Parser_Tactic_ident_x27_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; +} +} lean_object* _init_l_Lean_Parser_Tactic_intros_parenthesizer___closed__1() { _start: { @@ -2720,32 +2700,40 @@ return x_4; lean_object* _init_l_Lean_Parser_Tactic_intros_parenthesizer___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_intro_parenthesizer___closed__2; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_many_parenthesizer), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_ident_x27_parenthesizer), 5, 0); +return x_1; } } lean_object* _init_l_Lean_Parser_Tactic_intros_parenthesizer___closed__3() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Tactic_intros_parenthesizer___closed__2; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_many_parenthesizer), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Tactic_intros_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_intros_parenthesizer___closed__2; +x_2 = l_Lean_Parser_Tactic_intros_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_intros_parenthesizer___closed__4() { +lean_object* _init_l_Lean_Parser_Tactic_intros_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_intros___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_intros_parenthesizer___closed__3; +x_3 = l_Lean_Parser_Tactic_intros_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); @@ -2758,7 +2746,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Tactic_intros_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Tactic_intros_parenthesizer___closed__4; +x_7 = l_Lean_Parser_Tactic_intros_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; } @@ -16274,7 +16262,7 @@ lean_object* _init_l_Lean_Parser_Tactic_inductionAlt_formatter___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_intros_formatter___closed__3; +x_1 = l_Lean_Parser_Tactic_intros_formatter___closed__4; x_2 = l_Lean_Parser_Tactic_inductionAlt_formatter___closed__2; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -16286,7 +16274,7 @@ lean_object* _init_l_Lean_Parser_Tactic_inductionAlt_formatter___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_intro_formatter___closed__3; +x_1 = l_Lean_Parser_Tactic_intros_formatter___closed__3; x_2 = l_Lean_Parser_Tactic_inductionAlt_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); @@ -16663,7 +16651,7 @@ lean_object* _init_l_Lean_Parser_Tactic_inductionAlt_parenthesizer___closed__3() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_intros_parenthesizer___closed__2; +x_1 = l_Lean_Parser_Tactic_intros_parenthesizer___closed__3; x_2 = l_Lean_Parser_Tactic_inductionAlt_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); @@ -16675,7 +16663,7 @@ lean_object* _init_l_Lean_Parser_Tactic_inductionAlt_parenthesizer___closed__4() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_intro_parenthesizer___closed__2; +x_1 = l_Lean_Parser_Tactic_intros_parenthesizer___closed__2; x_2 = l_Lean_Parser_Tactic_inductionAlt_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); @@ -20451,7 +20439,7 @@ lean_object* _init_l_Lean_Parser_Tactic_withIds_formatter___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_intro_formatter___closed__3; +x_1 = l_Lean_Parser_Tactic_intros_formatter___closed__3; x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_many1_formatter), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; @@ -20582,7 +20570,7 @@ lean_object* _init_l_Lean_Parser_Tactic_withIds_parenthesizer___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_intro_parenthesizer___closed__2; +x_1 = l_Lean_Parser_Tactic_intros_parenthesizer___closed__2; x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_many1_parenthesizer), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; @@ -23150,8 +23138,6 @@ lean_mark_persistent(l_Lean_Parser_Tactic_intro); res = l___regBuiltinParser_Lean_Parser_Tactic_intro(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Parser_Tactic_ident_x27_formatter___closed__1 = _init_l_Lean_Parser_Tactic_ident_x27_formatter___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_ident_x27_formatter___closed__1); l_Lean_Parser_Tactic_intro_formatter___closed__1 = _init_l_Lean_Parser_Tactic_intro_formatter___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_intro_formatter___closed__1); l_Lean_Parser_Tactic_intro_formatter___closed__2 = _init_l_Lean_Parser_Tactic_intro_formatter___closed__2(); @@ -23162,15 +23148,11 @@ l_Lean_Parser_Tactic_intro_formatter___closed__4 = _init_l_Lean_Parser_Tactic_in lean_mark_persistent(l_Lean_Parser_Tactic_intro_formatter___closed__4); l_Lean_Parser_Tactic_intro_formatter___closed__5 = _init_l_Lean_Parser_Tactic_intro_formatter___closed__5(); lean_mark_persistent(l_Lean_Parser_Tactic_intro_formatter___closed__5); -l_Lean_Parser_Tactic_intro_formatter___closed__6 = _init_l_Lean_Parser_Tactic_intro_formatter___closed__6(); -lean_mark_persistent(l_Lean_Parser_Tactic_intro_formatter___closed__6); l___regBuiltin_Lean_Parser_Tactic_intro_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Tactic_intro_formatter___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_intro_formatter___closed__1); res = l___regBuiltin_Lean_Parser_Tactic_intro_formatter(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Parser_Tactic_ident_x27_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_ident_x27_parenthesizer___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_ident_x27_parenthesizer___closed__1); l_Lean_Parser_Tactic_intro_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_intro_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_intro_parenthesizer___closed__1); l_Lean_Parser_Tactic_intro_parenthesizer___closed__2 = _init_l_Lean_Parser_Tactic_intro_parenthesizer___closed__2(); @@ -23179,8 +23161,6 @@ l_Lean_Parser_Tactic_intro_parenthesizer___closed__3 = _init_l_Lean_Parser_Tacti lean_mark_persistent(l_Lean_Parser_Tactic_intro_parenthesizer___closed__3); l_Lean_Parser_Tactic_intro_parenthesizer___closed__4 = _init_l_Lean_Parser_Tactic_intro_parenthesizer___closed__4(); lean_mark_persistent(l_Lean_Parser_Tactic_intro_parenthesizer___closed__4); -l_Lean_Parser_Tactic_intro_parenthesizer___closed__5 = _init_l_Lean_Parser_Tactic_intro_parenthesizer___closed__5(); -lean_mark_persistent(l_Lean_Parser_Tactic_intro_parenthesizer___closed__5); l___regBuiltin_Lean_Parser_Tactic_intro_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Tactic_intro_parenthesizer___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_intro_parenthesizer___closed__1); res = l___regBuiltin_Lean_Parser_Tactic_intro_parenthesizer(lean_io_mk_world()); @@ -23223,6 +23203,8 @@ lean_mark_persistent(l_Lean_Parser_Tactic_intros); res = l___regBuiltinParser_Lean_Parser_Tactic_intros(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Parser_Tactic_ident_x27_formatter___closed__1 = _init_l_Lean_Parser_Tactic_ident_x27_formatter___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_ident_x27_formatter___closed__1); l_Lean_Parser_Tactic_intros_formatter___closed__1 = _init_l_Lean_Parser_Tactic_intros_formatter___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_intros_formatter___closed__1); l_Lean_Parser_Tactic_intros_formatter___closed__2 = _init_l_Lean_Parser_Tactic_intros_formatter___closed__2(); @@ -23233,11 +23215,15 @@ l_Lean_Parser_Tactic_intros_formatter___closed__4 = _init_l_Lean_Parser_Tactic_i lean_mark_persistent(l_Lean_Parser_Tactic_intros_formatter___closed__4); l_Lean_Parser_Tactic_intros_formatter___closed__5 = _init_l_Lean_Parser_Tactic_intros_formatter___closed__5(); lean_mark_persistent(l_Lean_Parser_Tactic_intros_formatter___closed__5); +l_Lean_Parser_Tactic_intros_formatter___closed__6 = _init_l_Lean_Parser_Tactic_intros_formatter___closed__6(); +lean_mark_persistent(l_Lean_Parser_Tactic_intros_formatter___closed__6); l___regBuiltin_Lean_Parser_Tactic_intros_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Tactic_intros_formatter___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_intros_formatter___closed__1); res = l___regBuiltin_Lean_Parser_Tactic_intros_formatter(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Parser_Tactic_ident_x27_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_ident_x27_parenthesizer___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_ident_x27_parenthesizer___closed__1); l_Lean_Parser_Tactic_intros_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_intros_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_intros_parenthesizer___closed__1); l_Lean_Parser_Tactic_intros_parenthesizer___closed__2 = _init_l_Lean_Parser_Tactic_intros_parenthesizer___closed__2(); @@ -23246,6 +23232,8 @@ l_Lean_Parser_Tactic_intros_parenthesizer___closed__3 = _init_l_Lean_Parser_Tact lean_mark_persistent(l_Lean_Parser_Tactic_intros_parenthesizer___closed__3); l_Lean_Parser_Tactic_intros_parenthesizer___closed__4 = _init_l_Lean_Parser_Tactic_intros_parenthesizer___closed__4(); lean_mark_persistent(l_Lean_Parser_Tactic_intros_parenthesizer___closed__4); +l_Lean_Parser_Tactic_intros_parenthesizer___closed__5 = _init_l_Lean_Parser_Tactic_intros_parenthesizer___closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_intros_parenthesizer___closed__5); l___regBuiltin_Lean_Parser_Tactic_intros_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Tactic_intros_parenthesizer___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_intros_parenthesizer___closed__1); res = l___regBuiltin_Lean_Parser_Tactic_intros_parenthesizer(lean_io_mk_world());