chore: update stage0

This commit is contained in:
Leonardo de Moura 2020-12-05 14:25:50 -08:00
parent 1faed06dc1
commit c5aba69471
8 changed files with 10030 additions and 9731 deletions

View file

@ -26,14 +26,17 @@ instance : Inhabited Attribute where
/-
```
attrKind := optional («scoped» <|> «local»)
attrKind := parser! optional («scoped» <|> «local»)
```
-/
def toAttributeKind (attrKindStx : Syntax) : AttributeKind :=
if attrKindStx.isNone then AttributeKind.global
else if attrKindStx[0].getKind == `Lean.Parser.Term.scoped then AttributeKind.scoped
if attrKindStx[0].isNone then AttributeKind.global
else if attrKindStx[0][0].getKind == `Lean.Parser.Term.scoped then AttributeKind.scoped
else AttributeKind.local
def mkAttrKindGlobal : Syntax :=
Syntax.node `Lean.Parser.Term.attrKind #[mkNullNode]
def elabAttr {m} [Monad m] [MonadEnv m] [MonadExceptOf Exception m] [MonadRef m] [AddErrorMessageContext m] (stx : Syntax) : m Attribute := do
-- attrKind >> rawIdent >> many attrArg
let kind := toAttributeKind stx[0]

View file

@ -374,7 +374,7 @@ def elabNoKindMacroRulesAux (alts : Array Syntax) : CommandElabM Syntax := do
-- TODO: cleanup after we have support for optional syntax at `match_syntax`
@[builtinMacro Lean.Parser.Command.mixfix] def expandMixfix : Macro := fun stx =>
withAttrKind stx fun stx =>
withAttrKindGlobal stx fun stx =>
match_syntax stx with
| `(infix:$prec $op => $f) => `(infixl:$prec $op => $f)
| `(infixr:$prec $op => $f) => `(notation:$prec lhs $op:strLit rhs:$prec => $f lhs rhs)
@ -388,10 +388,10 @@ def elabNoKindMacroRulesAux (alts : Array Syntax) : CommandElabM Syntax := do
| `(postfix:$prec [$prio] $op => $f) => `(notation:$prec [$prio] arg $op:strLit => $f arg)
| _ => Macro.throwUnsupported
where
-- Remove `attrKind`, apply `f`, and add `attrKind` to result
withAttrKind stx f := do
-- set "global" `attrKind`, apply `f`, and restore `attrKind` to result
withAttrKindGlobal stx f := do
let attrKind := stx[0]
let stx := stx.setArg 0 mkNullNode
let stx := stx.setArg 0 mkAttrKindGlobal
let stx ← f stx
return stx.setArg 0 attrKind
@ -480,7 +480,7 @@ private def expandNotationAux (ref : Syntax)
@[builtinCommandElab «notation»] def expandNotation : CommandElab :=
adaptExpander fun stx => do
let attrKind := toAttributeKind stx[0]
let stx := stx.setArg 0 mkNullNode
let stx := stx.setArg 0 mkAttrKindGlobal
let currNamespace ← getCurrNamespace
match_syntax stx with
| `(notation:$prec $items* => $rhs) => expandNotationAux stx currNamespace attrKind prec 0 items rhs

View file

@ -154,7 +154,7 @@ def attrArg : Parser := ident <|> strLit <|> numLit
-- use `rawIdent` because of attribute names such as `instance`
def «scoped» := parser! "scoped "
def «local» := parser! "local "
def attrKind := (checkOutsideQuot >> optional («scoped» <|> «local»)) <|> (checkInsideQuot >> parser! optional («scoped» <|> «local»))
def attrKind := parser! optional («scoped» <|> «local»)
def attrInstance := ppGroup $ parser! attrKind >> rawIdent >> many (ppSpace >> attrArg)
def attributes := parser! "@[" >> sepBy1 attrInstance ", " >> "]"
@ -229,6 +229,7 @@ builtin_initialize
registerParserAlias! "syntheticHole" Term.syntheticHole
registerParserAlias! "matchDiscr" Term.matchDiscr
registerParserAlias! "bracketedBinder" Term.bracketedBinder
registerParserAlias! "attrKind" Term.attrKind
end Parser
end Lean

View file

