// Lean compiler output
// Module: Lean.Meta.Constructions.NoConfusion
// Imports: Lean.AddDecl Lean.Meta.AppBuilder Lean.Meta.CompletionName
#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
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__5;
lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_ofExceptKernelException___at_Lean_mkNoConfusionCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_mkNatLit(lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_mkNoConfusionCore___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_mkAppOptM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__11;
static lean_object* l_Lean_mkNoConfusionCore___lambda__1___closed__3;
lean_object* l_Lean_ConstantInfo_levelParams(lean_object*);
lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_allM___at_Lean_mkNoConfusion___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__8;
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__2;
static lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx___lambda__1___closed__1;
lean_object* l_Lean_Expr_sort___override(lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
static lean_object* l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__5;
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__6;
static lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__6;
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionTypeCoreImp___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_isEnumType___at_Lean_mkNoConfusion___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_casesOnSuffix;
static lean_object* l_Lean_mkNoConfusionCore___closed__1;
LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_mkNoConfusionCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__2___closed__1;
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_InductiveVal_numTypeFormers(lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__2___closed__2;
static lean_object* l_Lean_mkNoConfusionCore___lambda__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__1;
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__6;
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_st_ref_take(lean_object*, lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__4;
static lean_object* l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__2;
static lean_object* l_Lean_mkNoConfusionCore___lambda__1___closed__5;
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___closed__1;
lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__1;
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__1;
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__2;
lean_object* lean_st_ref_get(lean_object*, lean_object*);
lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_List_isEmpty___rarg(lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__10;
lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionCoreImp___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__1;
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__3;
static lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__5;
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_allM___at_Lean_mkNoConfusion___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__4;
static lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__7;
lean_object* l___private_Lean_ReducibilityAttrs_0__Lean_setReducibilityStatusCore(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_isEnumType___at_Lean_mkNoConfusion___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__1;
static lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__2;
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_instInhabitedMetaM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Environment_contains(lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionCore___lambda__1___closed__4;
static lean_object* l_panic___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__1___closed__1;
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__5;
lean_object* lean_mk_no_confusion_type(lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionCore___lambda__1___closed__2;
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__4;
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__2___closed__1;
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkNoConfusion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__2;
extern lean_object* l_Lean_Meta_completionBlackListExt;
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_ofExceptKernelException___at_Lean_mkNoConfusionCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_TagDeclarationExtension_tag(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_panic_fn(lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__2___closed__2;
lean_object* lean_nat_sub(lean_object*, lean_object*);
extern lean_object* l_Lean_levelOne;
uint8_t l_Lean_Expr_isProp(lean_object*);
lean_object* l_Lean_mkArrow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_mkNoConfusionCore___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*);
extern lean_object* l_Lean_protectedExt;
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_mkNoConfusionCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_noConfusionExt;
lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__2___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__3;
lean_object* l_Lean_Level_param___override(lean_object*);
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
lean_object* l_List_map___at_Lean_mkConstWithLevelParams___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__4;
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_no_confusion(lean_object*, lean_object*);
lean_object* l_Lean_addAndCompile(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_add(lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__9;
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__3;
lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*);
static lean_object* l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__4;
static lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__3;
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___closed__2;
lean_object* l_Lean_addDecl(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_List_length___rarg(lean_object*);
static lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionTypeCoreImp___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_mk_no_confusion_type(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionCoreImp___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_mk_no_confusion(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_mkNoConfusionCore___spec__3(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:
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_7 = lean_ctor_get(x_4, 5);
x_8 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
x_9 = !lean_is_exclusive(x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; 
x_10 = lean_ctor_get(x_8, 0);
lean_inc(x_7);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_7);
lean_ctor_set(x_11, 1, x_10);
lean_ctor_set_tag(x_8, 1);
lean_ctor_set(x_8, 0, x_11);
return x_8;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_12 = lean_ctor_get(x_8, 0);
x_13 = lean_ctor_get(x_8, 1);
lean_inc(x_13);
lean_inc(x_12);
lean_dec(x_8);
lean_inc(x_7);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_7);
lean_ctor_set(x_14, 1, x_12);
x_15 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_15, 0, x_14);
lean_ctor_set(x_15, 1, x_13);
return x_15;
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_mkNoConfusionCore___spec__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) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_ctor_get(x_4, 2);
lean_inc(x_7);
x_8 = l_Lean_KernelException_toMessageData(x_1, x_7);
x_9 = l_Lean_throwError___at_Lean_mkNoConfusionCore___spec__3(x_8, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_4);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_ofExceptKernelException___at_Lean_mkNoConfusionCore___spec__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) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = lean_ctor_get(x_1, 0);
lean_inc(x_7);
lean_dec(x_1);
x_8 = l_Lean_throwKernelException___at_Lean_mkNoConfusionCore___spec__2(x_7, x_2, x_3, x_4, x_5, x_6);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; 
lean_dec(x_4);
x_9 = lean_ctor_get(x_1, 0);
lean_inc(x_9);
lean_dec(x_1);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_9);
lean_ctor_set(x_10, 1, x_6);
return x_10;
}
}
}
static lean_object* _init_l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__1;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__2;
x_2 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__2;
x_2 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
lean_ctor_set(x_2, 2, x_1);
lean_ctor_set(x_2, 3, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__2;
x_2 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__4;
x_3 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_1);
lean_ctor_set(x_3, 2, x_1);
lean_ctor_set(x_3, 3, x_1);
lean_ctor_set(x_3, 4, x_1);
lean_ctor_set(x_3, 5, x_2);
lean_ctor_set(x_3, 6, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_8 = lean_st_ref_take(x_6, x_7);
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
x_10 = lean_ctor_get(x_8, 1);
lean_inc(x_10);
lean_dec(x_8);
x_11 = !lean_is_exclusive(x_9);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; 
x_12 = lean_ctor_get(x_9, 0);
x_13 = lean_ctor_get(x_9, 4);
lean_dec(x_13);
x_14 = 0;
x_15 = lean_box(0);
x_16 = l___private_Lean_ReducibilityAttrs_0__Lean_setReducibilityStatusCore(x_12, x_1, x_2, x_14, x_15);
x_17 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__3;
lean_ctor_set(x_9, 4, x_17);
lean_ctor_set(x_9, 0, x_16);
x_18 = lean_st_ref_set(x_6, x_9, x_10);
x_19 = lean_ctor_get(x_18, 1);
lean_inc(x_19);
lean_dec(x_18);
x_20 = lean_st_ref_take(x_4, x_19);
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
x_22 = lean_ctor_get(x_20, 1);
lean_inc(x_22);
lean_dec(x_20);
x_23 = !lean_is_exclusive(x_21);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; 
x_24 = lean_ctor_get(x_21, 1);
lean_dec(x_24);
x_25 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__5;
lean_ctor_set(x_21, 1, x_25);
x_26 = lean_st_ref_set(x_4, x_21, x_22);
x_27 = !lean_is_exclusive(x_26);
if (x_27 == 0)
{
lean_object* x_28; lean_object* x_29; 
x_28 = lean_ctor_get(x_26, 0);
lean_dec(x_28);
x_29 = lean_box(0);
lean_ctor_set(x_26, 0, x_29);
return x_26;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_30 = lean_ctor_get(x_26, 1);
lean_inc(x_30);
lean_dec(x_26);
x_31 = lean_box(0);
x_32 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_32, 0, x_31);
lean_ctor_set(x_32, 1, x_30);
return x_32;
}
}
else
{
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; 
x_33 = lean_ctor_get(x_21, 0);
x_34 = lean_ctor_get(x_21, 2);
x_35 = lean_ctor_get(x_21, 3);
x_36 = lean_ctor_get(x_21, 4);
lean_inc(x_36);
lean_inc(x_35);
lean_inc(x_34);
lean_inc(x_33);
lean_dec(x_21);
x_37 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__5;
x_38 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_38, 0, x_33);
lean_ctor_set(x_38, 1, x_37);
lean_ctor_set(x_38, 2, x_34);
lean_ctor_set(x_38, 3, x_35);
lean_ctor_set(x_38, 4, x_36);
x_39 = lean_st_ref_set(x_4, x_38, x_22);
x_40 = lean_ctor_get(x_39, 1);
lean_inc(x_40);
if (lean_is_exclusive(x_39)) {
 lean_ctor_release(x_39, 0);
 lean_ctor_release(x_39, 1);
 x_41 = x_39;
} else {
 lean_dec_ref(x_39);
 x_41 = lean_box(0);
}
x_42 = lean_box(0);
if (lean_is_scalar(x_41)) {
 x_43 = lean_alloc_ctor(0, 2, 0);
} else {
 x_43 = x_41;
}
lean_ctor_set(x_43, 0, x_42);
lean_ctor_set(x_43, 1, x_40);
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; uint8_t 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; 
x_44 = lean_ctor_get(x_9, 0);
x_45 = lean_ctor_get(x_9, 1);
x_46 = lean_ctor_get(x_9, 2);
x_47 = lean_ctor_get(x_9, 3);
x_48 = lean_ctor_get(x_9, 5);
x_49 = lean_ctor_get(x_9, 6);
lean_inc(x_49);
lean_inc(x_48);
lean_inc(x_47);
lean_inc(x_46);
lean_inc(x_45);
lean_inc(x_44);
lean_dec(x_9);
x_50 = 0;
x_51 = lean_box(0);
x_52 = l___private_Lean_ReducibilityAttrs_0__Lean_setReducibilityStatusCore(x_44, x_1, x_2, x_50, x_51);
x_53 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__3;
x_54 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_54, 0, x_52);
lean_ctor_set(x_54, 1, x_45);
lean_ctor_set(x_54, 2, x_46);
lean_ctor_set(x_54, 3, x_47);
lean_ctor_set(x_54, 4, x_53);
lean_ctor_set(x_54, 5, x_48);
lean_ctor_set(x_54, 6, x_49);
x_55 = lean_st_ref_set(x_6, x_54, x_10);
x_56 = lean_ctor_get(x_55, 1);
lean_inc(x_56);
lean_dec(x_55);
x_57 = lean_st_ref_take(x_4, x_56);
x_58 = lean_ctor_get(x_57, 0);
lean_inc(x_58);
x_59 = lean_ctor_get(x_57, 1);
lean_inc(x_59);
lean_dec(x_57);
x_60 = lean_ctor_get(x_58, 0);
lean_inc(x_60);
x_61 = lean_ctor_get(x_58, 2);
lean_inc(x_61);
x_62 = lean_ctor_get(x_58, 3);
lean_inc(x_62);
x_63 = lean_ctor_get(x_58, 4);
lean_inc(x_63);
if (lean_is_exclusive(x_58)) {
 lean_ctor_release(x_58, 0);
 lean_ctor_release(x_58, 1);
 lean_ctor_release(x_58, 2);
 lean_ctor_release(x_58, 3);
 lean_ctor_release(x_58, 4);
 x_64 = x_58;
} else {
 lean_dec_ref(x_58);
 x_64 = lean_box(0);
}
x_65 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__5;
if (lean_is_scalar(x_64)) {
 x_66 = lean_alloc_ctor(0, 5, 0);
} else {
 x_66 = x_64;
}
lean_ctor_set(x_66, 0, x_60);
lean_ctor_set(x_66, 1, x_65);
lean_ctor_set(x_66, 2, x_61);
lean_ctor_set(x_66, 3, x_62);
lean_ctor_set(x_66, 4, x_63);
x_67 = lean_st_ref_set(x_4, x_66, x_59);
x_68 = lean_ctor_get(x_67, 1);
lean_inc(x_68);
if (lean_is_exclusive(x_67)) {
 lean_ctor_release(x_67, 0);
 lean_ctor_release(x_67, 1);
 x_69 = x_67;
} else {
 lean_dec_ref(x_67);
 x_69 = lean_box(0);
}
x_70 = lean_box(0);
if (lean_is_scalar(x_69)) {
 x_71 = lean_alloc_ctor(0, 2, 0);
} else {
 x_71 = x_69;
}
lean_ctor_set(x_71, 0, x_70);
lean_ctor_set(x_71, 1, x_68);
return x_71;
}
}
}
static lean_object* _init_l_Lean_mkNoConfusionCore___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("noConfusionType", 15, 15);
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionCore___lambda__1___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Meta_completionBlackListExt;
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionCore___lambda__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_protectedExt;
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionCore___lambda__1___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("noConfusion", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionCore___lambda__1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_noConfusionExt;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionCore___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) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_8 = l_Lean_mkNoConfusionCore___lambda__1___closed__1;
lean_inc(x_1);
x_9 = l_Lean_Name_str___override(x_1, x_8);
x_10 = lean_st_ref_get(x_6, x_7);
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
lean_dec(x_10);
x_13 = lean_ctor_get(x_11, 0);
lean_inc(x_13);
lean_dec(x_11);
x_14 = lean_mk_no_confusion_type(x_13, x_1);
lean_inc(x_5);
x_15 = l_Lean_ofExceptKernelException___at_Lean_mkNoConfusionCore___spec__1(x_14, x_3, x_4, x_5, x_6, x_12);
if (lean_obj_tag(x_15) == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; 
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);
lean_inc(x_6);
lean_inc(x_5);
x_18 = l_Lean_addDecl(x_16, x_5, x_6, x_17);
if (lean_obj_tag(x_18) == 0)
{
lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; 
x_19 = lean_ctor_get(x_18, 1);
lean_inc(x_19);
lean_dec(x_18);
x_20 = 0;
lean_inc(x_9);
x_21 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4(x_9, x_20, x_3, x_4, x_5, x_6, x_19);
x_22 = lean_ctor_get(x_21, 1);
lean_inc(x_22);
lean_dec(x_21);
x_23 = lean_st_ref_take(x_6, x_22);
x_24 = lean_ctor_get(x_23, 0);
lean_inc(x_24);
x_25 = lean_ctor_get(x_23, 1);
lean_inc(x_25);
lean_dec(x_23);
x_26 = !lean_is_exclusive(x_24);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; 
x_27 = lean_ctor_get(x_24, 0);
x_28 = lean_ctor_get(x_24, 4);
lean_dec(x_28);
x_29 = l_Lean_mkNoConfusionCore___lambda__1___closed__2;
lean_inc(x_9);
x_30 = l_Lean_TagDeclarationExtension_tag(x_29, x_27, x_9);
x_31 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__3;
lean_ctor_set(x_24, 4, x_31);
lean_ctor_set(x_24, 0, x_30);
x_32 = lean_st_ref_set(x_6, x_24, x_25);
x_33 = lean_ctor_get(x_32, 1);
lean_inc(x_33);
lean_dec(x_32);
x_34 = lean_st_ref_take(x_4, x_33);
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 = !lean_is_exclusive(x_35);
if (x_37 == 0)
{
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; uint8_t x_45; 
x_38 = lean_ctor_get(x_35, 1);
lean_dec(x_38);
x_39 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__5;
lean_ctor_set(x_35, 1, x_39);
x_40 = lean_st_ref_set(x_4, x_35, x_36);
x_41 = lean_ctor_get(x_40, 1);
lean_inc(x_41);
lean_dec(x_40);
x_42 = lean_st_ref_take(x_6, x_41);
x_43 = lean_ctor_get(x_42, 0);
lean_inc(x_43);
x_44 = lean_ctor_get(x_42, 1);
lean_inc(x_44);
lean_dec(x_42);
x_45 = !lean_is_exclusive(x_43);
if (x_45 == 0)
{
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; uint8_t x_55; 
x_46 = lean_ctor_get(x_43, 0);
x_47 = lean_ctor_get(x_43, 4);
lean_dec(x_47);
x_48 = l_Lean_mkNoConfusionCore___lambda__1___closed__3;
x_49 = l_Lean_TagDeclarationExtension_tag(x_48, x_46, x_9);
lean_ctor_set(x_43, 4, x_31);
lean_ctor_set(x_43, 0, x_49);
x_50 = lean_st_ref_set(x_6, x_43, x_44);
x_51 = lean_ctor_get(x_50, 1);
lean_inc(x_51);
lean_dec(x_50);
x_52 = lean_st_ref_take(x_4, x_51);
x_53 = lean_ctor_get(x_52, 0);
lean_inc(x_53);
x_54 = lean_ctor_get(x_52, 1);
lean_inc(x_54);
lean_dec(x_52);
x_55 = !lean_is_exclusive(x_53);
if (x_55 == 0)
{
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; 
x_56 = lean_ctor_get(x_53, 1);
lean_dec(x_56);
lean_ctor_set(x_53, 1, x_39);
x_57 = lean_st_ref_set(x_4, x_53, x_54);
x_58 = lean_ctor_get(x_57, 1);
lean_inc(x_58);
lean_dec(x_57);
x_59 = l_Lean_mkNoConfusionCore___lambda__1___closed__4;
lean_inc(x_1);
x_60 = l_Lean_Name_str___override(x_1, x_59);
x_61 = lean_st_ref_get(x_6, x_58);
x_62 = lean_ctor_get(x_61, 0);
lean_inc(x_62);
x_63 = lean_ctor_get(x_61, 1);
lean_inc(x_63);
lean_dec(x_61);
x_64 = lean_ctor_get(x_62, 0);
lean_inc(x_64);
lean_dec(x_62);
x_65 = lean_mk_no_confusion(x_64, x_1);
lean_dec(x_1);
lean_inc(x_5);
x_66 = l_Lean_ofExceptKernelException___at_Lean_mkNoConfusionCore___spec__1(x_65, x_3, x_4, x_5, x_6, x_63);
if (lean_obj_tag(x_66) == 0)
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_67 = lean_ctor_get(x_66, 0);
lean_inc(x_67);
x_68 = lean_ctor_get(x_66, 1);
lean_inc(x_68);
lean_dec(x_66);
lean_inc(x_6);
lean_inc(x_5);
x_69 = l_Lean_addDecl(x_67, x_5, x_6, x_68);
if (lean_obj_tag(x_69) == 0)
{
lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; 
x_70 = lean_ctor_get(x_69, 1);
lean_inc(x_70);
lean_dec(x_69);
lean_inc(x_60);
x_71 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4(x_60, x_20, x_3, x_4, x_5, x_6, x_70);
lean_dec(x_5);
x_72 = lean_ctor_get(x_71, 1);
lean_inc(x_72);
lean_dec(x_71);
x_73 = lean_st_ref_take(x_6, x_72);
x_74 = lean_ctor_get(x_73, 0);
lean_inc(x_74);
x_75 = lean_ctor_get(x_73, 1);
lean_inc(x_75);
lean_dec(x_73);
x_76 = !lean_is_exclusive(x_74);
if (x_76 == 0)
{
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; uint8_t x_86; 
x_77 = lean_ctor_get(x_74, 0);
x_78 = lean_ctor_get(x_74, 4);
lean_dec(x_78);
x_79 = l_Lean_mkNoConfusionCore___lambda__1___closed__5;
lean_inc(x_60);
x_80 = l_Lean_TagDeclarationExtension_tag(x_79, x_77, x_60);
lean_ctor_set(x_74, 4, x_31);
lean_ctor_set(x_74, 0, x_80);
x_81 = lean_st_ref_set(x_6, x_74, x_75);
x_82 = lean_ctor_get(x_81, 1);
lean_inc(x_82);
lean_dec(x_81);
x_83 = lean_st_ref_take(x_4, x_82);
x_84 = lean_ctor_get(x_83, 0);
lean_inc(x_84);
x_85 = lean_ctor_get(x_83, 1);
lean_inc(x_85);
lean_dec(x_83);
x_86 = !lean_is_exclusive(x_84);
if (x_86 == 0)
{
lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; 
x_87 = lean_ctor_get(x_84, 1);
lean_dec(x_87);
lean_ctor_set(x_84, 1, x_39);
x_88 = lean_st_ref_set(x_4, x_84, x_85);
x_89 = lean_ctor_get(x_88, 1);
lean_inc(x_89);
lean_dec(x_88);
x_90 = lean_st_ref_take(x_6, x_89);
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 = !lean_is_exclusive(x_91);
if (x_93 == 0)
{
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; uint8_t x_102; 
x_94 = lean_ctor_get(x_91, 0);
x_95 = lean_ctor_get(x_91, 4);
lean_dec(x_95);
x_96 = l_Lean_TagDeclarationExtension_tag(x_48, x_94, x_60);
lean_ctor_set(x_91, 4, x_31);
lean_ctor_set(x_91, 0, x_96);
x_97 = lean_st_ref_set(x_6, x_91, x_92);
lean_dec(x_6);
x_98 = lean_ctor_get(x_97, 1);
lean_inc(x_98);
lean_dec(x_97);
x_99 = lean_st_ref_take(x_4, x_98);
x_100 = lean_ctor_get(x_99, 0);
lean_inc(x_100);
x_101 = lean_ctor_get(x_99, 1);
lean_inc(x_101);
lean_dec(x_99);
x_102 = !lean_is_exclusive(x_100);
if (x_102 == 0)
{
lean_object* x_103; lean_object* x_104; uint8_t x_105; 
x_103 = lean_ctor_get(x_100, 1);
lean_dec(x_103);
lean_ctor_set(x_100, 1, x_39);
x_104 = lean_st_ref_set(x_4, x_100, x_101);
x_105 = !lean_is_exclusive(x_104);
if (x_105 == 0)
{
lean_object* x_106; lean_object* x_107; 
x_106 = lean_ctor_get(x_104, 0);
lean_dec(x_106);
x_107 = lean_box(0);
lean_ctor_set(x_104, 0, x_107);
return x_104;
}
else
{
lean_object* x_108; lean_object* x_109; lean_object* x_110; 
x_108 = lean_ctor_get(x_104, 1);
lean_inc(x_108);
lean_dec(x_104);
x_109 = lean_box(0);
x_110 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_110, 0, x_109);
lean_ctor_set(x_110, 1, x_108);
return x_110;
}
}
else
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 
x_111 = lean_ctor_get(x_100, 0);
x_112 = lean_ctor_get(x_100, 2);
x_113 = lean_ctor_get(x_100, 3);
x_114 = lean_ctor_get(x_100, 4);
lean_inc(x_114);
lean_inc(x_113);
lean_inc(x_112);
lean_inc(x_111);
lean_dec(x_100);
x_115 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_115, 0, x_111);
lean_ctor_set(x_115, 1, x_39);
lean_ctor_set(x_115, 2, x_112);
lean_ctor_set(x_115, 3, x_113);
lean_ctor_set(x_115, 4, x_114);
x_116 = lean_st_ref_set(x_4, x_115, x_101);
x_117 = lean_ctor_get(x_116, 1);
lean_inc(x_117);
if (lean_is_exclusive(x_116)) {
 lean_ctor_release(x_116, 0);
 lean_ctor_release(x_116, 1);
 x_118 = x_116;
} else {
 lean_dec_ref(x_116);
 x_118 = lean_box(0);
}
x_119 = lean_box(0);
if (lean_is_scalar(x_118)) {
 x_120 = lean_alloc_ctor(0, 2, 0);
} else {
 x_120 = x_118;
}
lean_ctor_set(x_120, 0, x_119);
lean_ctor_set(x_120, 1, x_117);
return x_120;
}
}
else
{
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; 
x_121 = lean_ctor_get(x_91, 0);
x_122 = lean_ctor_get(x_91, 1);
x_123 = lean_ctor_get(x_91, 2);
x_124 = lean_ctor_get(x_91, 3);
x_125 = lean_ctor_get(x_91, 5);
x_126 = lean_ctor_get(x_91, 6);
lean_inc(x_126);
lean_inc(x_125);
lean_inc(x_124);
lean_inc(x_123);
lean_inc(x_122);
lean_inc(x_121);
lean_dec(x_91);
x_127 = l_Lean_TagDeclarationExtension_tag(x_48, x_121, x_60);
x_128 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_128, 0, x_127);
lean_ctor_set(x_128, 1, x_122);
lean_ctor_set(x_128, 2, x_123);
lean_ctor_set(x_128, 3, x_124);
lean_ctor_set(x_128, 4, x_31);
lean_ctor_set(x_128, 5, x_125);
lean_ctor_set(x_128, 6, x_126);
x_129 = lean_st_ref_set(x_6, x_128, x_92);
lean_dec(x_6);
x_130 = lean_ctor_get(x_129, 1);
lean_inc(x_130);
lean_dec(x_129);
x_131 = lean_st_ref_take(x_4, x_130);
x_132 = lean_ctor_get(x_131, 0);
lean_inc(x_132);
x_133 = lean_ctor_get(x_131, 1);
lean_inc(x_133);
lean_dec(x_131);
x_134 = lean_ctor_get(x_132, 0);
lean_inc(x_134);
x_135 = lean_ctor_get(x_132, 2);
lean_inc(x_135);
x_136 = lean_ctor_get(x_132, 3);
lean_inc(x_136);
x_137 = lean_ctor_get(x_132, 4);
lean_inc(x_137);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_138 = x_132;
} else {
 lean_dec_ref(x_132);
 x_138 = lean_box(0);
}
if (lean_is_scalar(x_138)) {
 x_139 = lean_alloc_ctor(0, 5, 0);
} else {
 x_139 = x_138;
}
lean_ctor_set(x_139, 0, x_134);
lean_ctor_set(x_139, 1, x_39);
lean_ctor_set(x_139, 2, x_135);
lean_ctor_set(x_139, 3, x_136);
lean_ctor_set(x_139, 4, x_137);
x_140 = lean_st_ref_set(x_4, x_139, x_133);
x_141 = lean_ctor_get(x_140, 1);
lean_inc(x_141);
if (lean_is_exclusive(x_140)) {
 lean_ctor_release(x_140, 0);
 lean_ctor_release(x_140, 1);
 x_142 = x_140;
} else {
 lean_dec_ref(x_140);
 x_142 = lean_box(0);
}
x_143 = lean_box(0);
if (lean_is_scalar(x_142)) {
 x_144 = lean_alloc_ctor(0, 2, 0);
} else {
 x_144 = x_142;
}
lean_ctor_set(x_144, 0, x_143);
lean_ctor_set(x_144, 1, x_141);
return x_144;
}
}
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; 
x_145 = lean_ctor_get(x_84, 0);
x_146 = lean_ctor_get(x_84, 2);
x_147 = lean_ctor_get(x_84, 3);
x_148 = lean_ctor_get(x_84, 4);
lean_inc(x_148);
lean_inc(x_147);
lean_inc(x_146);
lean_inc(x_145);
lean_dec(x_84);
x_149 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_149, 0, x_145);
lean_ctor_set(x_149, 1, x_39);
lean_ctor_set(x_149, 2, x_146);
lean_ctor_set(x_149, 3, x_147);
lean_ctor_set(x_149, 4, x_148);
x_150 = lean_st_ref_set(x_4, x_149, x_85);
x_151 = lean_ctor_get(x_150, 1);
lean_inc(x_151);
lean_dec(x_150);
x_152 = lean_st_ref_take(x_6, x_151);
x_153 = lean_ctor_get(x_152, 0);
lean_inc(x_153);
x_154 = lean_ctor_get(x_152, 1);
lean_inc(x_154);
lean_dec(x_152);
x_155 = lean_ctor_get(x_153, 0);
lean_inc(x_155);
x_156 = lean_ctor_get(x_153, 1);
lean_inc(x_156);
x_157 = lean_ctor_get(x_153, 2);
lean_inc(x_157);
x_158 = lean_ctor_get(x_153, 3);
lean_inc(x_158);
x_159 = lean_ctor_get(x_153, 5);
lean_inc(x_159);
x_160 = lean_ctor_get(x_153, 6);
lean_inc(x_160);
if (lean_is_exclusive(x_153)) {
 lean_ctor_release(x_153, 0);
 lean_ctor_release(x_153, 1);
 lean_ctor_release(x_153, 2);
 lean_ctor_release(x_153, 3);
 lean_ctor_release(x_153, 4);
 lean_ctor_release(x_153, 5);
 lean_ctor_release(x_153, 6);
 x_161 = x_153;
} else {
 lean_dec_ref(x_153);
 x_161 = lean_box(0);
}
x_162 = l_Lean_TagDeclarationExtension_tag(x_48, x_155, x_60);
if (lean_is_scalar(x_161)) {
 x_163 = lean_alloc_ctor(0, 7, 0);
} else {
 x_163 = x_161;
}
lean_ctor_set(x_163, 0, x_162);
lean_ctor_set(x_163, 1, x_156);
lean_ctor_set(x_163, 2, x_157);
lean_ctor_set(x_163, 3, x_158);
lean_ctor_set(x_163, 4, x_31);
lean_ctor_set(x_163, 5, x_159);
lean_ctor_set(x_163, 6, x_160);
x_164 = lean_st_ref_set(x_6, x_163, x_154);
lean_dec(x_6);
x_165 = lean_ctor_get(x_164, 1);
lean_inc(x_165);
lean_dec(x_164);
x_166 = lean_st_ref_take(x_4, x_165);
x_167 = lean_ctor_get(x_166, 0);
lean_inc(x_167);
x_168 = lean_ctor_get(x_166, 1);
lean_inc(x_168);
lean_dec(x_166);
x_169 = lean_ctor_get(x_167, 0);
lean_inc(x_169);
x_170 = lean_ctor_get(x_167, 2);
lean_inc(x_170);
x_171 = lean_ctor_get(x_167, 3);
lean_inc(x_171);
x_172 = lean_ctor_get(x_167, 4);
lean_inc(x_172);
if (lean_is_exclusive(x_167)) {
 lean_ctor_release(x_167, 0);
 lean_ctor_release(x_167, 1);
 lean_ctor_release(x_167, 2);
 lean_ctor_release(x_167, 3);
 lean_ctor_release(x_167, 4);
 x_173 = x_167;
} else {
 lean_dec_ref(x_167);
 x_173 = lean_box(0);
}
if (lean_is_scalar(x_173)) {
 x_174 = lean_alloc_ctor(0, 5, 0);
} else {
 x_174 = x_173;
}
lean_ctor_set(x_174, 0, x_169);
lean_ctor_set(x_174, 1, x_39);
lean_ctor_set(x_174, 2, x_170);
lean_ctor_set(x_174, 3, x_171);
lean_ctor_set(x_174, 4, x_172);
x_175 = lean_st_ref_set(x_4, x_174, x_168);
x_176 = lean_ctor_get(x_175, 1);
lean_inc(x_176);
if (lean_is_exclusive(x_175)) {
 lean_ctor_release(x_175, 0);
 lean_ctor_release(x_175, 1);
 x_177 = x_175;
} else {
 lean_dec_ref(x_175);
 x_177 = lean_box(0);
}
x_178 = lean_box(0);
if (lean_is_scalar(x_177)) {
 x_179 = lean_alloc_ctor(0, 2, 0);
} else {
 x_179 = x_177;
}
lean_ctor_set(x_179, 0, x_178);
lean_ctor_set(x_179, 1, x_176);
return x_179;
}
}
else
{
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; 
x_180 = lean_ctor_get(x_74, 0);
x_181 = lean_ctor_get(x_74, 1);
x_182 = lean_ctor_get(x_74, 2);
x_183 = lean_ctor_get(x_74, 3);
x_184 = lean_ctor_get(x_74, 5);
x_185 = lean_ctor_get(x_74, 6);
lean_inc(x_185);
lean_inc(x_184);
lean_inc(x_183);
lean_inc(x_182);
lean_inc(x_181);
lean_inc(x_180);
lean_dec(x_74);
x_186 = l_Lean_mkNoConfusionCore___lambda__1___closed__5;
lean_inc(x_60);
x_187 = l_Lean_TagDeclarationExtension_tag(x_186, x_180, x_60);
x_188 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_188, 0, x_187);
lean_ctor_set(x_188, 1, x_181);
lean_ctor_set(x_188, 2, x_182);
lean_ctor_set(x_188, 3, x_183);
lean_ctor_set(x_188, 4, x_31);
lean_ctor_set(x_188, 5, x_184);
lean_ctor_set(x_188, 6, x_185);
x_189 = lean_st_ref_set(x_6, x_188, x_75);
x_190 = lean_ctor_get(x_189, 1);
lean_inc(x_190);
lean_dec(x_189);
x_191 = lean_st_ref_take(x_4, x_190);
x_192 = lean_ctor_get(x_191, 0);
lean_inc(x_192);
x_193 = lean_ctor_get(x_191, 1);
lean_inc(x_193);
lean_dec(x_191);
x_194 = lean_ctor_get(x_192, 0);
lean_inc(x_194);
x_195 = lean_ctor_get(x_192, 2);
lean_inc(x_195);
x_196 = lean_ctor_get(x_192, 3);
lean_inc(x_196);
x_197 = lean_ctor_get(x_192, 4);
lean_inc(x_197);
if (lean_is_exclusive(x_192)) {
 lean_ctor_release(x_192, 0);
 lean_ctor_release(x_192, 1);
 lean_ctor_release(x_192, 2);
 lean_ctor_release(x_192, 3);
 lean_ctor_release(x_192, 4);
 x_198 = x_192;
} else {
 lean_dec_ref(x_192);
 x_198 = lean_box(0);
}
if (lean_is_scalar(x_198)) {
 x_199 = lean_alloc_ctor(0, 5, 0);
} else {
 x_199 = x_198;
}
lean_ctor_set(x_199, 0, x_194);
lean_ctor_set(x_199, 1, x_39);
lean_ctor_set(x_199, 2, x_195);
lean_ctor_set(x_199, 3, x_196);
lean_ctor_set(x_199, 4, x_197);
x_200 = lean_st_ref_set(x_4, x_199, x_193);
x_201 = lean_ctor_get(x_200, 1);
lean_inc(x_201);
lean_dec(x_200);
x_202 = lean_st_ref_take(x_6, x_201);
x_203 = lean_ctor_get(x_202, 0);
lean_inc(x_203);
x_204 = lean_ctor_get(x_202, 1);
lean_inc(x_204);
lean_dec(x_202);
x_205 = lean_ctor_get(x_203, 0);
lean_inc(x_205);
x_206 = lean_ctor_get(x_203, 1);
lean_inc(x_206);
x_207 = lean_ctor_get(x_203, 2);
lean_inc(x_207);
x_208 = lean_ctor_get(x_203, 3);
lean_inc(x_208);
x_209 = lean_ctor_get(x_203, 5);
lean_inc(x_209);
x_210 = lean_ctor_get(x_203, 6);
lean_inc(x_210);
if (lean_is_exclusive(x_203)) {
 lean_ctor_release(x_203, 0);
 lean_ctor_release(x_203, 1);
 lean_ctor_release(x_203, 2);
 lean_ctor_release(x_203, 3);
 lean_ctor_release(x_203, 4);
 lean_ctor_release(x_203, 5);
 lean_ctor_release(x_203, 6);
 x_211 = x_203;
} else {
 lean_dec_ref(x_203);
 x_211 = lean_box(0);
}
x_212 = l_Lean_TagDeclarationExtension_tag(x_48, x_205, x_60);
if (lean_is_scalar(x_211)) {
 x_213 = lean_alloc_ctor(0, 7, 0);
} else {
 x_213 = x_211;
}
lean_ctor_set(x_213, 0, x_212);
lean_ctor_set(x_213, 1, x_206);
lean_ctor_set(x_213, 2, x_207);
lean_ctor_set(x_213, 3, x_208);
lean_ctor_set(x_213, 4, x_31);
lean_ctor_set(x_213, 5, x_209);
lean_ctor_set(x_213, 6, x_210);
x_214 = lean_st_ref_set(x_6, x_213, x_204);
lean_dec(x_6);
x_215 = lean_ctor_get(x_214, 1);
lean_inc(x_215);
lean_dec(x_214);
x_216 = lean_st_ref_take(x_4, x_215);
x_217 = lean_ctor_get(x_216, 0);
lean_inc(x_217);
x_218 = lean_ctor_get(x_216, 1);
lean_inc(x_218);
lean_dec(x_216);
x_219 = lean_ctor_get(x_217, 0);
lean_inc(x_219);
x_220 = lean_ctor_get(x_217, 2);
lean_inc(x_220);
x_221 = lean_ctor_get(x_217, 3);
lean_inc(x_221);
x_222 = lean_ctor_get(x_217, 4);
lean_inc(x_222);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 lean_ctor_release(x_217, 4);
 x_223 = x_217;
} else {
 lean_dec_ref(x_217);
 x_223 = lean_box(0);
}
if (lean_is_scalar(x_223)) {
 x_224 = lean_alloc_ctor(0, 5, 0);
} else {
 x_224 = x_223;
}
lean_ctor_set(x_224, 0, x_219);
lean_ctor_set(x_224, 1, x_39);
lean_ctor_set(x_224, 2, x_220);
lean_ctor_set(x_224, 3, x_221);
lean_ctor_set(x_224, 4, x_222);
x_225 = lean_st_ref_set(x_4, x_224, x_218);
x_226 = lean_ctor_get(x_225, 1);
lean_inc(x_226);
if (lean_is_exclusive(x_225)) {
 lean_ctor_release(x_225, 0);
 lean_ctor_release(x_225, 1);
 x_227 = x_225;
} else {
 lean_dec_ref(x_225);
 x_227 = lean_box(0);
}
x_228 = lean_box(0);
if (lean_is_scalar(x_227)) {
 x_229 = lean_alloc_ctor(0, 2, 0);
} else {
 x_229 = x_227;
}
lean_ctor_set(x_229, 0, x_228);
lean_ctor_set(x_229, 1, x_226);
return x_229;
}
}
else
{
uint8_t x_230; 
lean_dec(x_60);
lean_dec(x_6);
lean_dec(x_5);
x_230 = !lean_is_exclusive(x_69);
if (x_230 == 0)
{
return x_69;
}
else
{
lean_object* x_231; lean_object* x_232; lean_object* x_233; 
x_231 = lean_ctor_get(x_69, 0);
x_232 = lean_ctor_get(x_69, 1);
lean_inc(x_232);
lean_inc(x_231);
lean_dec(x_69);
x_233 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_233, 0, x_231);
lean_ctor_set(x_233, 1, x_232);
return x_233;
}
}
}
else
{
uint8_t x_234; 
lean_dec(x_60);
lean_dec(x_6);
lean_dec(x_5);
x_234 = !lean_is_exclusive(x_66);
if (x_234 == 0)
{
return x_66;
}
else
{
lean_object* x_235; lean_object* x_236; lean_object* x_237; 
x_235 = lean_ctor_get(x_66, 0);
x_236 = lean_ctor_get(x_66, 1);
lean_inc(x_236);
lean_inc(x_235);
lean_dec(x_66);
x_237 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_237, 0, x_235);
lean_ctor_set(x_237, 1, x_236);
return x_237;
}
}
}
else
{
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; 
x_238 = lean_ctor_get(x_53, 0);
x_239 = lean_ctor_get(x_53, 2);
x_240 = lean_ctor_get(x_53, 3);
x_241 = lean_ctor_get(x_53, 4);
lean_inc(x_241);
lean_inc(x_240);
lean_inc(x_239);
lean_inc(x_238);
lean_dec(x_53);
x_242 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_242, 0, x_238);
lean_ctor_set(x_242, 1, x_39);
lean_ctor_set(x_242, 2, x_239);
lean_ctor_set(x_242, 3, x_240);
lean_ctor_set(x_242, 4, x_241);
x_243 = lean_st_ref_set(x_4, x_242, x_54);
x_244 = lean_ctor_get(x_243, 1);
lean_inc(x_244);
lean_dec(x_243);
x_245 = l_Lean_mkNoConfusionCore___lambda__1___closed__4;
lean_inc(x_1);
x_246 = l_Lean_Name_str___override(x_1, x_245);
x_247 = lean_st_ref_get(x_6, x_244);
x_248 = lean_ctor_get(x_247, 0);
lean_inc(x_248);
x_249 = lean_ctor_get(x_247, 1);
lean_inc(x_249);
lean_dec(x_247);
x_250 = lean_ctor_get(x_248, 0);
lean_inc(x_250);
lean_dec(x_248);
x_251 = lean_mk_no_confusion(x_250, x_1);
lean_dec(x_1);
lean_inc(x_5);
x_252 = l_Lean_ofExceptKernelException___at_Lean_mkNoConfusionCore___spec__1(x_251, x_3, x_4, x_5, x_6, x_249);
if (lean_obj_tag(x_252) == 0)
{
lean_object* x_253; lean_object* x_254; lean_object* x_255; 
x_253 = lean_ctor_get(x_252, 0);
lean_inc(x_253);
x_254 = lean_ctor_get(x_252, 1);
lean_inc(x_254);
lean_dec(x_252);
lean_inc(x_6);
lean_inc(x_5);
x_255 = l_Lean_addDecl(x_253, x_5, x_6, x_254);
if (lean_obj_tag(x_255) == 0)
{
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; 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; 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; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; 
x_256 = lean_ctor_get(x_255, 1);
lean_inc(x_256);
lean_dec(x_255);
lean_inc(x_246);
x_257 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4(x_246, x_20, x_3, x_4, x_5, x_6, x_256);
lean_dec(x_5);
x_258 = lean_ctor_get(x_257, 1);
lean_inc(x_258);
lean_dec(x_257);
x_259 = lean_st_ref_take(x_6, x_258);
x_260 = lean_ctor_get(x_259, 0);
lean_inc(x_260);
x_261 = lean_ctor_get(x_259, 1);
lean_inc(x_261);
lean_dec(x_259);
x_262 = lean_ctor_get(x_260, 0);
lean_inc(x_262);
x_263 = lean_ctor_get(x_260, 1);
lean_inc(x_263);
x_264 = lean_ctor_get(x_260, 2);
lean_inc(x_264);
x_265 = lean_ctor_get(x_260, 3);
lean_inc(x_265);
x_266 = lean_ctor_get(x_260, 5);
lean_inc(x_266);
x_267 = lean_ctor_get(x_260, 6);
lean_inc(x_267);
if (lean_is_exclusive(x_260)) {
 lean_ctor_release(x_260, 0);
 lean_ctor_release(x_260, 1);
 lean_ctor_release(x_260, 2);
 lean_ctor_release(x_260, 3);
 lean_ctor_release(x_260, 4);
 lean_ctor_release(x_260, 5);
 lean_ctor_release(x_260, 6);
 x_268 = x_260;
} else {
 lean_dec_ref(x_260);
 x_268 = lean_box(0);
}
x_269 = l_Lean_mkNoConfusionCore___lambda__1___closed__5;
lean_inc(x_246);
x_270 = l_Lean_TagDeclarationExtension_tag(x_269, x_262, x_246);
if (lean_is_scalar(x_268)) {
 x_271 = lean_alloc_ctor(0, 7, 0);
} else {
 x_271 = x_268;
}
lean_ctor_set(x_271, 0, x_270);
lean_ctor_set(x_271, 1, x_263);
lean_ctor_set(x_271, 2, x_264);
lean_ctor_set(x_271, 3, x_265);
lean_ctor_set(x_271, 4, x_31);
lean_ctor_set(x_271, 5, x_266);
lean_ctor_set(x_271, 6, x_267);
x_272 = lean_st_ref_set(x_6, x_271, x_261);
x_273 = lean_ctor_get(x_272, 1);
lean_inc(x_273);
lean_dec(x_272);
x_274 = lean_st_ref_take(x_4, x_273);
x_275 = lean_ctor_get(x_274, 0);
lean_inc(x_275);
x_276 = lean_ctor_get(x_274, 1);
lean_inc(x_276);
lean_dec(x_274);
x_277 = lean_ctor_get(x_275, 0);
lean_inc(x_277);
x_278 = lean_ctor_get(x_275, 2);
lean_inc(x_278);
x_279 = lean_ctor_get(x_275, 3);
lean_inc(x_279);
x_280 = lean_ctor_get(x_275, 4);
lean_inc(x_280);
if (lean_is_exclusive(x_275)) {
 lean_ctor_release(x_275, 0);
 lean_ctor_release(x_275, 1);
 lean_ctor_release(x_275, 2);
 lean_ctor_release(x_275, 3);
 lean_ctor_release(x_275, 4);
 x_281 = x_275;
} else {
 lean_dec_ref(x_275);
 x_281 = lean_box(0);
}
if (lean_is_scalar(x_281)) {
 x_282 = lean_alloc_ctor(0, 5, 0);
} else {
 x_282 = x_281;
}
lean_ctor_set(x_282, 0, x_277);
lean_ctor_set(x_282, 1, x_39);
lean_ctor_set(x_282, 2, x_278);
lean_ctor_set(x_282, 3, x_279);
lean_ctor_set(x_282, 4, x_280);
x_283 = lean_st_ref_set(x_4, x_282, x_276);
x_284 = lean_ctor_get(x_283, 1);
lean_inc(x_284);
lean_dec(x_283);
x_285 = lean_st_ref_take(x_6, x_284);
x_286 = lean_ctor_get(x_285, 0);
lean_inc(x_286);
x_287 = lean_ctor_get(x_285, 1);
lean_inc(x_287);
lean_dec(x_285);
x_288 = lean_ctor_get(x_286, 0);
lean_inc(x_288);
x_289 = lean_ctor_get(x_286, 1);
lean_inc(x_289);
x_290 = lean_ctor_get(x_286, 2);
lean_inc(x_290);
x_291 = lean_ctor_get(x_286, 3);
lean_inc(x_291);
x_292 = lean_ctor_get(x_286, 5);
lean_inc(x_292);
x_293 = lean_ctor_get(x_286, 6);
lean_inc(x_293);
if (lean_is_exclusive(x_286)) {
 lean_ctor_release(x_286, 0);
 lean_ctor_release(x_286, 1);
 lean_ctor_release(x_286, 2);
 lean_ctor_release(x_286, 3);
 lean_ctor_release(x_286, 4);
 lean_ctor_release(x_286, 5);
 lean_ctor_release(x_286, 6);
 x_294 = x_286;
} else {
 lean_dec_ref(x_286);
 x_294 = lean_box(0);
}
x_295 = l_Lean_TagDeclarationExtension_tag(x_48, x_288, x_246);
if (lean_is_scalar(x_294)) {
 x_296 = lean_alloc_ctor(0, 7, 0);
} else {
 x_296 = x_294;
}
lean_ctor_set(x_296, 0, x_295);
lean_ctor_set(x_296, 1, x_289);
lean_ctor_set(x_296, 2, x_290);
lean_ctor_set(x_296, 3, x_291);
lean_ctor_set(x_296, 4, x_31);
lean_ctor_set(x_296, 5, x_292);
lean_ctor_set(x_296, 6, x_293);
x_297 = lean_st_ref_set(x_6, x_296, x_287);
lean_dec(x_6);
x_298 = lean_ctor_get(x_297, 1);
lean_inc(x_298);
lean_dec(x_297);
x_299 = lean_st_ref_take(x_4, x_298);
x_300 = lean_ctor_get(x_299, 0);
lean_inc(x_300);
x_301 = lean_ctor_get(x_299, 1);
lean_inc(x_301);
lean_dec(x_299);
x_302 = lean_ctor_get(x_300, 0);
lean_inc(x_302);
x_303 = lean_ctor_get(x_300, 2);
lean_inc(x_303);
x_304 = lean_ctor_get(x_300, 3);
lean_inc(x_304);
x_305 = lean_ctor_get(x_300, 4);
lean_inc(x_305);
if (lean_is_exclusive(x_300)) {
 lean_ctor_release(x_300, 0);
 lean_ctor_release(x_300, 1);
 lean_ctor_release(x_300, 2);
 lean_ctor_release(x_300, 3);
 lean_ctor_release(x_300, 4);
 x_306 = x_300;
} else {
 lean_dec_ref(x_300);
 x_306 = lean_box(0);
}
if (lean_is_scalar(x_306)) {
 x_307 = lean_alloc_ctor(0, 5, 0);
} else {
 x_307 = x_306;
}
lean_ctor_set(x_307, 0, x_302);
lean_ctor_set(x_307, 1, x_39);
lean_ctor_set(x_307, 2, x_303);
lean_ctor_set(x_307, 3, x_304);
lean_ctor_set(x_307, 4, x_305);
x_308 = lean_st_ref_set(x_4, x_307, x_301);
x_309 = lean_ctor_get(x_308, 1);
lean_inc(x_309);
if (lean_is_exclusive(x_308)) {
 lean_ctor_release(x_308, 0);
 lean_ctor_release(x_308, 1);
 x_310 = x_308;
} else {
 lean_dec_ref(x_308);
 x_310 = lean_box(0);
}
x_311 = lean_box(0);
if (lean_is_scalar(x_310)) {
 x_312 = lean_alloc_ctor(0, 2, 0);
} else {
 x_312 = x_310;
}
lean_ctor_set(x_312, 0, x_311);
lean_ctor_set(x_312, 1, x_309);
return x_312;
}
else
{
lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; 
lean_dec(x_246);
lean_dec(x_6);
lean_dec(x_5);
x_313 = lean_ctor_get(x_255, 0);
lean_inc(x_313);
x_314 = lean_ctor_get(x_255, 1);
lean_inc(x_314);
if (lean_is_exclusive(x_255)) {
 lean_ctor_release(x_255, 0);
 lean_ctor_release(x_255, 1);
 x_315 = x_255;
} else {
 lean_dec_ref(x_255);
 x_315 = lean_box(0);
}
if (lean_is_scalar(x_315)) {
 x_316 = lean_alloc_ctor(1, 2, 0);
} else {
 x_316 = x_315;
}
lean_ctor_set(x_316, 0, x_313);
lean_ctor_set(x_316, 1, x_314);
return x_316;
}
}
else
{
lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; 
lean_dec(x_246);
lean_dec(x_6);
lean_dec(x_5);
x_317 = lean_ctor_get(x_252, 0);
lean_inc(x_317);
x_318 = lean_ctor_get(x_252, 1);
lean_inc(x_318);
if (lean_is_exclusive(x_252)) {
 lean_ctor_release(x_252, 0);
 lean_ctor_release(x_252, 1);
 x_319 = x_252;
} else {
 lean_dec_ref(x_252);
 x_319 = lean_box(0);
}
if (lean_is_scalar(x_319)) {
 x_320 = lean_alloc_ctor(1, 2, 0);
} else {
 x_320 = x_319;
}
lean_ctor_set(x_320, 0, x_317);
lean_ctor_set(x_320, 1, x_318);
return x_320;
}
}
}
else
{
lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; 
x_321 = lean_ctor_get(x_43, 0);
x_322 = lean_ctor_get(x_43, 1);
x_323 = lean_ctor_get(x_43, 2);
x_324 = lean_ctor_get(x_43, 3);
x_325 = lean_ctor_get(x_43, 5);
x_326 = lean_ctor_get(x_43, 6);
lean_inc(x_326);
lean_inc(x_325);
lean_inc(x_324);
lean_inc(x_323);
lean_inc(x_322);
lean_inc(x_321);
lean_dec(x_43);
x_327 = l_Lean_mkNoConfusionCore___lambda__1___closed__3;
x_328 = l_Lean_TagDeclarationExtension_tag(x_327, x_321, x_9);
x_329 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_329, 0, x_328);
lean_ctor_set(x_329, 1, x_322);
lean_ctor_set(x_329, 2, x_323);
lean_ctor_set(x_329, 3, x_324);
lean_ctor_set(x_329, 4, x_31);
lean_ctor_set(x_329, 5, x_325);
lean_ctor_set(x_329, 6, x_326);
x_330 = lean_st_ref_set(x_6, x_329, x_44);
x_331 = lean_ctor_get(x_330, 1);
lean_inc(x_331);
lean_dec(x_330);
x_332 = lean_st_ref_take(x_4, x_331);
x_333 = lean_ctor_get(x_332, 0);
lean_inc(x_333);
x_334 = lean_ctor_get(x_332, 1);
lean_inc(x_334);
lean_dec(x_332);
x_335 = lean_ctor_get(x_333, 0);
lean_inc(x_335);
x_336 = lean_ctor_get(x_333, 2);
lean_inc(x_336);
x_337 = lean_ctor_get(x_333, 3);
lean_inc(x_337);
x_338 = lean_ctor_get(x_333, 4);
lean_inc(x_338);
if (lean_is_exclusive(x_333)) {
 lean_ctor_release(x_333, 0);
 lean_ctor_release(x_333, 1);
 lean_ctor_release(x_333, 2);
 lean_ctor_release(x_333, 3);
 lean_ctor_release(x_333, 4);
 x_339 = x_333;
} else {
 lean_dec_ref(x_333);
 x_339 = lean_box(0);
}
if (lean_is_scalar(x_339)) {
 x_340 = lean_alloc_ctor(0, 5, 0);
} else {
 x_340 = x_339;
}
lean_ctor_set(x_340, 0, x_335);
lean_ctor_set(x_340, 1, x_39);
lean_ctor_set(x_340, 2, x_336);
lean_ctor_set(x_340, 3, x_337);
lean_ctor_set(x_340, 4, x_338);
x_341 = lean_st_ref_set(x_4, x_340, x_334);
x_342 = lean_ctor_get(x_341, 1);
lean_inc(x_342);
lean_dec(x_341);
x_343 = l_Lean_mkNoConfusionCore___lambda__1___closed__4;
lean_inc(x_1);
x_344 = l_Lean_Name_str___override(x_1, x_343);
x_345 = lean_st_ref_get(x_6, x_342);
x_346 = lean_ctor_get(x_345, 0);
lean_inc(x_346);
x_347 = lean_ctor_get(x_345, 1);
lean_inc(x_347);
lean_dec(x_345);
x_348 = lean_ctor_get(x_346, 0);
lean_inc(x_348);
lean_dec(x_346);
x_349 = lean_mk_no_confusion(x_348, x_1);
lean_dec(x_1);
lean_inc(x_5);
x_350 = l_Lean_ofExceptKernelException___at_Lean_mkNoConfusionCore___spec__1(x_349, x_3, x_4, x_5, x_6, x_347);
if (lean_obj_tag(x_350) == 0)
{
lean_object* x_351; lean_object* x_352; lean_object* x_353; 
x_351 = lean_ctor_get(x_350, 0);
lean_inc(x_351);
x_352 = lean_ctor_get(x_350, 1);
lean_inc(x_352);
lean_dec(x_350);
lean_inc(x_6);
lean_inc(x_5);
x_353 = l_Lean_addDecl(x_351, x_5, x_6, x_352);
if (lean_obj_tag(x_353) == 0)
{
lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; 
x_354 = lean_ctor_get(x_353, 1);
lean_inc(x_354);
lean_dec(x_353);
lean_inc(x_344);
x_355 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4(x_344, x_20, x_3, x_4, x_5, x_6, x_354);
lean_dec(x_5);
x_356 = lean_ctor_get(x_355, 1);
lean_inc(x_356);
lean_dec(x_355);
x_357 = lean_st_ref_take(x_6, x_356);
x_358 = lean_ctor_get(x_357, 0);
lean_inc(x_358);
x_359 = lean_ctor_get(x_357, 1);
lean_inc(x_359);
lean_dec(x_357);
x_360 = lean_ctor_get(x_358, 0);
lean_inc(x_360);
x_361 = lean_ctor_get(x_358, 1);
lean_inc(x_361);
x_362 = lean_ctor_get(x_358, 2);
lean_inc(x_362);
x_363 = lean_ctor_get(x_358, 3);
lean_inc(x_363);
x_364 = lean_ctor_get(x_358, 5);
lean_inc(x_364);
x_365 = lean_ctor_get(x_358, 6);
lean_inc(x_365);
if (lean_is_exclusive(x_358)) {
 lean_ctor_release(x_358, 0);
 lean_ctor_release(x_358, 1);
 lean_ctor_release(x_358, 2);
 lean_ctor_release(x_358, 3);
 lean_ctor_release(x_358, 4);
 lean_ctor_release(x_358, 5);
 lean_ctor_release(x_358, 6);
 x_366 = x_358;
} else {
 lean_dec_ref(x_358);
 x_366 = lean_box(0);
}
x_367 = l_Lean_mkNoConfusionCore___lambda__1___closed__5;
lean_inc(x_344);
x_368 = l_Lean_TagDeclarationExtension_tag(x_367, x_360, x_344);
if (lean_is_scalar(x_366)) {
 x_369 = lean_alloc_ctor(0, 7, 0);
} else {
 x_369 = x_366;
}
lean_ctor_set(x_369, 0, x_368);
lean_ctor_set(x_369, 1, x_361);
lean_ctor_set(x_369, 2, x_362);
lean_ctor_set(x_369, 3, x_363);
lean_ctor_set(x_369, 4, x_31);
lean_ctor_set(x_369, 5, x_364);
lean_ctor_set(x_369, 6, x_365);
x_370 = lean_st_ref_set(x_6, x_369, x_359);
x_371 = lean_ctor_get(x_370, 1);
lean_inc(x_371);
lean_dec(x_370);
x_372 = lean_st_ref_take(x_4, x_371);
x_373 = lean_ctor_get(x_372, 0);
lean_inc(x_373);
x_374 = lean_ctor_get(x_372, 1);
lean_inc(x_374);
lean_dec(x_372);
x_375 = lean_ctor_get(x_373, 0);
lean_inc(x_375);
x_376 = lean_ctor_get(x_373, 2);
lean_inc(x_376);
x_377 = lean_ctor_get(x_373, 3);
lean_inc(x_377);
x_378 = lean_ctor_get(x_373, 4);
lean_inc(x_378);
if (lean_is_exclusive(x_373)) {
 lean_ctor_release(x_373, 0);
 lean_ctor_release(x_373, 1);
 lean_ctor_release(x_373, 2);
 lean_ctor_release(x_373, 3);
 lean_ctor_release(x_373, 4);
 x_379 = x_373;
} else {
 lean_dec_ref(x_373);
 x_379 = lean_box(0);
}
if (lean_is_scalar(x_379)) {
 x_380 = lean_alloc_ctor(0, 5, 0);
} else {
 x_380 = x_379;
}
lean_ctor_set(x_380, 0, x_375);
lean_ctor_set(x_380, 1, x_39);
lean_ctor_set(x_380, 2, x_376);
lean_ctor_set(x_380, 3, x_377);
lean_ctor_set(x_380, 4, x_378);
x_381 = lean_st_ref_set(x_4, x_380, x_374);
x_382 = lean_ctor_get(x_381, 1);
lean_inc(x_382);
lean_dec(x_381);
x_383 = lean_st_ref_take(x_6, x_382);
x_384 = lean_ctor_get(x_383, 0);
lean_inc(x_384);
x_385 = lean_ctor_get(x_383, 1);
lean_inc(x_385);
lean_dec(x_383);
x_386 = lean_ctor_get(x_384, 0);
lean_inc(x_386);
x_387 = lean_ctor_get(x_384, 1);
lean_inc(x_387);
x_388 = lean_ctor_get(x_384, 2);
lean_inc(x_388);
x_389 = lean_ctor_get(x_384, 3);
lean_inc(x_389);
x_390 = lean_ctor_get(x_384, 5);
lean_inc(x_390);
x_391 = lean_ctor_get(x_384, 6);
lean_inc(x_391);
if (lean_is_exclusive(x_384)) {
 lean_ctor_release(x_384, 0);
 lean_ctor_release(x_384, 1);
 lean_ctor_release(x_384, 2);
 lean_ctor_release(x_384, 3);
 lean_ctor_release(x_384, 4);
 lean_ctor_release(x_384, 5);
 lean_ctor_release(x_384, 6);
 x_392 = x_384;
} else {
 lean_dec_ref(x_384);
 x_392 = lean_box(0);
}
x_393 = l_Lean_TagDeclarationExtension_tag(x_327, x_386, x_344);
if (lean_is_scalar(x_392)) {
 x_394 = lean_alloc_ctor(0, 7, 0);
} else {
 x_394 = x_392;
}
lean_ctor_set(x_394, 0, x_393);
lean_ctor_set(x_394, 1, x_387);
lean_ctor_set(x_394, 2, x_388);
lean_ctor_set(x_394, 3, x_389);
lean_ctor_set(x_394, 4, x_31);
lean_ctor_set(x_394, 5, x_390);
lean_ctor_set(x_394, 6, x_391);
x_395 = lean_st_ref_set(x_6, x_394, x_385);
lean_dec(x_6);
x_396 = lean_ctor_get(x_395, 1);
lean_inc(x_396);
lean_dec(x_395);
x_397 = lean_st_ref_take(x_4, x_396);
x_398 = lean_ctor_get(x_397, 0);
lean_inc(x_398);
x_399 = lean_ctor_get(x_397, 1);
lean_inc(x_399);
lean_dec(x_397);
x_400 = lean_ctor_get(x_398, 0);
lean_inc(x_400);
x_401 = lean_ctor_get(x_398, 2);
lean_inc(x_401);
x_402 = lean_ctor_get(x_398, 3);
lean_inc(x_402);
x_403 = lean_ctor_get(x_398, 4);
lean_inc(x_403);
if (lean_is_exclusive(x_398)) {
 lean_ctor_release(x_398, 0);
 lean_ctor_release(x_398, 1);
 lean_ctor_release(x_398, 2);
 lean_ctor_release(x_398, 3);
 lean_ctor_release(x_398, 4);
 x_404 = x_398;
} else {
 lean_dec_ref(x_398);
 x_404 = lean_box(0);
}
if (lean_is_scalar(x_404)) {
 x_405 = lean_alloc_ctor(0, 5, 0);
} else {
 x_405 = x_404;
}
lean_ctor_set(x_405, 0, x_400);
lean_ctor_set(x_405, 1, x_39);
lean_ctor_set(x_405, 2, x_401);
lean_ctor_set(x_405, 3, x_402);
lean_ctor_set(x_405, 4, x_403);
x_406 = lean_st_ref_set(x_4, x_405, x_399);
x_407 = lean_ctor_get(x_406, 1);
lean_inc(x_407);
if (lean_is_exclusive(x_406)) {
 lean_ctor_release(x_406, 0);
 lean_ctor_release(x_406, 1);
 x_408 = x_406;
} else {
 lean_dec_ref(x_406);
 x_408 = lean_box(0);
}
x_409 = lean_box(0);
if (lean_is_scalar(x_408)) {
 x_410 = lean_alloc_ctor(0, 2, 0);
} else {
 x_410 = x_408;
}
lean_ctor_set(x_410, 0, x_409);
lean_ctor_set(x_410, 1, x_407);
return x_410;
}
else
{
lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; 
lean_dec(x_344);
lean_dec(x_6);
lean_dec(x_5);
x_411 = lean_ctor_get(x_353, 0);
lean_inc(x_411);
x_412 = lean_ctor_get(x_353, 1);
lean_inc(x_412);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 x_413 = x_353;
} else {
 lean_dec_ref(x_353);
 x_413 = lean_box(0);
}
if (lean_is_scalar(x_413)) {
 x_414 = lean_alloc_ctor(1, 2, 0);
} else {
 x_414 = x_413;
}
lean_ctor_set(x_414, 0, x_411);
lean_ctor_set(x_414, 1, x_412);
return x_414;
}
}
else
{
lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; 
lean_dec(x_344);
lean_dec(x_6);
lean_dec(x_5);
x_415 = lean_ctor_get(x_350, 0);
lean_inc(x_415);
x_416 = lean_ctor_get(x_350, 1);
lean_inc(x_416);
if (lean_is_exclusive(x_350)) {
 lean_ctor_release(x_350, 0);
 lean_ctor_release(x_350, 1);
 x_417 = x_350;
} else {
 lean_dec_ref(x_350);
 x_417 = lean_box(0);
}
if (lean_is_scalar(x_417)) {
 x_418 = lean_alloc_ctor(1, 2, 0);
} else {
 x_418 = x_417;
}
lean_ctor_set(x_418, 0, x_415);
lean_ctor_set(x_418, 1, x_416);
return x_418;
}
}
}
else
{
lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; 
x_419 = lean_ctor_get(x_35, 0);
x_420 = lean_ctor_get(x_35, 2);
x_421 = lean_ctor_get(x_35, 3);
x_422 = lean_ctor_get(x_35, 4);
lean_inc(x_422);
lean_inc(x_421);
lean_inc(x_420);
lean_inc(x_419);
lean_dec(x_35);
x_423 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__5;
x_424 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_424, 0, x_419);
lean_ctor_set(x_424, 1, x_423);
lean_ctor_set(x_424, 2, x_420);
lean_ctor_set(x_424, 3, x_421);
lean_ctor_set(x_424, 4, x_422);
x_425 = lean_st_ref_set(x_4, x_424, x_36);
x_426 = lean_ctor_get(x_425, 1);
lean_inc(x_426);
lean_dec(x_425);
x_427 = lean_st_ref_take(x_6, x_426);
x_428 = lean_ctor_get(x_427, 0);
lean_inc(x_428);
x_429 = lean_ctor_get(x_427, 1);
lean_inc(x_429);
lean_dec(x_427);
x_430 = lean_ctor_get(x_428, 0);
lean_inc(x_430);
x_431 = lean_ctor_get(x_428, 1);
lean_inc(x_431);
x_432 = lean_ctor_get(x_428, 2);
lean_inc(x_432);
x_433 = lean_ctor_get(x_428, 3);
lean_inc(x_433);
x_434 = lean_ctor_get(x_428, 5);
lean_inc(x_434);
x_435 = lean_ctor_get(x_428, 6);
lean_inc(x_435);
if (lean_is_exclusive(x_428)) {
 lean_ctor_release(x_428, 0);
 lean_ctor_release(x_428, 1);
 lean_ctor_release(x_428, 2);
 lean_ctor_release(x_428, 3);
 lean_ctor_release(x_428, 4);
 lean_ctor_release(x_428, 5);
 lean_ctor_release(x_428, 6);
 x_436 = x_428;
} else {
 lean_dec_ref(x_428);
 x_436 = lean_box(0);
}
x_437 = l_Lean_mkNoConfusionCore___lambda__1___closed__3;
x_438 = l_Lean_TagDeclarationExtension_tag(x_437, x_430, x_9);
if (lean_is_scalar(x_436)) {
 x_439 = lean_alloc_ctor(0, 7, 0);
} else {
 x_439 = x_436;
}
lean_ctor_set(x_439, 0, x_438);
lean_ctor_set(x_439, 1, x_431);
lean_ctor_set(x_439, 2, x_432);
lean_ctor_set(x_439, 3, x_433);
lean_ctor_set(x_439, 4, x_31);
lean_ctor_set(x_439, 5, x_434);
lean_ctor_set(x_439, 6, x_435);
x_440 = lean_st_ref_set(x_6, x_439, x_429);
x_441 = lean_ctor_get(x_440, 1);
lean_inc(x_441);
lean_dec(x_440);
x_442 = lean_st_ref_take(x_4, x_441);
x_443 = lean_ctor_get(x_442, 0);
lean_inc(x_443);
x_444 = lean_ctor_get(x_442, 1);
lean_inc(x_444);
lean_dec(x_442);
x_445 = lean_ctor_get(x_443, 0);
lean_inc(x_445);
x_446 = lean_ctor_get(x_443, 2);
lean_inc(x_446);
x_447 = lean_ctor_get(x_443, 3);
lean_inc(x_447);
x_448 = lean_ctor_get(x_443, 4);
lean_inc(x_448);
if (lean_is_exclusive(x_443)) {
 lean_ctor_release(x_443, 0);
 lean_ctor_release(x_443, 1);
 lean_ctor_release(x_443, 2);
 lean_ctor_release(x_443, 3);
 lean_ctor_release(x_443, 4);
 x_449 = x_443;
} else {
 lean_dec_ref(x_443);
 x_449 = lean_box(0);
}
if (lean_is_scalar(x_449)) {
 x_450 = lean_alloc_ctor(0, 5, 0);
} else {
 x_450 = x_449;
}
lean_ctor_set(x_450, 0, x_445);
lean_ctor_set(x_450, 1, x_423);
lean_ctor_set(x_450, 2, x_446);
lean_ctor_set(x_450, 3, x_447);
lean_ctor_set(x_450, 4, x_448);
x_451 = lean_st_ref_set(x_4, x_450, x_444);
x_452 = lean_ctor_get(x_451, 1);
lean_inc(x_452);
lean_dec(x_451);
x_453 = l_Lean_mkNoConfusionCore___lambda__1___closed__4;
lean_inc(x_1);
x_454 = l_Lean_Name_str___override(x_1, x_453);
x_455 = lean_st_ref_get(x_6, x_452);
x_456 = lean_ctor_get(x_455, 0);
lean_inc(x_456);
x_457 = lean_ctor_get(x_455, 1);
lean_inc(x_457);
lean_dec(x_455);
x_458 = lean_ctor_get(x_456, 0);
lean_inc(x_458);
lean_dec(x_456);
x_459 = lean_mk_no_confusion(x_458, x_1);
lean_dec(x_1);
lean_inc(x_5);
x_460 = l_Lean_ofExceptKernelException___at_Lean_mkNoConfusionCore___spec__1(x_459, x_3, x_4, x_5, x_6, x_457);
if (lean_obj_tag(x_460) == 0)
{
lean_object* x_461; lean_object* x_462; lean_object* x_463; 
x_461 = lean_ctor_get(x_460, 0);
lean_inc(x_461);
x_462 = lean_ctor_get(x_460, 1);
lean_inc(x_462);
lean_dec(x_460);
lean_inc(x_6);
lean_inc(x_5);
x_463 = l_Lean_addDecl(x_461, x_5, x_6, x_462);
if (lean_obj_tag(x_463) == 0)
{
lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; 
x_464 = lean_ctor_get(x_463, 1);
lean_inc(x_464);
lean_dec(x_463);
lean_inc(x_454);
x_465 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4(x_454, x_20, x_3, x_4, x_5, x_6, x_464);
lean_dec(x_5);
x_466 = lean_ctor_get(x_465, 1);
lean_inc(x_466);
lean_dec(x_465);
x_467 = lean_st_ref_take(x_6, x_466);
x_468 = lean_ctor_get(x_467, 0);
lean_inc(x_468);
x_469 = lean_ctor_get(x_467, 1);
lean_inc(x_469);
lean_dec(x_467);
x_470 = lean_ctor_get(x_468, 0);
lean_inc(x_470);
x_471 = lean_ctor_get(x_468, 1);
lean_inc(x_471);
x_472 = lean_ctor_get(x_468, 2);
lean_inc(x_472);
x_473 = lean_ctor_get(x_468, 3);
lean_inc(x_473);
x_474 = lean_ctor_get(x_468, 5);
lean_inc(x_474);
x_475 = lean_ctor_get(x_468, 6);
lean_inc(x_475);
if (lean_is_exclusive(x_468)) {
 lean_ctor_release(x_468, 0);
 lean_ctor_release(x_468, 1);
 lean_ctor_release(x_468, 2);
 lean_ctor_release(x_468, 3);
 lean_ctor_release(x_468, 4);
 lean_ctor_release(x_468, 5);
 lean_ctor_release(x_468, 6);
 x_476 = x_468;
} else {
 lean_dec_ref(x_468);
 x_476 = lean_box(0);
}
x_477 = l_Lean_mkNoConfusionCore___lambda__1___closed__5;
lean_inc(x_454);
x_478 = l_Lean_TagDeclarationExtension_tag(x_477, x_470, x_454);
if (lean_is_scalar(x_476)) {
 x_479 = lean_alloc_ctor(0, 7, 0);
} else {
 x_479 = x_476;
}
lean_ctor_set(x_479, 0, x_478);
lean_ctor_set(x_479, 1, x_471);
lean_ctor_set(x_479, 2, x_472);
lean_ctor_set(x_479, 3, x_473);
lean_ctor_set(x_479, 4, x_31);
lean_ctor_set(x_479, 5, x_474);
lean_ctor_set(x_479, 6, x_475);
x_480 = lean_st_ref_set(x_6, x_479, x_469);
x_481 = lean_ctor_get(x_480, 1);
lean_inc(x_481);
lean_dec(x_480);
x_482 = lean_st_ref_take(x_4, x_481);
x_483 = lean_ctor_get(x_482, 0);
lean_inc(x_483);
x_484 = lean_ctor_get(x_482, 1);
lean_inc(x_484);
lean_dec(x_482);
x_485 = lean_ctor_get(x_483, 0);
lean_inc(x_485);
x_486 = lean_ctor_get(x_483, 2);
lean_inc(x_486);
x_487 = lean_ctor_get(x_483, 3);
lean_inc(x_487);
x_488 = lean_ctor_get(x_483, 4);
lean_inc(x_488);
if (lean_is_exclusive(x_483)) {
 lean_ctor_release(x_483, 0);
 lean_ctor_release(x_483, 1);
 lean_ctor_release(x_483, 2);
 lean_ctor_release(x_483, 3);
 lean_ctor_release(x_483, 4);
 x_489 = x_483;
} else {
 lean_dec_ref(x_483);
 x_489 = lean_box(0);
}
if (lean_is_scalar(x_489)) {
 x_490 = lean_alloc_ctor(0, 5, 0);
} else {
 x_490 = x_489;
}
lean_ctor_set(x_490, 0, x_485);
lean_ctor_set(x_490, 1, x_423);
lean_ctor_set(x_490, 2, x_486);
lean_ctor_set(x_490, 3, x_487);
lean_ctor_set(x_490, 4, x_488);
x_491 = lean_st_ref_set(x_4, x_490, x_484);
x_492 = lean_ctor_get(x_491, 1);
lean_inc(x_492);
lean_dec(x_491);
x_493 = lean_st_ref_take(x_6, x_492);
x_494 = lean_ctor_get(x_493, 0);
lean_inc(x_494);
x_495 = lean_ctor_get(x_493, 1);
lean_inc(x_495);
lean_dec(x_493);
x_496 = lean_ctor_get(x_494, 0);
lean_inc(x_496);
x_497 = lean_ctor_get(x_494, 1);
lean_inc(x_497);
x_498 = lean_ctor_get(x_494, 2);
lean_inc(x_498);
x_499 = lean_ctor_get(x_494, 3);
lean_inc(x_499);
x_500 = lean_ctor_get(x_494, 5);
lean_inc(x_500);
x_501 = lean_ctor_get(x_494, 6);
lean_inc(x_501);
if (lean_is_exclusive(x_494)) {
 lean_ctor_release(x_494, 0);
 lean_ctor_release(x_494, 1);
 lean_ctor_release(x_494, 2);
 lean_ctor_release(x_494, 3);
 lean_ctor_release(x_494, 4);
 lean_ctor_release(x_494, 5);
 lean_ctor_release(x_494, 6);
 x_502 = x_494;
} else {
 lean_dec_ref(x_494);
 x_502 = lean_box(0);
}
x_503 = l_Lean_TagDeclarationExtension_tag(x_437, x_496, x_454);
if (lean_is_scalar(x_502)) {
 x_504 = lean_alloc_ctor(0, 7, 0);
} else {
 x_504 = x_502;
}
lean_ctor_set(x_504, 0, x_503);
lean_ctor_set(x_504, 1, x_497);
lean_ctor_set(x_504, 2, x_498);
lean_ctor_set(x_504, 3, x_499);
lean_ctor_set(x_504, 4, x_31);
lean_ctor_set(x_504, 5, x_500);
lean_ctor_set(x_504, 6, x_501);
x_505 = lean_st_ref_set(x_6, x_504, x_495);
lean_dec(x_6);
x_506 = lean_ctor_get(x_505, 1);
lean_inc(x_506);
lean_dec(x_505);
x_507 = lean_st_ref_take(x_4, x_506);
x_508 = lean_ctor_get(x_507, 0);
lean_inc(x_508);
x_509 = lean_ctor_get(x_507, 1);
lean_inc(x_509);
lean_dec(x_507);
x_510 = lean_ctor_get(x_508, 0);
lean_inc(x_510);
x_511 = lean_ctor_get(x_508, 2);
lean_inc(x_511);
x_512 = lean_ctor_get(x_508, 3);
lean_inc(x_512);
x_513 = lean_ctor_get(x_508, 4);
lean_inc(x_513);
if (lean_is_exclusive(x_508)) {
 lean_ctor_release(x_508, 0);
 lean_ctor_release(x_508, 1);
 lean_ctor_release(x_508, 2);
 lean_ctor_release(x_508, 3);
 lean_ctor_release(x_508, 4);
 x_514 = x_508;
} else {
 lean_dec_ref(x_508);
 x_514 = lean_box(0);
}
if (lean_is_scalar(x_514)) {
 x_515 = lean_alloc_ctor(0, 5, 0);
} else {
 x_515 = x_514;
}
lean_ctor_set(x_515, 0, x_510);
lean_ctor_set(x_515, 1, x_423);
lean_ctor_set(x_515, 2, x_511);
lean_ctor_set(x_515, 3, x_512);
lean_ctor_set(x_515, 4, x_513);
x_516 = lean_st_ref_set(x_4, x_515, x_509);
x_517 = lean_ctor_get(x_516, 1);
lean_inc(x_517);
if (lean_is_exclusive(x_516)) {
 lean_ctor_release(x_516, 0);
 lean_ctor_release(x_516, 1);
 x_518 = x_516;
} else {
 lean_dec_ref(x_516);
 x_518 = lean_box(0);
}
x_519 = lean_box(0);
if (lean_is_scalar(x_518)) {
 x_520 = lean_alloc_ctor(0, 2, 0);
} else {
 x_520 = x_518;
}
lean_ctor_set(x_520, 0, x_519);
lean_ctor_set(x_520, 1, x_517);
return x_520;
}
else
{
lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; 
lean_dec(x_454);
lean_dec(x_6);
lean_dec(x_5);
x_521 = lean_ctor_get(x_463, 0);
lean_inc(x_521);
x_522 = lean_ctor_get(x_463, 1);
lean_inc(x_522);
if (lean_is_exclusive(x_463)) {
 lean_ctor_release(x_463, 0);
 lean_ctor_release(x_463, 1);
 x_523 = x_463;
} else {
 lean_dec_ref(x_463);
 x_523 = lean_box(0);
}
if (lean_is_scalar(x_523)) {
 x_524 = lean_alloc_ctor(1, 2, 0);
} else {
 x_524 = x_523;
}
lean_ctor_set(x_524, 0, x_521);
lean_ctor_set(x_524, 1, x_522);
return x_524;
}
}
else
{
lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; 
lean_dec(x_454);
lean_dec(x_6);
lean_dec(x_5);
x_525 = lean_ctor_get(x_460, 0);
lean_inc(x_525);
x_526 = lean_ctor_get(x_460, 1);
lean_inc(x_526);
if (lean_is_exclusive(x_460)) {
 lean_ctor_release(x_460, 0);
 lean_ctor_release(x_460, 1);
 x_527 = x_460;
} else {
 lean_dec_ref(x_460);
 x_527 = lean_box(0);
}
if (lean_is_scalar(x_527)) {
 x_528 = lean_alloc_ctor(1, 2, 0);
} else {
 x_528 = x_527;
}
lean_ctor_set(x_528, 0, x_525);
lean_ctor_set(x_528, 1, x_526);
return x_528;
}
}
}
else
{
lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; 
x_529 = lean_ctor_get(x_24, 0);
x_530 = lean_ctor_get(x_24, 1);
x_531 = lean_ctor_get(x_24, 2);
x_532 = lean_ctor_get(x_24, 3);
x_533 = lean_ctor_get(x_24, 5);
x_534 = lean_ctor_get(x_24, 6);
lean_inc(x_534);
lean_inc(x_533);
lean_inc(x_532);
lean_inc(x_531);
lean_inc(x_530);
lean_inc(x_529);
lean_dec(x_24);
x_535 = l_Lean_mkNoConfusionCore___lambda__1___closed__2;
lean_inc(x_9);
x_536 = l_Lean_TagDeclarationExtension_tag(x_535, x_529, x_9);
x_537 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__3;
x_538 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_538, 0, x_536);
lean_ctor_set(x_538, 1, x_530);
lean_ctor_set(x_538, 2, x_531);
lean_ctor_set(x_538, 3, x_532);
lean_ctor_set(x_538, 4, x_537);
lean_ctor_set(x_538, 5, x_533);
lean_ctor_set(x_538, 6, x_534);
x_539 = lean_st_ref_set(x_6, x_538, x_25);
x_540 = lean_ctor_get(x_539, 1);
lean_inc(x_540);
lean_dec(x_539);
x_541 = lean_st_ref_take(x_4, x_540);
x_542 = lean_ctor_get(x_541, 0);
lean_inc(x_542);
x_543 = lean_ctor_get(x_541, 1);
lean_inc(x_543);
lean_dec(x_541);
x_544 = lean_ctor_get(x_542, 0);
lean_inc(x_544);
x_545 = lean_ctor_get(x_542, 2);
lean_inc(x_545);
x_546 = lean_ctor_get(x_542, 3);
lean_inc(x_546);
x_547 = lean_ctor_get(x_542, 4);
lean_inc(x_547);
if (lean_is_exclusive(x_542)) {
 lean_ctor_release(x_542, 0);
 lean_ctor_release(x_542, 1);
 lean_ctor_release(x_542, 2);
 lean_ctor_release(x_542, 3);
 lean_ctor_release(x_542, 4);
 x_548 = x_542;
} else {
 lean_dec_ref(x_542);
 x_548 = lean_box(0);
}
x_549 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__5;
if (lean_is_scalar(x_548)) {
 x_550 = lean_alloc_ctor(0, 5, 0);
} else {
 x_550 = x_548;
}
lean_ctor_set(x_550, 0, x_544);
lean_ctor_set(x_550, 1, x_549);
lean_ctor_set(x_550, 2, x_545);
lean_ctor_set(x_550, 3, x_546);
lean_ctor_set(x_550, 4, x_547);
x_551 = lean_st_ref_set(x_4, x_550, x_543);
x_552 = lean_ctor_get(x_551, 1);
lean_inc(x_552);
lean_dec(x_551);
x_553 = lean_st_ref_take(x_6, x_552);
x_554 = lean_ctor_get(x_553, 0);
lean_inc(x_554);
x_555 = lean_ctor_get(x_553, 1);
lean_inc(x_555);
lean_dec(x_553);
x_556 = lean_ctor_get(x_554, 0);
lean_inc(x_556);
x_557 = lean_ctor_get(x_554, 1);
lean_inc(x_557);
x_558 = lean_ctor_get(x_554, 2);
lean_inc(x_558);
x_559 = lean_ctor_get(x_554, 3);
lean_inc(x_559);
x_560 = lean_ctor_get(x_554, 5);
lean_inc(x_560);
x_561 = lean_ctor_get(x_554, 6);
lean_inc(x_561);
if (lean_is_exclusive(x_554)) {
 lean_ctor_release(x_554, 0);
 lean_ctor_release(x_554, 1);
 lean_ctor_release(x_554, 2);
 lean_ctor_release(x_554, 3);
 lean_ctor_release(x_554, 4);
 lean_ctor_release(x_554, 5);
 lean_ctor_release(x_554, 6);
 x_562 = x_554;
} else {
 lean_dec_ref(x_554);
 x_562 = lean_box(0);
}
x_563 = l_Lean_mkNoConfusionCore___lambda__1___closed__3;
x_564 = l_Lean_TagDeclarationExtension_tag(x_563, x_556, x_9);
if (lean_is_scalar(x_562)) {
 x_565 = lean_alloc_ctor(0, 7, 0);
} else {
 x_565 = x_562;
}
lean_ctor_set(x_565, 0, x_564);
lean_ctor_set(x_565, 1, x_557);
lean_ctor_set(x_565, 2, x_558);
lean_ctor_set(x_565, 3, x_559);
lean_ctor_set(x_565, 4, x_537);
lean_ctor_set(x_565, 5, x_560);
lean_ctor_set(x_565, 6, x_561);
x_566 = lean_st_ref_set(x_6, x_565, x_555);
x_567 = lean_ctor_get(x_566, 1);
lean_inc(x_567);
lean_dec(x_566);
x_568 = lean_st_ref_take(x_4, x_567);
x_569 = lean_ctor_get(x_568, 0);
lean_inc(x_569);
x_570 = lean_ctor_get(x_568, 1);
lean_inc(x_570);
lean_dec(x_568);
x_571 = lean_ctor_get(x_569, 0);
lean_inc(x_571);
x_572 = lean_ctor_get(x_569, 2);
lean_inc(x_572);
x_573 = lean_ctor_get(x_569, 3);
lean_inc(x_573);
x_574 = lean_ctor_get(x_569, 4);
lean_inc(x_574);
if (lean_is_exclusive(x_569)) {
 lean_ctor_release(x_569, 0);
 lean_ctor_release(x_569, 1);
 lean_ctor_release(x_569, 2);
 lean_ctor_release(x_569, 3);
 lean_ctor_release(x_569, 4);
 x_575 = x_569;
} else {
 lean_dec_ref(x_569);
 x_575 = lean_box(0);
}
if (lean_is_scalar(x_575)) {
 x_576 = lean_alloc_ctor(0, 5, 0);
} else {
 x_576 = x_575;
}
lean_ctor_set(x_576, 0, x_571);
lean_ctor_set(x_576, 1, x_549);
lean_ctor_set(x_576, 2, x_572);
lean_ctor_set(x_576, 3, x_573);
lean_ctor_set(x_576, 4, x_574);
x_577 = lean_st_ref_set(x_4, x_576, x_570);
x_578 = lean_ctor_get(x_577, 1);
lean_inc(x_578);
lean_dec(x_577);
x_579 = l_Lean_mkNoConfusionCore___lambda__1___closed__4;
lean_inc(x_1);
x_580 = l_Lean_Name_str___override(x_1, x_579);
x_581 = lean_st_ref_get(x_6, x_578);
x_582 = lean_ctor_get(x_581, 0);
lean_inc(x_582);
x_583 = lean_ctor_get(x_581, 1);
lean_inc(x_583);
lean_dec(x_581);
x_584 = lean_ctor_get(x_582, 0);
lean_inc(x_584);
lean_dec(x_582);
x_585 = lean_mk_no_confusion(x_584, x_1);
lean_dec(x_1);
lean_inc(x_5);
x_586 = l_Lean_ofExceptKernelException___at_Lean_mkNoConfusionCore___spec__1(x_585, x_3, x_4, x_5, x_6, x_583);
if (lean_obj_tag(x_586) == 0)
{
lean_object* x_587; lean_object* x_588; lean_object* x_589; 
x_587 = lean_ctor_get(x_586, 0);
lean_inc(x_587);
x_588 = lean_ctor_get(x_586, 1);
lean_inc(x_588);
lean_dec(x_586);
lean_inc(x_6);
lean_inc(x_5);
x_589 = l_Lean_addDecl(x_587, x_5, x_6, x_588);
if (lean_obj_tag(x_589) == 0)
{
lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; 
x_590 = lean_ctor_get(x_589, 1);
lean_inc(x_590);
lean_dec(x_589);
lean_inc(x_580);
x_591 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4(x_580, x_20, x_3, x_4, x_5, x_6, x_590);
lean_dec(x_5);
x_592 = lean_ctor_get(x_591, 1);
lean_inc(x_592);
lean_dec(x_591);
x_593 = lean_st_ref_take(x_6, x_592);
x_594 = lean_ctor_get(x_593, 0);
lean_inc(x_594);
x_595 = lean_ctor_get(x_593, 1);
lean_inc(x_595);
lean_dec(x_593);
x_596 = lean_ctor_get(x_594, 0);
lean_inc(x_596);
x_597 = lean_ctor_get(x_594, 1);
lean_inc(x_597);
x_598 = lean_ctor_get(x_594, 2);
lean_inc(x_598);
x_599 = lean_ctor_get(x_594, 3);
lean_inc(x_599);
x_600 = lean_ctor_get(x_594, 5);
lean_inc(x_600);
x_601 = lean_ctor_get(x_594, 6);
lean_inc(x_601);
if (lean_is_exclusive(x_594)) {
 lean_ctor_release(x_594, 0);
 lean_ctor_release(x_594, 1);
 lean_ctor_release(x_594, 2);
 lean_ctor_release(x_594, 3);
 lean_ctor_release(x_594, 4);
 lean_ctor_release(x_594, 5);
 lean_ctor_release(x_594, 6);
 x_602 = x_594;
} else {
 lean_dec_ref(x_594);
 x_602 = lean_box(0);
}
x_603 = l_Lean_mkNoConfusionCore___lambda__1___closed__5;
lean_inc(x_580);
x_604 = l_Lean_TagDeclarationExtension_tag(x_603, x_596, x_580);
if (lean_is_scalar(x_602)) {
 x_605 = lean_alloc_ctor(0, 7, 0);
} else {
 x_605 = x_602;
}
lean_ctor_set(x_605, 0, x_604);
lean_ctor_set(x_605, 1, x_597);
lean_ctor_set(x_605, 2, x_598);
lean_ctor_set(x_605, 3, x_599);
lean_ctor_set(x_605, 4, x_537);
lean_ctor_set(x_605, 5, x_600);
lean_ctor_set(x_605, 6, x_601);
x_606 = lean_st_ref_set(x_6, x_605, x_595);
x_607 = lean_ctor_get(x_606, 1);
lean_inc(x_607);
lean_dec(x_606);
x_608 = lean_st_ref_take(x_4, x_607);
x_609 = lean_ctor_get(x_608, 0);
lean_inc(x_609);
x_610 = lean_ctor_get(x_608, 1);
lean_inc(x_610);
lean_dec(x_608);
x_611 = lean_ctor_get(x_609, 0);
lean_inc(x_611);
x_612 = lean_ctor_get(x_609, 2);
lean_inc(x_612);
x_613 = lean_ctor_get(x_609, 3);
lean_inc(x_613);
x_614 = lean_ctor_get(x_609, 4);
lean_inc(x_614);
if (lean_is_exclusive(x_609)) {
 lean_ctor_release(x_609, 0);
 lean_ctor_release(x_609, 1);
 lean_ctor_release(x_609, 2);
 lean_ctor_release(x_609, 3);
 lean_ctor_release(x_609, 4);
 x_615 = x_609;
} else {
 lean_dec_ref(x_609);
 x_615 = lean_box(0);
}
if (lean_is_scalar(x_615)) {
 x_616 = lean_alloc_ctor(0, 5, 0);
} else {
 x_616 = x_615;
}
lean_ctor_set(x_616, 0, x_611);
lean_ctor_set(x_616, 1, x_549);
lean_ctor_set(x_616, 2, x_612);
lean_ctor_set(x_616, 3, x_613);
lean_ctor_set(x_616, 4, x_614);
x_617 = lean_st_ref_set(x_4, x_616, x_610);
x_618 = lean_ctor_get(x_617, 1);
lean_inc(x_618);
lean_dec(x_617);
x_619 = lean_st_ref_take(x_6, x_618);
x_620 = lean_ctor_get(x_619, 0);
lean_inc(x_620);
x_621 = lean_ctor_get(x_619, 1);
lean_inc(x_621);
lean_dec(x_619);
x_622 = lean_ctor_get(x_620, 0);
lean_inc(x_622);
x_623 = lean_ctor_get(x_620, 1);
lean_inc(x_623);
x_624 = lean_ctor_get(x_620, 2);
lean_inc(x_624);
x_625 = lean_ctor_get(x_620, 3);
lean_inc(x_625);
x_626 = lean_ctor_get(x_620, 5);
lean_inc(x_626);
x_627 = lean_ctor_get(x_620, 6);
lean_inc(x_627);
if (lean_is_exclusive(x_620)) {
 lean_ctor_release(x_620, 0);
 lean_ctor_release(x_620, 1);
 lean_ctor_release(x_620, 2);
 lean_ctor_release(x_620, 3);
 lean_ctor_release(x_620, 4);
 lean_ctor_release(x_620, 5);
 lean_ctor_release(x_620, 6);
 x_628 = x_620;
} else {
 lean_dec_ref(x_620);
 x_628 = lean_box(0);
}
x_629 = l_Lean_TagDeclarationExtension_tag(x_563, x_622, x_580);
if (lean_is_scalar(x_628)) {
 x_630 = lean_alloc_ctor(0, 7, 0);
} else {
 x_630 = x_628;
}
lean_ctor_set(x_630, 0, x_629);
lean_ctor_set(x_630, 1, x_623);
lean_ctor_set(x_630, 2, x_624);
lean_ctor_set(x_630, 3, x_625);
lean_ctor_set(x_630, 4, x_537);
lean_ctor_set(x_630, 5, x_626);
lean_ctor_set(x_630, 6, x_627);
x_631 = lean_st_ref_set(x_6, x_630, x_621);
lean_dec(x_6);
x_632 = lean_ctor_get(x_631, 1);
lean_inc(x_632);
lean_dec(x_631);
x_633 = lean_st_ref_take(x_4, x_632);
x_634 = lean_ctor_get(x_633, 0);
lean_inc(x_634);
x_635 = lean_ctor_get(x_633, 1);
lean_inc(x_635);
lean_dec(x_633);
x_636 = lean_ctor_get(x_634, 0);
lean_inc(x_636);
x_637 = lean_ctor_get(x_634, 2);
lean_inc(x_637);
x_638 = lean_ctor_get(x_634, 3);
lean_inc(x_638);
x_639 = lean_ctor_get(x_634, 4);
lean_inc(x_639);
if (lean_is_exclusive(x_634)) {
 lean_ctor_release(x_634, 0);
 lean_ctor_release(x_634, 1);
 lean_ctor_release(x_634, 2);
 lean_ctor_release(x_634, 3);
 lean_ctor_release(x_634, 4);
 x_640 = x_634;
} else {
 lean_dec_ref(x_634);
 x_640 = lean_box(0);
}
if (lean_is_scalar(x_640)) {
 x_641 = lean_alloc_ctor(0, 5, 0);
} else {
 x_641 = x_640;
}
lean_ctor_set(x_641, 0, x_636);
lean_ctor_set(x_641, 1, x_549);
lean_ctor_set(x_641, 2, x_637);
lean_ctor_set(x_641, 3, x_638);
lean_ctor_set(x_641, 4, x_639);
x_642 = lean_st_ref_set(x_4, x_641, x_635);
x_643 = lean_ctor_get(x_642, 1);
lean_inc(x_643);
if (lean_is_exclusive(x_642)) {
 lean_ctor_release(x_642, 0);
 lean_ctor_release(x_642, 1);
 x_644 = x_642;
} else {
 lean_dec_ref(x_642);
 x_644 = lean_box(0);
}
x_645 = lean_box(0);
if (lean_is_scalar(x_644)) {
 x_646 = lean_alloc_ctor(0, 2, 0);
} else {
 x_646 = x_644;
}
lean_ctor_set(x_646, 0, x_645);
lean_ctor_set(x_646, 1, x_643);
return x_646;
}
else
{
lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; 
lean_dec(x_580);
lean_dec(x_6);
lean_dec(x_5);
x_647 = lean_ctor_get(x_589, 0);
lean_inc(x_647);
x_648 = lean_ctor_get(x_589, 1);
lean_inc(x_648);
if (lean_is_exclusive(x_589)) {
 lean_ctor_release(x_589, 0);
 lean_ctor_release(x_589, 1);
 x_649 = x_589;
} else {
 lean_dec_ref(x_589);
 x_649 = lean_box(0);
}
if (lean_is_scalar(x_649)) {
 x_650 = lean_alloc_ctor(1, 2, 0);
} else {
 x_650 = x_649;
}
lean_ctor_set(x_650, 0, x_647);
lean_ctor_set(x_650, 1, x_648);
return x_650;
}
}
else
{
lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; 
lean_dec(x_580);
lean_dec(x_6);
lean_dec(x_5);
x_651 = lean_ctor_get(x_586, 0);
lean_inc(x_651);
x_652 = lean_ctor_get(x_586, 1);
lean_inc(x_652);
if (lean_is_exclusive(x_586)) {
 lean_ctor_release(x_586, 0);
 lean_ctor_release(x_586, 1);
 x_653 = x_586;
} else {
 lean_dec_ref(x_586);
 x_653 = lean_box(0);
}
if (lean_is_scalar(x_653)) {
 x_654 = lean_alloc_ctor(1, 2, 0);
} else {
 x_654 = x_653;
}
lean_ctor_set(x_654, 0, x_651);
lean_ctor_set(x_654, 1, x_652);
return x_654;
}
}
}
else
{
uint8_t x_655; 
lean_dec(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_1);
x_655 = !lean_is_exclusive(x_18);
if (x_655 == 0)
{
return x_18;
}
else
{
lean_object* x_656; lean_object* x_657; lean_object* x_658; 
x_656 = lean_ctor_get(x_18, 0);
x_657 = lean_ctor_get(x_18, 1);
lean_inc(x_657);
lean_inc(x_656);
lean_dec(x_18);
x_658 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_658, 0, x_656);
lean_ctor_set(x_658, 1, x_657);
return x_658;
}
}
}
else
{
uint8_t x_659; 
lean_dec(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_1);
x_659 = !lean_is_exclusive(x_15);
if (x_659 == 0)
{
return x_15;
}
else
{
lean_object* x_660; lean_object* x_661; lean_object* x_662; 
x_660 = lean_ctor_get(x_15, 0);
x_661 = lean_ctor_get(x_15, 1);
lean_inc(x_661);
lean_inc(x_660);
lean_dec(x_15);
x_662 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_662, 0, x_660);
lean_ctor_set(x_662, 1, x_661);
return x_662;
}
}
}
}
static lean_object* _init_l_Lean_mkNoConfusionCore___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("rec", 3, 3);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionCore(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:
{
lean_object* x_7; 
lean_inc(x_1);
x_7 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
if (lean_obj_tag(x_8) == 5)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_9 = lean_ctor_get(x_7, 1);
lean_inc(x_9);
lean_dec(x_7);
x_10 = lean_ctor_get(x_8, 0);
lean_inc(x_10);
lean_dec(x_8);
x_11 = l_Lean_mkNoConfusionCore___closed__1;
lean_inc(x_1);
x_12 = l_Lean_Name_str___override(x_1, x_11);
x_13 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_12, x_2, x_3, x_4, x_5, x_9);
if (lean_obj_tag(x_13) == 0)
{
uint8_t x_14; 
x_14 = !lean_is_exclusive(x_13);
if (x_14 == 0)
{
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_15 = lean_ctor_get(x_13, 0);
x_16 = lean_ctor_get(x_13, 1);
x_17 = lean_ctor_get(x_10, 0);
lean_inc(x_17);
lean_dec(x_10);
x_18 = lean_ctor_get(x_17, 1);
lean_inc(x_18);
lean_dec(x_17);
x_19 = l_List_length___rarg(x_18);
lean_dec(x_18);
x_20 = l_Lean_ConstantInfo_levelParams(x_15);
lean_dec(x_15);
x_21 = l_List_length___rarg(x_20);
lean_dec(x_20);
x_22 = lean_nat_dec_lt(x_19, x_21);
lean_dec(x_21);
lean_dec(x_19);
if (x_22 == 0)
{
lean_object* x_23; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_23 = lean_box(0);
lean_ctor_set(x_13, 0, x_23);
return x_13;
}
else
{
lean_object* x_24; lean_object* x_25; 
lean_free_object(x_13);
x_24 = lean_box(0);
x_25 = l_Lean_mkNoConfusionCore___lambda__1(x_1, x_24, x_2, x_3, x_4, x_5, x_16);
return x_25;
}
}
else
{
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; uint8_t x_33; 
x_26 = lean_ctor_get(x_13, 0);
x_27 = lean_ctor_get(x_13, 1);
lean_inc(x_27);
lean_inc(x_26);
lean_dec(x_13);
x_28 = lean_ctor_get(x_10, 0);
lean_inc(x_28);
lean_dec(x_10);
x_29 = lean_ctor_get(x_28, 1);
lean_inc(x_29);
lean_dec(x_28);
x_30 = l_List_length___rarg(x_29);
lean_dec(x_29);
x_31 = l_Lean_ConstantInfo_levelParams(x_26);
lean_dec(x_26);
x_32 = l_List_length___rarg(x_31);
lean_dec(x_31);
x_33 = lean_nat_dec_lt(x_30, x_32);
lean_dec(x_32);
lean_dec(x_30);
if (x_33 == 0)
{
lean_object* x_34; lean_object* x_35; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_34 = lean_box(0);
x_35 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_35, 0, x_34);
lean_ctor_set(x_35, 1, x_27);
return x_35;
}
else
{
lean_object* x_36; lean_object* x_37; 
x_36 = lean_box(0);
x_37 = l_Lean_mkNoConfusionCore___lambda__1(x_1, x_36, x_2, x_3, x_4, x_5, x_27);
return x_37;
}
}
}
else
{
uint8_t x_38; 
lean_dec(x_10);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_38 = !lean_is_exclusive(x_13);
if (x_38 == 0)
{
return x_13;
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; 
x_39 = lean_ctor_get(x_13, 0);
x_40 = lean_ctor_get(x_13, 1);
lean_inc(x_40);
lean_inc(x_39);
lean_dec(x_13);
x_41 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_41, 0, x_39);
lean_ctor_set(x_41, 1, x_40);
return x_41;
}
}
}
else
{
uint8_t x_42; 
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_42 = !lean_is_exclusive(x_7);
if (x_42 == 0)
{
lean_object* x_43; lean_object* x_44; 
x_43 = lean_ctor_get(x_7, 0);
lean_dec(x_43);
x_44 = lean_box(0);
lean_ctor_set(x_7, 0, x_44);
return x_7;
}
else
{
lean_object* x_45; lean_object* x_46; lean_object* x_47; 
x_45 = lean_ctor_get(x_7, 1);
lean_inc(x_45);
lean_dec(x_7);
x_46 = lean_box(0);
x_47 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_47, 0, x_46);
lean_ctor_set(x_47, 1, x_45);
return x_47;
}
}
}
else
{
uint8_t x_48; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_48 = !lean_is_exclusive(x_7);
if (x_48 == 0)
{
return x_7;
}
else
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_49 = lean_ctor_get(x_7, 0);
x_50 = lean_ctor_get(x_7, 1);
lean_inc(x_50);
lean_inc(x_49);
lean_dec(x_7);
x_51 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_51, 0, x_49);
lean_ctor_set(x_51, 1, x_50);
return x_51;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_mkNoConfusionCore___spec__3___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:
{
lean_object* x_7; 
x_7 = l_Lean_throwError___at_Lean_mkNoConfusionCore___spec__3(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_mkNoConfusionCore___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) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_throwKernelException___at_Lean_mkNoConfusionCore___spec__2(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_ofExceptKernelException___at_Lean_mkNoConfusionCore___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:
{
lean_object* x_7; 
x_7 = l_Lean_ofExceptKernelException___at_Lean_mkNoConfusionCore___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___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:
{
uint8_t x_8; lean_object* x_9; 
x_8 = lean_unbox(x_2);
lean_dec(x_2);
x_9 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4(x_1, x_8, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionCore___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) {
_start:
{
lean_object* x_8; 
x_8 = l_Lean_mkNoConfusionCore___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionCore___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:
{
lean_object* x_7; 
x_7 = l_Lean_mkNoConfusionCore(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_3);
lean_dec(x_2);
return x_7;
}
}
static lean_object* _init_l_panic___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Meta_instInhabitedMetaM___boxed), 5, 1);
lean_closure_set(x_1, 0, lean_box(0));
return x_1;
}
}
LEAN_EXPORT lean_object* l_panic___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__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) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = l_panic___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__1___closed__1;
x_8 = lean_panic_fn(x_7, x_1);
x_9 = lean_apply_5(x_8, x_2, x_3, x_4, x_5, x_6);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__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:
{
uint8_t x_11; 
x_11 = lean_nat_dec_le(x_3, x_2);
if (x_11 == 0)
{
lean_object* x_12; uint8_t x_13; 
x_12 = lean_unsigned_to_nat(0u);
x_13 = lean_nat_dec_eq(x_1, x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_14 = lean_unsigned_to_nat(1u);
x_15 = lean_nat_sub(x_1, x_14);
lean_dec(x_1);
lean_inc(x_2);
x_16 = l_Lean_mkNatLit(x_2);
x_17 = lean_array_push(x_5, x_16);
x_18 = lean_nat_add(x_2, x_4);
lean_dec(x_2);
x_1 = x_15;
x_2 = x_18;
x_5 = x_17;
goto _start;
}
else
{
lean_object* x_20; 
lean_dec(x_2);
lean_dec(x_1);
x_20 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_20, 0, x_5);
lean_ctor_set(x_20, 1, x_10);
return x_20;
}
}
else
{
lean_object* x_21; 
lean_dec(x_2);
lean_dec(x_1);
x_21 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_21, 0, x_5);
lean_ctor_set(x_21, 1, x_10);
return x_21;
}
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___lambda__1___closed__1() {
_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;
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; 
x_15 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___lambda__1___closed__1;
lean_inc(x_9);
x_16 = lean_array_push(x_15, x_9);
x_17 = 0;
x_18 = 1;
x_19 = 1;
lean_inc(x_16);
x_20 = l_Lean_Meta_mkLambdaFVars(x_16, x_1, x_17, x_18, x_17, x_19, x_10, x_11, x_12, x_13, x_14);
if (lean_obj_tag(x_20) == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
x_22 = lean_ctor_get(x_20, 1);
lean_inc(x_22);
lean_dec(x_20);
x_23 = l_Lean_casesOnSuffix;
x_24 = l_Lean_Name_str___override(x_2, x_23);
x_25 = l_Lean_levelOne;
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_3);
x_27 = l_Lean_Expr_const___override(x_24, x_26);
x_28 = l_Lean_mkAppB(x_27, x_21, x_9);
x_29 = l_Lean_mkAppN(x_28, x_4);
x_30 = l_Lean_Meta_mkLambdaFVars(x_16, x_29, x_17, x_18, x_17, x_19, x_10, x_11, x_12, x_13, x_22);
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_31 = lean_ctor_get(x_30, 0);
lean_inc(x_31);
x_32 = lean_ctor_get(x_30, 1);
lean_inc(x_32);
lean_dec(x_30);
lean_inc(x_5);
x_33 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_33, 0, x_5);
lean_ctor_set(x_33, 1, x_6);
lean_ctor_set(x_33, 2, x_7);
lean_inc(x_5);
x_34 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_34, 0, x_5);
lean_ctor_set(x_34, 1, x_8);
x_35 = lean_box(1);
x_36 = 1;
x_37 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_37, 0, x_33);
lean_ctor_set(x_37, 1, x_31);
lean_ctor_set(x_37, 2, x_35);
lean_ctor_set(x_37, 3, x_34);
lean_ctor_set_uint8(x_37, sizeof(void*)*4, x_36);
x_38 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_38, 0, x_37);
lean_inc(x_13);
lean_inc(x_12);
x_39 = l_Lean_addAndCompile(x_38, x_12, x_13, x_32);
if (lean_obj_tag(x_39) == 0)
{
lean_object* x_40; uint8_t x_41; lean_object* x_42; 
x_40 = lean_ctor_get(x_39, 1);
lean_inc(x_40);
lean_dec(x_39);
x_41 = 0;
x_42 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4(x_5, x_41, x_10, x_11, x_12, x_13, x_40);
lean_dec(x_13);
lean_dec(x_12);
return x_42;
}
else
{
uint8_t x_43; 
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_5);
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
{
uint8_t x_47; 
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_47 = !lean_is_exclusive(x_30);
if (x_47 == 0)
{
return x_30;
}
else
{
lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_48 = lean_ctor_get(x_30, 0);
x_49 = lean_ctor_get(x_30, 1);
lean_inc(x_49);
lean_inc(x_48);
lean_dec(x_30);
x_50 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_50, 0, x_48);
lean_ctor_set(x_50, 1, x_49);
return x_50;
}
}
}
else
{
uint8_t x_51; 
lean_dec(x_16);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
x_51 = !lean_is_exclusive(x_20);
if (x_51 == 0)
{
return x_20;
}
else
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; 
x_52 = lean_ctor_get(x_20, 0);
x_53 = lean_ctor_get(x_20, 1);
lean_inc(x_53);
lean_inc(x_52);
lean_dec(x_20);
x_54 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_54, 0, x_52);
lean_ctor_set(x_54, 1, x_53);
return x_54;
}
}
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Meta.Constructions.NoConfusion", 35, 35);
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.mkNoConfusionEnum.mkToCtorIdx", 34, 34);
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("unreachable code has been reached", 33, 33);
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__1;
x_2 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__2;
x_3 = lean_unsigned_to_nat(48u);
x_4 = lean_unsigned_to_nat(63u);
x_5 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__3;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("toCtorIdx", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Nat", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__6;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__7;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__9() {
_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_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("x", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__10;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx(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:
{
lean_object* x_7; 
lean_inc(x_1);
x_7 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
if (lean_obj_tag(x_8) == 5)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; 
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
lean_dec(x_8);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_7, 1);
lean_inc(x_11);
lean_dec(x_7);
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
lean_dec(x_10);
lean_inc(x_12);
x_13 = l_List_map___at_Lean_mkConstWithLevelParams___spec__1(x_12);
x_14 = lean_ctor_get(x_9, 4);
lean_inc(x_14);
lean_dec(x_9);
x_15 = l_List_length___rarg(x_14);
lean_dec(x_14);
x_16 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__5;
lean_inc(x_1);
x_17 = l_Lean_Name_str___override(x_1, x_16);
lean_inc(x_13);
lean_inc(x_1);
x_18 = l_Lean_Expr_const___override(x_1, x_13);
x_19 = lean_box(0);
x_20 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__8;
lean_inc(x_18);
x_21 = l_Lean_mkArrow(x_18, x_20, x_4, x_5, x_11);
x_22 = lean_ctor_get(x_21, 0);
lean_inc(x_22);
x_23 = lean_ctor_get(x_21, 1);
lean_inc(x_23);
lean_dec(x_21);
x_24 = lean_unsigned_to_nat(0u);
x_25 = lean_unsigned_to_nat(1u);
x_26 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__9;
lean_inc(x_15);
x_27 = l_Std_Range_forIn_loop___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__2(x_15, x_24, x_15, x_25, x_26, x_2, x_3, x_4, x_5, x_23);
lean_dec(x_15);
x_28 = lean_ctor_get(x_27, 0);
lean_inc(x_28);
x_29 = lean_ctor_get(x_27, 1);
lean_inc(x_29);
lean_dec(x_27);
x_30 = lean_alloc_closure((void*)(l_Lean_mkNoConfusionEnum_mkToCtorIdx___lambda__1___boxed), 14, 8);
lean_closure_set(x_30, 0, x_20);
lean_closure_set(x_30, 1, x_1);
lean_closure_set(x_30, 2, x_13);
lean_closure_set(x_30, 3, x_28);
lean_closure_set(x_30, 4, x_17);
lean_closure_set(x_30, 5, x_12);
lean_closure_set(x_30, 6, x_22);
lean_closure_set(x_30, 7, x_19);
x_31 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__11;
x_32 = 0;
x_33 = 0;
x_34 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__2___rarg(x_31, x_32, x_18, x_30, x_33, x_2, x_3, x_4, x_5, x_29);
return x_34;
}
else
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; 
lean_dec(x_8);
lean_dec(x_1);
x_35 = lean_ctor_get(x_7, 1);
lean_inc(x_35);
lean_dec(x_7);
x_36 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__4;
x_37 = l_panic___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__1(x_36, x_2, x_3, x_4, x_5, x_35);
return x_37;
}
}
else
{
uint8_t x_38; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_38 = !lean_is_exclusive(x_7);
if (x_38 == 0)
{
return x_7;
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; 
x_39 = lean_ctor_get(x_7, 0);
x_40 = lean_ctor_get(x_7, 1);
lean_inc(x_40);
lean_inc(x_39);
lean_dec(x_7);
x_41 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_41, 0, x_39);
lean_ctor_set(x_41, 1, x_40);
return x_41;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_mkNoConfusionEnum_mkToCtorIdx___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
x_11 = l_Std_Range_forIn_loop___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__2(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_7);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkToCtorIdx___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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
lean_object* x_15; 
x_15 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_4);
return x_15;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__1() {
_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_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("noConfusionTypeEnum", 19, 19);
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__2;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__4() {
_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;
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; 
x_14 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__1;
lean_inc(x_1);
x_15 = lean_array_push(x_14, x_1);
lean_inc(x_2);
x_16 = lean_array_push(x_15, x_2);
lean_inc(x_8);
x_17 = lean_array_push(x_16, x_8);
x_18 = 0;
x_19 = 1;
x_20 = 1;
lean_inc(x_17);
x_21 = l_Lean_Meta_mkForallFVars(x_17, x_3, x_18, x_19, x_20, x_9, x_10, x_11, x_12, x_13);
if (lean_obj_tag(x_21) == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_22 = lean_ctor_get(x_21, 0);
lean_inc(x_22);
x_23 = lean_ctor_get(x_21, 1);
lean_inc(x_23);
lean_dec(x_21);
x_24 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__4;
x_25 = lean_array_push(x_24, x_4);
x_26 = lean_array_push(x_25, x_1);
x_27 = lean_array_push(x_26, x_2);
x_28 = lean_array_push(x_27, x_8);
x_29 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__3;
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
x_30 = l_Lean_Meta_mkAppM(x_29, x_28, x_9, x_10, x_11, x_12, x_23);
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_31 = lean_ctor_get(x_30, 0);
lean_inc(x_31);
x_32 = lean_ctor_get(x_30, 1);
lean_inc(x_32);
lean_dec(x_30);
x_33 = l_Lean_Meta_mkLambdaFVars(x_17, x_31, x_18, x_19, x_18, x_20, x_9, x_10, x_11, x_12, x_32);
if (lean_obj_tag(x_33) == 0)
{
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; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; 
x_34 = lean_ctor_get(x_33, 0);
lean_inc(x_34);
x_35 = lean_ctor_get(x_33, 1);
lean_inc(x_35);
lean_dec(x_33);
x_36 = l_Lean_mkNoConfusionCore___lambda__1___closed__1;
x_37 = l_Lean_Name_str___override(x_5, x_36);
x_38 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_38, 0, x_6);
lean_ctor_set(x_38, 1, x_7);
lean_inc(x_37);
x_39 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_39, 0, x_37);
lean_ctor_set(x_39, 1, x_38);
lean_ctor_set(x_39, 2, x_22);
x_40 = lean_box(0);
lean_inc(x_37);
x_41 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_41, 0, x_37);
lean_ctor_set(x_41, 1, x_40);
x_42 = lean_box(1);
x_43 = 1;
x_44 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_44, 0, x_39);
lean_ctor_set(x_44, 1, x_34);
lean_ctor_set(x_44, 2, x_42);
lean_ctor_set(x_44, 3, x_41);
lean_ctor_set_uint8(x_44, sizeof(void*)*4, x_43);
x_45 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_45, 0, x_44);
lean_inc(x_12);
lean_inc(x_11);
x_46 = l_Lean_addAndCompile(x_45, x_11, x_12, x_35);
if (lean_obj_tag(x_46) == 0)
{
lean_object* x_47; uint8_t x_48; lean_object* x_49; 
x_47 = lean_ctor_get(x_46, 1);
lean_inc(x_47);
lean_dec(x_46);
x_48 = 0;
x_49 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4(x_37, x_48, x_9, x_10, x_11, x_12, x_47);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
return x_49;
}
else
{
uint8_t x_50; 
lean_dec(x_37);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
x_50 = !lean_is_exclusive(x_46);
if (x_50 == 0)
{
return x_46;
}
else
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; 
x_51 = lean_ctor_get(x_46, 0);
x_52 = lean_ctor_get(x_46, 1);
lean_inc(x_52);
lean_inc(x_51);
lean_dec(x_46);
x_53 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_53, 0, x_51);
lean_ctor_set(x_53, 1, x_52);
return x_53;
}
}
}
else
{
uint8_t x_54; 
lean_dec(x_22);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_54 = !lean_is_exclusive(x_33);
if (x_54 == 0)
{
return x_33;
}
else
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_55 = lean_ctor_get(x_33, 0);
x_56 = lean_ctor_get(x_33, 1);
lean_inc(x_56);
lean_inc(x_55);
lean_dec(x_33);
x_57 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_57, 0, x_55);
lean_ctor_set(x_57, 1, x_56);
return x_57;
}
}
}
else
{
uint8_t x_58; 
lean_dec(x_22);
lean_dec(x_17);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_58 = !lean_is_exclusive(x_30);
if (x_58 == 0)
{
return x_30;
}
else
{
lean_object* x_59; lean_object* x_60; lean_object* x_61; 
x_59 = lean_ctor_get(x_30, 0);
x_60 = lean_ctor_get(x_30, 1);
lean_inc(x_60);
lean_inc(x_59);
lean_dec(x_30);
x_61 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_61, 0, x_59);
lean_ctor_set(x_61, 1, x_60);
return x_61;
}
}
}
else
{
uint8_t x_62; 
lean_dec(x_17);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_62 = !lean_is_exclusive(x_21);
if (x_62 == 0)
{
return x_21;
}
else
{
lean_object* x_63; lean_object* x_64; lean_object* x_65; 
x_63 = lean_ctor_get(x_21, 0);
x_64 = lean_ctor_get(x_21, 1);
lean_inc(x_64);
lean_inc(x_63);
lean_dec(x_21);
x_65 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_65, 0, x_63);
lean_ctor_set(x_65, 1, x_64);
return x_65;
}
}
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("y", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__2___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__2___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___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, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; lean_object* x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; 
x_14 = lean_alloc_closure((void*)(l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1), 13, 7);
lean_closure_set(x_14, 0, x_1);
lean_closure_set(x_14, 1, x_8);
lean_closure_set(x_14, 2, x_2);
lean_closure_set(x_14, 3, x_3);
lean_closure_set(x_14, 4, x_4);
lean_closure_set(x_14, 5, x_5);
lean_closure_set(x_14, 6, x_6);
x_15 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__2___closed__2;
x_16 = 0;
x_17 = 0;
x_18 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__2___rarg(x_15, x_16, x_7, x_14, x_17, x_9, x_10, x_11, x_12, x_13);
return x_18;
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; 
lean_inc(x_6);
x_13 = lean_alloc_closure((void*)(l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__2), 13, 7);
lean_closure_set(x_13, 0, x_7);
lean_closure_set(x_13, 1, x_1);
lean_closure_set(x_13, 2, x_2);
lean_closure_set(x_13, 3, x_3);
lean_closure_set(x_13, 4, x_4);
lean_closure_set(x_13, 5, x_5);
lean_closure_set(x_13, 6, x_6);
x_14 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__11;
x_15 = 0;
x_16 = 0;
x_17 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__2___rarg(x_14, x_15, x_6, x_13, x_16, x_8, x_9, x_10, x_11, x_12);
return x_17;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.mkNoConfusionEnum.mkNoConfusionType", 40, 40);
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__1;
x_2 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__1;
x_3 = lean_unsigned_to_nat(72u);
x_4 = lean_unsigned_to_nat(63u);
x_5 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__3;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("v", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__3;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("P", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__5;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusionType(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:
{
lean_object* x_7; 
lean_inc(x_1);
x_7 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
if (lean_obj_tag(x_8) == 5)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; lean_object* x_28; 
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
lean_dec(x_8);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
lean_dec(x_9);
x_11 = lean_ctor_get(x_7, 1);
lean_inc(x_11);
lean_dec(x_7);
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
lean_dec(x_10);
lean_inc(x_12);
x_13 = l_List_map___at_Lean_mkConstWithLevelParams___spec__1(x_12);
x_14 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__4;
x_15 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_14, x_4, x_5, x_11);
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);
lean_inc(x_13);
lean_inc(x_1);
x_18 = l_Lean_Expr_const___override(x_1, x_13);
lean_inc(x_16);
x_19 = l_Lean_Level_param___override(x_16);
x_20 = l_Lean_Expr_sort___override(x_19);
x_21 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__5;
lean_inc(x_1);
x_22 = l_Lean_Name_str___override(x_1, x_21);
x_23 = l_Lean_Expr_const___override(x_22, x_13);
lean_inc(x_20);
x_24 = lean_alloc_closure((void*)(l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__3), 12, 6);
lean_closure_set(x_24, 0, x_20);
lean_closure_set(x_24, 1, x_23);
lean_closure_set(x_24, 2, x_1);
lean_closure_set(x_24, 3, x_16);
lean_closure_set(x_24, 4, x_12);
lean_closure_set(x_24, 5, x_18);
x_25 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__6;
x_26 = 0;
x_27 = 0;
x_28 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__2___rarg(x_25, x_26, x_20, x_24, x_27, x_2, x_3, x_4, x_5, x_17);
return x_28;
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
lean_dec(x_8);
lean_dec(x_1);
x_29 = lean_ctor_get(x_7, 1);
lean_inc(x_29);
lean_dec(x_7);
x_30 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__2;
x_31 = l_panic___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__1(x_30, x_2, x_3, x_4, x_5, x_29);
return x_31;
}
}
else
{
uint8_t x_32; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_32 = !lean_is_exclusive(x_7);
if (x_32 == 0)
{
return x_7;
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_7, 0);
x_34 = lean_ctor_get(x_7, 1);
lean_inc(x_34);
lean_inc(x_33);
lean_dec(x_7);
x_35 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_35, 0, x_33);
lean_ctor_set(x_35, 1, x_34);
return x_35;
}
}
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("noConfusionEnum", 15, 15);
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__3() {
_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_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__3;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__4;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__5;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; 
x_15 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__4;
lean_inc(x_1);
x_16 = lean_array_push(x_15, x_1);
lean_inc(x_2);
x_17 = lean_array_push(x_16, x_2);
lean_inc(x_3);
x_18 = lean_array_push(x_17, x_3);
lean_inc(x_9);
x_19 = lean_array_push(x_18, x_9);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_20 = l_Lean_mkApp3(x_4, x_1, x_2, x_3);
x_21 = 0;
x_22 = 1;
x_23 = 1;
lean_inc(x_19);
x_24 = l_Lean_Meta_mkForallFVars(x_19, x_20, x_21, x_22, x_23, x_10, x_11, x_12, x_13, x_14);
if (lean_obj_tag(x_24) == 0)
{
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; 
x_25 = lean_ctor_get(x_24, 0);
lean_inc(x_25);
x_26 = lean_ctor_get(x_24, 1);
lean_inc(x_26);
lean_dec(x_24);
x_27 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_27, 0, x_5);
x_28 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_28, 0, x_1);
x_29 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_29, 0, x_2);
x_30 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_30, 0, x_3);
x_31 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_31, 0, x_9);
x_32 = l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__6;
x_33 = lean_array_push(x_32, x_27);
x_34 = lean_array_push(x_33, x_28);
x_35 = lean_array_push(x_34, x_29);
x_36 = lean_array_push(x_35, x_30);
x_37 = lean_array_push(x_36, x_31);
x_38 = l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__2;
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
x_39 = l_Lean_Meta_mkAppOptM(x_38, x_37, x_10, x_11, x_12, x_13, x_26);
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_Meta_mkLambdaFVars(x_19, x_40, x_21, x_22, x_21, x_23, x_10, x_11, x_12, x_13, x_41);
if (lean_obj_tag(x_42) == 0)
{
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; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
x_43 = lean_ctor_get(x_42, 0);
lean_inc(x_43);
x_44 = lean_ctor_get(x_42, 1);
lean_inc(x_44);
lean_dec(x_42);
x_45 = l_Lean_mkNoConfusionCore___lambda__1___closed__4;
x_46 = l_Lean_Name_str___override(x_6, x_45);
x_47 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_47, 0, x_7);
lean_ctor_set(x_47, 1, x_8);
lean_inc(x_46);
x_48 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_48, 0, x_46);
lean_ctor_set(x_48, 1, x_47);
lean_ctor_set(x_48, 2, x_25);
x_49 = lean_box(0);
lean_inc(x_46);
x_50 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_50, 0, x_46);
lean_ctor_set(x_50, 1, x_49);
x_51 = lean_box(1);
x_52 = 1;
x_53 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_53, 0, x_48);
lean_ctor_set(x_53, 1, x_43);
lean_ctor_set(x_53, 2, x_51);
lean_ctor_set(x_53, 3, x_50);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_52);
x_54 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_54, 0, x_53);
lean_inc(x_13);
lean_inc(x_12);
x_55 = l_Lean_addAndCompile(x_54, x_12, x_13, x_44);
if (lean_obj_tag(x_55) == 0)
{
lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; 
x_56 = lean_ctor_get(x_55, 1);
lean_inc(x_56);
lean_dec(x_55);
x_57 = 0;
lean_inc(x_46);
x_58 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4(x_46, x_57, x_10, x_11, x_12, x_13, x_56);
lean_dec(x_12);
lean_dec(x_10);
x_59 = lean_ctor_get(x_58, 1);
lean_inc(x_59);
lean_dec(x_58);
x_60 = lean_st_ref_take(x_13, x_59);
x_61 = lean_ctor_get(x_60, 0);
lean_inc(x_61);
x_62 = lean_ctor_get(x_60, 1);
lean_inc(x_62);
lean_dec(x_60);
x_63 = !lean_is_exclusive(x_61);
if (x_63 == 0)
{
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; uint8_t x_74; 
x_64 = lean_ctor_get(x_61, 0);
x_65 = lean_ctor_get(x_61, 4);
lean_dec(x_65);
x_66 = l_Lean_mkNoConfusionCore___lambda__1___closed__5;
x_67 = l_Lean_TagDeclarationExtension_tag(x_66, x_64, x_46);
x_68 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__3;
lean_ctor_set(x_61, 4, x_68);
lean_ctor_set(x_61, 0, x_67);
x_69 = lean_st_ref_set(x_13, x_61, x_62);
lean_dec(x_13);
x_70 = lean_ctor_get(x_69, 1);
lean_inc(x_70);
lean_dec(x_69);
x_71 = lean_st_ref_take(x_11, x_70);
x_72 = lean_ctor_get(x_71, 0);
lean_inc(x_72);
x_73 = lean_ctor_get(x_71, 1);
lean_inc(x_73);
lean_dec(x_71);
x_74 = !lean_is_exclusive(x_72);
if (x_74 == 0)
{
lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; 
x_75 = lean_ctor_get(x_72, 1);
lean_dec(x_75);
x_76 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__5;
lean_ctor_set(x_72, 1, x_76);
x_77 = lean_st_ref_set(x_11, x_72, x_73);
lean_dec(x_11);
x_78 = !lean_is_exclusive(x_77);
if (x_78 == 0)
{
lean_object* x_79; lean_object* x_80; 
x_79 = lean_ctor_get(x_77, 0);
lean_dec(x_79);
x_80 = lean_box(0);
lean_ctor_set(x_77, 0, x_80);
return x_77;
}
else
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_81 = lean_ctor_get(x_77, 1);
lean_inc(x_81);
lean_dec(x_77);
x_82 = lean_box(0);
x_83 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_81);
return x_83;
}
}
else
{
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; 
x_84 = lean_ctor_get(x_72, 0);
x_85 = lean_ctor_get(x_72, 2);
x_86 = lean_ctor_get(x_72, 3);
x_87 = lean_ctor_get(x_72, 4);
lean_inc(x_87);
lean_inc(x_86);
lean_inc(x_85);
lean_inc(x_84);
lean_dec(x_72);
x_88 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__5;
x_89 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_89, 0, x_84);
lean_ctor_set(x_89, 1, x_88);
lean_ctor_set(x_89, 2, x_85);
lean_ctor_set(x_89, 3, x_86);
lean_ctor_set(x_89, 4, x_87);
x_90 = lean_st_ref_set(x_11, x_89, x_73);
lean_dec(x_11);
x_91 = lean_ctor_get(x_90, 1);
lean_inc(x_91);
if (lean_is_exclusive(x_90)) {
 lean_ctor_release(x_90, 0);
 lean_ctor_release(x_90, 1);
 x_92 = x_90;
} else {
 lean_dec_ref(x_90);
 x_92 = lean_box(0);
}
x_93 = lean_box(0);
if (lean_is_scalar(x_92)) {
 x_94 = lean_alloc_ctor(0, 2, 0);
} else {
 x_94 = x_92;
}
lean_ctor_set(x_94, 0, x_93);
lean_ctor_set(x_94, 1, x_91);
return x_94;
}
}
else
{
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; 
x_95 = lean_ctor_get(x_61, 0);
x_96 = lean_ctor_get(x_61, 1);
x_97 = lean_ctor_get(x_61, 2);
x_98 = lean_ctor_get(x_61, 3);
x_99 = lean_ctor_get(x_61, 5);
x_100 = lean_ctor_get(x_61, 6);
lean_inc(x_100);
lean_inc(x_99);
lean_inc(x_98);
lean_inc(x_97);
lean_inc(x_96);
lean_inc(x_95);
lean_dec(x_61);
x_101 = l_Lean_mkNoConfusionCore___lambda__1___closed__5;
x_102 = l_Lean_TagDeclarationExtension_tag(x_101, x_95, x_46);
x_103 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__3;
x_104 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_104, 0, x_102);
lean_ctor_set(x_104, 1, x_96);
lean_ctor_set(x_104, 2, x_97);
lean_ctor_set(x_104, 3, x_98);
lean_ctor_set(x_104, 4, x_103);
lean_ctor_set(x_104, 5, x_99);
lean_ctor_set(x_104, 6, x_100);
x_105 = lean_st_ref_set(x_13, x_104, x_62);
lean_dec(x_13);
x_106 = lean_ctor_get(x_105, 1);
lean_inc(x_106);
lean_dec(x_105);
x_107 = lean_st_ref_take(x_11, x_106);
x_108 = lean_ctor_get(x_107, 0);
lean_inc(x_108);
x_109 = lean_ctor_get(x_107, 1);
lean_inc(x_109);
lean_dec(x_107);
x_110 = lean_ctor_get(x_108, 0);
lean_inc(x_110);
x_111 = lean_ctor_get(x_108, 2);
lean_inc(x_111);
x_112 = lean_ctor_get(x_108, 3);
lean_inc(x_112);
x_113 = lean_ctor_get(x_108, 4);
lean_inc(x_113);
if (lean_is_exclusive(x_108)) {
 lean_ctor_release(x_108, 0);
 lean_ctor_release(x_108, 1);
 lean_ctor_release(x_108, 2);
 lean_ctor_release(x_108, 3);
 lean_ctor_release(x_108, 4);
 x_114 = x_108;
} else {
 lean_dec_ref(x_108);
 x_114 = lean_box(0);
}
x_115 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__5;
if (lean_is_scalar(x_114)) {
 x_116 = lean_alloc_ctor(0, 5, 0);
} else {
 x_116 = x_114;
}
lean_ctor_set(x_116, 0, x_110);
lean_ctor_set(x_116, 1, x_115);
lean_ctor_set(x_116, 2, x_111);
lean_ctor_set(x_116, 3, x_112);
lean_ctor_set(x_116, 4, x_113);
x_117 = lean_st_ref_set(x_11, x_116, x_109);
lean_dec(x_11);
x_118 = lean_ctor_get(x_117, 1);
lean_inc(x_118);
if (lean_is_exclusive(x_117)) {
 lean_ctor_release(x_117, 0);
 lean_ctor_release(x_117, 1);
 x_119 = x_117;
} else {
 lean_dec_ref(x_117);
 x_119 = lean_box(0);
}
x_120 = lean_box(0);
if (lean_is_scalar(x_119)) {
 x_121 = lean_alloc_ctor(0, 2, 0);
} else {
 x_121 = x_119;
}
lean_ctor_set(x_121, 0, x_120);
lean_ctor_set(x_121, 1, x_118);
return x_121;
}
}
else
{
uint8_t x_122; 
lean_dec(x_46);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
x_122 = !lean_is_exclusive(x_55);
if (x_122 == 0)
{
return x_55;
}
else
{
lean_object* x_123; lean_object* x_124; lean_object* x_125; 
x_123 = lean_ctor_get(x_55, 0);
x_124 = lean_ctor_get(x_55, 1);
lean_inc(x_124);
lean_inc(x_123);
lean_dec(x_55);
x_125 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_125, 0, x_123);
lean_ctor_set(x_125, 1, x_124);
return x_125;
}
}
}
else
{
uint8_t x_126; 
lean_dec(x_25);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
x_126 = !lean_is_exclusive(x_42);
if (x_126 == 0)
{
return x_42;
}
else
{
lean_object* x_127; lean_object* x_128; lean_object* x_129; 
x_127 = lean_ctor_get(x_42, 0);
x_128 = lean_ctor_get(x_42, 1);
lean_inc(x_128);
lean_inc(x_127);
lean_dec(x_42);
x_129 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_129, 0, x_127);
lean_ctor_set(x_129, 1, x_128);
return x_129;
}
}
}
else
{
uint8_t x_130; 
lean_dec(x_25);
lean_dec(x_19);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
x_130 = !lean_is_exclusive(x_39);
if (x_130 == 0)
{
return x_39;
}
else
{
lean_object* x_131; lean_object* x_132; lean_object* x_133; 
x_131 = lean_ctor_get(x_39, 0);
x_132 = lean_ctor_get(x_39, 1);
lean_inc(x_132);
lean_inc(x_131);
lean_dec(x_39);
x_133 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_133, 0, x_131);
lean_ctor_set(x_133, 1, x_132);
return x_133;
}
}
}
else
{
uint8_t x_134; 
lean_dec(x_19);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_134 = !lean_is_exclusive(x_24);
if (x_134 == 0)
{
return x_24;
}
else
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; 
x_135 = lean_ctor_get(x_24, 0);
x_136 = lean_ctor_get(x_24, 1);
lean_inc(x_136);
lean_inc(x_135);
lean_dec(x_24);
x_137 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_137, 0, x_135);
lean_ctor_set(x_137, 1, x_136);
return x_137;
}
}
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("h", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__2___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__2___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___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, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; 
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_1);
x_14 = l_Lean_Meta_mkEq(x_1, x_8, x_9, x_10, x_11, x_12, x_13);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; 
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 1);
lean_inc(x_16);
lean_dec(x_14);
x_17 = lean_alloc_closure((void*)(l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1), 14, 8);
lean_closure_set(x_17, 0, x_2);
lean_closure_set(x_17, 1, x_1);
lean_closure_set(x_17, 2, x_8);
lean_closure_set(x_17, 3, x_3);
lean_closure_set(x_17, 4, x_4);
lean_closure_set(x_17, 5, x_5);
lean_closure_set(x_17, 6, x_6);
lean_closure_set(x_17, 7, x_7);
x_18 = l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__2___closed__2;
x_19 = 0;
x_20 = 0;
x_21 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__2___rarg(x_18, x_19, x_15, x_17, x_20, x_9, x_10, x_11, x_12, x_16);
return x_21;
}
else
{
uint8_t x_22; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_22 = !lean_is_exclusive(x_14);
if (x_22 == 0)
{
return x_14;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_14, 0);
x_24 = lean_ctor_get(x_14, 1);
lean_inc(x_24);
lean_inc(x_23);
lean_dec(x_14);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_23);
lean_ctor_set(x_25, 1, x_24);
return x_25;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; lean_object* x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; 
x_14 = lean_alloc_closure((void*)(l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__2), 13, 7);
lean_closure_set(x_14, 0, x_8);
lean_closure_set(x_14, 1, x_1);
lean_closure_set(x_14, 2, x_2);
lean_closure_set(x_14, 3, x_3);
lean_closure_set(x_14, 4, x_4);
lean_closure_set(x_14, 5, x_5);
lean_closure_set(x_14, 6, x_6);
x_15 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__2___closed__2;
x_16 = 1;
x_17 = 0;
x_18 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__2___rarg(x_15, x_16, x_7, x_14, x_17, x_9, x_10, x_11, x_12, x_13);
return x_18;
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; 
lean_inc(x_6);
x_13 = lean_alloc_closure((void*)(l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__3), 13, 7);
lean_closure_set(x_13, 0, x_7);
lean_closure_set(x_13, 1, x_1);
lean_closure_set(x_13, 2, x_2);
lean_closure_set(x_13, 3, x_3);
lean_closure_set(x_13, 4, x_4);
lean_closure_set(x_13, 5, x_5);
lean_closure_set(x_13, 6, x_6);
x_14 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__11;
x_15 = 1;
x_16 = 0;
x_17 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__2___rarg(x_14, x_15, x_6, x_13, x_16, x_8, x_9, x_10, x_11, x_12);
return x_17;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.mkNoConfusionEnum.mkNoConfusion", 36, 36);
return x_1;
}
}
static lean_object* _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__1;
x_2 = l_Lean_mkNoConfusionEnum_mkNoConfusion___closed__1;
x_3 = lean_unsigned_to_nat(95u);
x_4 = lean_unsigned_to_nat(63u);
x_5 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__3;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum_mkNoConfusion(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:
{
lean_object* x_7; 
lean_inc(x_1);
x_7 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
if (lean_obj_tag(x_8) == 5)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
lean_dec(x_8);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
lean_dec(x_9);
x_11 = lean_ctor_get(x_7, 1);
lean_inc(x_11);
lean_dec(x_7);
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
lean_dec(x_10);
lean_inc(x_12);
x_13 = l_List_map___at_Lean_mkConstWithLevelParams___spec__1(x_12);
x_14 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__4;
x_15 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_14, x_4, x_5, x_11);
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; 
x_17 = lean_ctor_get(x_15, 0);
x_18 = lean_ctor_get(x_15, 1);
lean_inc(x_13);
lean_inc(x_1);
x_19 = l_Lean_Expr_const___override(x_1, x_13);
lean_inc(x_17);
x_20 = l_Lean_Level_param___override(x_17);
lean_inc(x_20);
x_21 = l_Lean_Expr_sort___override(x_20);
x_22 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__5;
lean_inc(x_1);
x_23 = l_Lean_Name_str___override(x_1, x_22);
lean_inc(x_13);
x_24 = l_Lean_Expr_const___override(x_23, x_13);
x_25 = l_Lean_mkNoConfusionCore___lambda__1___closed__1;
lean_inc(x_1);
x_26 = l_Lean_Name_str___override(x_1, x_25);
lean_ctor_set_tag(x_15, 1);
lean_ctor_set(x_15, 1, x_13);
lean_ctor_set(x_15, 0, x_20);
x_27 = l_Lean_Expr_const___override(x_26, x_15);
x_28 = lean_alloc_closure((void*)(l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__4), 12, 6);
lean_closure_set(x_28, 0, x_27);
lean_closure_set(x_28, 1, x_24);
lean_closure_set(x_28, 2, x_1);
lean_closure_set(x_28, 3, x_17);
lean_closure_set(x_28, 4, x_12);
lean_closure_set(x_28, 5, x_19);
x_29 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__6;
x_30 = 1;
x_31 = 0;
x_32 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__2___rarg(x_29, x_30, x_21, x_28, x_31, x_2, x_3, x_4, x_5, x_18);
return x_32;
}
else
{
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; uint8_t x_47; uint8_t x_48; lean_object* x_49; 
x_33 = lean_ctor_get(x_15, 0);
x_34 = lean_ctor_get(x_15, 1);
lean_inc(x_34);
lean_inc(x_33);
lean_dec(x_15);
lean_inc(x_13);
lean_inc(x_1);
x_35 = l_Lean_Expr_const___override(x_1, x_13);
lean_inc(x_33);
x_36 = l_Lean_Level_param___override(x_33);
lean_inc(x_36);
x_37 = l_Lean_Expr_sort___override(x_36);
x_38 = l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__5;
lean_inc(x_1);
x_39 = l_Lean_Name_str___override(x_1, x_38);
lean_inc(x_13);
x_40 = l_Lean_Expr_const___override(x_39, x_13);
x_41 = l_Lean_mkNoConfusionCore___lambda__1___closed__1;
lean_inc(x_1);
x_42 = l_Lean_Name_str___override(x_1, x_41);
x_43 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_43, 0, x_36);
lean_ctor_set(x_43, 1, x_13);
x_44 = l_Lean_Expr_const___override(x_42, x_43);
x_45 = lean_alloc_closure((void*)(l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__4), 12, 6);
lean_closure_set(x_45, 0, x_44);
lean_closure_set(x_45, 1, x_40);
lean_closure_set(x_45, 2, x_1);
lean_closure_set(x_45, 3, x_33);
lean_closure_set(x_45, 4, x_12);
lean_closure_set(x_45, 5, x_35);
x_46 = l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__6;
x_47 = 1;
x_48 = 0;
x_49 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__2___rarg(x_46, x_47, x_37, x_45, x_48, x_2, x_3, x_4, x_5, x_34);
return x_49;
}
}
else
{
lean_object* x_50; lean_object* x_51; lean_object* x_52; 
lean_dec(x_8);
lean_dec(x_1);
x_50 = lean_ctor_get(x_7, 1);
lean_inc(x_50);
lean_dec(x_7);
x_51 = l_Lean_mkNoConfusionEnum_mkNoConfusion___closed__2;
x_52 = l_panic___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__1(x_51, x_2, x_3, x_4, x_5, x_50);
return x_52;
}
}
else
{
uint8_t x_53; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_53 = !lean_is_exclusive(x_7);
if (x_53 == 0)
{
return x_7;
}
else
{
lean_object* x_54; lean_object* x_55; lean_object* x_56; 
x_54 = lean_ctor_get(x_7, 0);
x_55 = lean_ctor_get(x_7, 1);
lean_inc(x_55);
lean_inc(x_54);
lean_dec(x_7);
x_56 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_56, 0, x_54);
lean_ctor_set(x_56, 1, x_55);
return x_56;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusionEnum(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:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_7 = lean_st_ref_get(x_5, x_6);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 1);
lean_inc(x_9);
lean_dec(x_7);
x_10 = lean_ctor_get(x_8, 0);
lean_inc(x_10);
lean_dec(x_8);
x_11 = l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__2;
x_12 = l_Lean_Environment_contains(x_10, x_11);
if (x_12 == 0)
{
lean_object* x_13; 
x_13 = l_Lean_mkNoConfusionCore(x_1, x_2, x_3, x_4, x_5, x_9);
lean_dec(x_3);
lean_dec(x_2);
return x_13;
}
else
{
lean_object* x_14; 
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_14 = l_Lean_mkNoConfusionEnum_mkToCtorIdx(x_1, x_2, x_3, x_4, x_5, x_9);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; 
x_15 = lean_ctor_get(x_14, 1);
lean_inc(x_15);
lean_dec(x_14);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_16 = l_Lean_mkNoConfusionEnum_mkNoConfusionType(x_1, x_2, x_3, x_4, x_5, x_15);
if (lean_obj_tag(x_16) == 0)
{
lean_object* x_17; lean_object* x_18; 
x_17 = lean_ctor_get(x_16, 1);
lean_inc(x_17);
lean_dec(x_16);
x_18 = l_Lean_mkNoConfusionEnum_mkNoConfusion(x_1, x_2, x_3, x_4, x_5, x_17);
return x_18;
}
else
{
uint8_t x_19; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_19 = !lean_is_exclusive(x_16);
if (x_19 == 0)
{
return x_16;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_20 = lean_ctor_get(x_16, 0);
x_21 = lean_ctor_get(x_16, 1);
lean_inc(x_21);
lean_inc(x_20);
lean_dec(x_16);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
return x_22;
}
}
}
else
{
uint8_t x_23; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_23 = !lean_is_exclusive(x_14);
if (x_23 == 0)
{
return x_14;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_24 = lean_ctor_get(x_14, 0);
x_25 = lean_ctor_get(x_14, 1);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_14);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_24);
lean_ctor_set(x_26, 1, x_25);
return x_26;
}
}
}
}
}
LEAN_EXPORT lean_object* l_List_allM___at_Lean_mkNoConfusion___spec__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) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
uint8_t x_7; lean_object* x_8; lean_object* x_9; 
x_7 = 1;
x_8 = lean_box(x_7);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_9, 1, x_6);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_20; 
x_10 = lean_ctor_get(x_1, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_1, 1);
lean_inc(x_11);
if (lean_is_exclusive(x_1)) {
 lean_ctor_release(x_1, 0);
 lean_ctor_release(x_1, 1);
 x_12 = x_1;
} else {
 lean_dec_ref(x_1);
 x_12 = lean_box(0);
}
x_20 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_10, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_20) == 0)
{
lean_object* x_21; 
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
if (lean_obj_tag(x_21) == 6)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; 
x_22 = lean_ctor_get(x_20, 1);
lean_inc(x_22);
lean_dec(x_20);
x_23 = lean_ctor_get(x_21, 0);
lean_inc(x_23);
lean_dec(x_21);
x_24 = lean_ctor_get(x_23, 4);
lean_inc(x_24);
lean_dec(x_23);
x_25 = lean_unsigned_to_nat(0u);
x_26 = lean_nat_dec_eq(x_24, x_25);
lean_dec(x_24);
x_13 = x_26;
x_14 = x_22;
goto block_19;
}
else
{
lean_object* x_27; uint8_t x_28; 
lean_dec(x_21);
x_27 = lean_ctor_get(x_20, 1);
lean_inc(x_27);
lean_dec(x_20);
x_28 = 0;
x_13 = x_28;
x_14 = x_27;
goto block_19;
}
}
else
{
uint8_t x_29; 
lean_dec(x_12);
lean_dec(x_11);
x_29 = !lean_is_exclusive(x_20);
if (x_29 == 0)
{
return x_20;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_30 = lean_ctor_get(x_20, 0);
x_31 = lean_ctor_get(x_20, 1);
lean_inc(x_31);
lean_inc(x_30);
lean_dec(x_20);
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;
}
}
block_19:
{
if (x_13 == 0)
{
uint8_t x_15; lean_object* x_16; lean_object* x_17; 
lean_dec(x_11);
x_15 = 0;
x_16 = lean_box(x_15);
if (lean_is_scalar(x_12)) {
 x_17 = lean_alloc_ctor(0, 2, 0);
} else {
 x_17 = x_12;
 lean_ctor_set_tag(x_17, 0);
}
lean_ctor_set(x_17, 0, x_16);
lean_ctor_set(x_17, 1, x_14);
return x_17;
}
else
{
lean_dec(x_12);
x_1 = x_11;
x_6 = x_14;
goto _start;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_isEnumType___at_Lean_mkNoConfusion___spec__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) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
if (lean_obj_tag(x_8) == 5)
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_7);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_10 = lean_ctor_get(x_7, 1);
x_11 = lean_ctor_get(x_7, 0);
lean_dec(x_11);
x_12 = lean_ctor_get(x_8, 0);
lean_inc(x_12);
lean_dec(x_8);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_13, 2);
lean_inc(x_14);
lean_dec(x_13);
x_15 = l_Lean_Expr_isProp(x_14);
lean_dec(x_14);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; uint8_t x_18; 
x_16 = l_Lean_InductiveVal_numTypeFormers(x_12);
x_17 = lean_unsigned_to_nat(1u);
x_18 = lean_nat_dec_eq(x_16, x_17);
lean_dec(x_16);
if (x_18 == 0)
{
uint8_t x_19; lean_object* x_20; 
lean_dec(x_12);
x_19 = 0;
x_20 = lean_box(x_19);
lean_ctor_set(x_7, 0, x_20);
return x_7;
}
else
{
lean_object* x_21; lean_object* x_22; uint8_t x_23; 
x_21 = lean_ctor_get(x_12, 2);
lean_inc(x_21);
x_22 = lean_unsigned_to_nat(0u);
x_23 = lean_nat_dec_eq(x_21, x_22);
lean_dec(x_21);
if (x_23 == 0)
{
uint8_t x_24; lean_object* x_25; 
lean_dec(x_12);
x_24 = 0;
x_25 = lean_box(x_24);
lean_ctor_set(x_7, 0, x_25);
return x_7;
}
else
{
lean_object* x_26; uint8_t x_27; 
x_26 = lean_ctor_get(x_12, 1);
lean_inc(x_26);
x_27 = lean_nat_dec_eq(x_26, x_22);
lean_dec(x_26);
if (x_27 == 0)
{
uint8_t x_28; lean_object* x_29; 
lean_dec(x_12);
x_28 = 0;
x_29 = lean_box(x_28);
lean_ctor_set(x_7, 0, x_29);
return x_7;
}
else
{
lean_object* x_30; uint8_t x_31; 
x_30 = lean_ctor_get(x_12, 4);
lean_inc(x_30);
x_31 = l_List_isEmpty___rarg(x_30);
if (x_31 == 0)
{
uint8_t x_32; 
x_32 = lean_ctor_get_uint8(x_12, sizeof(void*)*6);
if (x_32 == 0)
{
uint8_t x_33; 
x_33 = lean_ctor_get_uint8(x_12, sizeof(void*)*6 + 1);
lean_dec(x_12);
if (x_33 == 0)
{
lean_object* x_34; 
lean_free_object(x_7);
x_34 = l_List_allM___at_Lean_mkNoConfusion___spec__2(x_30, x_2, x_3, x_4, x_5, x_10);
return x_34;
}
else
{
uint8_t x_35; lean_object* x_36; 
lean_dec(x_30);
x_35 = 0;
x_36 = lean_box(x_35);
lean_ctor_set(x_7, 0, x_36);
return x_7;
}
}
else
{
uint8_t x_37; lean_object* x_38; 
lean_dec(x_30);
lean_dec(x_12);
x_37 = 0;
x_38 = lean_box(x_37);
lean_ctor_set(x_7, 0, x_38);
return x_7;
}
}
else
{
uint8_t x_39; lean_object* x_40; 
lean_dec(x_30);
lean_dec(x_12);
x_39 = 0;
x_40 = lean_box(x_39);
lean_ctor_set(x_7, 0, x_40);
return x_7;
}
}
}
}
}
else
{
uint8_t x_41; lean_object* x_42; 
lean_dec(x_12);
x_41 = 0;
x_42 = lean_box(x_41);
lean_ctor_set(x_7, 0, x_42);
return x_7;
}
}
else
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; 
x_43 = lean_ctor_get(x_7, 1);
lean_inc(x_43);
lean_dec(x_7);
x_44 = lean_ctor_get(x_8, 0);
lean_inc(x_44);
lean_dec(x_8);
x_45 = lean_ctor_get(x_44, 0);
lean_inc(x_45);
x_46 = lean_ctor_get(x_45, 2);
lean_inc(x_46);
lean_dec(x_45);
x_47 = l_Lean_Expr_isProp(x_46);
lean_dec(x_46);
if (x_47 == 0)
{
lean_object* x_48; lean_object* x_49; uint8_t x_50; 
x_48 = l_Lean_InductiveVal_numTypeFormers(x_44);
x_49 = lean_unsigned_to_nat(1u);
x_50 = lean_nat_dec_eq(x_48, x_49);
lean_dec(x_48);
if (x_50 == 0)
{
uint8_t x_51; lean_object* x_52; lean_object* x_53; 
lean_dec(x_44);
x_51 = 0;
x_52 = lean_box(x_51);
x_53 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_53, 0, x_52);
lean_ctor_set(x_53, 1, x_43);
return x_53;
}
else
{
lean_object* x_54; lean_object* x_55; uint8_t x_56; 
x_54 = lean_ctor_get(x_44, 2);
lean_inc(x_54);
x_55 = lean_unsigned_to_nat(0u);
x_56 = lean_nat_dec_eq(x_54, x_55);
lean_dec(x_54);
if (x_56 == 0)
{
uint8_t x_57; lean_object* x_58; lean_object* x_59; 
lean_dec(x_44);
x_57 = 0;
x_58 = lean_box(x_57);
x_59 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_59, 0, x_58);
lean_ctor_set(x_59, 1, x_43);
return x_59;
}
else
{
lean_object* x_60; uint8_t x_61; 
x_60 = lean_ctor_get(x_44, 1);
lean_inc(x_60);
x_61 = lean_nat_dec_eq(x_60, x_55);
lean_dec(x_60);
if (x_61 == 0)
{
uint8_t x_62; lean_object* x_63; lean_object* x_64; 
lean_dec(x_44);
x_62 = 0;
x_63 = lean_box(x_62);
x_64 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_64, 0, x_63);
lean_ctor_set(x_64, 1, x_43);
return x_64;
}
else
{
lean_object* x_65; uint8_t x_66; 
x_65 = lean_ctor_get(x_44, 4);
lean_inc(x_65);
x_66 = l_List_isEmpty___rarg(x_65);
if (x_66 == 0)
{
uint8_t x_67; 
x_67 = lean_ctor_get_uint8(x_44, sizeof(void*)*6);
if (x_67 == 0)
{
uint8_t x_68; 
x_68 = lean_ctor_get_uint8(x_44, sizeof(void*)*6 + 1);
lean_dec(x_44);
if (x_68 == 0)
{
lean_object* x_69; 
x_69 = l_List_allM___at_Lean_mkNoConfusion___spec__2(x_65, x_2, x_3, x_4, x_5, x_43);
return x_69;
}
else
{
uint8_t x_70; lean_object* x_71; lean_object* x_72; 
lean_dec(x_65);
x_70 = 0;
x_71 = lean_box(x_70);
x_72 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_72, 0, x_71);
lean_ctor_set(x_72, 1, x_43);
return x_72;
}
}
else
{
uint8_t x_73; lean_object* x_74; lean_object* x_75; 
lean_dec(x_65);
lean_dec(x_44);
x_73 = 0;
x_74 = lean_box(x_73);
x_75 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_75, 0, x_74);
lean_ctor_set(x_75, 1, x_43);
return x_75;
}
}
else
{
uint8_t x_76; lean_object* x_77; lean_object* x_78; 
lean_dec(x_65);
lean_dec(x_44);
x_76 = 0;
x_77 = lean_box(x_76);
x_78 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_78, 0, x_77);
lean_ctor_set(x_78, 1, x_43);
return x_78;
}
}
}
}
}
else
{
uint8_t x_79; lean_object* x_80; lean_object* x_81; 
lean_dec(x_44);
x_79 = 0;
x_80 = lean_box(x_79);
x_81 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_81, 0, x_80);
lean_ctor_set(x_81, 1, x_43);
return x_81;
}
}
}
else
{
uint8_t x_82; 
lean_dec(x_8);
x_82 = !lean_is_exclusive(x_7);
if (x_82 == 0)
{
lean_object* x_83; uint8_t x_84; lean_object* x_85; 
x_83 = lean_ctor_get(x_7, 0);
lean_dec(x_83);
x_84 = 0;
x_85 = lean_box(x_84);
lean_ctor_set(x_7, 0, x_85);
return x_7;
}
else
{
lean_object* x_86; uint8_t x_87; lean_object* x_88; lean_object* x_89; 
x_86 = lean_ctor_get(x_7, 1);
lean_inc(x_86);
lean_dec(x_7);
x_87 = 0;
x_88 = lean_box(x_87);
x_89 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_89, 0, x_88);
lean_ctor_set(x_89, 1, x_86);
return x_89;
}
}
}
else
{
uint8_t x_90; 
x_90 = !lean_is_exclusive(x_7);
if (x_90 == 0)
{
return x_7;
}
else
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; 
x_91 = lean_ctor_get(x_7, 0);
x_92 = lean_ctor_get(x_7, 1);
lean_inc(x_92);
lean_inc(x_91);
lean_dec(x_7);
x_93 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_93, 0, x_91);
lean_ctor_set(x_93, 1, x_92);
return x_93;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_mkNoConfusion(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:
{
lean_object* x_7; 
lean_inc(x_1);
x_7 = l_Lean_isEnumType___at_Lean_mkNoConfusion___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; uint8_t x_9; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; 
x_10 = lean_ctor_get(x_7, 1);
lean_inc(x_10);
lean_dec(x_7);
x_11 = l_Lean_mkNoConfusionCore(x_1, x_2, x_3, x_4, x_5, x_10);
lean_dec(x_3);
lean_dec(x_2);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; 
x_12 = lean_ctor_get(x_7, 1);
lean_inc(x_12);
lean_dec(x_7);
x_13 = l_Lean_mkNoConfusionEnum(x_1, x_2, x_3, x_4, x_5, x_12);
return x_13;
}
}
else
{
uint8_t x_14; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_14 = !lean_is_exclusive(x_7);
if (x_14 == 0)
{
return x_7;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_7, 0);
x_16 = lean_ctor_get(x_7, 1);
lean_inc(x_16);
lean_inc(x_15);
lean_dec(x_7);
x_17 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_17, 0, x_15);
lean_ctor_set(x_17, 1, x_16);
return x_17;
}
}
}
}
LEAN_EXPORT lean_object* l_List_allM___at_Lean_mkNoConfusion___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) {
_start:
{
lean_object* x_7; 
x_7 = l_List_allM___at_Lean_mkNoConfusion___spec__2(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_isEnumType___at_Lean_mkNoConfusion___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:
{
lean_object* x_7; 
x_7 = l_Lean_isEnumType___at_Lean_mkNoConfusion___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_7;
}
}
lean_object* initialize_Lean_AddDecl(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Meta_AppBuilder(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Meta_CompletionName(uint8_t builtin, lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Meta_Constructions_NoConfusion(uint8_t builtin, lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lean_AddDecl(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Meta_AppBuilder(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Meta_CompletionName(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__1 = _init_l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__1();
lean_mark_persistent(l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__1);
l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__2 = _init_l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__2();
lean_mark_persistent(l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__2);
l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__3 = _init_l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__3();
lean_mark_persistent(l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__3);
l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__4 = _init_l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__4();
lean_mark_persistent(l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__4);
l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__5 = _init_l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__5();
lean_mark_persistent(l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionCore___spec__4___closed__5);
l_Lean_mkNoConfusionCore___lambda__1___closed__1 = _init_l_Lean_mkNoConfusionCore___lambda__1___closed__1();
lean_mark_persistent(l_Lean_mkNoConfusionCore___lambda__1___closed__1);
l_Lean_mkNoConfusionCore___lambda__1___closed__2 = _init_l_Lean_mkNoConfusionCore___lambda__1___closed__2();
lean_mark_persistent(l_Lean_mkNoConfusionCore___lambda__1___closed__2);
l_Lean_mkNoConfusionCore___lambda__1___closed__3 = _init_l_Lean_mkNoConfusionCore___lambda__1___closed__3();
lean_mark_persistent(l_Lean_mkNoConfusionCore___lambda__1___closed__3);
l_Lean_mkNoConfusionCore___lambda__1___closed__4 = _init_l_Lean_mkNoConfusionCore___lambda__1___closed__4();
lean_mark_persistent(l_Lean_mkNoConfusionCore___lambda__1___closed__4);
l_Lean_mkNoConfusionCore___lambda__1___closed__5 = _init_l_Lean_mkNoConfusionCore___lambda__1___closed__5();
lean_mark_persistent(l_Lean_mkNoConfusionCore___lambda__1___closed__5);
l_Lean_mkNoConfusionCore___closed__1 = _init_l_Lean_mkNoConfusionCore___closed__1();
lean_mark_persistent(l_Lean_mkNoConfusionCore___closed__1);
l_panic___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__1___closed__1 = _init_l_panic___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__1___closed__1();
lean_mark_persistent(l_panic___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__1___closed__1);
l_Lean_mkNoConfusionEnum_mkToCtorIdx___lambda__1___closed__1 = _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___lambda__1___closed__1();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkToCtorIdx___lambda__1___closed__1);
l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__1 = _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__1();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__1);
l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__2 = _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__2();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__2);
l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__3 = _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__3();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__3);
l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__4 = _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__4();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__4);
l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__5 = _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__5();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__5);
l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__6 = _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__6();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__6);
l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__7 = _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__7();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__7);
l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__8 = _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__8();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__8);
l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__9 = _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__9();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__9);
l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__10 = _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__10();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__10);
l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__11 = _init_l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__11();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkToCtorIdx___closed__11);
l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__1 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__1();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__1);
l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__2 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__2();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__2);
l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__3 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__3();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__3);
l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__4 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__4();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__1___closed__4);
l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__2___closed__1 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__2___closed__1();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__2___closed__1);
l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__2___closed__2 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__2___closed__2();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusionType___lambda__2___closed__2);
l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__1 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__1();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__1);
l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__2 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__2();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__2);
l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__3 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__3();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__3);
l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__4 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__4();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__4);
l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__5 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__5();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__5);
l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__6 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__6();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusionType___closed__6);
l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__1 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__1();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__1);
l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__2 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__2();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__2);
l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__3 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__3();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__3);
l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__4 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__4();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__4);
l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__5 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__5();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__5);
l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__6 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__6();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__1___closed__6);
l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__2___closed__1 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__2___closed__1();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__2___closed__1);
l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__2___closed__2 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__2___closed__2();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusion___lambda__2___closed__2);
l_Lean_mkNoConfusionEnum_mkNoConfusion___closed__1 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___closed__1();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusion___closed__1);
l_Lean_mkNoConfusionEnum_mkNoConfusion___closed__2 = _init_l_Lean_mkNoConfusionEnum_mkNoConfusion___closed__2();
lean_mark_persistent(l_Lean_mkNoConfusionEnum_mkNoConfusion___closed__2);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
