// Lean compiler output
// Module: Lean.Elab.MacroRules
// Imports: Init Lean.Elab.Syntax Lean.Elab.AuxDef
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
uint8_t l_Lean_Syntax_isQuot(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__34;
lean_object* lean_array_set(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__6;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
size_t lean_usize_add(size_t, size_t);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__48;
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__11;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__7;
lean_object* l_Lean_stringToMessageData(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__50;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__22;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__18;
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__15;
lean_object* l_Lean_Syntax_getHeadInfo_x3f(lean_object*);
lean_object* l_Lean_Elab_Command_expandNoKindMacroRulesAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_nullKind;
lean_object* lean_name_mk_string(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__14;
lean_object* lean_array_uget(lean_object*, size_t);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__28;
lean_object* l_Array_append___rarg(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__30;
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__5;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__5;
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__4;
extern lean_object* l_Lean_Elab_Command_commandElabAttribute;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__33;
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules(lean_object*);
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__9;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__13;
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__3;
static lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__3;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__23;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__41;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__52;
lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabAuxDef___spec__4(lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__2;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__62;
uint8_t lean_name_eq(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__54;
lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__1;
lean_object* lean_array_push(lean_object*, lean_object*);
lean_object* lean_array_get_size(lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__45;
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__2;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__9;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__27;
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__7;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__40;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__25;
lean_object* lean_string_utf8_byte_size(lean_object*);
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__36;
uint8_t lean_usize_dec_lt(size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__29;
uint8_t l_Lean_Elab_Command_checkRuleKind(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__1;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__37;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__53;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__42;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___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_Command_resolveSyntaxKind(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_SepArray_ofElems(lean_object*, lean_object*);
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__1;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__55;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__2(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_elabMacroRules___lambda__1___closed__2;
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__8;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__3;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__56;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__43;
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__13;
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__32;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__10;
static lean_object* l_Lean_Elab_Command_elabMacroRules___closed__1;
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__6;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__20;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getId(lean_object*);
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__5;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__46;
lean_object* l_Lean_Elab_Command_adaptExpander(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_choiceKind;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__16;
lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__5;
static lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__3;
extern lean_object* l_Lean_instInhabitedSyntax;
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__14;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__59;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__11;
size_t lean_usize_of_nat(lean_object*);
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_isNodeOf(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getQuotContent(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__4;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__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_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMacroRulesAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__61;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__2;
lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__49;
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__8;
static lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__4;
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMacroRulesAux___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__2;
lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*);
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__7;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__31;
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__1;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__7;
lean_object* l_Lean_Syntax_getArgs(lean_object*);
lean_object* l_Lean_Syntax_getKind(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__24;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__63;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___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* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_inferMacroRulesAltKind___spec__2___rarg(lean_object*);
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__12___rarg(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__1;
static lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__1;
lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__2;
lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__58;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__26;
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__3;
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__4;
static lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__4;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__39;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__35;
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__10;
uint8_t l_Lean_Syntax_isNone(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__6;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__38;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__21;
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__4;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__1___boxed(lean_object*, lean_object*);
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__12;
lean_object* lean_mk_syntax_ident(lean_object*);
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRulesAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__1(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__19;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__51;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__44;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__60;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__1;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__47;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__1;
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__6;
static lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__5;
static lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__3;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__3;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__12;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__17;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__4;
static lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__2;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__57;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__8;
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMacroRulesAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) {
_start:
{
uint8_t x_7; 
x_7 = lean_usize_dec_lt(x_5, x_4);
if (x_7 == 0)
{
lean_inc(x_6);
return x_6;
}
else
{
lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_8 = lean_array_uget(x_3, x_5);
lean_inc(x_8);
x_9 = l_Lean_Syntax_getKind(x_8);
x_10 = l_Lean_Elab_Command_checkRuleKind(x_9, x_1);
lean_dec(x_9);
if (x_10 == 0)
{
size_t x_11; size_t x_12; 
lean_dec(x_8);
x_11 = 1;
x_12 = lean_usize_add(x_5, x_11);
{
size_t _tmp_4 = x_12;
lean_object* _tmp_5 = x_2;
x_5 = _tmp_4;
x_6 = _tmp_5;
}
goto _start;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_8);
x_15 = lean_box(0);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_14);
lean_ctor_set(x_16, 1, x_15);
return x_16;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("|");
return x_1;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("null");
return x_1;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__2;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string(",");
return x_1;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("=>");
return x_1;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(4u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("invalid macro_rules alternative, unexpected syntax node kind '");
return x_1;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__8;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("'");
return x_1;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__10;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(0, 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_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("invalid macro_rules alternative, expected syntax node kind '");
return x_1;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__13;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; lean_object* x_12; uint8_t x_13; 
lean_inc(x_1);
x_11 = l_Lean_Syntax_getQuotContent(x_1);
lean_inc(x_11);
x_12 = l_Lean_Syntax_getKind(x_11);
x_13 = l_Lean_Elab_Command_checkRuleKind(x_12, x_5);
if (x_13 == 0)
{
lean_object* x_14; uint8_t x_15; 
x_14 = l_Lean_choiceKind;
x_15 = lean_name_eq(x_12, x_14);
if (x_15 == 0)
{
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_dec(x_11);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_16 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_16, 0, x_12);
x_17 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__9;
x_18 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_18, 0, x_17);
lean_ctor_set(x_18, 1, x_16);
x_19 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__11;
x_20 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_20, 0, x_18);
lean_ctor_set(x_20, 1, x_19);
x_21 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__10(x_6, x_20, x_8, x_9, x_10);
return x_21;
}
else
{
lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
lean_dec(x_12);
x_22 = l_Lean_Syntax_getArgs(x_11);
lean_dec(x_11);
x_23 = lean_array_get_size(x_22);
x_24 = lean_usize_of_nat(x_23);
lean_dec(x_23);
x_25 = 0;
x_26 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__12;
x_27 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMacroRulesAux___spec__1(x_5, x_26, x_22, x_24, x_25, x_26);
lean_dec(x_22);
x_28 = lean_ctor_get(x_27, 0);
lean_inc(x_28);
lean_dec(x_27);
if (lean_obj_tag(x_28) == 0)
{
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_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_29 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_29, 0, x_5);
x_30 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__14;
x_31 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_31, 0, x_30);
lean_ctor_set(x_31, 1, x_29);
x_32 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__11;
x_33 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_33, 0, x_31);
lean_ctor_set(x_33, 1, x_32);
x_34 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__10(x_6, x_33, x_8, x_9, x_10);
return x_34;
}
else
{
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; uint8_t x_46; 
lean_dec(x_6);
lean_dec(x_5);
x_35 = lean_ctor_get(x_28, 0);
lean_inc(x_35);
lean_dec(x_28);
x_36 = lean_unsigned_to_nat(1u);
x_37 = l_Lean_Syntax_setArg(x_1, x_36, x_35);
x_38 = lean_unsigned_to_nat(0u);
x_39 = lean_array_set(x_2, x_38, x_37);
x_40 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabAuxDef___spec__4(x_8, x_9, x_10);
x_41 = lean_ctor_get(x_40, 0);
lean_inc(x_41);
x_42 = lean_ctor_get(x_40, 1);
lean_inc(x_42);
lean_dec(x_40);
x_43 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_42);
lean_dec(x_8);
x_44 = lean_ctor_get(x_43, 1);
lean_inc(x_44);
lean_dec(x_43);
x_45 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_44);
lean_dec(x_9);
x_46 = !lean_is_exclusive(x_45);
if (x_46 == 0)
{
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; 
x_47 = lean_ctor_get(x_45, 0);
lean_dec(x_47);
x_48 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__1;
lean_inc(x_41);
x_49 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_49, 0, x_41);
lean_ctor_set(x_49, 1, x_48);
x_50 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__5;
x_51 = l_Lean_Syntax_SepArray_ofElems(x_50, x_39);
lean_dec(x_39);
x_52 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__4;
x_53 = l_Array_append___rarg(x_52, x_51);
x_54 = lean_box(2);
x_55 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__3;
x_56 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_56, 0, x_54);
lean_ctor_set(x_56, 1, x_55);
lean_ctor_set(x_56, 2, x_53);
x_57 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__6;
x_58 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_58, 0, x_41);
lean_ctor_set(x_58, 1, x_57);
x_59 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__7;
x_60 = lean_array_push(x_59, x_49);
x_61 = lean_array_push(x_60, x_56);
x_62 = lean_array_push(x_61, x_58);
x_63 = lean_array_push(x_62, x_3);
x_64 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_64, 0, x_54);
lean_ctor_set(x_64, 1, x_4);
lean_ctor_set(x_64, 2, x_63);
lean_ctor_set(x_45, 0, x_64);
return x_45;
}
else
{
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; 
x_65 = lean_ctor_get(x_45, 1);
lean_inc(x_65);
lean_dec(x_45);
x_66 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__1;
lean_inc(x_41);
x_67 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_67, 0, x_41);
lean_ctor_set(x_67, 1, x_66);
x_68 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__5;
x_69 = l_Lean_Syntax_SepArray_ofElems(x_68, x_39);
lean_dec(x_39);
x_70 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__4;
x_71 = l_Array_append___rarg(x_70, x_69);
x_72 = lean_box(2);
x_73 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__3;
x_74 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_74, 0, x_72);
lean_ctor_set(x_74, 1, x_73);
lean_ctor_set(x_74, 2, x_71);
x_75 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__6;
x_76 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_76, 0, x_41);
lean_ctor_set(x_76, 1, x_75);
x_77 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__7;
x_78 = lean_array_push(x_77, x_67);
x_79 = lean_array_push(x_78, x_74);
x_80 = lean_array_push(x_79, x_76);
x_81 = lean_array_push(x_80, x_3);
x_82 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_82, 0, x_72);
lean_ctor_set(x_82, 1, x_4);
lean_ctor_set(x_82, 2, x_81);
x_83 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_65);
return x_83;
}
}
}
}
else
{
lean_object* x_84; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_84 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_84, 0, x_6);
lean_ctor_set(x_84, 1, x_10);
return x_84;
}
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Lean");
return x_1;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Parser");
return x_1;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__2;
x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Term");
return x_1;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__4;
x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__5;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("matchAlt");
return x_1;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__6;
x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__7;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
uint8_t x_8; 
x_8 = lean_usize_dec_lt(x_3, x_2);
if (x_8 == 0)
{
lean_object* x_9; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_1);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_4);
lean_ctor_set(x_9, 1, x_7);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_10 = lean_array_uget(x_4, x_3);
x_11 = lean_unsigned_to_nat(0u);
x_12 = lean_array_uset(x_4, x_3, x_11);
x_13 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__8;
lean_inc(x_10);
x_14 = l_Lean_Syntax_isOfKind(x_10, x_13);
if (x_14 == 0)
{
lean_object* x_15; uint8_t x_16; 
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_1);
x_15 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__12___rarg(x_7);
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
return x_15;
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_17 = lean_ctor_get(x_15, 0);
x_18 = lean_ctor_get(x_15, 1);
lean_inc(x_18);
lean_inc(x_17);
lean_dec(x_15);
x_19 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_18);
return x_19;
}
}
else
{
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; uint8_t x_27; 
x_20 = lean_unsigned_to_nat(1u);
x_21 = l_Lean_Syntax_getArg(x_10, x_20);
x_22 = lean_unsigned_to_nat(3u);
x_23 = l_Lean_Syntax_getArg(x_10, x_22);
x_24 = l_Lean_Syntax_getArgs(x_21);
lean_dec(x_21);
x_25 = l_Lean_instInhabitedSyntax;
x_26 = lean_array_get(x_25, x_24, x_11);
x_27 = l_Lean_Syntax_isQuot(x_26);
if (x_27 == 0)
{
lean_object* x_28; uint8_t x_29; 
lean_dec(x_26);
lean_dec(x_24);
lean_dec(x_23);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_1);
x_28 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_inferMacroRulesAltKind___spec__2___rarg(x_7);
x_29 = !lean_is_exclusive(x_28);
if (x_29 == 0)
{
return x_28;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_30 = lean_ctor_get(x_28, 0);
x_31 = lean_ctor_get(x_28, 1);
lean_inc(x_31);
lean_inc(x_30);
lean_dec(x_28);
x_32 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_32, 0, x_30);
lean_ctor_set(x_32, 1, x_31);
return x_32;
}
}
else
{
lean_object* x_33; lean_object* x_34; 
x_33 = lean_box(0);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_1);
x_34 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2(x_26, x_24, x_23, x_13, x_1, x_10, x_33, x_5, x_6, x_7);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_35; lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; 
x_35 = lean_ctor_get(x_34, 0);
lean_inc(x_35);
x_36 = lean_ctor_get(x_34, 1);
lean_inc(x_36);
lean_dec(x_34);
x_37 = 1;
x_38 = lean_usize_add(x_3, x_37);
x_39 = lean_array_uset(x_12, x_3, x_35);
x_3 = x_38;
x_4 = x_39;
x_7 = x_36;
goto _start;
}
else
{
uint8_t x_41; 
lean_dec(x_12);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_1);
x_41 = !lean_is_exclusive(x_34);
if (x_41 == 0)
{
return x_34;
}
else
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; 
x_42 = lean_ctor_get(x_34, 0);
x_43 = lean_ctor_get(x_34, 1);
lean_inc(x_43);
lean_inc(x_42);
lean_dec(x_34);
x_44 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_44, 0, x_42);
lean_ctor_set(x_44, 1, x_43);
return x_44;
}
}
}
}
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Elab");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__2;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Command");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__2;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("aux_def");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__5;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("attributes");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__6;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__7;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("@[");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("attrInstance");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__6;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__10;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Attr");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__4;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("macro");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__13;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__14;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(2u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("]");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(3u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__20() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("macroRules");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__21() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__20;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__20;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean_Elab_Command_elabMacroRulesAux___closed__21;
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__23() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__20;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__24() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string(":");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__25() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Macro");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__26() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__25;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__25;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean_Elab_Command_elabMacroRulesAux___closed__26;
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__28() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__25;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__29() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__2;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__25;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__30() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__29;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__31() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__30;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__32() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string(":=");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__33() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("fun");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__34() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__6;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__33;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__35() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("matchAlts");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__36() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__6;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__35;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__37() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("hole");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__38() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__6;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__37;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__39() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("_");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__40() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("app");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__41() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__6;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__40;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__42() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("throw");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__43() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__42;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__44() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__42;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean_Elab_Command_elabMacroRulesAux___closed__43;
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__45() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__42;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__46() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("MonadExcept");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__47() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__46;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__48() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__47;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__42;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__49() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__48;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__50() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__49;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__51() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Lean.Macro.Exception.unsupportedSyntax");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__52() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__51;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__53() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__51;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean_Elab_Command_elabMacroRulesAux___closed__52;
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__54() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Exception");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__55() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__29;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__54;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__56() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("unsupportedSyntax");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__57() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__55;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__56;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__58() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__57;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__59() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__58;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__60() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(8u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__61() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__4;
x_2 = l_Array_append___rarg(x_1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__62() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_box(2);
x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__3;
x_3 = l_Lean_Elab_Command_elabMacroRulesAux___closed__61;
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__63() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__60;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__62;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRulesAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; 
x_9 = lean_array_get_size(x_5);
x_10 = lean_usize_of_nat(x_9);
lean_dec(x_9);
x_11 = 0;
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_4);
x_12 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2(x_4, x_10, x_11, x_5, x_6, x_7, x_8);
if (lean_obj_tag(x_12) == 0)
{
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; uint8_t x_22; 
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
lean_dec(x_12);
x_15 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabAuxDef___spec__4(x_6, x_7, x_14);
x_16 = lean_ctor_get(x_15, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_15, 1);
lean_inc(x_17);
lean_dec(x_15);
x_18 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_17);
lean_dec(x_6);
x_19 = lean_ctor_get(x_18, 0);
lean_inc(x_19);
x_20 = lean_ctor_get(x_18, 1);
lean_inc(x_20);
lean_dec(x_18);
x_21 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_20);
lean_dec(x_7);
x_22 = !lean_is_exclusive(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; 
x_23 = lean_ctor_get(x_21, 0);
x_24 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9;
lean_inc(x_16);
x_25 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_25, 0, x_16);
lean_ctor_set(x_25, 1, x_24);
x_26 = l_Lean_Elab_Command_elabMacroRulesAux___closed__14;
lean_inc(x_16);
x_27 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_27, 0, x_16);
lean_ctor_set(x_27, 1, x_26);
lean_inc(x_4);
x_28 = lean_mk_syntax_ident(x_4);
x_29 = l_Lean_Elab_Command_elabMacroRulesAux___closed__16;
x_30 = lean_array_push(x_29, x_27);
x_31 = lean_array_push(x_30, x_28);
x_32 = lean_box(2);
x_33 = l_Lean_Elab_Command_elabMacroRulesAux___closed__15;
x_34 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_34, 0, x_32);
lean_ctor_set(x_34, 1, x_33);
lean_ctor_set(x_34, 2, x_31);
x_35 = lean_array_push(x_29, x_2);
x_36 = lean_array_push(x_35, x_34);
x_37 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11;
x_38 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_38, 0, x_32);
lean_ctor_set(x_38, 1, x_37);
lean_ctor_set(x_38, 2, x_36);
x_39 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17;
x_40 = lean_array_push(x_39, x_38);
x_41 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__3;
x_42 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_42, 0, x_32);
lean_ctor_set(x_42, 1, x_41);
lean_ctor_set(x_42, 2, x_40);
x_43 = l_Lean_Elab_Command_elabMacroRulesAux___closed__18;
lean_inc(x_16);
x_44 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_44, 0, x_16);
lean_ctor_set(x_44, 1, x_43);
x_45 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19;
x_46 = lean_array_push(x_45, x_25);
x_47 = lean_array_push(x_46, x_42);
x_48 = lean_array_push(x_47, x_44);
x_49 = l_Lean_Elab_Command_elabMacroRulesAux___closed__8;
x_50 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_50, 0, x_32);
lean_ctor_set(x_50, 1, x_49);
lean_ctor_set(x_50, 2, x_48);
x_51 = lean_array_push(x_39, x_50);
x_52 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_52, 0, x_32);
lean_ctor_set(x_52, 1, x_41);
lean_ctor_set(x_52, 2, x_51);
x_53 = l_Lean_Elab_Command_elabMacroRulesAux___closed__5;
lean_inc(x_16);
x_54 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_54, 0, x_16);
lean_ctor_set(x_54, 1, x_53);
x_55 = l_Lean_Elab_Command_elabMacroRulesAux___closed__23;
lean_inc(x_19);
lean_inc(x_23);
x_56 = l_Lean_addMacroScope(x_23, x_55, x_19);
x_57 = lean_box(0);
x_58 = l_Lean_Elab_Command_elabMacroRulesAux___closed__22;
lean_inc(x_16);
x_59 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_59, 0, x_16);
lean_ctor_set(x_59, 1, x_58);
lean_ctor_set(x_59, 2, x_56);
lean_ctor_set(x_59, 3, x_57);
x_60 = l_Lean_mkIdentFrom(x_3, x_4);
x_61 = lean_array_push(x_29, x_59);
x_62 = lean_array_push(x_61, x_60);
x_63 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_63, 0, x_32);
lean_ctor_set(x_63, 1, x_41);
lean_ctor_set(x_63, 2, x_62);
x_64 = l_Lean_Elab_Command_elabMacroRulesAux___closed__24;
lean_inc(x_16);
x_65 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_65, 0, x_16);
lean_ctor_set(x_65, 1, x_64);
x_66 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28;
lean_inc(x_19);
lean_inc(x_23);
x_67 = l_Lean_addMacroScope(x_23, x_66, x_19);
x_68 = l_Lean_Elab_Command_elabMacroRulesAux___closed__27;
x_69 = l_Lean_Elab_Command_elabMacroRulesAux___closed__31;
lean_inc(x_16);
x_70 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_70, 0, x_16);
lean_ctor_set(x_70, 1, x_68);
lean_ctor_set(x_70, 2, x_67);
lean_ctor_set(x_70, 3, x_69);
x_71 = l_Lean_Elab_Command_elabMacroRulesAux___closed__32;
lean_inc(x_16);
x_72 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_72, 0, x_16);
lean_ctor_set(x_72, 1, x_71);
x_73 = l_Lean_Elab_Command_elabMacroRulesAux___closed__33;
lean_inc(x_16);
x_74 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_74, 0, x_16);
lean_ctor_set(x_74, 1, x_73);
x_75 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__4;
x_76 = l_Array_append___rarg(x_75, x_13);
x_77 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__1;
lean_inc(x_16);
x_78 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_78, 0, x_16);
lean_ctor_set(x_78, 1, x_77);
x_79 = l_Lean_Elab_Command_elabMacroRulesAux___closed__39;
lean_inc(x_16);
x_80 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_80, 0, x_16);
lean_ctor_set(x_80, 1, x_79);
x_81 = lean_array_push(x_39, x_80);
x_82 = l_Lean_Elab_Command_elabMacroRulesAux___closed__38;
x_83 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_83, 0, x_32);
lean_ctor_set(x_83, 1, x_82);
lean_ctor_set(x_83, 2, x_81);
x_84 = lean_array_push(x_39, x_83);
x_85 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_85, 0, x_32);
lean_ctor_set(x_85, 1, x_41);
lean_ctor_set(x_85, 2, x_84);
x_86 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__6;
lean_inc(x_16);
x_87 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_87, 0, x_16);
lean_ctor_set(x_87, 1, x_86);
x_88 = l_Lean_Elab_Command_elabMacroRulesAux___closed__45;
lean_inc(x_19);
lean_inc(x_23);
x_89 = l_Lean_addMacroScope(x_23, x_88, x_19);
x_90 = l_Lean_Elab_Command_elabMacroRulesAux___closed__44;
x_91 = l_Lean_Elab_Command_elabMacroRulesAux___closed__50;
lean_inc(x_16);
x_92 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_92, 0, x_16);
lean_ctor_set(x_92, 1, x_90);
lean_ctor_set(x_92, 2, x_89);
lean_ctor_set(x_92, 3, x_91);
x_93 = l_Lean_Elab_Command_elabMacroRulesAux___closed__57;
x_94 = l_Lean_addMacroScope(x_23, x_93, x_19);
x_95 = l_Lean_Elab_Command_elabMacroRulesAux___closed__53;
x_96 = l_Lean_Elab_Command_elabMacroRulesAux___closed__59;
x_97 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_97, 0, x_16);
lean_ctor_set(x_97, 1, x_95);
lean_ctor_set(x_97, 2, x_94);
lean_ctor_set(x_97, 3, x_96);
x_98 = lean_array_push(x_39, x_97);
x_99 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_99, 0, x_32);
lean_ctor_set(x_99, 1, x_41);
lean_ctor_set(x_99, 2, x_98);
x_100 = lean_array_push(x_29, x_92);
x_101 = lean_array_push(x_100, x_99);
x_102 = l_Lean_Elab_Command_elabMacroRulesAux___closed__41;
x_103 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_103, 0, x_32);
lean_ctor_set(x_103, 1, x_102);
lean_ctor_set(x_103, 2, x_101);
x_104 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__7;
x_105 = lean_array_push(x_104, x_78);
x_106 = lean_array_push(x_105, x_85);
x_107 = lean_array_push(x_106, x_87);
x_108 = lean_array_push(x_107, x_103);
x_109 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__8;
x_110 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_110, 0, x_32);
lean_ctor_set(x_110, 1, x_109);
lean_ctor_set(x_110, 2, x_108);
x_111 = lean_array_push(x_76, x_110);
x_112 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_112, 0, x_32);
lean_ctor_set(x_112, 1, x_41);
lean_ctor_set(x_112, 2, x_111);
x_113 = lean_array_push(x_39, x_112);
x_114 = l_Lean_Elab_Command_elabMacroRulesAux___closed__36;
x_115 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_115, 0, x_32);
lean_ctor_set(x_115, 1, x_114);
lean_ctor_set(x_115, 2, x_113);
x_116 = lean_array_push(x_29, x_74);
x_117 = lean_array_push(x_116, x_115);
x_118 = l_Lean_Elab_Command_elabMacroRulesAux___closed__34;
x_119 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_119, 0, x_32);
lean_ctor_set(x_119, 1, x_118);
lean_ctor_set(x_119, 2, x_117);
if (lean_obj_tag(x_1) == 0)
{
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; 
x_120 = l_Lean_Elab_Command_elabMacroRulesAux___closed__63;
x_121 = lean_array_push(x_120, x_52);
x_122 = lean_array_push(x_121, x_54);
x_123 = lean_array_push(x_122, x_63);
x_124 = lean_array_push(x_123, x_65);
x_125 = lean_array_push(x_124, x_70);
x_126 = lean_array_push(x_125, x_72);
x_127 = lean_array_push(x_126, x_119);
x_128 = l_Lean_Elab_Command_elabMacroRulesAux___closed__6;
x_129 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_129, 0, x_32);
lean_ctor_set(x_129, 1, x_128);
lean_ctor_set(x_129, 2, x_127);
lean_ctor_set(x_21, 0, x_129);
return x_21;
}
else
{
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; 
x_130 = lean_ctor_get(x_1, 0);
lean_inc(x_130);
lean_dec(x_1);
x_131 = lean_array_push(x_39, x_130);
x_132 = l_Array_append___rarg(x_75, x_131);
x_133 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_133, 0, x_32);
lean_ctor_set(x_133, 1, x_41);
lean_ctor_set(x_133, 2, x_132);
x_134 = l_Lean_Elab_Command_elabMacroRulesAux___closed__60;
x_135 = lean_array_push(x_134, x_133);
x_136 = lean_array_push(x_135, x_52);
x_137 = lean_array_push(x_136, x_54);
x_138 = lean_array_push(x_137, x_63);
x_139 = lean_array_push(x_138, x_65);
x_140 = lean_array_push(x_139, x_70);
x_141 = lean_array_push(x_140, x_72);
x_142 = lean_array_push(x_141, x_119);
x_143 = l_Lean_Elab_Command_elabMacroRulesAux___closed__6;
x_144 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_144, 0, x_32);
lean_ctor_set(x_144, 1, x_143);
lean_ctor_set(x_144, 2, x_142);
lean_ctor_set(x_21, 0, x_144);
return x_21;
}
}
else
{
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_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; 
x_145 = lean_ctor_get(x_21, 0);
x_146 = lean_ctor_get(x_21, 1);
lean_inc(x_146);
lean_inc(x_145);
lean_dec(x_21);
x_147 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9;
lean_inc(x_16);
x_148 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_148, 0, x_16);
lean_ctor_set(x_148, 1, x_147);
x_149 = l_Lean_Elab_Command_elabMacroRulesAux___closed__14;
lean_inc(x_16);
x_150 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_150, 0, x_16);
lean_ctor_set(x_150, 1, x_149);
lean_inc(x_4);
x_151 = lean_mk_syntax_ident(x_4);
x_152 = l_Lean_Elab_Command_elabMacroRulesAux___closed__16;
x_153 = lean_array_push(x_152, x_150);
x_154 = lean_array_push(x_153, x_151);
x_155 = lean_box(2);
x_156 = l_Lean_Elab_Command_elabMacroRulesAux___closed__15;
x_157 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_157, 0, x_155);
lean_ctor_set(x_157, 1, x_156);
lean_ctor_set(x_157, 2, x_154);
x_158 = lean_array_push(x_152, x_2);
x_159 = lean_array_push(x_158, x_157);
x_160 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11;
x_161 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_161, 0, x_155);
lean_ctor_set(x_161, 1, x_160);
lean_ctor_set(x_161, 2, x_159);
x_162 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17;
x_163 = lean_array_push(x_162, x_161);
x_164 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__3;
x_165 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_165, 0, x_155);
lean_ctor_set(x_165, 1, x_164);
lean_ctor_set(x_165, 2, x_163);
x_166 = l_Lean_Elab_Command_elabMacroRulesAux___closed__18;
lean_inc(x_16);
x_167 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_167, 0, x_16);
lean_ctor_set(x_167, 1, x_166);
x_168 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19;
x_169 = lean_array_push(x_168, x_148);
x_170 = lean_array_push(x_169, x_165);
x_171 = lean_array_push(x_170, x_167);
x_172 = l_Lean_Elab_Command_elabMacroRulesAux___closed__8;
x_173 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_173, 0, x_155);
lean_ctor_set(x_173, 1, x_172);
lean_ctor_set(x_173, 2, x_171);
x_174 = lean_array_push(x_162, x_173);
x_175 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_175, 0, x_155);
lean_ctor_set(x_175, 1, x_164);
lean_ctor_set(x_175, 2, x_174);
x_176 = l_Lean_Elab_Command_elabMacroRulesAux___closed__5;
lean_inc(x_16);
x_177 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_177, 0, x_16);
lean_ctor_set(x_177, 1, x_176);
x_178 = l_Lean_Elab_Command_elabMacroRulesAux___closed__23;
lean_inc(x_19);
lean_inc(x_145);
x_179 = l_Lean_addMacroScope(x_145, x_178, x_19);
x_180 = lean_box(0);
x_181 = l_Lean_Elab_Command_elabMacroRulesAux___closed__22;
lean_inc(x_16);
x_182 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_182, 0, x_16);
lean_ctor_set(x_182, 1, x_181);
lean_ctor_set(x_182, 2, x_179);
lean_ctor_set(x_182, 3, x_180);
x_183 = l_Lean_mkIdentFrom(x_3, x_4);
x_184 = lean_array_push(x_152, x_182);
x_185 = lean_array_push(x_184, x_183);
x_186 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_186, 0, x_155);
lean_ctor_set(x_186, 1, x_164);
lean_ctor_set(x_186, 2, x_185);
x_187 = l_Lean_Elab_Command_elabMacroRulesAux___closed__24;
lean_inc(x_16);
x_188 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_188, 0, x_16);
lean_ctor_set(x_188, 1, x_187);
x_189 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28;
lean_inc(x_19);
lean_inc(x_145);
x_190 = l_Lean_addMacroScope(x_145, x_189, x_19);
x_191 = l_Lean_Elab_Command_elabMacroRulesAux___closed__27;
x_192 = l_Lean_Elab_Command_elabMacroRulesAux___closed__31;
lean_inc(x_16);
x_193 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_193, 0, x_16);
lean_ctor_set(x_193, 1, x_191);
lean_ctor_set(x_193, 2, x_190);
lean_ctor_set(x_193, 3, x_192);
x_194 = l_Lean_Elab_Command_elabMacroRulesAux___closed__32;
lean_inc(x_16);
x_195 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_195, 0, x_16);
lean_ctor_set(x_195, 1, x_194);
x_196 = l_Lean_Elab_Command_elabMacroRulesAux___closed__33;
lean_inc(x_16);
x_197 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_197, 0, x_16);
lean_ctor_set(x_197, 1, x_196);
x_198 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__4;
x_199 = l_Array_append___rarg(x_198, x_13);
x_200 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__1;
lean_inc(x_16);
x_201 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_201, 0, x_16);
lean_ctor_set(x_201, 1, x_200);
x_202 = l_Lean_Elab_Command_elabMacroRulesAux___closed__39;
lean_inc(x_16);
x_203 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_203, 0, x_16);
lean_ctor_set(x_203, 1, x_202);
x_204 = lean_array_push(x_162, x_203);
x_205 = l_Lean_Elab_Command_elabMacroRulesAux___closed__38;
x_206 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_206, 0, x_155);
lean_ctor_set(x_206, 1, x_205);
lean_ctor_set(x_206, 2, x_204);
x_207 = lean_array_push(x_162, x_206);
x_208 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_208, 0, x_155);
lean_ctor_set(x_208, 1, x_164);
lean_ctor_set(x_208, 2, x_207);
x_209 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__6;
lean_inc(x_16);
x_210 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_210, 0, x_16);
lean_ctor_set(x_210, 1, x_209);
x_211 = l_Lean_Elab_Command_elabMacroRulesAux___closed__45;
lean_inc(x_19);
lean_inc(x_145);
x_212 = l_Lean_addMacroScope(x_145, x_211, x_19);
x_213 = l_Lean_Elab_Command_elabMacroRulesAux___closed__44;
x_214 = l_Lean_Elab_Command_elabMacroRulesAux___closed__50;
lean_inc(x_16);
x_215 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_215, 0, x_16);
lean_ctor_set(x_215, 1, x_213);
lean_ctor_set(x_215, 2, x_212);
lean_ctor_set(x_215, 3, x_214);
x_216 = l_Lean_Elab_Command_elabMacroRulesAux___closed__57;
x_217 = l_Lean_addMacroScope(x_145, x_216, x_19);
x_218 = l_Lean_Elab_Command_elabMacroRulesAux___closed__53;
x_219 = l_Lean_Elab_Command_elabMacroRulesAux___closed__59;
x_220 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_220, 0, x_16);
lean_ctor_set(x_220, 1, x_218);
lean_ctor_set(x_220, 2, x_217);
lean_ctor_set(x_220, 3, x_219);
x_221 = lean_array_push(x_162, x_220);
x_222 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_222, 0, x_155);
lean_ctor_set(x_222, 1, x_164);
lean_ctor_set(x_222, 2, x_221);
x_223 = lean_array_push(x_152, x_215);
x_224 = lean_array_push(x_223, x_222);
x_225 = l_Lean_Elab_Command_elabMacroRulesAux___closed__41;
x_226 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_226, 0, x_155);
lean_ctor_set(x_226, 1, x_225);
lean_ctor_set(x_226, 2, x_224);
x_227 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__7;
x_228 = lean_array_push(x_227, x_201);
x_229 = lean_array_push(x_228, x_208);
x_230 = lean_array_push(x_229, x_210);
x_231 = lean_array_push(x_230, x_226);
x_232 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__8;
x_233 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_233, 0, x_155);
lean_ctor_set(x_233, 1, x_232);
lean_ctor_set(x_233, 2, x_231);
x_234 = lean_array_push(x_199, x_233);
x_235 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_235, 0, x_155);
lean_ctor_set(x_235, 1, x_164);
lean_ctor_set(x_235, 2, x_234);
x_236 = lean_array_push(x_162, x_235);
x_237 = l_Lean_Elab_Command_elabMacroRulesAux___closed__36;
x_238 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_238, 0, x_155);
lean_ctor_set(x_238, 1, x_237);
lean_ctor_set(x_238, 2, x_236);
x_239 = lean_array_push(x_152, x_197);
x_240 = lean_array_push(x_239, x_238);
x_241 = l_Lean_Elab_Command_elabMacroRulesAux___closed__34;
x_242 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_242, 0, x_155);
lean_ctor_set(x_242, 1, x_241);
lean_ctor_set(x_242, 2, x_240);
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; 
x_243 = l_Lean_Elab_Command_elabMacroRulesAux___closed__63;
x_244 = lean_array_push(x_243, x_175);
x_245 = lean_array_push(x_244, x_177);
x_246 = lean_array_push(x_245, x_186);
x_247 = lean_array_push(x_246, x_188);
x_248 = lean_array_push(x_247, x_193);
x_249 = lean_array_push(x_248, x_195);
x_250 = lean_array_push(x_249, x_242);
x_251 = l_Lean_Elab_Command_elabMacroRulesAux___closed__6;
x_252 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_252, 0, x_155);
lean_ctor_set(x_252, 1, x_251);
lean_ctor_set(x_252, 2, x_250);
x_253 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_253, 0, x_252);
lean_ctor_set(x_253, 1, x_146);
return x_253;
}
else
{
lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; 
x_254 = lean_ctor_get(x_1, 0);
lean_inc(x_254);
lean_dec(x_1);
x_255 = lean_array_push(x_162, x_254);
x_256 = l_Array_append___rarg(x_198, x_255);
x_257 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_257, 0, x_155);
lean_ctor_set(x_257, 1, x_164);
lean_ctor_set(x_257, 2, x_256);
x_258 = l_Lean_Elab_Command_elabMacroRulesAux___closed__60;
x_259 = lean_array_push(x_258, x_257);
x_260 = lean_array_push(x_259, x_175);
x_261 = lean_array_push(x_260, x_177);
x_262 = lean_array_push(x_261, x_186);
x_263 = lean_array_push(x_262, x_188);
x_264 = lean_array_push(x_263, x_193);
x_265 = lean_array_push(x_264, x_195);
x_266 = lean_array_push(x_265, x_242);
x_267 = l_Lean_Elab_Command_elabMacroRulesAux___closed__6;
x_268 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_268, 0, x_155);
lean_ctor_set(x_268, 1, x_267);
lean_ctor_set(x_268, 2, x_266);
x_269 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_269, 0, x_268);
lean_ctor_set(x_269, 1, x_146);
return x_269;
}
}
}
else
{
uint8_t x_270; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_270 = !lean_is_exclusive(x_12);
if (x_270 == 0)
{
return x_12;
}
else
{
lean_object* x_271; lean_object* x_272; lean_object* x_273; 
x_271 = lean_ctor_get(x_12, 0);
x_272 = lean_ctor_get(x_12, 1);
lean_inc(x_272);
lean_inc(x_271);
lean_dec(x_12);
x_273 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_273, 0, x_271);
lean_ctor_set(x_273, 1, x_272);
return x_273;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMacroRulesAux___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
size_t x_7; size_t x_8; lean_object* x_9; 
x_7 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_8 = lean_unbox_usize(x_5);
lean_dec(x_5);
x_9 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMacroRulesAux___spec__1(x_1, x_2, x_3, x_7, x_8, x_6);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__1(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
x_11 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_7);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
size_t x_8; size_t x_9; lean_object* x_10; 
x_8 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_9 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_10 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2(x_1, x_8, x_9, x_4, x_5, x_6, x_7);
return x_10;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(5u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("macro_rules");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("(");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("kind");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string(")");
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_11 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabAuxDef___spec__4(x_8, x_9, x_10);
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
lean_dec(x_11);
x_14 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_13);
x_15 = lean_ctor_get(x_14, 1);
lean_inc(x_15);
lean_dec(x_14);
x_16 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_15);
x_17 = lean_ctor_get(x_16, 1);
lean_inc(x_17);
if (lean_is_exclusive(x_16)) {
 lean_ctor_release(x_16, 0);
 lean_ctor_release(x_16, 1);
 x_18 = x_16;
} else {
 lean_dec_ref(x_16);
 x_18 = lean_box(0);
}
x_19 = l_Lean_Syntax_getHeadInfo_x3f(x_1);
x_20 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__4;
x_21 = l_Array_append___rarg(x_20, x_7);
x_22 = lean_box(2);
x_23 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__3;
x_24 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_24, 0, x_22);
lean_ctor_set(x_24, 1, x_23);
lean_ctor_set(x_24, 2, x_21);
x_25 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17;
x_26 = lean_array_push(x_25, x_24);
x_27 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_27, 0, x_22);
lean_ctor_set(x_27, 1, x_2);
lean_ctor_set(x_27, 2, x_26);
if (lean_obj_tag(x_5) == 0)
{
x_28 = x_20;
goto block_74;
}
else
{
lean_object* x_75; lean_object* x_76; 
x_75 = lean_ctor_get(x_5, 0);
lean_inc(x_75);
lean_dec(x_5);
x_76 = lean_array_push(x_25, x_75);
x_28 = x_76;
goto block_74;
}
block_74:
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_29 = l_Array_append___rarg(x_20, x_28);
x_30 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_30, 0, x_22);
lean_ctor_set(x_30, 1, x_23);
lean_ctor_set(x_30, 2, x_29);
x_31 = l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__1;
x_32 = lean_array_push(x_31, x_30);
x_33 = lean_array_push(x_32, x_3);
if (lean_obj_tag(x_19) == 0)
{
lean_inc(x_12);
x_34 = x_12;
goto block_72;
}
else
{
lean_object* x_73; 
x_73 = lean_ctor_get(x_19, 0);
lean_inc(x_73);
lean_dec(x_19);
x_34 = x_73;
goto block_72;
}
block_72:
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; 
x_35 = l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__2;
x_36 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_36, 0, x_34);
lean_ctor_set(x_36, 1, x_35);
x_37 = lean_array_push(x_33, x_36);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_65; 
x_65 = lean_box(0);
x_38 = x_65;
goto block_64;
}
else
{
uint8_t x_66; 
x_66 = !lean_is_exclusive(x_6);
if (x_66 == 0)
{
lean_object* x_67; lean_object* x_68; 
x_67 = lean_ctor_get(x_6, 0);
x_68 = lean_mk_syntax_ident(x_67);
lean_ctor_set(x_6, 0, x_68);
x_38 = x_6;
goto block_64;
}
else
{
lean_object* x_69; lean_object* x_70; lean_object* x_71; 
x_69 = lean_ctor_get(x_6, 0);
lean_inc(x_69);
lean_dec(x_6);
x_70 = lean_mk_syntax_ident(x_69);
x_71 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_71, 0, x_70);
x_38 = x_71;
goto block_64;
}
}
block_64:
{
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
lean_dec(x_12);
x_39 = l_Lean_Elab_Command_elabMacroRulesAux___closed__62;
x_40 = lean_array_push(x_37, x_39);
x_41 = lean_array_push(x_40, x_27);
x_42 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_42, 0, x_22);
lean_ctor_set(x_42, 1, x_4);
lean_ctor_set(x_42, 2, x_41);
if (lean_is_scalar(x_18)) {
 x_43 = lean_alloc_ctor(0, 2, 0);
} else {
 x_43 = x_18;
}
lean_ctor_set(x_43, 0, x_42);
lean_ctor_set(x_43, 1, x_17);
return x_43;
}
else
{
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; 
x_44 = lean_ctor_get(x_38, 0);
lean_inc(x_44);
lean_dec(x_38);
x_45 = l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__3;
lean_inc(x_12);
x_46 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_46, 0, x_12);
lean_ctor_set(x_46, 1, x_45);
x_47 = l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__4;
lean_inc(x_12);
x_48 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_48, 0, x_12);
lean_ctor_set(x_48, 1, x_47);
x_49 = l_Lean_Elab_Command_elabMacroRulesAux___closed__32;
lean_inc(x_12);
x_50 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_50, 0, x_12);
lean_ctor_set(x_50, 1, x_49);
x_51 = l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__5;
x_52 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_52, 0, x_12);
lean_ctor_set(x_52, 1, x_51);
x_53 = lean_array_push(x_31, x_46);
x_54 = lean_array_push(x_53, x_48);
x_55 = lean_array_push(x_54, x_50);
x_56 = lean_array_push(x_55, x_44);
x_57 = lean_array_push(x_56, x_52);
x_58 = l_Array_append___rarg(x_20, x_57);
x_59 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_59, 0, x_22);
lean_ctor_set(x_59, 1, x_23);
lean_ctor_set(x_59, 2, x_58);
x_60 = lean_array_push(x_37, x_59);
x_61 = lean_array_push(x_60, x_27);
x_62 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_62, 0, x_22);
lean_ctor_set(x_62, 1, x_4);
lean_ctor_set(x_62, 2, x_61);
if (lean_is_scalar(x_18)) {
 x_63 = lean_alloc_ctor(0, 2, 0);
} else {
 x_63 = x_18;
}
lean_ctor_set(x_63, 0, x_62);
lean_ctor_set(x_63, 1, x_17);
return x_63;
}
}
}
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("attrKind");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("ident");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__2;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("basicFun");
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_10 = lean_unsigned_to_nat(1u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
x_12 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__5;
lean_inc(x_2);
x_13 = lean_name_mk_string(x_2, x_12);
x_14 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__1;
lean_inc(x_13);
x_15 = lean_name_mk_string(x_13, x_14);
lean_inc(x_11);
x_16 = l_Lean_Syntax_isOfKind(x_11, x_15);
lean_dec(x_15);
if (x_16 == 0)
{
lean_object* x_17; 
lean_dec(x_13);
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_17 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__12___rarg(x_9);
return x_17;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_18 = lean_unsigned_to_nat(2u);
x_19 = l_Lean_Syntax_getArg(x_1, x_18);
x_20 = lean_unsigned_to_nat(3u);
x_21 = l_Lean_Syntax_getArg(x_1, x_20);
x_22 = l_Lean_nullKind;
x_23 = lean_unsigned_to_nat(0u);
lean_inc(x_21);
x_24 = l_Lean_Syntax_isNodeOf(x_21, x_22, x_23);
if (x_24 == 0)
{
lean_object* x_25; uint8_t x_26; 
lean_dec(x_4);
x_25 = lean_unsigned_to_nat(5u);
lean_inc(x_21);
x_26 = l_Lean_Syntax_isNodeOf(x_21, x_22, x_25);
if (x_26 == 0)
{
lean_object* x_27; 
lean_dec(x_21);
lean_dec(x_19);
lean_dec(x_13);
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
x_27 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__12___rarg(x_9);
return x_27;
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; 
x_28 = l_Lean_Syntax_getArg(x_21, x_20);
lean_dec(x_21);
x_29 = lean_unsigned_to_nat(4u);
x_30 = l_Lean_Syntax_getArg(x_1, x_29);
x_31 = l_Lean_Elab_Command_elabMacroRulesAux___closed__35;
lean_inc(x_13);
x_32 = lean_name_mk_string(x_13, x_31);
lean_inc(x_30);
x_33 = l_Lean_Syntax_isOfKind(x_30, x_32);
lean_dec(x_32);
if (x_33 == 0)
{
lean_object* x_34; 
lean_dec(x_30);
lean_dec(x_28);
lean_dec(x_19);
lean_dec(x_13);
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
x_34 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__12___rarg(x_9);
return x_34;
}
else
{
lean_object* x_35; uint8_t x_36; 
x_35 = l_Lean_Syntax_getArg(x_30, x_23);
lean_dec(x_30);
lean_inc(x_35);
x_36 = l_Lean_Syntax_isNodeOf(x_35, x_22, x_10);
if (x_36 == 0)
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; 
lean_dec(x_13);
lean_dec(x_3);
lean_dec(x_2);
x_37 = l_Lean_Syntax_getArgs(x_35);
lean_dec(x_35);
x_38 = l_Lean_Syntax_getId(x_28);
lean_dec(x_28);
lean_inc(x_8);
lean_inc(x_7);
x_39 = l_Lean_Elab_Command_resolveSyntaxKind(x_38, x_7, x_8, x_9);
if (lean_obj_tag(x_39) == 0)
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; 
x_40 = lean_ctor_get(x_39, 0);
lean_inc(x_40);
x_41 = lean_ctor_get(x_39, 1);
lean_inc(x_41);
lean_dec(x_39);
x_42 = l_Lean_Elab_Command_elabMacroRulesAux(x_6, x_11, x_19, x_40, x_37, x_7, x_8, x_41);
return x_42;
}
else
{
uint8_t x_43; 
lean_dec(x_37);
lean_dec(x_19);
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
x_43 = !lean_is_exclusive(x_39);
if (x_43 == 0)
{
return x_39;
}
else
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; 
x_44 = lean_ctor_get(x_39, 0);
x_45 = lean_ctor_get(x_39, 1);
lean_inc(x_45);
lean_inc(x_44);
lean_dec(x_39);
x_46 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_46, 0, x_44);
lean_ctor_set(x_46, 1, x_45);
return x_46;
}
}
}
else
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; 
x_47 = l_Lean_Syntax_getArg(x_35, x_23);
x_48 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__7;
lean_inc(x_13);
x_49 = lean_name_mk_string(x_13, x_48);
lean_inc(x_47);
x_50 = l_Lean_Syntax_isOfKind(x_47, x_49);
lean_dec(x_49);
if (x_50 == 0)
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; 
lean_dec(x_47);
lean_dec(x_13);
lean_dec(x_3);
lean_dec(x_2);
x_51 = l_Lean_Syntax_getArgs(x_35);
lean_dec(x_35);
x_52 = l_Lean_Syntax_getId(x_28);
lean_dec(x_28);
lean_inc(x_8);
lean_inc(x_7);
x_53 = l_Lean_Elab_Command_resolveSyntaxKind(x_52, x_7, x_8, x_9);
if (lean_obj_tag(x_53) == 0)
{
lean_object* x_54; lean_object* x_55; lean_object* x_56; 
x_54 = lean_ctor_get(x_53, 0);
lean_inc(x_54);
x_55 = lean_ctor_get(x_53, 1);
lean_inc(x_55);
lean_dec(x_53);
x_56 = l_Lean_Elab_Command_elabMacroRulesAux(x_6, x_11, x_19, x_54, x_51, x_7, x_8, x_55);
return x_56;
}
else
{
uint8_t x_57; 
lean_dec(x_51);
lean_dec(x_19);
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
x_57 = !lean_is_exclusive(x_53);
if (x_57 == 0)
{
return x_53;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_58 = lean_ctor_get(x_53, 0);
x_59 = lean_ctor_get(x_53, 1);
lean_inc(x_59);
lean_inc(x_58);
lean_dec(x_53);
x_60 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_60, 0, x_58);
lean_ctor_set(x_60, 1, x_59);
return x_60;
}
}
}
else
{
lean_object* x_61; uint8_t x_62; 
x_61 = l_Lean_Syntax_getArg(x_47, x_10);
lean_inc(x_61);
x_62 = l_Lean_Syntax_isNodeOf(x_61, x_22, x_10);
if (x_62 == 0)
{
lean_object* x_63; lean_object* x_64; lean_object* x_65; 
lean_dec(x_61);
lean_dec(x_47);
lean_dec(x_13);
lean_dec(x_3);
lean_dec(x_2);
x_63 = l_Lean_Syntax_getArgs(x_35);
lean_dec(x_35);
x_64 = l_Lean_Syntax_getId(x_28);
lean_dec(x_28);
lean_inc(x_8);
lean_inc(x_7);
x_65 = l_Lean_Elab_Command_resolveSyntaxKind(x_64, x_7, x_8, x_9);
if (lean_obj_tag(x_65) == 0)
{
lean_object* x_66; lean_object* x_67; lean_object* x_68; 
x_66 = lean_ctor_get(x_65, 0);
lean_inc(x_66);
x_67 = lean_ctor_get(x_65, 1);
lean_inc(x_67);
lean_dec(x_65);
x_68 = l_Lean_Elab_Command_elabMacroRulesAux(x_6, x_11, x_19, x_66, x_63, x_7, x_8, x_67);
return x_68;
}
else
{
uint8_t x_69; 
lean_dec(x_63);
lean_dec(x_19);
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
x_69 = !lean_is_exclusive(x_65);
if (x_69 == 0)
{
return x_65;
}
else
{
lean_object* x_70; lean_object* x_71; lean_object* x_72; 
x_70 = lean_ctor_get(x_65, 0);
x_71 = lean_ctor_get(x_65, 1);
lean_inc(x_71);
lean_inc(x_70);
lean_dec(x_65);
x_72 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_72, 0, x_70);
lean_ctor_set(x_72, 1, x_71);
return x_72;
}
}
}
else
{
lean_object* x_73; lean_object* x_74; uint8_t x_75; 
x_73 = l_Lean_Syntax_getArg(x_61, x_23);
lean_dec(x_61);
x_74 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3;
lean_inc(x_73);
x_75 = l_Lean_Syntax_isOfKind(x_73, x_74);
if (x_75 == 0)
{
lean_object* x_76; lean_object* x_77; lean_object* x_78; 
lean_dec(x_73);
lean_dec(x_47);
lean_dec(x_13);
lean_dec(x_3);
lean_dec(x_2);
x_76 = l_Lean_Syntax_getArgs(x_35);
lean_dec(x_35);
x_77 = l_Lean_Syntax_getId(x_28);
lean_dec(x_28);
lean_inc(x_8);
lean_inc(x_7);
x_78 = l_Lean_Elab_Command_resolveSyntaxKind(x_77, x_7, x_8, x_9);
if (lean_obj_tag(x_78) == 0)
{
lean_object* x_79; lean_object* x_80; lean_object* x_81; 
x_79 = lean_ctor_get(x_78, 0);
lean_inc(x_79);
x_80 = lean_ctor_get(x_78, 1);
lean_inc(x_80);
lean_dec(x_78);
x_81 = l_Lean_Elab_Command_elabMacroRulesAux(x_6, x_11, x_19, x_79, x_76, x_7, x_8, x_80);
return x_81;
}
else
{
uint8_t x_82; 
lean_dec(x_76);
lean_dec(x_19);
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
x_82 = !lean_is_exclusive(x_78);
if (x_82 == 0)
{
return x_78;
}
else
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; 
x_83 = lean_ctor_get(x_78, 0);
x_84 = lean_ctor_get(x_78, 1);
lean_inc(x_84);
lean_inc(x_83);
lean_dec(x_78);
x_85 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_85, 0, x_83);
lean_ctor_set(x_85, 1, x_84);
return x_85;
}
}
}
else
{
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; uint8_t x_94; 
lean_dec(x_35);
x_86 = l_Lean_Syntax_getArg(x_47, x_20);
lean_dec(x_47);
x_87 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabAuxDef___spec__4(x_7, x_8, x_9);
x_88 = lean_ctor_get(x_87, 0);
lean_inc(x_88);
x_89 = lean_ctor_get(x_87, 1);
lean_inc(x_89);
lean_dec(x_87);
x_90 = l_Lean_Elab_Command_getCurrMacroScope(x_7, x_8, x_89);
lean_dec(x_7);
x_91 = lean_ctor_get(x_90, 0);
lean_inc(x_91);
x_92 = lean_ctor_get(x_90, 1);
lean_inc(x_92);
lean_dec(x_90);
x_93 = l_Lean_Elab_Command_getMainModule___rarg(x_8, x_92);
lean_dec(x_8);
x_94 = !lean_is_exclusive(x_93);
if (x_94 == 0)
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; 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; 
x_95 = lean_ctor_get(x_93, 0);
x_96 = l_Lean_Elab_Command_elabMacroRulesAux___closed__1;
lean_inc(x_3);
x_97 = lean_name_mk_string(x_3, x_96);
x_98 = l_Lean_Elab_Command_elabMacroRulesAux___closed__3;
x_99 = lean_name_mk_string(x_97, x_98);
x_100 = l_Lean_Elab_Command_elabMacroRulesAux___closed__5;
x_101 = lean_name_mk_string(x_99, x_100);
x_102 = l_Lean_Elab_Command_elabMacroRulesAux___closed__7;
lean_inc(x_13);
x_103 = lean_name_mk_string(x_13, x_102);
x_104 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9;
lean_inc(x_88);
x_105 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_105, 0, x_88);
lean_ctor_set(x_105, 1, x_104);
x_106 = l_Lean_Elab_Command_elabMacroRulesAux___closed__10;
lean_inc(x_13);
x_107 = lean_name_mk_string(x_13, x_106);
x_108 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12;
x_109 = lean_name_mk_string(x_2, x_108);
x_110 = l_Lean_Elab_Command_elabMacroRulesAux___closed__14;
x_111 = lean_name_mk_string(x_109, x_110);
lean_inc(x_88);
x_112 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_112, 0, x_88);
lean_ctor_set(x_112, 1, x_110);
x_113 = l_Lean_Elab_Command_elabMacroRulesAux___closed__16;
x_114 = lean_array_push(x_113, x_112);
lean_inc(x_28);
x_115 = lean_array_push(x_114, x_28);
x_116 = lean_box(2);
x_117 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_117, 0, x_116);
lean_ctor_set(x_117, 1, x_111);
lean_ctor_set(x_117, 2, x_115);
x_118 = lean_array_push(x_113, x_11);
x_119 = lean_array_push(x_118, x_117);
x_120 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_120, 0, x_116);
lean_ctor_set(x_120, 1, x_107);
lean_ctor_set(x_120, 2, x_119);
x_121 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17;
x_122 = lean_array_push(x_121, x_120);
x_123 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__3;
x_124 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_124, 0, x_116);
lean_ctor_set(x_124, 1, x_123);
lean_ctor_set(x_124, 2, x_122);
x_125 = l_Lean_Elab_Command_elabMacroRulesAux___closed__18;
lean_inc(x_88);
x_126 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_126, 0, x_88);
lean_ctor_set(x_126, 1, x_125);
x_127 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19;
x_128 = lean_array_push(x_127, x_105);
x_129 = lean_array_push(x_128, x_124);
x_130 = lean_array_push(x_129, x_126);
x_131 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_131, 0, x_116);
lean_ctor_set(x_131, 1, x_103);
lean_ctor_set(x_131, 2, x_130);
x_132 = lean_array_push(x_121, x_131);
x_133 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_133, 0, x_116);
lean_ctor_set(x_133, 1, x_123);
lean_ctor_set(x_133, 2, x_132);
lean_inc(x_88);
x_134 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_134, 0, x_88);
lean_ctor_set(x_134, 1, x_100);
x_135 = l_Lean_Syntax_getId(x_28);
x_136 = l_Lean_mkIdentFrom(x_19, x_135);
x_137 = lean_array_push(x_113, x_136);
x_138 = lean_array_push(x_137, x_28);
x_139 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_139, 0, x_116);
lean_ctor_set(x_139, 1, x_123);
lean_ctor_set(x_139, 2, x_138);
x_140 = l_Lean_Elab_Command_elabMacroRulesAux___closed__24;
lean_inc(x_88);
x_141 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_141, 0, x_88);
lean_ctor_set(x_141, 1, x_140);
x_142 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28;
x_143 = l_Lean_addMacroScope(x_95, x_142, x_91);
x_144 = l_Lean_Elab_Command_elabMacroRulesAux___closed__25;
x_145 = lean_name_mk_string(x_3, x_144);
x_146 = lean_box(0);
x_147 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_147, 0, x_145);
lean_ctor_set(x_147, 1, x_146);
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_Elab_Command_elabMacroRulesAux___closed__27;
lean_inc(x_88);
x_150 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_150, 0, x_88);
lean_ctor_set(x_150, 1, x_149);
lean_ctor_set(x_150, 2, x_143);
lean_ctor_set(x_150, 3, x_148);
x_151 = l_Lean_Elab_Command_elabMacroRulesAux___closed__32;
lean_inc(x_88);
x_152 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_152, 0, x_88);
lean_ctor_set(x_152, 1, x_151);
x_153 = l_Lean_Elab_Command_elabMacroRulesAux___closed__33;
lean_inc(x_13);
x_154 = lean_name_mk_string(x_13, x_153);
lean_inc(x_88);
x_155 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_155, 0, x_88);
lean_ctor_set(x_155, 1, x_153);
x_156 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__4;
x_157 = lean_name_mk_string(x_13, x_156);
x_158 = lean_array_push(x_121, x_73);
x_159 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_159, 0, x_116);
lean_ctor_set(x_159, 1, x_123);
lean_ctor_set(x_159, 2, x_158);
x_160 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__6;
x_161 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_161, 0, x_88);
lean_ctor_set(x_161, 1, x_160);
x_162 = lean_array_push(x_127, x_159);
x_163 = lean_array_push(x_162, x_161);
x_164 = lean_array_push(x_163, x_86);
x_165 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_165, 0, x_116);
lean_ctor_set(x_165, 1, x_157);
lean_ctor_set(x_165, 2, x_164);
x_166 = lean_array_push(x_113, x_155);
x_167 = lean_array_push(x_166, x_165);
x_168 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_168, 0, x_116);
lean_ctor_set(x_168, 1, x_154);
lean_ctor_set(x_168, 2, x_167);
if (lean_obj_tag(x_6) == 0)
{
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; 
x_169 = l_Lean_Elab_Command_elabMacroRulesAux___closed__63;
x_170 = lean_array_push(x_169, x_133);
x_171 = lean_array_push(x_170, x_134);
x_172 = lean_array_push(x_171, x_139);
x_173 = lean_array_push(x_172, x_141);
x_174 = lean_array_push(x_173, x_150);
x_175 = lean_array_push(x_174, x_152);
x_176 = lean_array_push(x_175, x_168);
x_177 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_177, 0, x_116);
lean_ctor_set(x_177, 1, x_101);
lean_ctor_set(x_177, 2, x_176);
lean_ctor_set(x_93, 0, x_177);
return x_93;
}
else
{
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; 
x_178 = lean_ctor_get(x_6, 0);
lean_inc(x_178);
lean_dec(x_6);
x_179 = lean_array_push(x_121, x_178);
x_180 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__4;
x_181 = l_Array_append___rarg(x_180, x_179);
x_182 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_182, 0, x_116);
lean_ctor_set(x_182, 1, x_123);
lean_ctor_set(x_182, 2, x_181);
x_183 = l_Lean_Elab_Command_elabMacroRulesAux___closed__60;
x_184 = lean_array_push(x_183, x_182);
x_185 = lean_array_push(x_184, x_133);
x_186 = lean_array_push(x_185, x_134);
x_187 = lean_array_push(x_186, x_139);
x_188 = lean_array_push(x_187, x_141);
x_189 = lean_array_push(x_188, x_150);
x_190 = lean_array_push(x_189, x_152);
x_191 = lean_array_push(x_190, x_168);
x_192 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_192, 0, x_116);
lean_ctor_set(x_192, 1, x_101);
lean_ctor_set(x_192, 2, x_191);
lean_ctor_set(x_93, 0, x_192);
return x_93;
}
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; 
x_193 = lean_ctor_get(x_93, 0);
x_194 = lean_ctor_get(x_93, 1);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_93);
x_195 = l_Lean_Elab_Command_elabMacroRulesAux___closed__1;
lean_inc(x_3);
x_196 = lean_name_mk_string(x_3, x_195);
x_197 = l_Lean_Elab_Command_elabMacroRulesAux___closed__3;
x_198 = lean_name_mk_string(x_196, x_197);
x_199 = l_Lean_Elab_Command_elabMacroRulesAux___closed__5;
x_200 = lean_name_mk_string(x_198, x_199);
x_201 = l_Lean_Elab_Command_elabMacroRulesAux___closed__7;
lean_inc(x_13);
x_202 = lean_name_mk_string(x_13, x_201);
x_203 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9;
lean_inc(x_88);
x_204 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_204, 0, x_88);
lean_ctor_set(x_204, 1, x_203);
x_205 = l_Lean_Elab_Command_elabMacroRulesAux___closed__10;
lean_inc(x_13);
x_206 = lean_name_mk_string(x_13, x_205);
x_207 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12;
x_208 = lean_name_mk_string(x_2, x_207);
x_209 = l_Lean_Elab_Command_elabMacroRulesAux___closed__14;
x_210 = lean_name_mk_string(x_208, x_209);
lean_inc(x_88);
x_211 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_211, 0, x_88);
lean_ctor_set(x_211, 1, x_209);
x_212 = l_Lean_Elab_Command_elabMacroRulesAux___closed__16;
x_213 = lean_array_push(x_212, x_211);
lean_inc(x_28);
x_214 = lean_array_push(x_213, x_28);
x_215 = lean_box(2);
x_216 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_216, 0, x_215);
lean_ctor_set(x_216, 1, x_210);
lean_ctor_set(x_216, 2, x_214);
x_217 = lean_array_push(x_212, x_11);
x_218 = lean_array_push(x_217, x_216);
x_219 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_219, 0, x_215);
lean_ctor_set(x_219, 1, x_206);
lean_ctor_set(x_219, 2, x_218);
x_220 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17;
x_221 = lean_array_push(x_220, x_219);
x_222 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__3;
x_223 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_223, 0, x_215);
lean_ctor_set(x_223, 1, x_222);
lean_ctor_set(x_223, 2, x_221);
x_224 = l_Lean_Elab_Command_elabMacroRulesAux___closed__18;
lean_inc(x_88);
x_225 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_225, 0, x_88);
lean_ctor_set(x_225, 1, x_224);
x_226 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19;
x_227 = lean_array_push(x_226, x_204);
x_228 = lean_array_push(x_227, x_223);
x_229 = lean_array_push(x_228, x_225);
x_230 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_230, 0, x_215);
lean_ctor_set(x_230, 1, x_202);
lean_ctor_set(x_230, 2, x_229);
x_231 = lean_array_push(x_220, x_230);
x_232 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_232, 0, x_215);
lean_ctor_set(x_232, 1, x_222);
lean_ctor_set(x_232, 2, x_231);
lean_inc(x_88);
x_233 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_233, 0, x_88);
lean_ctor_set(x_233, 1, x_199);
x_234 = l_Lean_Syntax_getId(x_28);
x_235 = l_Lean_mkIdentFrom(x_19, x_234);
x_236 = lean_array_push(x_212, x_235);
x_237 = lean_array_push(x_236, x_28);
x_238 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_238, 0, x_215);
lean_ctor_set(x_238, 1, x_222);
lean_ctor_set(x_238, 2, x_237);
x_239 = l_Lean_Elab_Command_elabMacroRulesAux___closed__24;
lean_inc(x_88);
x_240 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_240, 0, x_88);
lean_ctor_set(x_240, 1, x_239);
x_241 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28;
x_242 = l_Lean_addMacroScope(x_193, x_241, x_91);
x_243 = l_Lean_Elab_Command_elabMacroRulesAux___closed__25;
x_244 = lean_name_mk_string(x_3, x_243);
x_245 = lean_box(0);
x_246 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_246, 0, x_244);
lean_ctor_set(x_246, 1, x_245);
x_247 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_247, 0, x_246);
lean_ctor_set(x_247, 1, x_245);
x_248 = l_Lean_Elab_Command_elabMacroRulesAux___closed__27;
lean_inc(x_88);
x_249 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_249, 0, x_88);
lean_ctor_set(x_249, 1, x_248);
lean_ctor_set(x_249, 2, x_242);
lean_ctor_set(x_249, 3, x_247);
x_250 = l_Lean_Elab_Command_elabMacroRulesAux___closed__32;
lean_inc(x_88);
x_251 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_251, 0, x_88);
lean_ctor_set(x_251, 1, x_250);
x_252 = l_Lean_Elab_Command_elabMacroRulesAux___closed__33;
lean_inc(x_13);
x_253 = lean_name_mk_string(x_13, x_252);
lean_inc(x_88);
x_254 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_254, 0, x_88);
lean_ctor_set(x_254, 1, x_252);
x_255 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__4;
x_256 = lean_name_mk_string(x_13, x_255);
x_257 = lean_array_push(x_220, x_73);
x_258 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_258, 0, x_215);
lean_ctor_set(x_258, 1, x_222);
lean_ctor_set(x_258, 2, x_257);
x_259 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__6;
x_260 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_260, 0, x_88);
lean_ctor_set(x_260, 1, x_259);
x_261 = lean_array_push(x_226, x_258);
x_262 = lean_array_push(x_261, x_260);
x_263 = lean_array_push(x_262, x_86);
x_264 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_264, 0, x_215);
lean_ctor_set(x_264, 1, x_256);
lean_ctor_set(x_264, 2, x_263);
x_265 = lean_array_push(x_212, x_254);
x_266 = lean_array_push(x_265, x_264);
x_267 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_267, 0, x_215);
lean_ctor_set(x_267, 1, x_253);
lean_ctor_set(x_267, 2, x_266);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; 
x_268 = l_Lean_Elab_Command_elabMacroRulesAux___closed__63;
x_269 = lean_array_push(x_268, x_232);
x_270 = lean_array_push(x_269, x_233);
x_271 = lean_array_push(x_270, x_238);
x_272 = lean_array_push(x_271, x_240);
x_273 = lean_array_push(x_272, x_249);
x_274 = lean_array_push(x_273, x_251);
x_275 = lean_array_push(x_274, x_267);
x_276 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_276, 0, x_215);
lean_ctor_set(x_276, 1, x_200);
lean_ctor_set(x_276, 2, x_275);
x_277 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_277, 0, x_276);
lean_ctor_set(x_277, 1, x_194);
return x_277;
}
else
{
lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; 
x_278 = lean_ctor_get(x_6, 0);
lean_inc(x_278);
lean_dec(x_6);
x_279 = lean_array_push(x_220, x_278);
x_280 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__4;
x_281 = l_Array_append___rarg(x_280, x_279);
x_282 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_282, 0, x_215);
lean_ctor_set(x_282, 1, x_222);
lean_ctor_set(x_282, 2, x_281);
x_283 = l_Lean_Elab_Command_elabMacroRulesAux___closed__60;
x_284 = lean_array_push(x_283, x_282);
x_285 = lean_array_push(x_284, x_232);
x_286 = lean_array_push(x_285, x_233);
x_287 = lean_array_push(x_286, x_238);
x_288 = lean_array_push(x_287, x_240);
x_289 = lean_array_push(x_288, x_249);
x_290 = lean_array_push(x_289, x_251);
x_291 = lean_array_push(x_290, x_267);
x_292 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_292, 0, x_215);
lean_ctor_set(x_292, 1, x_200);
lean_ctor_set(x_292, 2, x_291);
x_293 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_293, 0, x_292);
lean_ctor_set(x_293, 1, x_194);
return x_293;
}
}
}
}
}
}
}
}
}
else
{
lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; uint8_t x_298; 
lean_dec(x_21);
lean_dec(x_3);
lean_dec(x_2);
x_294 = lean_unsigned_to_nat(4u);
x_295 = l_Lean_Syntax_getArg(x_1, x_294);
x_296 = l_Lean_Elab_Command_elabMacroRulesAux___closed__35;
x_297 = lean_name_mk_string(x_13, x_296);
lean_inc(x_295);
x_298 = l_Lean_Syntax_isOfKind(x_295, x_297);
if (x_298 == 0)
{
lean_object* x_299; 
lean_dec(x_297);
lean_dec(x_295);
lean_dec(x_19);
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_4);
x_299 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__12___rarg(x_9);
return x_299;
}
else
{
lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; 
x_300 = l_Lean_Syntax_getArg(x_295, x_23);
lean_dec(x_295);
x_301 = l_Lean_Syntax_getArgs(x_300);
lean_dec(x_300);
x_302 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacroRules___lambda__1___boxed), 10, 5);
lean_closure_set(x_302, 0, x_19);
lean_closure_set(x_302, 1, x_297);
lean_closure_set(x_302, 2, x_11);
lean_closure_set(x_302, 3, x_4);
lean_closure_set(x_302, 4, x_6);
x_303 = l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__2;
x_304 = l_Lean_Elab_Command_expandNoKindMacroRulesAux(x_301, x_303, x_302, x_7, x_8, x_9);
lean_dec(x_301);
return x_304;
}
}
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__4;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__1;
x_2 = l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__2;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("docComment");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__1;
x_2 = l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__2;
lean_inc(x_1);
x_6 = l_Lean_Syntax_isOfKind(x_1, x_5);
if (x_6 == 0)
{
lean_object* x_7; 
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__12___rarg(x_4);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = l_Lean_Syntax_isNone(x_9);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_11 = l_Lean_nullKind;
x_12 = lean_unsigned_to_nat(1u);
lean_inc(x_9);
x_13 = l_Lean_Syntax_isNodeOf(x_9, x_11, x_12);
if (x_13 == 0)
{
lean_object* x_14; 
lean_dec(x_9);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_14 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__12___rarg(x_4);
return x_14;
}
else
{
lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_15 = l_Lean_Syntax_getArg(x_9, x_8);
lean_dec(x_9);
x_16 = l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__4;
lean_inc(x_15);
x_17 = l_Lean_Syntax_isOfKind(x_15, x_16);
if (x_17 == 0)
{
lean_object* x_18; 
lean_dec(x_15);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_18 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__12___rarg(x_4);
return x_18;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_19 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_19, 0, x_15);
x_20 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__4;
x_21 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__2;
x_22 = lean_box(0);
x_23 = l_Lean_Elab_Command_elabMacroRules___lambda__2(x_1, x_20, x_21, x_5, x_22, x_19, x_2, x_3, x_4);
lean_dec(x_1);
return x_23;
}
}
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
lean_dec(x_9);
x_24 = lean_box(0);
x_25 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__4;
x_26 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__2;
x_27 = lean_box(0);
x_28 = l_Lean_Elab_Command_elabMacroRules___lambda__2(x_1, x_25, x_26, x_5, x_27, x_24, x_2, x_3, x_4);
lean_dec(x_1);
return x_28;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacroRules___lambda__3), 4, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; 
x_5 = l_Lean_Elab_Command_elabMacroRules___closed__1;
x_6 = l_Lean_Elab_Command_adaptExpander(x_5, x_1, x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
x_11 = l_Lean_Elab_Command_elabMacroRules___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_1);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Elab_Command_elabMacroRules___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_5);
lean_dec(x_1);
return x_10;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("elabMacroRules");
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4;
x_2 = l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacroRules), 4, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l_Lean_Elab_Command_commandElabAttribute;
x_3 = l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(42u);
x_2 = lean_unsigned_to_nat(36u);
x_3 = lean_alloc_ctor(0, 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___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(52u);
x_2 = lean_unsigned_to_nat(32u);
x_3 = lean_alloc_ctor(0, 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___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__1;
x_2 = lean_unsigned_to_nat(36u);
x_3 = l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__2;
x_4 = lean_unsigned_to_nat(32u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(42u);
x_2 = lean_unsigned_to_nat(40u);
x_3 = lean_alloc_ctor(0, 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___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(42u);
x_2 = lean_unsigned_to_nat(54u);
x_3 = lean_alloc_ctor(0, 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___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__4;
x_2 = lean_unsigned_to_nat(40u);
x_3 = l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__5;
x_4 = lean_unsigned_to_nat(54u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
lean_object* initialize_Init(lean_object*);
lean_object* initialize_Lean_Elab_Syntax(lean_object*);
lean_object* initialize_Lean_Elab_AuxDef(lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Elab_MacroRules(lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Init(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Elab_Syntax(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Elab_AuxDef(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__1();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__1);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__2 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__2();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__2);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__3 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__3();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__3);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__4 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__4();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__4);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__5 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__5();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__5);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__6 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__6();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__6);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__7 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__7();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__7);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__8 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__8();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__8);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__9 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__9();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__9);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__10 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__10();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__10);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__11 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__11();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__11);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__12 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__12();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__12);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__13 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__13();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__13);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__14 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__14();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___lambda__2___closed__14);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__1();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__1);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__2 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__2();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__2);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__3 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__3();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__3);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__4 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__4();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__4);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__5 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__5();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__5);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__6 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__6();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__6);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__7 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__7();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__7);
l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__8 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__8();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___closed__8);
l_Lean_Elab_Command_elabMacroRulesAux___closed__1 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__1);
l_Lean_Elab_Command_elabMacroRulesAux___closed__2 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__2);
l_Lean_Elab_Command_elabMacroRulesAux___closed__3 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__3);
l_Lean_Elab_Command_elabMacroRulesAux___closed__4 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__4);
l_Lean_Elab_Command_elabMacroRulesAux___closed__5 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__5);
l_Lean_Elab_Command_elabMacroRulesAux___closed__6 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__6();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__6);
l_Lean_Elab_Command_elabMacroRulesAux___closed__7 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__7();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__7);
l_Lean_Elab_Command_elabMacroRulesAux___closed__8 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__8();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__8);
l_Lean_Elab_Command_elabMacroRulesAux___closed__9 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__9();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__9);
l_Lean_Elab_Command_elabMacroRulesAux___closed__10 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__10();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__10);
l_Lean_Elab_Command_elabMacroRulesAux___closed__11 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__11();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__11);
l_Lean_Elab_Command_elabMacroRulesAux___closed__12 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__12();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__12);
l_Lean_Elab_Command_elabMacroRulesAux___closed__13 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__13();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__13);
l_Lean_Elab_Command_elabMacroRulesAux___closed__14 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__14();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__14);
l_Lean_Elab_Command_elabMacroRulesAux___closed__15 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__15();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__15);
l_Lean_Elab_Command_elabMacroRulesAux___closed__16 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__16();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__16);
l_Lean_Elab_Command_elabMacroRulesAux___closed__17 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__17();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__17);
l_Lean_Elab_Command_elabMacroRulesAux___closed__18 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__18();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__18);
l_Lean_Elab_Command_elabMacroRulesAux___closed__19 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__19();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__19);
l_Lean_Elab_Command_elabMacroRulesAux___closed__20 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__20();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__20);
l_Lean_Elab_Command_elabMacroRulesAux___closed__21 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__21();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__21);
l_Lean_Elab_Command_elabMacroRulesAux___closed__22 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__22();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__22);
l_Lean_Elab_Command_elabMacroRulesAux___closed__23 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__23();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__23);
l_Lean_Elab_Command_elabMacroRulesAux___closed__24 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__24();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__24);
l_Lean_Elab_Command_elabMacroRulesAux___closed__25 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__25();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__25);
l_Lean_Elab_Command_elabMacroRulesAux___closed__26 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__26();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__26);
l_Lean_Elab_Command_elabMacroRulesAux___closed__27 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__27();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__27);
l_Lean_Elab_Command_elabMacroRulesAux___closed__28 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__28();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__28);
l_Lean_Elab_Command_elabMacroRulesAux___closed__29 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__29();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__29);
l_Lean_Elab_Command_elabMacroRulesAux___closed__30 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__30();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__30);
l_Lean_Elab_Command_elabMacroRulesAux___closed__31 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__31();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__31);
l_Lean_Elab_Command_elabMacroRulesAux___closed__32 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__32();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__32);
l_Lean_Elab_Command_elabMacroRulesAux___closed__33 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__33();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__33);
l_Lean_Elab_Command_elabMacroRulesAux___closed__34 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__34();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__34);
l_Lean_Elab_Command_elabMacroRulesAux___closed__35 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__35();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__35);
l_Lean_Elab_Command_elabMacroRulesAux___closed__36 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__36();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__36);
l_Lean_Elab_Command_elabMacroRulesAux___closed__37 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__37();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__37);
l_Lean_Elab_Command_elabMacroRulesAux___closed__38 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__38();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__38);
l_Lean_Elab_Command_elabMacroRulesAux___closed__39 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__39();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__39);
l_Lean_Elab_Command_elabMacroRulesAux___closed__40 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__40();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__40);
l_Lean_Elab_Command_elabMacroRulesAux___closed__41 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__41();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__41);
l_Lean_Elab_Command_elabMacroRulesAux___closed__42 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__42();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__42);
l_Lean_Elab_Command_elabMacroRulesAux___closed__43 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__43();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__43);
l_Lean_Elab_Command_elabMacroRulesAux___closed__44 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__44();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__44);
l_Lean_Elab_Command_elabMacroRulesAux___closed__45 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__45();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__45);
l_Lean_Elab_Command_elabMacroRulesAux___closed__46 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__46();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__46);
l_Lean_Elab_Command_elabMacroRulesAux___closed__47 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__47();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__47);
l_Lean_Elab_Command_elabMacroRulesAux___closed__48 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__48();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__48);
l_Lean_Elab_Command_elabMacroRulesAux___closed__49 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__49();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__49);
l_Lean_Elab_Command_elabMacroRulesAux___closed__50 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__50();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__50);
l_Lean_Elab_Command_elabMacroRulesAux___closed__51 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__51();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__51);
l_Lean_Elab_Command_elabMacroRulesAux___closed__52 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__52();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__52);
l_Lean_Elab_Command_elabMacroRulesAux___closed__53 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__53();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__53);
l_Lean_Elab_Command_elabMacroRulesAux___closed__54 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__54();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__54);
l_Lean_Elab_Command_elabMacroRulesAux___closed__55 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__55();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__55);
l_Lean_Elab_Command_elabMacroRulesAux___closed__56 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__56();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__56);
l_Lean_Elab_Command_elabMacroRulesAux___closed__57 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__57();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__57);
l_Lean_Elab_Command_elabMacroRulesAux___closed__58 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__58();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__58);
l_Lean_Elab_Command_elabMacroRulesAux___closed__59 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__59();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__59);
l_Lean_Elab_Command_elabMacroRulesAux___closed__60 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__60();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__60);
l_Lean_Elab_Command_elabMacroRulesAux___closed__61 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__61();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__61);
l_Lean_Elab_Command_elabMacroRulesAux___closed__62 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__62();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__62);
l_Lean_Elab_Command_elabMacroRulesAux___closed__63 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__63();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__63);
l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__1 = _init_l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__1);
l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__2 = _init_l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__2);
l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__3 = _init_l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__3);
l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__4 = _init_l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__4);
l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__5 = _init_l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__5);
l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__1 = _init_l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__1);
l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__2 = _init_l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__2);
l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3 = _init_l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3);
l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__4 = _init_l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__4);
l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__1 = _init_l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__1);
l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__2 = _init_l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__2);
l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__3 = _init_l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__3);
l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__4 = _init_l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lambda__3___closed__4);
l_Lean_Elab_Command_elabMacroRules___closed__1 = _init_l_Lean_Elab_Command_elabMacroRules___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___closed__1);
l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__1);
l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__2);
l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__3);
res = l___regBuiltin_Lean_Elab_Command_elabMacroRules(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__1);
l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__2);
l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__3);
l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__4);
l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__5);
l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__6 = _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__6);
l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__7 = _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange___closed__7);
res = l___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange(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));
}
#ifdef __cplusplus
}
#endif