@ -48,6 +48,7 @@ lean_object* l_Lean_Elab_elabAttr(lean_object*);
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1(lean_object*);
size_t lean_usize_of_nat(lean_object*);
lean_object* l_Lean_Elab_elabAttr___rarg___closed__2;
extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__6;
lean_object* l_Lean_Elab_instInhabitedAttribute___closed__1;
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_elabAttr___rarg___closed__1;
@ -71,17 +72,23 @@ lean_object* l_Lean_Elab_instToFormatAttribute___closed__2;
lean_object* l_Lean_Elab_instToFormatAttribute___closed__1;
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_mkAttrKindGlobal___closed__1;
uint8_t l_Lean_Syntax_isNone(lean_object*);
lean_object* l_Lean_Elab_mkAttrKindGlobal___closed__2;
lean_object* l_Lean_Elab_instToFormatAttribute___closed__3;
lean_object* l_Lean_fmt___at_Lean_Level_LevelToFormat_toResult___spec__1(lean_object*);
extern lean_object* l_Lean_mkOptionalNode___closed__1;
lean_object* l_Lean_Elab_instToFormatAttribute_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___closed__1;
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_mkAttrKindGlobal;
lean_object* lean_string_length(lean_object*);
lean_object* l_Lean_Elab_toAttributeKind___boxed(lean_object*);
extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__16;
lean_object* l_Lean_Elab_mkAttrKindGlobal___closed__3;
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
extern lean_object* l_Lean_mkOptionalNode___closed__2;
uint8_t l_Lean_Elab_toAttributeKind(lean_object*);
lean_object* l_Lean_Elab_instToFormatAttribute_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2;
@ -89,6 +96,7 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg(
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_elabAttr_match__1___rarg(lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_to_int(lean_object*);
lean_object* l_Lean_Elab_mkAttrKindGlobal___closed__4;
lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*);
lean_object* l_Array_forInUnsafe_loop___at_Array_findSomeM_x3f___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_elabDeclAttrs___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -332,37 +340,40 @@ return x_1;
uint8_t l_Lean_Elab_toAttributeKind(lean_object* x_1) {
_start:
{
uint8_t x_2;
x_2 = l_Lean_Syntax_isNone(x_1);
if (x_2 == 0)
lean_object* x_2; lean_object* x_3; uint8_t x_4;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean_Syntax_getArg(x_1, x_2);
x_4 = l_Lean_Syntax_isNone(x_3);
if (x_4 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7;
x_3 = lean_unsigned_to_nat(0u);
x_4 = l_Lean_Syntax_getArg(x_1, x_3);
x_5 = l_Lean_Syntax_getKind(x_4);
x_6 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__16;
x_7 = lean_name_eq(x_5, x_6);
lean_dec(x_5);
if (x_7 == 0)
{
uint8_t x_8;
x_8 = 1;
return x_8;
}
else
lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8;
x_5 = l_Lean_Syntax_getArg(x_3, x_2);
lean_dec(x_3);
x_6 = l_Lean_Syntax_getKind(x_5);
x_7 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__16;
x_8 = lean_name_eq(x_6, x_7);
lean_dec(x_6);
if (x_8 == 0)
{
uint8_t x_9;
x_9 = 2;
x_9 = 1;
return x_9;
}
}
else
{
uint8_t x_10;
x_10 = 0;
x_10 = 2;
return x_10;
}
}
else
{
uint8_t x_11;
lean_dec(x_3);
x_11 = 0;
return x_11;
}
}
}
lean_object* l_Lean_Elab_toAttributeKind___boxed(lean_object* x_1) {
_start:
@ -374,6 +385,54 @@ x_3 = lean_box(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_mkAttrKindGlobal___closed__1() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("attrKind");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_mkAttrKindGlobal___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__6;
x_2 = l_Lean_Elab_mkAttrKindGlobal___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_mkAttrKindGlobal___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_mkOptionalNode___closed__2;
x_2 = l_Lean_mkOptionalNode___closed__1;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_mkAttrKindGlobal___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Elab_mkAttrKindGlobal___closed__2;
x_2 = l_Lean_Elab_mkAttrKindGlobal___closed__3;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_mkAttrKindGlobal() {
_start:
{
lean_object* x_1;
x_1 = l_Lean_Elab_mkAttrKindGlobal___closed__4;
return x_1;
}
}
lean_object* l_Lean_Elab_elabAttr_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
@ -990,6 +1049,16 @@ l_Lean_Elab_instInhabitedAttribute___closed__1 = _init_l_Lean_Elab_instInhabited
lean_mark_persistent(l_Lean_Elab_instInhabitedAttribute___closed__1);
l_Lean_Elab_instInhabitedAttribute = _init_l_Lean_Elab_instInhabitedAttribute();
lean_mark_persistent(l_Lean_Elab_instInhabitedAttribute);
l_Lean_Elab_mkAttrKindGlobal___closed__1 = _init_l_Lean_Elab_mkAttrKindGlobal___closed__1();
lean_mark_persistent(l_Lean_Elab_mkAttrKindGlobal___closed__1);
l_Lean_Elab_mkAttrKindGlobal___closed__2 = _init_l_Lean_Elab_mkAttrKindGlobal___closed__2();
lean_mark_persistent(l_Lean_Elab_mkAttrKindGlobal___closed__2);
l_Lean_Elab_mkAttrKindGlobal___closed__3 = _init_l_Lean_Elab_mkAttrKindGlobal___closed__3();
lean_mark_persistent(l_Lean_Elab_mkAttrKindGlobal___closed__3);
l_Lean_Elab_mkAttrKindGlobal___closed__4 = _init_l_Lean_Elab_mkAttrKindGlobal___closed__4();
lean_mark_persistent(l_Lean_Elab_mkAttrKindGlobal___closed__4);
l_Lean_Elab_mkAttrKindGlobal = _init_l_Lean_Elab_mkAttrKindGlobal();
lean_mark_persistent(l_Lean_Elab_mkAttrKindGlobal);
l_Lean_Elab_elabAttr___rarg___lambda__3___closed__1 = _init_l_Lean_Elab_elabAttr___rarg___lambda__3___closed__1();
lean_mark_persistent(l_Lean_Elab_elabAttr___rarg___lambda__3___closed__1);
l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2 = _init_l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2();

View file

@ -26,6 +26,7 @@ size_t l_USize_add(size_t, size_t);
lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*);
lean_object* l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__3;
lean_object* l_Lean_Elab_Command_expandMutualElement_match__2(lean_object*);
lean_object* l_Lean_Elab_Command_expandInitCmd___closed__24;
extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__3___closed__2;
lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualPreamble___closed__1;
lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__4(lean_object*);
@ -100,6 +101,7 @@ lean_object* lean_array_get_size(lean_object*);
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_elabMutualInductive___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_string_append(lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__3(lean_object*);
lean_object* l_Lean_Elab_Command_expandInitCmd___closed__22;
lean_object* l_List_map___at_Lean_resolveGlobalConst___spec__2(lean_object*);
lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__9;
@ -229,6 +231,7 @@ lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__3(lean_object*);
lean_object* l_Lean_Elab_Command_elabAxiom___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_elabAxiom_match__2(lean_object*);
lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*);
lean_object* l_Lean_Elab_Command_expandInitCmd___closed__23;
lean_object* l_Lean_Elab_Command_elabAttr___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef(lean_object*);
lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__4___rarg(lean_object*, lean_object*);
@ -307,6 +310,7 @@ lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef_
lean_object* l_Lean_Elab_Command_expandInitCmd___closed__15;
uint8_t l_Lean_Syntax_isNone(lean_object*);
lean_object* l_Lean_Elab_Command_expandInitCmd___closed__18;
extern lean_object* l_Lean_Elab_mkAttrKindGlobal___closed__2;
extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__2;
lean_object* l_Lean_Elab_Modifiers_addAttribute(lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -346,6 +350,7 @@ lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__5;
lean_object* l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__3;
lean_object* l_Lean_Elab_Command_elabAxiom___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_expandInitCmd___closed__25;
lean_object* l_Lean_Meta_mkForallUsedOnlyImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_elabDeclaration___closed__5;
@ -7451,9 +7456,9 @@ static lean_object* _init_l_Lean_Elab_Command_expandInitCmd___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_instInhabitedSourceInfo___closed__1;
x_2 = l_Lean_Elab_Command_isDefLike___closed__5;
x_3 = lean_alloc_ctor(2, 2, 0);
x_1 = l_Lean_Elab_mkAttrKindGlobal___closed__2;
x_2 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__7;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
@ -7472,21 +7477,65 @@ return x_3;
static lean_object* _init_l_Lean_Elab_Command_expandInitCmd___closed__20() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("declSig");
return x_1;
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_instInhabitedSourceInfo___closed__1;
x_2 = l_Lean_Elab_Command_isDefLike___closed__5;
x_3 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandInitCmd___closed__21() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__2;
x_1 = l_Array_empty___closed__1;
x_2 = l_Lean_Elab_Command_expandInitCmd___closed__20;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandInitCmd___closed__22() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("declSig");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandInitCmd___closed__23() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__2;
x_2 = l_Lean_Elab_Command_expandInitCmd___closed__22;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandInitCmd___closed__24() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Elab_mkAttrKindGlobal___closed__2;
x_2 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___closed__13;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandInitCmd___closed__25() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Array_empty___closed__1;
x_2 = l_Lean_Elab_Command_expandInitCmd___closed__24;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}
}
lean_object* l_Lean_Elab_Command_expandInitCmd(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
@ -7498,25 +7547,25 @@ x_8 = l_Lean_Syntax_getArg(x_2, x_7);
x_9 = l_Lean_Syntax_isNone(x_6);
if (x_1 == 0)
{
lean_object* x_194;
x_194 = l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_521____closed__2;
x_10 = x_194;
goto block_193;
lean_object* x_196;
x_196 = l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_521____closed__2;
x_10 = x_196;
goto block_195;
}
else
{
lean_object* x_195;
x_195 = l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_538____closed__2;
x_10 = x_195;
goto block_193;
lean_object* x_197;
x_197 = l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_538____closed__2;
x_10 = x_197;
goto block_195;
}
block_193:
block_195:
{
lean_object* x_11;
x_11 = l_Lean_mkIdentFrom(x_2, x_10);
if (x_9 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110;
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111;
x_12 = lean_unsigned_to_nat(0u);
x_13 = l_Lean_Syntax_getArg(x_6, x_12);
x_14 = l_Lean_Syntax_getArg(x_6, x_5);
@ -7614,209 +7663,211 @@ x_70 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_70, 0, x_69);
lean_ctor_set(x_70, 1, x_68);
x_71 = lean_array_push(x_24, x_70);
x_72 = lean_array_push(x_50, x_11);
x_73 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_73, 0, x_39);
lean_ctor_set(x_73, 1, x_25);
x_74 = lean_array_push(x_72, x_73);
x_75 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__14;
x_76 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_76, 0, x_75);
lean_ctor_set(x_76, 1, x_74);
x_77 = lean_array_push(x_24, x_76);
x_78 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_78, 0, x_39);
lean_ctor_set(x_78, 1, x_77);
x_79 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__12;
x_80 = lean_array_push(x_79, x_78);
x_81 = l_myMacro____x40_Init_Data_Array_Basic___hyg_3418____closed__10;
x_82 = lean_array_push(x_80, x_81);
x_83 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__9;
x_84 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_84, 0, x_83);
lean_ctor_set(x_84, 1, x_82);
x_85 = lean_array_push(x_24, x_84);
x_86 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_86, 0, x_39);
lean_ctor_set(x_86, 1, x_85);
x_87 = lean_array_push(x_50, x_86);
x_88 = lean_array_push(x_87, x_26);
x_72 = l_Lean_Elab_Command_expandInitCmd___closed__19;
x_73 = lean_array_push(x_72, x_11);
x_74 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_74, 0, x_39);
lean_ctor_set(x_74, 1, x_25);
x_75 = lean_array_push(x_73, x_74);
x_76 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__14;
x_77 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_77, 0, x_76);
lean_ctor_set(x_77, 1, x_75);
x_78 = lean_array_push(x_24, x_77);
x_79 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_79, 0, x_39);
lean_ctor_set(x_79, 1, x_78);
x_80 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__12;
x_81 = lean_array_push(x_80, x_79);
x_82 = l_myMacro____x40_Init_Data_Array_Basic___hyg_3418____closed__10;
x_83 = lean_array_push(x_81, x_82);
x_84 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__9;
x_85 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_83);
x_86 = lean_array_push(x_24, x_85);
x_87 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_87, 0, x_39);
lean_ctor_set(x_87, 1, x_86);
x_88 = lean_array_push(x_50, x_87);
x_89 = lean_array_push(x_88, x_26);
x_90 = lean_array_push(x_89, x_26);
x_91 = lean_array_push(x_90, x_26);
x_92 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__6;
x_93 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_93, 0, x_92);
lean_ctor_set(x_93, 1, x_91);
x_94 = lean_array_push(x_24, x_93);
x_95 = l_Lean_Elab_Command_expandInitCmd___closed__19;
x_96 = lean_array_push(x_95, x_13);
x_97 = lean_array_push(x_44, x_15);
x_98 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_98, 0, x_46);
lean_ctor_set(x_98, 1, x_97);
x_99 = lean_array_push(x_50, x_98);
x_100 = l_Lean_Elab_Command_expandInitCmd___closed__21;
x_101 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_101, 0, x_100);
lean_ctor_set(x_101, 1, x_99);
x_102 = lean_array_push(x_96, x_101);
x_103 = lean_array_push(x_102, x_26);
x_104 = l_Lean_Elab_Command_isDefLike___closed__6;
x_105 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_105, 0, x_104);
lean_ctor_set(x_105, 1, x_103);
x_106 = lean_array_push(x_94, x_105);
x_107 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_107, 0, x_69);
lean_ctor_set(x_107, 1, x_106);
x_108 = lean_array_push(x_71, x_107);
x_109 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_109, 0, x_39);
lean_ctor_set(x_109, 1, x_108);
x_110 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_110, 0, x_109);
lean_ctor_set(x_110, 1, x_4);
return x_110;
x_92 = lean_array_push(x_91, x_26);
x_93 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__6;
x_94 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_94, 0, x_93);
lean_ctor_set(x_94, 1, x_92);
x_95 = lean_array_push(x_24, x_94);
x_96 = l_Lean_Elab_Command_expandInitCmd___closed__21;
x_97 = lean_array_push(x_96, x_13);
x_98 = lean_array_push(x_44, x_15);
x_99 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_99, 0, x_46);
lean_ctor_set(x_99, 1, x_98);
x_100 = lean_array_push(x_50, x_99);
x_101 = l_Lean_Elab_Command_expandInitCmd___closed__23;
x_102 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_102, 0, x_101);
lean_ctor_set(x_102, 1, x_100);
x_103 = lean_array_push(x_97, x_102);
x_104 = lean_array_push(x_103, x_26);
x_105 = l_Lean_Elab_Command_isDefLike___closed__6;
x_106 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_106, 0, x_105);
lean_ctor_set(x_106, 1, x_104);
x_107 = lean_array_push(x_95, x_106);
x_108 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_108, 0, x_69);
lean_ctor_set(x_108, 1, x_107);
x_109 = lean_array_push(x_71, x_108);
x_110 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_110, 0, x_39);
lean_ctor_set(x_110, 1, x_109);
x_111 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_111, 0, x_110);
lean_ctor_set(x_111, 1, x_4);
return x_111;
}
else
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192;
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194;
lean_dec(x_6);
x_111 = lean_ctor_get(x_3, 2);
lean_inc(x_111);
x_112 = lean_ctor_get(x_3, 1);
x_112 = lean_ctor_get(x_3, 2);
lean_inc(x_112);
x_113 = lean_ctor_get(x_3, 1);
lean_inc(x_113);
lean_dec(x_3);
x_113 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___closed__13;
x_114 = lean_array_push(x_113, x_11);
x_115 = l_myMacro____x40_Init_Notation___hyg_9707____closed__20;
x_116 = lean_array_push(x_114, x_115);
x_117 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__14;
x_118 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_118, 0, x_117);
lean_ctor_set(x_118, 1, x_116);
x_119 = l_Array_empty___closed__1;
x_120 = lean_array_push(x_119, x_118);
x_121 = l_Lean_nullKind___closed__2;
x_122 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_122, 0, x_121);
lean_ctor_set(x_122, 1, x_120);
x_123 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__12;
x_124 = lean_array_push(x_123, x_122);
x_125 = l_myMacro____x40_Init_Data_Array_Basic___hyg_3418____closed__10;
x_126 = lean_array_push(x_124, x_125);
x_127 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__9;
x_128 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_128, 0, x_127);
lean_ctor_set(x_128, 1, x_126);
x_129 = lean_array_push(x_119, x_128);
x_130 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_130, 0, x_121);
lean_ctor_set(x_130, 1, x_129);
x_131 = lean_array_push(x_113, x_130);
x_132 = lean_array_push(x_131, x_115);
x_133 = lean_array_push(x_132, x_115);
x_134 = lean_array_push(x_133, x_115);
x_135 = lean_array_push(x_134, x_115);
x_136 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__6;
x_137 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_137, 0, x_136);
lean_ctor_set(x_137, 1, x_135);
x_138 = lean_array_push(x_119, x_137);
x_139 = l_Lean_Elab_Command_expandInitCmd___closed__11;
lean_inc(x_111);
x_114 = l_Lean_Elab_Command_expandInitCmd___closed__25;
x_115 = lean_array_push(x_114, x_11);
x_116 = l_myMacro____x40_Init_Notation___hyg_9707____closed__20;
x_117 = lean_array_push(x_115, x_116);
x_118 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__14;
x_119 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_119, 0, x_118);
lean_ctor_set(x_119, 1, x_117);
x_120 = l_Array_empty___closed__1;
x_121 = lean_array_push(x_120, x_119);
x_122 = l_Lean_nullKind___closed__2;
x_123 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_123, 0, x_122);
lean_ctor_set(x_123, 1, x_121);
x_124 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__12;
x_125 = lean_array_push(x_124, x_123);
x_126 = l_myMacro____x40_Init_Data_Array_Basic___hyg_3418____closed__10;
x_127 = lean_array_push(x_125, x_126);
x_128 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__9;
x_129 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_129, 0, x_128);
lean_ctor_set(x_129, 1, x_127);
x_130 = lean_array_push(x_120, x_129);
x_131 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_131, 0, x_122);
lean_ctor_set(x_131, 1, x_130);
x_132 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___closed__13;
x_133 = lean_array_push(x_132, x_131);
x_134 = lean_array_push(x_133, x_116);
x_135 = lean_array_push(x_134, x_116);
x_136 = lean_array_push(x_135, x_116);
x_137 = lean_array_push(x_136, x_116);
x_138 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__6;
x_139 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_139, 0, x_138);
lean_ctor_set(x_139, 1, x_137);
x_140 = lean_array_push(x_120, x_139);
x_141 = l_Lean_Elab_Command_expandInitCmd___closed__11;
lean_inc(x_112);
x_140 = l_Lean_addMacroScope(x_112, x_139, x_111);
x_141 = lean_box(0);
x_142 = l_Lean_instInhabitedSourceInfo___closed__1;
x_143 = l_Lean_Elab_Command_expandInitCmd___closed__10;
x_144 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_144, 0, x_142);
lean_ctor_set(x_144, 1, x_143);
lean_ctor_set(x_144, 2, x_140);
lean_ctor_set(x_144, 3, x_141);
x_145 = lean_array_push(x_119, x_144);
x_146 = lean_array_push(x_145, x_115);
x_147 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__32;
x_148 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_148, 0, x_147);
lean_ctor_set(x_148, 1, x_146);
x_149 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__30;
x_150 = lean_array_push(x_149, x_148);
x_151 = l_myMacro____x40_Init_System_IO___hyg_2534____closed__5;
lean_inc(x_111);
lean_inc(x_113);
x_142 = l_Lean_addMacroScope(x_113, x_141, x_112);
x_143 = lean_box(0);
x_144 = l_Lean_instInhabitedSourceInfo___closed__1;
x_145 = l_Lean_Elab_Command_expandInitCmd___closed__10;
x_146 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_146, 0, x_144);
lean_ctor_set(x_146, 1, x_145);
lean_ctor_set(x_146, 2, x_142);
lean_ctor_set(x_146, 3, x_143);
x_147 = lean_array_push(x_120, x_146);
x_148 = lean_array_push(x_147, x_116);
x_149 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__32;
x_150 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_150, 0, x_149);
lean_ctor_set(x_150, 1, x_148);
x_151 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__30;
x_152 = lean_array_push(x_151, x_150);
x_153 = l_myMacro____x40_Init_System_IO___hyg_2534____closed__5;
lean_inc(x_112);
x_152 = l_Lean_addMacroScope(x_112, x_151, x_111);
x_153 = l_myMacro____x40_Init_System_IO___hyg_2534____closed__11;
x_154 = l_Lean_Elab_Command_expandInitCmd___closed__13;
x_155 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_155, 0, x_142);
lean_ctor_set(x_155, 1, x_153);
lean_ctor_set(x_155, 2, x_152);
lean_ctor_set(x_155, 3, x_154);
x_156 = lean_array_push(x_119, x_155);
x_157 = l_myMacro____x40_Init_System_IO___hyg_2534____closed__17;
x_158 = l_Lean_addMacroScope(x_112, x_157, x_111);
x_159 = l_myMacro____x40_Init_System_IO___hyg_2534____closed__16;
x_160 = l_myMacro____x40_Init_System_IO___hyg_2534____closed__19;
x_161 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_161, 0, x_142);
lean_ctor_set(x_161, 1, x_159);
lean_ctor_set(x_161, 2, x_158);
lean_ctor_set(x_161, 3, x_160);
x_162 = lean_array_push(x_119, x_161);
x_163 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_163, 0, x_121);
lean_ctor_set(x_163, 1, x_162);
x_164 = lean_array_push(x_156, x_163);
x_165 = l_myMacro____x40_Init_Notation___hyg_38____closed__8;
x_166 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_166, 0, x_165);
lean_ctor_set(x_166, 1, x_164);
x_167 = l_myMacro____x40_Init_Notation___hyg_11836____closed__11;
x_168 = lean_array_push(x_167, x_166);
x_169 = l_Lean_expandExplicitBindersAux_loop___closed__8;
x_170 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_170, 0, x_169);
lean_ctor_set(x_170, 1, x_168);
x_171 = lean_array_push(x_119, x_170);
lean_inc(x_113);
x_154 = l_Lean_addMacroScope(x_113, x_153, x_112);
x_155 = l_myMacro____x40_Init_System_IO___hyg_2534____closed__11;
x_156 = l_Lean_Elab_Command_expandInitCmd___closed__13;
x_157 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_157, 0, x_144);
lean_ctor_set(x_157, 1, x_155);
lean_ctor_set(x_157, 2, x_154);
lean_ctor_set(x_157, 3, x_156);
x_158 = lean_array_push(x_120, x_157);
x_159 = l_myMacro____x40_Init_System_IO___hyg_2534____closed__17;
x_160 = l_Lean_addMacroScope(x_113, x_159, x_112);
x_161 = l_myMacro____x40_Init_System_IO___hyg_2534____closed__16;
x_162 = l_myMacro____x40_Init_System_IO___hyg_2534____closed__19;
x_163 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_163, 0, x_144);
lean_ctor_set(x_163, 1, x_161);
lean_ctor_set(x_163, 2, x_160);
lean_ctor_set(x_163, 3, x_162);
x_164 = lean_array_push(x_120, x_163);
x_165 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_165, 0, x_122);
lean_ctor_set(x_165, 1, x_164);
x_166 = lean_array_push(x_158, x_165);
x_167 = l_myMacro____x40_Init_Notation___hyg_38____closed__8;
x_168 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_168, 0, x_167);
lean_ctor_set(x_168, 1, x_166);
x_169 = l_myMacro____x40_Init_Notation___hyg_11836____closed__11;
x_170 = lean_array_push(x_169, x_168);
x_171 = l_Lean_expandExplicitBindersAux_loop___closed__8;
x_172 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_172, 0, x_121);
lean_ctor_set(x_172, 1, x_171);
x_173 = lean_array_push(x_113, x_172);
x_174 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__34;
x_175 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_175, 0, x_174);
lean_ctor_set(x_175, 1, x_173);
x_176 = lean_array_push(x_150, x_175);
x_177 = l_Lean_Elab_Command_expandInitCmd___closed__17;
x_178 = lean_array_push(x_177, x_8);
x_179 = l_Lean_Elab_Command_expandInitCmd___closed__15;
x_180 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_180, 0, x_179);
lean_ctor_set(x_180, 1, x_178);
x_181 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15292____closed__5;
x_182 = lean_array_push(x_181, x_180);
x_183 = lean_array_push(x_182, x_115);
x_184 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__53;
x_185 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_185, 0, x_184);
lean_ctor_set(x_185, 1, x_183);
x_186 = lean_array_push(x_176, x_185);
x_187 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__28;
x_188 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_188, 0, x_187);
lean_ctor_set(x_188, 1, x_186);
x_189 = lean_array_push(x_138, x_188);
x_190 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__4;
x_191 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_191, 0, x_190);
lean_ctor_set(x_191, 1, x_189);
x_192 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_192, 0, x_191);
lean_ctor_set(x_192, 1, x_4);
return x_192;
lean_ctor_set(x_172, 0, x_171);
lean_ctor_set(x_172, 1, x_170);
x_173 = lean_array_push(x_120, x_172);
x_174 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_174, 0, x_122);
lean_ctor_set(x_174, 1, x_173);
x_175 = lean_array_push(x_132, x_174);
x_176 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__34;
x_177 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_177, 0, x_176);
lean_ctor_set(x_177, 1, x_175);
x_178 = lean_array_push(x_152, x_177);
x_179 = l_Lean_Elab_Command_expandInitCmd___closed__17;
x_180 = lean_array_push(x_179, x_8);
x_181 = l_Lean_Elab_Command_expandInitCmd___closed__15;
x_182 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_182, 0, x_181);
lean_ctor_set(x_182, 1, x_180);
x_183 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15292____closed__5;
x_184 = lean_array_push(x_183, x_182);
x_185 = lean_array_push(x_184, x_116);
x_186 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__53;
x_187 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_187, 0, x_186);
lean_ctor_set(x_187, 1, x_185);
x_188 = lean_array_push(x_178, x_187);
x_189 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__28;
x_190 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_190, 0, x_189);
lean_ctor_set(x_190, 1, x_188);
x_191 = lean_array_push(x_140, x_190);
x_192 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1135____closed__4;
x_193 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_193, 0, x_192);
lean_ctor_set(x_193, 1, x_191);
x_194 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_194, 0, x_193);
lean_ctor_set(x_194, 1, x_4);
return x_194;
}
}
}
@ -8123,6 +8174,14 @@ l_Lean_Elab_Command_expandInitCmd___closed__20 = _init_l_Lean_Elab_Command_expan
lean_mark_persistent(l_Lean_Elab_Command_expandInitCmd___closed__20);
l_Lean_Elab_Command_expandInitCmd___closed__21 = _init_l_Lean_Elab_Command_expandInitCmd___closed__21();
lean_mark_persistent(l_Lean_Elab_Command_expandInitCmd___closed__21);
l_Lean_Elab_Command_expandInitCmd___closed__22 = _init_l_Lean_Elab_Command_expandInitCmd___closed__22();
lean_mark_persistent(l_Lean_Elab_Command_expandInitCmd___closed__22);
l_Lean_Elab_Command_expandInitCmd___closed__23 = _init_l_Lean_Elab_Command_expandInitCmd___closed__23();
lean_mark_persistent(l_Lean_Elab_Command_expandInitCmd___closed__23);
l_Lean_Elab_Command_expandInitCmd___closed__24 = _init_l_Lean_Elab_Command_expandInitCmd___closed__24();
lean_mark_persistent(l_Lean_Elab_Command_expandInitCmd___closed__24);
l_Lean_Elab_Command_expandInitCmd___closed__25 = _init_l_Lean_Elab_Command_expandInitCmd___closed__25();
lean_mark_persistent(l_Lean_Elab_Command_expandInitCmd___closed__25);
l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__1);
l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__2();

