chore: update stage0

This commit is contained in:
Leonardo de Moura 2022-04-01 11:29:09 -07:00
parent fdd1cb5751
commit f45712ce74
37 changed files with 3335 additions and 8497 deletions

View file

@ -524,7 +524,7 @@ def decodeNatLitVal? (s : String) : Option Nat :=
else if c.isDigit then decodeDecimalLitAux s 0 0
else none
def isLitCore? (litKind : SyntaxNodeKind) (stx : Syntax) : Option String :=
def isLit? (litKind : SyntaxNodeKind) (stx : Syntax) : Option String :=
match stx with
| Syntax.node _ k args =>
if k == litKind && args.size == 1 then
@ -535,18 +535,6 @@ def isLitCore? (litKind : SyntaxNodeKind) (stx : Syntax) : Option String :=
none
| _ => none
def isLit? (litKind : SyntaxNodeKind) (stx : Syntax) : Option String := -- TODO remove staging hack
if litKind == `num || litKind == `numLit then
isLitCore? `num stx <|> isLitCore? `numLit stx
else if litKind == `str || litKind == `strLit then
isLitCore? `str stx <|> isLitCore? `strLit stx
else if litKind == `char || litKind == `charLit then
isLitCore? `char stx <|> isLitCore? `charLit stx
else if litKind == `name || litKind == `nameLit then
isLitCore? `name stx <|> isLitCore? `nameLit stx
else
isLitCore? litKind stx
private def isNatLitAux (litKind : SyntaxNodeKind) (stx : Syntax) : Option Nat :=
match isLit? litKind stx with
| some val => decodeNatLitVal? val

View file

@ -1873,16 +1873,8 @@ def setKind (stx : Syntax) (k : SyntaxNodeKind) : Syntax :=
| Syntax.node info _ args => Syntax.node info k args
| _ => stx
def isOfKind (stx : Syntax) (k : SyntaxNodeKind) : Bool := -- TODO remove staging hack
cond (or (beq k `num) (beq k `numLit))
(or (beq stx.getKind `num) (beq stx.getKind `numLit))
(cond (or (beq k `str) (beq k `strLit))
(or (beq stx.getKind `str) (beq stx.getKind `strLit))
(cond (or (beq k `char) (beq k `charLit))
(or (beq stx.getKind `char) (beq stx.getKind `charLit))
(cond (or (beq k `name) (beq k `nameLit))
(or (beq stx.getKind `name) (beq stx.getKind `nameLit))
(beq stx.getKind k))))
def isOfKind (stx : Syntax) (k : SyntaxNodeKind) : Bool :=
beq stx.getKind k
def getArg (stx : Syntax) (i : Nat) : Syntax :=
match stx with
@ -1924,24 +1916,13 @@ def matchesNull (stx : Syntax) (n : Nat) : Bool :=
def matchesIdent (stx : Syntax) (id : Name) : Bool :=
and stx.isIdent (beq stx.getId id)
def matchesLitCore (stx : Syntax) (k : SyntaxNodeKind) (val : String) : Bool :=
def matchesLit (stx : Syntax) (k : SyntaxNodeKind) (val : String) : Bool :=
match stx with
| Syntax.node _ k' args => and (beq k k') (match args.getD 0 Syntax.missing with
| Syntax.atom _ val' => beq val val'
| _ => false)
| _ => false
def matchesLit (stx : Syntax) (k : SyntaxNodeKind) (val : String) : Bool := -- TODO remove staging hack
cond (or (beq k `num) (beq k `numLit))
(or (matchesLitCore stx `num val) (matchesLitCore stx `numLit val))
(cond (or (beq k `str) (beq k `strLit))
(or (matchesLitCore stx `str val) (matchesLitCore stx `strLit val))
(cond (or (beq k `char) (beq k `charLit))
(or (matchesLitCore stx `char val) (matchesLitCore stx `charLit val))
(cond (or (beq k `name) (beq k `nameLit))
(or (matchesLitCore stx `name val) (matchesLitCore stx `nameLit val))
(matchesLitCore stx k val))))
def setArgs (stx : Syntax) (args : Array Syntax) : Syntax :=
match stx with
| node info k _ => node info k args

View file

@ -162,13 +162,11 @@ private def mkTacticMVar (type : Expr) (tacticCode : Syntax) : TermElabM Expr :=
@[builtinTermElab cdot] def elabBadCDot : TermElab := fun stx _ =>
throwError "invalid occurrence of `·` notation, it must be surrounded by parentheses (e.g. `(· + 1)`)"
@[builtinTermElab strLit] def elabStrLit : TermElab := fun stx _ => do
@[builtinTermElab str] def elabStrLit : TermElab := fun stx _ => do
match stx.isStrLit? with
| some val => pure $ mkStrLit val
| none => throwIllFormedSyntax
@[builtinTermElab str] def elabStrLit' : TermElab := elabStrLit -- TODO remove staging hack
private def mkFreshTypeMVarFor (expectedType? : Option Expr) : TermElabM Expr := do
let typeMVar ← mkFreshTypeMVar MetavarKind.synthetic
match expectedType? with
@ -176,7 +174,7 @@ private def mkFreshTypeMVarFor (expectedType? : Option Expr) : TermElabM Expr :=
| _ => pure ()
return typeMVar
@[builtinTermElab numLit] def elabNumLit : TermElab := fun stx expectedType? => do
@[builtinTermElab num] def elabNumLit : TermElab := fun stx expectedType? => do
let val ← match stx.isNatLit? with
| some val => pure val
| none => throwIllFormedSyntax
@ -187,14 +185,12 @@ private def mkFreshTypeMVarFor (expectedType? : Option Expr) : TermElabM Expr :=
registerMVarErrorImplicitArgInfo mvar.mvarId! stx r
return r
@[builtinTermElab num] def elabNumLit' : TermElab := elabNumLit -- TODO remove staging hack
@[builtinTermElab rawNatLit] def elabRawNatLit : TermElab := fun stx expectedType? => do
match stx[1].isNatLit? with
| some val => return mkRawNatLit val
| none => throwIllFormedSyntax
@[builtinTermElab scientificLit]
@[builtinTermElab scientific]
def elabScientificLit : TermElab := fun stx expectedType? => do
match stx.isScientificLit? with
| none => throwIllFormedSyntax
@ -206,23 +202,17 @@ def elabScientificLit : TermElab := fun stx expectedType? => do
registerMVarErrorImplicitArgInfo mvar.mvarId! stx r
return r
@[builtinTermElab scientific] def elabScientificLit' : TermElab := elabScientificLit -- TODO remove staging hack
@[builtinTermElab charLit] def elabCharLit : TermElab := fun stx _ => do
@[builtinTermElab char] def elabCharLit : TermElab := fun stx _ => do
match stx.isCharLit? with
| some val => return mkApp (Lean.mkConst ``Char.ofNat) (mkRawNatLit val.toNat)
| none => throwIllFormedSyntax
@[builtinTermElab char] def elabCharLit' : TermElab := elabCharLit -- TODO remove staging hack
/- A literal of type `Name`. -/
@[builtinTermElab quotedName] def elabQuotedName : TermElab := fun stx _ =>
match stx[0].isNameLit? with
| some val => pure $ toExpr val
| none => throwIllFormedSyntax
@[builtinTermElab name] def elabQuotedName' : TermElab := elabQuotedName -- TODO remove staging hack
/--
A resolved name literal. Evaluates to the full name of the given constant if
existent in the current context, or else fails. -/

View file

@ -65,7 +65,7 @@ partial def elabLevel (stx : Syntax) : LevelElabM Level := withRef stx do
return mkLevelIMax' (← elabLevel stx) lvl
else if kind == ``Lean.Parser.Level.hole then
mkFreshLevelMVar
else if kind == numLitKind || kind == `num || kind == `numLit then -- TODO remove staging hack
else if kind == numLitKind then
match stx.isNatLit? with
| some val => checkUniverseOffset val; return Level.ofNat val
| none => throwIllFormedSyntax

View file

@ -209,13 +209,13 @@ partial def collect (stx : Syntax) : M Syntax := withRef stx <| withFreshMacroSc
return stx.setArg 2 lhs |>.setArg 3 rhs
else if k == ``Lean.Parser.Term.inaccessible then
return stx
else if k == strLitKind || k == `str || k == `strLit then -- TODO remove staging hack
else if k == strLitKind then
return stx
else if k == numLitKind || k == `num || k == `numLit then -- TODO remove staging hack
else if k == numLitKind then
return stx
else if k == scientificLitKind then
return stx
else if k == charLitKind || k == `char || k == `charLit then -- TODO remove staging hack
else if k == charLitKind then
return stx
else if k == ``Lean.Parser.Term.quotedName then
/- Quoted names have an elaboration function associated with them, and they will not be macro expanded.

View file

@ -339,22 +339,8 @@ def resolveSyntaxKind (k : Name) : CommandElabM Name := do
let stx' ← `($[$doc?:docComment]? def $declName:ident : Lean.ParserDescr := ParserDescr.nodeWithAntiquot $(quote (toString declName.getId)) $(quote stxNodeKind) $val)
withMacroExpansion stx stx' <| elabCommand stx'
-- TODO remove staging hack
def normKindCore (k : SyntaxNodeKind) : SyntaxNodeKind :=
if k == `num || k == `numLit then numLitKind
else if k == `char || k == `charLit then charLitKind
else if k == `str || k == `strLit then strLitKind
else if k == `name || k == `nameLit then nameLitKind
else k
-- TODO remove staging hack
def normKind (k : SyntaxNodeKind) : SyntaxNodeKind :=
match k with
| Name.str s "antiquot" .. => normKindCore s ++ `antiquot
| _ => k
def checkRuleKind (given expected : SyntaxNodeKind) : Bool :=
normKind given == normKind expected || normKind given == normKind (expected ++ `antiquot)
given == expected || given == expected ++ `antiquot
def inferMacroRulesAltKind : Syntax → CommandElabM SyntaxNodeKind
| `(matchAltExpr| | $pat:term => $rhs) => do

View file

@ -446,9 +446,9 @@ protected partial def Result.quote (r : Result) (prec : Nat) : Syntax :=
if prec > 0 then Unhygienic.run `(level| ( $s )) else s
match r with
| Result.leaf n => Unhygienic.run `(level| $(mkIdent n):ident)
| Result.num k => Unhygienic.run `(level| $(quote k):numLit)
| Result.num k => Unhygienic.run `(level| $(quote k):num)
| Result.offset r 0 => Result.quote r prec
| Result.offset r (k+1) => addParen <| Unhygienic.run `(level| $(Result.quote r 65) + $(quote (k+1)):numLit)
| Result.offset r (k+1) => addParen <| Unhygienic.run `(level| $(Result.quote r 65) + $(quote (k+1)):num)
| Result.maxNode rs => addParen <| Unhygienic.run `(level| max $(rs.toArray.map (Result.quote · max_prec))*)
| Result.imaxNode rs => addParen <| Unhygienic.run `(level| imax $(rs.toArray.map (Result.quote · max_prec))*)

View file

