chore: update stage0

This commit is contained in:
Leonardo de Moura 2020-01-25 18:15:11 -08:00
parent 71ba6205c3
commit c2d2fd98ba
11 changed files with 4615 additions and 5728 deletions

View file

@ -324,13 +324,13 @@ private def letBindRhss (cont : List Alt → TermElabM Syntax) : List Alt → Li
def match_syntax.expand (stx : Syntax) : TermElabM Syntax := do
let discr := stx.getArg 1;
let alts := stx.getArg 3;
alts ← alts.getArgs.mapM $ fun alt => do {
let pats := alt.getArg 1;
let alts := stx.getArg 4;
alts ← alts.getArgs.getSepElems.mapM $ fun alt => do {
let pats := alt.getArg 0;
pat ← if pats.getArgs.size == 1 then pure $ pats.getArg 0
else throwError stx "match_syntax: expected exactly one pattern per alternative";
let pat := if pat.isOfKind `Lean.Parser.Term.stxQuot then pat.setArg 1 $ elimAntiquotChoices $ pat.getArg 1 else pat;
let rhs := alt.getArg 3;
let rhs := alt.getArg 2;
pure ([pat], rhs)
};
-- letBindRhss (compileStxMatch stx [discr]) alts.toList []

View file

@ -305,7 +305,8 @@ let type := expandOptType ref (decl.getArg 2);
let val := decl.getArg 4;
elabLetDeclAux ref n binders type val body expectedType?
@[builtinTermElab letDecl] def elabLetDecl : TermElab :=
/-
@[builtinTermElab «let»] def elabLetDecl : TermElab :=
fun stx expectedType? => match_syntax stx with
| `(let $id $args* := $val; $body) =>
elabLetDeclAux stx id.getId args (mkHole stx) val body expectedType?
@ -317,6 +318,7 @@ fun stx expectedType? => match_syntax stx with
stx ← `(let $id:ident := $val; $body);
elabTerm stx expectedType?
| _ => throwUnsupportedSyntax
-/
@[init] private def regTraceClasses : IO Unit := do
registerTraceClass `Elab.let;

View file

@ -46,7 +46,7 @@ def declId := parser! ident >> optional (".{" >> sepBy1 ident ", " >>
def declSig := parser! many Term.bracktedBinder >> Term.typeSpec
def optDeclSig := parser! many Term.bracktedBinder >> Term.optType
def declValSimple := parser! " := " >> termParser
def declValEqns := parser! many1Indent Term.equation "equations must be indented"
def declValEqns := parser! Term.matchAlts false
def declVal := declValSimple <|> declValEqns
def «abbrev» := parser! "abbrev " >> declId >> optDeclSig >> declVal
def «def» := parser! "def " >> declId >> optDeclSig >> declVal

View file

@ -61,7 +61,7 @@ def identPrec := parser! ident >> optPrecedence
-- TODO: remove " := " after old frontend is gone
@[builtinCommandParser] def «notation» := parser! "notation" >> many (strLitPrec <|> quotedSymbolPrec <|> identPrec) >> (" := " <|> darrow) >> termParser
@[builtinCommandParser] def «macro_rules» := parser! "macro_rules" >> many1Indent Term.matchAlt "'match' alternatives must be indented"
@[builtinCommandParser] def «macro_rules» := parser! "macro_rules" >> Term.matchAlts
@[builtinCommandParser] def «syntax» := parser! "syntax " >> optional ("[" >> ident >> "]") >> many1 syntaxParser >> " : " >> ident
@[builtinCommandParser] def syntaxCat := parser! "declare_syntax_cat " >> ident
def macroArgType := nonReservedSymbol "ident" <|> nonReservedSymbol "num" <|> nonReservedSymbol "str" <|> nonReservedSymbol "char" <|> (ident >> optPrecedence)

View file

@ -79,8 +79,17 @@ def bracktedBinder (requireType := false) := explicitBinder requireType <|> impl
@[builtinTermParser] def depArrow := parser! bracktedBinder true >> unicodeSymbolCheckPrec " → " " -> " 25 >> termParser
def simpleBinder := parser! many1 binderIdent
@[builtinTermParser] def «forall» := parser! unicodeSymbol "∀" "forall" >> many1 (simpleBinder <|> bracktedBinder) >> ", " >> termParser
def matchAlt := parser! " | " >> sepBy1 termParser ", " >> darrow >> termParser
@[builtinTermParser] def «match» := parser! "match " >> sepBy1 termParser ", " >> optType >> " with " >> many1Indent matchAlt "'match' alternatives must be indented"
def matchAlt : Parser :=
let k := `Lean.Parser.Term.matchAlt;
mkAntiquot "matchAlt" k false <|> node k (sepBy1 termParser ", " >> darrow >> termParser)
def matchAlts (optionalFirstBar := true) : Parser :=
withPosition $ fun pos =>
(if optionalFirstBar then optional "|" else "|") >>
sepBy1 matchAlt (checkColGe pos.column "alternatives must be indented" >> "|")
@[builtinTermParser] def «match» := parser! "match " >> sepBy1 termParser ", " >> optType >> " with " >> matchAlts
@[builtinTermParser] def «nomatch» := parser! "nomatch " >> termParser
@[builtinTermParser] def «parser!» := parser! "parser! " >> termParser
@[builtinTermParser] def «tparser!» := parser! "tparser! " >> termParser
@ -88,20 +97,15 @@ def matchAlt := parser! " | " >> sepBy1 termParser ", " >> darrow >> termParser
@[builtinTermParser] def quotedName := parser! nameLit
-- NOTE: syntax quotations are defined in Init.Lean.Parser.Command
@[builtinTermParser] def antiquot := (mkAntiquot "term" none true : Parser)
@[builtinTermParser] def «match_syntax» := parser! "match_syntax" >> termParser >> " with " >> many1Indent matchAlt "'match_syntax' alternatives must be indented"
@[builtinTermParser] def «match_syntax» := parser! "match_syntax" >> termParser >> " with " >> matchAlts
/- Remark: we use `checkWsBefore` to ensure `let x[i] := e; b` is not parsed as `let x [i] := e; b` where `[i]` is an `instBinder`. -/
def letIdLhs : Parser := ident >> checkWsBefore "expected space before binders" >> many bracktedBinder >> optType
def letSimpleDecl : Parser := try (letIdLhs >> " := ") >> termParser
def letPatDecl : Parser := termParser >> optType >> " := " >> termParser
@[builtinTermParser] def «let» := parser! "let " >> (letSimpleDecl <|> letPatDecl) >> "; " >> termParser
def equation := matchAlt
def letEqnsDecl : Parser := letIdLhs >> many1Indent equation "equations must be indented"
@[builtinTermParser] def letEqns :=
parser! "let " >> letEqnsDecl >> "; " >> termParser
def letDecl := letSimpleDecl <|> letPatDecl <|> letEqnsDecl
def letPatDecl : Parser := try (termParser >> optType >> " := ") >> termParser
def letEqnsDecl : Parser := letIdLhs >> matchAlts false
def letDecl := letSimpleDecl <|> letPatDecl <|> letEqnsDecl
@[builtinTermParser] def «let» := parser! "let " >> letDecl >> "; " >> termParser
@[builtinTermParser] def «let_core» := parser! "let_core " >> termParser >> ":=" >> termParser >> "; " >> termParser

View file

@ -195,6 +195,7 @@ lean_object* l_Lean_Elab_Term_Quotation_oldExpandStxQuot___closed__1;
lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__30;
lean_object* l_List_head_x21___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__2(lean_object*);
extern lean_object* l_Lean_mkTermIdFromIdent___closed__2;
lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_mkMData(lean_object*, lean_object*);
lean_object* l_Lean_Syntax_isSimpleTermId_x3f(lean_object*, uint8_t);
lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__19;
@ -13437,56 +13438,56 @@ return x_10;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19;
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20;
x_11 = lean_array_fget(x_3, x_2);
x_12 = lean_box(0);
x_13 = x_12;
x_14 = lean_array_fset(x_3, x_2, x_13);
x_15 = lean_unsigned_to_nat(1u);
x_15 = lean_unsigned_to_nat(0u);
x_16 = l_Lean_Syntax_getArg(x_11, x_15);
x_17 = l_Lean_Syntax_getArgs(x_16);
x_18 = lean_array_get_size(x_17);
lean_dec(x_17);
x_19 = lean_nat_dec_eq(x_18, x_15);
x_19 = lean_unsigned_to_nat(1u);
x_20 = lean_nat_dec_eq(x_18, x_19);
lean_dec(x_18);
if (x_19 == 0)
if (x_20 == 0)
{
lean_object* x_20; lean_object* x_21; uint8_t x_22;
lean_object* x_21; lean_object* x_22; uint8_t x_23;
lean_dec(x_16);
lean_dec(x_14);
lean_dec(x_11);
lean_dec(x_2);
x_20 = l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___closed__3;
x_21 = l_Lean_Elab_Term_throwError___rarg(x_1, x_20, x_4, x_5);
x_22 = !lean_is_exclusive(x_21);
if (x_22 == 0)
x_21 = l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___closed__3;
x_22 = l_Lean_Elab_Term_throwError___rarg(x_1, x_21, x_4, x_5);
x_23 = !lean_is_exclusive(x_22);
if (x_23 == 0)
{
return x_21;
return x_22;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25;
x_23 = lean_ctor_get(x_21, 0);
x_24 = lean_ctor_get(x_21, 1);
lean_object* x_24; lean_object* x_25; lean_object* x_26;
x_24 = lean_ctor_get(x_22, 0);
x_25 = lean_ctor_get(x_22, 1);
lean_inc(x_25);
lean_inc(x_24);
lean_inc(x_23);
lean_dec(x_21);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_23);
lean_ctor_set(x_25, 1, x_24);
return x_25;
lean_dec(x_22);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_24);
lean_ctor_set(x_26, 1, x_25);
return x_26;
}
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32;
x_26 = lean_unsigned_to_nat(0u);
x_27 = l_Lean_Syntax_getArg(x_16, x_26);
lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32;
x_27 = l_Lean_Syntax_getArg(x_16, x_15);
lean_dec(x_16);
x_28 = l_Lean_Parser_Term_stxQuot___elambda__1___closed__2;
lean_inc(x_27);
x_29 = l_Lean_Syntax_isOfKind(x_27, x_28);
x_30 = lean_unsigned_to_nat(3u);
x_30 = lean_unsigned_to_nat(2u);
x_31 = l_Lean_Syntax_getArg(x_11, x_30);
x_32 = lean_box(0);
if (x_29 == 0)
@ -13498,7 +13499,7 @@ lean_ctor_set(x_33, 1, x_32);
x_34 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_34, 0, x_33);
lean_ctor_set(x_34, 1, x_31);
x_35 = lean_nat_add(x_2, x_15);
x_35 = lean_nat_add(x_2, x_19);
x_36 = x_34;
lean_dec(x_11);
x_37 = lean_array_fset(x_14, x_2, x_36);
@ -13510,16 +13511,16 @@ goto _start;
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46;
x_39 = l_Lean_Syntax_getArg(x_27, x_15);
x_39 = l_Lean_Syntax_getArg(x_27, x_19);
x_40 = l___private_Init_Lean_Elab_Quotation_4__elimAntiquotChoices___main(x_39);
x_41 = l_Lean_Syntax_setArg(x_27, x_15, x_40);
x_41 = l_Lean_Syntax_setArg(x_27, x_19, x_40);
x_42 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_42, 0, x_41);
lean_ctor_set(x_42, 1, x_32);
x_43 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_43, 0, x_42);
lean_ctor_set(x_43, 1, x_31);
x_44 = lean_nat_add(x_2, x_15);
x_44 = lean_nat_add(x_2, x_19);
x_45 = x_43;
lean_dec(x_11);
x_46 = lean_array_fset(x_14, x_2, x_45);
@ -13535,55 +13536,59 @@ goto _start;
lean_object* l_Lean_Elab_Term_Quotation_match__syntax_expand(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
x_4 = lean_unsigned_to_nat(1u);
x_5 = l_Lean_Syntax_getArg(x_1, x_4);
x_6 = lean_unsigned_to_nat(3u);
x_6 = lean_unsigned_to_nat(4u);
x_7 = l_Lean_Syntax_getArg(x_1, x_6);
x_8 = l_Lean_Syntax_getArgs(x_7);
lean_dec(x_7);
x_9 = lean_unsigned_to_nat(0u);
x_9 = lean_unsigned_to_nat(2u);
x_10 = lean_unsigned_to_nat(0u);
x_11 = l_Array_empty___closed__1;
x_12 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_9, x_8, x_10, x_11);
lean_dec(x_8);
lean_inc(x_2);
x_10 = l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1(x_1, x_9, x_8, x_2, x_3);
if (lean_obj_tag(x_10) == 0)
x_13 = l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1(x_1, x_10, x_12, x_2, x_3);
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16;
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
lean_dec(x_10);
x_13 = lean_box(0);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_5);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_Array_toList___rarg(x_11);
lean_dec(x_11);
x_16 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_14, x_15, x_2, x_12);
return x_16;
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19;
x_14 = lean_ctor_get(x_13, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 1);
lean_inc(x_15);
lean_dec(x_13);
x_16 = lean_box(0);
x_17 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_17, 0, x_5);
lean_ctor_set(x_17, 1, x_16);
x_18 = l_Array_toList___rarg(x_14);
lean_dec(x_14);
x_19 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_17, x_18, x_2, x_15);
return x_19;
}
else
{
uint8_t x_17;
uint8_t x_20;
lean_dec(x_5);
lean_dec(x_2);
x_17 = !lean_is_exclusive(x_10);
if (x_17 == 0)
x_20 = !lean_is_exclusive(x_13);
if (x_20 == 0)
{
return x_10;
return x_13;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20;
x_18 = lean_ctor_get(x_10, 0);
x_19 = lean_ctor_get(x_10, 1);
lean_inc(x_19);
lean_inc(x_18);
lean_dec(x_10);
x_20 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_20, 0, x_18);
lean_ctor_set(x_20, 1, x_19);
return x_20;
lean_object* x_21; lean_object* x_22; lean_object* x_23;
x_21 = lean_ctor_get(x_13, 0);
x_22 = lean_ctor_get(x_13, 1);
lean_inc(x_22);
lean_inc(x_21);
lean_dec(x_13);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
return x_23;
}
}
}

View file

@ -225,7 +225,6 @@ extern lean_object* l_Lean_Parser_Command_def___elambda__1___closed__1;
lean_object* l___private_Init_Lean_Elab_Syntax_3__markAsTrailingParser(lean_object*, uint8_t, lean_object*);
lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Syntax_7__antiquote___main___spec__1(lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_strLitKind___closed__1;
extern lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6;
lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Parser_Syntax_optional___elambda__1___closed__1;
extern lean_object* l_Lean_Elab_Term_mkConst___closed__4;
@ -431,6 +430,7 @@ extern lean_object* l_Lean_mkOptionalNode___closed__1;
lean_object* l_Lean_Elab_Command_elabSyntax___closed__13;
lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__57;
lean_object* l___private_Init_Lean_Elab_Syntax_5__withNoPushLeading___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
extern lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__5;
lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__122;
lean_object* l___regBuiltinMacro_Lean_Elab_Command_expandNotation(lean_object*);
lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__94;
@ -9443,7 +9443,7 @@ lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__18()
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6;
x_1 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__5;
x_2 = l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__11;
x_3 = lean_array_push(x_1, x_2);
return x_3;
@ -12264,7 +12264,7 @@ x_57 = lean_array_push(x_41, x_56);
x_58 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_58, 0, x_37);
lean_ctor_set(x_58, 1, x_57);
x_59 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6;
x_59 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__5;
x_60 = lean_array_push(x_59, x_58);
x_61 = l_Lean_Elab_Term_expandCDot_x3f___closed__3;
x_62 = lean_array_push(x_60, x_61);
@ -12344,7 +12344,7 @@ x_104 = lean_array_push(x_88, x_103);
x_105 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_105, 0, x_84);
lean_ctor_set(x_105, 1, x_104);
x_106 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6;
x_106 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__5;
x_107 = lean_array_push(x_106, x_105);
x_108 = l_Lean_Elab_Term_expandCDot_x3f___closed__3;
x_109 = lean_array_push(x_107, x_108);
@ -13172,7 +13172,7 @@ x_72 = lean_array_push(x_56, x_71);
x_73 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_73, 0, x_52);
lean_ctor_set(x_73, 1, x_72);
x_74 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6;
x_74 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__5;
x_75 = lean_array_push(x_74, x_73);
x_76 = l_Lean_Elab_Term_expandCDot_x3f___closed__3;
x_77 = lean_array_push(x_75, x_76);
@ -13246,7 +13246,7 @@ x_119 = lean_array_push(x_103, x_118);
x_120 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_120, 0, x_99);
lean_ctor_set(x_120, 1, x_119);
x_121 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6;
x_121 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__5;
x_122 = lean_array_push(x_121, x_120);
x_123 = l_Lean_Elab_Term_expandCDot_x3f___closed__3;
x_124 = lean_array_push(x_122, x_123);
@ -13334,7 +13334,7 @@ x_170 = lean_array_push(x_154, x_169);
x_171 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_171, 0, x_150);
lean_ctor_set(x_171, 1, x_170);
x_172 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6;
x_172 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__5;
x_173 = lean_array_push(x_172, x_171);
x_174 = l_Lean_Elab_Term_expandCDot_x3f___closed__3;
x_175 = lean_array_push(x_173, x_174);
@ -13409,7 +13409,7 @@ x_218 = lean_array_push(x_202, x_217);
x_219 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_219, 0, x_198);
lean_ctor_set(x_219, 1, x_218);
x_220 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6;
x_220 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__5;
x_221 = lean_array_push(x_220, x_219);
x_222 = l_Lean_Elab_Term_expandCDot_x3f___closed__3;
x_223 = lean_array_push(x_221, x_222);

File diff suppressed because it is too large Load diff

View file

@ -52,7 +52,6 @@ lean_object* l_Lean_Parser_Command_docComment___elambda__1___closed__8;
lean_object* l_Lean_Parser_Command_docComment___closed__3;
lean_object* l_Lean_Parser_andthenInfo(lean_object*, lean_object*);
lean_object* l_Lean_Parser_regBuiltinCommandParserAttr___closed__1;
lean_object* l_Lean_Parser_ParserState_mkError(lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_instance___closed__4;
lean_object* l___regBuiltinParser_Lean_Parser_Command_variable(lean_object*);
lean_object* l_Lean_Parser_Command_visibility;
@ -102,7 +101,6 @@ lean_object* l_Lean_Parser_Command_partial___elambda__1___closed__3;
lean_object* l_Lean_Parser_Command_classInductive___elambda__1(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_openHiding;
lean_object* l_Lean_Parser_Command_synth___elambda__1___closed__7;
extern lean_object* l_Lean_Parser_Term_letEqnsDecl___closed__1;
lean_object* l_Lean_Parser_Command_declModifiers___closed__8;
lean_object* l_Lean_Parser_Command_def___elambda__1___closed__8;
extern lean_object* l___private_Init_Lean_Parser_Parser_14__antiquotNestedExpr___closed__5;
@ -124,7 +122,6 @@ lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_structFields_
lean_object* l_Lean_Parser_Command_introRule___elambda__1___closed__4;
lean_object* l_Lean_Parser_Command_init__quot___closed__5;
lean_object* l_Lean_Parser_Command_extends___elambda__1___closed__8;
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_synth___elambda__1(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_unsafe___elambda__1___closed__9;
lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__7;
@ -190,6 +187,7 @@ lean_object* l_Lean_Parser_Command_namespace___closed__4;
lean_object* l_Lean_Parser_Command_def;
lean_object* l_Lean_Parser_Command_openRenamingItem___elambda__1___closed__13;
lean_object* l_Lean_Parser_Command_declSig___closed__2;
extern lean_object* l_Lean_Parser_Term_doPat___closed__2;
lean_object* l_Lean_Parser_Command_structure___closed__2;
lean_object* l_Lean_Parser_Command_declaration___elambda__1___closed__2;
lean_object* l_Lean_Parser_Command_structFields___closed__4;
@ -479,7 +477,6 @@ lean_object* l_Lean_Parser_Command_attrArg;
lean_object* l_Lean_Parser_Command_variables___closed__4;
lean_object* l_Lean_Parser_Command_protected___elambda__1___closed__5;
lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__15;
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___elambda__1___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_openSimple___closed__3;
lean_object* l_Lean_Parser_Command_openRenamingItem___closed__2;
lean_object* l_Lean_Parser_Command_openRenaming___elambda__1___closed__8;
@ -500,13 +497,11 @@ lean_object* l_Lean_Parser_Command_protected___closed__1;
lean_object* l_Lean_Parser_Command_docComment___elambda__1___closed__9;
lean_object* l_Lean_Parser_Command_declValEqns___closed__2;
lean_object* l_Lean_Parser_Command_abbrev___elambda__1(lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Parser_Term_matchAlt___elambda__1___closed__6;
lean_object* l_Lean_Parser_Command_instance___elambda__1___closed__8;
lean_object* l_Lean_Parser_Command_declModifiers___closed__3;
lean_object* l_Lean_Parser_Command_classInductive___closed__1;
extern lean_object* l_Char_HasRepr___closed__1;
lean_object* l_Lean_Parser_Command_structureTk___elambda__1___closed__6;
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___elambda__1___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_export___closed__1;
lean_object* l_Lean_Parser_Command_set__option___elambda__1(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_section___closed__2;
@ -520,13 +515,11 @@ lean_object* l_Lean_Parser_Command_structImplicitBinder___closed__5;
lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_tupleTail___elambda__1___spec__1(uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_variable___elambda__1(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_synth___closed__6;
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___elambda__1___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_orelseInfo(lean_object*, lean_object*);
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_attrInstance___elambda__1___spec__1(uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_structCtor___closed__2;
lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__5;
lean_object* l___regBuiltinParser_Lean_Parser_Command_namespace(lean_object*);
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___elambda__1___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_abbrev___elambda__1___closed__7;
lean_object* l_Lean_Parser_Command_export___closed__2;
lean_object* l_Lean_Parser_Command_classTk___closed__4;
@ -556,7 +549,6 @@ lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__4;
lean_object* l_Lean_Parser_Command_partial___closed__5;
lean_object* l_Lean_Parser_Command_classTk___closed__2;
lean_object* l_Array_back___at___private_Init_Lean_Parser_Parser_6__nameLitAux___spec__1(lean_object*);
extern lean_object* l_Lean_Parser_Term_equation;
lean_object* l_Lean_Parser_Command_variable___elambda__1___closed__9;
lean_object* l_Lean_Parser_rawIdent(uint8_t);
lean_object* l_Lean_Parser_Command_set__option___closed__5;
@ -625,7 +617,6 @@ lean_object* l_Lean_Parser_Command_structFields___closed__3;
lean_object* l_Lean_Parser_Command_commentBody___elambda__1___boxed(lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Parser_Term_explicitUniv___closed__4;
lean_object* l_Lean_Parser_Command_declModifiers___elambda__1___closed__4;
lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__5;
lean_object* l_Lean_Parser_Command_instance___elambda__1___closed__4;
lean_object* l_Lean_Parser_Command_section___elambda__1___closed__6;
@ -686,7 +677,6 @@ lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__12;
lean_object* l_Lean_Parser_Command_declValSimple___closed__2;
lean_object* l_Lean_Parser_Command_attributes___closed__4;
lean_object* l_Lean_Parser_Command_export;
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_openRenaming___closed__3;
lean_object* l___regBuiltinParser_Lean_Parser_Command_init__quot(lean_object*);
lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__3;
@ -804,7 +794,6 @@ lean_object* l_Lean_Parser_Command_axiom___elambda__1___closed__2;
lean_object* l_Lean_Parser_Command_structCtor___closed__5;
extern lean_object* l___private_Init_Lean_Parser_Parser_14__antiquotNestedExpr___closed__2;
extern lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__9;
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_docComment___elambda__1___closed__3;
lean_object* l_Lean_Parser_Command_private___closed__4;
lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__3;
@ -870,7 +859,7 @@ extern lean_object* l_Lean_Parser_Term_explicitUniv___closed__1;
extern lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__11;
lean_object* l_Lean_Parser_Command_open___closed__6;
lean_object* l_Lean_Parser_Command_declModifiers___closed__12;
extern lean_object* l_Lean_Parser_Term_matchAlt___elambda__1___closed__9;
extern lean_object* l_Lean_Parser_Term_letEqnsDecl___elambda__1___closed__1;
lean_object* l_Lean_Parser_Command_noncomputable___elambda__1___closed__9;
lean_object* l_Lean_Parser_Command_attribute___closed__8;
lean_object* l_Lean_Parser_Command_structureTk___elambda__1(lean_object*, lean_object*, lean_object*);
@ -888,7 +877,6 @@ lean_object* l_Lean_Parser_Command_structFields___closed__7;
lean_object* l_Lean_Parser_Command_export___elambda__1___closed__9;
lean_object* l_Lean_Parser_Command_section___closed__7;
lean_object* l_Lean_Parser_Command_noncomputable___elambda__1___closed__8;
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_structure___closed__9;
lean_object* l_Lean_Parser_Command_declaration___closed__2;
lean_object* l_Lean_Parser_Command_end___elambda__1___closed__7;
@ -911,6 +899,7 @@ lean_object* l_Lean_Parser_Command_resolve__name___elambda__1___closed__7;
lean_object* l_Lean_Parser_Command_openRenamingItem___elambda__1___closed__11;
lean_object* l_Lean_Parser_Command_openHiding___closed__2;
lean_object* l_Lean_Parser_Command_constant___closed__4;
extern lean_object* l_Lean_Parser_Term_doPat___elambda__1___closed__6;
lean_object* l_Lean_Parser_Command_attrArg___closed__1;
lean_object* l_Lean_Parser_Command_partial___closed__2;
lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__2;
@ -928,7 +917,6 @@ lean_object* l_Lean_Parser_Command_openRenaming___closed__2;
extern lean_object* l___private_Init_Lean_Parser_Parser_14__antiquotNestedExpr___closed__6;
lean_object* l_Lean_Parser_Command_openHiding___elambda__1___closed__9;
lean_object* l_Lean_Parser_Command_declaration___closed__8;
extern lean_object* l_Lean_Parser_Term_matchAlt___closed__2;
lean_object* l_Lean_Parser_Command_optDeclSig___elambda__1___closed__4;
lean_object* l_String_trim(lean_object*);
lean_object* l_Lean_Parser_Command_structure___elambda__1(lean_object*, lean_object*, lean_object*);
@ -957,6 +945,7 @@ lean_object* l_Lean_Parser_Command_declSig___closed__5;
lean_object* l_Lean_Parser_Command_structCtor___elambda__1___closed__4;
lean_object* l_Lean_Parser_Command_structureTk___closed__5;
lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__9;
extern lean_object* l_Lean_Parser_Term_doPat___elambda__1___closed__9;
lean_object* l_Lean_Parser_Command_set__option___closed__1;
extern lean_object* l_Lean_Parser_Term_matchAlt___closed__1;
lean_object* l_Lean_Parser_Command_protected___elambda__1(lean_object*, lean_object*, lean_object*);
@ -973,7 +962,6 @@ lean_object* l_Lean_Parser_Command_strictInferMod___closed__2;
lean_object* l_Lean_Parser_Command_synth___elambda__1___closed__6;
lean_object* l_Lean_Parser_Command_structImplicitBinder___elambda__1___closed__1;
lean_object* l_Lean_Parser_Command_classInductive___elambda__1___closed__4;
extern lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_letEqnsDecl___elambda__1___spec__1___closed__1;
lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__3;
lean_object* l_Lean_Parser_Command_declValSimple___elambda__1___closed__3;
lean_object* l_Lean_Parser_Command_set__option___closed__2;
@ -1050,7 +1038,6 @@ lean_object* l_Lean_Parser_Command_export___elambda__1___closed__6;
lean_object* l_Lean_Parser_Command_def___closed__4;
lean_object* l_Lean_Parser_Command_declaration___closed__5;
lean_object* l_Lean_Parser_Command_extends___closed__6;
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_unicodeSymbolInfo(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_init__quot;
lean_object* l_Lean_Parser_Command_openRenaming___closed__6;
@ -6856,262 +6843,6 @@ x_1 = l_Lean_Parser_Command_declValSimple___closed__4;
return x_1;
}
}
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___elambda__1___spec__1(lean_object* x_1, uint8_t 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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31;
x_6 = l_Lean_Parser_Term_equation;
x_7 = lean_ctor_get(x_6, 1);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 0);
lean_inc(x_8);
x_9 = lean_array_get_size(x_8);
lean_dec(x_8);
x_10 = lean_ctor_get(x_5, 1);
lean_inc(x_10);
x_27 = lean_ctor_get(x_4, 0);
lean_inc(x_27);
x_28 = lean_ctor_get(x_27, 2);
lean_inc(x_28);
lean_dec(x_27);
x_29 = l_Lean_FileMap_toPosition(x_28, x_10);
lean_dec(x_28);
x_30 = lean_ctor_get(x_29, 1);
lean_inc(x_30);
lean_dec(x_29);
x_31 = lean_nat_dec_le(x_1, x_30);
lean_dec(x_30);
if (x_31 == 0)
{
lean_object* x_32; lean_object* x_33;
x_32 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_letEqnsDecl___elambda__1___spec__1___closed__1;
x_33 = l_Lean_Parser_ParserState_mkError(x_5, x_32);
x_11 = x_33;
goto block_26;
}
else
{
x_11 = x_5;
goto block_26;
}
block_26:
{
lean_object* x_12;
x_12 = lean_ctor_get(x_11, 3);
lean_inc(x_12);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14;
lean_inc(x_4);
lean_inc(x_3);
x_13 = lean_apply_3(x_7, x_3, x_4, x_11);
x_14 = lean_ctor_get(x_13, 3);
lean_inc(x_14);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; uint8_t x_16;
lean_dec(x_9);
x_15 = lean_ctor_get(x_13, 1);
lean_inc(x_15);
x_16 = lean_nat_dec_eq(x_10, x_15);
lean_dec(x_15);
lean_dec(x_10);
if (x_16 == 0)
{
x_5 = x_13;
goto _start;
}
else
{
lean_object* x_18; lean_object* x_19;
lean_dec(x_4);
lean_dec(x_3);
x_18 = l_Lean_Parser_manyAux___main___closed__1;
x_19 = l_Lean_Parser_ParserState_mkUnexpectedError(x_13, x_18);
return x_19;
}
}
else
{
lean_object* x_20; uint8_t x_21;
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_3);
x_20 = lean_ctor_get(x_13, 1);
lean_inc(x_20);
x_21 = lean_nat_dec_eq(x_10, x_20);
lean_dec(x_20);
if (x_21 == 0)
{
lean_dec(x_10);
lean_dec(x_9);
return x_13;
}
else
{
lean_object* x_22;
x_22 = l_Lean_Parser_ParserState_restore(x_13, x_9, x_10);
lean_dec(x_9);
return x_22;
}
}
}
else
{
lean_object* x_23; uint8_t x_24;
lean_dec(x_12);
lean_dec(x_7);
lean_dec(x_4);
lean_dec(x_3);
x_23 = lean_ctor_get(x_11, 1);
lean_inc(x_23);
x_24 = lean_nat_dec_eq(x_10, x_23);
lean_dec(x_23);
if (x_24 == 0)
{
lean_dec(x_10);
lean_dec(x_9);
return x_11;
}
else
{
lean_object* x_25;
x_25 = l_Lean_Parser_ParserState_restore(x_11, x_9, x_10);
lean_dec(x_9);
return x_25;
}
}
}
}
}
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___elambda__1___spec__2(lean_object* x_1, uint8_t 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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31;
x_6 = l_Lean_Parser_Term_equation;
x_7 = lean_ctor_get(x_6, 1);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 0);
lean_inc(x_8);
x_9 = lean_array_get_size(x_8);
lean_dec(x_8);
x_10 = lean_ctor_get(x_5, 1);
lean_inc(x_10);
x_27 = lean_ctor_get(x_4, 0);
lean_inc(x_27);
x_28 = lean_ctor_get(x_27, 2);
lean_inc(x_28);
lean_dec(x_27);
x_29 = l_Lean_FileMap_toPosition(x_28, x_10);
lean_dec(x_28);
x_30 = lean_ctor_get(x_29, 1);
lean_inc(x_30);
lean_dec(x_29);
x_31 = lean_nat_dec_le(x_1, x_30);
lean_dec(x_30);
if (x_31 == 0)
{
lean_object* x_32; lean_object* x_33;
x_32 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_letEqnsDecl___elambda__1___spec__1___closed__1;
x_33 = l_Lean_Parser_ParserState_mkError(x_5, x_32);
x_11 = x_33;
goto block_26;
}
else
{
x_11 = x_5;
goto block_26;
}
block_26:
{
lean_object* x_12;
x_12 = lean_ctor_get(x_11, 3);
lean_inc(x_12);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14;
lean_inc(x_4);
lean_inc(x_3);
x_13 = lean_apply_3(x_7, x_3, x_4, x_11);
x_14 = lean_ctor_get(x_13, 3);
lean_inc(x_14);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; uint8_t x_16;
lean_dec(x_9);
x_15 = lean_ctor_get(x_13, 1);
lean_inc(x_15);
x_16 = lean_nat_dec_eq(x_10, x_15);
lean_dec(x_15);
lean_dec(x_10);
if (x_16 == 0)
{
x_5 = x_13;
goto _start;
}
else
{
lean_object* x_18; lean_object* x_19;
lean_dec(x_4);
lean_dec(x_3);
x_18 = l_Lean_Parser_manyAux___main___closed__1;
x_19 = l_Lean_Parser_ParserState_mkUnexpectedError(x_13, x_18);
return x_19;
}
}
else
{
lean_object* x_20; uint8_t x_21;
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_3);
x_20 = lean_ctor_get(x_13, 1);
lean_inc(x_20);
x_21 = lean_nat_dec_eq(x_10, x_20);
lean_dec(x_20);
if (x_21 == 0)
{
lean_dec(x_10);
lean_dec(x_9);
return x_13;
}
else
{
lean_object* x_22;
x_22 = l_Lean_Parser_ParserState_restore(x_13, x_9, x_10);
lean_dec(x_9);
return x_22;
}
}
}
else
{
lean_object* x_23; uint8_t x_24;
lean_dec(x_12);
lean_dec(x_7);
lean_dec(x_4);
lean_dec(x_3);
x_23 = lean_ctor_get(x_11, 1);
lean_inc(x_23);
x_24 = lean_nat_dec_eq(x_10, x_23);
lean_dec(x_23);
if (x_24 == 0)
{
lean_dec(x_10);
lean_dec(x_9);
return x_11;
}
else
{
lean_object* x_25;
x_25 = l_Lean_Parser_ParserState_restore(x_11, x_9, x_10);
lean_dec(x_9);
return x_25;
}
}
}
}
}
lean_object* _init_l_Lean_Parser_Command_declValEqns___elambda__1___closed__1() {
_start:
{
@ -7155,398 +6886,83 @@ return x_5;
lean_object* l_Lean_Parser_Command_declValEqns___elambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
x_4 = l_Lean_Parser_Command_declValEqns___elambda__1___closed__4;
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12;
x_4 = l_Lean_Parser_Term_letEqnsDecl___elambda__1___closed__1;
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 0);
lean_inc(x_6);
x_7 = lean_array_get_size(x_6);
lean_dec(x_6);
x_8 = lean_ctor_get(x_3, 1);
x_6 = l_Lean_Parser_Command_declValEqns___elambda__1___closed__4;
x_7 = lean_ctor_get(x_6, 1);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
x_9 = lean_array_get_size(x_8);
lean_dec(x_8);
x_10 = lean_ctor_get(x_3, 1);
lean_inc(x_10);
lean_inc(x_2);
lean_inc(x_1);
x_9 = lean_apply_3(x_5, x_1, x_2, x_3);
x_10 = lean_ctor_get(x_9, 3);
lean_inc(x_10);
if (lean_obj_tag(x_10) == 0)
{
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_2);
lean_dec(x_1);
return x_9;
}
else
{
lean_object* x_11; lean_object* x_12; uint8_t x_13;
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
lean_dec(x_10);
x_12 = lean_ctor_get(x_9, 1);
x_11 = lean_apply_3(x_7, x_1, x_2, x_3);
x_12 = lean_ctor_get(x_11, 3);
lean_inc(x_12);
x_13 = lean_nat_dec_eq(x_12, x_8);
lean_dec(x_12);
if (x_13 == 0)
if (lean_obj_tag(x_12) == 0)
{
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
return x_9;
return x_11;
}
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; uint8_t x_23;
lean_inc(x_8);
x_14 = l_Lean_Parser_ParserState_restore(x_9, x_7, x_8);
lean_dec(x_7);
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_array_get_size(x_15);
lean_dec(x_15);
x_17 = lean_ctor_get(x_2, 0);
lean_object* x_13; lean_object* x_14; uint8_t x_15;
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
lean_dec(x_12);
x_14 = lean_ctor_get(x_11, 1);
lean_inc(x_14);
x_15 = lean_nat_dec_eq(x_14, x_10);
lean_dec(x_14);
if (x_15 == 0)
{
lean_dec(x_13);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
return x_11;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22;
lean_inc(x_10);
x_16 = l_Lean_Parser_ParserState_restore(x_11, x_9, x_10);
lean_dec(x_9);
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
x_18 = lean_ctor_get(x_17, 2);
lean_inc(x_18);
x_18 = lean_array_get_size(x_17);
lean_dec(x_17);
x_19 = l_Lean_FileMap_toPosition(x_18, x_8);
lean_dec(x_18);
x_20 = lean_ctor_get(x_19, 1);
lean_inc(x_20);
lean_dec(x_19);
x_21 = l_Lean_Parser_Term_equation;
x_22 = lean_ctor_get(x_21, 1);
lean_inc(x_22);
x_23 = lean_nat_dec_le(x_20, x_20);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30;
lean_dec(x_22);
lean_dec(x_20);
lean_dec(x_2);
lean_dec(x_1);
x_24 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_letEqnsDecl___elambda__1___spec__1___closed__1;
x_25 = l_Lean_Parser_ParserState_mkError(x_14, x_24);
x_26 = l_Lean_nullKind;
lean_inc(x_16);
x_27 = l_Lean_Parser_ParserState_mkNode(x_25, x_26, x_16);
x_28 = l_Lean_Parser_Command_declValEqns___elambda__1___closed__2;
x_29 = l_Lean_Parser_ParserState_mkNode(x_27, x_28, x_16);
x_30 = l_Lean_Parser_mergeOrElseErrors(x_29, x_11, x_8);
lean_dec(x_8);
return x_30;
}
else
{
lean_object* x_31; lean_object* x_32;
lean_inc(x_2);
lean_inc(x_1);
x_31 = lean_apply_3(x_22, x_1, x_2, x_14);
x_32 = lean_ctor_get(x_31, 3);
lean_inc(x_32);
if (lean_obj_tag(x_32) == 0)
{
uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39;
x_33 = 0;
x_34 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___elambda__1___spec__2(x_20, x_33, x_1, x_2, x_31);
lean_dec(x_20);
x_35 = l_Lean_nullKind;
lean_inc(x_16);
x_36 = l_Lean_Parser_ParserState_mkNode(x_34, x_35, x_16);
x_37 = l_Lean_Parser_Command_declValEqns___elambda__1___closed__2;
x_38 = l_Lean_Parser_ParserState_mkNode(x_36, x_37, x_16);
x_39 = l_Lean_Parser_mergeOrElseErrors(x_38, x_11, x_8);
lean_dec(x_8);
return x_39;
}
else
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44;
lean_dec(x_32);
lean_dec(x_20);
lean_dec(x_2);
lean_dec(x_1);
x_40 = l_Lean_nullKind;
lean_inc(x_16);
x_41 = l_Lean_Parser_ParserState_mkNode(x_31, x_40, x_16);
x_42 = l_Lean_Parser_Command_declValEqns___elambda__1___closed__2;
x_43 = l_Lean_Parser_ParserState_mkNode(x_41, x_42, x_16);
x_44 = l_Lean_Parser_mergeOrElseErrors(x_43, x_11, x_8);
lean_dec(x_8);
return x_44;
}
}
}
}
}
}
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___spec__1(lean_object* x_1, uint8_t 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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31;
x_6 = l_Lean_Parser_Term_equation;
x_7 = lean_ctor_get(x_6, 1);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 0);
lean_inc(x_8);
x_9 = lean_array_get_size(x_8);
lean_dec(x_8);
x_10 = lean_ctor_get(x_5, 1);
lean_inc(x_10);
x_27 = lean_ctor_get(x_4, 0);
lean_inc(x_27);
x_28 = lean_ctor_get(x_27, 2);
lean_inc(x_28);
lean_dec(x_27);
x_29 = l_Lean_FileMap_toPosition(x_28, x_10);
lean_dec(x_28);
x_30 = lean_ctor_get(x_29, 1);
lean_inc(x_30);
lean_dec(x_29);
x_31 = lean_nat_dec_le(x_1, x_30);
lean_dec(x_30);
if (x_31 == 0)
{
lean_object* x_32; lean_object* x_33;
x_32 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_letEqnsDecl___elambda__1___spec__1___closed__1;
x_33 = l_Lean_Parser_ParserState_mkError(x_5, x_32);
x_11 = x_33;
goto block_26;
}
else
{
x_11 = x_5;
goto block_26;
}
block_26:
{
lean_object* x_12;
x_12 = lean_ctor_get(x_11, 3);
lean_inc(x_12);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14;
lean_inc(x_4);
lean_inc(x_3);
x_13 = lean_apply_3(x_7, x_3, x_4, x_11);
x_14 = lean_ctor_get(x_13, 3);
lean_inc(x_14);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; uint8_t x_16;
lean_dec(x_9);
x_15 = lean_ctor_get(x_13, 1);
lean_inc(x_15);
x_16 = lean_nat_dec_eq(x_10, x_15);
lean_dec(x_15);
x_19 = lean_apply_3(x_5, x_1, x_2, x_16);
x_20 = l_Lean_Parser_Command_declValEqns___elambda__1___closed__2;
x_21 = l_Lean_Parser_ParserState_mkNode(x_19, x_20, x_18);
x_22 = l_Lean_Parser_mergeOrElseErrors(x_21, x_13, x_10);
lean_dec(x_10);
if (x_16 == 0)
{
x_5 = x_13;
goto _start;
}
else
{
lean_object* x_18; lean_object* x_19;
lean_dec(x_4);
lean_dec(x_3);
x_18 = l_Lean_Parser_manyAux___main___closed__1;
x_19 = l_Lean_Parser_ParserState_mkUnexpectedError(x_13, x_18);
return x_19;
}
}
else
{
lean_object* x_20; uint8_t x_21;
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_3);
x_20 = lean_ctor_get(x_13, 1);
lean_inc(x_20);
x_21 = lean_nat_dec_eq(x_10, x_20);
lean_dec(x_20);
if (x_21 == 0)
{
lean_dec(x_10);
lean_dec(x_9);
return x_13;
}
else
{
lean_object* x_22;
x_22 = l_Lean_Parser_ParserState_restore(x_13, x_9, x_10);
lean_dec(x_9);
return x_22;
}
}
}
else
{
lean_object* x_23; uint8_t x_24;
lean_dec(x_12);
lean_dec(x_7);
lean_dec(x_4);
lean_dec(x_3);
x_23 = lean_ctor_get(x_11, 1);
lean_inc(x_23);
x_24 = lean_nat_dec_eq(x_10, x_23);
lean_dec(x_23);
if (x_24 == 0)
{
lean_dec(x_10);
lean_dec(x_9);
return x_11;
}
else
{
lean_object* x_25;
x_25 = l_Lean_Parser_ParserState_restore(x_11, x_9, x_10);
lean_dec(x_9);
return x_25;
}
}
}
}
}
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___spec__2(lean_object* x_1, uint8_t 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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31;
x_6 = l_Lean_Parser_Term_equation;
x_7 = lean_ctor_get(x_6, 1);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 0);
lean_inc(x_8);
x_9 = lean_array_get_size(x_8);
lean_dec(x_8);
x_10 = lean_ctor_get(x_5, 1);
lean_inc(x_10);
x_27 = lean_ctor_get(x_4, 0);
lean_inc(x_27);
x_28 = lean_ctor_get(x_27, 2);
lean_inc(x_28);
lean_dec(x_27);
x_29 = l_Lean_FileMap_toPosition(x_28, x_10);
lean_dec(x_28);
x_30 = lean_ctor_get(x_29, 1);
lean_inc(x_30);
lean_dec(x_29);
x_31 = lean_nat_dec_le(x_1, x_30);
lean_dec(x_30);
if (x_31 == 0)
{
lean_object* x_32; lean_object* x_33;
x_32 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_letEqnsDecl___elambda__1___spec__1___closed__1;
x_33 = l_Lean_Parser_ParserState_mkError(x_5, x_32);
x_11 = x_33;
goto block_26;
}
else
{
x_11 = x_5;
goto block_26;
}
block_26:
{
lean_object* x_12;
x_12 = lean_ctor_get(x_11, 3);
lean_inc(x_12);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14;
lean_inc(x_4);
lean_inc(x_3);
x_13 = lean_apply_3(x_7, x_3, x_4, x_11);
x_14 = lean_ctor_get(x_13, 3);
lean_inc(x_14);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; uint8_t x_16;
lean_dec(x_9);
x_15 = lean_ctor_get(x_13, 1);
lean_inc(x_15);
x_16 = lean_nat_dec_eq(x_10, x_15);
lean_dec(x_15);
lean_dec(x_10);
if (x_16 == 0)
{
x_5 = x_13;
goto _start;
}
else
{
lean_object* x_18; lean_object* x_19;
lean_dec(x_4);
lean_dec(x_3);
x_18 = l_Lean_Parser_manyAux___main___closed__1;
x_19 = l_Lean_Parser_ParserState_mkUnexpectedError(x_13, x_18);
return x_19;
}
}
else
{
lean_object* x_20; uint8_t x_21;
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_3);
x_20 = lean_ctor_get(x_13, 1);
lean_inc(x_20);
x_21 = lean_nat_dec_eq(x_10, x_20);
lean_dec(x_20);
if (x_21 == 0)
{
lean_dec(x_10);
lean_dec(x_9);
return x_13;
}
else
{
lean_object* x_22;
x_22 = l_Lean_Parser_ParserState_restore(x_13, x_9, x_10);
lean_dec(x_9);
return x_22;
}
}
}
else
{
lean_object* x_23; uint8_t x_24;
lean_dec(x_12);
lean_dec(x_7);
lean_dec(x_4);
lean_dec(x_3);
x_23 = lean_ctor_get(x_11, 1);
lean_inc(x_23);
x_24 = lean_nat_dec_eq(x_10, x_23);
lean_dec(x_23);
if (x_24 == 0)
{
lean_dec(x_10);
lean_dec(x_9);
return x_11;
}
else
{
lean_object* x_25;
x_25 = l_Lean_Parser_ParserState_restore(x_11, x_9, x_10);
lean_dec(x_9);
return x_25;
}
}
}
}
}
lean_object* _init_l_Lean_Parser_Command_declValEqns___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Command_declValEqns___elambda__1___closed__2;
x_2 = l_Lean_Parser_Term_letEqnsDecl___closed__1;
x_3 = l_Lean_Parser_nodeInfo(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_Term_letEqnsDecl___elambda__1___closed__1;
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
x_3 = l_Lean_Parser_Command_declValEqns___elambda__1___closed__2;
x_4 = l_Lean_Parser_nodeInfo(x_3, x_2);
return x_4;
}
}
lean_object* _init_l_Lean_Parser_Command_declValEqns___closed__2() {
@ -7589,50 +7005,6 @@ x_1 = l_Lean_Parser_Command_declValEqns___closed__4;
return x_1;
}
}
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___elambda__1___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7;
x_6 = lean_unbox(x_2);
lean_dec(x_2);
x_7 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___elambda__1___spec__1(x_1, x_6, x_3, x_4, x_5);
lean_dec(x_1);
return x_7;
}
}
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___elambda__1___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7;
x_6 = lean_unbox(x_2);
lean_dec(x_2);
x_7 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___elambda__1___spec__2(x_1, x_6, x_3, x_4, x_5);
lean_dec(x_1);
return x_7;
}
}
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7;
x_6 = lean_unbox(x_2);
lean_dec(x_2);
x_7 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___spec__1(x_1, x_6, x_3, x_4, x_5);
lean_dec(x_1);
return x_7;
}
}
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7;
x_6 = lean_unbox(x_2);
lean_dec(x_2);
x_7 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_declValEqns___spec__2(x_1, x_6, x_3, x_4, x_5);
lean_dec(x_1);
return x_7;
}
}
lean_object* l_Lean_Parser_Command_declVal___elambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
@ -11370,13 +10742,13 @@ lean_object* x_72; lean_object* x_73; uint8_t x_74;
x_72 = lean_ctor_get(x_71, 1);
lean_inc(x_72);
lean_dec(x_71);
x_73 = l_Lean_Parser_Term_matchAlt___elambda__1___closed__6;
x_73 = l_Lean_Parser_Term_doPat___elambda__1___closed__6;
x_74 = lean_string_dec_eq(x_72, x_73);
lean_dec(x_72);
if (x_74 == 0)
{
lean_object* x_75; lean_object* x_76;
x_75 = l_Lean_Parser_Term_matchAlt___elambda__1___closed__9;
x_75 = l_Lean_Parser_Term_doPat___elambda__1___closed__9;
lean_inc(x_10);
x_76 = l_Lean_Parser_ParserState_mkErrorsAt(x_68, x_75, x_10);
x_19 = x_76;
@ -11392,7 +10764,7 @@ else
{
lean_object* x_77; lean_object* x_78;
lean_dec(x_71);
x_77 = l_Lean_Parser_Term_matchAlt___elambda__1___closed__9;
x_77 = l_Lean_Parser_Term_doPat___elambda__1___closed__9;
lean_inc(x_10);
x_78 = l_Lean_Parser_ParserState_mkErrorsAt(x_68, x_77, x_10);
x_19 = x_78;
@ -11403,7 +10775,7 @@ else
{
lean_object* x_79; lean_object* x_80;
lean_dec(x_69);
x_79 = l_Lean_Parser_Term_matchAlt___elambda__1___closed__9;
x_79 = l_Lean_Parser_Term_doPat___elambda__1___closed__9;
lean_inc(x_10);
x_80 = l_Lean_Parser_ParserState_mkErrorsAt(x_68, x_79, x_10);
x_19 = x_80;
@ -11609,7 +10981,7 @@ lean_object* _init_l_Lean_Parser_Command_introRule___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_matchAlt___closed__1;
x_1 = l_Lean_Parser_Term_doPat___closed__2;
x_2 = l_Lean_Parser_Command_introRule___closed__3;
x_3 = l_Lean_Parser_andthenInfo(x_1, x_2);
return x_3;
@ -15591,7 +14963,7 @@ _start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Command_extends___closed__1;
x_2 = l_Lean_Parser_Term_matchAlt___closed__2;
x_2 = l_Lean_Parser_Term_matchAlt___closed__1;
x_3 = l_Lean_Parser_andthenInfo(x_1, x_2);
return x_3;
}

View file

@ -40,7 +40,6 @@ lean_object* l_Lean_Parser_Syntax_many1;
lean_object* l_Lean_Parser_Command_notation___elambda__1(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Syntax_many___elambda__1___closed__2;
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_Command_mixfix;
lean_object* l_Lean_Parser_Command_mixfixSymbol___elambda__1(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Syntax_lookahead___closed__4;
@ -122,7 +121,6 @@ lean_object* l_Lean_Parser_Syntax_str___closed__5;
lean_object* l_Lean_Parser_Command_macroTailCommand___closed__5;
lean_object* l_Lean_Parser_Command_strLitPrec___closed__1;
extern lean_object* l_Lean_Parser_Level_num___elambda__1___closed__1;
extern lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_match___elambda__1___spec__1___closed__1;
lean_object* l_Lean_Parser_Command_strLitPrec___elambda__1___closed__3;
lean_object* l_Lean_Parser_Command_syntaxCat___elambda__1___closed__7;
lean_object* l_Lean_Parser_Command_macroArgSimple___closed__1;
@ -180,7 +178,6 @@ extern lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__9;
lean_object* l_Lean_Parser_Syntax_char___elambda__1___closed__5;
lean_object* l_Lean_Parser_Syntax_sepBy___closed__4;
lean_object* l_Lean_Parser_Command_macro___closed__5;
extern lean_object* l_Lean_Parser_Term_match___closed__3;
extern lean_object* l_Lean_Parser_mkAntiquot___closed__3;
lean_object* l_Lean_Parser_Syntax_str___closed__4;
lean_object* l_Lean_Parser_Command_infix___elambda__1___closed__4;
@ -199,7 +196,6 @@ lean_object* l_Lean_Parser_Syntax_ident___closed__5;
lean_object* l_Lean_Parser_Syntax_sepBy___elambda__1___closed__6;
lean_object* l_Lean_Parser_Command_macroTailDefault___closed__5;
lean_object* l_Lean_Parser_Command_notation___closed__6;
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_macroArg___closed__3;
lean_object* l_Lean_Parser_Command_macroTail___closed__2;
lean_object* l_Lean_Parser_Command_reserve___elambda__1___closed__5;
@ -326,14 +322,12 @@ lean_object* l_Lean_Parser_Command_infixr___elambda__1___closed__7;
lean_object* l_Lean_Parser_Command_infixl___elambda__1___closed__6;
lean_object* l_Lean_Parser_checkNoWsBeforeFn(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Syntax_cat;
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Parser_mkAntiquot___closed__10;
lean_object* l_Lean_Parser_Syntax_optional___elambda__1___closed__4;
lean_object* l_Lean_Parser_orelseInfo(lean_object*, lean_object*);
lean_object* l_Lean_Parser_Syntax_char___closed__4;
lean_object* l_Lean_Parser_Command_syntax___elambda__1___closed__3;
lean_object* l_Lean_Parser_Syntax_lookahead___closed__3;
lean_object* l_Lean_Parser_Term_matchAlt___elambda__1(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_mixfixSymbol___closed__2;
lean_object* l_Lean_Parser_Command_macroTailTactic;
lean_object* l_Lean_Parser_Syntax_sepBy1___elambda__1___closed__3;
@ -348,7 +342,6 @@ lean_object* l___regBuiltinParser_Lean_Parser_Syntax_str(lean_object*);
lean_object* l_Lean_Parser_Syntax_ident___elambda__1___closed__3;
extern lean_object* l___regBuiltinParser_Lean_Parser_Command_antiquot___closed__2;
extern lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__5;
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___elambda__1___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_syntax___elambda__1___closed__5;
extern lean_object* l_Lean_Parser_Level_paren___elambda__1___closed__11;
lean_object* l_Lean_Parser_Syntax_char___elambda__1___closed__2;
@ -373,7 +366,6 @@ lean_object* l_Lean_Parser_Command_mixfixSymbol___closed__3;
lean_object* l_Lean_Parser_Command_quotedSymbolPrec___closed__4;
lean_object* l_Lean_Parser_Syntax_char___elambda__1___closed__1;
lean_object* l_Lean_Parser_Syntax_sepBy1___elambda__1___closed__8;
lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*);
extern lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__8;
lean_object* l_Lean_Parser_Command_identPrec___elambda__1___closed__2;
lean_object* l_Lean_Parser_Syntax_cat___elambda__1___closed__2;
@ -412,7 +404,6 @@ lean_object* l_Lean_Parser_Command_macroTailCommand___closed__1;
lean_object* l_Lean_Parser_Command_identPrec___closed__4;
lean_object* l_Lean_Parser_Command_syntax___closed__1;
lean_object* l_Lean_Parser_Command_infixl___elambda__1___closed__3;
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___elambda__1___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_precedence___closed__3;
extern lean_object* l_Lean_Parser_Tactic_orelse___elambda__1___closed__2;
lean_object* l_Lean_Parser_Command_macroTailTactic___elambda__1___boxed(lean_object*, lean_object*, lean_object*);
@ -478,7 +469,6 @@ lean_object* l_Lean_Parser_Command_reserve___closed__6;
lean_object* l_Lean_Parser_Syntax_sepBy1___closed__1;
extern lean_object* l___private_Init_Lean_Parser_Parser_14__antiquotNestedExpr___closed__2;
extern lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__9;
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
extern lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__8;
lean_object* l_Lean_Parser_Command_syntaxCat___elambda__1___closed__4;
lean_object* l_Lean_Parser_Command_quotedSymbolPrec___closed__2;
@ -496,6 +486,7 @@ lean_object* l_Lean_Parser_Command_notation___elambda__1___closed__4;
lean_object* l_Lean_Parser_Command_infix___elambda__1___closed__2;
lean_object* l_Lean_Parser_Command_macro__rules___elambda__1(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_syntaxCat___closed__5;
extern lean_object* l_Lean_Parser_Term_match___elambda__1___closed__9;
lean_object* l_Lean_Parser_maxPrec___closed__5;
lean_object* l_Lean_Parser_Command_macroTailTactic___closed__6;
lean_object* l_Lean_Parser_Command_notation___closed__1;
@ -595,7 +586,6 @@ lean_object* l_Lean_Parser_Syntax_char___closed__5;
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro___elambda__1___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_mkAntiquot(uint8_t, lean_object*, lean_object*, uint8_t);
lean_object* l_Lean_Parser_Command_macroTailCommand;
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_syntaxCat___closed__1;
lean_object* l_Lean_Parser_Command_macro__rules;
lean_object* l_Lean_Parser_Command_syntaxCat___elambda__1___closed__2;
@ -603,7 +593,6 @@ lean_object* l_Lean_Parser_Command_infix___elambda__1___closed__7;
lean_object* l_Lean_Parser_Command_prefix___closed__3;
lean_object* l_Lean_Parser_Syntax_optional___elambda__1___closed__6;
lean_object* l_Lean_Parser_maxPrec___elambda__1___closed__5;
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___elambda__1___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Syntax_try___closed__2;
lean_object* l_Lean_Parser_Command_quotedSymbolPrec___elambda__1___closed__2;
lean_object* l___regBuiltinParser_Lean_Parser_Syntax_ident(lean_object*);
@ -622,7 +611,6 @@ lean_object* l_Lean_Parser_precedence___closed__2;
lean_object* l_Lean_Parser_Syntax_char___elambda__1(lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Parser_regBuiltinTacticParserAttr___closed__4;
lean_object* l_Lean_Parser_Command_infixr___closed__4;
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Syntax_try___elambda__1___closed__3;
lean_object* l_Lean_Parser_Command_macroTailDefault___closed__4;
lean_object* l_Lean_Parser_Command_syntaxCat___elambda__1___closed__6;
@ -703,7 +691,6 @@ lean_object* l_Lean_Parser_Syntax_orelse;
lean_object* l_Lean_Parser_Syntax_try___elambda__1___closed__5;
lean_object* l_Lean_Parser_Command_macro___closed__9;
lean_object* l_Lean_Parser_Command_syntax___closed__4;
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___elambda__1___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Parser_Level_addLit___elambda__1___closed__7;
lean_object* l_Lean_Parser_Command_strLitPrec___elambda__1___closed__4;
lean_object* l_Lean_Parser_syntaxParser(uint8_t, lean_object*);
@ -8674,254 +8661,6 @@ x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___elambda__1___spec__1(lean_object* x_1, uint8_t 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; lean_object* x_9; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29;
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
x_7 = lean_array_get_size(x_6);
lean_dec(x_6);
x_8 = lean_ctor_get(x_5, 1);
lean_inc(x_8);
x_25 = lean_ctor_get(x_4, 0);
lean_inc(x_25);
x_26 = lean_ctor_get(x_25, 2);
lean_inc(x_26);
lean_dec(x_25);
x_27 = l_Lean_FileMap_toPosition(x_26, x_8);
lean_dec(x_26);
x_28 = lean_ctor_get(x_27, 1);
lean_inc(x_28);
lean_dec(x_27);
x_29 = lean_nat_dec_le(x_1, x_28);
lean_dec(x_28);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31;
x_30 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_match___elambda__1___spec__1___closed__1;
x_31 = l_Lean_Parser_ParserState_mkError(x_5, x_30);
x_9 = x_31;
goto block_24;
}
else
{
x_9 = x_5;
goto block_24;
}
block_24:
{
lean_object* x_10;
x_10 = lean_ctor_get(x_9, 3);
lean_inc(x_10);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; lean_object* x_12;
lean_inc(x_4);
lean_inc(x_3);
x_11 = l_Lean_Parser_Term_matchAlt___elambda__1(x_3, x_4, x_9);
x_12 = lean_ctor_get(x_11, 3);
lean_inc(x_12);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; uint8_t x_14;
lean_dec(x_7);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
x_14 = lean_nat_dec_eq(x_8, x_13);
lean_dec(x_13);
lean_dec(x_8);
if (x_14 == 0)
{
x_5 = x_11;
goto _start;
}
else
{
lean_object* x_16; lean_object* x_17;
lean_dec(x_4);
lean_dec(x_3);
x_16 = l_Lean_Parser_manyAux___main___closed__1;
x_17 = l_Lean_Parser_ParserState_mkUnexpectedError(x_11, x_16);
return x_17;
}
}
else
{
lean_object* x_18; uint8_t x_19;
lean_dec(x_12);
lean_dec(x_4);
lean_dec(x_3);
x_18 = lean_ctor_get(x_11, 1);
lean_inc(x_18);
x_19 = lean_nat_dec_eq(x_8, x_18);
lean_dec(x_18);
if (x_19 == 0)
{
lean_dec(x_8);
lean_dec(x_7);
return x_11;
}
else
{
lean_object* x_20;
x_20 = l_Lean_Parser_ParserState_restore(x_11, x_7, x_8);
lean_dec(x_7);
return x_20;
}
}
}
else
{
lean_object* x_21; uint8_t x_22;
lean_dec(x_10);
lean_dec(x_4);
lean_dec(x_3);
x_21 = lean_ctor_get(x_9, 1);
lean_inc(x_21);
x_22 = lean_nat_dec_eq(x_8, x_21);
lean_dec(x_21);
if (x_22 == 0)
{
lean_dec(x_8);
lean_dec(x_7);
return x_9;
}
else
{
lean_object* x_23;
x_23 = l_Lean_Parser_ParserState_restore(x_9, x_7, x_8);
lean_dec(x_7);
return x_23;
}
}
}
}
}
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___elambda__1___spec__2(lean_object* x_1, uint8_t 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; lean_object* x_9; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29;
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
x_7 = lean_array_get_size(x_6);
lean_dec(x_6);
x_8 = lean_ctor_get(x_5, 1);
lean_inc(x_8);
x_25 = lean_ctor_get(x_4, 0);
lean_inc(x_25);
x_26 = lean_ctor_get(x_25, 2);
lean_inc(x_26);
lean_dec(x_25);
x_27 = l_Lean_FileMap_toPosition(x_26, x_8);
lean_dec(x_26);
x_28 = lean_ctor_get(x_27, 1);
lean_inc(x_28);
lean_dec(x_27);
x_29 = lean_nat_dec_le(x_1, x_28);
lean_dec(x_28);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31;
x_30 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_match___elambda__1___spec__1___closed__1;
x_31 = l_Lean_Parser_ParserState_mkError(x_5, x_30);
x_9 = x_31;
goto block_24;
}
else
{
x_9 = x_5;
goto block_24;
}
block_24:
{
lean_object* x_10;
x_10 = lean_ctor_get(x_9, 3);
lean_inc(x_10);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; lean_object* x_12;
lean_inc(x_4);
lean_inc(x_3);
x_11 = l_Lean_Parser_Term_matchAlt___elambda__1(x_3, x_4, x_9);
x_12 = lean_ctor_get(x_11, 3);
lean_inc(x_12);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; uint8_t x_14;
lean_dec(x_7);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
x_14 = lean_nat_dec_eq(x_8, x_13);
lean_dec(x_13);
lean_dec(x_8);
if (x_14 == 0)
{
x_5 = x_11;
goto _start;
}
else
{
lean_object* x_16; lean_object* x_17;
lean_dec(x_4);
lean_dec(x_3);
x_16 = l_Lean_Parser_manyAux___main___closed__1;
x_17 = l_Lean_Parser_ParserState_mkUnexpectedError(x_11, x_16);
return x_17;
}
}
else
{
lean_object* x_18; uint8_t x_19;
lean_dec(x_12);
lean_dec(x_4);
lean_dec(x_3);
x_18 = lean_ctor_get(x_11, 1);
lean_inc(x_18);
x_19 = lean_nat_dec_eq(x_8, x_18);
lean_dec(x_18);
if (x_19 == 0)
{
lean_dec(x_8);
lean_dec(x_7);
return x_11;
}
else
{
lean_object* x_20;
x_20 = l_Lean_Parser_ParserState_restore(x_11, x_7, x_8);
lean_dec(x_7);
return x_20;
}
}
}
else
{
lean_object* x_21; uint8_t x_22;
lean_dec(x_10);
lean_dec(x_4);
lean_dec(x_3);
x_21 = lean_ctor_get(x_9, 1);
lean_inc(x_21);
x_22 = lean_nat_dec_eq(x_8, x_21);
lean_dec(x_21);
if (x_22 == 0)
{
lean_dec(x_8);
lean_dec(x_7);
return x_9;
}
else
{
lean_object* x_23;
x_23 = l_Lean_Parser_ParserState_restore(x_9, x_7, x_8);
lean_dec(x_7);
return x_23;
}
}
}
}
}
lean_object* _init_l_Lean_Parser_Command_macro__rules___elambda__1___closed__1() {
_start:
{
@ -9006,455 +8745,147 @@ return x_3;
lean_object* l_Lean_Parser_Command_macro__rules___elambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
x_4 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__4;
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12;
x_4 = l_Lean_Parser_Term_match___elambda__1___closed__9;
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 0);
lean_inc(x_6);
x_7 = lean_array_get_size(x_6);
lean_dec(x_6);
x_8 = lean_ctor_get(x_3, 1);
x_6 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__4;
x_7 = lean_ctor_get(x_6, 1);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
x_9 = lean_array_get_size(x_8);
lean_dec(x_8);
x_10 = lean_ctor_get(x_3, 1);
lean_inc(x_10);
lean_inc(x_2);
lean_inc(x_1);
x_9 = lean_apply_3(x_5, x_1, x_2, x_3);
x_10 = lean_ctor_get(x_9, 3);
lean_inc(x_10);
if (lean_obj_tag(x_10) == 0)
{
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_2);
lean_dec(x_1);
return x_9;
}
else
{
lean_object* x_11; lean_object* x_12; uint8_t x_13;
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
lean_dec(x_10);
x_12 = lean_ctor_get(x_9, 1);
x_11 = lean_apply_3(x_7, x_1, x_2, x_3);
x_12 = lean_ctor_get(x_11, 3);
lean_inc(x_12);
x_13 = lean_nat_dec_eq(x_12, x_8);
lean_dec(x_12);
if (x_13 == 0)
if (lean_obj_tag(x_12) == 0)
{
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
return x_9;
return x_11;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_52; lean_object* x_53;
lean_inc(x_8);
x_14 = l_Lean_Parser_ParserState_restore(x_9, x_7, x_8);
lean_dec(x_7);
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_array_get_size(x_15);
lean_dec(x_15);
lean_object* x_13; lean_object* x_14; uint8_t x_15;
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
lean_dec(x_12);
x_14 = lean_ctor_get(x_11, 1);
lean_inc(x_14);
x_15 = lean_nat_dec_eq(x_14, x_10);
lean_dec(x_14);
if (x_15 == 0)
{
lean_dec(x_13);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
return x_11;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_29; lean_object* x_30;
lean_inc(x_10);
x_16 = l_Lean_Parser_ParserState_restore(x_11, x_9, x_10);
lean_dec(x_9);
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
x_18 = lean_array_get_size(x_17);
lean_dec(x_17);
lean_inc(x_2);
x_52 = l_Lean_Parser_tokenFn(x_2, x_14);
x_53 = lean_ctor_get(x_52, 3);
lean_inc(x_53);
if (lean_obj_tag(x_53) == 0)
x_29 = l_Lean_Parser_tokenFn(x_2, x_16);
x_30 = lean_ctor_get(x_29, 3);
lean_inc(x_30);
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_54; lean_object* x_55;
x_54 = lean_ctor_get(x_52, 0);
lean_inc(x_54);
x_55 = l_Array_back___at___private_Init_Lean_Parser_Parser_6__nameLitAux___spec__1(x_54);
lean_dec(x_54);
if (lean_obj_tag(x_55) == 2)
lean_object* x_31; lean_object* x_32;
x_31 = lean_ctor_get(x_29, 0);
lean_inc(x_31);
x_32 = l_Array_back___at___private_Init_Lean_Parser_Parser_6__nameLitAux___spec__1(x_31);
lean_dec(x_31);
if (lean_obj_tag(x_32) == 2)
{
lean_object* x_56; lean_object* x_57; uint8_t x_58;
x_56 = lean_ctor_get(x_55, 1);
lean_inc(x_56);
lean_dec(x_55);
x_57 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__5;
x_58 = lean_string_dec_eq(x_56, x_57);
lean_dec(x_56);
if (x_58 == 0)
lean_object* x_33; lean_object* x_34; uint8_t x_35;
x_33 = lean_ctor_get(x_32, 1);
lean_inc(x_33);
lean_dec(x_32);
x_34 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__5;
x_35 = lean_string_dec_eq(x_33, x_34);
lean_dec(x_33);
if (x_35 == 0)
{
lean_object* x_59; lean_object* x_60;
x_59 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__8;
lean_inc(x_8);
x_60 = l_Lean_Parser_ParserState_mkErrorsAt(x_52, x_59, x_8);
x_17 = x_60;
goto block_51;
lean_object* x_36; lean_object* x_37;
x_36 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__8;
lean_inc(x_10);
x_37 = l_Lean_Parser_ParserState_mkErrorsAt(x_29, x_36, x_10);
x_19 = x_37;
goto block_28;
}
else
{
x_17 = x_52;
goto block_51;
x_19 = x_29;
goto block_28;
}
}
else
{
lean_object* x_61; lean_object* x_62;
lean_dec(x_55);
x_61 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__8;
lean_inc(x_8);
x_62 = l_Lean_Parser_ParserState_mkErrorsAt(x_52, x_61, x_8);
x_17 = x_62;
goto block_51;
lean_object* x_38; lean_object* x_39;
lean_dec(x_32);
x_38 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__8;
lean_inc(x_10);
x_39 = l_Lean_Parser_ParserState_mkErrorsAt(x_29, x_38, x_10);
x_19 = x_39;
goto block_28;
}
}
else
{
lean_object* x_63; lean_object* x_64;
lean_dec(x_53);
x_63 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__8;
lean_inc(x_8);
x_64 = l_Lean_Parser_ParserState_mkErrorsAt(x_52, x_63, x_8);
x_17 = x_64;
goto block_51;
lean_object* x_40; lean_object* x_41;
lean_dec(x_30);
x_40 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__8;
lean_inc(x_10);
x_41 = l_Lean_Parser_ParserState_mkErrorsAt(x_29, x_40, x_10);
x_19 = x_41;
goto block_28;
}
block_51:
block_28:
{
lean_object* x_18;
x_18 = lean_ctor_get(x_17, 3);
lean_inc(x_18);
if (lean_obj_tag(x_18) == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26;
x_19 = lean_ctor_get(x_2, 0);
lean_inc(x_19);
x_20 = lean_ctor_get(x_19, 2);
lean_object* x_20;
x_20 = lean_ctor_get(x_19, 3);
lean_inc(x_20);
lean_dec(x_19);
x_21 = lean_ctor_get(x_17, 1);
lean_inc(x_21);
x_22 = l_Lean_FileMap_toPosition(x_20, x_21);
lean_dec(x_21);
if (lean_obj_tag(x_20) == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24;
x_21 = lean_apply_3(x_5, x_1, x_2, x_19);
x_22 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__2;
x_23 = l_Lean_Parser_ParserState_mkNode(x_21, x_22, x_18);
x_24 = l_Lean_Parser_mergeOrElseErrors(x_23, x_13, x_10);
lean_dec(x_10);
return x_24;
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27;
lean_dec(x_20);
x_23 = lean_ctor_get(x_22, 1);
lean_inc(x_23);
lean_dec(x_22);
x_24 = lean_ctor_get(x_17, 0);
lean_inc(x_24);
x_25 = lean_array_get_size(x_24);
lean_dec(x_24);
x_26 = lean_nat_dec_le(x_23, x_23);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33;
lean_dec(x_23);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_27 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_match___elambda__1___spec__1___closed__1;
x_28 = l_Lean_Parser_ParserState_mkError(x_17, x_27);
x_29 = l_Lean_nullKind;
x_30 = l_Lean_Parser_ParserState_mkNode(x_28, x_29, x_25);
x_31 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__2;
x_32 = l_Lean_Parser_ParserState_mkNode(x_30, x_31, x_16);
x_33 = l_Lean_Parser_mergeOrElseErrors(x_32, x_11, x_8);
lean_dec(x_8);
return x_33;
}
else
{
lean_object* x_34; lean_object* x_35;
lean_inc(x_2);
lean_inc(x_1);
x_34 = l_Lean_Parser_Term_matchAlt___elambda__1(x_1, x_2, x_17);
x_35 = lean_ctor_get(x_34, 3);
lean_inc(x_35);
if (lean_obj_tag(x_35) == 0)
{
uint8_t 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;
x_36 = 0;
x_37 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___elambda__1___spec__2(x_23, x_36, x_1, x_2, x_34);
lean_dec(x_23);
x_38 = l_Lean_nullKind;
x_39 = l_Lean_Parser_ParserState_mkNode(x_37, x_38, x_25);
x_40 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__2;
x_41 = l_Lean_Parser_ParserState_mkNode(x_39, x_40, x_16);
x_42 = l_Lean_Parser_mergeOrElseErrors(x_41, x_11, x_8);
lean_dec(x_8);
return x_42;
}
else
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47;
lean_dec(x_35);
lean_dec(x_23);
lean_dec(x_2);
lean_dec(x_1);
x_43 = l_Lean_nullKind;
x_44 = l_Lean_Parser_ParserState_mkNode(x_34, x_43, x_25);
x_45 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__2;
x_46 = l_Lean_Parser_ParserState_mkNode(x_44, x_45, x_16);
x_47 = l_Lean_Parser_mergeOrElseErrors(x_46, x_11, x_8);
lean_dec(x_8);
return x_47;
}
}
}
else
{
lean_object* x_48; lean_object* x_49; lean_object* x_50;
lean_dec(x_18);
lean_dec(x_2);
lean_dec(x_1);
x_48 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__2;
x_49 = l_Lean_Parser_ParserState_mkNode(x_17, x_48, x_16);
x_50 = l_Lean_Parser_mergeOrElseErrors(x_49, x_11, x_8);
lean_dec(x_8);
return x_50;
}
}
}
}
}
}
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___spec__1(lean_object* x_1, uint8_t 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; lean_object* x_9; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29;
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
x_7 = lean_array_get_size(x_6);
lean_dec(x_6);
x_8 = lean_ctor_get(x_5, 1);
lean_inc(x_8);
x_25 = lean_ctor_get(x_4, 0);
lean_inc(x_25);
x_26 = lean_ctor_get(x_25, 2);
lean_inc(x_26);
lean_dec(x_25);
x_27 = l_Lean_FileMap_toPosition(x_26, x_8);
lean_dec(x_26);
x_28 = lean_ctor_get(x_27, 1);
lean_inc(x_28);
lean_dec(x_27);
x_29 = lean_nat_dec_le(x_1, x_28);
lean_dec(x_28);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31;
x_30 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_match___elambda__1___spec__1___closed__1;
x_31 = l_Lean_Parser_ParserState_mkError(x_5, x_30);
x_9 = x_31;
goto block_24;
}
else
{
x_9 = x_5;
goto block_24;
}
block_24:
{
lean_object* x_10;
x_10 = lean_ctor_get(x_9, 3);
lean_inc(x_10);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; lean_object* x_12;
lean_inc(x_4);
lean_inc(x_3);
x_11 = l_Lean_Parser_Term_matchAlt___elambda__1(x_3, x_4, x_9);
x_12 = lean_ctor_get(x_11, 3);
lean_inc(x_12);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; uint8_t x_14;
lean_dec(x_7);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
x_14 = lean_nat_dec_eq(x_8, x_13);
lean_dec(x_13);
lean_dec(x_8);
if (x_14 == 0)
{
x_5 = x_11;
goto _start;
}
else
{
lean_object* x_16; lean_object* x_17;
lean_dec(x_4);
lean_dec(x_3);
x_16 = l_Lean_Parser_manyAux___main___closed__1;
x_17 = l_Lean_Parser_ParserState_mkUnexpectedError(x_11, x_16);
return x_17;
}
}
else
{
lean_object* x_18; uint8_t x_19;
lean_dec(x_12);
lean_dec(x_4);
lean_dec(x_3);
x_18 = lean_ctor_get(x_11, 1);
lean_inc(x_18);
x_19 = lean_nat_dec_eq(x_8, x_18);
lean_dec(x_18);
if (x_19 == 0)
{
lean_dec(x_8);
lean_dec(x_7);
return x_11;
}
else
{
lean_object* x_20;
x_20 = l_Lean_Parser_ParserState_restore(x_11, x_7, x_8);
lean_dec(x_7);
return x_20;
}
}
}
else
{
lean_object* x_21; uint8_t x_22;
x_25 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__2;
x_26 = l_Lean_Parser_ParserState_mkNode(x_19, x_25, x_18);
x_27 = l_Lean_Parser_mergeOrElseErrors(x_26, x_13, x_10);
lean_dec(x_10);
lean_dec(x_4);
lean_dec(x_3);
x_21 = lean_ctor_get(x_9, 1);
lean_inc(x_21);
x_22 = lean_nat_dec_eq(x_8, x_21);
lean_dec(x_21);
if (x_22 == 0)
{
lean_dec(x_8);
lean_dec(x_7);
return x_9;
return x_27;
}
else
{
lean_object* x_23;
x_23 = l_Lean_Parser_ParserState_restore(x_9, x_7, x_8);
lean_dec(x_7);
return x_23;
}
}
}
}
}
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___spec__2(lean_object* x_1, uint8_t 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; lean_object* x_9; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29;
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
x_7 = lean_array_get_size(x_6);
lean_dec(x_6);
x_8 = lean_ctor_get(x_5, 1);
lean_inc(x_8);
x_25 = lean_ctor_get(x_4, 0);
lean_inc(x_25);
x_26 = lean_ctor_get(x_25, 2);
lean_inc(x_26);
lean_dec(x_25);
x_27 = l_Lean_FileMap_toPosition(x_26, x_8);
lean_dec(x_26);
x_28 = lean_ctor_get(x_27, 1);
lean_inc(x_28);
lean_dec(x_27);
x_29 = lean_nat_dec_le(x_1, x_28);
lean_dec(x_28);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31;
x_30 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_match___elambda__1___spec__1___closed__1;
x_31 = l_Lean_Parser_ParserState_mkError(x_5, x_30);
x_9 = x_31;
goto block_24;
}
else
{
x_9 = x_5;
goto block_24;
}
block_24:
{
lean_object* x_10;
x_10 = lean_ctor_get(x_9, 3);
lean_inc(x_10);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; lean_object* x_12;
lean_inc(x_4);
lean_inc(x_3);
x_11 = l_Lean_Parser_Term_matchAlt___elambda__1(x_3, x_4, x_9);
x_12 = lean_ctor_get(x_11, 3);
lean_inc(x_12);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; uint8_t x_14;
lean_dec(x_7);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
x_14 = lean_nat_dec_eq(x_8, x_13);
lean_dec(x_13);
lean_dec(x_8);
if (x_14 == 0)
{
x_5 = x_11;
goto _start;
}
else
{
lean_object* x_16; lean_object* x_17;
lean_dec(x_4);
lean_dec(x_3);
x_16 = l_Lean_Parser_manyAux___main___closed__1;
x_17 = l_Lean_Parser_ParserState_mkUnexpectedError(x_11, x_16);
return x_17;
}
}
else
{
lean_object* x_18; uint8_t x_19;
lean_dec(x_12);
lean_dec(x_4);
lean_dec(x_3);
x_18 = lean_ctor_get(x_11, 1);
lean_inc(x_18);
x_19 = lean_nat_dec_eq(x_8, x_18);
lean_dec(x_18);
if (x_19 == 0)
{
lean_dec(x_8);
lean_dec(x_7);
return x_11;
}
else
{
lean_object* x_20;
x_20 = l_Lean_Parser_ParserState_restore(x_11, x_7, x_8);
lean_dec(x_7);
return x_20;
}
}
}
else
{
lean_object* x_21; uint8_t x_22;
lean_dec(x_10);
lean_dec(x_4);
lean_dec(x_3);
x_21 = lean_ctor_get(x_9, 1);
lean_inc(x_21);
x_22 = lean_nat_dec_eq(x_8, x_21);
lean_dec(x_21);
if (x_22 == 0)
{
lean_dec(x_8);
lean_dec(x_7);
return x_9;
}
else
{
lean_object* x_23;
x_23 = l_Lean_Parser_ParserState_restore(x_9, x_7, x_8);
lean_dec(x_7);
return x_23;
}
}
}
@ -9473,11 +8904,13 @@ return x_3;
lean_object* _init_l_Lean_Parser_Command_macro__rules___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Command_macro__rules___closed__1;
x_2 = l_Lean_Parser_Term_match___closed__3;
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_Term_match___elambda__1___closed__9;
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
x_3 = l_Lean_Parser_Command_macro__rules___closed__1;
x_4 = l_Lean_Parser_andthenInfo(x_3, x_2);
return x_4;
}
}
lean_object* _init_l_Lean_Parser_Command_macro__rules___closed__3() {
@ -9530,50 +8963,6 @@ x_1 = l_Lean_Parser_Command_macro__rules___closed__6;
return x_1;
}
}
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___elambda__1___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7;
x_6 = lean_unbox(x_2);
lean_dec(x_2);
x_7 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___elambda__1___spec__1(x_1, x_6, x_3, x_4, x_5);
lean_dec(x_1);
return x_7;
}
}
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___elambda__1___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7;
x_6 = lean_unbox(x_2);
lean_dec(x_2);
x_7 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___elambda__1___spec__2(x_1, x_6, x_3, x_4, x_5);
lean_dec(x_1);
return x_7;
}
}
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7;
x_6 = lean_unbox(x_2);
lean_dec(x_2);
x_7 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___spec__1(x_1, x_6, x_3, x_4, x_5);
lean_dec(x_1);
return x_7;
}
}
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7;
x_6 = lean_unbox(x_2);
lean_dec(x_2);
x_7 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_macro__rules___spec__2(x_1, x_6, x_3, x_4, x_5);
lean_dec(x_1);
return x_7;
}
}
lean_object* l___regBuiltinParser_Lean_Parser_Command_macro__rules(lean_object* x_1) {
_start:
{

File diff suppressed because it is too large Load diff