File diff suppressed because it is too large Load diff

View file

@ -178,7 +178,6 @@ lean_object* l_Lean_Parser_Term_stx_quot___closed__2;
lean_object* l_Lean_Parser_Command_parserKind___elambda__1___closed__3;
lean_object* l_Lean_Parser_Command_syntaxAbbrev___closed__4;
lean_object* l___regBuiltin_Lean_Parser_Term_stx_quot_formatter(lean_object*);
extern lean_object* l_Lean_Parser_Term_attrKind___closed__7;
lean_object* l_Lean_Parser_Command_macroTailDefault_parenthesizer___closed__4;
lean_object* l_Lean_Parser_Command_elab__rules_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_parserPrio_formatter___closed__1;
@ -751,6 +750,7 @@ lean_object* l_Lean_Parser_Syntax_binary___elambda__1___closed__1;
lean_object* l_Lean_Parser_Syntax_cat___elambda__1___closed__2;
lean_object* l_Lean_Parser_Command_prefix___closed__2;
lean_object* l_Lean_Parser_Command_macroArg___elambda__1___closed__1;
extern lean_object* l_Lean_Parser_Term_attrKind___closed__4;
lean_object* l_Lean_Parser_Command_notationItem___closed__2;
lean_object* l_Lean_Parser_Command_elab__rules___elambda__1___closed__1;
lean_object* l_Lean_Parser_Command_optKindPrio_formatter___closed__4;
@ -5977,7 +5977,7 @@ static lean_object* _init_l_Lean_Parser_Command_mixfix___elambda__1___closed__10
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_attrKind___closed__7;
x_1 = l_Lean_Parser_Term_attrKind___closed__4;
x_2 = l_Lean_Parser_Command_mixfix___elambda__1___closed__9;
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
lean_closure_set(x_3, 0, x_1);
@ -7616,7 +7616,7 @@ static lean_object* _init_l_Lean_Parser_Command_notation___elambda__1___closed__
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_attrKind___closed__7;
x_1 = l_Lean_Parser_Term_attrKind___closed__4;
x_2 = l_Lean_Parser_Command_notation___elambda__1___closed__11;
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
lean_closure_set(x_3, 0, x_1);
@ -9471,7 +9471,7 @@ static lean_object* _init_l_Lean_Parser_Command_syntax___elambda__1___closed__12
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Term_attrKind___closed__7;
x_1 = l_Lean_Parser_Term_attrKind___closed__4;
x_2 = l_Lean_Parser_Command_syntax___elambda__1___closed__11;
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
lean_closure_set(x_3, 0, x_1);

File diff suppressed because it is too large Load diff