@ -60,10 +60,10 @@ def mkAntiquot.parenthesizer (name : String) (kind : Option SyntaxNodeKind) (ano
-- The parenthesizer auto-generated these instances correctly, but tagged them with the wrong kind, since the actual kind
-- (e.g. `ident`) is not equal to the parser name `Lean.Parser.Term.ident`.
@[builtinParenthesizer ident] def ident.parenthesizer : Parenthesizer := Parser.Term.ident.parenthesizer
@[builtinParenthesizer numLit] def numLit.parenthesizer : Parenthesizer := Parser.Term.num.parenthesizer
@[builtinParenthesizer scientificLit] def scientificLit.parenthesizer : Parenthesizer := Parser.Term.scientific.parenthesizer
@[builtinParenthesizer charLit] def charLit.parenthesizer : Parenthesizer := Parser.Term.char.parenthesizer
@[builtinParenthesizer strLit] def strLit.parenthesizer : Parenthesizer := Parser.Term.str.parenthesizer
@[builtinParenthesizer num] def numLit.parenthesizer : Parenthesizer := Parser.Term.num.parenthesizer
@[builtinParenthesizer scientific] def scientificLit.parenthesizer : Parenthesizer := Parser.Term.scientific.parenthesizer
@[builtinParenthesizer char] def charLit.parenthesizer : Parenthesizer := Parser.Term.char.parenthesizer
@[builtinParenthesizer str] def strLit.parenthesizer : Parenthesizer := Parser.Term.str.parenthesizer
open Lean.Parser
@ -91,10 +91,10 @@ def mkAntiquot.formatter (name : String) (kind : Option SyntaxNodeKind) (anonymo
Parser.mkAntiquot.formatter name kind anonymous
@[builtinFormatter ident] def ident.formatter : Formatter := Parser.Term.ident.formatter
@[builtinFormatter numLit] def numLit.formatter : Formatter := Parser.Term.num.formatter
@[builtinFormatter scientificLit] def scientificLit.formatter : Formatter := Parser.Term.scientific.formatter
@[builtinFormatter charLit] def charLit.formatter : Formatter := Parser.Term.char.formatter
@[builtinFormatter strLit] def strLit.formatter : Formatter := Parser.Term.str.formatter
@[builtinFormatter num] def numLit.formatter : Formatter := Parser.Term.num.formatter
@[builtinFormatter scientific] def scientificLit.formatter : Formatter := Parser.Term.scientific.formatter
@[builtinFormatter char] def charLit.formatter : Formatter := Parser.Term.char.formatter
@[builtinFormatter str] def strLit.formatter : Formatter := Parser.Term.str.formatter
open Lean.Parser

View file

@ -1725,14 +1725,7 @@ instance : Coe String Parser := ⟨fun s => symbol s ⟩
produces the syntax tree for `$e`. -/
def mkAntiquot (name : String) (kind : Option SyntaxNodeKind) (anonymous := true) : Parser :=
let kind := (kind.getD Name.anonymous) ++ `antiquot
-- TODO remove staging hack
let kindP :=
if name == "strLit" then nonReservedSymbol "strLit" <|> nonReservedSymbol "str"
else if name == "numLit" then nonReservedSymbol "numLit" <|> nonReservedSymbol "num"
else if name == "nameLit" then nonReservedSymbol "nameLit" <|> nonReservedSymbol "name"
else if name == "charLit" then nonReservedSymbol "charLit" <|> nonReservedSymbol "char"
else nonReservedSymbol name
let nameP := node `antiquotName $ checkNoWsBefore ("no space before ':" ++ name ++ "'") >> symbol ":" >> kindP
let nameP := node `antiquotName $ checkNoWsBefore ("no space before ':" ++ name ++ "'") >> symbol ":" >> nonReservedSymbol name
-- if parsing the kind fails and `anonymous` is true, check that we're not ignoring a different
-- antiquotation kind via `noImmediateColon`
let nameP := if anonymous then nameP <|> checkNoImmediateColon >> pushNone else nameP

View file

@ -32,12 +32,6 @@ builtin_initialize
registerBuiltinNodeKind scientificLitKind
registerBuiltinNodeKind charLitKind
registerBuiltinNodeKind nameLitKind
-- TODO remove staging hack
registerBuiltinNodeKind `str
registerBuiltinNodeKind `num
registerBuiltinNodeKind `scientific
registerBuiltinNodeKind `char
registerBuiltinNodeKind `name
builtin_initialize builtinParserCategoriesRef : IO.Ref ParserCategories ← IO.mkRef {}

View file

@ -25,9 +25,6 @@ def unreachIsNodeIdent {β info rawVal val preresolved} (h : IsNode (Syntax.iden
def isLitKind (k : SyntaxNodeKind) : Bool :=
k == strLitKind || k == numLitKind || k == charLitKind || k == nameLitKind || k == scientificLitKind
-- TODO remove staging hack
|| k == `str || k == `num || k == `char || k == `name || k == `scientific
|| k == `strLit || k == `numLit || k == `charLit || k == `nameLit || k == `scientificLit
namespace SyntaxNode

View file

@ -264,7 +264,6 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_Conv_conv;
static lean_object* l_Lean_Parser_Tactic_Conv_convRight___closed__2;
static lean_object* l_Lean_Parser_Tactic_Conv_convRepeat_____closed__1;
static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__9;
static lean_object* l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__3;
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Tactic_Conv_convRw_______closed__5;
static lean_object* l_Lean_Parser_Tactic_Conv_delta___closed__5;
@ -371,7 +370,6 @@ static lean_object* l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules_
static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__1;
static lean_object* l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convSkip__1___closed__3;
static lean_object* l_Lean_Parser_Tactic_Conv_simpMatch___closed__1;
static lean_object* l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__4;
static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__6;
static lean_object* l_Lean_Parser_Tactic_Conv_nestedTacticCore___closed__2;
static lean_object* l_Lean_Parser_Tactic_Conv_delta___closed__4;
@ -5275,24 +5273,6 @@ x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__3() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("numLit");
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
@ -5636,7 +5616,7 @@ else
lean_object* x_149; lean_object* x_150; uint8_t x_151;
x_149 = l_Lean_Syntax_getArg(x_144, x_143);
lean_dec(x_144);
x_150 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__4;
x_150 = l_Lean_Parser_Tactic_Conv_arg___closed__6;
lean_inc(x_149);
x_151 = l_Lean_Syntax_isOfKind(x_149, x_150);
if (x_151 == 0)
@ -8097,10 +8077,6 @@ l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tacti
lean_mark_persistent(l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__1);
l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__2 = _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__2();
lean_mark_persistent(l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__2);
l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__3 = _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__3();
lean_mark_persistent(l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__3);
l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__4 = _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__4();
lean_mark_persistent(l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__4);
l_Lean_Parser_Tactic_Conv_convSkip___closed__1 = _init_l_Lean_Parser_Tactic_Conv_convSkip___closed__1();
lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convSkip___closed__1);
l_Lean_Parser_Tactic_Conv_convSkip___closed__2 = _init_l_Lean_Parser_Tactic_Conv_convSkip___closed__2();

View file

@ -2691,7 +2691,7 @@ static lean_object* _init_l_Array___aux__Init__Data__Array__Subarray______macroR
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("numLit");
x_1 = lean_mk_string("num");
return x_1;
}
}

1300
stage0/stdlib/Init/Meta.c generated

File diff suppressed because it is too large Load diff

View file

@ -43,7 +43,6 @@ static lean_object* l_Lean_Parser_Tactic_cases___closed__6;
static lean_object* l_Lean_Parser_Tactic_first___closed__17;
LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__precMin1__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__LE__le__2___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_rawNatLit___closed__9;
static lean_object* l_Lean_Parser_Tactic_tacticRepeat_____closed__3;
LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__HOr__hOr__1___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_term___x25_____closed__1;
@ -372,7 +371,6 @@ LEAN_EXPORT lean_object* l_Lean___aux__Init__Notation______macroRules__term_x5b_
static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__24;
static lean_object* l_Lean_Parser_Tactic_tacticLet_____closed__4;
static lean_object* l_Lean_Parser_Tactic_rwRule___closed__8;
static lean_object* l_rawNatLit___closed__8;
static lean_object* l___aux__Init__Notation______macroRules__stx___x2c_x2a__1___closed__8;
static lean_object* l_term_x7b_____x3a___x2f_x2f___x7d___closed__16;
static lean_object* l___aux__Init__Notation______macroRules__term___x3e_x3d____1___closed__6;
@ -845,7 +843,6 @@ LEAN_EXPORT lean_object* l_prioLow;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_rewriteSeq;
static lean_object* l___aux__Init__Notation______macroRules__term___x2d____1___closed__5;
static lean_object* l_Lean_Parser_Tactic___aux__Init__Notation______macroRules__Lean__Parser__Tactic__letrec__1___closed__2;
static lean_object* l_Lean_Parser_Tactic_traceMessage___closed__9;
static lean_object* l_term___x3a_x3a_____closed__5;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_simpPre;
static lean_object* l_term___x3e_x3e_x3d_____closed__1;
@ -1081,7 +1078,6 @@ static lean_object* l___aux__Init__Notation______macroRules__term___x2a_x3e____1
static lean_object* l_Lean_Parser_Tactic_renameI___closed__1;
LEAN_EXPORT lean_object* l_term___x2b__;
LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__termDepIfThenElse__1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Tactic_traceMessage___closed__8;
static lean_object* l_Lean_Parser_Tactic_tacticHave_x27_____x3a_x3d_____closed__6;
static lean_object* l___aux__Init__Notation______macroRules__term_x2d____1___closed__2;
static lean_object* l_Lean_Parser_Tactic_location___closed__8;
@ -2696,7 +2692,7 @@ static lean_object* _init_l___aux__Init__Notation______macroRules__precMax__1___
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("numLit");
x_1 = lean_mk_string("num");
return x_1;
}
}
@ -5456,7 +5452,7 @@ static lean_object* _init_l___aux__Init__Notation______macroRules__stx___x2c_x2a
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("strLit");
x_1 = lean_mk_string("str");
return x_1;
}
}
@ -6903,38 +6899,20 @@ return x_2;
static lean_object* _init_l_rawNatLit___closed__5() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("num");
return x_1;
}
}
static lean_object* _init_l_rawNatLit___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_rawNatLit___closed__5;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_rawNatLit___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_rawNatLit___closed__6;
x_1 = l___aux__Init__Notation______macroRules__precMax__1___closed__2;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_rawNatLit___closed__8() {
static lean_object* _init_l_rawNatLit___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Syntax_addPrec___closed__10;
x_2 = l_rawNatLit___closed__4;
x_3 = l_rawNatLit___closed__7;
x_3 = l_rawNatLit___closed__5;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
@ -6942,13 +6920,13 @@ lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_rawNatLit___closed__9() {
static lean_object* _init_l_rawNatLit___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_rawNatLit___closed__2;
x_2 = lean_unsigned_to_nat(1022u);
x_3 = l_rawNatLit___closed__8;
x_3 = l_rawNatLit___closed__6;
x_4 = lean_alloc_ctor(3, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
@ -6960,7 +6938,7 @@ static lean_object* _init_l_rawNatLit() {
_start:
{
lean_object* x_1;
x_1 = l_rawNatLit___closed__9;
x_1 = l_rawNatLit___closed__7;
return x_1;
}
}
@ -32665,38 +32643,20 @@ return x_3;
static lean_object* _init_l_Lean_Parser_Tactic_traceMessage___closed__5() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("str");
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_traceMessage___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Parser_Tactic_traceMessage___closed__5;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_traceMessage___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Parser_Tactic_traceMessage___closed__6;
x_1 = l___aux__Init__Notation______macroRules__stx___x2c_x2a__1___closed__5;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_traceMessage___closed__8() {
static lean_object* _init_l_Lean_Parser_Tactic_traceMessage___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Syntax_addPrec___closed__10;
x_2 = l_Lean_Parser_Tactic_traceMessage___closed__4;
x_3 = l_Lean_Parser_Tactic_traceMessage___closed__7;
x_3 = l_Lean_Parser_Tactic_traceMessage___closed__5;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
@ -32704,13 +32664,13 @@ lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_traceMessage___closed__9() {
static lean_object* _init_l_Lean_Parser_Tactic_traceMessage___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Tactic_traceMessage___closed__2;
x_2 = lean_unsigned_to_nat(1022u);
x_3 = l_Lean_Parser_Tactic_traceMessage___closed__8;
x_3 = l_Lean_Parser_Tactic_traceMessage___closed__6;
x_4 = lean_alloc_ctor(3, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
@ -32722,7 +32682,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_traceMessage() {
_start:
{
lean_object* x_1;
x_1 = l_Lean_Parser_Tactic_traceMessage___closed__9;
x_1 = l_Lean_Parser_Tactic_traceMessage___closed__7;
return x_1;
}
}
@ -33327,7 +33287,7 @@ _start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l___aux__Init__Notation______macroRules__stx___x3f__1___closed__4;
x_2 = l_rawNatLit___closed__7;
x_2 = l_rawNatLit___closed__5;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
@ -43629,7 +43589,7 @@ _start:
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Syntax_addPrec___closed__10;
x_2 = l_Lean_Parser_Tactic_dbgTrace___closed__4;
x_3 = l_Lean_Parser_Tactic_traceMessage___closed__7;
x_3 = l_Lean_Parser_Tactic_traceMessage___closed__5;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
@ -44669,7 +44629,7 @@ _start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l___aux__Init__Notation______macroRules__stx___x3f__1___closed__4;
x_2 = l_Lean_Parser_Tactic_traceMessage___closed__7;
x_2 = l_Lean_Parser_Tactic_traceMessage___closed__5;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
@ -45742,10 +45702,6 @@ l_rawNatLit___closed__6 = _init_l_rawNatLit___closed__6();
lean_mark_persistent(l_rawNatLit___closed__6);
l_rawNatLit___closed__7 = _init_l_rawNatLit___closed__7();
lean_mark_persistent(l_rawNatLit___closed__7);
l_rawNatLit___closed__8 = _init_l_rawNatLit___closed__8();
lean_mark_persistent(l_rawNatLit___closed__8);
l_rawNatLit___closed__9 = _init_l_rawNatLit___closed__9();
lean_mark_persistent(l_rawNatLit___closed__9);
l_rawNatLit = _init_l_rawNatLit();
lean_mark_persistent(l_rawNatLit);
l_term___u2218_____closed__1 = _init_l_term___u2218_____closed__1();
@ -47896,10 +47852,6 @@ l_Lean_Parser_Tactic_traceMessage___closed__6 = _init_l_Lean_Parser_Tactic_trace
lean_mark_persistent(l_Lean_Parser_Tactic_traceMessage___closed__6);
l_Lean_Parser_Tactic_traceMessage___closed__7 = _init_l_Lean_Parser_Tactic_traceMessage___closed__7();
lean_mark_persistent(l_Lean_Parser_Tactic_traceMessage___closed__7);
l_Lean_Parser_Tactic_traceMessage___closed__8 = _init_l_Lean_Parser_Tactic_traceMessage___closed__8();
lean_mark_persistent(l_Lean_Parser_Tactic_traceMessage___closed__8);
l_Lean_Parser_Tactic_traceMessage___closed__9 = _init_l_Lean_Parser_Tactic_traceMessage___closed__9();
lean_mark_persistent(l_Lean_Parser_Tactic_traceMessage___closed__9);
l_Lean_Parser_Tactic_traceMessage = _init_l_Lean_Parser_Tactic_traceMessage();
lean_mark_persistent(l_Lean_Parser_Tactic_traceMessage);
l_Lean_Parser_Tactic_failIfSuccess___closed__1 = _init_l_Lean_Parser_Tactic_failIfSuccess___closed__1();

View file

@ -46,7 +46,6 @@ uint64_t lean_uint64_of_nat_mk(lean_object*);
LEAN_EXPORT lean_object* l_Functor_mapConst___default(lean_object*);
LEAN_EXPORT lean_object* l_instHAddPosString___boxed(lean_object*, lean_object*);
size_t lean_usize_of_nat_mk(lean_object*);
static lean_object* l_Lean_Syntax_isOfKind___closed__7;
LEAN_EXPORT lean_object* l_Fin_decLe___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Array_getD___rarg(lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
@ -117,7 +116,6 @@ LEAN_EXPORT lean_object* l_EStateM_run(lean_object*, lean_object*, lean_object*)
LEAN_EXPORT lean_object* l_UInt8_size;
static lean_object* l_instPowNat___closed__1;
static lean_object* l___private_Init_Prelude_0__Lean_extractMainModule___closed__1;
static lean_object* l_Lean_Syntax_isOfKind___closed__5;
LEAN_EXPORT lean_object* l_Monad_seqLeft___default(lean_object*);
LEAN_EXPORT lean_object* l_Function_comp(lean_object*, lean_object*, lean_object*);
static lean_object* l_Array_empty___closed__1;
@ -262,7 +260,6 @@ LEAN_EXPORT uint8_t l_Lean_Name_hasMacroScopes(lean_object*);
LEAN_EXPORT uint8_t l_instDecidableEqChar(uint32_t, uint32_t);
LEAN_EXPORT lean_object* l_ReaderT_instMonadReaderT___rarg___lambda__7___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_EStateM_dummyRestore___rarg___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Syntax_isOfKind___closed__2;
LEAN_EXPORT lean_object* l_Lean_Macro_instMonadQuotationMacroM___lambda__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_namedPattern___rarg(lean_object*, lean_object*);
static lean_object* l_instSubNat___closed__1;
@ -275,7 +272,6 @@ LEAN_EXPORT lean_object* l_EStateM_instMonadEStateM___lambda__3(lean_object*, le
LEAN_EXPORT lean_object* l_Array_push___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_instMonadState(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Function_const___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_matchesLitCore___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_lengthTRAux(lean_object*);
LEAN_EXPORT lean_object* l_EStateM_set___rarg___boxed(lean_object*, lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
@ -321,7 +317,6 @@ LEAN_EXPORT lean_object* l_instInhabitedForAll__1___rarg(lean_object*, lean_obje
LEAN_EXPORT lean_object* l_instLTNat;
LEAN_EXPORT lean_object* l_Applicative_map___default___rarg___lambda__1___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Macro_withIncRecDepth___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Syntax_isOfKind___closed__1;
static lean_object* l_Lean_firstFrontendMacroScope___closed__1;
LEAN_EXPORT lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
@ -370,7 +365,6 @@ static uint16_t l_instInhabitedUInt16___closed__1;
static uint32_t l_Char_utf8Size___closed__1;
LEAN_EXPORT lean_object* l_Lean_Macro_instMonadQuotationMacroM___lambda__1___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_ReaderT_bind(lean_object*, lean_object*);
static lean_object* l_Lean_Syntax_isOfKind___closed__6;
static lean_object* l_Lean_PrettyPrinter_instMonadQuotationUnexpandM___closed__1;
LEAN_EXPORT lean_object* l_Lean_Syntax_getId(lean_object*);
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_instMonadQuotationUnexpandM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -394,7 +388,6 @@ LEAN_EXPORT lean_object* l_inferInstance___rarg___boxed(lean_object*);
LEAN_EXPORT uint8_t l_instDecidableEqUInt8(uint8_t, uint8_t);
LEAN_EXPORT lean_object* l_Function_comp___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Functor_mapConst___default___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Syntax_isOfKind___closed__8;
LEAN_EXPORT lean_object* l_ReaderT_run___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Macro_instInhabitedMethods___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_instDecidableNot(lean_object*);
@ -410,7 +403,6 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_isMissing___boxed(lean_object*);
static lean_object* l_Lean_PrettyPrinter_instMonadQuotationUnexpandM___closed__2;
LEAN_EXPORT lean_object* l_Unit_unit;
LEAN_EXPORT lean_object* l___private_Init_Prelude_0__Lean_simpMacroScopesAux(lean_object*);
LEAN_EXPORT uint8_t l_Lean_Syntax_matchesLitCore(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Nat_pow___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Macro_instInhabitedMethods___lambda__4___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_EStateM_nonBacktrackable___closed__2;
@ -595,7 +587,6 @@ LEAN_EXPORT lean_object* l_Array_appendCore_loop___rarg(lean_object*, lean_objec
LEAN_EXPORT lean_object* l_instMonadReaderOf___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_getArg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_instMonadReader___rarg___boxed(lean_object*);
static lean_object* l_Lean_Syntax_isOfKind___closed__4;
LEAN_EXPORT lean_object* l_Monad_seq___default___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_liftM(lean_object*, lean_object*);
static size_t l_instInhabitedUSize___closed__1;
@ -664,7 +655,6 @@ LEAN_EXPORT lean_object* l_Array_sequenceMap_loop___rarg___boxed(lean_object*, l
LEAN_EXPORT lean_object* l_EStateM_orElse(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_cond___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_instDecidableLtPosInstLTPos(lean_object*, lean_object*);
static lean_object* l_Lean_Syntax_isOfKind___closed__3;
LEAN_EXPORT lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_ReaderT_instMonadReaderT___rarg___lambda__7(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_getModify___rarg___boxed(lean_object*, lean_object*, lean_object*);
@ -7616,298 +7606,14 @@ return x_1;
}
}
}
static lean_object* _init_l_Lean_Syntax_isOfKind___closed__1() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("numLit");
return x_1;
}
}
static lean_object* _init_l_Lean_Syntax_isOfKind___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Syntax_isOfKind___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Syntax_isOfKind___closed__3() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("strLit");
return x_1;
}
}
static lean_object* _init_l_Lean_Syntax_isOfKind___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Syntax_isOfKind___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Syntax_isOfKind___closed__5() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("charLit");
return x_1;
}
}
static lean_object* _init_l_Lean_Syntax_isOfKind___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Syntax_isOfKind___closed__5;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Syntax_isOfKind___closed__7() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("nameLit");
return x_1;
}
}
static lean_object* _init_l_Lean_Syntax_isOfKind___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Syntax_isOfKind___closed__7;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Lean_Syntax_isOfKind(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; uint8_t x_4;
x_3 = l_Lean_numLitKind___closed__2;
x_4 = lean_name_eq(x_2, x_3);
if (x_4 == 0)
{
lean_object* x_5; uint8_t x_6;
x_5 = l_Lean_Syntax_isOfKind___closed__2;
x_6 = lean_name_eq(x_2, x_5);
if (x_6 == 0)
{
lean_object* x_7; uint8_t x_8;
x_7 = l_Lean_strLitKind___closed__2;
x_8 = lean_name_eq(x_2, x_7);
if (x_8 == 0)
{
lean_object* x_9; uint8_t x_10;
x_9 = l_Lean_Syntax_isOfKind___closed__4;
x_10 = lean_name_eq(x_2, x_9);
if (x_10 == 0)
{
lean_object* x_11; uint8_t x_12;
x_11 = l_Lean_charLitKind___closed__2;
x_12 = lean_name_eq(x_2, x_11);
if (x_12 == 0)
{
lean_object* x_13; uint8_t x_14;
x_13 = l_Lean_Syntax_isOfKind___closed__6;
x_14 = lean_name_eq(x_2, x_13);
if (x_14 == 0)
{
lean_object* x_15; uint8_t x_16;
x_15 = l_Lean_nameLitKind___closed__2;
x_16 = lean_name_eq(x_2, x_15);
if (x_16 == 0)
{
lean_object* x_17; uint8_t x_18;
x_17 = l_Lean_Syntax_isOfKind___closed__8;
x_18 = lean_name_eq(x_2, x_17);
if (x_18 == 0)
{
lean_object* x_19; uint8_t x_20;
x_19 = l_Lean_Syntax_getKind(x_1);
x_20 = lean_name_eq(x_19, x_2);
lean_dec(x_19);
return x_20;
}
else
{
lean_object* x_21; uint8_t x_22;
x_21 = l_Lean_Syntax_getKind(x_1);
x_22 = lean_name_eq(x_21, x_15);
if (x_22 == 0)
{
uint8_t x_23;
x_23 = lean_name_eq(x_21, x_17);
lean_dec(x_21);
return x_23;
}
else
{
uint8_t x_24;
lean_dec(x_21);
x_24 = 1;
return x_24;
}
}
}
else
{
lean_object* x_25; uint8_t x_26;
x_25 = l_Lean_Syntax_getKind(x_1);
x_26 = lean_name_eq(x_25, x_15);
if (x_26 == 0)
{
lean_object* x_27; uint8_t x_28;
x_27 = l_Lean_Syntax_isOfKind___closed__8;
x_28 = lean_name_eq(x_25, x_27);
lean_dec(x_25);
return x_28;
}
else
{
uint8_t x_29;
lean_dec(x_25);
x_29 = 1;
return x_29;
}
}
}
else
{
lean_object* x_30; uint8_t x_31;
x_30 = l_Lean_Syntax_getKind(x_1);
x_31 = lean_name_eq(x_30, x_11);
if (x_31 == 0)
{
uint8_t x_32;
x_32 = lean_name_eq(x_30, x_13);
lean_dec(x_30);
return x_32;
}
else
{
uint8_t x_33;
lean_dec(x_30);
x_33 = 1;
return x_33;
}
}
}
else
{
lean_object* x_34; uint8_t x_35;
x_34 = l_Lean_Syntax_getKind(x_1);
x_35 = lean_name_eq(x_34, x_11);
if (x_35 == 0)
{
lean_object* x_36; uint8_t x_37;
x_36 = l_Lean_Syntax_isOfKind___closed__6;
x_37 = lean_name_eq(x_34, x_36);
lean_dec(x_34);
return x_37;
}
else
{
uint8_t x_38;
lean_dec(x_34);
x_38 = 1;
return x_38;
}
}
}
else
{
lean_object* x_39; uint8_t x_40;
x_39 = l_Lean_Syntax_getKind(x_1);
x_40 = lean_name_eq(x_39, x_7);
if (x_40 == 0)
{
uint8_t x_41;
x_41 = lean_name_eq(x_39, x_9);
lean_dec(x_39);
return x_41;
}
else
{
uint8_t x_42;
lean_dec(x_39);
x_42 = 1;
return x_42;
}
}
}
else
{
lean_object* x_43; uint8_t x_44;
x_43 = l_Lean_Syntax_getKind(x_1);
x_44 = lean_name_eq(x_43, x_7);
if (x_44 == 0)
{
lean_object* x_45; uint8_t x_46;
x_45 = l_Lean_Syntax_isOfKind___closed__4;
x_46 = lean_name_eq(x_43, x_45);
lean_dec(x_43);
return x_46;
}
else
{
uint8_t x_47;
lean_dec(x_43);
x_47 = 1;
return x_47;
}
}
}
else
{
lean_object* x_48; uint8_t x_49;
x_48 = l_Lean_Syntax_getKind(x_1);
x_49 = lean_name_eq(x_48, x_3);
if (x_49 == 0)
{
uint8_t x_50;
x_50 = lean_name_eq(x_48, x_5);
lean_dec(x_48);
return x_50;
}
else
{
uint8_t x_51;
lean_dec(x_48);
x_51 = 1;
return x_51;
}
}
}
else
{
lean_object* x_52; uint8_t x_53;
x_52 = l_Lean_Syntax_getKind(x_1);
x_53 = lean_name_eq(x_52, x_3);
if (x_53 == 0)
{
lean_object* x_54; uint8_t x_55;
x_54 = l_Lean_Syntax_isOfKind___closed__2;
x_55 = lean_name_eq(x_52, x_54);
lean_dec(x_52);
return x_55;
}
else
{
uint8_t x_56;
lean_dec(x_52);
x_56 = 1;
return x_56;
}
}
x_3 = l_Lean_Syntax_getKind(x_1);
x_4 = lean_name_eq(x_3, x_2);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Syntax_isOfKind___boxed(lean_object* x_1, lean_object* x_2) {
@ -8200,7 +7906,7 @@ x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Lean_Syntax_matchesLitCore(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
LEAN_EXPORT uint8_t l_Lean_Syntax_matchesLit(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 1)
@ -8260,214 +7966,6 @@ return x_16;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Syntax_matchesLitCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5;
x_4 = l_Lean_Syntax_matchesLitCore(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT uint8_t l_Lean_Syntax_matchesLit(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5;
x_4 = l_Lean_numLitKind___closed__2;
x_5 = lean_name_eq(x_2, x_4);
if (x_5 == 0)
{
lean_object* x_6; uint8_t x_7;
x_6 = l_Lean_Syntax_isOfKind___closed__2;
x_7 = lean_name_eq(x_2, x_6);
if (x_7 == 0)
{
lean_object* x_8; uint8_t x_9;
x_8 = l_Lean_strLitKind___closed__2;
x_9 = lean_name_eq(x_2, x_8);
if (x_9 == 0)
{
lean_object* x_10; uint8_t x_11;
x_10 = l_Lean_Syntax_isOfKind___closed__4;
x_11 = lean_name_eq(x_2, x_10);
if (x_11 == 0)
{
lean_object* x_12; uint8_t x_13;
x_12 = l_Lean_charLitKind___closed__2;
x_13 = lean_name_eq(x_2, x_12);
if (x_13 == 0)
{
lean_object* x_14; uint8_t x_15;
x_14 = l_Lean_Syntax_isOfKind___closed__6;
x_15 = lean_name_eq(x_2, x_14);
if (x_15 == 0)
{
lean_object* x_16; uint8_t x_17;
x_16 = l_Lean_nameLitKind___closed__2;
x_17 = lean_name_eq(x_2, x_16);
if (x_17 == 0)
{
lean_object* x_18; uint8_t x_19;
x_18 = l_Lean_Syntax_isOfKind___closed__8;
x_19 = lean_name_eq(x_2, x_18);
if (x_19 == 0)
{
uint8_t x_20;
x_20 = l_Lean_Syntax_matchesLitCore(x_1, x_2, x_3);
return x_20;
}
else
{
uint8_t x_21;
x_21 = l_Lean_Syntax_matchesLitCore(x_1, x_16, x_3);
if (x_21 == 0)
{
uint8_t x_22;
x_22 = l_Lean_Syntax_matchesLitCore(x_1, x_18, x_3);
return x_22;
}
else
{
uint8_t x_23;
x_23 = 1;
return x_23;
}
}
}
else
{
uint8_t x_24;
x_24 = l_Lean_Syntax_matchesLitCore(x_1, x_16, x_3);
if (x_24 == 0)
{
lean_object* x_25; uint8_t x_26;
x_25 = l_Lean_Syntax_isOfKind___closed__8;
x_26 = l_Lean_Syntax_matchesLitCore(x_1, x_25, x_3);
return x_26;
}
else
{
uint8_t x_27;
x_27 = 1;
return x_27;
}
}
}
else
{
uint8_t x_28;
x_28 = l_Lean_Syntax_matchesLitCore(x_1, x_12, x_3);
if (x_28 == 0)
{
uint8_t x_29;
x_29 = l_Lean_Syntax_matchesLitCore(x_1, x_14, x_3);
return x_29;
}
else
{
uint8_t x_30;
x_30 = 1;
return x_30;
}
}
}
else
{
uint8_t x_31;
x_31 = l_Lean_Syntax_matchesLitCore(x_1, x_12, x_3);
if (x_31 == 0)
{
lean_object* x_32; uint8_t x_33;
x_32 = l_Lean_Syntax_isOfKind___closed__6;
x_33 = l_Lean_Syntax_matchesLitCore(x_1, x_32, x_3);
return x_33;
}
else
{
uint8_t x_34;
x_34 = 1;
return x_34;
}
}
}
else
{
uint8_t x_35;
x_35 = l_Lean_Syntax_matchesLitCore(x_1, x_8, x_3);
if (x_35 == 0)
{
uint8_t x_36;
x_36 = l_Lean_Syntax_matchesLitCore(x_1, x_10, x_3);
return x_36;
}
else
{
uint8_t x_37;
x_37 = 1;
return x_37;
}
}
}
else
{
uint8_t x_38;
x_38 = l_Lean_Syntax_matchesLitCore(x_1, x_8, x_3);
if (x_38 == 0)
{
lean_object* x_39; uint8_t x_40;
x_39 = l_Lean_Syntax_isOfKind___closed__4;
x_40 = l_Lean_Syntax_matchesLitCore(x_1, x_39, x_3);
return x_40;
}
else
{
uint8_t x_41;
x_41 = 1;
return x_41;
}
}
}
else
{
uint8_t x_42;
x_42 = l_Lean_Syntax_matchesLitCore(x_1, x_4, x_3);
if (x_42 == 0)
{
uint8_t x_43;
x_43 = l_Lean_Syntax_matchesLitCore(x_1, x_6, x_3);
return x_43;
}
else
{
uint8_t x_44;
x_44 = 1;
return x_44;
}
}
}
else
{
uint8_t x_45;
x_45 = l_Lean_Syntax_matchesLitCore(x_1, x_4, x_3);
if (x_45 == 0)
{
lean_object* x_46; uint8_t x_47;
x_46 = l_Lean_Syntax_isOfKind___closed__2;
x_47 = l_Lean_Syntax_matchesLitCore(x_1, x_46, x_3);
return x_47;
}
else
{
uint8_t x_48;
x_48 = 1;
return x_48;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Syntax_matchesLit___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
@ -11453,22 +10951,6 @@ l_Lean_Syntax_getKind___closed__1 = _init_l_Lean_Syntax_getKind___closed__1();
lean_mark_persistent(l_Lean_Syntax_getKind___closed__1);
l_Lean_Syntax_getKind___closed__2 = _init_l_Lean_Syntax_getKind___closed__2();
lean_mark_persistent(l_Lean_Syntax_getKind___closed__2);
l_Lean_Syntax_isOfKind___closed__1 = _init_l_Lean_Syntax_isOfKind___closed__1();
lean_mark_persistent(l_Lean_Syntax_isOfKind___closed__1);
l_Lean_Syntax_isOfKind___closed__2 = _init_l_Lean_Syntax_isOfKind___closed__2();
lean_mark_persistent(l_Lean_Syntax_isOfKind___closed__2);
l_Lean_Syntax_isOfKind___closed__3 = _init_l_Lean_Syntax_isOfKind___closed__3();
lean_mark_persistent(l_Lean_Syntax_isOfKind___closed__3);
l_Lean_Syntax_isOfKind___closed__4 = _init_l_Lean_Syntax_isOfKind___closed__4();
lean_mark_persistent(l_Lean_Syntax_isOfKind___closed__4);
l_Lean_Syntax_isOfKind___closed__5 = _init_l_Lean_Syntax_isOfKind___closed__5();
lean_mark_persistent(l_Lean_Syntax_isOfKind___closed__5);
l_Lean_Syntax_isOfKind___closed__6 = _init_l_Lean_Syntax_isOfKind___closed__6();
lean_mark_persistent(l_Lean_Syntax_isOfKind___closed__6);
l_Lean_Syntax_isOfKind___closed__7 = _init_l_Lean_Syntax_isOfKind___closed__7();
lean_mark_persistent(l_Lean_Syntax_isOfKind___closed__7);
l_Lean_Syntax_isOfKind___closed__8 = _init_l_Lean_Syntax_isOfKind___closed__8();
lean_mark_persistent(l_Lean_Syntax_isOfKind___closed__8);
l_Lean_instInhabitedParserDescr___closed__1 = _init_l_Lean_instInhabitedParserDescr___closed__1();
lean_mark_persistent(l_Lean_instInhabitedParserDescr___closed__1);
l_Lean_instInhabitedParserDescr = _init_l_Lean_instInhabitedParserDescr();

View file

@ -3969,7 +3969,7 @@ static lean_object* _init_l___aux__Init__WFTactics______macroRules__tacticDecrea
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("strLit");
x_1 = lean_mk_string("str");
return x_1;
}
}

View file

@ -9780,7 +9780,7 @@ static lean_object* _init_l_Lean_Elab_Term_expandUnreachable___rarg___closed__2(
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("strLit");
x_1 = lean_mk_string("str");
return x_1;
}
}

File diff suppressed because it is too large Load diff

View file

@ -12065,7 +12065,7 @@ static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHand
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("strLit");
x_1 = lean_mk_string("str");
return x_1;
}
}

View file

@ -1113,7 +1113,7 @@ static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Repr_mk
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("strLit");
x_1 = lean_mk_string("str");
return x_1;
}
}
@ -4462,7 +4462,7 @@ static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_Deriving_Repr_mkBodyF
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("numLit");
x_1 = lean_mk_string("num");
return x_1;
}
}

View file

@ -4785,7 +4785,7 @@ static lean_object* _init_l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__7___
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("strLit");
x_1 = lean_mk_string("str");
return x_1;
}
}

File diff suppressed because it is too large Load diff

View file

@ -655,7 +655,7 @@ static lean_object* _init_l_Lean_Elab_Command_expandMacroArg___lambda__4___close
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("strLit");
x_1 = lean_mk_string("str");
return x_1;
}
}

