From 00dd9da3045a5abbbcddecd69c2e6839f6ea7e7f Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Wed, 27 Jul 2022 13:41:21 -0700 Subject: [PATCH] chore: update stage0 --- stage0/src/Init/Notation.lean | 26 +- stage0/src/Init/Prelude.lean | 41 + stage0/src/Lean/Elab/Syntax.lean | 22 +- stage0/src/Lean/Parser/Syntax.lean | 2 +- stage0/src/Lean/Parser/Term.lean | 31 +- stage0/stdlib/Init/Notation.c | 88 ++ stage0/stdlib/Lean/Elab/Syntax.c | 2227 +++++++++++++++++++--------- stage0/stdlib/Lean/Parser/Syntax.c | 419 +++--- stage0/stdlib/Lean/Parser/Term.c | 460 +++--- 9 files changed, 2278 insertions(+), 1038 deletions(-) diff --git a/stage0/src/Init/Notation.lean b/stage0/src/Init/Notation.lean index 8b2e7ae892..b09c848c2b 100644 --- a/stage0/src/Init/Notation.lean +++ b/stage0/src/Init/Notation.lean @@ -9,10 +9,34 @@ prelude import Init.Prelude import Init.Coe --- DSL for specifying parser precedences and priorities +/-- Auxiliary type used to represent syntax categories. We mainly use them to attach doc strings to syntax categories. -/ +structure Lean.Parser.Category + +namespace Lean.Parser.Category + +/-- The command syntax category. -/ +def command : Category := {} +/-- The term syntax category. -/ +def term : Category := {} +/-- The tactic syntax category. -/ +def tactic : Category := {} +/-- The syntax category for elements that can appear in the `do` notation. -/ +def doElem : Category := {} +/-- The attribute syntax category. Declarations can be annotated with attributes using the `@[...]` notation. -/ +def attr : Category := {} +/-- The syntax syntax category. This is the syntax category used to define syntax itself. -/ +def stx : Category := {} +/-- The priority syntax category. Priorities are used in many different attributes. -/ +def prio : Category := {} +/-- The precedence syntax category. Parsers have precedence in Lean. -/ +def prec : Category := {} + +end Lean.Parser.Category namespace Lean.Parser.Syntax +/-! DSL for specifying parser precedences and priorities -/ + syntax:65 (name := addPrec) prec " + " prec:66 : prec syntax:65 (name := subPrec) prec " - " prec:66 : prec diff --git a/stage0/src/Init/Prelude.lean b/stage0/src/Init/Prelude.lean index 507fca5fc4..53eafaecda 100644 --- a/stage0/src/Init/Prelude.lean +++ b/stage0/src/Init/Prelude.lean @@ -102,6 +102,47 @@ opaque Quot.ind {α : Sort u} {r : α → α → Prop} {β : Quot r → Prop} : -/ init_quot +/-- +Let `α` be any type, and let `r` be an equivalence relation on `α`. +It is mathematically common to form the "quotient" `α / r`, that is, the type of elements of `α` "modulo" `r`. +Set theoretically, one can view `α / r` as the set of equivalence classes of `α` modulo `r`. +If `f : α → β` is any function that respects the equivalence relation in the sense that for every `x y : α`, `r x y` implies `f x = f y`, +then f "lifts" to a function `f' : α / r → β` defined on each equivalence class `⟦x⟧` by `f' ⟦x⟧ = f x`. +Lean extends the Calculus of Constructions with additional constants that perform exactly these constructions, +and installs this last equation as a definitional reduction rule. + +Given a type `α` and any binary relation `r` on `α`, `Quot r` is a type. Note that `r` is not required to be +an equilance relation. `Quot` is the basic building block used to construct later the type `Quotient`. +-/ +add_decl_doc Quot + +/-- +Given a type `α` and any binary relation `r` on `α`, `Quot.mk` maps `α` to `Quot r`. +So that if `r : α → α → Prop` and `a : α`, then `Quot.mk r a` is an element of `Quot r`. + +See `Quot`. +-/ +add_decl_doc Quot.mk + +/-- +Given a type `α` and any binary relation `r` on `α`, +`Quot.ind` says that every element of `Quot r` is of the form `Quot.mk r a`. + +See `Quot` and `Quot.lift`. +-/ +add_decl_doc Quot.ind + +/-- +Given a type `α`, any binary relation `r` on `α`, a function `f : α → β`, and a proof `h` +that `f` respects the relation `r`, then `Quot.lift f h` is the corresponding function on `Quot r`. + +The idea is that for each element `a` in `α`, the function `Quot.lift f h` maps `Quot.mk r a` +(the `r`-class containing `a`) to `f a`, wherein `h` shows that this function is well defined. +In fact, the computation principle is declared as a reduction rule. +-/ +add_decl_doc Quot.lift + + inductive HEq : {α : Sort u} → α → {β : Sort u} → β → Prop where | refl (a : α) : HEq a a diff --git a/stage0/src/Lean/Elab/Syntax.lean b/stage0/src/Lean/Elab/Syntax.lean index b2d4349b27..bf5c64a6e8 100644 --- a/stage0/src/Lean/Elab/Syntax.lean +++ b/stage0/src/Lean/Elab/Syntax.lean @@ -87,6 +87,12 @@ def resolveParserName [Monad m] [MonadInfoTree m] [MonadResolveName m] [MonadEnv | _ => none catch _ => return [] +/-- (Try to) a term info for the category `catName` at `ref`. -/ +def addCategoryInfo (ref : Syntax) (catName : Name) : TermElabM Unit := do + let declName := ``Lean.Parser.Category ++ catName + if (← getEnv).contains declName then + addTermInfo' ref (Lean.mkConst declName) + open TSyntax.Compat in /-- Given a `stx` of category `syntax`, return a `(newStx, lhsPrec?)`, @@ -148,6 +154,7 @@ where throwErrorAt stx "invalid atomic left recursive syntax" let prec? ← liftMacroM <| expandOptPrecedence stx[1] let prec := prec?.getD 0 + addCategoryInfo stx catName return (← `(ParserDescr.cat $(quote catName) $(quote prec)), 1) processAlias (id : Syntax) (args : Array Syntax) := do @@ -254,19 +261,21 @@ private def declareSyntaxCatQuotParser (catName : Name) : CommandElabM Unit := d elabCommand cmd @[builtinCommandElab syntaxCat] def elabDeclareSyntaxCat : CommandElab := fun stx => do - let catName := stx[1].getId + let docString? := stx[0].getOptional?.map fun stx => ⟨stx⟩ + let catName := stx[2].getId let catBehavior := - if stx[2].isNone then + if stx[3].isNone then Parser.LeadingIdentBehavior.default - else if stx[2][3].getKind == ``Parser.Command.catBehaviorBoth then + else if stx[3][3].getKind == ``Parser.Command.catBehaviorBoth then Parser.LeadingIdentBehavior.both else Parser.LeadingIdentBehavior.symbol let attrName := catName.appendAfter "Parser" - let env ← getEnv - let env ← Parser.registerParserCategory env attrName catName catBehavior - setEnv env + setEnv (← Parser.registerParserCategory (← getEnv) attrName catName catBehavior) + let catDeclName := `_root_ ++ ``Lean.Parser.Category ++ catName + let cmd ← `($[$docString?]? def $(mkIdentFrom stx[2] catDeclName) : Lean.Parser.Category := {}) declareSyntaxCatQuotParser catName + elabCommand cmd /-- Auxiliary function for creating declaration names from parser descriptions. @@ -330,6 +339,7 @@ def resolveSyntaxKind (k : Name) : CommandElabM Name := do let cat := catStx.getId.eraseMacroScopes unless (Parser.isParserCategory (← getEnv) cat) do throwErrorAt catStx "unknown category '{cat}'" + liftTermElabM none <| Term.addCategoryInfo catStx cat let syntaxParser := mkNullNode ps -- If the user did not provide an explicit precedence, we assign `maxPrec` to atom-like syntax and `leadPrec` otherwise. let precDefault := if isAtomLikeSyntax syntaxParser then Parser.maxPrec else Parser.leadPrec diff --git a/stage0/src/Lean/Parser/Syntax.lean b/stage0/src/Lean/Parser/Syntax.lean index 9eaddf7db8..470fb3e220 100644 --- a/stage0/src/Lean/Parser/Syntax.lean +++ b/stage0/src/Lean/Parser/Syntax.lean @@ -74,7 +74,7 @@ def notationItem := ppSpace >> withAntiquot (mkAntiquot "notationItem" `Lean.Par def catBehaviorBoth := leading_parser nonReservedSymbol "both" def catBehaviorSymbol := leading_parser nonReservedSymbol "symbol" def catBehavior := optional ("(" >> nonReservedSymbol "behavior" >> " := " >> (catBehaviorBoth <|> catBehaviorSymbol) >> ")") -@[builtinCommandParser] def syntaxCat := leading_parser "declare_syntax_cat " >> ident >> catBehavior +@[builtinCommandParser] def syntaxCat := leading_parser optional docComment >> "declare_syntax_cat " >> ident >> catBehavior def macroArg := leading_parser optional (atomic (ident >> checkNoWsBefore "no space before ':'" >> ":")) >> syntaxParser argPrec def macroRhs (quotP : Parser) : Parser := leading_parser "`(" >> incQuotDepth quotP >> ")" <|> withPosition termParser def macroTailTactic : Parser := atomic (" : " >> identEq "tactic") >> darrow >> macroRhs Tactic.seq1 diff --git a/stage0/src/Lean/Parser/Term.lean b/stage0/src/Lean/Parser/Term.lean index 3154db96f3..88e8584467 100644 --- a/stage0/src/Lean/Parser/Term.lean +++ b/stage0/src/Lean/Parser/Term.lean @@ -197,10 +197,39 @@ def letPatDecl := leading_parser (withAnonymousAntiquot := false) atomic (termP def letEqnsDecl := leading_parser (withAnonymousAntiquot := false) letIdLhs >> (" := " <|> matchAlts) -- Remark: we disable anonymous antiquotations here to make sure anonymous antiquotations (e.g., `$x`) are not `letDecl` def letDecl := leading_parser (withAnonymousAntiquot := false) notFollowedBy (nonReservedSymbol "rec") "rec" >> (letIdDecl <|> letPatDecl <|> letEqnsDecl) +/-- +`let` is used to declare a local definition. Example: +``` +let x := 1 +let y := x + 1 +x + y +``` +Since functions are first class citizens in Lean, you can use `let` to declare local functions too. +``` +let double := fun x => 2*x +double (double 3) +``` +For recursive definitions, you should use `let rec`. +You can also perform pattern matching using `let`. For example, assume `p` has type `Nat × Nat`, then you can write +``` +let (x, y) := p +x + y +``` +-/ @[builtinTermParser] def «let» := leading_parser:leadPrec withPosition ("let " >> letDecl) >> optSemicolon termParser +/-- +`let_fun x := v; b` is syntax sugar for `(fun x => b) v`. It is very similar to `let x := v; b`, but they are not equivalent. +In `let_fun`, the value `v` has been abstracted away and cannot be accessed in `b`. +-/ @[builtinTermParser] def «let_fun» := leading_parser:leadPrec withPosition ((symbol "let_fun " <|> "let_λ") >> letDecl) >> optSemicolon termParser +/-- +`let_delayed x := v; b` is similar to `let x := v; b`, but `b` is elaborated before `v`. +-/ @[builtinTermParser] def «let_delayed» := leading_parser:leadPrec withPosition ("let_delayed " >> letDecl) >> optSemicolon termParser --- `let`-declaration that is only included in the elaborated term if variable is still there +/-- +`let`-declaration that is only included in the elaborated term if variable is still there. +It is often used when building macros. +-/ @[builtinTermParser] def «let_tmp» := leading_parser:leadPrec withPosition ("let_tmp " >> letDecl) >> optSemicolon termParser instance : Coe (TSyntax ``letIdBinder) (TSyntax ``funBinder) where diff --git a/stage0/stdlib/Init/Notation.c b/stage0/stdlib/Init/Notation.c index ffba07c7d8..82910e714c 100644 --- a/stage0/stdlib/Init/Notation.c +++ b/stage0/stdlib/Init/Notation.c @@ -91,6 +91,7 @@ static lean_object* l_Lean_deprecated___closed__2; static lean_object* l_Lean_termThis___closed__3; static lean_object* l___aux__Init__Notation______macroRules__term___x3e____1___closed__1; static lean_object* l___aux__Init__Notation______macroRules__term___x2a____1___closed__3; +LEAN_EXPORT lean_object* l_Lean_Parser_Category_term; static lean_object* l___aux__Init__Notation______macroRules__term___x3d_x3d____1___closed__1; LEAN_EXPORT lean_object* l_Lean___aux__Init__Notation______macroRules__Lean__termThis__1(lean_object*, lean_object*, lean_object*); static lean_object* l___aux__Init__Notation______macroRules__term___u2218____1___closed__11; @@ -118,6 +119,7 @@ static lean_object* l___aux__Init__Notation______macroRules__term___x3c_x3d____2 static lean_object* l_Lean_Parser_Syntax_addPrec___closed__1; static lean_object* l_term_x7b___x3a___x2f_x2f___x7d___closed__9; static lean_object* l_term___x7c_x7c_____closed__3; +LEAN_EXPORT lean_object* l_Lean_Parser_Category_doElem; static lean_object* l_Lean_Parser_Syntax_addPrio___closed__4; static lean_object* l_term___x2d_____closed__2; static lean_object* l_term___x5e_x5e_x5e_____closed__5; @@ -219,6 +221,7 @@ static lean_object* l___aux__Init__Notation______macroRules__term___x2b____1___c static lean_object* l___aux__Init__Notation______macroRules__term___x3d_x3d____1___closed__8; static lean_object* l___aux__Init__Notation______macroRules__termDepIfThenElse__1___closed__6; static lean_object* l_termMax__prec___closed__4; +LEAN_EXPORT lean_object* l_Lean_Parser_Category_prio; LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__Prod__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___aux__Init__Notation______macroRules__stx___x2b__1___closed__1; static lean_object* l_boolIfThenElse___closed__6; @@ -300,6 +303,7 @@ static lean_object* l_term___u2208_____closed__6; static lean_object* l_Lean_rawStx_quot___closed__7; static lean_object* l_termDepIfThenElse___closed__7; LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__term___u2218____1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Parser_Category_attr; static lean_object* l_Lean_termThis___closed__5; static lean_object* l_Lean___aux__Init__Notation______macroRules__term_x5b___x5d__1___closed__7; LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__prioLow__1(lean_object*, lean_object*, lean_object*); @@ -776,6 +780,7 @@ static lean_object* l_term___x26_x26_x26_____closed__2; static lean_object* l___aux__Init__Notation______macroRules__termIfThenElse__1___closed__2; static lean_object* l_term___x3c_____closed__4; static lean_object* l_termDepIfThenElse___closed__30; +LEAN_EXPORT lean_object* l_Lean_Parser_Category_stx; static lean_object* l___aux__Init__Notation______macroRules__term___x26_x26____1___closed__6; static lean_object* l___aux__Init__Notation______macroRules__term___x25____1___closed__4; static lean_object* l_Lean_Parser_Syntax_addPrec___closed__10; @@ -805,6 +810,7 @@ LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__term___u2227__ static lean_object* l___aux__Init__Notation______macroRules__term___x3c_x24_x3e____1___closed__4; LEAN_EXPORT lean_object* l_term___x2f_x5c__; static lean_object* l_term___x2b_x2b_____closed__2; +LEAN_EXPORT lean_object* l_Lean_Parser_Category_prec; static lean_object* l_term___x3e_____closed__3; static lean_object* l___aux__Init__Notation______macroRules__term_x7b___x3a___x2f_x2f___x7d__1___closed__1; static lean_object* l_term___x25_____closed__4; @@ -872,6 +878,7 @@ static lean_object* l_termDepIfThenElse___closed__33; static lean_object* l_term___x2a_____closed__6; static lean_object* l_term___x3c_x2a_x3e_____closed__6; static lean_object* l_term_x2d_____closed__3; +LEAN_EXPORT lean_object* l_Lean_Parser_Category_command; static lean_object* l_precMin___closed__4; static lean_object* l___aux__Init__Notation______macroRules__boolIfThenElse__1___closed__3; static lean_object* l___aux__Init__Notation______macroRules__term___x26_x26_x26____1___closed__4; @@ -916,6 +923,7 @@ static lean_object* l___aux__Init__Notation______macroRules__term___x3c____1___c static lean_object* l_boolIfThenElse___closed__12; static lean_object* l___aux__Init__Notation______macroRules__term___x3d_x3d____2___closed__3; static lean_object* l___aux__Init__Notation______macroRules__term___x3c_x2a____1___closed__5; +LEAN_EXPORT lean_object* l_Lean_Parser_Category_tactic; LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__stx___x3c_x7c_x3e____1(lean_object*, lean_object*, lean_object*); static lean_object* l___aux__Init__Notation______macroRules__term___x3d_x3d____1___closed__9; static lean_object* l_stx___x2c_x2b___closed__2; @@ -1387,6 +1395,70 @@ static lean_object* l_Lean_withAnnotateTerm___closed__5; LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__SeqRight__seqRight__1(lean_object*, lean_object*, lean_object*); static lean_object* l___aux__Init__Notation______macroRules__term___x2a____1___closed__7; LEAN_EXPORT lean_object* l_termWithout__expected__type__; +static lean_object* _init_l_Lean_Parser_Category_command() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Category_term() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Category_tactic() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Category_doElem() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Category_attr() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Category_stx() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Category_prio() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Category_prec() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} static lean_object* _init_l_Lean_Parser_Syntax_addPrec___closed__1() { _start: { @@ -37053,6 +37125,22 @@ lean_dec_ref(res); res = initialize_Init_Coe(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Parser_Category_command = _init_l_Lean_Parser_Category_command(); +lean_mark_persistent(l_Lean_Parser_Category_command); +l_Lean_Parser_Category_term = _init_l_Lean_Parser_Category_term(); +lean_mark_persistent(l_Lean_Parser_Category_term); +l_Lean_Parser_Category_tactic = _init_l_Lean_Parser_Category_tactic(); +lean_mark_persistent(l_Lean_Parser_Category_tactic); +l_Lean_Parser_Category_doElem = _init_l_Lean_Parser_Category_doElem(); +lean_mark_persistent(l_Lean_Parser_Category_doElem); +l_Lean_Parser_Category_attr = _init_l_Lean_Parser_Category_attr(); +lean_mark_persistent(l_Lean_Parser_Category_attr); +l_Lean_Parser_Category_stx = _init_l_Lean_Parser_Category_stx(); +lean_mark_persistent(l_Lean_Parser_Category_stx); +l_Lean_Parser_Category_prio = _init_l_Lean_Parser_Category_prio(); +lean_mark_persistent(l_Lean_Parser_Category_prio); +l_Lean_Parser_Category_prec = _init_l_Lean_Parser_Category_prec(); +lean_mark_persistent(l_Lean_Parser_Category_prec); l_Lean_Parser_Syntax_addPrec___closed__1 = _init_l_Lean_Parser_Syntax_addPrec___closed__1(); lean_mark_persistent(l_Lean_Parser_Syntax_addPrec___closed__1); l_Lean_Parser_Syntax_addPrec___closed__2 = _init_l_Lean_Parser_Syntax_addPrec___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Syntax.c b/stage0/stdlib/Lean/Elab/Syntax.c index 25f43c5379..86b5d63086 100644 --- a/stage0/stdlib/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Lean/Elab/Syntax.c @@ -38,6 +38,7 @@ LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_toParserD static lean_object* l_Lean_Elab_Command_resolveSyntaxKind___closed__1; LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_toParserDescr_processNonReserved___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_addTermInfo_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_process___closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_Term_checkLeftRec___lambda__2(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*); @@ -57,7 +58,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandNoKindMacroRulesAux(lean_obje LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescr_process___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_sequenceMap___at_Lean_Elab_Command_elabSyntax___spec__2___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterTRAux___at_Lean_resolveGlobalConstCore___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_checkLeftRec___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_toParserDescr_processAlias___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -69,6 +70,7 @@ static lean_object* l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___ LEAN_EXPORT uint8_t l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax(lean_object*); static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__19; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandNoKindMacroRulesAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); @@ -94,8 +96,10 @@ static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyn LEAN_EXPORT lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy1___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*); lean_object* l_Lean_SourceInfo_fromRef(lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23; +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__25; static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__72; static lean_object* l_Lean_Elab_Term_toParserDescr_process___closed__2; +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__29; extern lean_object* l_Lean_Elab_Command_commandElabAttribute; lean_object* l_List_filterMap___at_Lean_resolveGlobalConst___spec__1(lean_object*); extern lean_object* l_Lean_maxRecDepthErrorMessage; @@ -107,6 +111,7 @@ static lean_object* l_panic___at_Lean_Elab_Term_toParserDescr_processAlias___spe static lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__6; +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__6; uint8_t l_Lean_Parser_leadingIdentBehavior(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__60; LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -131,6 +136,7 @@ uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__19; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__7___boxed(lean_object**); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; lean_object* lean_st_ref_get(lean_object*, lean_object*); @@ -203,6 +209,7 @@ lean_object* l_List_head_x21___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_strLitToPattern(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__80; static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__3___closed__1; +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__11; static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkNameFromParserSyntax_visit___closed__1; @@ -243,10 +250,13 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_toParserD LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_toParserDescr_processSeq___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_resolveSyntaxKind(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__17; +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__4; static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_elabSyntax___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__5___closed__6; static lean_object* l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__17; +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__27; static lean_object* l_Lean_Elab_Term_checkLeftRec___closed__1; static lean_object* l_Lean_Elab_Term_toParserDescr_processAlias___closed__8; extern lean_object* l_Lean_LocalContext_empty; @@ -266,6 +276,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveParserName___rarg(lean_object*, static lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___lambda__3___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev___closed__1; static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__8___closed__4; +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__8; LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__6___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*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__9; static lean_object* l_Lean_Elab_Term_toParserDescr_processAtom___lambda__1___closed__5; @@ -289,6 +300,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveParserName___rarg___lambda__3__ LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Term_checkLeftRec___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__36; +static lean_object* l_Lean_Elab_Term_addCategoryInfo___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_toParserDescr_process___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandNoKindMacroRulesAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_inferMacroRulesAltKind___spec__1(lean_object*, lean_object*); @@ -305,6 +317,7 @@ uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__11; static lean_object* l_Lean_addTrace___at_Lean_Elab_Term_checkLeftRec___spec__3___closed__2; static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__51; +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__9; lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); @@ -339,6 +352,7 @@ static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyn static lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__5; static lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__12; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403____closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveNamespace(lean_object*, lean_object*, lean_object*, lean_object*); @@ -346,7 +360,7 @@ static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyn lean_object* l_Lean_Unhygienic_run___rarg(lean_object*); lean_object* l_String_capitalize(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ensureUnaryOutput(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_9924_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403_(lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_process___closed__13; static lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__7; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandNoKindMacroRulesAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -363,6 +377,7 @@ LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_elabSy static lean_object* l_Lean_Elab_Term_toParserDescr_ensureNoPrec___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev_declRange(lean_object*); lean_object* l_Nat_repr(lean_object*); +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__20; static lean_object* l_Lean_addTrace___at_Lean_Elab_Term_checkLeftRec___spec__3___closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_Term_toParserDescr_processAlias___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__45; @@ -370,6 +385,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_checkLeftRec___lambda__1(lean_object*, static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__64; LEAN_EXPORT lean_object* l_Lean_Elab_Term_toParserDescr_ensureNoPrec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Elab_Term_checkLeftRec___spec__3___closed__1; +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__10; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_elabSyntax___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Term_toParserDescr_processAlias___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -428,12 +444,14 @@ static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_ lean_object* l_Array_unzip___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_toParserDescr_processSeq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__12; uint8_t l_Array_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l_List_filterMap___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__15(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabSyntax___closed__3; +static lean_object* l_Lean_Elab_Term_addCategoryInfo___closed__2; lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_object*, lean_object*); @@ -446,6 +464,7 @@ lean_object* l_Lean_evalOptPrio(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__12; lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__10; +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__26; LEAN_EXPORT lean_object* l_Lean_Elab_Term_toParserDescr_processAtom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__2; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -506,6 +525,7 @@ static lean_object* l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__15; LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkNameFromParserSyntax_appendCatName(lean_object*, lean_object*); uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_toParserDescr_processNonReserved___spec__2___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__3; static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_checkLeftRec___spec__7___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntax_declRange___closed__5; static lean_object* l_Lean_Elab_Term_checkLeftRec___lambda__2___closed__2; @@ -514,12 +534,12 @@ lean_object* l_String_intercalate(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterMap___at_Lean_Elab_Term_resolveParserName___spec__1(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); uint8_t l_Lean_Name_isStr(lean_object*); +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__15; static lean_object* l_Lean_Elab_Command_elabSyntax___closed__4; lean_object* lean_name_append_after(lean_object*, lean_object*); lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__69; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_9924____closed__1; static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__11; uint8_t l_String_isEmpty(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_toParserDescr_processAlias___spec__3(lean_object*, size_t, size_t, lean_object*); @@ -565,10 +585,12 @@ lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_checkLeftRec___closed__3; static lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__3; +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__18; lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__26; lean_object* l_instInhabitedReaderT___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__22; uint8_t l_Lean_Parser_isValidSyntaxNodeKind(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__5___closed__11; static lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__4; @@ -585,6 +607,7 @@ static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyn static lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__2; static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__8___closed__1; static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__75; +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__5; static lean_object* l_Lean_Elab_Term_ensureUnaryOutput___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_toParserDescr_process(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_checkSyntaxNodeKind___at_Lean_Elab_Command_resolveSyntaxKind___spec__2___closed__2; @@ -594,8 +617,10 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__1(lean_object* LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Term_toParserDescr_processSeq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__28; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__14; static lean_object* l_Lean_Elab_Command_elabSyntax___closed__2; static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__26; LEAN_EXPORT lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -630,6 +655,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_ static lean_object* l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__16; static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__8___closed__3; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__16; static lean_object* l_Lean_addTrace___at_Lean_Elab_Term_checkLeftRec___spec__3___closed__6; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax(lean_object*, lean_object*, lean_object*, lean_object*); @@ -679,11 +705,13 @@ lean_object* l_ReaderT_instMonadReaderT___rarg(lean_object*); lean_object* l_Lean_Parser_ensureBinaryParserAlias(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__6; static lean_object* l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__7; +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__24; static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__12; lean_object* lean_mk_syntax_ident(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat_declRange___closed__7; static lean_object* l_Lean_Elab_Term_toParserDescr_processAtom___lambda__1___closed__7; LEAN_EXPORT uint8_t l_Lean_Elab_Term_toParserDescr_isValidAtom(lean_object*); +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__7; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__3; static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37; @@ -696,12 +724,14 @@ static lean_object* l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___ static lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy___lambda__1___closed__2; lean_object* l_Lean_Core_resetMessageLog(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveParserName___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__13; static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_checkLeftRec___spec__7___closed__2; uint8_t l_List_isEmpty___rarg(lean_object*); static lean_object* l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__13; -LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_inferMacroRulesAltKind___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getScope___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__21; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; @@ -729,6 +759,7 @@ LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Sy LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev_declRange___closed__4; static lean_object* l_Lean_Elab_Term_toParserDescr_ensureNoPrec___closed__2; +static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__23; static lean_object* l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -773,13 +804,14 @@ static lean_object* l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___ LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__3(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_mkUnusedBaseName(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; static lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_addCategoryInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandNoKindMacroRulesAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandOptPrecedence(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -4284,6 +4316,114 @@ lean_dec(x_2); return x_3; } } +static lean_object* _init_l_Lean_Elab_Term_addCategoryInfo___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Category", 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_addCategoryInfo___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_addCategoryInfo___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_addCategoryInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = l_Lean_Elab_Term_addCategoryInfo___closed__2; +x_11 = l_Lean_Name_append(x_10, x_2); +x_12 = lean_st_ref_get(x_8, x_9); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +lean_dec(x_14); +lean_inc(x_11); +x_17 = l_Lean_Environment_contains(x_16, x_11); +if (x_17 == 0) +{ +lean_object* x_18; +lean_dec(x_11); +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_1); +x_18 = lean_box(0); +lean_ctor_set(x_12, 0, x_18); +return x_12; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; +lean_free_object(x_12); +x_19 = lean_box(0); +x_20 = l_Lean_Expr_const___override(x_11, x_19); +x_21 = lean_box(0); +x_22 = lean_box(0); +x_23 = 0; +x_24 = l_Lean_Elab_Term_addTermInfo_x27(x_1, x_20, x_21, x_21, x_22, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +return x_24; +} +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_12, 0); +x_26 = lean_ctor_get(x_12, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_12); +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +lean_dec(x_25); +lean_inc(x_11); +x_28 = l_Lean_Environment_contains(x_27, x_11); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_11); +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_1); +x_29 = lean_box(0); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_26); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; +x_31 = lean_box(0); +x_32 = l_Lean_Expr_const___override(x_11, x_31); +x_33 = lean_box(0); +x_34 = lean_box(0); +x_35 = 0; +x_36 = l_Lean_Elab_Term_addTermInfo_x27(x_1, x_32, x_33, x_33, x_34, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_26); +return x_36; +} +} +} +} LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescr_processNonReserved___spec__1___rarg(lean_object* x_1) { _start: { @@ -5361,271 +5501,340 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_110; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_112; x_13 = lean_unsigned_to_nat(1u); x_14 = l_Lean_Syntax_getArg(x_1, x_13); x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandOptPrecedence___boxed), 3, 1); lean_closure_set(x_15, 0, x_14); lean_inc(x_11); lean_inc(x_10); -x_110 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1(x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_110) == 0) +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_112 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1(x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_112) == 0) { -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_110, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_110, 1); -lean_inc(x_112); -lean_dec(x_110); -lean_inc(x_10); -x_113 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_toParserDescr_processNonReserved___spec__2___rarg(x_10, x_11, x_112); -if (lean_obj_tag(x_111) == 0) -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_113, 0); +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_112, 1); lean_inc(x_114); -x_115 = lean_ctor_get(x_113, 1); -lean_inc(x_115); -lean_dec(x_113); -x_116 = lean_unsigned_to_nat(0u); -x_16 = x_116; -x_17 = x_114; -x_18 = x_115; -goto block_109; -} -else +lean_dec(x_112); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_2); +x_115 = l_Lean_Elab_Term_addCategoryInfo(x_1, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_114); +if (lean_obj_tag(x_113) == 0) { -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_111, 0); -lean_inc(x_117); -lean_dec(x_111); -x_118 = lean_ctor_get(x_113, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_113, 1); -lean_inc(x_119); -lean_dec(x_113); +if (lean_obj_tag(x_115) == 0) +{ +lean_object* x_116; lean_object* x_117; +x_116 = lean_ctor_get(x_115, 1); +lean_inc(x_116); +lean_dec(x_115); +x_117 = lean_unsigned_to_nat(0u); x_16 = x_117; -x_17 = x_118; -x_18 = x_119; -goto block_109; -} +x_17 = x_116; +goto block_111; } else { -uint8_t x_120; +uint8_t x_118; lean_dec(x_11); lean_dec(x_10); lean_dec(x_2); -x_120 = !lean_is_exclusive(x_110); -if (x_120 == 0) +x_118 = !lean_is_exclusive(x_115); +if (x_118 == 0) { -return x_110; +return x_115; } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_121 = lean_ctor_get(x_110, 0); -x_122 = lean_ctor_get(x_110, 1); +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_115, 0); +x_120 = lean_ctor_get(x_115, 1); +lean_inc(x_120); +lean_inc(x_119); +lean_dec(x_115); +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_119); +lean_ctor_set(x_121, 1, x_120); +return x_121; +} +} +} +else +{ +if (lean_obj_tag(x_115) == 0) +{ +lean_object* x_122; lean_object* x_123; +x_122 = lean_ctor_get(x_113, 0); lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_110); -x_123 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_123, 0, x_121); -lean_ctor_set(x_123, 1, x_122); -return x_123; +lean_dec(x_113); +x_123 = lean_ctor_get(x_115, 1); +lean_inc(x_123); +lean_dec(x_115); +x_16 = x_122; +x_17 = x_123; +goto block_111; } -} -block_109: +else { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_10, 10); -lean_inc(x_19); -lean_dec(x_10); -x_20 = lean_st_ref_get(x_11, x_18); +uint8_t x_124; +lean_dec(x_113); lean_dec(x_11); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -lean_dec(x_22); -x_24 = lean_environment_main_module(x_23); -x_25 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__4; -x_26 = l_Lean_addMacroScope(x_24, x_25, x_19); -x_27 = lean_box(0); -x_28 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__3; -x_29 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__7; -x_30 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_30, 0, x_17); -lean_ctor_set(x_30, 1, x_28); -lean_ctor_set(x_30, 2, x_26); -lean_ctor_set(x_30, 3, x_29); -lean_inc(x_2); -x_31 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_27, x_2); -x_32 = l_Nat_repr(x_16); -x_33 = lean_box(2); -x_34 = l_Lean_Syntax_mkNumLit(x_32, x_33); -x_35 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; -x_36 = lean_array_push(x_35, x_30); -if (lean_obj_tag(x_31) == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_37 = l_Lean_quoteNameMk(x_2); -x_38 = lean_array_push(x_35, x_37); -x_39 = lean_array_push(x_38, x_34); -x_40 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; -x_41 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_41, 0, x_33); -lean_ctor_set(x_41, 1, x_40); -lean_ctor_set(x_41, 2, x_39); -x_42 = lean_array_push(x_36, x_41); -x_43 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; -x_44 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_44, 0, x_33); -lean_ctor_set(x_44, 1, x_43); -lean_ctor_set(x_44, 2, x_42); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_13); -lean_ctor_set(x_20, 0, x_45); -return x_20; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec(x_10); lean_dec(x_2); -x_46 = lean_ctor_get(x_31, 0); -lean_inc(x_46); -lean_dec(x_31); -x_47 = l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__16; -x_48 = l_String_intercalate(x_47, x_46); -x_49 = l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__17; -x_50 = lean_string_append(x_49, x_48); -lean_dec(x_48); -x_51 = l_Lean_Syntax_mkNameLit(x_50, x_33); -x_52 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__27; -x_53 = lean_array_push(x_52, x_51); -x_54 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__23; -x_55 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_55, 0, x_33); -lean_ctor_set(x_55, 1, x_54); -lean_ctor_set(x_55, 2, x_53); -x_56 = lean_array_push(x_35, x_55); -x_57 = lean_array_push(x_56, x_34); -x_58 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; -x_59 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_59, 0, x_33); -lean_ctor_set(x_59, 1, x_58); -lean_ctor_set(x_59, 2, x_57); -x_60 = lean_array_push(x_36, x_59); -x_61 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; -x_62 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_62, 0, x_33); -lean_ctor_set(x_62, 1, x_61); -lean_ctor_set(x_62, 2, x_60); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_13); -lean_ctor_set(x_20, 0, x_63); -return x_20; +x_124 = !lean_is_exclusive(x_115); +if (x_124 == 0) +{ +return x_115; +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_115, 0); +x_126 = lean_ctor_get(x_115, 1); +lean_inc(x_126); +lean_inc(x_125); +lean_dec(x_115); +x_127 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_126); +return x_127; +} +} } } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_64 = lean_ctor_get(x_20, 0); -x_65 = lean_ctor_get(x_20, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_20); -x_66 = lean_ctor_get(x_64, 0); +uint8_t x_128; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_128 = !lean_is_exclusive(x_112); +if (x_128 == 0) +{ +return x_112; +} +else +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_112, 0); +x_130 = lean_ctor_get(x_112, 1); +lean_inc(x_130); +lean_inc(x_129); +lean_dec(x_112); +x_131 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_130); +return x_131; +} +} +block_111: +{ +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_10); +x_18 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_toParserDescr_processNonReserved___spec__2___rarg(x_10, x_11, x_17); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_ctor_get(x_10, 10); +lean_inc(x_21); +lean_dec(x_10); +x_22 = lean_st_ref_get(x_11, x_20); +lean_dec(x_11); +x_23 = !lean_is_exclusive(x_22); +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_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_environment_main_module(x_25); +x_27 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__4; +x_28 = l_Lean_addMacroScope(x_26, x_27, x_21); +x_29 = lean_box(0); +x_30 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__3; +x_31 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__7; +x_32 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_32, 0, x_19); +lean_ctor_set(x_32, 1, x_30); +lean_ctor_set(x_32, 2, x_28); +lean_ctor_set(x_32, 3, x_31); +lean_inc(x_2); +x_33 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_29, x_2); +x_34 = l_Nat_repr(x_16); +x_35 = lean_box(2); +x_36 = l_Lean_Syntax_mkNumLit(x_34, x_35); +x_37 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; +x_38 = lean_array_push(x_37, x_32); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_39 = l_Lean_quoteNameMk(x_2); +x_40 = lean_array_push(x_37, x_39); +x_41 = lean_array_push(x_40, x_36); +x_42 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; +x_43 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_43, 0, x_35); +lean_ctor_set(x_43, 1, x_42); +lean_ctor_set(x_43, 2, x_41); +x_44 = lean_array_push(x_38, x_43); +x_45 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; +x_46 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_46, 0, x_35); +lean_ctor_set(x_46, 1, x_45); +lean_ctor_set(x_46, 2, x_44); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_13); +lean_ctor_set(x_22, 0, x_47); +return x_22; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_2); +x_48 = lean_ctor_get(x_33, 0); +lean_inc(x_48); +lean_dec(x_33); +x_49 = l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__16; +x_50 = l_String_intercalate(x_49, x_48); +x_51 = l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__17; +x_52 = lean_string_append(x_51, x_50); +lean_dec(x_50); +x_53 = l_Lean_Syntax_mkNameLit(x_52, x_35); +x_54 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__27; +x_55 = lean_array_push(x_54, x_53); +x_56 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__23; +x_57 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_57, 0, x_35); +lean_ctor_set(x_57, 1, x_56); +lean_ctor_set(x_57, 2, x_55); +x_58 = lean_array_push(x_37, x_57); +x_59 = lean_array_push(x_58, x_36); +x_60 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; +x_61 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_61, 0, x_35); +lean_ctor_set(x_61, 1, x_60); +lean_ctor_set(x_61, 2, x_59); +x_62 = lean_array_push(x_38, x_61); +x_63 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; +x_64 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_64, 0, x_35); +lean_ctor_set(x_64, 1, x_63); +lean_ctor_set(x_64, 2, x_62); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_13); +lean_ctor_set(x_22, 0, x_65); +return x_22; +} +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_66 = lean_ctor_get(x_22, 0); +x_67 = lean_ctor_get(x_22, 1); +lean_inc(x_67); lean_inc(x_66); -lean_dec(x_64); -x_67 = lean_environment_main_module(x_66); -x_68 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__4; -x_69 = l_Lean_addMacroScope(x_67, x_68, x_19); -x_70 = lean_box(0); -x_71 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__3; -x_72 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__7; -x_73 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_73, 0, x_17); -lean_ctor_set(x_73, 1, x_71); -lean_ctor_set(x_73, 2, x_69); -lean_ctor_set(x_73, 3, x_72); +lean_dec(x_22); +x_68 = lean_ctor_get(x_66, 0); +lean_inc(x_68); +lean_dec(x_66); +x_69 = lean_environment_main_module(x_68); +x_70 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__4; +x_71 = l_Lean_addMacroScope(x_69, x_70, x_21); +x_72 = lean_box(0); +x_73 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__3; +x_74 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__7; +x_75 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_75, 0, x_19); +lean_ctor_set(x_75, 1, x_73); +lean_ctor_set(x_75, 2, x_71); +lean_ctor_set(x_75, 3, x_74); lean_inc(x_2); -x_74 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_70, x_2); -x_75 = l_Nat_repr(x_16); -x_76 = lean_box(2); -x_77 = l_Lean_Syntax_mkNumLit(x_75, x_76); -x_78 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; -x_79 = lean_array_push(x_78, x_73); -if (lean_obj_tag(x_74) == 0) +x_76 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_72, x_2); +x_77 = l_Nat_repr(x_16); +x_78 = lean_box(2); +x_79 = l_Lean_Syntax_mkNumLit(x_77, x_78); +x_80 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; +x_81 = lean_array_push(x_80, x_75); +if (lean_obj_tag(x_76) == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_80 = l_Lean_quoteNameMk(x_2); -x_81 = lean_array_push(x_78, x_80); -x_82 = lean_array_push(x_81, x_77); -x_83 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; -x_84 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_84, 0, x_76); -lean_ctor_set(x_84, 1, x_83); -lean_ctor_set(x_84, 2, x_82); -x_85 = lean_array_push(x_79, x_84); -x_86 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; -x_87 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_87, 0, x_76); -lean_ctor_set(x_87, 1, x_86); -lean_ctor_set(x_87, 2, x_85); -x_88 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_13); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_65); -return x_89; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_82 = l_Lean_quoteNameMk(x_2); +x_83 = lean_array_push(x_80, x_82); +x_84 = lean_array_push(x_83, x_79); +x_85 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; +x_86 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_86, 0, x_78); +lean_ctor_set(x_86, 1, x_85); +lean_ctor_set(x_86, 2, x_84); +x_87 = lean_array_push(x_81, x_86); +x_88 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; +x_89 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_89, 0, x_78); +lean_ctor_set(x_89, 1, x_88); +lean_ctor_set(x_89, 2, x_87); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_13); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_67); +return x_91; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_dec(x_2); -x_90 = lean_ctor_get(x_74, 0); -lean_inc(x_90); -lean_dec(x_74); -x_91 = l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__16; -x_92 = l_String_intercalate(x_91, x_90); -x_93 = l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__17; -x_94 = lean_string_append(x_93, x_92); -lean_dec(x_92); -x_95 = l_Lean_Syntax_mkNameLit(x_94, x_76); -x_96 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__27; -x_97 = lean_array_push(x_96, x_95); -x_98 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__23; -x_99 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_99, 0, x_76); -lean_ctor_set(x_99, 1, x_98); -lean_ctor_set(x_99, 2, x_97); -x_100 = lean_array_push(x_78, x_99); -x_101 = lean_array_push(x_100, x_77); -x_102 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; -x_103 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_103, 0, x_76); -lean_ctor_set(x_103, 1, x_102); -lean_ctor_set(x_103, 2, x_101); -x_104 = lean_array_push(x_79, x_103); -x_105 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; -x_106 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_106, 0, x_76); -lean_ctor_set(x_106, 1, x_105); -lean_ctor_set(x_106, 2, x_104); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_13); -x_108 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_65); -return x_108; +x_92 = lean_ctor_get(x_76, 0); +lean_inc(x_92); +lean_dec(x_76); +x_93 = l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__16; +x_94 = l_String_intercalate(x_93, x_92); +x_95 = l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__17; +x_96 = lean_string_append(x_95, x_94); +lean_dec(x_94); +x_97 = l_Lean_Syntax_mkNameLit(x_96, x_78); +x_98 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__27; +x_99 = lean_array_push(x_98, x_97); +x_100 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__23; +x_101 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_101, 0, x_78); +lean_ctor_set(x_101, 1, x_100); +lean_ctor_set(x_101, 2, x_99); +x_102 = lean_array_push(x_80, x_101); +x_103 = lean_array_push(x_102, x_79); +x_104 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; +x_105 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_105, 0, x_78); +lean_ctor_set(x_105, 1, x_104); +lean_ctor_set(x_105, 2, x_103); +x_106 = lean_array_push(x_81, x_105); +x_107 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; +x_108 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_108, 0, x_78); +lean_ctor_set(x_108, 1, x_107); +lean_ctor_set(x_108, 2, x_106); +x_109 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_13); +x_110 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_67); +return x_110; } } } @@ -5663,7 +5872,6 @@ if (x_15 == 0) lean_object* x_16; lean_object* x_17; x_16 = lean_box(0); x_17 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1(x_1, x_14, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_1); return x_17; } else @@ -5678,7 +5886,6 @@ if (x_19 == 0) lean_object* x_20; lean_object* x_21; x_20 = lean_box(0); x_21 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1(x_1, x_14, x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_1); return x_21; } else @@ -5715,7 +5922,6 @@ _start: lean_object* x_13; x_13 = l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_3); -lean_dec(x_1); return x_13; } } @@ -8236,7 +8442,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Elab_Term_toParserDescr_processAlias___closed__1; x_2 = l_Lean_Elab_Term_toParserDescr_processAlias___closed__2; -x_3 = lean_unsigned_to_nat(169u); +x_3 = lean_unsigned_to_nat(176u); x_4 = lean_unsigned_to_nat(21u); x_5 = l_Lean_Elab_Term_toParserDescr_processAlias___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -14258,7 +14464,7 @@ static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__1() _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("catBehaviorBoth", 15); +x_1 = lean_mk_string_from_bytes("_root_", 6); return x_1; } } @@ -14266,151 +14472,698 @@ static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__2() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; +x_1 = lean_box(0); x_2 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__2; +x_2 = l_Lean_Elab_Term_addCategoryInfo___closed__2; +x_3 = l_Lean_Name_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Lean.Parser.Category", 20); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__4; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__4; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__5; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_addCategoryInfo___closed__2; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__7; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("term{}", 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__9; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("{", 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__12() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("}", 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__13() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("structInst", 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__6; +x_2 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__13; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__15() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("optEllipsis", 11); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__6; +x_2 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__15; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__17() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = lean_box(2); +x_2 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__16; +x_3 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__19; +x_4 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__18() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__3; +x_2 = l_Array_append___rarg(x_1, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__19() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = lean_box(2); +x_2 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; +x_3 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__18; +x_4 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__20() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__31; +x_2 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__19; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__21() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__20; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__11; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__22() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__21; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__11; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__23() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__22; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__11; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__24() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__23; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__11; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__25() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__24; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__11; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__26() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = lean_box(2); +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; +x_3 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__25; +x_4 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__27() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; +x_2 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__26; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__28() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("catBehaviorBoth", 15); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__29() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; +x_2 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__28; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; -x_5 = lean_unsigned_to_nat(1u); +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; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_5 = lean_unsigned_to_nat(0u); x_6 = l_Lean_Syntax_getArg(x_1, x_5); -x_7 = l_Lean_Syntax_getId(x_6); +x_7 = l_Lean_Syntax_getOptional_x3f(x_6); lean_dec(x_6); x_8 = lean_unsigned_to_nat(2u); x_9 = l_Lean_Syntax_getArg(x_1, x_8); -x_10 = l_Lean_Syntax_isNone(x_9); -x_11 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__3; -lean_inc(x_7); -x_12 = lean_name_append_after(x_7, x_11); -x_13 = lean_st_ref_get(x_3, x_4); -if (x_10 == 0) +x_10 = l_Lean_Syntax_getId(x_9); +x_11 = lean_unsigned_to_nat(3u); +x_12 = l_Lean_Syntax_getArg(x_1, x_11); +x_13 = l_Lean_Syntax_isNone(x_12); +x_14 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__3; +lean_inc(x_10); +x_15 = lean_name_append_after(x_10, x_14); +x_16 = lean_st_ref_get(x_3, x_4); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_40 = lean_unsigned_to_nat(3u); -x_41 = l_Lean_Syntax_getArg(x_9, x_40); -lean_dec(x_9); -x_42 = l_Lean_Syntax_getKind(x_41); -x_43 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__2; -x_44 = lean_name_eq(x_42, x_43); -lean_dec(x_42); -if (x_44 == 0) -{ -lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_45 = lean_ctor_get(x_13, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_13, 1); -lean_inc(x_46); -lean_dec(x_13); -x_47 = 1; -x_14 = x_47; -x_15 = x_45; -x_16 = x_46; -goto block_39; +lean_object* x_166; +x_166 = lean_box(0); +x_17 = x_166; +goto block_165; } else { -lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_48 = lean_ctor_get(x_13, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_13, 1); -lean_inc(x_49); -lean_dec(x_13); -x_50 = 2; -x_14 = x_50; -x_15 = x_48; -x_16 = x_49; -goto block_39; -} +uint8_t x_167; +x_167 = !lean_is_exclusive(x_7); +if (x_167 == 0) +{ +x_17 = x_7; +goto block_165; } else { -lean_object* x_51; lean_object* x_52; uint8_t x_53; -lean_dec(x_9); -x_51 = lean_ctor_get(x_13, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_13, 1); -lean_inc(x_52); -lean_dec(x_13); -x_53 = 0; -x_14 = x_53; -x_15 = x_51; -x_16 = x_52; -goto block_39; -} -block_39: -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -lean_dec(x_15); -lean_inc(x_7); -x_18 = l_Lean_Parser_registerParserCategory(x_17, x_12, x_7, x_14, x_16); -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; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__8(x_19, x_2, x_3, x_20); -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -x_23 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser(x_7, x_2, x_3, x_22); -return x_23; -} -else -{ -uint8_t x_24; +lean_object* x_168; lean_object* x_169; +x_168 = lean_ctor_get(x_7, 0); +lean_inc(x_168); lean_dec(x_7); -lean_dec(x_3); -x_24 = !lean_is_exclusive(x_18); -if (x_24 == 0) +x_169 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_169, 0, x_168); +x_17 = x_169; +goto block_165; +} +} +block_165: { -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_25 = lean_ctor_get(x_18, 0); -x_26 = lean_ctor_get(x_2, 6); -lean_inc(x_26); -lean_dec(x_2); -x_27 = lean_io_error_to_string(x_25); -x_28 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_28, 0, x_27); -x_29 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_29, 0, x_28); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_26); -lean_ctor_set(x_30, 1, x_29); -lean_ctor_set(x_18, 0, x_30); -return x_18; +uint8_t x_18; +if (x_13 == 0) +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; +x_158 = l_Lean_Syntax_getArg(x_12, x_11); +lean_dec(x_12); +x_159 = l_Lean_Syntax_getKind(x_158); +x_160 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__29; +x_161 = lean_name_eq(x_159, x_160); +lean_dec(x_159); +if (x_161 == 0) +{ +uint8_t x_162; +x_162 = 1; +x_18 = x_162; +goto block_157; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_31 = lean_ctor_get(x_18, 0); -x_32 = lean_ctor_get(x_18, 1); -lean_inc(x_32); +uint8_t x_163; +x_163 = 2; +x_18 = x_163; +goto block_157; +} +} +else +{ +uint8_t x_164; +lean_dec(x_12); +x_164 = 0; +x_18 = x_164; +goto block_157; +} +block_157: +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_16, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_dec(x_16); +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +lean_dec(x_19); +lean_inc(x_10); +x_22 = l_Lean_Parser_registerParserCategory(x_21, x_15, x_10, x_18, x_20); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__8(x_23, x_2, x_3, x_24); +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); +x_27 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__3; +lean_inc(x_10); +x_28 = l_Lean_Name_append(x_27, x_10); +x_29 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_2, x_3, x_26); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); -lean_dec(x_18); -x_33 = lean_ctor_get(x_2, 6); +lean_dec(x_29); +x_32 = l_Lean_Elab_Command_getCurrMacroScope(x_2, x_3, x_31); +x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = l_Lean_Elab_Command_getMainModule___rarg(x_3, x_34); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; +lean_inc(x_30); +x_39 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_39, 0, x_30); +lean_ctor_set(x_39, 1, x_38); +x_40 = l_Lean_mkIdentFrom(x_9, x_28); +x_41 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; +x_42 = lean_array_push(x_41, x_40); +x_43 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__11; +x_44 = lean_array_push(x_42, x_43); +x_45 = lean_box(2); +x_46 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__36; +x_47 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +lean_ctor_set(x_47, 2, x_44); +x_48 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41; +lean_inc(x_30); +x_49 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_49, 0, x_30); +lean_ctor_set(x_49, 1, x_48); +x_50 = l_Lean_Elab_Term_addCategoryInfo___closed__2; +x_51 = l_Lean_addMacroScope(x_36, x_50, x_33); +x_52 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__6; +x_53 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__8; +lean_inc(x_30); +x_54 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_54, 0, x_30); +lean_ctor_set(x_54, 1, x_52); +lean_ctor_set(x_54, 2, x_51); +lean_ctor_set(x_54, 3, x_53); +x_55 = lean_array_push(x_41, x_49); +x_56 = lean_array_push(x_55, x_54); +x_57 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__40; +x_58 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_58, 0, x_45); +lean_ctor_set(x_58, 1, x_57); +lean_ctor_set(x_58, 2, x_56); +x_59 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__27; +x_60 = lean_array_push(x_59, x_58); +x_61 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; +x_62 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_62, 0, x_45); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_62, 2, x_60); +x_63 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__47; +x_64 = lean_array_push(x_63, x_62); +x_65 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__38; +x_66 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_66, 0, x_45); +lean_ctor_set(x_66, 1, x_65); +lean_ctor_set(x_66, 2, x_64); +x_67 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50; +lean_inc(x_30); +x_68 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_68, 0, x_30); +lean_ctor_set(x_68, 1, x_67); +x_69 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__11; +lean_inc(x_30); +x_70 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_70, 0, x_30); +lean_ctor_set(x_70, 1, x_69); +x_71 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__12; +x_72 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_72, 0, x_30); +lean_ctor_set(x_72, 1, x_71); +lean_inc(x_70); +x_73 = lean_array_push(x_41, x_70); +lean_inc(x_72); +x_74 = lean_array_push(x_73, x_72); +x_75 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__10; +x_76 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_76, 0, x_45); +lean_ctor_set(x_76, 1, x_75); +lean_ctor_set(x_76, 2, x_74); +x_77 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__31; +x_78 = lean_array_push(x_77, x_70); +x_79 = lean_array_push(x_78, x_43); +x_80 = lean_array_push(x_79, x_43); +x_81 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__17; +x_82 = lean_array_push(x_80, x_81); +x_83 = lean_array_push(x_82, x_43); +x_84 = lean_array_push(x_83, x_72); +x_85 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__14; +x_86 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_86, 0, x_45); +lean_ctor_set(x_86, 1, x_85); +lean_ctor_set(x_86, 2, x_84); +x_87 = lean_array_push(x_41, x_76); +x_88 = lean_array_push(x_87, x_86); +x_89 = l_Lean_Elab_Term_toParserDescr_process___closed__2; +x_90 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_90, 0, x_45); +lean_ctor_set(x_90, 1, x_89); +lean_ctor_set(x_90, 2, x_88); +x_91 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__28; +x_92 = lean_array_push(x_91, x_68); +x_93 = lean_array_push(x_92, x_90); +x_94 = lean_array_push(x_93, x_43); +x_95 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__49; +x_96 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_96, 0, x_45); +lean_ctor_set(x_96, 1, x_95); +lean_ctor_set(x_96, 2, x_94); +x_97 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__85; +x_98 = lean_array_push(x_97, x_39); +x_99 = lean_array_push(x_98, x_47); +x_100 = lean_array_push(x_99, x_66); +x_101 = lean_array_push(x_100, x_96); +x_102 = lean_array_push(x_101, x_43); +x_103 = lean_array_push(x_102, x_43); +x_104 = lean_array_push(x_103, x_43); +x_105 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__34; +x_106 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_106, 0, x_45); +lean_ctor_set(x_106, 1, x_105); +lean_ctor_set(x_106, 2, x_104); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_107 = l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__27; +x_108 = lean_array_push(x_107, x_106); +x_109 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; +x_110 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_110, 0, x_45); +lean_ctor_set(x_110, 1, x_109); +lean_ctor_set(x_110, 2, x_108); +lean_inc(x_3); +lean_inc(x_2); +x_111 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser(x_10, x_2, x_3, x_37); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +x_113 = l_Lean_Elab_Command_elabCommand(x_110, x_2, x_3, x_112); +return x_113; +} +else +{ +uint8_t x_114; +lean_dec(x_110); +lean_dec(x_3); lean_dec(x_2); -x_34 = lean_io_error_to_string(x_31); -x_35 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_35, 0, x_34); -x_36 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_36, 0, x_35); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_33); -lean_ctor_set(x_37, 1, x_36); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_32); -return x_38; +x_114 = !lean_is_exclusive(x_111); +if (x_114 == 0) +{ +return x_111; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_111, 0); +x_116 = lean_ctor_get(x_111, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_111); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +return x_117; +} +} +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_118 = lean_ctor_get(x_17, 0); +lean_inc(x_118); +lean_dec(x_17); +x_119 = lean_array_push(x_59, x_118); +x_120 = l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__3; +x_121 = l_Array_append___rarg(x_120, x_119); +x_122 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_122, 0, x_45); +lean_ctor_set(x_122, 1, x_61); +lean_ctor_set(x_122, 2, x_121); +x_123 = lean_array_push(x_77, x_122); +x_124 = lean_array_push(x_123, x_43); +x_125 = lean_array_push(x_124, x_43); +x_126 = lean_array_push(x_125, x_43); +x_127 = lean_array_push(x_126, x_43); +x_128 = lean_array_push(x_127, x_43); +x_129 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; +x_130 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_130, 0, x_45); +lean_ctor_set(x_130, 1, x_129); +lean_ctor_set(x_130, 2, x_128); +x_131 = lean_array_push(x_41, x_130); +x_132 = lean_array_push(x_131, x_106); +x_133 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; +x_134 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_134, 0, x_45); +lean_ctor_set(x_134, 1, x_133); +lean_ctor_set(x_134, 2, x_132); +lean_inc(x_3); +lean_inc(x_2); +x_135 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser(x_10, x_2, x_3, x_37); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +lean_dec(x_135); +x_137 = l_Lean_Elab_Command_elabCommand(x_134, x_2, x_3, x_136); +return x_137; +} +else +{ +uint8_t x_138; +lean_dec(x_134); +lean_dec(x_3); +lean_dec(x_2); +x_138 = !lean_is_exclusive(x_135); +if (x_138 == 0) +{ +return x_135; +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_135, 0); +x_140 = lean_ctor_get(x_135, 1); +lean_inc(x_140); +lean_inc(x_139); +lean_dec(x_135); +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +return x_141; +} +} +} +} +else +{ +uint8_t x_142; +lean_dec(x_17); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +x_142 = !lean_is_exclusive(x_22); +if (x_142 == 0) +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_143 = lean_ctor_get(x_22, 0); +x_144 = lean_ctor_get(x_2, 6); +lean_inc(x_144); +lean_dec(x_2); +x_145 = lean_io_error_to_string(x_143); +x_146 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_146, 0, x_145); +x_147 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_147, 0, x_146); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_144); +lean_ctor_set(x_148, 1, x_147); +lean_ctor_set(x_22, 0, x_148); +return x_22; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_149 = lean_ctor_get(x_22, 0); +x_150 = lean_ctor_get(x_22, 1); +lean_inc(x_150); +lean_inc(x_149); +lean_dec(x_22); +x_151 = lean_ctor_get(x_2, 6); +lean_inc(x_151); +lean_dec(x_2); +x_152 = lean_io_error_to_string(x_149); +x_153 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_153, 0, x_152); +x_154 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_154, 0, x_153); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_151); +lean_ctor_set(x_155, 1, x_154); +x_156 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_150); +return x_156; +} } } } @@ -14521,7 +15274,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(256u); +x_1 = lean_unsigned_to_nat(263u); x_2 = lean_unsigned_to_nat(32u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -14533,8 +15286,8 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(269u); -x_2 = lean_unsigned_to_nat(36u); +x_1 = lean_unsigned_to_nat(278u); +x_2 = lean_unsigned_to_nat(17u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -14548,7 +15301,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat_declRange___closed__1; x_2 = lean_unsigned_to_nat(32u); x_3 = l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat_declRange___closed__2; -x_4 = lean_unsigned_to_nat(36u); +x_4 = lean_unsigned_to_nat(17u); x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -14561,7 +15314,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(256u); +x_1 = lean_unsigned_to_nat(263u); x_2 = lean_unsigned_to_nat(36u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -14573,7 +15326,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(256u); +x_1 = lean_unsigned_to_nat(263u); x_2 = lean_unsigned_to_nat(56u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -16470,42 +17223,41 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { -lean_object* x_18; lean_object* x_19; -x_18 = lean_alloc_closure((void*)(l_Lean_evalOptPrio), 3, 1); -lean_closure_set(x_18, 0, x_1); +lean_object* x_19; lean_object* x_20; +x_19 = lean_alloc_closure((void*)(l_Lean_evalOptPrio), 3, 1); +lean_closure_set(x_19, 0, x_1); +lean_inc(x_17); lean_inc(x_16); -lean_inc(x_15); -x_19 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__4(x_18, x_15, x_16, x_17); -if (lean_obj_tag(x_19) == 0) +x_20 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__4(x_19, x_16, x_17, x_18); +if (lean_obj_tag(x_20) == 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; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec(x_19); -x_22 = l_Lean_Elab_Command_getScope___rarg(x_16, x_21); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = l_Lean_Elab_Command_getScope___rarg(x_17, x_22); +x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); -lean_dec(x_22); -x_25 = lean_ctor_get(x_23, 2); +x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); lean_dec(x_23); -lean_inc(x_14); -x_26 = l_Lean_Name_append(x_25, x_14); -lean_dec(x_25); -x_27 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__3; +x_26 = lean_ctor_get(x_24, 2); +lean_inc(x_26); +lean_dec(x_24); +lean_inc(x_15); +x_27 = l_Lean_Name_append(x_26, x_15); +lean_dec(x_26); +x_28 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__3; lean_inc(x_2); -x_28 = lean_name_append_after(x_2, x_27); +x_29 = lean_name_append_after(x_2, x_28); lean_inc(x_3); -x_29 = l_Lean_mkIdentFrom(x_3, x_28); -x_30 = lean_box(0); -x_31 = l_Lean_Elab_Command_getScope___rarg(x_16, x_24); +x_30 = l_Lean_mkIdentFrom(x_3, x_29); +x_31 = l_Lean_Elab_Command_getScope___rarg(x_17, x_25); x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); x_33 = lean_ctor_get(x_31, 1); @@ -16522,8 +17274,8 @@ lean_closure_set(x_36, 0, x_34); lean_closure_set(x_36, 1, x_35); x_37 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); lean_closure_set(x_37, 0, x_36); -lean_inc(x_15); -x_38 = l_Lean_Elab_Command_liftTermElabM___rarg(x_30, x_37, x_15, x_16, x_33); +lean_inc(x_16); +x_38 = l_Lean_Elab_Command_liftTermElabM___rarg(x_5, x_37, x_16, x_17, x_33); if (lean_obj_tag(x_38) == 0) { lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; @@ -16545,50 +17297,50 @@ if (lean_is_exclusive(x_39)) { x_43 = lean_box(0); } lean_inc(x_3); -x_44 = l_Lean_mkIdentFrom(x_3, x_14); -x_45 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_15, x_16, x_40); +x_44 = l_Lean_mkIdentFrom(x_3, x_15); +x_45 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_16, x_17, x_40); x_46 = lean_ctor_get(x_45, 1); lean_inc(x_46); lean_dec(x_45); -x_47 = l_Lean_Elab_Command_getCurrMacroScope(x_15, x_16, x_46); +x_47 = l_Lean_Elab_Command_getCurrMacroScope(x_16, x_17, x_46); x_48 = lean_ctor_get(x_47, 1); lean_inc(x_48); lean_dec(x_47); -x_49 = l_Lean_Elab_Command_getMainModule___rarg(x_16, x_48); +x_49 = l_Lean_Elab_Command_getMainModule___rarg(x_17, x_48); x_50 = lean_ctor_get(x_49, 1); lean_inc(x_50); lean_dec(x_49); x_51 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__15; -lean_inc(x_5); -x_52 = l_Lean_Name_str___override(x_5, x_51); +lean_inc(x_6); +x_52 = l_Lean_Name_str___override(x_6, x_51); x_53 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__21; -x_54 = l_Lean_Name_str___override(x_6, x_53); +x_54 = l_Lean_Name_str___override(x_7, x_53); x_55 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23; x_56 = l_Lean_Name_str___override(x_54, x_55); -x_57 = l_Nat_repr(x_20); +x_57 = l_Nat_repr(x_21); x_58 = lean_box(2); x_59 = l_Lean_Syntax_mkNumLit(x_57, x_58); x_60 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__27; x_61 = lean_array_push(x_60, x_59); -lean_inc(x_7); +lean_inc(x_8); x_62 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_62, 0, x_58); -lean_ctor_set(x_62, 1, x_7); +lean_ctor_set(x_62, 1, x_8); lean_ctor_set(x_62, 2, x_61); x_63 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; -x_64 = lean_array_push(x_63, x_29); +x_64 = lean_array_push(x_63, x_30); x_65 = lean_array_push(x_64, x_62); x_66 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_66, 0, x_58); lean_ctor_set(x_66, 1, x_56); lean_ctor_set(x_66, 2, x_65); -x_67 = lean_array_push(x_63, x_8); +x_67 = lean_array_push(x_63, x_9); x_68 = lean_array_push(x_67, x_66); x_69 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_69, 0, x_58); lean_ctor_set(x_69, 1, x_52); lean_ctor_set(x_69, 2, x_68); -if (lean_obj_tag(x_13) == 0) +if (lean_obj_tag(x_14) == 0) { lean_object* x_369; x_369 = l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__3; @@ -16598,9 +17350,9 @@ goto block_368; else { lean_object* x_370; -x_370 = lean_ctor_get(x_13, 0); +x_370 = lean_ctor_get(x_14, 0); lean_inc(x_370); -lean_dec(x_13); +lean_dec(x_14); x_70 = x_370; goto block_368; } @@ -16612,33 +17364,33 @@ x_72 = l_Lean_Syntax_TSepArray_push___rarg(x_71, x_70, x_69); if (lean_obj_tag(x_42) == 0) { lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_73 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_15, x_16, x_50); +x_73 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_16, x_17, x_50); x_74 = lean_ctor_get(x_73, 0); lean_inc(x_74); x_75 = lean_ctor_get(x_73, 1); lean_inc(x_75); lean_dec(x_73); -x_76 = l_Lean_Elab_Command_getCurrMacroScope(x_15, x_16, x_75); +x_76 = l_Lean_Elab_Command_getCurrMacroScope(x_16, x_17, x_75); x_77 = lean_ctor_get(x_76, 0); lean_inc(x_77); x_78 = lean_ctor_get(x_76, 1); lean_inc(x_78); lean_dec(x_76); -x_79 = l_Lean_Elab_Command_getMainModule___rarg(x_16, x_78); +x_79 = l_Lean_Elab_Command_getMainModule___rarg(x_17, x_78); x_80 = lean_ctor_get(x_79, 0); lean_inc(x_80); x_81 = lean_ctor_get(x_79, 1); lean_inc(x_81); lean_dec(x_79); x_82 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__7; -lean_inc(x_9); -x_83 = l_Lean_Name_str___override(x_9, x_82); +lean_inc(x_10); +x_83 = l_Lean_Name_str___override(x_10, x_82); x_84 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__9; -lean_inc(x_9); -x_85 = l_Lean_Name_str___override(x_9, x_84); +lean_inc(x_10); +x_85 = l_Lean_Name_str___override(x_10, x_84); x_86 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; -lean_inc(x_5); -x_87 = l_Lean_Name_str___override(x_5, x_86); +lean_inc(x_6); +x_87 = l_Lean_Name_str___override(x_6, x_86); x_88 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__14; lean_inc(x_74); x_89 = lean_alloc_ctor(2, 2, 0); @@ -16646,10 +17398,10 @@ lean_ctor_set(x_89, 0, x_74); lean_ctor_set(x_89, 1, x_88); x_90 = l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__3; x_91 = l_Array_append___rarg(x_90, x_72); -lean_inc(x_7); +lean_inc(x_8); x_92 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_92, 0, x_58); -lean_ctor_set(x_92, 1, x_7); +lean_ctor_set(x_92, 1, x_8); lean_ctor_set(x_92, 2, x_91); x_93 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__30; lean_inc(x_74); @@ -16665,26 +17417,26 @@ lean_ctor_set(x_99, 0, x_58); lean_ctor_set(x_99, 1, x_87); lean_ctor_set(x_99, 2, x_98); x_100 = lean_array_push(x_60, x_99); -lean_inc(x_7); +lean_inc(x_8); x_101 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_101, 0, x_58); -lean_ctor_set(x_101, 1, x_7); +lean_ctor_set(x_101, 1, x_8); lean_ctor_set(x_101, 2, x_100); -lean_inc(x_7); +lean_inc(x_8); x_102 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_102, 0, x_58); -lean_ctor_set(x_102, 1, x_7); +lean_ctor_set(x_102, 1, x_8); lean_ctor_set(x_102, 2, x_90); x_103 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; -lean_inc(x_9); -x_104 = l_Lean_Name_str___override(x_9, x_103); +lean_inc(x_10); +x_104 = l_Lean_Name_str___override(x_10, x_103); lean_inc(x_74); x_105 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_105, 0, x_74); lean_ctor_set(x_105, 1, x_103); x_106 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__35; -lean_inc(x_9); -x_107 = l_Lean_Name_str___override(x_9, x_106); +lean_inc(x_10); +x_107 = l_Lean_Name_str___override(x_10, x_106); x_108 = lean_array_push(x_63, x_44); lean_inc(x_102); x_109 = lean_array_push(x_108, x_102); @@ -16693,18 +17445,18 @@ lean_ctor_set(x_110, 0, x_58); lean_ctor_set(x_110, 1, x_107); lean_ctor_set(x_110, 2, x_109); x_111 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37; -lean_inc(x_9); -x_112 = l_Lean_Name_str___override(x_9, x_111); +lean_inc(x_10); +x_112 = l_Lean_Name_str___override(x_10, x_111); x_113 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39; -lean_inc(x_5); -x_114 = l_Lean_Name_str___override(x_5, x_113); +lean_inc(x_6); +x_114 = l_Lean_Name_str___override(x_6, x_113); x_115 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41; lean_inc(x_74); x_116 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_116, 0, x_74); lean_ctor_set(x_116, 1, x_115); x_117 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__12; -x_118 = l_Lean_Name_str___override(x_10, x_117); +x_118 = l_Lean_Name_str___override(x_11, x_117); lean_inc(x_77); lean_inc(x_118); lean_inc(x_80); @@ -16735,10 +17487,10 @@ lean_ctor_set(x_127, 0, x_58); lean_ctor_set(x_127, 1, x_114); lean_ctor_set(x_127, 2, x_126); x_128 = lean_array_push(x_60, x_127); -lean_inc(x_7); +lean_inc(x_8); x_129 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_129, 0, x_58); -lean_ctor_set(x_129, 1, x_7); +lean_ctor_set(x_129, 1, x_8); lean_ctor_set(x_129, 2, x_128); lean_inc(x_102); x_130 = lean_array_push(x_63, x_102); @@ -16748,15 +17500,15 @@ lean_ctor_set(x_132, 0, x_58); lean_ctor_set(x_132, 1, x_112); lean_ctor_set(x_132, 2, x_131); x_133 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__48; -x_134 = l_Lean_Name_str___override(x_9, x_133); +x_134 = l_Lean_Name_str___override(x_10, x_133); x_135 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50; lean_inc(x_74); x_136 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_136, 0, x_74); lean_ctor_set(x_136, 1, x_135); x_137 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; -lean_inc(x_5); -x_138 = l_Lean_Name_str___override(x_5, x_137); +lean_inc(x_6); +x_138 = l_Lean_Name_str___override(x_6, x_137); x_139 = l_Lean_Elab_Command_elabSyntax___lambda__5___closed__5; x_140 = l_Lean_addMacroScope(x_80, x_139, x_77); x_141 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__54; @@ -16773,9 +17525,9 @@ lean_ctor_set(x_146, 0, x_74); lean_ctor_set(x_146, 1, x_145); lean_ctor_set(x_146, 2, x_140); lean_ctor_set(x_146, 3, x_144); -lean_inc(x_26); -x_147 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_120, x_26); -x_148 = l_Nat_repr(x_11); +lean_inc(x_27); +x_147 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_120, x_27); +x_148 = l_Nat_repr(x_12); x_149 = l_Lean_Syntax_mkNumLit(x_148, x_58); x_150 = lean_array_push(x_63, x_146); x_151 = lean_array_push(x_95, x_136); @@ -16783,7 +17535,7 @@ x_152 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotPa x_153 = lean_array_push(x_152, x_105); x_154 = lean_array_push(x_153, x_110); x_155 = lean_array_push(x_154, x_132); -if (lean_obj_tag(x_12) == 0) +if (lean_obj_tag(x_13) == 0) { x_156 = x_90; goto block_213; @@ -16791,9 +17543,9 @@ goto block_213; else { lean_object* x_214; lean_object* x_215; -x_214 = lean_ctor_get(x_12, 0); +x_214 = lean_ctor_get(x_13, 0); lean_inc(x_214); -lean_dec(x_12); +lean_dec(x_13); x_215 = lean_array_push(x_60, x_214); x_156 = x_215; goto block_213; @@ -16802,10 +17554,10 @@ block_213: { lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; x_157 = l_Array_append___rarg(x_90, x_156); -lean_inc(x_7); +lean_inc(x_8); x_158 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_158, 0, x_58); -lean_ctor_set(x_158, 1, x_7); +lean_ctor_set(x_158, 1, x_8); lean_ctor_set(x_158, 2, x_157); x_159 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__31; x_160 = lean_array_push(x_159, x_158); @@ -16826,14 +17578,14 @@ x_167 = lean_array_push(x_63, x_166); if (lean_obj_tag(x_147) == 0) { lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; -lean_dec(x_5); -x_168 = l_Lean_quoteNameMk(x_26); +lean_dec(x_6); +x_168 = l_Lean_quoteNameMk(x_27); x_169 = lean_array_push(x_95, x_168); x_170 = lean_array_push(x_169, x_149); x_171 = lean_array_push(x_170, x_41); x_172 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_172, 0, x_58); -lean_ctor_set(x_172, 1, x_7); +lean_ctor_set(x_172, 1, x_8); lean_ctor_set(x_172, 2, x_171); x_173 = lean_array_push(x_150, x_172); x_174 = lean_alloc_ctor(1, 3, 0); @@ -16862,18 +17614,18 @@ x_184 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_184, 0, x_58); lean_ctor_set(x_184, 1, x_83); lean_ctor_set(x_184, 2, x_183); -x_185 = l_Lean_Elab_Command_elabSyntax___lambda__4(x_3, x_184, x_15, x_16, x_81); +x_185 = l_Lean_Elab_Command_elabSyntax___lambda__4(x_3, x_184, x_16, x_17, x_81); return x_185; } else { lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; -lean_dec(x_26); +lean_dec(x_27); x_186 = lean_ctor_get(x_147, 0); lean_inc(x_186); lean_dec(x_147); x_187 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__22; -x_188 = l_Lean_Name_str___override(x_5, x_187); +x_188 = l_Lean_Name_str___override(x_6, x_187); x_189 = l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__16; x_190 = l_String_intercalate(x_189, x_186); x_191 = l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__17; @@ -16890,7 +17642,7 @@ x_197 = lean_array_push(x_196, x_149); x_198 = lean_array_push(x_197, x_41); x_199 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_199, 0, x_58); -lean_ctor_set(x_199, 1, x_7); +lean_ctor_set(x_199, 1, x_8); lean_ctor_set(x_199, 2, x_198); x_200 = lean_array_push(x_150, x_199); x_201 = lean_alloc_ctor(1, 3, 0); @@ -16919,7 +17671,7 @@ x_211 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_211, 0, x_58); lean_ctor_set(x_211, 1, x_83); lean_ctor_set(x_211, 2, x_210); -x_212 = l_Lean_Elab_Command_elabSyntax___lambda__4(x_3, x_211, x_15, x_16, x_81); +x_212 = l_Lean_Elab_Command_elabSyntax___lambda__4(x_3, x_211, x_16, x_17, x_81); return x_212; } } @@ -16930,33 +17682,33 @@ lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; x_216 = lean_ctor_get(x_42, 0); lean_inc(x_216); lean_dec(x_42); -x_217 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_15, x_16, x_50); +x_217 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_16, x_17, x_50); x_218 = lean_ctor_get(x_217, 0); lean_inc(x_218); x_219 = lean_ctor_get(x_217, 1); lean_inc(x_219); lean_dec(x_217); -x_220 = l_Lean_Elab_Command_getCurrMacroScope(x_15, x_16, x_219); +x_220 = l_Lean_Elab_Command_getCurrMacroScope(x_16, x_17, x_219); x_221 = lean_ctor_get(x_220, 0); lean_inc(x_221); x_222 = lean_ctor_get(x_220, 1); lean_inc(x_222); lean_dec(x_220); -x_223 = l_Lean_Elab_Command_getMainModule___rarg(x_16, x_222); +x_223 = l_Lean_Elab_Command_getMainModule___rarg(x_17, x_222); x_224 = lean_ctor_get(x_223, 0); lean_inc(x_224); x_225 = lean_ctor_get(x_223, 1); lean_inc(x_225); lean_dec(x_223); x_226 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__7; -lean_inc(x_9); -x_227 = l_Lean_Name_str___override(x_9, x_226); +lean_inc(x_10); +x_227 = l_Lean_Name_str___override(x_10, x_226); x_228 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__9; -lean_inc(x_9); -x_229 = l_Lean_Name_str___override(x_9, x_228); +lean_inc(x_10); +x_229 = l_Lean_Name_str___override(x_10, x_228); x_230 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; -lean_inc(x_5); -x_231 = l_Lean_Name_str___override(x_5, x_230); +lean_inc(x_6); +x_231 = l_Lean_Name_str___override(x_6, x_230); x_232 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__14; lean_inc(x_218); x_233 = lean_alloc_ctor(2, 2, 0); @@ -16964,10 +17716,10 @@ lean_ctor_set(x_233, 0, x_218); lean_ctor_set(x_233, 1, x_232); x_234 = l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__3; x_235 = l_Array_append___rarg(x_234, x_72); -lean_inc(x_7); +lean_inc(x_8); x_236 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_236, 0, x_58); -lean_ctor_set(x_236, 1, x_7); +lean_ctor_set(x_236, 1, x_8); lean_ctor_set(x_236, 2, x_235); x_237 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__30; lean_inc(x_218); @@ -16983,26 +17735,26 @@ lean_ctor_set(x_243, 0, x_58); lean_ctor_set(x_243, 1, x_231); lean_ctor_set(x_243, 2, x_242); x_244 = lean_array_push(x_60, x_243); -lean_inc(x_7); +lean_inc(x_8); x_245 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_245, 0, x_58); -lean_ctor_set(x_245, 1, x_7); +lean_ctor_set(x_245, 1, x_8); lean_ctor_set(x_245, 2, x_244); -lean_inc(x_7); +lean_inc(x_8); x_246 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_246, 0, x_58); -lean_ctor_set(x_246, 1, x_7); +lean_ctor_set(x_246, 1, x_8); lean_ctor_set(x_246, 2, x_234); x_247 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; -lean_inc(x_9); -x_248 = l_Lean_Name_str___override(x_9, x_247); +lean_inc(x_10); +x_248 = l_Lean_Name_str___override(x_10, x_247); lean_inc(x_218); x_249 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_249, 0, x_218); lean_ctor_set(x_249, 1, x_247); x_250 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__35; -lean_inc(x_9); -x_251 = l_Lean_Name_str___override(x_9, x_250); +lean_inc(x_10); +x_251 = l_Lean_Name_str___override(x_10, x_250); x_252 = lean_array_push(x_63, x_44); lean_inc(x_246); x_253 = lean_array_push(x_252, x_246); @@ -17011,19 +17763,19 @@ lean_ctor_set(x_254, 0, x_58); lean_ctor_set(x_254, 1, x_251); lean_ctor_set(x_254, 2, x_253); x_255 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37; -lean_inc(x_9); -x_256 = l_Lean_Name_str___override(x_9, x_255); +lean_inc(x_10); +x_256 = l_Lean_Name_str___override(x_10, x_255); x_257 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39; -lean_inc(x_5); -x_258 = l_Lean_Name_str___override(x_5, x_257); +lean_inc(x_6); +x_258 = l_Lean_Name_str___override(x_6, x_257); x_259 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41; lean_inc(x_218); x_260 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_260, 0, x_218); lean_ctor_set(x_260, 1, x_259); x_261 = l_List_filterMap___at_Lean_Elab_Term_resolveParserName___spec__1___closed__1; -lean_inc(x_10); -x_262 = l_Lean_Name_str___override(x_10, x_261); +lean_inc(x_11); +x_262 = l_Lean_Name_str___override(x_11, x_261); lean_inc(x_221); lean_inc(x_262); lean_inc(x_224); @@ -17053,10 +17805,10 @@ lean_ctor_set(x_271, 0, x_58); lean_ctor_set(x_271, 1, x_258); lean_ctor_set(x_271, 2, x_270); x_272 = lean_array_push(x_60, x_271); -lean_inc(x_7); +lean_inc(x_8); x_273 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_273, 0, x_58); -lean_ctor_set(x_273, 1, x_7); +lean_ctor_set(x_273, 1, x_8); lean_ctor_set(x_273, 2, x_272); lean_inc(x_246); x_274 = lean_array_push(x_63, x_246); @@ -17066,19 +17818,19 @@ lean_ctor_set(x_276, 0, x_58); lean_ctor_set(x_276, 1, x_256); lean_ctor_set(x_276, 2, x_275); x_277 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__48; -x_278 = l_Lean_Name_str___override(x_9, x_277); +x_278 = l_Lean_Name_str___override(x_10, x_277); x_279 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50; lean_inc(x_218); x_280 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_280, 0, x_218); lean_ctor_set(x_280, 1, x_279); x_281 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; -lean_inc(x_5); -x_282 = l_Lean_Name_str___override(x_5, x_281); +lean_inc(x_6); +x_282 = l_Lean_Name_str___override(x_6, x_281); x_283 = l_Lean_Elab_Command_elabSyntax___lambda__5___closed__13; x_284 = l_Lean_addMacroScope(x_224, x_283, x_221); x_285 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__12; -x_286 = l_Lean_Name_str___override(x_10, x_285); +x_286 = l_Lean_Name_str___override(x_11, x_285); x_287 = l_Lean_Elab_Command_elabSyntax___lambda__5___closed__12; x_288 = l_Lean_Name_str___override(x_286, x_287); x_289 = lean_alloc_ctor(0, 2, 0); @@ -17093,9 +17845,9 @@ lean_ctor_set(x_292, 0, x_218); lean_ctor_set(x_292, 1, x_291); lean_ctor_set(x_292, 2, x_284); lean_ctor_set(x_292, 3, x_290); -lean_inc(x_26); -x_293 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_264, x_26); -x_294 = l_Nat_repr(x_11); +lean_inc(x_27); +x_293 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_264, x_27); +x_294 = l_Nat_repr(x_12); x_295 = l_Lean_Syntax_mkNumLit(x_294, x_58); x_296 = l_Nat_repr(x_216); x_297 = l_Lean_Syntax_mkNumLit(x_296, x_58); @@ -17105,7 +17857,7 @@ x_300 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotPa x_301 = lean_array_push(x_300, x_249); x_302 = lean_array_push(x_301, x_254); x_303 = lean_array_push(x_302, x_276); -if (lean_obj_tag(x_12) == 0) +if (lean_obj_tag(x_13) == 0) { x_304 = x_234; goto block_365; @@ -17113,9 +17865,9 @@ goto block_365; else { lean_object* x_366; lean_object* x_367; -x_366 = lean_ctor_get(x_12, 0); +x_366 = lean_ctor_get(x_13, 0); lean_inc(x_366); -lean_dec(x_12); +lean_dec(x_13); x_367 = lean_array_push(x_60, x_366); x_304 = x_367; goto block_365; @@ -17124,10 +17876,10 @@ block_365: { lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; x_305 = l_Array_append___rarg(x_234, x_304); -lean_inc(x_7); +lean_inc(x_8); x_306 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_306, 0, x_58); -lean_ctor_set(x_306, 1, x_7); +lean_ctor_set(x_306, 1, x_8); lean_ctor_set(x_306, 2, x_305); x_307 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__31; x_308 = lean_array_push(x_307, x_306); @@ -17148,8 +17900,8 @@ x_315 = lean_array_push(x_63, x_314); if (lean_obj_tag(x_293) == 0) { lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; -lean_dec(x_5); -x_316 = l_Lean_quoteNameMk(x_26); +lean_dec(x_6); +x_316 = l_Lean_quoteNameMk(x_27); x_317 = l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__8; x_318 = lean_array_push(x_317, x_316); x_319 = lean_array_push(x_318, x_295); @@ -17157,7 +17909,7 @@ x_320 = lean_array_push(x_319, x_297); x_321 = lean_array_push(x_320, x_41); x_322 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_322, 0, x_58); -lean_ctor_set(x_322, 1, x_7); +lean_ctor_set(x_322, 1, x_8); lean_ctor_set(x_322, 2, x_321); x_323 = lean_array_push(x_298, x_322); x_324 = lean_alloc_ctor(1, 3, 0); @@ -17186,18 +17938,18 @@ x_334 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_334, 0, x_58); lean_ctor_set(x_334, 1, x_227); lean_ctor_set(x_334, 2, x_333); -x_335 = l_Lean_Elab_Command_elabSyntax___lambda__4(x_3, x_334, x_15, x_16, x_225); +x_335 = l_Lean_Elab_Command_elabSyntax___lambda__4(x_3, x_334, x_16, x_17, x_225); return x_335; } else { lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; -lean_dec(x_26); +lean_dec(x_27); x_336 = lean_ctor_get(x_293, 0); lean_inc(x_336); lean_dec(x_293); x_337 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__22; -x_338 = l_Lean_Name_str___override(x_5, x_337); +x_338 = l_Lean_Name_str___override(x_6, x_337); x_339 = l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__16; x_340 = l_String_intercalate(x_339, x_336); x_341 = l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__17; @@ -17216,7 +17968,7 @@ x_349 = lean_array_push(x_348, x_297); x_350 = lean_array_push(x_349, x_41); x_351 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_351, 0, x_58); -lean_ctor_set(x_351, 1, x_7); +lean_ctor_set(x_351, 1, x_8); lean_ctor_set(x_351, 2, x_350); x_352 = lean_array_push(x_298, x_351); x_353 = lean_alloc_ctor(1, 3, 0); @@ -17245,7 +17997,7 @@ x_363 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_363, 0, x_58); lean_ctor_set(x_363, 1, x_227); lean_ctor_set(x_363, 2, x_362); -x_364 = l_Lean_Elab_Command_elabSyntax___lambda__4(x_3, x_363, x_15, x_16, x_225); +x_364 = l_Lean_Elab_Command_elabSyntax___lambda__4(x_3, x_363, x_16, x_17, x_225); return x_364; } } @@ -17255,9 +18007,10 @@ return x_364; else { uint8_t x_371; -lean_dec(x_29); -lean_dec(x_26); -lean_dec(x_20); +lean_dec(x_30); +lean_dec(x_27); +lean_dec(x_21); +lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -17269,7 +18022,6 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); lean_dec(x_3); x_371 = !lean_is_exclusive(x_38); if (x_371 == 0) @@ -17294,6 +18046,7 @@ return x_374; else { uint8_t x_375; +lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -17309,19 +18062,19 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_375 = !lean_is_exclusive(x_19); +x_375 = !lean_is_exclusive(x_20); if (x_375 == 0) { -return x_19; +return x_20; } else { lean_object* x_376; lean_object* x_377; lean_object* x_378; -x_376 = lean_ctor_get(x_19, 0); -x_377 = lean_ctor_get(x_19, 1); +x_376 = lean_ctor_get(x_20, 0); +x_377 = lean_ctor_get(x_20, 1); lean_inc(x_377); lean_inc(x_376); -lean_dec(x_19); +lean_dec(x_20); x_378 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_378, 0, x_376); lean_ctor_set(x_378, 1, x_377); @@ -17330,37 +18083,38 @@ return x_378; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { -if (lean_obj_tag(x_13) == 0) +if (lean_obj_tag(x_14) == 0) { -lean_object* x_18; lean_object* x_19; +lean_object* x_19; lean_object* x_20; lean_inc(x_4); lean_inc(x_2); -x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkNameFromParserSyntax), 4, 2); -lean_closure_set(x_18, 0, x_2); -lean_closure_set(x_18, 1, x_4); +x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkNameFromParserSyntax), 4, 2); +lean_closure_set(x_19, 0, x_2); +lean_closure_set(x_19, 1, x_4); +lean_inc(x_17); lean_inc(x_16); -lean_inc(x_15); -x_19 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__9(x_18, x_15, x_16, x_17); -if (lean_obj_tag(x_19) == 0) +x_20 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__9(x_19, x_16, x_17, x_18); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec(x_19); -x_22 = l_Lean_Elab_Command_elabSyntax___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14, x_11, x_12, x_20, x_15, x_16, x_21); -return x_22; +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = l_Lean_Elab_Command_elabSyntax___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15, x_12, x_13, x_21, x_16, x_17, x_22); +return x_23; } else { -uint8_t x_23; +uint8_t x_24; +lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); -lean_dec(x_14); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -17373,89 +18127,103 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_23 = !lean_is_exclusive(x_19); -if (x_23 == 0) +x_24 = !lean_is_exclusive(x_20); +if (x_24 == 0) { -return x_19; +return x_20; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_19, 0); -x_25 = lean_ctor_get(x_19, 1); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_20, 0); +x_26 = lean_ctor_get(x_20, 1); +lean_inc(x_26); lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_19); -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; +lean_dec(x_20); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; } } } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_13, 0); -lean_inc(x_27); -lean_dec(x_13); -x_28 = l_Lean_Syntax_getId(x_27); -lean_dec(x_27); -x_29 = l_Lean_Elab_Command_elabSyntax___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14, x_11, x_12, x_28, x_15, x_16, x_17); -return x_29; +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_14, 0); +lean_inc(x_28); +lean_dec(x_14); +x_29 = l_Lean_Syntax_getId(x_28); +lean_dec(x_28); +x_30 = l_Lean_Elab_Command_elabSyntax___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15, x_12, x_13, x_29, x_16, x_17, x_18); +return x_30; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -lean_dec(x_14); -x_18 = lean_box(2); -x_19 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; -x_20 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -lean_ctor_set(x_20, 2, x_1); -lean_inc(x_20); -x_21 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax(x_20); -if (x_21 == 0) -{ -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = l_Lean_Parser_leadPrec; -x_23 = l_Lean_Elab_Command_elabSyntax___lambda__6(x_2, x_3, x_4, x_20, x_5, x_6, x_19, x_7, x_8, x_9, x_10, x_11, x_12, x_22, x_15, x_16, x_17); -return x_23; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_13, 0); -lean_inc(x_24); -lean_dec(x_13); -x_25 = lean_alloc_closure((void*)(l_Lean_evalPrec), 3, 1); -lean_closure_set(x_25, 0, x_24); -lean_inc(x_16); -lean_inc(x_15); -x_26 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__4(x_25, x_15, x_16, x_17); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = l_Lean_Elab_Command_elabSyntax___lambda__6(x_2, x_3, x_4, x_20, x_5, x_6, x_19, x_7, x_8, x_9, x_10, x_11, x_12, x_27, x_15, x_16, x_28); -return x_29; -} -else -{ -uint8_t x_30; -lean_dec(x_20); -lean_dec(x_16); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_dec(x_15); +x_19 = lean_box(0); +lean_inc(x_2); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_addCategoryInfo), 9, 2); +lean_closure_set(x_20, 0, x_1); +lean_closure_set(x_20, 1, x_2); +lean_inc(x_16); +x_21 = l_Lean_Elab_Command_liftTermElabM___rarg(x_19, x_20, x_16, x_17, x_18); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_box(2); +x_24 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__21; +x_25 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +lean_ctor_set(x_25, 2, x_3); +lean_inc(x_25); +x_26 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax(x_25); +if (x_26 == 0) +{ +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = l_Lean_Parser_leadPrec; +x_28 = l_Lean_Elab_Command_elabSyntax___lambda__6(x_4, x_2, x_5, x_25, x_19, x_6, x_7, x_24, x_8, x_9, x_10, x_11, x_12, x_13, x_27, x_16, x_17, x_22); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_14, 0); +lean_inc(x_29); +lean_dec(x_14); +x_30 = lean_alloc_closure((void*)(l_Lean_evalPrec), 3, 1); +lean_closure_set(x_30, 0, x_29); +lean_inc(x_17); +lean_inc(x_16); +x_31 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__4(x_30, x_16, x_17, x_22); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = l_Lean_Elab_Command_elabSyntax___lambda__6(x_4, x_2, x_5, x_25, x_19, x_6, x_7, x_24, x_8, x_9, x_10, x_11, x_12, x_13, x_32, x_16, x_17, x_33); +return x_34; +} +else +{ +uint8_t x_35; +lean_dec(x_25); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -17465,66 +18233,105 @@ 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_30 = !lean_is_exclusive(x_26); -if (x_30 == 0) +x_35 = !lean_is_exclusive(x_31); +if (x_35 == 0) { -return x_26; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_26, 0); -x_32 = lean_ctor_get(x_26, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_26); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -} -} -else -{ -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_34; lean_object* x_35; -x_34 = l_Lean_Parser_maxPrec; -x_35 = l_Lean_Elab_Command_elabSyntax___lambda__6(x_2, x_3, x_4, x_20, x_5, x_6, x_19, x_7, x_8, x_9, x_10, x_11, x_12, x_34, x_15, x_16, x_17); -return x_35; +return x_31; } else { lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_13, 0); +x_36 = lean_ctor_get(x_31, 0); +x_37 = lean_ctor_get(x_31, 1); +lean_inc(x_37); lean_inc(x_36); -lean_dec(x_13); -x_37 = lean_alloc_closure((void*)(l_Lean_evalPrec), 3, 1); -lean_closure_set(x_37, 0, x_36); -lean_inc(x_16); -lean_inc(x_15); -x_38 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__4(x_37, x_15, x_16, x_17); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); -x_41 = l_Lean_Elab_Command_elabSyntax___lambda__6(x_2, x_3, x_4, x_20, x_5, x_6, x_19, x_7, x_8, x_9, x_10, x_11, x_12, x_39, x_15, x_16, x_40); -return x_41; +lean_dec(x_31); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} } else { -uint8_t x_42; -lean_dec(x_20); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_39; lean_object* x_40; +x_39 = l_Lean_Parser_maxPrec; +x_40 = l_Lean_Elab_Command_elabSyntax___lambda__6(x_4, x_2, x_5, x_25, x_19, x_6, x_7, x_24, x_8, x_9, x_10, x_11, x_12, x_13, x_39, x_16, x_17, x_22); +return x_40; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_14, 0); +lean_inc(x_41); +lean_dec(x_14); +x_42 = lean_alloc_closure((void*)(l_Lean_evalPrec), 3, 1); +lean_closure_set(x_42, 0, x_41); +lean_inc(x_17); +lean_inc(x_16); +x_43 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__4(x_42, x_16, x_17, x_22); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = l_Lean_Elab_Command_elabSyntax___lambda__6(x_4, x_2, x_5, x_25, x_19, x_6, x_7, x_24, x_8, x_9, x_10, x_11, x_12, x_13, x_44, x_16, x_17, x_45); +return x_46; +} +else +{ +uint8_t x_47; +lean_dec(x_25); +lean_dec(x_17); lean_dec(x_16); -lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_47 = !lean_is_exclusive(x_43); +if (x_47 == 0) +{ +return x_43; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_43, 0); +x_49 = lean_ctor_get(x_43, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_43); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +} +} +else +{ +uint8_t x_51; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -17536,25 +18343,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_42 = !lean_is_exclusive(x_38); -if (x_42 == 0) +x_51 = !lean_is_exclusive(x_21); +if (x_51 == 0) { -return x_38; +return x_21; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_38, 0); -x_44 = lean_ctor_get(x_38, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_38); -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; -} -} +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_21, 0); +x_53 = lean_ctor_get(x_21, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_21); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; } } } @@ -17689,9 +18494,8 @@ return x_42; else { lean_object* x_43; lean_object* x_44; -lean_dec(x_25); x_43 = lean_box(0); -x_44 = l_Lean_Elab_Command_elabSyntax___lambda__7(x_23, x_13, x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_43, x_14, x_15, x_30); +x_44 = l_Lean_Elab_Command_elabSyntax___lambda__7(x_25, x_27, x_23, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_43, x_14, x_15, x_30); return x_44; } } @@ -18359,11 +19163,12 @@ lean_object* x_14 = _args[13]; lean_object* x_15 = _args[14]; lean_object* x_16 = _args[15]; lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; _start: { -lean_object* x_18; -x_18 = l_Lean_Elab_Command_elabSyntax___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -return x_18; +lean_object* x_19; +x_19 = l_Lean_Elab_Command_elabSyntax___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +return x_19; } } LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__6___boxed(lean_object** _args) { @@ -18384,11 +19189,12 @@ lean_object* x_14 = _args[13]; lean_object* x_15 = _args[14]; lean_object* x_16 = _args[15]; lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; _start: { -lean_object* x_18; -x_18 = l_Lean_Elab_Command_elabSyntax___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -return x_18; +lean_object* x_19; +x_19 = l_Lean_Elab_Command_elabSyntax___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +return x_19; } } LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__7___boxed(lean_object** _args) { @@ -18409,11 +19215,12 @@ lean_object* x_14 = _args[13]; lean_object* x_15 = _args[14]; lean_object* x_16 = _args[15]; lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; _start: { -lean_object* x_18; -x_18 = l_Lean_Elab_Command_elabSyntax___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -return x_18; +lean_object* x_19; +x_19 = l_Lean_Elab_Command_elabSyntax___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +return x_19; } } static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1() { @@ -18458,7 +19265,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntax_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(327u); +x_1 = lean_unsigned_to_nat(336u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18470,7 +19277,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntax_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(357u); +x_1 = lean_unsigned_to_nat(367u); x_2 = lean_unsigned_to_nat(43u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18498,7 +19305,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntax_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(327u); +x_1 = lean_unsigned_to_nat(336u); x_2 = lean_unsigned_to_nat(35u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18510,7 +19317,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntax_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(327u); +x_1 = lean_unsigned_to_nat(336u); x_2 = lean_unsigned_to_nat(45u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -19661,7 +20468,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev_decl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(359u); +x_1 = lean_unsigned_to_nat(369u); x_2 = lean_unsigned_to_nat(37u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -19673,7 +20480,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev_decl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(365u); +x_1 = lean_unsigned_to_nat(375u); x_2 = lean_unsigned_to_nat(49u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -19701,7 +20508,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev_decl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(359u); +x_1 = lean_unsigned_to_nat(369u); x_2 = lean_unsigned_to_nat(41u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -19713,7 +20520,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev_decl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(359u); +x_1 = lean_unsigned_to_nat(369u); x_2 = lean_unsigned_to_nat(57u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20871,7 +21678,7 @@ lean_dec(x_2); return x_4; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_9924____closed__1() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -20881,11 +21688,11 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_9924_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_9924____closed__1; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403____closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -21065,6 +21872,10 @@ l_List_filterMap___at_Lean_Elab_Term_resolveParserName___spec__1___closed__1 = _ lean_mark_persistent(l_List_filterMap___at_Lean_Elab_Term_resolveParserName___spec__1___closed__1); l_List_filterMap___at_Lean_Elab_Term_resolveParserName___spec__1___closed__2 = _init_l_List_filterMap___at_Lean_Elab_Term_resolveParserName___spec__1___closed__2(); lean_mark_persistent(l_List_filterMap___at_Lean_Elab_Term_resolveParserName___spec__1___closed__2); +l_Lean_Elab_Term_addCategoryInfo___closed__1 = _init_l_Lean_Elab_Term_addCategoryInfo___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_addCategoryInfo___closed__1); +l_Lean_Elab_Term_addCategoryInfo___closed__2 = _init_l_Lean_Elab_Term_addCategoryInfo___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_addCategoryInfo___closed__2); l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__1 = _init_l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__1); l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__2 = _init_l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__2(); @@ -21461,6 +22272,60 @@ l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__1 = _init_l_Lean_Elab_Command lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__1); l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__2 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__2(); lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__2); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__3 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__3); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__4 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__4); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__5 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__5(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__5); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__6 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__6(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__6); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__7 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__7(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__7); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__8 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__8(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__8); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__9 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__9(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__9); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__10 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__10(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__10); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__11 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__11(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__11); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__12 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__12(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__12); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__13 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__13(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__13); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__14 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__14(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__14); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__15 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__15(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__15); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__16 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__16(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__16); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__17 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__17(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__17); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__18 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__18(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__18); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__19 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__19(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__19); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__20 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__20(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__20); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__21 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__21(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__21); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__22 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__22(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__22); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__23 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__23(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__23); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__24 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__24(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__24); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__25 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__25(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__25); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__26 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__26(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__26); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__27 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__27(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__27); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__28 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__28(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__28); +l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__29 = _init_l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__29(); +lean_mark_persistent(l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__29); l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__1); l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__2(); @@ -21649,9 +22514,9 @@ l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__5 = _init_l_ lean_mark_persistent(l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__5); l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__6 = _init_l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__6(); lean_mark_persistent(l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__6); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_9924____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_9924____closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_9924____closed__1); -res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_9924_(lean_io_mk_world()); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403____closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403____closed__1); +res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Parser/Syntax.c b/stage0/stdlib/Lean/Parser/Syntax.c index d53f992b67..785edb8c04 100644 --- a/stage0/stdlib/Lean/Parser/Syntax.c +++ b/stage0/stdlib/Lean/Parser/Syntax.c @@ -38,6 +38,7 @@ static lean_object* l_Lean_Parser_Command_notationItem_parenthesizer___closed__1 static lean_object* l_Lean_Parser_Term_prec_quot___elambda__1___closed__13; static lean_object* l_Lean_Parser_Command_prefix___elambda__1___closed__8; static lean_object* l_Lean_Parser_Command_macroArg___elambda__1___closed__10; +static lean_object* l_Lean_Parser_Command_syntaxCat___elambda__1___closed__14; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Command_elab__rules_formatter(lean_object*); static lean_object* l_Lean_Parser_Command_elab__rules___elambda__1___closed__10; static lean_object* l_Lean_Parser_Command_notationItem___closed__4; @@ -78,6 +79,7 @@ static lean_object* l_Lean_Parser_Term_prec_quot___elambda__1___closed__10; static lean_object* l_Lean_Parser_Command_mixfixKind___closed__2; static lean_object* l_Lean_Parser_Syntax_atom___closed__6; static lean_object* l_Lean_Parser_Command_infixr___elambda__1___closed__3; +static lean_object* l_Lean_Parser_Command_syntaxCat_formatter___closed__7; uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_828____at_Lean_Parser_ParserState_hasError___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_macro__rules_parenthesizer___closed__10; static lean_object* l___regBuiltin_Lean_Parser_Command_mixfix_declRange___closed__7; @@ -576,6 +578,7 @@ static lean_object* l_Lean_Parser_Command_macroTailTactic_parenthesizer___closed static lean_object* l_Lean_Parser_Command_optKind___closed__16; static lean_object* l_Lean_Parser_Command_syntax___closed__5; static lean_object* l_Lean_Parser_Term_prio_quot___elambda__1___closed__13; +static lean_object* l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__7; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Syntax_sepBy_parenthesizer(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Command_syntaxAbbrev_formatter(lean_object*); static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Syntax___hyg_5____closed__2; @@ -1071,6 +1074,7 @@ lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean static lean_object* l_Lean_Parser_Command_mixfix_parenthesizer___closed__13; LEAN_EXPORT lean_object* l_Lean_Parser_Command_optNamedName_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Term_prec_quot_parenthesizer___closed__2; +static lean_object* l_Lean_Parser_Command_syntaxCat___closed__10; static lean_object* l_Lean_Parser_Command_mixfixKind___closed__1; static lean_object* l_Lean_Parser_Command_macroArg___elambda__1___closed__9; static lean_object* l___regBuiltin_Lean_Parser_Syntax_cat_declRange___closed__7; @@ -23265,22 +23269,24 @@ return x_3; static lean_object* _init_l_Lean_Parser_Command_syntaxCat___elambda__1___closed__9() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__2; -x_2 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__8; -x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__4; +x_2 = lean_ctor_get(x_1, 1); +lean_inc(x_2); +x_3 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__8; +x_4 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); +lean_closure_set(x_4, 0, x_2); +lean_closure_set(x_4, 1, x_3); +return x_4; } } static lean_object* _init_l_Lean_Parser_Command_syntaxCat___elambda__1___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__9; -x_2 = l_Lean_Parser_precedence___elambda__1___closed__12; -x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); +x_1 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__2; +x_2 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__9; +x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; @@ -23290,8 +23296,8 @@ static lean_object* _init_l_Lean_Parser_Command_syntaxCat___elambda__1___closed_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_precedence___elambda__1___closed__11; -x_2 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__10; +x_1 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__10; +x_2 = l_Lean_Parser_precedence___elambda__1___closed__12; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -23302,9 +23308,11 @@ static lean_object* _init_l_Lean_Parser_Command_syntaxCat___elambda__1___closed_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_precedence___elambda__1___lambda__1___closed__1; -x_2 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__5; -x_3 = lean_string_append(x_1, x_2); +x_1 = l_Lean_Parser_precedence___elambda__1___closed__11; +x_2 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__11; +x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); return x_3; } } @@ -23312,7 +23320,17 @@ static lean_object* _init_l_Lean_Parser_Command_syntaxCat___elambda__1___closed_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__12; +x_1 = l_Lean_Parser_precedence___elambda__1___lambda__1___closed__1; +x_2 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__5; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Command_syntaxCat___elambda__1___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__13; x_2 = l_Lean_Parser_precedence___elambda__1___lambda__1___closed__1; x_3 = lean_string_append(x_1, x_2); return x_3; @@ -23321,172 +23339,193 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Parser_Command_syntaxCat___elambda__1(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint32_t x_10; uint32_t x_11; uint8_t x_12; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint32_t x_12; uint32_t x_13; uint8_t x_14; x_3 = l_Lean_Parser_Command_catBehavior; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); -x_5 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__3; +x_5 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__4; x_6 = lean_ctor_get(x_5, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_1, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_7, 0); +x_7 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__3; +x_8 = lean_ctor_get(x_7, 1); lean_inc(x_8); -lean_dec(x_7); -x_9 = lean_ctor_get(x_2, 2); +x_9 = lean_ctor_get(x_1, 0); lean_inc(x_9); -x_10 = lean_string_utf8_get(x_8, x_9); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); lean_dec(x_9); -x_11 = 36; -x_12 = lean_uint32_dec_eq(x_10, x_11); -if (x_12 == 0) +x_11 = lean_ctor_get(x_2, 2); +lean_inc(x_11); +x_12 = lean_string_utf8_get(x_10, x_11); +lean_dec(x_11); +x_13 = 36; +x_14 = lean_uint32_dec_eq(x_12, x_13); +if (x_14 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +lean_dec(x_8); +x_15 = lean_unsigned_to_nat(1024u); +x_16 = l_Lean_Parser_checkPrecFn(x_15, x_1, x_2); +x_17 = lean_ctor_get(x_16, 4); +lean_inc(x_17); +x_18 = lean_box(0); +x_19 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_828____at_Lean_Parser_ParserState_hasError___spec__1(x_17, x_18); +lean_dec(x_17); +if (x_19 == 0) +{ +lean_dec(x_10); lean_dec(x_6); -x_13 = lean_unsigned_to_nat(1024u); -x_14 = l_Lean_Parser_checkPrecFn(x_13, x_1, x_2); -x_15 = lean_ctor_get(x_14, 4); -lean_inc(x_15); -x_16 = lean_box(0); -x_17 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_828____at_Lean_Parser_ParserState_hasError___spec__1(x_15, x_16); -lean_dec(x_15); -if (x_17 == 0) -{ -lean_dec(x_8); lean_dec(x_4); lean_dec(x_1); -return x_14; +return x_16; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint32_t x_24; uint32_t x_25; uint8_t x_26; lean_object* x_27; -x_18 = lean_ctor_get(x_14, 0); -lean_inc(x_18); -x_19 = lean_array_get_size(x_18); -lean_dec(x_18); -x_20 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__5; -x_21 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__13; +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; +x_20 = lean_ctor_get(x_16, 0); +lean_inc(x_20); +x_21 = lean_array_get_size(x_20); +lean_dec(x_20); lean_inc(x_1); -x_22 = l_Lean_Parser_symbolFnAux(x_20, x_21, x_1, x_14); -x_23 = lean_ctor_get(x_22, 2); +x_22 = lean_apply_2(x_6, x_1, x_16); +x_23 = lean_ctor_get(x_22, 4); lean_inc(x_23); -x_24 = lean_string_utf8_get(x_8, x_23); +x_24 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_828____at_Lean_Parser_ParserState_hasError___spec__1(x_23, x_18); lean_dec(x_23); -lean_dec(x_8); -x_25 = 37; -x_26 = lean_uint32_dec_eq(x_24, x_25); -if (x_26 == 0) +if (x_24 == 0) { -x_27 = x_22; -goto block_49; -} -else -{ -lean_object* x_50; -lean_inc(x_1); -x_50 = l_Lean_Parser_tokenAntiquotFn(x_1, x_22); -x_27 = x_50; -goto block_49; -} -block_49: -{ -lean_object* x_28; uint8_t x_29; -x_28 = lean_ctor_get(x_27, 4); -lean_inc(x_28); -x_29 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_828____at_Lean_Parser_ParserState_hasError___spec__1(x_28, x_16); -lean_dec(x_28); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_dec(x_10); lean_dec(x_4); -x_30 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__2; -x_31 = l_Lean_Parser_ParserState_mkNode(x_27, x_30, x_19); -x_32 = lean_ctor_get(x_31, 4); -lean_inc(x_32); -x_33 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_828____at_Lean_Parser_ParserState_hasError___spec__1(x_32, x_16); -lean_dec(x_32); -if (x_33 == 0) -{ -lean_dec(x_1); -return x_31; +x_25 = x_22; +goto block_31; } else { -lean_object* x_34; -x_34 = l_Lean_Parser_setLhsPrecFn(x_13, x_1, x_31); -lean_dec(x_1); -return x_34; -} -} -else -{ -lean_object* x_35; lean_object* x_36; uint8_t x_37; +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint32_t x_36; uint32_t x_37; uint8_t x_38; +x_32 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__5; +x_33 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__14; lean_inc(x_1); -x_35 = l_Lean_Parser_ident___elambda__1(x_1, x_27); -x_36 = lean_ctor_get(x_35, 4); -lean_inc(x_36); -x_37 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_828____at_Lean_Parser_ParserState_hasError___spec__1(x_36, x_16); -lean_dec(x_36); -if (x_37 == 0) +x_34 = l_Lean_Parser_symbolFnAux(x_32, x_33, x_1, x_22); +x_35 = lean_ctor_get(x_34, 2); +lean_inc(x_35); +x_36 = lean_string_utf8_get(x_10, x_35); +lean_dec(x_35); +lean_dec(x_10); +x_37 = 37; +x_38 = lean_uint32_dec_eq(x_36, x_37); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_34, 4); +lean_inc(x_39); +x_40 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_828____at_Lean_Parser_ParserState_hasError___spec__1(x_39, x_18); +lean_dec(x_39); +if (x_40 == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_dec(x_4); -x_38 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__2; -x_39 = l_Lean_Parser_ParserState_mkNode(x_35, x_38, x_19); -x_40 = lean_ctor_get(x_39, 4); -lean_inc(x_40); -x_41 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_828____at_Lean_Parser_ParserState_hasError___spec__1(x_40, x_16); -lean_dec(x_40); -if (x_41 == 0) -{ -lean_dec(x_1); -return x_39; +x_25 = x_34; +goto block_31; } else { -lean_object* x_42; -x_42 = l_Lean_Parser_setLhsPrecFn(x_13, x_1, x_39); -lean_dec(x_1); -return x_42; -} -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_inc(x_1); -x_43 = lean_apply_2(x_4, x_1, x_35); -x_44 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__2; -x_45 = l_Lean_Parser_ParserState_mkNode(x_43, x_44, x_19); +x_41 = l_Lean_Parser_ident___elambda__1(x_1, x_34); +x_42 = lean_ctor_get(x_41, 4); +lean_inc(x_42); +x_43 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_828____at_Lean_Parser_ParserState_hasError___spec__1(x_42, x_18); +lean_dec(x_42); +if (x_43 == 0) +{ +lean_dec(x_4); +x_25 = x_41; +goto block_31; +} +else +{ +lean_object* x_44; +lean_inc(x_1); +x_44 = lean_apply_2(x_4, x_1, x_41); +x_25 = x_44; +goto block_31; +} +} +} +else +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; +lean_inc(x_1); +x_45 = l_Lean_Parser_tokenAntiquotFn(x_1, x_34); x_46 = lean_ctor_get(x_45, 4); lean_inc(x_46); -x_47 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_828____at_Lean_Parser_ParserState_hasError___spec__1(x_46, x_16); +x_47 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_828____at_Lean_Parser_ParserState_hasError___spec__1(x_46, x_18); lean_dec(x_46); if (x_47 == 0) { -lean_dec(x_1); -return x_45; -} -else -{ -lean_object* x_48; -x_48 = l_Lean_Parser_setLhsPrecFn(x_13, x_1, x_45); -lean_dec(x_1); -return x_48; -} -} -} -} -} -} -else -{ -lean_object* x_51; uint8_t x_52; lean_object* x_53; -lean_dec(x_8); lean_dec(x_4); -x_51 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__11; -x_52 = 1; -x_53 = l_Lean_Parser_orelseFnCore(x_6, x_51, x_52, x_1, x_2); -return x_53; +x_25 = x_45; +goto block_31; +} +else +{ +lean_object* x_48; lean_object* x_49; uint8_t x_50; +lean_inc(x_1); +x_48 = l_Lean_Parser_ident___elambda__1(x_1, x_45); +x_49 = lean_ctor_get(x_48, 4); +lean_inc(x_49); +x_50 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_828____at_Lean_Parser_ParserState_hasError___spec__1(x_49, x_18); +lean_dec(x_49); +if (x_50 == 0) +{ +lean_dec(x_4); +x_25 = x_48; +goto block_31; +} +else +{ +lean_object* x_51; +lean_inc(x_1); +x_51 = lean_apply_2(x_4, x_1, x_48); +x_25 = x_51; +goto block_31; +} +} +} +} +block_31: +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_26 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__2; +x_27 = l_Lean_Parser_ParserState_mkNode(x_25, x_26, x_21); +x_28 = lean_ctor_get(x_27, 4); +lean_inc(x_28); +x_29 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_828____at_Lean_Parser_ParserState_hasError___spec__1(x_28, x_18); +lean_dec(x_28); +if (x_29 == 0) +{ +lean_dec(x_1); +return x_27; +} +else +{ +lean_object* x_30; +x_30 = l_Lean_Parser_setLhsPrecFn(x_15, x_1, x_27); +lean_dec(x_1); +return x_30; +} +} +} +} +else +{ +lean_object* x_52; uint8_t x_53; lean_object* x_54; +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_4); +x_52 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__12; +x_53 = 1; +x_54 = l_Lean_Parser_orelseFnCore(x_8, x_52, x_53, x_1, x_2); +return x_54; } } } @@ -23526,20 +23565,22 @@ return x_3; static lean_object* _init_l_Lean_Parser_Command_syntaxCat___closed__4() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__2; -x_2 = l_Lean_Parser_Command_syntaxCat___closed__3; -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_Command_macro__rules___elambda__1___closed__4; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Command_syntaxCat___closed__3; +x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); +return x_4; } } static lean_object* _init_l_Lean_Parser_Command_syntaxCat___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_syntaxCat___closed__4; -x_2 = l_Lean_Parser_epsilonInfo; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +x_1 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__2; +x_2 = l_Lean_Parser_Command_syntaxCat___closed__4; +x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; } } @@ -23547,8 +23588,8 @@ static lean_object* _init_l_Lean_Parser_Command_syntaxCat___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_epsilonInfo; -x_2 = l_Lean_Parser_Command_syntaxCat___closed__5; +x_1 = l_Lean_Parser_Command_syntaxCat___closed__5; +x_2 = l_Lean_Parser_epsilonInfo; x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); return x_3; } @@ -23556,16 +23597,26 @@ return x_3; static lean_object* _init_l_Lean_Parser_Command_syntaxCat___closed__7() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_epsilonInfo; +x_2 = l_Lean_Parser_Command_syntaxCat___closed__6; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Command_syntaxCat___closed__8() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__3; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Command_syntaxCat___closed__6; +x_3 = l_Lean_Parser_Command_syntaxCat___closed__7; x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Command_syntaxCat___closed__8() { +static lean_object* _init_l_Lean_Parser_Command_syntaxCat___closed__9() { _start: { lean_object* x_1; @@ -23573,12 +23624,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_syntaxCat___elambda__1), return x_1; } } -static lean_object* _init_l_Lean_Parser_Command_syntaxCat___closed__9() { +static lean_object* _init_l_Lean_Parser_Command_syntaxCat___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_syntaxCat___closed__7; -x_2 = l_Lean_Parser_Command_syntaxCat___closed__8; +x_1 = l_Lean_Parser_Command_syntaxCat___closed__8; +x_2 = l_Lean_Parser_Command_syntaxCat___closed__9; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -23589,7 +23640,7 @@ static lean_object* _init_l_Lean_Parser_Command_syntaxCat() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Command_syntaxCat___closed__9; +x_1 = l_Lean_Parser_Command_syntaxCat___closed__10; return x_1; } } @@ -23623,7 +23674,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_unsigned_to_nat(77u); -x_2 = lean_unsigned_to_nat(101u); +x_2 = lean_unsigned_to_nat(124u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -23637,7 +23688,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___regBuiltin_Lean_Parser_Command_syntaxCat_declRange___closed__1; x_2 = lean_unsigned_to_nat(24u); x_3 = l___regBuiltin_Lean_Parser_Command_syntaxCat_declRange___closed__2; -x_4 = lean_unsigned_to_nat(101u); +x_4 = lean_unsigned_to_nat(124u); x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -24023,10 +24074,22 @@ return x_3; static lean_object* _init_l_Lean_Parser_Command_syntaxCat_formatter___closed__6() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Command_macro__rules_formatter___closed__3; +x_2 = l_Lean_Parser_Command_syntaxCat_formatter___closed__5; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Command_syntaxCat_formatter___closed__7() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Command_syntaxCat_formatter___closed__5; +x_3 = l_Lean_Parser_Command_syntaxCat_formatter___closed__6; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -24039,7 +24102,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Command_syntaxCat_formatter___closed__1; -x_7 = l_Lean_Parser_Command_syntaxCat_formatter___closed__6; +x_7 = l_Lean_Parser_Command_syntaxCat_formatter___closed__7; x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -24389,10 +24452,22 @@ return x_3; static lean_object* _init_l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__6() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Command_macro__rules_parenthesizer___closed__3; +x_2 = l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__5; +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; +} +} +static lean_object* _init_l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__7() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Command_syntaxCat___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__5; +x_3 = l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__6; 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); @@ -24405,7 +24480,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__6; +x_7 = l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__7; x_8 = l_Lean_PrettyPrinter_Parenthesizer_withAntiquot_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -33364,6 +33439,8 @@ l_Lean_Parser_Command_syntaxCat___elambda__1___closed__12 = _init_l_Lean_Parser_ lean_mark_persistent(l_Lean_Parser_Command_syntaxCat___elambda__1___closed__12); l_Lean_Parser_Command_syntaxCat___elambda__1___closed__13 = _init_l_Lean_Parser_Command_syntaxCat___elambda__1___closed__13(); lean_mark_persistent(l_Lean_Parser_Command_syntaxCat___elambda__1___closed__13); +l_Lean_Parser_Command_syntaxCat___elambda__1___closed__14 = _init_l_Lean_Parser_Command_syntaxCat___elambda__1___closed__14(); +lean_mark_persistent(l_Lean_Parser_Command_syntaxCat___elambda__1___closed__14); l_Lean_Parser_Command_syntaxCat___closed__1 = _init_l_Lean_Parser_Command_syntaxCat___closed__1(); lean_mark_persistent(l_Lean_Parser_Command_syntaxCat___closed__1); l_Lean_Parser_Command_syntaxCat___closed__2 = _init_l_Lean_Parser_Command_syntaxCat___closed__2(); @@ -33382,6 +33459,8 @@ l_Lean_Parser_Command_syntaxCat___closed__8 = _init_l_Lean_Parser_Command_syntax lean_mark_persistent(l_Lean_Parser_Command_syntaxCat___closed__8); l_Lean_Parser_Command_syntaxCat___closed__9 = _init_l_Lean_Parser_Command_syntaxCat___closed__9(); lean_mark_persistent(l_Lean_Parser_Command_syntaxCat___closed__9); +l_Lean_Parser_Command_syntaxCat___closed__10 = _init_l_Lean_Parser_Command_syntaxCat___closed__10(); +lean_mark_persistent(l_Lean_Parser_Command_syntaxCat___closed__10); l_Lean_Parser_Command_syntaxCat = _init_l_Lean_Parser_Command_syntaxCat(); lean_mark_persistent(l_Lean_Parser_Command_syntaxCat); res = l___regBuiltin_Lean_Parser_Command_syntaxCat(lean_io_mk_world()); @@ -33454,6 +33533,8 @@ l_Lean_Parser_Command_syntaxCat_formatter___closed__5 = _init_l_Lean_Parser_Comm lean_mark_persistent(l_Lean_Parser_Command_syntaxCat_formatter___closed__5); l_Lean_Parser_Command_syntaxCat_formatter___closed__6 = _init_l_Lean_Parser_Command_syntaxCat_formatter___closed__6(); lean_mark_persistent(l_Lean_Parser_Command_syntaxCat_formatter___closed__6); +l_Lean_Parser_Command_syntaxCat_formatter___closed__7 = _init_l_Lean_Parser_Command_syntaxCat_formatter___closed__7(); +lean_mark_persistent(l_Lean_Parser_Command_syntaxCat_formatter___closed__7); l___regBuiltin_Lean_Parser_Command_syntaxCat_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Command_syntaxCat_formatter___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_syntaxCat_formatter___closed__1); l___regBuiltin_Lean_Parser_Command_syntaxCat_formatter___closed__2 = _init_l___regBuiltin_Lean_Parser_Command_syntaxCat_formatter___closed__2(); @@ -33511,6 +33592,8 @@ l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__5 = _init_l_Lean_Parser_ lean_mark_persistent(l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__5); l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__6 = _init_l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__6(); lean_mark_persistent(l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__6); +l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__7 = _init_l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__7(); +lean_mark_persistent(l_Lean_Parser_Command_syntaxCat_parenthesizer___closed__7); l___regBuiltin_Lean_Parser_Command_syntaxCat_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Command_syntaxCat_parenthesizer___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_syntaxCat_parenthesizer___closed__1); l___regBuiltin_Lean_Parser_Command_syntaxCat_parenthesizer___closed__2 = _init_l___regBuiltin_Lean_Parser_Command_syntaxCat_parenthesizer___closed__2(); diff --git a/stage0/stdlib/Lean/Parser/Term.c b/stage0/stdlib/Lean/Parser/Term.c index b870b5c902..513f1ced51 100644 --- a/stage0/stdlib/Lean/Parser/Term.c +++ b/stage0/stdlib/Lean/Parser/Term.c @@ -293,6 +293,7 @@ static lean_object* l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__ static lean_object* l___regBuiltin_Lean_Parser_Term_binrel_declRange___closed__4; static lean_object* l_Lean_Parser_Term_whereDecls___elambda__1___closed__17; LEAN_EXPORT lean_object* l_Lean_Parser_Term_attributes_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Parser_Term_let__tmp_docString___closed__1; static lean_object* l_Lean_Parser_Term_suffices_parenthesizer___closed__3; static lean_object* l_Lean_Parser_Term_waitIfTypeMVar_parenthesizer___closed__7; static lean_object* l_Lean_Parser_Term_matchAltsWhereDecls_parenthesizer___closed__1; @@ -670,6 +671,7 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_panic_parenthesizer(lea static lean_object* l_Lean_Parser_Term_letRecDecl___elambda__1___closed__8; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_fun_declRange(lean_object*); static lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__6; +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_let__tmp_docString(lean_object*); static lean_object* l_Lean_Parser_Term_subst___closed__4; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_leading__parser_parenthesizer(lean_object*); LEAN_EXPORT lean_object* l_Lean_Parser_Term_funImplicitBinder___elambda__1(lean_object*, lean_object*); @@ -2209,6 +2211,7 @@ static lean_object* l_Lean_Parser_Term_let___closed__4; static lean_object* l_Lean_Parser_Term_ensureExpectedType___elambda__1___closed__12; LEAN_EXPORT lean_object* l_Lean_Parser_Term_bracketedBinderF; static lean_object* l_Lean_Parser_Term_letrec_parenthesizer___closed__8; +static lean_object* l___regBuiltin_Lean_Parser_Term_let__fun_docString___closed__1; LEAN_EXPORT lean_object* l_Lean_Parser_Term_explicitBinder_formatter(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Term_panic___elambda__1___closed__12; LEAN_EXPORT lean_object* l_Lean_Parser_Term_panic___elambda__1(lean_object*, lean_object*); @@ -2726,6 +2729,7 @@ static lean_object* l___regBuiltin_Lean_Parser_Term_structInstArrayRef_formatter static lean_object* l_Lean_Parser_Term_explicitBinder___closed__5; static lean_object* l_Lean_Parser_Term_letIdLhs___elambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Parser_Term_implicitBinder___elambda__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_let_docString(lean_object*); static lean_object* l_Lean_Parser_Term_structInstField_formatter___closed__1; static lean_object* l___regBuiltin_Lean_Parser_Term_unreachable_parenthesizer___closed__2; static lean_object* l___regBuiltin_Lean_Parser_Term_ensureTypeOf_declRange___closed__7; @@ -3206,6 +3210,7 @@ static lean_object* l___regBuiltin_Lean_Parser_Term_suffices_declRange___closed_ static lean_object* l_Lean_Parser_Term_motive___closed__5; static lean_object* l_Lean_Parser_Term_sufficesDecl___elambda__1___closed__4; static lean_object* l_Lean_Parser_Term_argument___elambda__1___closed__2; +static lean_object* l___regBuiltin_Lean_Parser_Term_let_docString___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_fun(lean_object*); static lean_object* l_Lean_Parser_Term_letDecl___closed__9; static lean_object* l_Lean_Parser_Tactic_tacticSeq1Indented___elambda__1___closed__21; @@ -3361,6 +3366,7 @@ static lean_object* l_Lean_Parser_Term_letDecl___elambda__1___closed__3; static lean_object* l_Lean_Parser_Term_binop_formatter___closed__3; static lean_object* l___regBuiltin_Lean_Parser_Term_stateRefT_formatter___closed__1; static lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__47; +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_let__fun_docString(lean_object*); static lean_object* l_Lean_Parser_Term_whereDecls_formatter___closed__11; static lean_object* l_Lean_Parser_Tactic_quotSeq_formatter___closed__5; static lean_object* l_Lean_Parser_Term_type_parenthesizer___closed__11; @@ -3644,6 +3650,7 @@ static lean_object* l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__9; static lean_object* l_Lean_Parser_Term_letMVar_parenthesizer___closed__1; static lean_object* l___regBuiltin_Lean_Parser_Term_trueVal_parenthesizer___closed__1; +static lean_object* l___regBuiltin_Lean_Parser_Term_let__delayed_docString___closed__1; static lean_object* l_Lean_Parser_Level_quot___closed__7; static lean_object* l_Lean_Parser_Term_bracketedBinder_quot___elambda__1___closed__1; static lean_object* l_Lean_Parser_Term_motive___elambda__1___closed__12; @@ -6173,6 +6180,7 @@ static lean_object* l_Lean_Parser_Term_funBinder_quot_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Term_byTactic_x27___elambda__1___closed__6; static lean_object* l_Lean_Parser_Term_letrec___closed__10; static lean_object* l_Lean_Parser_Term_paren_parenthesizer___closed__1; +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_let__delayed_docString(lean_object*); static lean_object* l_Lean_Parser_Term_fromTerm_parenthesizer___closed__1; static lean_object* l_Lean_Parser_Tactic_tacticSeq___closed__5; static lean_object* l_Lean_Parser_Term_explicitBinder_parenthesizer___closed__1; @@ -51004,11 +51012,29 @@ x_7 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_6, x_1); return x_7; } } +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let_docString___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("`let` is used to declare a local definition. Example:\n```\nlet x := 1\nlet y := x + 1\nx + y\n```\nSince functions are first class citizens in Lean, you can use `let` to declare local functions too.\n```\nlet double := fun x => 2*x\ndouble (double 3)\n```\nFor recursive definitions, you should use `let rec`.\nYou can also perform pattern matching using `let`. For example, assume `p` has type `Nat × Nat`, then you can write\n```\nlet (x, y) := p\nx + y\n```\n", 447); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_let_docString(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_3 = l___regBuiltin_Lean_Parser_Term_let_docString___closed__1; +x_4 = l_Lean_addBuiltinDocString(x_2, x_3, x_1); +return x_4; +} +} static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let_declRange___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(200u); +x_1 = lean_unsigned_to_nat(219u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -51020,7 +51046,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let_declRange___closed _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(200u); +x_1 = lean_unsigned_to_nat(219u); x_2 = lean_unsigned_to_nat(118u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -51048,7 +51074,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let_declRange___closed _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(200u); +x_1 = lean_unsigned_to_nat(219u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -51060,7 +51086,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let_declRange___closed _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(200u); +x_1 = lean_unsigned_to_nat(219u); x_2 = lean_unsigned_to_nat(30u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -53003,11 +53029,29 @@ x_7 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_6, x_1); return x_7; } } +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let__fun_docString___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("`let_fun x := v; b` is syntax sugar for `(fun x => b) v`. It is very similar to `let x := v; b`, but they are not equivalent.\nIn `let_fun`, the value `v` has been abstracted away and cannot be accessed in `b`.\n", 210); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_let__fun_docString(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = l_Lean_Parser_Term_let__fun___elambda__1___closed__2; +x_3 = l___regBuiltin_Lean_Parser_Term_let__fun_docString___closed__1; +x_4 = l_Lean_addBuiltinDocString(x_2, x_3, x_1); +return x_4; +} +} static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let__fun_declRange___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(201u); +x_1 = lean_unsigned_to_nat(224u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -53019,7 +53063,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let__fun_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(201u); +x_1 = lean_unsigned_to_nat(224u); x_2 = lean_unsigned_to_nat(150u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -53047,7 +53091,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let__fun_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(201u); +x_1 = lean_unsigned_to_nat(224u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -53059,7 +53103,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let__fun_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(201u); +x_1 = lean_unsigned_to_nat(224u); x_2 = lean_unsigned_to_nat(34u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -53829,11 +53873,29 @@ x_7 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_6, x_1); return x_7; } } +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let__delayed_docString___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("`let_delayed x := v; b` is similar to `let x := v; b`, but `b` is elaborated before `v`.\n", 89); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_let__delayed_docString(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = l_Lean_Parser_Term_let__delayed___elambda__1___closed__2; +x_3 = l___regBuiltin_Lean_Parser_Term_let__delayed_docString___closed__1; +x_4 = l_Lean_addBuiltinDocString(x_2, x_3, x_1); +return x_4; +} +} static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let__delayed_declRange___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(202u); +x_1 = lean_unsigned_to_nat(228u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -53845,7 +53907,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let__delayed_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(202u); +x_1 = lean_unsigned_to_nat(228u); x_2 = lean_unsigned_to_nat(133u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -53873,7 +53935,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let__delayed_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(202u); +x_1 = lean_unsigned_to_nat(228u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -53885,7 +53947,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let__delayed_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(202u); +x_1 = lean_unsigned_to_nat(228u); x_2 = lean_unsigned_to_nat(38u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -54611,11 +54673,29 @@ x_7 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_6, x_1); return x_7; } } +static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let__tmp_docString___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("`let`-declaration that is only included in the elaborated term if variable is still there.\nIt is often used when building macros.\n", 130); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Parser_Term_let__tmp_docString(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = l_Lean_Parser_Term_let__tmp___elambda__1___closed__2; +x_3 = l___regBuiltin_Lean_Parser_Term_let__tmp_docString___closed__1; +x_4 = l_Lean_addBuiltinDocString(x_2, x_3, x_1); +return x_4; +} +} static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let__tmp_declRange___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(204u); +x_1 = lean_unsigned_to_nat(233u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -54627,7 +54707,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let__tmp_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(204u); +x_1 = lean_unsigned_to_nat(233u); x_2 = lean_unsigned_to_nat(125u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -54655,7 +54735,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let__tmp_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(204u); +x_1 = lean_unsigned_to_nat(233u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -54667,7 +54747,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_let__tmp_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(204u); +x_1 = lean_unsigned_to_nat(233u); x_2 = lean_unsigned_to_nat(34u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -56503,7 +56583,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_have_declRange___close _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(214u); +x_1 = lean_unsigned_to_nat(243u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -56515,7 +56595,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_have_declRange___close _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(214u); +x_1 = lean_unsigned_to_nat(243u); x_2 = lean_unsigned_to_nat(120u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -56543,7 +56623,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_have_declRange___close _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(214u); +x_1 = lean_unsigned_to_nat(243u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -56555,7 +56635,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_have_declRange___close _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(214u); +x_1 = lean_unsigned_to_nat(243u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -60502,7 +60582,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_letrec_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(225u); +x_1 = lean_unsigned_to_nat(254u); x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -60514,7 +60594,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_letrec_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(225u); +x_1 = lean_unsigned_to_nat(254u); x_2 = lean_unsigned_to_nat(139u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -60542,7 +60622,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_letrec_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(225u); +x_1 = lean_unsigned_to_nat(254u); x_2 = lean_unsigned_to_nat(4u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -60554,7 +60634,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_letrec_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(225u); +x_1 = lean_unsigned_to_nat(254u); x_2 = lean_unsigned_to_nat(12u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -64164,7 +64244,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_noindex_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(233u); +x_1 = lean_unsigned_to_nat(262u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -64176,7 +64256,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_noindex_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(233u); +x_1 = lean_unsigned_to_nat(262u); x_2 = lean_unsigned_to_nat(84u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -64204,7 +64284,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_noindex_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(233u); +x_1 = lean_unsigned_to_nat(262u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -64216,7 +64296,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_noindex_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(233u); +x_1 = lean_unsigned_to_nat(262u); x_2 = lean_unsigned_to_nat(32u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -64904,7 +64984,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binrel_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(235u); +x_1 = lean_unsigned_to_nat(264u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -64916,7 +64996,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binrel_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(235u); +x_1 = lean_unsigned_to_nat(264u); x_2 = lean_unsigned_to_nat(124u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -64944,7 +65024,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binrel_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(235u); +x_1 = lean_unsigned_to_nat(264u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -64956,7 +65036,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binrel_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(235u); +x_1 = lean_unsigned_to_nat(264u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -65663,7 +65743,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binrel__no__prop_declR _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(237u); +x_1 = lean_unsigned_to_nat(266u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -65675,7 +65755,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binrel__no__prop_declR _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(237u); +x_1 = lean_unsigned_to_nat(266u); x_2 = lean_unsigned_to_nat(140u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -65703,7 +65783,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binrel__no__prop_declR _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(237u); +x_1 = lean_unsigned_to_nat(266u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -65715,7 +65795,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binrel__no__prop_declR _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(237u); +x_1 = lean_unsigned_to_nat(266u); x_2 = lean_unsigned_to_nat(39u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -66334,7 +66414,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binop_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(238u); +x_1 = lean_unsigned_to_nat(267u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -66346,7 +66426,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binop_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(238u); +x_1 = lean_unsigned_to_nat(267u); x_2 = lean_unsigned_to_nat(123u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -66374,7 +66454,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binop_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(238u); +x_1 = lean_unsigned_to_nat(267u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -66386,7 +66466,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binop_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(238u); +x_1 = lean_unsigned_to_nat(267u); x_2 = lean_unsigned_to_nat(30u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -67005,7 +67085,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binop__lazy_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(239u); +x_1 = lean_unsigned_to_nat(268u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -67017,7 +67097,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binop__lazy_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(239u); +x_1 = lean_unsigned_to_nat(268u); x_2 = lean_unsigned_to_nat(133u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -67045,7 +67125,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binop__lazy_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(239u); +x_1 = lean_unsigned_to_nat(268u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -67057,7 +67137,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_binop__lazy_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(239u); +x_1 = lean_unsigned_to_nat(268u); x_2 = lean_unsigned_to_nat(35u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -67745,7 +67825,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_forInMacro_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(241u); +x_1 = lean_unsigned_to_nat(270u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -67757,7 +67837,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_forInMacro_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(241u); +x_1 = lean_unsigned_to_nat(270u); x_2 = lean_unsigned_to_nat(130u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -67785,7 +67865,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_forInMacro_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(241u); +x_1 = lean_unsigned_to_nat(270u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -67797,7 +67877,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_forInMacro_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(241u); +x_1 = lean_unsigned_to_nat(270u); x_2 = lean_unsigned_to_nat(35u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -68485,7 +68565,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_forInMacro_x27_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(242u); +x_1 = lean_unsigned_to_nat(271u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -68497,7 +68577,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_forInMacro_x27_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(242u); +x_1 = lean_unsigned_to_nat(271u); x_2 = lean_unsigned_to_nat(132u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -68525,7 +68605,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_forInMacro_x27_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(242u); +x_1 = lean_unsigned_to_nat(271u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -68537,7 +68617,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_forInMacro_x27_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(242u); +x_1 = lean_unsigned_to_nat(271u); x_2 = lean_unsigned_to_nat(36u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -69184,7 +69264,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_typeOf_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(244u); +x_1 = lean_unsigned_to_nat(273u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -69196,7 +69276,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_typeOf_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(244u); +x_1 = lean_unsigned_to_nat(273u); x_2 = lean_unsigned_to_nat(95u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -69224,7 +69304,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_typeOf_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(244u); +x_1 = lean_unsigned_to_nat(273u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -69236,7 +69316,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_typeOf_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(244u); +x_1 = lean_unsigned_to_nat(273u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -69959,7 +70039,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_ensureTypeOf_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(245u); +x_1 = lean_unsigned_to_nat(274u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -69971,7 +70051,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_ensureTypeOf_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(245u); +x_1 = lean_unsigned_to_nat(274u); x_2 = lean_unsigned_to_nat(126u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -69999,7 +70079,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_ensureTypeOf_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(245u); +x_1 = lean_unsigned_to_nat(274u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -70011,7 +70091,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_ensureTypeOf_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(245u); +x_1 = lean_unsigned_to_nat(274u); x_2 = lean_unsigned_to_nat(37u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -70717,7 +70797,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_ensureExpectedType_dec _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(246u); +x_1 = lean_unsigned_to_nat(275u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -70729,7 +70809,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_ensureExpectedType_dec _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(246u); +x_1 = lean_unsigned_to_nat(275u); x_2 = lean_unsigned_to_nat(118u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -70757,7 +70837,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_ensureExpectedType_dec _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(246u); +x_1 = lean_unsigned_to_nat(275u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -70769,7 +70849,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_ensureExpectedType_dec _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(246u); +x_1 = lean_unsigned_to_nat(275u); x_2 = lean_unsigned_to_nat(43u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -71428,7 +71508,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_noImplicitLambda_declR _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(247u); +x_1 = lean_unsigned_to_nat(276u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -71440,7 +71520,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_noImplicitLambda_declR _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(247u); +x_1 = lean_unsigned_to_nat(276u); x_2 = lean_unsigned_to_nat(106u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -71468,7 +71548,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_noImplicitLambda_declR _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(247u); +x_1 = lean_unsigned_to_nat(276u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -71480,7 +71560,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_noImplicitLambda_declR _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(247u); +x_1 = lean_unsigned_to_nat(276u); x_2 = lean_unsigned_to_nat(41u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -72418,7 +72498,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_letMVar_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(249u); +x_1 = lean_unsigned_to_nat(278u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -72430,7 +72510,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_letMVar_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(249u); +x_1 = lean_unsigned_to_nat(278u); x_2 = lean_unsigned_to_nat(140u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -72458,7 +72538,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_letMVar_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(249u); +x_1 = lean_unsigned_to_nat(278u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -72470,7 +72550,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_letMVar_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(249u); +x_1 = lean_unsigned_to_nat(278u); x_2 = lean_unsigned_to_nat(32u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -73362,7 +73442,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_waitIfTypeMVar_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(250u); +x_1 = lean_unsigned_to_nat(279u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -73374,7 +73454,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_waitIfTypeMVar_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(250u); +x_1 = lean_unsigned_to_nat(279u); x_2 = lean_unsigned_to_nat(125u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -73402,7 +73482,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_waitIfTypeMVar_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(250u); +x_1 = lean_unsigned_to_nat(279u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -73414,7 +73494,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_waitIfTypeMVar_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(250u); +x_1 = lean_unsigned_to_nat(279u); x_2 = lean_unsigned_to_nat(39u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -74188,7 +74268,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_waitIfTypeContainsMVar _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(251u); +x_1 = lean_unsigned_to_nat(280u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -74200,7 +74280,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_waitIfTypeContainsMVar _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(251u); +x_1 = lean_unsigned_to_nat(280u); x_2 = lean_unsigned_to_nat(134u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -74228,7 +74308,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_waitIfTypeContainsMVar _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(251u); +x_1 = lean_unsigned_to_nat(280u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -74240,7 +74320,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_waitIfTypeContainsMVar _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(251u); +x_1 = lean_unsigned_to_nat(280u); x_2 = lean_unsigned_to_nat(47u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -74954,7 +75034,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_waitIfContainsMVar_dec _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(252u); +x_1 = lean_unsigned_to_nat(281u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -74966,7 +75046,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_waitIfContainsMVar_dec _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(252u); +x_1 = lean_unsigned_to_nat(281u); x_2 = lean_unsigned_to_nat(129u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -74994,7 +75074,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_waitIfContainsMVar_dec _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(252u); +x_1 = lean_unsigned_to_nat(281u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -75006,7 +75086,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_waitIfContainsMVar_dec _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(252u); +x_1 = lean_unsigned_to_nat(281u); x_2 = lean_unsigned_to_nat(43u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -75715,7 +75795,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_defaultOrOfNonempty_de _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(254u); +x_1 = lean_unsigned_to_nat(283u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -75727,7 +75807,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_defaultOrOfNonempty_de _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(254u); +x_1 = lean_unsigned_to_nat(283u); x_2 = lean_unsigned_to_nat(111u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -75755,7 +75835,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_defaultOrOfNonempty_de _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(254u); +x_1 = lean_unsigned_to_nat(283u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -75767,7 +75847,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_defaultOrOfNonempty_de _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(254u); +x_1 = lean_unsigned_to_nat(283u); x_2 = lean_unsigned_to_nat(44u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -77101,7 +77181,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_app_declRange___closed _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(265u); +x_1 = lean_unsigned_to_nat(294u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -77113,7 +77193,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_app_declRange___closed _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(265u); +x_1 = lean_unsigned_to_nat(294u); x_2 = lean_unsigned_to_nat(84u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -77141,7 +77221,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_app_declRange___closed _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(265u); +x_1 = lean_unsigned_to_nat(294u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -77153,7 +77233,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_app_declRange___closed _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(265u); +x_1 = lean_unsigned_to_nat(294u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -78143,7 +78223,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_proj_declRange___close _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(267u); +x_1 = lean_unsigned_to_nat(296u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -78155,7 +78235,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_proj_declRange___close _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(267u); +x_1 = lean_unsigned_to_nat(296u); x_2 = lean_unsigned_to_nat(121u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -78183,7 +78263,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_proj_declRange___close _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(267u); +x_1 = lean_unsigned_to_nat(296u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -78195,7 +78275,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_proj_declRange___close _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(267u); +x_1 = lean_unsigned_to_nat(296u); x_2 = lean_unsigned_to_nat(29u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -78688,7 +78768,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_completion_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(268u); +x_1 = lean_unsigned_to_nat(297u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -78700,7 +78780,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_completion_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(268u); +x_1 = lean_unsigned_to_nat(297u); x_2 = lean_unsigned_to_nat(77u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -78728,7 +78808,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_completion_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(268u); +x_1 = lean_unsigned_to_nat(297u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -78740,7 +78820,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_completion_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(268u); +x_1 = lean_unsigned_to_nat(297u); x_2 = lean_unsigned_to_nat(35u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -79171,7 +79251,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_arrow_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(269u); +x_1 = lean_unsigned_to_nat(298u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -79183,7 +79263,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_arrow_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(269u); +x_1 = lean_unsigned_to_nat(298u); x_2 = lean_unsigned_to_nat(112u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -79211,7 +79291,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_arrow_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(269u); +x_1 = lean_unsigned_to_nat(298u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -79223,7 +79303,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_arrow_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(269u); +x_1 = lean_unsigned_to_nat(298u); x_2 = lean_unsigned_to_nat(30u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -79958,7 +80038,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_explicitUniv_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(275u); +x_1 = lean_unsigned_to_nat(304u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -79970,7 +80050,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_explicitUniv_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(275u); +x_1 = lean_unsigned_to_nat(304u); x_2 = lean_unsigned_to_nat(211u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -79998,7 +80078,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_explicitUniv_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(275u); +x_1 = lean_unsigned_to_nat(304u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -80010,7 +80090,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_explicitUniv_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(275u); +x_1 = lean_unsigned_to_nat(304u); x_2 = lean_unsigned_to_nat(37u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -80743,7 +80823,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_namedPattern_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(276u); +x_1 = lean_unsigned_to_nat(305u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -80755,7 +80835,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_namedPattern_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(276u); +x_1 = lean_unsigned_to_nat(305u); x_2 = lean_unsigned_to_nat(233u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -80783,7 +80863,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_namedPattern_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(276u); +x_1 = lean_unsigned_to_nat(305u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -80795,7 +80875,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_namedPattern_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(276u); +x_1 = lean_unsigned_to_nat(305u); x_2 = lean_unsigned_to_nat(37u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -81478,7 +81558,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_pipeProj_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(278u); +x_1 = lean_unsigned_to_nat(307u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -81490,7 +81570,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_pipeProj_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(278u); +x_1 = lean_unsigned_to_nat(307u); x_2 = lean_unsigned_to_nat(132u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -81518,7 +81598,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_pipeProj_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(278u); +x_1 = lean_unsigned_to_nat(307u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -81530,7 +81610,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_pipeProj_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(278u); +x_1 = lean_unsigned_to_nat(307u); x_2 = lean_unsigned_to_nat(33u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -81980,7 +82060,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_pipeCompletion_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(279u); +x_1 = lean_unsigned_to_nat(308u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -81992,7 +82072,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_pipeCompletion_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(279u); +x_1 = lean_unsigned_to_nat(308u); x_2 = lean_unsigned_to_nat(73u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -82020,7 +82100,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_pipeCompletion_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(279u); +x_1 = lean_unsigned_to_nat(308u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -82032,7 +82112,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_pipeCompletion_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(279u); +x_1 = lean_unsigned_to_nat(308u); x_2 = lean_unsigned_to_nat(39u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -82545,7 +82625,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_subst_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(281u); +x_1 = lean_unsigned_to_nat(310u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -82557,7 +82637,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_subst_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(281u); +x_1 = lean_unsigned_to_nat(310u); x_2 = lean_unsigned_to_nat(90u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -82585,7 +82665,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_subst_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(281u); +x_1 = lean_unsigned_to_nat(310u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -82597,7 +82677,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_subst_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(281u); +x_1 = lean_unsigned_to_nat(310u); x_2 = lean_unsigned_to_nat(30u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -83307,7 +83387,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_funBinder_quot_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(284u); +x_1 = lean_unsigned_to_nat(313u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -83319,7 +83399,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_funBinder_quot_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(284u); +x_1 = lean_unsigned_to_nat(313u); x_2 = lean_unsigned_to_nat(144u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -83347,7 +83427,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_funBinder_quot_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(284u); +x_1 = lean_unsigned_to_nat(313u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -83359,7 +83439,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_funBinder_quot_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(284u); +x_1 = lean_unsigned_to_nat(313u); x_2 = lean_unsigned_to_nat(39u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -84158,7 +84238,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_bracketedBinder_quot_d _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(286u); +x_1 = lean_unsigned_to_nat(315u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -84170,7 +84250,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_bracketedBinder_quot_d _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(286u); +x_1 = lean_unsigned_to_nat(315u); x_2 = lean_unsigned_to_nat(169u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -84198,7 +84278,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_bracketedBinder_quot_d _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(286u); +x_1 = lean_unsigned_to_nat(315u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -84210,7 +84290,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_bracketedBinder_quot_d _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(286u); +x_1 = lean_unsigned_to_nat(315u); x_2 = lean_unsigned_to_nat(45u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -84983,7 +85063,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_matchDiscr_quot_declRa _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(287u); +x_1 = lean_unsigned_to_nat(316u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -84995,7 +85075,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_matchDiscr_quot_declRa _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(287u); +x_1 = lean_unsigned_to_nat(316u); x_2 = lean_unsigned_to_nat(148u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -85023,7 +85103,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_matchDiscr_quot_declRa _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(287u); +x_1 = lean_unsigned_to_nat(316u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -85035,7 +85115,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_matchDiscr_quot_declRa _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(287u); +x_1 = lean_unsigned_to_nat(316u); x_2 = lean_unsigned_to_nat(40u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -85806,7 +85886,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_attr_quot_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(288u); +x_1 = lean_unsigned_to_nat(317u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -85818,7 +85898,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_attr_quot_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(288u); +x_1 = lean_unsigned_to_nat(317u); x_2 = lean_unsigned_to_nat(106u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -85846,7 +85926,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_attr_quot_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(288u); +x_1 = lean_unsigned_to_nat(317u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -85858,7 +85938,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_attr_quot_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(288u); +x_1 = lean_unsigned_to_nat(317u); x_2 = lean_unsigned_to_nat(34u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -86549,7 +86629,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_panic_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(290u); +x_1 = lean_unsigned_to_nat(319u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -86561,7 +86641,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_panic_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(290u); +x_1 = lean_unsigned_to_nat(319u); x_2 = lean_unsigned_to_nat(87u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -86589,7 +86669,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_panic_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(290u); +x_1 = lean_unsigned_to_nat(319u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -86601,7 +86681,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_panic_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(290u); +x_1 = lean_unsigned_to_nat(319u); x_2 = lean_unsigned_to_nat(30u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -87156,7 +87236,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_unreachable_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(291u); +x_1 = lean_unsigned_to_nat(320u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -87168,7 +87248,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_unreachable_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(291u); +x_1 = lean_unsigned_to_nat(320u); x_2 = lean_unsigned_to_nat(78u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -87196,7 +87276,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_unreachable_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(291u); +x_1 = lean_unsigned_to_nat(320u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -87208,7 +87288,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_unreachable_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(291u); +x_1 = lean_unsigned_to_nat(320u); x_2 = lean_unsigned_to_nat(36u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -88045,7 +88125,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_dbgTrace_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(292u); +x_1 = lean_unsigned_to_nat(321u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -88057,7 +88137,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_dbgTrace_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(292u); +x_1 = lean_unsigned_to_nat(321u); x_2 = lean_unsigned_to_nat(166u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -88085,7 +88165,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_dbgTrace_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(292u); +x_1 = lean_unsigned_to_nat(321u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -88097,7 +88177,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_dbgTrace_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(292u); +x_1 = lean_unsigned_to_nat(321u); x_2 = lean_unsigned_to_nat(33u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -89012,7 +89092,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_assert_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(293u); +x_1 = lean_unsigned_to_nat(322u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -89024,7 +89104,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_assert_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(293u); +x_1 = lean_unsigned_to_nat(322u); x_2 = lean_unsigned_to_nat(130u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -89052,7 +89132,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_assert_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(293u); +x_1 = lean_unsigned_to_nat(322u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -89064,7 +89144,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_assert_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(293u); +x_1 = lean_unsigned_to_nat(322u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -90253,7 +90333,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_stateRefT_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(301u); +x_1 = lean_unsigned_to_nat(330u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -90265,7 +90345,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_stateRefT_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(301u); +x_1 = lean_unsigned_to_nat(330u); x_2 = lean_unsigned_to_nat(94u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -90293,7 +90373,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_stateRefT_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(301u); +x_1 = lean_unsigned_to_nat(330u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -90305,7 +90385,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_stateRefT_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(301u); +x_1 = lean_unsigned_to_nat(330u); x_2 = lean_unsigned_to_nat(34u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -91479,7 +91559,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_dynamicQuot_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(303u); +x_1 = lean_unsigned_to_nat(332u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -91491,7 +91571,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_dynamicQuot_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(303u); +x_1 = lean_unsigned_to_nat(332u); x_2 = lean_unsigned_to_nat(116u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -91519,7 +91599,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_dynamicQuot_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(303u); +x_1 = lean_unsigned_to_nat(332u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -91531,7 +91611,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_dynamicQuot_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(303u); +x_1 = lean_unsigned_to_nat(332u); x_2 = lean_unsigned_to_nat(36u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -92245,7 +92325,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_dotIdent_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(305u); +x_1 = lean_unsigned_to_nat(334u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -92257,7 +92337,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_dotIdent_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(305u); +x_1 = lean_unsigned_to_nat(334u); x_2 = lean_unsigned_to_nat(86u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -92285,7 +92365,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_dotIdent_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(305u); +x_1 = lean_unsigned_to_nat(334u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -92297,7 +92377,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Term_dotIdent_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(305u); +x_1 = lean_unsigned_to_nat(334u); x_2 = lean_unsigned_to_nat(33u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -92998,7 +93078,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Tactic_quot_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(309u); +x_1 = lean_unsigned_to_nat(338u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -93010,7 +93090,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Tactic_quot_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(309u); +x_1 = lean_unsigned_to_nat(338u); x_2 = lean_unsigned_to_nat(124u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -93038,7 +93118,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Tactic_quot_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(309u); +x_1 = lean_unsigned_to_nat(338u); x_2 = lean_unsigned_to_nat(35u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -93050,7 +93130,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Tactic_quot_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(309u); +x_1 = lean_unsigned_to_nat(338u); x_2 = lean_unsigned_to_nat(46u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -93743,7 +93823,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Tactic_quotSeq_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(310u); +x_1 = lean_unsigned_to_nat(339u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -93755,7 +93835,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Tactic_quotSeq_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(310u); +x_1 = lean_unsigned_to_nat(339u); x_2 = lean_unsigned_to_nat(113u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -93783,7 +93863,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Tactic_quotSeq_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(310u); +x_1 = lean_unsigned_to_nat(339u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -93795,7 +93875,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Tactic_quotSeq_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(310u); +x_1 = lean_unsigned_to_nat(339u); x_2 = lean_unsigned_to_nat(39u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -94680,7 +94760,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Level_quot_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(312u); +x_1 = lean_unsigned_to_nat(341u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -94692,7 +94772,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Level_quot_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(312u); +x_1 = lean_unsigned_to_nat(341u); x_2 = lean_unsigned_to_nat(109u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -94720,7 +94800,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Level_quot_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(312u); +x_1 = lean_unsigned_to_nat(341u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -94732,7 +94812,7 @@ static lean_object* _init_l___regBuiltin_Lean_Parser_Level_quot_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(312u); +x_1 = lean_unsigned_to_nat(341u); x_2 = lean_unsigned_to_nat(35u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -102244,6 +102324,11 @@ lean_mark_persistent(l_Lean_Parser_Term_let); res = l___regBuiltin_Lean_Parser_Term_let(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l___regBuiltin_Lean_Parser_Term_let_docString___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_let_docString___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_let_docString___closed__1); +res = l___regBuiltin_Lean_Parser_Term_let_docString(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l___regBuiltin_Lean_Parser_Term_let_declRange___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_let_declRange___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_let_declRange___closed__1); l___regBuiltin_Lean_Parser_Term_let_declRange___closed__2 = _init_l___regBuiltin_Lean_Parser_Term_let_declRange___closed__2(); @@ -102528,6 +102613,11 @@ lean_mark_persistent(l_Lean_Parser_Term_let__fun); res = l___regBuiltin_Lean_Parser_Term_let__fun(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l___regBuiltin_Lean_Parser_Term_let__fun_docString___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_let__fun_docString___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_let__fun_docString___closed__1); +res = l___regBuiltin_Lean_Parser_Term_let__fun_docString(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l___regBuiltin_Lean_Parser_Term_let__fun_declRange___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_let__fun_declRange___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_let__fun_declRange___closed__1); l___regBuiltin_Lean_Parser_Term_let__fun_declRange___closed__2 = _init_l___regBuiltin_Lean_Parser_Term_let__fun_declRange___closed__2(); @@ -102638,6 +102728,11 @@ lean_mark_persistent(l_Lean_Parser_Term_let__delayed); res = l___regBuiltin_Lean_Parser_Term_let__delayed(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l___regBuiltin_Lean_Parser_Term_let__delayed_docString___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_let__delayed_docString___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_let__delayed_docString___closed__1); +res = l___regBuiltin_Lean_Parser_Term_let__delayed_docString(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l___regBuiltin_Lean_Parser_Term_let__delayed_declRange___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_let__delayed_declRange___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_let__delayed_declRange___closed__1); l___regBuiltin_Lean_Parser_Term_let__delayed_declRange___closed__2 = _init_l___regBuiltin_Lean_Parser_Term_let__delayed_declRange___closed__2(); @@ -102740,6 +102835,11 @@ lean_mark_persistent(l_Lean_Parser_Term_let__tmp); res = l___regBuiltin_Lean_Parser_Term_let__tmp(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l___regBuiltin_Lean_Parser_Term_let__tmp_docString___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_let__tmp_docString___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_let__tmp_docString___closed__1); +res = l___regBuiltin_Lean_Parser_Term_let__tmp_docString(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l___regBuiltin_Lean_Parser_Term_let__tmp_declRange___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_let__tmp_declRange___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_let__tmp_declRange___closed__1); l___regBuiltin_Lean_Parser_Term_let__tmp_declRange___closed__2 = _init_l___regBuiltin_Lean_Parser_Term_let__tmp_declRange___closed__2();