// Lean compiler output
// Module: Lean.Data.KVMap
// Imports: Init Lean.Data.Name
#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_KVMap_instValueString___closed__2;
static lean_object* l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__3;
static lean_object* l_Lean_KVMap_instValueString___closed__1;
LEAN_EXPORT lean_object* l_Lean_KVMap_setBool(lean_object*, lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lean_KVMap_getSyntax(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_KVMap_instValueInt___closed__2;
LEAN_EXPORT lean_object* l_Lean_KVMap_insert(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueDataValue;
static lean_object* l_Lean_DataValue_str___closed__2;
LEAN_EXPORT lean_object* l_Lean_KVMap_getInt___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___boxed(lean_object*, lean_object*);
static lean_object* l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__1;
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueBool___lambda__2___boxed(lean_object*);
static lean_object* l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_KVMap_findD___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_set(lean_object*);
extern lean_object* l_Std_Format_defWidth;
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueBool___lambda__2(lean_object*);
static lean_object* l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__2;
LEAN_EXPORT lean_object* l_Lean_KVMap_forIn___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueString___lambda__1(lean_object*);
static lean_object* l_Lean_KVMap_instValueName___closed__1;
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueName;
uint8_t l_Lean_Syntax_structEq(lean_object*, lean_object*);
static lean_object* l_Lean_instToStringDataValue___closed__1;
LEAN_EXPORT lean_object* l_Lean_KVMap_setSyntax(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_setNat(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_size(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueBool___lambda__1(uint8_t);
lean_object* l_id___rarg___boxed(lean_object*);
LEAN_EXPORT uint8_t lean_data_value_bool(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_setString(lean_object*, lean_object*, lean_object*);
uint8_t lean_name_eq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instForInKVMapProdNameDataValue___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueInt___lambda__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_get___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueInt___lambda__2(lean_object*);
static lean_object* l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__1;
lean_object* lean_string_append(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instToStringKVMap(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instBEqKVMap;
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueName___lambda__2(lean_object*);
static lean_object* l_Lean_KVMap_instValueSyntax___closed__1;
static lean_object* l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_KVMap_find(lean_object*, lean_object*);
lean_object* lean_nat_add(lean_object*, lean_object*);
LEAN_EXPORT lean_object* lean_mk_bool_data_value(uint8_t);
LEAN_EXPORT lean_object* l_Lean_KVMap_get_x3f___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueSyntax___lambda__2___boxed(lean_object*);
static lean_object* l_Lean_KVMap_instValueName___closed__2;
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueDataValue___lambda__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instForInKVMapProdNameDataValue(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_size___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_getSyntax___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_KVMap_instValueNat___closed__3;
static lean_object* l_Lean_instInhabitedDataValue___closed__2;
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
static lean_object* l_Lean_KVMap_instValueString___closed__3;
LEAN_EXPORT lean_object* l_Lean_KVMap_getBool___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instCoeNameDataValue(lean_object*);
lean_object* lean_nat_sub(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_DataValue_beqExp___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instCoeBoolDataValue___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_DataValue_getBoolEx___boxed(lean_object*);
LEAN_EXPORT uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t);
static lean_object* l_Lean_KVMap_instValueBool___closed__2;
static lean_object* l_Lean_DataValue_str___closed__3;
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueBool;
lean_object* l_Lean_Name_toString(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lean_KVMap_eqv___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_instInhabitedDataValue___closed__1;
LEAN_EXPORT lean_object* l_Lean_KVMap_find___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_getName___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_getString(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueNat;
lean_object* l_Nat_repr(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_getName(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_isEmpty___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_get___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lean_KVMap_subset(lean_object*, lean_object*);
static lean_object* l_Lean_KVMap_instValueBool___closed__1;
lean_object* lean_format_pretty(lean_object*, lean_object*);
static lean_object* l_Lean_DataValue_str___closed__1;
LEAN_EXPORT lean_object* l_Lean_KVMap_findD(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instCoeBoolDataValue(uint8_t);
LEAN_EXPORT lean_object* l_Lean_KVMap_setInt(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instBEqDataValue;
LEAN_EXPORT lean_object* l_Lean_instToStringDataValue;
LEAN_EXPORT uint8_t l_Lean_KVMap_contains(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueBool___lambda__1___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueNat___lambda__2___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkBoolDataValueEx___boxed(lean_object*);
static lean_object* l_Lean_KVMap_instValueDataValue___closed__1;
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueString___lambda__2___boxed(lean_object*);
static lean_object* l_Lean_KVMap_instValueDataValue___closed__2;
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueNat___lambda__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_contains___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_getInt(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lean_KVMap_isEmpty(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_set___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_KVMap_instValueBool___closed__3;
LEAN_EXPORT lean_object* l_Lean_KVMap_getNat(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueSyntax___lambda__1(lean_object*);
LEAN_EXPORT lean_object* l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2(uint8_t, lean_object*);
static lean_object* l_Lean_KVMap_instValueSyntax___closed__2;
lean_object* l_List_forIn_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueSyntax___lambda__2(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueInt___lambda__2___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_setName(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_KVMap_instValueDataValue___closed__3;
LEAN_EXPORT lean_object* l_Lean_KVMap_setBool___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_subset___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueInt;
LEAN_EXPORT lean_object* l_Lean_instCoeStringDataValue(lean_object*);
static lean_object* l_Lean_KVMap_instValueName___closed__3;
static lean_object* l_Lean_KVMap_instValueNat___closed__1;
static lean_object* l_Lean_KVMap_instValueNat___closed__2;
LEAN_EXPORT uint8_t l___private_Lean_Data_KVMap_0__Lean_beqDataValue____x40_Lean_Data_KVMap___hyg_68_(lean_object*, lean_object*);
static lean_object* l_Lean_KVMap_instValueSyntax___closed__3;
LEAN_EXPORT lean_object* l_Lean_KVMap_get(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_empty;
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueString;
LEAN_EXPORT lean_object* l_Lean_instInhabitedDataValue;
LEAN_EXPORT lean_object* lean_data_value_to_string(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_insertCore(lean_object*, lean_object*, lean_object*);
uint8_t lean_int_dec_lt(lean_object*, lean_object*);
lean_object* lean_nat_abs(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueSyntax;
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueName___lambda__1(lean_object*);
static lean_object* l_Lean_KVMap_instValueInt___closed__1;
LEAN_EXPORT uint8_t lean_data_value_beq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_forIn(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_findCore(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueNat___lambda__2(lean_object*);
LEAN_EXPORT lean_object* l_Lean_instCoeNatDataValue(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_findCore___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_getString___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lean_DataValue_sameCtor(lean_object*, lean_object*);
static lean_object* l_Lean_DataValue_str___closed__4;
static lean_object* l_Lean_KVMap_instBEqKVMap___closed__1;
LEAN_EXPORT lean_object* l_Lean_instCoeSyntaxDataValue(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueString___lambda__2(lean_object*);
lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instCoeIntDataValue(lean_object*);
LEAN_EXPORT uint8_t l_Lean_KVMap_subsetAux(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lean_KVMap_eqv(lean_object*, lean_object*);
uint8_t l_List_isEmpty___rarg(lean_object*);
uint8_t lean_int_dec_eq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_entries___default;
static lean_object* l_Lean_KVMap_instValueInt___closed__3;
lean_object* lean_nat_to_int(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_subsetAux___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_get_x3f___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l_Lean_instBEqDataValue___closed__1;
LEAN_EXPORT lean_object* l_Lean_DataValue_sameCtor___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_get_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueName___lambda__2___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_instInhabitedKVMap;
LEAN_EXPORT lean_object* l___private_Lean_Data_KVMap_0__Lean_beqDataValue____x40_Lean_Data_KVMap___hyg_68____boxed(lean_object*, lean_object*);
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_KVMap_getNat___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* _init_l_Lean_instInhabitedDataValue___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("");
return x_1;
}
}
static lean_object* _init_l_Lean_instInhabitedDataValue___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instInhabitedDataValue___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_instInhabitedDataValue() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instInhabitedDataValue___closed__2;
return x_1;
}
}
LEAN_EXPORT uint8_t l___private_Lean_Data_KVMap_0__Lean_beqDataValue____x40_Lean_Data_KVMap___hyg_68_(lean_object* x_1, lean_object* x_2) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
lean_dec(x_1);
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec(x_2);
x_5 = lean_string_dec_eq(x_3, x_4);
lean_dec(x_4);
lean_dec(x_3);
return x_5;
}
else
{
uint8_t x_6; 
lean_dec(x_2);
lean_dec(x_1);
x_6 = 0;
return x_6;
}
}
case 1:
{
if (lean_obj_tag(x_2) == 1)
{
uint8_t x_7; 
x_7 = lean_ctor_get_uint8(x_1, 0);
lean_dec(x_1);
if (x_7 == 0)
{
uint8_t x_8; 
x_8 = lean_ctor_get_uint8(x_2, 0);
lean_dec(x_2);
if (x_8 == 0)
{
uint8_t x_9; 
x_9 = 1;
return x_9;
}
else
{
uint8_t x_10; 
x_10 = 0;
return x_10;
}
}
else
{
uint8_t x_11; 
x_11 = lean_ctor_get_uint8(x_2, 0);
lean_dec(x_2);
return x_11;
}
}
else
{
uint8_t x_12; 
lean_dec(x_2);
lean_dec(x_1);
x_12 = 0;
return x_12;
}
}
case 2:
{
if (lean_obj_tag(x_2) == 2)
{
lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_13 = lean_ctor_get(x_1, 0);
lean_inc(x_13);
lean_dec(x_1);
x_14 = lean_ctor_get(x_2, 0);
lean_inc(x_14);
lean_dec(x_2);
x_15 = lean_name_eq(x_13, x_14);
lean_dec(x_14);
lean_dec(x_13);
return x_15;
}
else
{
uint8_t x_16; 
lean_dec(x_2);
lean_dec(x_1);
x_16 = 0;
return x_16;
}
}
case 3:
{
if (lean_obj_tag(x_2) == 3)
{
lean_object* x_17; lean_object* x_18; uint8_t x_19; 
x_17 = lean_ctor_get(x_1, 0);
lean_inc(x_17);
lean_dec(x_1);
x_18 = lean_ctor_get(x_2, 0);
lean_inc(x_18);
lean_dec(x_2);
x_19 = lean_nat_dec_eq(x_17, x_18);
lean_dec(x_18);
lean_dec(x_17);
return x_19;
}
else
{
uint8_t x_20; 
lean_dec(x_2);
lean_dec(x_1);
x_20 = 0;
return x_20;
}
}
case 4:
{
if (lean_obj_tag(x_2) == 4)
{
lean_object* x_21; lean_object* x_22; uint8_t x_23; 
x_21 = lean_ctor_get(x_1, 0);
lean_inc(x_21);
lean_dec(x_1);
x_22 = lean_ctor_get(x_2, 0);
lean_inc(x_22);
lean_dec(x_2);
x_23 = lean_int_dec_eq(x_21, x_22);
lean_dec(x_22);
lean_dec(x_21);
return x_23;
}
else
{
uint8_t x_24; 
lean_dec(x_2);
lean_dec(x_1);
x_24 = 0;
return x_24;
}
}
default: 
{
if (lean_obj_tag(x_2) == 5)
{
lean_object* x_25; lean_object* x_26; uint8_t x_27; 
x_25 = lean_ctor_get(x_1, 0);
lean_inc(x_25);
lean_dec(x_1);
x_26 = lean_ctor_get(x_2, 0);
lean_inc(x_26);
lean_dec(x_2);
x_27 = l_Lean_Syntax_structEq(x_25, x_26);
return x_27;
}
else
{
uint8_t x_28; 
lean_dec(x_2);
lean_dec(x_1);
x_28 = 0;
return x_28;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_KVMap_0__Lean_beqDataValue____x40_Lean_Data_KVMap___hyg_68____boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l___private_Lean_Data_KVMap_0__Lean_beqDataValue____x40_Lean_Data_KVMap___hyg_68_(x_1, x_2);
x_4 = lean_box(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_instBEqDataValue___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_KVMap_0__Lean_beqDataValue____x40_Lean_Data_KVMap___hyg_68____boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instBEqDataValue() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instBEqDataValue___closed__1;
return x_1;
}
}
LEAN_EXPORT uint8_t lean_data_value_beq(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = l___private_Lean_Data_KVMap_0__Lean_beqDataValue____x40_Lean_Data_KVMap___hyg_68_(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_DataValue_beqExp___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = lean_data_value_beq(x_1, x_2);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* lean_mk_bool_data_value(uint8_t x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_mkBoolDataValueEx___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
lean_dec(x_1);
x_3 = lean_mk_bool_data_value(x_2);
return x_3;
}
}
LEAN_EXPORT uint8_t lean_data_value_bool(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 1)
{
uint8_t x_2; 
x_2 = lean_ctor_get_uint8(x_1, 0);
lean_dec(x_1);
return x_2;
}
else
{
uint8_t x_3; 
lean_dec(x_1);
x_3 = 0;
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Lean_DataValue_getBoolEx___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_data_value_bool(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Lean_DataValue_sameCtor(lean_object* x_1, lean_object* x_2) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
if (lean_obj_tag(x_2) == 0)
{
uint8_t x_3; 
x_3 = 1;
return x_3;
}
else
{
uint8_t x_4; 
x_4 = 0;
return x_4;
}
}
case 1:
{
if (lean_obj_tag(x_2) == 1)
{
uint8_t x_5; 
x_5 = 1;
return x_5;
}
else
{
uint8_t x_6; 
x_6 = 0;
return x_6;
}
}
case 2:
{
if (lean_obj_tag(x_2) == 2)
{
uint8_t x_7; 
x_7 = 1;
return x_7;
}
else
{
uint8_t x_8; 
x_8 = 0;
return x_8;
}
}
case 3:
{
if (lean_obj_tag(x_2) == 3)
{
uint8_t x_9; 
x_9 = 1;
return x_9;
}
else
{
uint8_t x_10; 
x_10 = 0;
return x_10;
}
}
case 4:
{
if (lean_obj_tag(x_2) == 4)
{
uint8_t x_11; 
x_11 = 1;
return x_11;
}
else
{
uint8_t x_12; 
x_12 = 0;
return x_12;
}
}
default: 
{
if (lean_obj_tag(x_2) == 5)
{
uint8_t x_13; 
x_13 = 1;
return x_13;
}
else
{
uint8_t x_14; 
x_14 = 0;
return x_14;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_DataValue_sameCtor___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_DataValue_sameCtor(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_DataValue_str___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("false");
return x_1;
}
}
static lean_object* _init_l_Lean_DataValue_str___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("true");
return x_1;
}
}
static lean_object* _init_l_Lean_DataValue_str___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_DataValue_str___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("-");
return x_1;
}
}
LEAN_EXPORT lean_object* lean_data_value_to_string(lean_object* x_1) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
lean_dec(x_1);
return x_2;
}
case 1:
{
uint8_t x_3; 
x_3 = lean_ctor_get_uint8(x_1, 0);
lean_dec(x_1);
if (x_3 == 0)
{
lean_object* x_4; 
x_4 = l_Lean_DataValue_str___closed__1;
return x_4;
}
else
{
lean_object* x_5; 
x_5 = l_Lean_DataValue_str___closed__2;
return x_5;
}
}
case 2:
{
lean_object* x_6; uint8_t x_7; lean_object* x_8; 
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
lean_dec(x_1);
x_7 = 1;
x_8 = l_Lean_Name_toString(x_6, x_7);
return x_8;
}
case 3:
{
lean_object* x_9; lean_object* x_10; 
x_9 = lean_ctor_get(x_1, 0);
lean_inc(x_9);
lean_dec(x_1);
x_10 = l_Nat_repr(x_9);
return x_10;
}
case 4:
{
lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_11 = lean_ctor_get(x_1, 0);
lean_inc(x_11);
lean_dec(x_1);
x_12 = l_Lean_DataValue_str___closed__3;
x_13 = lean_int_dec_lt(x_11, x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_nat_abs(x_11);
lean_dec(x_11);
x_15 = l_Nat_repr(x_14);
return x_15;
}
else
{
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; 
x_16 = lean_nat_abs(x_11);
lean_dec(x_11);
x_17 = lean_unsigned_to_nat(1u);
x_18 = lean_nat_sub(x_16, x_17);
lean_dec(x_16);
x_19 = lean_nat_add(x_18, x_17);
lean_dec(x_18);
x_20 = l_Nat_repr(x_19);
x_21 = l_Lean_DataValue_str___closed__4;
x_22 = lean_string_append(x_21, x_20);
lean_dec(x_20);
return x_22;
}
}
default: 
{
lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_23 = lean_ctor_get(x_1, 0);
lean_inc(x_23);
lean_dec(x_1);
x_24 = lean_box(0);
x_25 = 0;
x_26 = lean_unsigned_to_nat(0u);
x_27 = l_Lean_Syntax_formatStxAux(x_24, x_25, x_26, x_23);
x_28 = l_Std_Format_defWidth;
x_29 = lean_format_pretty(x_27, x_28);
return x_29;
}
}
}
}
static lean_object* _init_l_Lean_instToStringDataValue___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(lean_data_value_to_string), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToStringDataValue() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instToStringDataValue___closed__1;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_instCoeStringDataValue(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instCoeBoolDataValue(uint8_t x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instCoeBoolDataValue___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
lean_dec(x_1);
x_3 = l_Lean_instCoeBoolDataValue(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instCoeNameDataValue(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instCoeNatDataValue(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instCoeIntDataValue(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instCoeSyntaxDataValue(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_KVMap_entries___default() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(0);
return x_1;
}
}
static lean_object* _init_l_Lean_instInhabitedKVMap() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(0);
return x_1;
}
}
static lean_object* _init_l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("(");
return x_1;
}
}
static lean_object* _init_l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string(", ");
return x_1;
}
}
static lean_object* _init_l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string(")");
return x_1;
}
}
LEAN_EXPORT lean_object* l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2(uint8_t x_1, lean_object* x_2) {
_start:
{
if (x_1 == 0)
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
x_3 = l_Lean_instInhabitedDataValue___closed__1;
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 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; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_2, 1);
lean_inc(x_5);
lean_dec(x_2);
x_6 = 0;
x_7 = l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2(x_6, x_5);
x_8 = lean_ctor_get(x_4, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_4, 1);
lean_inc(x_9);
lean_dec(x_4);
x_10 = 1;
x_11 = l_Lean_Name_toString(x_8, x_10);
x_12 = l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__1;
x_13 = lean_string_append(x_12, x_11);
lean_dec(x_11);
x_14 = l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__2;
x_15 = lean_string_append(x_13, x_14);
x_16 = lean_data_value_to_string(x_9);
x_17 = lean_string_append(x_15, x_16);
lean_dec(x_16);
x_18 = l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__3;
x_19 = lean_string_append(x_17, x_18);
x_20 = lean_string_append(x_14, x_19);
lean_dec(x_19);
x_21 = lean_string_append(x_20, x_7);
lean_dec(x_7);
return x_21;
}
}
else
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_22; 
x_22 = l_Lean_instInhabitedDataValue___closed__1;
return x_22;
}
else
{
lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t 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_23 = lean_ctor_get(x_2, 0);
lean_inc(x_23);
x_24 = lean_ctor_get(x_2, 1);
lean_inc(x_24);
lean_dec(x_2);
x_25 = 0;
x_26 = l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2(x_25, x_24);
x_27 = lean_ctor_get(x_23, 0);
lean_inc(x_27);
x_28 = lean_ctor_get(x_23, 1);
lean_inc(x_28);
lean_dec(x_23);
x_29 = 1;
x_30 = l_Lean_Name_toString(x_27, x_29);
x_31 = l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__1;
x_32 = lean_string_append(x_31, x_30);
lean_dec(x_30);
x_33 = l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__2;
x_34 = lean_string_append(x_32, x_33);
x_35 = lean_data_value_to_string(x_28);
x_36 = lean_string_append(x_34, x_35);
lean_dec(x_35);
x_37 = l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__3;
x_38 = lean_string_append(x_36, x_37);
x_39 = lean_string_append(x_38, x_26);
lean_dec(x_26);
return x_39;
}
}
}
}
static lean_object* _init_l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("[]");
return x_1;
}
}
static lean_object* _init_l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("[");
return x_1;
}
}
static lean_object* _init_l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("]");
return x_1;
}
}
LEAN_EXPORT lean_object* l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__1;
return x_2;
}
else
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_1);
if (x_3 == 0)
{
uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_4 = 1;
x_5 = l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2(x_4, x_1);
x_6 = l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__2;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
x_8 = l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__3;
x_9 = lean_string_append(x_7, x_8);
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_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_10 = lean_ctor_get(x_1, 0);
x_11 = lean_ctor_get(x_1, 1);
lean_inc(x_11);
lean_inc(x_10);
lean_dec(x_1);
x_12 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_11);
x_13 = 1;
x_14 = l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2(x_13, x_12);
x_15 = l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__2;
x_16 = lean_string_append(x_15, x_14);
lean_dec(x_14);
x_17 = l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__3;
x_18 = lean_string_append(x_16, x_17);
return x_18;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instToStringKVMap(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = lean_unbox(x_1);
lean_dec(x_1);
x_4 = l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2(x_3, x_2);
return x_4;
}
}
static lean_object* _init_l_Lean_KVMap_empty() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(0);
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lean_KVMap_isEmpty(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = l_List_isEmpty___rarg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_isEmpty___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_KVMap_isEmpty(x_1);
lean_dec(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_size(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_List_lengthTRAux___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_size___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_KVMap_size(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_findCore(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; 
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_4 = lean_ctor_get(x_1, 0);
x_5 = lean_ctor_get(x_1, 1);
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_4, 1);
x_8 = lean_name_eq(x_6, x_2);
if (x_8 == 0)
{
x_1 = x_5;
goto _start;
}
else
{
lean_object* x_10; 
lean_inc(x_7);
x_10 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_10, 0, x_7);
return x_10;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_findCore___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_KVMap_findCore(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_find(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_KVMap_findCore(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_find___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_KVMap_find(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_findD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_KVMap_findCore(x_1, x_2);
if (lean_obj_tag(x_4) == 0)
{
lean_inc(x_3);
return x_3;
}
else
{
lean_object* x_5; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
lean_dec(x_4);
return x_5;
}
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_findD___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_KVMap_findD(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_insertCore(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_2);
lean_ctor_set(x_4, 1, x_3);
x_5 = lean_box(0);
x_6 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_6, 0, x_4);
lean_ctor_set(x_6, 1, x_5);
return x_6;
}
else
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_1);
if (x_7 == 0)
{
lean_object* x_8; uint8_t x_9; 
x_8 = lean_ctor_get(x_1, 0);
x_9 = !lean_is_exclusive(x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_10 = lean_ctor_get(x_1, 1);
x_11 = lean_ctor_get(x_8, 0);
x_12 = lean_ctor_get(x_8, 1);
x_13 = lean_name_eq(x_11, x_2);
if (x_13 == 0)
{
lean_object* x_14; 
x_14 = l_Lean_KVMap_insertCore(x_10, x_2, x_3);
lean_ctor_set(x_1, 1, x_14);
return x_1;
}
else
{
lean_dec(x_12);
lean_dec(x_2);
lean_ctor_set(x_8, 1, x_3);
return x_1;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; 
x_15 = lean_ctor_get(x_1, 1);
x_16 = lean_ctor_get(x_8, 0);
x_17 = lean_ctor_get(x_8, 1);
lean_inc(x_17);
lean_inc(x_16);
lean_dec(x_8);
x_18 = lean_name_eq(x_16, x_2);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; 
x_19 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_19, 0, x_16);
lean_ctor_set(x_19, 1, x_17);
x_20 = l_Lean_KVMap_insertCore(x_15, x_2, x_3);
lean_ctor_set(x_1, 1, x_20);
lean_ctor_set(x_1, 0, x_19);
return x_1;
}
else
{
lean_object* x_21; 
lean_dec(x_17);
lean_dec(x_2);
x_21 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_21, 0, x_16);
lean_ctor_set(x_21, 1, x_3);
lean_ctor_set(x_1, 0, x_21);
return x_1;
}
}
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; 
x_22 = lean_ctor_get(x_1, 0);
x_23 = lean_ctor_get(x_1, 1);
lean_inc(x_23);
lean_inc(x_22);
lean_dec(x_1);
x_24 = lean_ctor_get(x_22, 0);
lean_inc(x_24);
x_25 = lean_ctor_get(x_22, 1);
lean_inc(x_25);
if (lean_is_exclusive(x_22)) {
 lean_ctor_release(x_22, 0);
 lean_ctor_release(x_22, 1);
 x_26 = x_22;
} else {
 lean_dec_ref(x_22);
 x_26 = lean_box(0);
}
x_27 = lean_name_eq(x_24, x_2);
if (x_27 == 0)
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; 
if (lean_is_scalar(x_26)) {
 x_28 = lean_alloc_ctor(0, 2, 0);
} else {
 x_28 = x_26;
}
lean_ctor_set(x_28, 0, x_24);
lean_ctor_set(x_28, 1, x_25);
x_29 = l_Lean_KVMap_insertCore(x_23, x_2, x_3);
x_30 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_30, 0, x_28);
lean_ctor_set(x_30, 1, x_29);
return x_30;
}
else
{
lean_object* x_31; lean_object* x_32; 
lean_dec(x_25);
lean_dec(x_2);
if (lean_is_scalar(x_26)) {
 x_31 = lean_alloc_ctor(0, 2, 0);
} else {
 x_31 = x_26;
}
lean_ctor_set(x_31, 0, x_24);
lean_ctor_set(x_31, 1, x_3);
x_32 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_32, 0, x_31);
lean_ctor_set(x_32, 1, x_23);
return x_32;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_insert(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_KVMap_insertCore(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Lean_KVMap_contains(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_KVMap_findCore(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = 0;
return x_4;
}
else
{
uint8_t x_5; 
lean_dec(x_3);
x_5 = 1;
return x_5;
}
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_contains___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_KVMap_contains(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_getString(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_KVMap_findCore(x_1, x_2);
if (lean_obj_tag(x_4) == 0)
{
lean_inc(x_3);
return x_3;
}
else
{
lean_object* x_5; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
lean_dec(x_4);
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec(x_5);
return x_6;
}
else
{
lean_dec(x_5);
lean_inc(x_3);
return x_3;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_getString___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_KVMap_getString(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_getNat(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_KVMap_findCore(x_1, x_2);
if (lean_obj_tag(x_4) == 0)
{
lean_inc(x_3);
return x_3;
}
else
{
lean_object* x_5; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
lean_dec(x_4);
if (lean_obj_tag(x_5) == 3)
{
lean_object* x_6; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec(x_5);
return x_6;
}
else
{
lean_dec(x_5);
lean_inc(x_3);
return x_3;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_getNat___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_KVMap_getNat(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_getInt(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_KVMap_findCore(x_1, x_2);
if (lean_obj_tag(x_4) == 0)
{
lean_inc(x_3);
return x_3;
}
else
{
lean_object* x_5; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
lean_dec(x_4);
if (lean_obj_tag(x_5) == 4)
{
lean_object* x_6; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec(x_5);
return x_6;
}
else
{
lean_dec(x_5);
lean_inc(x_3);
return x_3;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_getInt___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_KVMap_getInt(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Lean_KVMap_getBool(lean_object* x_1, lean_object* x_2, uint8_t x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_KVMap_findCore(x_1, x_2);
if (lean_obj_tag(x_4) == 0)
{
return x_3;
}
else
{
lean_object* x_5; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
lean_dec(x_4);
if (lean_obj_tag(x_5) == 1)
{
uint8_t x_6; 
x_6 = lean_ctor_get_uint8(x_5, 0);
lean_dec(x_5);
return x_6;
}
else
{
lean_dec(x_5);
return x_3;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_getBool___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; uint8_t x_5; lean_object* x_6; 
x_4 = lean_unbox(x_3);
lean_dec(x_3);
x_5 = l_Lean_KVMap_getBool(x_1, x_2, x_4);
lean_dec(x_2);
lean_dec(x_1);
x_6 = lean_box(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_getName(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_KVMap_findCore(x_1, x_2);
if (lean_obj_tag(x_4) == 0)
{
lean_inc(x_3);
return x_3;
}
else
{
lean_object* x_5; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
lean_dec(x_4);
if (lean_obj_tag(x_5) == 2)
{
lean_object* x_6; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec(x_5);
return x_6;
}
else
{
lean_dec(x_5);
lean_inc(x_3);
return x_3;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_getName___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_KVMap_getName(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_getSyntax(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_KVMap_findCore(x_1, x_2);
if (lean_obj_tag(x_4) == 0)
{
lean_inc(x_3);
return x_3;
}
else
{
lean_object* x_5; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
lean_dec(x_4);
if (lean_obj_tag(x_5) == 5)
{
lean_object* x_6; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec(x_5);
return x_6;
}
else
{
lean_dec(x_5);
lean_inc(x_3);
return x_3;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_getSyntax___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_KVMap_getSyntax(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_setString(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_4, 0, x_3);
x_5 = l_Lean_KVMap_insertCore(x_1, x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_setNat(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_4, 0, x_3);
x_5 = l_Lean_KVMap_insertCore(x_1, x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_setInt(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_4, 0, x_3);
x_5 = l_Lean_KVMap_insertCore(x_1, x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_setBool(lean_object* x_1, lean_object* x_2, uint8_t x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_4, 0, x_3);
x_5 = l_Lean_KVMap_insertCore(x_1, x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_setBool___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = lean_unbox(x_3);
lean_dec(x_3);
x_5 = l_Lean_KVMap_setBool(x_1, x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_setName(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_4, 0, x_3);
x_5 = l_Lean_KVMap_insertCore(x_1, x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_setSyntax(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_4, 0, x_3);
x_5 = l_Lean_KVMap_insertCore(x_1, x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_forIn___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_List_forIn_loop___rarg(x_1, x_4, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_forIn(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_KVMap_forIn___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instForInKVMapProdNameDataValue___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_List_forIn_loop___rarg(x_1, x_4, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instForInKVMapProdNameDataValue(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_KVMap_instForInKVMapProdNameDataValue___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Lean_KVMap_subsetAux(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
uint8_t x_3; 
x_3 = 1;
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec(x_1);
x_6 = lean_ctor_get(x_4, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 1);
lean_inc(x_7);
lean_dec(x_4);
x_8 = l_Lean_KVMap_findCore(x_2, x_6);
lean_dec(x_6);
if (lean_obj_tag(x_8) == 0)
{
uint8_t x_9; 
lean_dec(x_7);
lean_dec(x_5);
x_9 = 0;
return x_9;
}
else
{
lean_object* x_10; uint8_t x_11; 
x_10 = lean_ctor_get(x_8, 0);
lean_inc(x_10);
lean_dec(x_8);
x_11 = l___private_Lean_Data_KVMap_0__Lean_beqDataValue____x40_Lean_Data_KVMap___hyg_68_(x_7, x_10);
if (x_11 == 0)
{
uint8_t x_12; 
lean_dec(x_5);
x_12 = 0;
return x_12;
}
else
{
x_1 = x_5;
goto _start;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_subsetAux___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_KVMap_subsetAux(x_1, x_2);
lean_dec(x_2);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Lean_KVMap_subset(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = l_Lean_KVMap_subsetAux(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_subset___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_KVMap_subset(x_1, x_2);
lean_dec(x_2);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Lean_KVMap_eqv(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
lean_inc(x_1);
x_3 = l_Lean_KVMap_subsetAux(x_1, x_2);
if (x_3 == 0)
{
uint8_t x_4; 
lean_dec(x_2);
lean_dec(x_1);
x_4 = 0;
return x_4;
}
else
{
uint8_t x_5; 
x_5 = l_Lean_KVMap_subsetAux(x_2, x_1);
lean_dec(x_1);
return x_5;
}
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_eqv___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_KVMap_eqv(x_1, x_2);
x_4 = lean_box(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_KVMap_instBEqKVMap___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_KVMap_eqv___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_KVMap_instBEqKVMap() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_KVMap_instBEqKVMap___closed__1;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_get_x3f___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_KVMap_findCore(x_2, x_3);
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; 
lean_dec(x_1);
x_5 = lean_box(0);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_6 = lean_ctor_get(x_4, 0);
lean_inc(x_6);
lean_dec(x_4);
x_7 = lean_ctor_get(x_1, 1);
lean_inc(x_7);
lean_dec(x_1);
x_8 = lean_apply_1(x_7, x_6);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_get_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_KVMap_get_x3f___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_get_x3f___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_KVMap_get_x3f___rarg(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_get___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_KVMap_findCore(x_2, x_3);
if (lean_obj_tag(x_5) == 0)
{
lean_dec(x_1);
lean_inc(x_4);
return x_4;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec(x_5);
x_7 = lean_ctor_get(x_1, 1);
lean_inc(x_7);
lean_dec(x_1);
x_8 = lean_apply_1(x_7, x_6);
if (lean_obj_tag(x_8) == 0)
{
lean_inc(x_4);
return x_4;
}
else
{
lean_object* x_9; 
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
lean_dec(x_8);
return x_9;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_get(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_KVMap_get___rarg___boxed), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_get___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_KVMap_get___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_set___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
lean_dec(x_1);
x_6 = lean_apply_1(x_5, x_4);
x_7 = l_Lean_KVMap_insertCore(x_2, x_3, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_set(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_KVMap_set___rarg), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueDataValue___lambda__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_KVMap_instValueDataValue___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_id___rarg___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_KVMap_instValueDataValue___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_KVMap_instValueDataValue___lambda__1), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_KVMap_instValueDataValue___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_KVMap_instValueDataValue___closed__1;
x_2 = l_Lean_KVMap_instValueDataValue___closed__2;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_KVMap_instValueDataValue() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_KVMap_instValueDataValue___closed__3;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueBool___lambda__1(uint8_t x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueBool___lambda__2(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 1)
{
uint8_t x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_ctor_get_uint8(x_1, 0);
x_3 = lean_box(x_2);
x_4 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_4, 0, x_3);
return x_4;
}
else
{
lean_object* x_5; 
x_5 = lean_box(0);
return x_5;
}
}
}
static lean_object* _init_l_Lean_KVMap_instValueBool___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_KVMap_instValueBool___lambda__1___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_KVMap_instValueBool___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_KVMap_instValueBool___lambda__2___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_KVMap_instValueBool___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_KVMap_instValueBool___closed__1;
x_2 = l_Lean_KVMap_instValueBool___closed__2;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_KVMap_instValueBool() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_KVMap_instValueBool___closed__3;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueBool___lambda__1___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
lean_dec(x_1);
x_3 = l_Lean_KVMap_instValueBool___lambda__1(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueBool___lambda__2___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_KVMap_instValueBool___lambda__2(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueNat___lambda__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueNat___lambda__2(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 3)
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
else
{
lean_object* x_4; 
x_4 = lean_box(0);
return x_4;
}
}
}
static lean_object* _init_l_Lean_KVMap_instValueNat___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_KVMap_instValueNat___lambda__1), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_KVMap_instValueNat___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_KVMap_instValueNat___lambda__2___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_KVMap_instValueNat___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_KVMap_instValueNat___closed__1;
x_2 = l_Lean_KVMap_instValueNat___closed__2;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_KVMap_instValueNat() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_KVMap_instValueNat___closed__3;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueNat___lambda__2___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_KVMap_instValueNat___lambda__2(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueInt___lambda__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueInt___lambda__2(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 4)
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
else
{
lean_object* x_4; 
x_4 = lean_box(0);
return x_4;
}
}
}
static lean_object* _init_l_Lean_KVMap_instValueInt___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_KVMap_instValueInt___lambda__1), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_KVMap_instValueInt___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_KVMap_instValueInt___lambda__2___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_KVMap_instValueInt___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_KVMap_instValueInt___closed__1;
x_2 = l_Lean_KVMap_instValueInt___closed__2;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_KVMap_instValueInt() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_KVMap_instValueInt___closed__3;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueInt___lambda__2___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_KVMap_instValueInt___lambda__2(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueName___lambda__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueName___lambda__2(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 2)
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
else
{
lean_object* x_4; 
x_4 = lean_box(0);
return x_4;
}
}
}
static lean_object* _init_l_Lean_KVMap_instValueName___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_KVMap_instValueName___lambda__1), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_KVMap_instValueName___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_KVMap_instValueName___lambda__2___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_KVMap_instValueName___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_KVMap_instValueName___closed__1;
x_2 = l_Lean_KVMap_instValueName___closed__2;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_KVMap_instValueName() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_KVMap_instValueName___closed__3;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueName___lambda__2___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_KVMap_instValueName___lambda__2(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueString___lambda__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueString___lambda__2(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
else
{
lean_object* x_4; 
x_4 = lean_box(0);
return x_4;
}
}
}
static lean_object* _init_l_Lean_KVMap_instValueString___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_KVMap_instValueString___lambda__1), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_KVMap_instValueString___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_KVMap_instValueString___lambda__2___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_KVMap_instValueString___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_KVMap_instValueString___closed__1;
x_2 = l_Lean_KVMap_instValueString___closed__2;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_KVMap_instValueString() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_KVMap_instValueString___closed__3;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueString___lambda__2___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_KVMap_instValueString___lambda__2(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueSyntax___lambda__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueSyntax___lambda__2(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 5)
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
else
{
lean_object* x_4; 
x_4 = lean_box(0);
return x_4;
}
}
}
static lean_object* _init_l_Lean_KVMap_instValueSyntax___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_KVMap_instValueSyntax___lambda__1), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_KVMap_instValueSyntax___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_KVMap_instValueSyntax___lambda__2___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_KVMap_instValueSyntax___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_KVMap_instValueSyntax___closed__1;
x_2 = l_Lean_KVMap_instValueSyntax___closed__2;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_KVMap_instValueSyntax() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_KVMap_instValueSyntax___closed__3;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueSyntax___lambda__2___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_KVMap_instValueSyntax___lambda__2(x_1);
lean_dec(x_1);
return x_2;
}
}
lean_object* initialize_Init(lean_object*);
lean_object* initialize_Lean_Data_Name(lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Data_KVMap(lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Init(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Data_Name(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_instInhabitedDataValue___closed__1 = _init_l_Lean_instInhabitedDataValue___closed__1();
lean_mark_persistent(l_Lean_instInhabitedDataValue___closed__1);
l_Lean_instInhabitedDataValue___closed__2 = _init_l_Lean_instInhabitedDataValue___closed__2();
lean_mark_persistent(l_Lean_instInhabitedDataValue___closed__2);
l_Lean_instInhabitedDataValue = _init_l_Lean_instInhabitedDataValue();
lean_mark_persistent(l_Lean_instInhabitedDataValue);
l_Lean_instBEqDataValue___closed__1 = _init_l_Lean_instBEqDataValue___closed__1();
lean_mark_persistent(l_Lean_instBEqDataValue___closed__1);
l_Lean_instBEqDataValue = _init_l_Lean_instBEqDataValue();
lean_mark_persistent(l_Lean_instBEqDataValue);
l_Lean_DataValue_str___closed__1 = _init_l_Lean_DataValue_str___closed__1();
lean_mark_persistent(l_Lean_DataValue_str___closed__1);
l_Lean_DataValue_str___closed__2 = _init_l_Lean_DataValue_str___closed__2();
lean_mark_persistent(l_Lean_DataValue_str___closed__2);
l_Lean_DataValue_str___closed__3 = _init_l_Lean_DataValue_str___closed__3();
lean_mark_persistent(l_Lean_DataValue_str___closed__3);
l_Lean_DataValue_str___closed__4 = _init_l_Lean_DataValue_str___closed__4();
lean_mark_persistent(l_Lean_DataValue_str___closed__4);
l_Lean_instToStringDataValue___closed__1 = _init_l_Lean_instToStringDataValue___closed__1();
lean_mark_persistent(l_Lean_instToStringDataValue___closed__1);
l_Lean_instToStringDataValue = _init_l_Lean_instToStringDataValue();
lean_mark_persistent(l_Lean_instToStringDataValue);
l_Lean_KVMap_entries___default = _init_l_Lean_KVMap_entries___default();
lean_mark_persistent(l_Lean_KVMap_entries___default);
l_Lean_instInhabitedKVMap = _init_l_Lean_instInhabitedKVMap();
lean_mark_persistent(l_Lean_instInhabitedKVMap);
l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__1 = _init_l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__1();
lean_mark_persistent(l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__1);
l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__2 = _init_l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__2();
lean_mark_persistent(l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__2);
l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__3 = _init_l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__3();
lean_mark_persistent(l_List_toStringAux___at_Lean_KVMap_instToStringKVMap___spec__2___closed__3);
l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__1 = _init_l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__1();
lean_mark_persistent(l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__1);
l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__2 = _init_l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__2();
lean_mark_persistent(l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__2);
l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__3 = _init_l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__3();
lean_mark_persistent(l_List_toString___at_Lean_KVMap_instToStringKVMap___spec__1___closed__3);
l_Lean_KVMap_empty = _init_l_Lean_KVMap_empty();
lean_mark_persistent(l_Lean_KVMap_empty);
l_Lean_KVMap_instBEqKVMap___closed__1 = _init_l_Lean_KVMap_instBEqKVMap___closed__1();
lean_mark_persistent(l_Lean_KVMap_instBEqKVMap___closed__1);
l_Lean_KVMap_instBEqKVMap = _init_l_Lean_KVMap_instBEqKVMap();
lean_mark_persistent(l_Lean_KVMap_instBEqKVMap);
l_Lean_KVMap_instValueDataValue___closed__1 = _init_l_Lean_KVMap_instValueDataValue___closed__1();
lean_mark_persistent(l_Lean_KVMap_instValueDataValue___closed__1);
l_Lean_KVMap_instValueDataValue___closed__2 = _init_l_Lean_KVMap_instValueDataValue___closed__2();
lean_mark_persistent(l_Lean_KVMap_instValueDataValue___closed__2);
l_Lean_KVMap_instValueDataValue___closed__3 = _init_l_Lean_KVMap_instValueDataValue___closed__3();
lean_mark_persistent(l_Lean_KVMap_instValueDataValue___closed__3);
l_Lean_KVMap_instValueDataValue = _init_l_Lean_KVMap_instValueDataValue();
lean_mark_persistent(l_Lean_KVMap_instValueDataValue);
l_Lean_KVMap_instValueBool___closed__1 = _init_l_Lean_KVMap_instValueBool___closed__1();
lean_mark_persistent(l_Lean_KVMap_instValueBool___closed__1);
l_Lean_KVMap_instValueBool___closed__2 = _init_l_Lean_KVMap_instValueBool___closed__2();
lean_mark_persistent(l_Lean_KVMap_instValueBool___closed__2);
l_Lean_KVMap_instValueBool___closed__3 = _init_l_Lean_KVMap_instValueBool___closed__3();
lean_mark_persistent(l_Lean_KVMap_instValueBool___closed__3);
l_Lean_KVMap_instValueBool = _init_l_Lean_KVMap_instValueBool();
lean_mark_persistent(l_Lean_KVMap_instValueBool);
l_Lean_KVMap_instValueNat___closed__1 = _init_l_Lean_KVMap_instValueNat___closed__1();
lean_mark_persistent(l_Lean_KVMap_instValueNat___closed__1);
l_Lean_KVMap_instValueNat___closed__2 = _init_l_Lean_KVMap_instValueNat___closed__2();
lean_mark_persistent(l_Lean_KVMap_instValueNat___closed__2);
l_Lean_KVMap_instValueNat___closed__3 = _init_l_Lean_KVMap_instValueNat___closed__3();
lean_mark_persistent(l_Lean_KVMap_instValueNat___closed__3);
l_Lean_KVMap_instValueNat = _init_l_Lean_KVMap_instValueNat();
lean_mark_persistent(l_Lean_KVMap_instValueNat);
l_Lean_KVMap_instValueInt___closed__1 = _init_l_Lean_KVMap_instValueInt___closed__1();
lean_mark_persistent(l_Lean_KVMap_instValueInt___closed__1);
l_Lean_KVMap_instValueInt___closed__2 = _init_l_Lean_KVMap_instValueInt___closed__2();
lean_mark_persistent(l_Lean_KVMap_instValueInt___closed__2);
l_Lean_KVMap_instValueInt___closed__3 = _init_l_Lean_KVMap_instValueInt___closed__3();
lean_mark_persistent(l_Lean_KVMap_instValueInt___closed__3);
l_Lean_KVMap_instValueInt = _init_l_Lean_KVMap_instValueInt();
lean_mark_persistent(l_Lean_KVMap_instValueInt);
l_Lean_KVMap_instValueName___closed__1 = _init_l_Lean_KVMap_instValueName___closed__1();
lean_mark_persistent(l_Lean_KVMap_instValueName___closed__1);
l_Lean_KVMap_instValueName___closed__2 = _init_l_Lean_KVMap_instValueName___closed__2();
lean_mark_persistent(l_Lean_KVMap_instValueName___closed__2);
l_Lean_KVMap_instValueName___closed__3 = _init_l_Lean_KVMap_instValueName___closed__3();
lean_mark_persistent(l_Lean_KVMap_instValueName___closed__3);
l_Lean_KVMap_instValueName = _init_l_Lean_KVMap_instValueName();
lean_mark_persistent(l_Lean_KVMap_instValueName);
l_Lean_KVMap_instValueString___closed__1 = _init_l_Lean_KVMap_instValueString___closed__1();
lean_mark_persistent(l_Lean_KVMap_instValueString___closed__1);
l_Lean_KVMap_instValueString___closed__2 = _init_l_Lean_KVMap_instValueString___closed__2();
lean_mark_persistent(l_Lean_KVMap_instValueString___closed__2);
l_Lean_KVMap_instValueString___closed__3 = _init_l_Lean_KVMap_instValueString___closed__3();
lean_mark_persistent(l_Lean_KVMap_instValueString___closed__3);
l_Lean_KVMap_instValueString = _init_l_Lean_KVMap_instValueString();
lean_mark_persistent(l_Lean_KVMap_instValueString);
l_Lean_KVMap_instValueSyntax___closed__1 = _init_l_Lean_KVMap_instValueSyntax___closed__1();
lean_mark_persistent(l_Lean_KVMap_instValueSyntax___closed__1);
l_Lean_KVMap_instValueSyntax___closed__2 = _init_l_Lean_KVMap_instValueSyntax___closed__2();
lean_mark_persistent(l_Lean_KVMap_instValueSyntax___closed__2);
l_Lean_KVMap_instValueSyntax___closed__3 = _init_l_Lean_KVMap_instValueSyntax___closed__3();
lean_mark_persistent(l_Lean_KVMap_instValueSyntax___closed__3);
l_Lean_KVMap_instValueSyntax = _init_l_Lean_KVMap_instValueSyntax();
lean_mark_persistent(l_Lean_KVMap_instValueSyntax);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