File diff suppressed because it is too large Load diff

View file

@ -3411,7 +3411,7 @@ static lean_object* _init_l_Lean_Elab_Command_elabPrint___closed__13() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("strLit");
x_1 = lean_mk_string("str");
return x_1;
}
}

View file

@ -22,7 +22,6 @@ static lean_object* l_Lean_Elab_Term_toParserDescr_process___closed__9;
lean_object* l_Lean_mkCIdentFrom(lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__25;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_toParserDescr_processUnary(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_normKindCore___closed__9;
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescr_processNonReserved___spec__1___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_toParserDescr_process___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, 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__9;
@ -32,12 +31,10 @@ static lean_object* l_Lean_Elab_Command_inferMacroRulesAltKind___closed__1;
size_t lean_usize_add(size_t, size_t);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__9;
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSyntax___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_normKindCore___closed__8;
lean_object* l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_toParserDescr_process___closed__4;
static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__5___closed__7;
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_toParserDescr_process___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_normKindCore___closed__4;
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*);
@ -118,6 +115,7 @@ static lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed_
lean_object* lean_environment_find(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__4;
LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__13___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*);
static lean_object* l_Lean_Elab_Command_checkRuleKind___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev_declRange___closed__2;
LEAN_EXPORT lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__7___closed__3;
@ -154,7 +152,6 @@ static lean_object* l_Lean_Elab_Term_toParserDescr_processAtom___closed__2;
static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__52;
LEAN_EXPORT lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__2(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___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_normKindCore___closed__1;
static lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___lambda__3___closed__4;
static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__29;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -179,13 +176,11 @@ uint8_t l_Char_isWhitespace(uint32_t);
static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_toParserDescr_processSeq___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_EXPORT lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy1(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_normKindCore___closed__2;
lean_object* l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__8(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__10___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__9___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_pushInfoLeaf___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__11(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___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withNotFirst(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_normKindCore___boxed(lean_object*);
static lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___closed__1;
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandNoKindMacroRulesAux___spec__2(lean_object*, lean_object*, size_t, size_t, 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__5;
@ -193,13 +188,13 @@ LEAN_EXPORT lean_object* l_String_mapAux___at_Lean_Elab_Command_mkNameFromParser
lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_string_utf8_byte_size(lean_object*);
lean_object* l_List_head_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_normKind(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___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;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkNameFromParserSyntax(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_checkRuleKind___closed__1;
uint8_t lean_usize_dec_lt(size_t, size_t);
LEAN_EXPORT uint8_t l_Lean_Elab_Command_checkRuleKind(lean_object*, lean_object*);
extern lean_object* l_Lean_nameLitKind;
@ -275,7 +270,6 @@ static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyn
lean_object* l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(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_Lean_Elab_Command_normKind___closed__2;
static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__51;
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*);
@ -292,18 +286,15 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat_declRa
static lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__8;
LEAN_EXPORT lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_markAsTrailingParser___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_Elab_Term_toParserDescr_process___closed__14;
extern lean_object* l_Lean_strLitKind;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntax(lean_object*);
lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*);
static lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__19;
static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__35;
static lean_object* l_Lean_Elab_Command_normKind___closed__1;
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__5(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_Array_mapIdxM_map___at_Lean_Elab_Term_toParserDescr_processSeq___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*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__3___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__5___closed__9;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_normKind___boxed(lean_object*);
static lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescr_process___spec__5___rarg(lean_object*);
static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__38;
@ -318,7 +309,7 @@ lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__2;
lean_object* l_String_capitalize(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_7083_(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_6961_(lean_object*);
LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__6___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_Elab_Term_toParserDescr_process___closed__13;
static lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__7;
@ -352,7 +343,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Comma
static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__17;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntax_declRange___closed__6;
extern lean_object* l_Lean_choiceKind;
extern lean_object* l_Lean_charLitKind;
lean_object* l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Parser_maxPrec;
static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__57;
@ -452,7 +442,6 @@ lean_object* l_Lean_evalPrec(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_checkLeftRec___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_Macro_expandMacro_x3f(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_ensureUnaryParserAlias(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_normKindCore(lean_object*);
static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__43;
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_checkLeftRec___spec__8___rarg___closed__1;
static lean_object* l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__4;
@ -469,10 +458,10 @@ static lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___lambd
lean_object* l_Lean_Parser_registerParserCategory(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*);
lean_object* l_Lean_Elab_Term_resetMessageLog(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_List_filterAux___at_Lean_resolveGlobalConstCore___spec__1(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_6961____closed__1;
static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__61;
lean_object* l_Lean_Syntax_getQuotContent(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkNameFromParserSyntax_appendCatName(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_normKindCore___closed__5;
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_throwMaxRecDepthAt___at_Lean_Elab_Term_checkLeftRec___spec__7___closed__1;
@ -523,7 +512,6 @@ lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, l
static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__5___closed__12;
static lean_object* l_Lean_Elab_Term_toParserDescr_process___closed__3;
static lean_object* l_Lean_Elab_Term_checkLeftRec___lambda__2___closed__4;
static lean_object* l_Lean_Elab_Command_normKindCore___closed__10;
lean_object* l_Lean_Parser_ensureConstantParserAlias(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1(lean_object*, lean_object*);
@ -579,7 +567,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntax_declRange___clos
static lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy___lambda__1___closed__6;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_toParserDescr(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__1;
static lean_object* l_Lean_Elab_Command_normKindCore___closed__7;
lean_object* l_List_mapTRAux___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_checkSyntaxNodeKind___at_Lean_Elab_Command_resolveSyntaxKind___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkNameFromParserSyntax_appendCatName___boxed(lean_object*, lean_object*);
@ -644,7 +631,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat_declRa
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*);
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_normKindCore___closed__3;
static lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__3;
static lean_object* l_Lean_Elab_Term_toParserDescr_processUnary___closed__4;
static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37;
@ -683,7 +669,6 @@ static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyn
static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__5___closed__10;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_inferMacroRulesAltKind___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___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*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_7083____closed__1;
LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__2(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;
@ -737,7 +722,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___lambda__2___boxed(lean
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_normKindCore___closed__6;
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___lambda__3___closed__1;
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_elabSyntax___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
@ -1052,7 +1036,7 @@ static lean_object* _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_S
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("nameLit");
x_1 = lean_mk_string("name");
return x_1;
}
}
@ -12413,7 +12397,7 @@ static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_decl
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("numLit");
x_1 = lean_mk_string("num");
return x_1;
}
}
@ -12439,7 +12423,7 @@ static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_decl
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("strLit");
x_1 = lean_mk_string("str");
return x_1;
}
}
@ -18911,209 +18895,7 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_normKindCore___closed__1() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("num");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_normKindCore___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_normKindCore___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_normKindCore___closed__3() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("char");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_normKindCore___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_normKindCore___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_normKindCore___closed__5() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("charLit");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_normKindCore___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_normKindCore___closed__5;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_normKindCore___closed__7() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("str");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_normKindCore___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_normKindCore___closed__7;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_normKindCore___closed__9() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("name");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_normKindCore___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_normKindCore___closed__9;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_normKindCore(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3;
x_2 = l_Lean_Elab_Command_normKindCore___closed__2;
x_3 = lean_name_eq(x_1, x_2);
if (x_3 == 0)
{
lean_object* x_4; uint8_t x_5;
x_4 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__86;
x_5 = lean_name_eq(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; uint8_t x_7;
x_6 = l_Lean_Elab_Command_normKindCore___closed__4;
x_7 = lean_name_eq(x_1, x_6);
if (x_7 == 0)
{
lean_object* x_8; uint8_t x_9;
x_8 = l_Lean_Elab_Command_normKindCore___closed__6;
x_9 = lean_name_eq(x_1, x_8);
if (x_9 == 0)
{
lean_object* x_10; uint8_t x_11;
x_10 = l_Lean_Elab_Command_normKindCore___closed__8;
x_11 = lean_name_eq(x_1, x_10);
if (x_11 == 0)
{
lean_object* x_12; uint8_t x_13;
x_12 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__89;
x_13 = lean_name_eq(x_1, x_12);
if (x_13 == 0)
{
lean_object* x_14; uint8_t x_15;
x_14 = l_Lean_Elab_Command_normKindCore___closed__10;
x_15 = lean_name_eq(x_1, x_14);
if (x_15 == 0)
{
lean_object* x_16; uint8_t x_17;
x_16 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__25;
x_17 = lean_name_eq(x_1, x_16);
if (x_17 == 0)
{
lean_inc(x_1);
return x_1;
}
else
{
lean_object* x_18;
x_18 = l_Lean_nameLitKind;
return x_18;
}
}
else
{
lean_object* x_19;
x_19 = l_Lean_nameLitKind;
return x_19;
}
}
else
{
lean_object* x_20;
x_20 = l_Lean_strLitKind;
return x_20;
}
}
else
{
lean_object* x_21;
x_21 = l_Lean_strLitKind;
return x_21;
}
}
else
{
lean_object* x_22;
x_22 = l_Lean_charLitKind;
return x_22;
}
}
else
{
lean_object* x_23;
x_23 = l_Lean_charLitKind;
return x_23;
}
}
else
{
lean_object* x_24;
x_24 = l_Lean_numLitKind;
return x_24;
}
}
else
{
lean_object* x_25;
x_25 = l_Lean_numLitKind;
return x_25;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_normKindCore___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2;
x_2 = l_Lean_Elab_Command_normKindCore(x_1);
lean_dec(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_normKind___closed__1() {
static lean_object* _init_l_Lean_Elab_Command_checkRuleKind___closed__1() {
_start:
{
lean_object* x_1;
@ -19121,83 +18903,35 @@ x_1 = lean_mk_string("antiquot");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_normKind___closed__2() {
static lean_object* _init_l_Lean_Elab_Command_checkRuleKind___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_normKind___closed__1;
x_2 = l_Lean_Elab_Command_checkRuleKind___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_normKind(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 1)
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5;
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_1, 1);
x_4 = l_Lean_Elab_Command_normKind___closed__1;
x_5 = lean_string_dec_eq(x_3, x_4);
if (x_5 == 0)
{
lean_inc(x_1);
return x_1;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8;
x_6 = l_Lean_Elab_Command_normKindCore(x_2);
x_7 = l_Lean_Elab_Command_normKind___closed__2;
x_8 = l_Lean_Name_append(x_6, x_7);
lean_dec(x_6);
return x_8;
}
}
else
{
lean_inc(x_1);
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_normKind___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2;
x_2 = l_Lean_Elab_Command_normKind(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT uint8_t l_Lean_Elab_Command_checkRuleKind(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint8_t x_5;
x_3 = l_Lean_Elab_Command_normKind(x_1);
x_4 = l_Lean_Elab_Command_normKind(x_2);
x_5 = lean_name_eq(x_3, x_4);
lean_dec(x_4);
if (x_5 == 0)
uint8_t x_3;
x_3 = lean_name_eq(x_1, x_2);
if (x_3 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9;
x_6 = l_Lean_Elab_Command_normKind___closed__2;
x_7 = l_Lean_Name_append(x_2, x_6);
x_8 = l_Lean_Elab_Command_normKind(x_7);
lean_dec(x_7);
x_9 = lean_name_eq(x_3, x_8);
lean_dec(x_8);
lean_dec(x_3);
return x_9;
lean_object* x_4; lean_object* x_5; uint8_t x_6;
x_4 = l_Lean_Elab_Command_checkRuleKind___closed__2;
x_5 = l_Lean_Name_append(x_2, x_4);
x_6 = lean_name_eq(x_1, x_5);
lean_dec(x_5);
return x_6;
}
else
{
uint8_t x_10;
lean_dec(x_3);
x_10 = 1;
return x_10;
uint8_t x_7;
x_7 = 1;
return x_7;
}
}
}
@ -19975,7 +19709,7 @@ else
lean_object* x_16; lean_object* x_17; uint8_t x_18;
lean_inc(x_11);
x_16 = l_Lean_Name_getString_x21(x_11);
x_17 = l_Lean_Elab_Command_normKind___closed__1;
x_17 = l_Lean_Elab_Command_checkRuleKind___closed__1;
x_18 = lean_string_dec_eq(x_16, x_17);
lean_dec(x_16);
if (x_18 == 0)
@ -20113,7 +19847,7 @@ lean_dec(x_2);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_7083____closed__1() {
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_6961____closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
@ -20123,11 +19857,11 @@ x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_7083_(lean_object* x_1) {
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_6961_(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_7083____closed__1;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_6961____closed__1;
x_3 = l_Lean_registerTraceClass(x_2, x_1);
return x_3;
}
@ -20835,30 +20569,10 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev_declRange
res = l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev_declRange(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Elab_Command_normKindCore___closed__1 = _init_l_Lean_Elab_Command_normKindCore___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_normKindCore___closed__1);
l_Lean_Elab_Command_normKindCore___closed__2 = _init_l_Lean_Elab_Command_normKindCore___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_normKindCore___closed__2);
l_Lean_Elab_Command_normKindCore___closed__3 = _init_l_Lean_Elab_Command_normKindCore___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_normKindCore___closed__3);
l_Lean_Elab_Command_normKindCore___closed__4 = _init_l_Lean_Elab_Command_normKindCore___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_normKindCore___closed__4);
l_Lean_Elab_Command_normKindCore___closed__5 = _init_l_Lean_Elab_Command_normKindCore___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_normKindCore___closed__5);
l_Lean_Elab_Command_normKindCore___closed__6 = _init_l_Lean_Elab_Command_normKindCore___closed__6();
lean_mark_persistent(l_Lean_Elab_Command_normKindCore___closed__6);
l_Lean_Elab_Command_normKindCore___closed__7 = _init_l_Lean_Elab_Command_normKindCore___closed__7();
lean_mark_persistent(l_Lean_Elab_Command_normKindCore___closed__7);
l_Lean_Elab_Command_normKindCore___closed__8 = _init_l_Lean_Elab_Command_normKindCore___closed__8();
lean_mark_persistent(l_Lean_Elab_Command_normKindCore___closed__8);
l_Lean_Elab_Command_normKindCore___closed__9 = _init_l_Lean_Elab_Command_normKindCore___closed__9();
lean_mark_persistent(l_Lean_Elab_Command_normKindCore___closed__9);
l_Lean_Elab_Command_normKindCore___closed__10 = _init_l_Lean_Elab_Command_normKindCore___closed__10();
lean_mark_persistent(l_Lean_Elab_Command_normKindCore___closed__10);
l_Lean_Elab_Command_normKind___closed__1 = _init_l_Lean_Elab_Command_normKind___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_normKind___closed__1);
l_Lean_Elab_Command_normKind___closed__2 = _init_l_Lean_Elab_Command_normKind___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_normKind___closed__2);
l_Lean_Elab_Command_checkRuleKind___closed__1 = _init_l_Lean_Elab_Command_checkRuleKind___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_checkRuleKind___closed__1);
l_Lean_Elab_Command_checkRuleKind___closed__2 = _init_l_Lean_Elab_Command_checkRuleKind___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_checkRuleKind___closed__2);
l_Lean_Elab_Command_inferMacroRulesAltKind___closed__1 = _init_l_Lean_Elab_Command_inferMacroRulesAltKind___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_inferMacroRulesAltKind___closed__1);
l_Lean_Elab_Command_inferMacroRulesAltKind___closed__2 = _init_l_Lean_Elab_Command_inferMacroRulesAltKind___closed__2();
@ -20875,9 +20589,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_7083____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_7083____closed__1();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_7083____closed__1);
res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_7083_(lean_io_mk_world());
l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_6961____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_6961____closed__1();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_6961____closed__1);
res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_6961_(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));

View file

@ -2435,7 +2435,7 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("numLit");
x_1 = lean_mk_string("num");
return x_1;
}
}

View file

@ -252,7 +252,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_forallMetaBoundedTelescope(lean_object*, le
LEAN_EXPORT lean_object* l_Lean_Meta_instMonadEnvMetaM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___rarg___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_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_isClassExpensive_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8647_(uint8_t, uint8_t);
uint8_t l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8523_(uint8_t, uint8_t);
static lean_object* l_Lean_Meta_instAlternativeMetaM___closed__2;
LEAN_EXPORT lean_object* l_Lean_Meta_setInlineAttribute___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_withConfig___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -1440,7 +1440,7 @@ x_5 = lean_ctor_get(x_1, 1);
x_6 = lean_ctor_get_uint8(x_2, sizeof(void*)*2);
x_7 = lean_ctor_get(x_2, 0);
x_8 = lean_ctor_get(x_2, 1);
x_9 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8647_(x_3, x_6);
x_9 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8523_(x_3, x_6);
if (x_9 == 0)
{
uint8_t x_10;
@ -6902,7 +6902,7 @@ x_8 = lean_ctor_get(x_6, 0);
x_9 = 0;
x_10 = lean_unbox(x_8);
lean_dec(x_8);
x_11 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8647_(x_10, x_9);
x_11 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8523_(x_10, x_9);
x_12 = lean_box(x_11);
lean_ctor_set(x_6, 0, x_12);
return x_6;
@ -6918,7 +6918,7 @@ lean_dec(x_6);
x_15 = 0;
x_16 = lean_unbox(x_13);
lean_dec(x_13);
x_17 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8647_(x_16, x_15);
x_17 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8523_(x_16, x_15);
x_18 = lean_box(x_17);
x_19 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_19, 0, x_18);
@ -6952,7 +6952,7 @@ x_8 = lean_ctor_get(x_6, 0);
x_9 = 2;
x_10 = lean_unbox(x_8);
lean_dec(x_8);
x_11 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8647_(x_10, x_9);
x_11 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8523_(x_10, x_9);
x_12 = lean_box(x_11);
lean_ctor_set(x_6, 0, x_12);
return x_6;
@ -6968,7 +6968,7 @@ lean_dec(x_6);
x_15 = 2;
x_16 = lean_unbox(x_13);
lean_dec(x_13);
x_17 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8647_(x_16, x_15);
x_17 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8523_(x_16, x_15);
x_18 = lean_box(x_17);
x_19 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_19, 0, x_18);

View file

@ -21,7 +21,7 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_getConstNoEx_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_isReducible___at___private_Lean_Meta_GetConst_0__Lean_Meta_canUnfoldDefault___spec__3(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_getConst_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8647_(uint8_t, uint8_t);
uint8_t l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8523_(uint8_t, uint8_t);
lean_object* l_Lean_ConstantInfo_name(lean_object*);
LEAN_EXPORT lean_object* l_Lean_getReducibilityStatus___at___private_Lean_Meta_GetConst_0__Lean_Meta_canUnfoldDefault___spec__2(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_GetConst_0__Lean_Meta_canUnfoldDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -315,7 +315,7 @@ x_39 = lean_ctor_get(x_38, 0);
lean_inc(x_39);
lean_dec(x_38);
x_40 = 3;
x_41 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8647_(x_6, x_40);
x_41 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8523_(x_6, x_40);
if (x_41 == 0)
{
uint8_t x_42; lean_object* x_43;
@ -360,7 +360,7 @@ x_51 = lean_ctor_get(x_49, 0);
lean_inc(x_51);
lean_dec(x_49);
x_52 = 3;
x_53 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8647_(x_6, x_52);
x_53 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8523_(x_6, x_52);
if (x_53 == 0)
{
uint8_t x_54; lean_object* x_55; lean_object* x_56;

View file

@ -131,7 +131,7 @@ size_t lean_usize_shift_right(size_t, size_t);
static lean_object* l_Lean_Meta_reduceNative_x3f___closed__14;
LEAN_EXPORT lean_object* l_Lean_Meta_smartUnfoldingMatch_x3f(lean_object*);
lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*);
uint8_t l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8647_(uint8_t, uint8_t);
uint8_t l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8523_(uint8_t, uint8_t);
static lean_object* l_Lean_Meta_toCtorIfLit___closed__16;
uint8_t lean_usize_dec_lt(size_t, size_t);
static lean_object* l_Lean_getConstInfoCtor___at___private_Lean_Meta_WHNF_0__Lean_Meta_toCtorWhenStructure___spec__1___closed__3;
@ -8832,7 +8832,7 @@ lean_inc(x_9);
lean_dec(x_7);
x_10 = 2;
x_11 = lean_unbox(x_8);
x_12 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8647_(x_11, x_10);
x_12 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8523_(x_11, x_10);
if (x_12 == 0)
{
lean_object* x_13; uint8_t x_14; lean_object* x_15;
@ -19276,7 +19276,7 @@ x_10 = lean_ctor_get(x_7, 1);
x_11 = 3;
x_12 = lean_unbox(x_9);
lean_dec(x_9);
x_13 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8647_(x_12, x_11);
x_13 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8523_(x_12, x_11);
if (x_13 == 0)
{
lean_object* x_14;
@ -19308,7 +19308,7 @@ lean_dec(x_7);
x_18 = 3;
x_19 = lean_unbox(x_16);
lean_dec(x_16);
x_20 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8647_(x_19, x_18);
x_20 = l___private_Init_Meta_0__Lean_Meta_beqTransparencyMode____x40_Init_Meta___hyg_8523_(x_19, x_18);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22;

View file

@ -54,7 +54,6 @@ lean_object* l_Lean_PrettyPrinter_Parenthesizer_lookahead_parenthesizer___boxed(
lean_object* l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__137;
lean_object* l_Lean_Parser_getBinaryAlias___rarg(lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__5;
static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__153;
lean_object* l_Lean_Parser_sepBy1_parenthesizer(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__121;
@ -110,7 +109,6 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_interpretParserDescr
lean_object* l_Lean_Parser_optional_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__87;
static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__4;
static lean_object* l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__5;
static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__138;
static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__177;
static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__106;
@ -298,7 +296,6 @@ static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__7
static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__96;
static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__48;
static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__162;
static lean_object* l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__5;
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_interpretParserDescr___elambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__141;
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_numLit_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -329,7 +326,6 @@ static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__9
lean_object* l_Lean_Parser_sepBy_formatter(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__67;
static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__129;
static lean_object* l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__5;
static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__27;
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_strLit_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_PrettyPrinter_Formatter_charLit_formatter___closed__3;
@ -4630,7 +4626,7 @@ static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_1 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_ident_parenthesizer___closed__6;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
@ -4640,23 +4636,13 @@ static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_ident_parenthesizer___closed__6;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__3;
x_1 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__2;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_ident_parenthesizer___closed__8;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__5() {
static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__4() {
_start:
{
lean_object* x_1;
@ -4669,9 +4655,9 @@ _start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_ident_parenthesizer___closed__10;
x_3 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__2;
x_4 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__4;
x_5 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__5;
x_3 = l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__32;
x_4 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__3;
x_5 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__4;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
@ -4696,7 +4682,7 @@ static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scient
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_1 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_ident_parenthesizer___closed__6;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
@ -4706,23 +4692,13 @@ static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scient
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_ident_parenthesizer___closed__6;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__3;
x_1 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__2;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_ident_parenthesizer___closed__8;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__5() {
static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__4() {
_start:
{
lean_object* x_1;
@ -4735,9 +4711,9 @@ _start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_ident_parenthesizer___closed__10;
x_3 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__2;
x_4 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__4;
x_5 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__5;
x_3 = l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__60;
x_4 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__3;
x_5 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__4;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
@ -4762,7 +4738,7 @@ static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLi
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_1 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_ident_parenthesizer___closed__6;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
@ -4772,23 +4748,13 @@ static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLi
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_ident_parenthesizer___closed__6;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__3;
x_1 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__2;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_ident_parenthesizer___closed__8;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__5() {
static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__4() {
_start:
{
lean_object* x_1;
@ -4801,9 +4767,9 @@ _start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_ident_parenthesizer___closed__10;
x_3 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__2;
x_4 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__4;
x_5 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__5;
x_3 = l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__46;
x_4 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__3;
x_5 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__4;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
@ -4828,7 +4794,7 @@ static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_1 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_ident_parenthesizer___closed__6;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
@ -4838,23 +4804,13 @@ static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_ident_parenthesizer___closed__6;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__3;
x_1 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__2;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_ident_parenthesizer___closed__8;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__5() {
static lean_object* _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__4() {
_start:
{
lean_object* x_1;
@ -4867,9 +4823,9 @@ _start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_ident_parenthesizer___closed__10;
x_3 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__2;
x_4 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__4;
x_5 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__5;
x_3 = l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__39;
x_4 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__3;
x_5 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__4;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
@ -6030,7 +5986,7 @@ _start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Formatter_ident_formatter___closed__6;
x_3 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__2;
x_3 = l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__32;
x_4 = l___regBuiltin_Lean_PrettyPrinter_Formatter_numLit_formatter___closed__2;
x_5 = l___regBuiltin_Lean_PrettyPrinter_Formatter_numLit_formatter___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
@ -6080,7 +6036,7 @@ _start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Formatter_ident_formatter___closed__6;
x_3 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__2;
x_3 = l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__60;
x_4 = l___regBuiltin_Lean_PrettyPrinter_Formatter_scientificLit_formatter___closed__2;
x_5 = l___regBuiltin_Lean_PrettyPrinter_Formatter_scientificLit_formatter___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
@ -6130,7 +6086,7 @@ _start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Formatter_ident_formatter___closed__6;
x_3 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__2;
x_3 = l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__46;
x_4 = l___regBuiltin_Lean_PrettyPrinter_Formatter_charLit_formatter___closed__2;
x_5 = l___regBuiltin_Lean_PrettyPrinter_Formatter_charLit_formatter___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
@ -6180,7 +6136,7 @@ _start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
x_2 = l___regBuiltin_Lean_PrettyPrinter_Formatter_ident_formatter___closed__6;
x_3 = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__2;
x_3 = l_Lean_Parser_initFn____x40_Lean_Parser___hyg_8____closed__39;
x_4 = l___regBuiltin_Lean_PrettyPrinter_Formatter_strLit_formatter___closed__2;
x_5 = l___regBuiltin_Lean_PrettyPrinter_Formatter_strLit_formatter___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
@ -7642,8 +7598,6 @@ l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__3
lean_mark_persistent(l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__3);
l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__4 = _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__4);
l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__5 = _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer___closed__5);
res = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_numLit_parenthesizer(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
@ -7655,8 +7609,6 @@ l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___cl
lean_mark_persistent(l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__3);
l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__4 = _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__4);
l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__5 = _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer___closed__5);
res = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_scientificLit_parenthesizer(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
@ -7668,8 +7620,6 @@ l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__
lean_mark_persistent(l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__3);
l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__4 = _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__4);
l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__5 = _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer___closed__5);
res = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_charLit_parenthesizer(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
@ -7681,8 +7631,6 @@ l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__3
lean_mark_persistent(l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__3);
l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__4 = _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__4);
l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__5 = _init_l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer___closed__5);
res = l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_strLit_parenthesizer(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1988,7 +1988,7 @@ static lean_object* _init_l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_Rp
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("numLit");
x_1 = lean_mk_string("num");
return x_1;
}
}
@ -2428,7 +2428,7 @@ static lean_object* _init_l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_Rp
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("strLit");
x_1 = lean_mk_string("str");
return x_1;
}
}

View file

@ -26,7 +26,6 @@ size_t lean_usize_add(size_t, size_t);
static lean_object* l_Lean_Syntax_instForInTopDownSyntax_loop___at_Lean_Syntax_hasMissing___spec__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDownSyntax_loop___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDownSyntax_loop___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_isLitKind___closed__20;
LEAN_EXPORT uint8_t l_Lean_Syntax_isTokenAntiquot(lean_object*);
static lean_object* l_Lean_Syntax_getQuotContent___closed__2;
lean_object* lean_erase_macro_scopes(lean_object*);
@ -54,7 +53,6 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goRight___rarg(lean_object
static lean_object* l_List_mapTRAux___at_Lean_Syntax_identComponents___spec__2___closed__3;
LEAN_EXPORT lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_rewriteBottomUpM___at_Lean_Syntax_rewriteBottomUp___spec__1(lean_object*, lean_object*);
static lean_object* l_Lean_isLitKind___closed__16;
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_mkAntiquotSuffixSpliceNode___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Syntax_getQuotContent___closed__4;
@ -64,7 +62,6 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_isEscapedAntiquot___boxed(lean_object*);
static lean_object* l_Lean_Syntax_getAtomVal_x21___closed__2;
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getCur(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goRight(lean_object*);
static lean_object* l_Lean_isLitKind___closed__7;
static lean_object* l_Lean_Syntax_instForInTopDownSyntax_loop___at_Lean_Syntax_hasMissing___spec__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_SyntaxNode_withArgs(lean_object*);
static lean_object* l_Lean_Syntax_instForInTopDownSyntax_loop___at_Lean_Syntax_hasMissing___spec__1___closed__4;
@ -79,7 +76,6 @@ extern lean_object* l_instInhabitedNat;
LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Syntax_identComponents___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__18;
static lean_object* l_Lean_Syntax_getAtomVal_x21___closed__1;
static lean_object* l_Lean_isLitKind___closed__10;
lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_ifNodeKind(lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
@ -99,7 +95,6 @@ lean_object* lean_string_utf8_byte_size(lean_object*);
static lean_object* l_Lean_Syntax_reprint_reprintLeaf___closed__1;
static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__10;
LEAN_EXPORT lean_object* l_Lean_Syntax_rewriteBottomUpM(lean_object*);
static lean_object* l_Lean_isLitKind___closed__15;
static lean_object* l_Lean_Syntax_getAtomVal_x21___closed__4;
static lean_object* l_Lean_Syntax_MonadTraverser_getCur___rarg___closed__1;
LEAN_EXPORT lean_object* l_Lean_Syntax_getAntiquotTerm___boxed(lean_object*);
@ -110,13 +105,11 @@ extern lean_object* l_Lean_nameLitKind;
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goDown(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_reprint_reprintLeaf___boxed(lean_object*, lean_object*);
lean_object* l_Array_back_x3f___rarg(lean_object*);
static lean_object* l_Lean_isLitKind___closed__5;
LEAN_EXPORT lean_object* l_List_foldl___at_Lean_Syntax_identComponents_nameComps___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_mkAntiquotNode(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_hasMissing(lean_object*);
lean_object* lean_nat_add(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_modifyArg___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_isLitKind___closed__14;
LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Syntax_getTailWithPos___spec__1___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_SyntaxNode_getKind(lean_object*);
LEAN_EXPORT lean_object* l_Lean_SyntaxNode_getArgs(lean_object*);
@ -139,14 +132,12 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_replaceM___rarg___lambda__1(lean_object*,
lean_object* l_Array_forInUnsafe_loop___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_List_foldl___at_Lean_Syntax_identComponents___spec__3___boxed(lean_object*, lean_object*);
lean_object* lean_array_fget(lean_object*, lean_object*);
static lean_object* l_Lean_isLitKind___closed__3;
LEAN_EXPORT lean_object* l_Lean_SyntaxNode_getKind___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Syntax_reprint___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
static lean_object* l_Lean_Syntax_isQuot___closed__3;
LEAN_EXPORT lean_object* l_Lean_Syntax_updateTrailing(lean_object*, lean_object*);
extern lean_object* l_Lean_numLitKind;
static lean_object* l_Lean_isLitKind___closed__18;
lean_object* lean_nat_sub(lean_object*, lean_object*);
static lean_object* l_Lean_Syntax_identComponents___closed__1;
LEAN_EXPORT lean_object* l_Lean_Syntax_mkAntiquotSpliceNode___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
@ -159,7 +150,6 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getIdx(lean_object*);
static lean_object* l_Lean_Syntax_identComponents___closed__8;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Syntax_updateLeading___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Syntax_mkAntiquotSpliceNode___closed__1;
static lean_object* l_Lean_isLitKind___closed__6;
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goLeft___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goDown___rarg(lean_object*, lean_object*);
lean_object* l_Lean_Name_toString(lean_object*, uint8_t);
@ -197,7 +187,6 @@ static lean_object* l_Lean_Syntax_MonadTraverser_goLeft___rarg___closed__1;
LEAN_EXPORT lean_object* l_Lean_SyntaxNode_modifyArgs(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_hasMissing___lambda__1___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_SyntaxNode_getArgs___boxed(lean_object*);
static lean_object* l_Lean_isLitKind___closed__2;
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Array_isEmpty___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_unreachIsNodeIdent___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -223,16 +212,13 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_identComponents_nameComps___boxed(lean_ob
static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__17;
static lean_object* l_Lean_Syntax_mkAntiquotSpliceNode___closed__5;
LEAN_EXPORT lean_object* l_Lean_SyntaxNode_getNumArgs___boxed(lean_object*);
static lean_object* l_Lean_isLitKind___closed__13;
LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDownSyntax_loop___at_Lean_Syntax_reprint___spec__2(uint8_t, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_hasMissing___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_isLitKind___closed__4;
LEAN_EXPORT lean_object* l_Lean_Syntax_replaceM___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Array_mapMUnsafe_map___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_Traverser_fromSyntax(lean_object*);
LEAN_EXPORT lean_object* l_Lean_unreachIsNodeAtom(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_mkAntiquotNode___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_isLitKind___closed__9;
lean_object* l_List_drop___rarg(lean_object*, lean_object*);
static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__1;
uint8_t l_Lean_Syntax_isMissing(lean_object*);
@ -253,14 +239,12 @@ LEAN_EXPORT lean_object* l_Lean_SourceInfo_updateTrailing(lean_object*, lean_obj
LEAN_EXPORT lean_object* l_Lean_Syntax_rewriteBottomUpM___rarg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Syntax_getQuotContent___closed__3;
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
static lean_object* l_Lean_isLitKind___closed__1;
static lean_object* l_Lean_Syntax_asNode___closed__1;
lean_object* l_Lean_Syntax_getArgs(lean_object*);
lean_object* l_Lean_Name_append(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_getAntiquotSpliceSuffix(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_Traverser_right(lean_object*);
LEAN_EXPORT lean_object* l_Lean_SyntaxNode_withArgs___rarg(lean_object*, lean_object*);
static lean_object* l_Lean_isLitKind___closed__17;
LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDownSyntax_loop___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_topDown(lean_object*, uint8_t);
static lean_object* l_Lean_Syntax_MonadTraverser_goUp___rarg___closed__1;
@ -274,7 +258,6 @@ static lean_object* l_Lean_Syntax_isTokenAntiquot___closed__1;
LEAN_EXPORT lean_object* l_Lean_Syntax_topDown___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_hasMissing___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lean_Syntax_asNode___closed__2;
static lean_object* l_Lean_isLitKind___closed__11;
LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDownSyntax_loop(lean_object*, lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDownSyntax_loop___at_Lean_Syntax_hasMissing___spec__1___lambda__1(lean_object*, lean_object*);
@ -282,7 +265,6 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDownSyntax(lean_object*, lean
static lean_object* l_Lean_Syntax_isTokenAntiquot___closed__2;
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goDown___rarg___lambda__1(lean_object*, lean_object*);
static lean_object* l_Lean_Syntax_instForInTopDownSyntax_loop___at_Lean_Syntax_hasMissing___spec__1___closed__2;
static lean_object* l_Lean_isLitKind___closed__8;
LEAN_EXPORT lean_object* l_Lean_isLitKind___boxed(lean_object*);
static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__13;
lean_object* lean_panic_fn(lean_object*, lean_object*);
@ -299,7 +281,6 @@ LEAN_EXPORT lean_object* l_Lean_mkListNode(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goUp___rarg(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Lean_Syntax_identComponents___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDownSyntax_loop___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_isLitKind___closed__19;
static lean_object* l_Lean_Syntax_hasMissing___closed__2;
static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__6;
LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Syntax_getTailWithPos___spec__1(lean_object*, lean_object*, lean_object*);
@ -311,7 +292,6 @@ lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
static lean_object* l_Lean_Syntax_mkAntiquotSpliceNode___closed__7;
LEAN_EXPORT lean_object* l_Lean_Syntax_isAntiquot___boxed(lean_object*);
static lean_object* l_Lean_Syntax_isAntiquot___closed__1;
static lean_object* l_Lean_isLitKind___closed__12;
lean_object* l_List_take___rarg(lean_object*, lean_object*);
lean_object* l_Lean_SourceInfo_getPos_x3f(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lean_Syntax_asNode(lean_object*);
@ -427,186 +407,6 @@ lean_dec(x_2);
return x_7;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__1() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("str");
return x_1;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_isLitKind___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__3() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("num");
return x_1;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_isLitKind___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__5() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("char");
return x_1;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_isLitKind___closed__5;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__7() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("name");
return x_1;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_isLitKind___closed__7;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__9() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("scientific");
return x_1;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_isLitKind___closed__9;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__11() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("strLit");
return x_1;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_isLitKind___closed__11;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__13() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("numLit");
return x_1;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_isLitKind___closed__13;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__15() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("charLit");
return x_1;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_isLitKind___closed__15;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__17() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("nameLit");
return x_1;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_isLitKind___closed__17;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__19() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("scientificLit");
return x_1;
}
}
static lean_object* _init_l_Lean_isLitKind___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_isLitKind___closed__19;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Lean_isLitKind(lean_object* x_1) {
_start:
{
@ -633,154 +433,34 @@ if (x_9 == 0)
lean_object* x_10; uint8_t x_11;
x_10 = l_Lean_scientificLitKind;
x_11 = lean_name_eq(x_1, x_10);
if (x_11 == 0)
{
lean_object* x_12; uint8_t x_13;
x_12 = l_Lean_isLitKind___closed__2;
x_13 = lean_name_eq(x_1, x_12);
if (x_13 == 0)
{
lean_object* x_14; uint8_t x_15;
x_14 = l_Lean_isLitKind___closed__4;
x_15 = lean_name_eq(x_1, x_14);
if (x_15 == 0)
{
lean_object* x_16; uint8_t x_17;
x_16 = l_Lean_isLitKind___closed__6;
x_17 = lean_name_eq(x_1, x_16);
if (x_17 == 0)
{
lean_object* x_18; uint8_t x_19;
x_18 = l_Lean_isLitKind___closed__8;
x_19 = lean_name_eq(x_1, x_18);
if (x_19 == 0)
{
lean_object* x_20; uint8_t x_21;
x_20 = l_Lean_isLitKind___closed__10;
x_21 = lean_name_eq(x_1, x_20);
if (x_21 == 0)
{
lean_object* x_22; uint8_t x_23;
x_22 = l_Lean_isLitKind___closed__12;
x_23 = lean_name_eq(x_1, x_22);
if (x_23 == 0)
{
lean_object* x_24; uint8_t x_25;
x_24 = l_Lean_isLitKind___closed__14;
x_25 = lean_name_eq(x_1, x_24);
if (x_25 == 0)
{
lean_object* x_26; uint8_t x_27;
x_26 = l_Lean_isLitKind___closed__16;
x_27 = lean_name_eq(x_1, x_26);
if (x_27 == 0)
{
lean_object* x_28; uint8_t x_29;
x_28 = l_Lean_isLitKind___closed__18;
x_29 = lean_name_eq(x_1, x_28);
if (x_29 == 0)
{
lean_object* x_30; uint8_t x_31;
x_30 = l_Lean_isLitKind___closed__20;
x_31 = lean_name_eq(x_1, x_30);
return x_31;
return x_11;
}
else
{
uint8_t x_32;
x_32 = 1;
return x_32;
uint8_t x_12;
x_12 = 1;
return x_12;
}
}
else
{
uint8_t x_33;
x_33 = 1;
return x_33;
uint8_t x_13;
x_13 = 1;
return x_13;
}
}
else
{
uint8_t x_34;
x_34 = 1;
return x_34;
uint8_t x_14;
x_14 = 1;
return x_14;
}
}
else
{
uint8_t x_35;
x_35 = 1;
return x_35;
}
}
else
{
uint8_t x_36;
x_36 = 1;
return x_36;
}
}
else
{
uint8_t x_37;
x_37 = 1;
return x_37;
}
}
else
{
uint8_t x_38;
x_38 = 1;
return x_38;
}
}
else
{
uint8_t x_39;
x_39 = 1;
return x_39;
}
}
else
{
uint8_t x_40;
x_40 = 1;
return x_40;
}
}
else
{
uint8_t x_41;
x_41 = 1;
return x_41;
}
}
else
{
uint8_t x_42;
x_42 = 1;
return x_42;
}
}
else
{
uint8_t x_43;
x_43 = 1;
return x_43;
}
}
else
{
uint8_t x_44;
x_44 = 1;
return x_44;
}
}
else
{
uint8_t x_45;
x_45 = 1;
return x_45;
uint8_t x_15;
x_15 = 1;
return x_15;
}
}
}
@ -949,7 +629,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_Syntax_getAtomVal_x21___closed__1;
x_2 = l_Lean_Syntax_getAtomVal_x21___closed__2;
x_3 = lean_unsigned_to_nat(70u);
x_3 = lean_unsigned_to_nat(67u);
x_4 = lean_unsigned_to_nat(18u);
x_5 = l_Lean_Syntax_getAtomVal_x21___closed__3;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
@ -3163,7 +2843,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_Syntax_getAtomVal_x21___closed__1;
x_2 = l_Lean_Syntax_identComponents___closed__1;
x_3 = lean_unsigned_to_nat(215u);
x_3 = lean_unsigned_to_nat(212u);
x_4 = lean_unsigned_to_nat(9u);
x_5 = l_Lean_Syntax_identComponents___closed__2;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
@ -3202,7 +2882,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_Syntax_getAtomVal_x21___closed__1;
x_2 = l_Lean_Syntax_identComponents___closed__1;
x_3 = lean_unsigned_to_nat(202u);
x_3 = lean_unsigned_to_nat(199u);
x_4 = lean_unsigned_to_nat(4u);
x_5 = l_Lean_Syntax_identComponents___closed__6;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
@ -6878,46 +6558,6 @@ lean_dec_ref(res);
res = initialize_Lean_Data_Format(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_isLitKind___closed__1 = _init_l_Lean_isLitKind___closed__1();
lean_mark_persistent(l_Lean_isLitKind___closed__1);
l_Lean_isLitKind___closed__2 = _init_l_Lean_isLitKind___closed__2();
lean_mark_persistent(l_Lean_isLitKind___closed__2);
l_Lean_isLitKind___closed__3 = _init_l_Lean_isLitKind___closed__3();
lean_mark_persistent(l_Lean_isLitKind___closed__3);
l_Lean_isLitKind___closed__4 = _init_l_Lean_isLitKind___closed__4();
lean_mark_persistent(l_Lean_isLitKind___closed__4);
l_Lean_isLitKind___closed__5 = _init_l_Lean_isLitKind___closed__5();
lean_mark_persistent(l_Lean_isLitKind___closed__5);
l_Lean_isLitKind___closed__6 = _init_l_Lean_isLitKind___closed__6();
lean_mark_persistent(l_Lean_isLitKind___closed__6);
l_Lean_isLitKind___closed__7 = _init_l_Lean_isLitKind___closed__7();
lean_mark_persistent(l_Lean_isLitKind___closed__7);
l_Lean_isLitKind___closed__8 = _init_l_Lean_isLitKind___closed__8();
lean_mark_persistent(l_Lean_isLitKind___closed__8);
l_Lean_isLitKind___closed__9 = _init_l_Lean_isLitKind___closed__9();
lean_mark_persistent(l_Lean_isLitKind___closed__9);
l_Lean_isLitKind___closed__10 = _init_l_Lean_isLitKind___closed__10();
lean_mark_persistent(l_Lean_isLitKind___closed__10);
l_Lean_isLitKind___closed__11 = _init_l_Lean_isLitKind___closed__11();
lean_mark_persistent(l_Lean_isLitKind___closed__11);
l_Lean_isLitKind___closed__12 = _init_l_Lean_isLitKind___closed__12();
lean_mark_persistent(l_Lean_isLitKind___closed__12);
l_Lean_isLitKind___closed__13 = _init_l_Lean_isLitKind___closed__13();
lean_mark_persistent(l_Lean_isLitKind___closed__13);
l_Lean_isLitKind___closed__14 = _init_l_Lean_isLitKind___closed__14();
lean_mark_persistent(l_Lean_isLitKind___closed__14);
l_Lean_isLitKind___closed__15 = _init_l_Lean_isLitKind___closed__15();
lean_mark_persistent(l_Lean_isLitKind___closed__15);
l_Lean_isLitKind___closed__16 = _init_l_Lean_isLitKind___closed__16();
lean_mark_persistent(l_Lean_isLitKind___closed__16);
l_Lean_isLitKind___closed__17 = _init_l_Lean_isLitKind___closed__17();
lean_mark_persistent(l_Lean_isLitKind___closed__17);
l_Lean_isLitKind___closed__18 = _init_l_Lean_isLitKind___closed__18();
lean_mark_persistent(l_Lean_isLitKind___closed__18);
l_Lean_isLitKind___closed__19 = _init_l_Lean_isLitKind___closed__19();
lean_mark_persistent(l_Lean_isLitKind___closed__19);
l_Lean_isLitKind___closed__20 = _init_l_Lean_isLitKind___closed__20();
lean_mark_persistent(l_Lean_isLitKind___closed__20);
l_Lean_Syntax_getAtomVal_x21___closed__1 = _init_l_Lean_Syntax_getAtomVal_x21___closed__1();
lean_mark_persistent(l_Lean_Syntax_getAtomVal_x21___closed__1);
l_Lean_Syntax_getAtomVal_x21___closed__2 = _init_l_Lean_Syntax_getAtomVal_x21___closed__2();