// Lean compiler output
// Module: Lean.ToExpr
// Imports: Init Lean.Expr
#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_instToExprChar___closed__3;
static lean_object* l_Lean_instToExprProd___rarg___lambda__1___closed__5;
static lean_object* l_Lean_instToExprName___closed__1;
static lean_object* l_Lean_Name_toExprAux___closed__5;
static lean_object* l_Lean_instToExprNat___closed__4;
static lean_object* l_Lean_instToExprOption___rarg___lambda__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_instToExprChar;
lean_object* lean_name_mk_string(lean_object*, lean_object*);
static lean_object* l_Lean_instToExprArray___rarg___closed__2;
static lean_object* l_Lean_instToExprName___closed__2;
static lean_object* l_Lean_instToExprNat___closed__2;
static lean_object* l_Lean_instToExprArray___rarg___closed__1;
static lean_object* l_Lean_instToExprBool___closed__1;
static lean_object* l_Lean_instToExprProd___rarg___lambda__1___closed__3;
static lean_object* l_Lean_instToExprChar___closed__1;
static lean_object* l_Lean_instToExprChar___closed__2;
static lean_object* l_Lean_instToExprNat___closed__1;
static lean_object* l_Lean_instToExprString___closed__4;
static lean_object* l_Lean_instToExprBool___closed__2;
LEAN_EXPORT lean_object* l_Lean_instToExprBool___lambda__1(uint8_t);
static lean_object* l_Lean_instToExprProd___rarg___lambda__1___closed__1;
static lean_object* l_Lean_instToExprChar___lambda__1___closed__1;
static lean_object* l_Lean_instToExprNat___closed__3;
LEAN_EXPORT lean_object* l_Lean_instToExprArray(lean_object*);
static lean_object* l_Lean_instToExprString___closed__1;
static lean_object* l_Lean_instToExprChar___lambda__1___closed__5;
static lean_object* l_Lean_instToExprProd___rarg___lambda__1___closed__4;
LEAN_EXPORT lean_object* l_Lean_instToExprArray___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_levelZero;
static lean_object* l_Lean_instToExprString___closed__5;
static lean_object* l_Lean_instToExprString___closed__3;
static lean_object* l_Lean_instToExprUnit___lambda__1___closed__1;
static lean_object* l_Lean_instToExprBool___lambda__1___closed__4;
static lean_object* l_Lean_Name_toExprAux___closed__10;
LEAN_EXPORT lean_object* l_Lean_instToExprUnit___lambda__1___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToExprOption(lean_object*);
static lean_object* l_Lean_instToExprList___rarg___closed__3;
static lean_object* l_Lean_Name_toExprAux___closed__1;
LEAN_EXPORT lean_object* l_Lean_instToExprOption___rarg(lean_object*);
static lean_object* l_Lean_instToExprUnit___lambda__1___closed__4;
LEAN_EXPORT lean_object* l_Lean_instToExprList___rarg(lean_object*);
static lean_object* l_Lean_instToExprList___rarg___closed__8;
LEAN_EXPORT lean_object* l_Lean_instToExprUnit;
static lean_object* l_Lean_instToExprOption___rarg___lambda__1___closed__7;
static lean_object* l_Lean_instToExprList___rarg___closed__7;
static lean_object* l_Lean_instToExprList___rarg___closed__5;
static lean_object* l_Lean_instToExprUnit___closed__3;
LEAN_EXPORT lean_object* l_Lean_instToExprArray___rarg(lean_object*);
static lean_object* l_Lean_instToExprList___rarg___closed__4;
static lean_object* l_Lean_instToExprArray___rarg___lambda__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_Name_toExprAux(lean_object*);
static lean_object* l_Lean_instToExprBool___lambda__1___closed__8;
static lean_object* l_Lean_instToExprProd___rarg___lambda__1___closed__6;
lean_object* lean_array_to_list(lean_object*, lean_object*);
static lean_object* l_Lean_instToExprUnit___lambda__1___closed__3;
static lean_object* l_Lean_Name_toExprAux___closed__12;
static lean_object* l_Lean_Name_toExprAux___closed__11;
LEAN_EXPORT lean_object* l_Lean_instToExprProd(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToExprName;
static lean_object* l_Lean_instToExprArray___rarg___lambda__1___closed__4;
static lean_object* l_Lean_instToExprList___rarg___closed__2;
static lean_object* l_Lean_instToExprBool___lambda__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_instToExprBool___lambda__1___boxed(lean_object*);
static lean_object* l_Lean_instToExprOption___rarg___lambda__1___closed__3;
static lean_object* l_Lean_instToExprUnit___lambda__1___closed__2;
static lean_object* l_Lean_instToExprOption___rarg___lambda__1___closed__5;
LEAN_EXPORT lean_object* l_Lean_instToExprBool;
static lean_object* l_Lean_instToExprList___rarg___closed__9;
LEAN_EXPORT lean_object* l_Lean_instToExprOption___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instToExprString___closed__2;
static lean_object* l_Lean_instToExprList___rarg___closed__1;
LEAN_EXPORT lean_object* l_Lean_instToExprNat;
static lean_object* l_Lean_instToExprBool___lambda__1___closed__2;
static lean_object* l_Lean_Name_toExprAux___closed__13;
static lean_object* l_Lean_Name_toExprAux___closed__6;
static lean_object* l_Lean_instToExprOption___rarg___lambda__1___closed__6;
static lean_object* l_Lean_instToExprList___rarg___closed__6;
static lean_object* l_Lean_instToExprName___closed__3;
LEAN_EXPORT lean_object* l_Lean_List_toExprAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToExprUnit___lambda__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToExprProd___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_mkApp(lean_object*, lean_object*);
static lean_object* l_Lean_instToExprUnit___closed__2;
static lean_object* l_Lean_instToExprOption___rarg___closed__1;
static lean_object* l_Lean_Name_toExprAux___closed__4;
LEAN_EXPORT lean_object* l_Lean_instToExprProd___rarg(lean_object*, lean_object*);
static lean_object* l_Lean_Name_toExprAux___closed__8;
lean_object* l_Lean_mkApp4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instToExprUnit___lambda__1___closed__5;
static lean_object* l_Lean_instToExprBool___lambda__1___closed__7;
static lean_object* l_Lean_Name_toExprAux___closed__9;
static lean_object* l_Lean_instToExprChar___lambda__1___closed__4;
static lean_object* l_Lean_instToExprChar___lambda__1___closed__2;
static lean_object* l_Lean_instToExprArray___rarg___lambda__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_instToExprChar___lambda__1(uint32_t);
static lean_object* l_Lean_instToExprArray___rarg___closed__3;
static lean_object* l_Lean_Name_toExprAux___closed__2;
LEAN_EXPORT lean_object* l_Lean_instToExprChar___lambda__1___boxed(lean_object*);
static lean_object* l_Lean_instToExprChar___lambda__1___closed__3;
static lean_object* l_Lean_instToExprNat___closed__5;
static lean_object* l_Lean_instToExprProd___rarg___lambda__1___closed__2;
lean_object* l_Lean_mkNatLit(lean_object*);
lean_object* l_Lean_mkStrLit(lean_object*);
static lean_object* l_Lean_Name_toExprAux___closed__3;
static lean_object* l_Lean_instToExprOption___rarg___lambda__1___closed__2;
static lean_object* l_Lean_Name_toExprAux___closed__7;
LEAN_EXPORT lean_object* l_Lean_instToExprString;
static lean_object* l_Lean_instToExprBool___lambda__1___closed__5;
LEAN_EXPORT lean_object* l_Lean_instToExprList(lean_object*);
lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_List_toExprAux(lean_object*);
LEAN_EXPORT lean_object* l_Lean_List_toExprAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instToExprBool___lambda__1___closed__3;
lean_object* l_Lean_mkConst(lean_object*, lean_object*);
lean_object* lean_uint32_to_nat(uint32_t);
static lean_object* l_Lean_instToExprBool___closed__3;
static lean_object* l_Lean_instToExprArray___rarg___lambda__1___closed__2;
static lean_object* l_Lean_instToExprOption___rarg___lambda__1___closed__9;
static lean_object* l_Lean_instToExprOption___rarg___lambda__1___closed__8;
static lean_object* l_Lean_instToExprUnit___closed__1;
static lean_object* l_Lean_instToExprBool___lambda__1___closed__6;
static lean_object* l_Lean_instToExprOption___rarg___lambda__1___closed__4;
static lean_object* l_Lean_instToExprProd___rarg___closed__1;
static lean_object* _init_l_Lean_instToExprNat___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Nat");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprNat___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_instToExprNat___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprNat___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_instToExprNat___closed__2;
x_3 = l_Lean_mkConst(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprNat___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_mkNatLit), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprNat___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprNat___closed__4;
x_2 = l_Lean_instToExprNat___closed__3;
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_instToExprNat() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instToExprNat___closed__5;
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprBool___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Bool");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprBool___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_instToExprBool___lambda__1___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprBool___lambda__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("false");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprBool___lambda__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprBool___lambda__1___closed__2;
x_2 = l_Lean_instToExprBool___lambda__1___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprBool___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_instToExprBool___lambda__1___closed__4;
x_3 = l_Lean_mkConst(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprBool___lambda__1___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("true");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprBool___lambda__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprBool___lambda__1___closed__2;
x_2 = l_Lean_instToExprBool___lambda__1___closed__6;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprBool___lambda__1___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_instToExprBool___lambda__1___closed__7;
x_3 = l_Lean_mkConst(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprBool___lambda__1(uint8_t x_1) {
_start:
{
if (x_1 == 0)
{
lean_object* x_2; 
x_2 = l_Lean_instToExprBool___lambda__1___closed__5;
return x_2;
}
else
{
lean_object* x_3; 
x_3 = l_Lean_instToExprBool___lambda__1___closed__8;
return x_3;
}
}
}
static lean_object* _init_l_Lean_instToExprBool___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_instToExprBool___lambda__1___closed__2;
x_3 = l_Lean_mkConst(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprBool___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_instToExprBool___lambda__1___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprBool___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprBool___closed__2;
x_2 = l_Lean_instToExprBool___closed__1;
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_instToExprBool() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instToExprBool___closed__3;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprBool___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_instToExprBool___lambda__1(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprChar___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Char");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprChar___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_instToExprChar___lambda__1___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprChar___lambda__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("ofNat");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprChar___lambda__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprChar___lambda__1___closed__2;
x_2 = l_Lean_instToExprChar___lambda__1___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprChar___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_instToExprChar___lambda__1___closed__4;
x_3 = l_Lean_mkConst(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprChar___lambda__1(uint32_t x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = lean_uint32_to_nat(x_1);
x_3 = l_Lean_mkNatLit(x_2);
x_4 = l_Lean_instToExprChar___lambda__1___closed__5;
x_5 = l_Lean_mkApp(x_4, x_3);
return x_5;
}
}
static lean_object* _init_l_Lean_instToExprChar___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_instToExprChar___lambda__1___closed__2;
x_3 = l_Lean_mkConst(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprChar___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_instToExprChar___lambda__1___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprChar___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprChar___closed__2;
x_2 = l_Lean_instToExprChar___closed__1;
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_instToExprChar() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instToExprChar___closed__3;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprChar___lambda__1___boxed(lean_object* x_1) {
_start:
{
uint32_t x_2; lean_object* x_3; 
x_2 = lean_unbox_uint32(x_1);
lean_dec(x_1);
x_3 = l_Lean_instToExprChar___lambda__1(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprString___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("String");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprString___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_instToExprString___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprString___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_instToExprString___closed__2;
x_3 = l_Lean_mkConst(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprString___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_mkStrLit), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprString___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprString___closed__4;
x_2 = l_Lean_instToExprString___closed__3;
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_instToExprString() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instToExprString___closed__5;
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprUnit___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Unit");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprUnit___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_instToExprUnit___lambda__1___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprUnit___lambda__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("unit");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprUnit___lambda__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprUnit___lambda__1___closed__2;
x_2 = l_Lean_instToExprUnit___lambda__1___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprUnit___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_instToExprUnit___lambda__1___closed__4;
x_3 = l_Lean_mkConst(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprUnit___lambda__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_instToExprUnit___lambda__1___closed__5;
return x_2;
}
}
static lean_object* _init_l_Lean_instToExprUnit___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_instToExprUnit___lambda__1___closed__2;
x_3 = l_Lean_mkConst(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprUnit___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_instToExprUnit___lambda__1___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprUnit___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprUnit___closed__2;
x_2 = l_Lean_instToExprUnit___closed__1;
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_instToExprUnit() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instToExprUnit___closed__3;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprUnit___lambda__1___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_instToExprUnit___lambda__1(x_1);
lean_dec(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Name_toExprAux___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Lean");
return x_1;
}
}
static lean_object* _init_l_Lean_Name_toExprAux___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Name_toExprAux___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Name_toExprAux___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Name");
return x_1;
}
}
static lean_object* _init_l_Lean_Name_toExprAux___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Name_toExprAux___closed__2;
x_2 = l_Lean_Name_toExprAux___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Name_toExprAux___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("anonymous");
return x_1;
}
}
static lean_object* _init_l_Lean_Name_toExprAux___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Name_toExprAux___closed__4;
x_2 = l_Lean_Name_toExprAux___closed__5;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Name_toExprAux___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Name_toExprAux___closed__6;
x_3 = l_Lean_mkConst(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Name_toExprAux___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("mkStr");
return x_1;
}
}
static lean_object* _init_l_Lean_Name_toExprAux___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Name_toExprAux___closed__4;
x_2 = l_Lean_Name_toExprAux___closed__8;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Name_toExprAux___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Name_toExprAux___closed__9;
x_3 = l_Lean_mkConst(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Name_toExprAux___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("mkNum");
return x_1;
}
}
static lean_object* _init_l_Lean_Name_toExprAux___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Name_toExprAux___closed__4;
x_2 = l_Lean_Name_toExprAux___closed__11;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Name_toExprAux___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Name_toExprAux___closed__12;
x_3 = l_Lean_mkConst(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Name_toExprAux(lean_object* x_1) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
lean_object* x_2; 
x_2 = l_Lean_Name_toExprAux___closed__7;
return x_2;
}
case 1:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
lean_dec(x_1);
x_5 = l_Lean_Name_toExprAux(x_3);
x_6 = l_Lean_mkStrLit(x_4);
x_7 = l_Lean_Name_toExprAux___closed__10;
x_8 = l_Lean_mkAppB(x_7, x_5, x_6);
return x_8;
}
default: 
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_9 = lean_ctor_get(x_1, 0);
lean_inc(x_9);
x_10 = lean_ctor_get(x_1, 1);
lean_inc(x_10);
lean_dec(x_1);
x_11 = l_Lean_Name_toExprAux(x_9);
x_12 = l_Lean_mkNatLit(x_10);
x_13 = l_Lean_Name_toExprAux___closed__13;
x_14 = l_Lean_mkAppB(x_13, x_11, x_12);
return x_14;
}
}
}
}
static lean_object* _init_l_Lean_instToExprName___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Name_toExprAux___closed__4;
x_3 = l_Lean_mkConst(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprName___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Name_toExprAux), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprName___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprName___closed__2;
x_2 = l_Lean_instToExprName___closed__1;
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_instToExprName() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instToExprName___closed__3;
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprOption___rarg___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Option");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprOption___rarg___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_instToExprOption___rarg___lambda__1___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprOption___rarg___lambda__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("none");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprOption___rarg___lambda__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprOption___rarg___lambda__1___closed__2;
x_2 = l_Lean_instToExprOption___rarg___lambda__1___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprOption___rarg___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_levelZero;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprOption___rarg___lambda__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprOption___rarg___lambda__1___closed__4;
x_2 = l_Lean_instToExprOption___rarg___lambda__1___closed__5;
x_3 = l_Lean_mkConst(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprOption___rarg___lambda__1___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("some");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprOption___rarg___lambda__1___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprOption___rarg___lambda__1___closed__2;
x_2 = l_Lean_instToExprOption___rarg___lambda__1___closed__7;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprOption___rarg___lambda__1___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprOption___rarg___lambda__1___closed__8;
x_2 = l_Lean_instToExprOption___rarg___lambda__1___closed__5;
x_3 = l_Lean_mkConst(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprOption___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; 
lean_dec(x_2);
x_4 = l_Lean_instToExprOption___rarg___lambda__1___closed__6;
x_5 = l_Lean_mkApp(x_4, x_1);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_6 = lean_ctor_get(x_3, 0);
lean_inc(x_6);
lean_dec(x_3);
x_7 = lean_ctor_get(x_2, 0);
lean_inc(x_7);
lean_dec(x_2);
x_8 = lean_apply_1(x_7, x_6);
x_9 = l_Lean_instToExprOption___rarg___lambda__1___closed__9;
x_10 = l_Lean_mkAppB(x_9, x_1, x_8);
return x_10;
}
}
}
static lean_object* _init_l_Lean_instToExprOption___rarg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprOption___rarg___lambda__1___closed__2;
x_2 = l_Lean_instToExprOption___rarg___lambda__1___closed__5;
x_3 = l_Lean_mkConst(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprOption___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = lean_ctor_get(x_1, 1);
lean_inc(x_2);
lean_inc(x_2);
x_3 = lean_alloc_closure((void*)(l_Lean_instToExprOption___rarg___lambda__1), 3, 2);
lean_closure_set(x_3, 0, x_2);
lean_closure_set(x_3, 1, x_1);
x_4 = l_Lean_instToExprOption___rarg___closed__1;
x_5 = l_Lean_mkApp(x_4, x_2);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_3);
lean_ctor_set(x_6, 1, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprOption(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_instToExprOption___rarg), 1, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_List_toExprAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_dec(x_3);
lean_dec(x_1);
lean_inc(x_2);
return x_2;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 1);
lean_inc(x_6);
lean_dec(x_4);
x_7 = lean_ctor_get(x_1, 0);
lean_inc(x_7);
x_8 = lean_apply_1(x_7, x_5);
lean_inc(x_3);
x_9 = l_Lean_List_toExprAux___rarg(x_1, x_2, x_3, x_6);
x_10 = l_Lean_mkAppB(x_3, x_8, x_9);
return x_10;
}
}
}
LEAN_EXPORT lean_object* l_Lean_List_toExprAux(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_List_toExprAux___rarg___boxed), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_List_toExprAux___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_List_toExprAux___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_2);
return x_5;
}
}
static lean_object* _init_l_Lean_instToExprList___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("List");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprList___rarg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_instToExprList___rarg___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprList___rarg___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("nil");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprList___rarg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprList___rarg___closed__2;
x_2 = l_Lean_instToExprList___rarg___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprList___rarg___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprList___rarg___closed__4;
x_2 = l_Lean_instToExprOption___rarg___lambda__1___closed__5;
x_3 = l_Lean_mkConst(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprList___rarg___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("cons");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprList___rarg___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprList___rarg___closed__2;
x_2 = l_Lean_instToExprList___rarg___closed__6;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprList___rarg___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprList___rarg___closed__7;
x_2 = l_Lean_instToExprOption___rarg___lambda__1___closed__5;
x_3 = l_Lean_mkConst(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprList___rarg___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprList___rarg___closed__2;
x_2 = l_Lean_instToExprOption___rarg___lambda__1___closed__5;
x_3 = l_Lean_mkConst(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprList___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_2 = lean_ctor_get(x_1, 1);
lean_inc(x_2);
x_3 = l_Lean_instToExprList___rarg___closed__5;
lean_inc(x_2);
x_4 = l_Lean_mkApp(x_3, x_2);
x_5 = l_Lean_instToExprList___rarg___closed__8;
lean_inc(x_2);
x_6 = l_Lean_mkApp(x_5, x_2);
x_7 = lean_alloc_closure((void*)(l_Lean_List_toExprAux___rarg___boxed), 4, 3);
lean_closure_set(x_7, 0, x_1);
lean_closure_set(x_7, 1, x_4);
lean_closure_set(x_7, 2, x_6);
x_8 = l_Lean_instToExprList___rarg___closed__9;
x_9 = l_Lean_mkApp(x_8, x_2);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_7);
lean_ctor_set(x_10, 1, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprList(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_instToExprList___rarg), 1, 0);
return x_2;
}
}
static lean_object* _init_l_Lean_instToExprArray___rarg___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("toArray");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprArray___rarg___lambda__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprList___rarg___closed__2;
x_2 = l_Lean_instToExprArray___rarg___lambda__1___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprArray___rarg___lambda__1___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprArray___rarg___lambda__1___closed__2;
x_2 = l_Lean_instToExprOption___rarg___lambda__1___closed__5;
x_3 = l_Lean_mkConst(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprArray___rarg___lambda__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprList___rarg___closed__4;
x_2 = l_Lean_instToExprOption___rarg___lambda__1___closed__5;
x_3 = l_Lean_mkConst(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprArray___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
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; 
x_4 = l_Lean_instToExprArray___rarg___lambda__1___closed__4;
lean_inc(x_1);
x_5 = l_Lean_mkApp(x_4, x_1);
x_6 = l_Lean_instToExprList___rarg___closed__8;
lean_inc(x_1);
x_7 = l_Lean_mkApp(x_6, x_1);
x_8 = lean_array_to_list(lean_box(0), x_3);
x_9 = l_Lean_List_toExprAux___rarg(x_2, x_5, x_7, x_8);
lean_dec(x_5);
x_10 = l_Lean_instToExprArray___rarg___lambda__1___closed__3;
x_11 = l_Lean_mkAppB(x_10, x_1, x_9);
return x_11;
}
}
static lean_object* _init_l_Lean_instToExprArray___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Array");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprArray___rarg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_instToExprArray___rarg___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprArray___rarg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprArray___rarg___closed__2;
x_2 = l_Lean_instToExprOption___rarg___lambda__1___closed__5;
x_3 = l_Lean_mkConst(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprArray___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = lean_ctor_get(x_1, 1);
lean_inc(x_2);
lean_inc(x_2);
x_3 = lean_alloc_closure((void*)(l_Lean_instToExprArray___rarg___lambda__1), 3, 2);
lean_closure_set(x_3, 0, x_2);
lean_closure_set(x_3, 1, x_1);
x_4 = l_Lean_instToExprArray___rarg___closed__3;
x_5 = l_Lean_mkApp(x_4, x_2);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_3);
lean_ctor_set(x_6, 1, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprArray(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_instToExprArray___rarg), 1, 0);
return x_2;
}
}
static lean_object* _init_l_Lean_instToExprProd___rarg___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Prod");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprProd___rarg___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_instToExprProd___rarg___lambda__1___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprProd___rarg___lambda__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("mk");
return x_1;
}
}
static lean_object* _init_l_Lean_instToExprProd___rarg___lambda__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprProd___rarg___lambda__1___closed__2;
x_2 = l_Lean_instToExprProd___rarg___lambda__1___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprProd___rarg___lambda__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_levelZero;
x_2 = l_Lean_instToExprOption___rarg___lambda__1___closed__5;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToExprProd___rarg___lambda__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprProd___rarg___lambda__1___closed__4;
x_2 = l_Lean_instToExprProd___rarg___lambda__1___closed__5;
x_3 = l_Lean_mkConst(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprProd___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
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; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 1);
lean_inc(x_7);
lean_dec(x_5);
x_8 = lean_ctor_get(x_1, 0);
lean_inc(x_8);
lean_dec(x_1);
x_9 = lean_apply_1(x_8, x_6);
x_10 = lean_ctor_get(x_2, 0);
lean_inc(x_10);
lean_dec(x_2);
x_11 = lean_apply_1(x_10, x_7);
x_12 = l_Lean_instToExprProd___rarg___lambda__1___closed__6;
x_13 = l_Lean_mkApp4(x_12, x_3, x_4, x_9, x_11);
return x_13;
}
}
static lean_object* _init_l_Lean_instToExprProd___rarg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToExprProd___rarg___lambda__1___closed__2;
x_2 = l_Lean_instToExprProd___rarg___lambda__1___closed__5;
x_3 = l_Lean_mkConst(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprProd___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
x_4 = lean_ctor_get(x_2, 1);
lean_inc(x_4);
lean_inc(x_4);
lean_inc(x_3);
x_5 = lean_alloc_closure((void*)(l_Lean_instToExprProd___rarg___lambda__1), 5, 4);
lean_closure_set(x_5, 0, x_1);
lean_closure_set(x_5, 1, x_2);
lean_closure_set(x_5, 2, x_3);
lean_closure_set(x_5, 3, x_4);
x_6 = l_Lean_instToExprProd___rarg___closed__1;
x_7 = l_Lean_mkAppB(x_6, x_3, x_4);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_5);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_instToExprProd(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_instToExprProd___rarg), 2, 0);
return x_3;
}
}
lean_object* initialize_Init(lean_object*);
lean_object* initialize_Lean_Expr(lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_ToExpr(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_Expr(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_instToExprNat___closed__1 = _init_l_Lean_instToExprNat___closed__1();
lean_mark_persistent(l_Lean_instToExprNat___closed__1);
l_Lean_instToExprNat___closed__2 = _init_l_Lean_instToExprNat___closed__2();
lean_mark_persistent(l_Lean_instToExprNat___closed__2);
l_Lean_instToExprNat___closed__3 = _init_l_Lean_instToExprNat___closed__3();
lean_mark_persistent(l_Lean_instToExprNat___closed__3);
l_Lean_instToExprNat___closed__4 = _init_l_Lean_instToExprNat___closed__4();
lean_mark_persistent(l_Lean_instToExprNat___closed__4);
l_Lean_instToExprNat___closed__5 = _init_l_Lean_instToExprNat___closed__5();
lean_mark_persistent(l_Lean_instToExprNat___closed__5);
l_Lean_instToExprNat = _init_l_Lean_instToExprNat();
lean_mark_persistent(l_Lean_instToExprNat);
l_Lean_instToExprBool___lambda__1___closed__1 = _init_l_Lean_instToExprBool___lambda__1___closed__1();
lean_mark_persistent(l_Lean_instToExprBool___lambda__1___closed__1);
l_Lean_instToExprBool___lambda__1___closed__2 = _init_l_Lean_instToExprBool___lambda__1___closed__2();
lean_mark_persistent(l_Lean_instToExprBool___lambda__1___closed__2);
l_Lean_instToExprBool___lambda__1___closed__3 = _init_l_Lean_instToExprBool___lambda__1___closed__3();
lean_mark_persistent(l_Lean_instToExprBool___lambda__1___closed__3);
l_Lean_instToExprBool___lambda__1___closed__4 = _init_l_Lean_instToExprBool___lambda__1___closed__4();
lean_mark_persistent(l_Lean_instToExprBool___lambda__1___closed__4);
l_Lean_instToExprBool___lambda__1___closed__5 = _init_l_Lean_instToExprBool___lambda__1___closed__5();
lean_mark_persistent(l_Lean_instToExprBool___lambda__1___closed__5);
l_Lean_instToExprBool___lambda__1___closed__6 = _init_l_Lean_instToExprBool___lambda__1___closed__6();
lean_mark_persistent(l_Lean_instToExprBool___lambda__1___closed__6);
l_Lean_instToExprBool___lambda__1___closed__7 = _init_l_Lean_instToExprBool___lambda__1___closed__7();
lean_mark_persistent(l_Lean_instToExprBool___lambda__1___closed__7);
l_Lean_instToExprBool___lambda__1___closed__8 = _init_l_Lean_instToExprBool___lambda__1___closed__8();
lean_mark_persistent(l_Lean_instToExprBool___lambda__1___closed__8);
l_Lean_instToExprBool___closed__1 = _init_l_Lean_instToExprBool___closed__1();
lean_mark_persistent(l_Lean_instToExprBool___closed__1);
l_Lean_instToExprBool___closed__2 = _init_l_Lean_instToExprBool___closed__2();
lean_mark_persistent(l_Lean_instToExprBool___closed__2);
l_Lean_instToExprBool___closed__3 = _init_l_Lean_instToExprBool___closed__3();
lean_mark_persistent(l_Lean_instToExprBool___closed__3);
l_Lean_instToExprBool = _init_l_Lean_instToExprBool();
lean_mark_persistent(l_Lean_instToExprBool);
l_Lean_instToExprChar___lambda__1___closed__1 = _init_l_Lean_instToExprChar___lambda__1___closed__1();
lean_mark_persistent(l_Lean_instToExprChar___lambda__1___closed__1);
l_Lean_instToExprChar___lambda__1___closed__2 = _init_l_Lean_instToExprChar___lambda__1___closed__2();
lean_mark_persistent(l_Lean_instToExprChar___lambda__1___closed__2);
l_Lean_instToExprChar___lambda__1___closed__3 = _init_l_Lean_instToExprChar___lambda__1___closed__3();
lean_mark_persistent(l_Lean_instToExprChar___lambda__1___closed__3);
l_Lean_instToExprChar___lambda__1___closed__4 = _init_l_Lean_instToExprChar___lambda__1___closed__4();
lean_mark_persistent(l_Lean_instToExprChar___lambda__1___closed__4);
l_Lean_instToExprChar___lambda__1___closed__5 = _init_l_Lean_instToExprChar___lambda__1___closed__5();
lean_mark_persistent(l_Lean_instToExprChar___lambda__1___closed__5);
l_Lean_instToExprChar___closed__1 = _init_l_Lean_instToExprChar___closed__1();
lean_mark_persistent(l_Lean_instToExprChar___closed__1);
l_Lean_instToExprChar___closed__2 = _init_l_Lean_instToExprChar___closed__2();
lean_mark_persistent(l_Lean_instToExprChar___closed__2);
l_Lean_instToExprChar___closed__3 = _init_l_Lean_instToExprChar___closed__3();
lean_mark_persistent(l_Lean_instToExprChar___closed__3);
l_Lean_instToExprChar = _init_l_Lean_instToExprChar();
lean_mark_persistent(l_Lean_instToExprChar);
l_Lean_instToExprString___closed__1 = _init_l_Lean_instToExprString___closed__1();
lean_mark_persistent(l_Lean_instToExprString___closed__1);
l_Lean_instToExprString___closed__2 = _init_l_Lean_instToExprString___closed__2();
lean_mark_persistent(l_Lean_instToExprString___closed__2);
l_Lean_instToExprString___closed__3 = _init_l_Lean_instToExprString___closed__3();
lean_mark_persistent(l_Lean_instToExprString___closed__3);
l_Lean_instToExprString___closed__4 = _init_l_Lean_instToExprString___closed__4();
lean_mark_persistent(l_Lean_instToExprString___closed__4);
l_Lean_instToExprString___closed__5 = _init_l_Lean_instToExprString___closed__5();
lean_mark_persistent(l_Lean_instToExprString___closed__5);
l_Lean_instToExprString = _init_l_Lean_instToExprString();
lean_mark_persistent(l_Lean_instToExprString);
l_Lean_instToExprUnit___lambda__1___closed__1 = _init_l_Lean_instToExprUnit___lambda__1___closed__1();
lean_mark_persistent(l_Lean_instToExprUnit___lambda__1___closed__1);
l_Lean_instToExprUnit___lambda__1___closed__2 = _init_l_Lean_instToExprUnit___lambda__1___closed__2();
lean_mark_persistent(l_Lean_instToExprUnit___lambda__1___closed__2);
l_Lean_instToExprUnit___lambda__1___closed__3 = _init_l_Lean_instToExprUnit___lambda__1___closed__3();
lean_mark_persistent(l_Lean_instToExprUnit___lambda__1___closed__3);
l_Lean_instToExprUnit___lambda__1___closed__4 = _init_l_Lean_instToExprUnit___lambda__1___closed__4();
lean_mark_persistent(l_Lean_instToExprUnit___lambda__1___closed__4);
l_Lean_instToExprUnit___lambda__1___closed__5 = _init_l_Lean_instToExprUnit___lambda__1___closed__5();
lean_mark_persistent(l_Lean_instToExprUnit___lambda__1___closed__5);
l_Lean_instToExprUnit___closed__1 = _init_l_Lean_instToExprUnit___closed__1();
lean_mark_persistent(l_Lean_instToExprUnit___closed__1);
l_Lean_instToExprUnit___closed__2 = _init_l_Lean_instToExprUnit___closed__2();
lean_mark_persistent(l_Lean_instToExprUnit___closed__2);
l_Lean_instToExprUnit___closed__3 = _init_l_Lean_instToExprUnit___closed__3();
lean_mark_persistent(l_Lean_instToExprUnit___closed__3);
l_Lean_instToExprUnit = _init_l_Lean_instToExprUnit();
lean_mark_persistent(l_Lean_instToExprUnit);
l_Lean_Name_toExprAux___closed__1 = _init_l_Lean_Name_toExprAux___closed__1();
lean_mark_persistent(l_Lean_Name_toExprAux___closed__1);
l_Lean_Name_toExprAux___closed__2 = _init_l_Lean_Name_toExprAux___closed__2();
lean_mark_persistent(l_Lean_Name_toExprAux___closed__2);
l_Lean_Name_toExprAux___closed__3 = _init_l_Lean_Name_toExprAux___closed__3();
lean_mark_persistent(l_Lean_Name_toExprAux___closed__3);
l_Lean_Name_toExprAux___closed__4 = _init_l_Lean_Name_toExprAux___closed__4();
lean_mark_persistent(l_Lean_Name_toExprAux___closed__4);
l_Lean_Name_toExprAux___closed__5 = _init_l_Lean_Name_toExprAux___closed__5();
lean_mark_persistent(l_Lean_Name_toExprAux___closed__5);
l_Lean_Name_toExprAux___closed__6 = _init_l_Lean_Name_toExprAux___closed__6();
lean_mark_persistent(l_Lean_Name_toExprAux___closed__6);
l_Lean_Name_toExprAux___closed__7 = _init_l_Lean_Name_toExprAux___closed__7();
lean_mark_persistent(l_Lean_Name_toExprAux___closed__7);
l_Lean_Name_toExprAux___closed__8 = _init_l_Lean_Name_toExprAux___closed__8();
lean_mark_persistent(l_Lean_Name_toExprAux___closed__8);
l_Lean_Name_toExprAux___closed__9 = _init_l_Lean_Name_toExprAux___closed__9();
lean_mark_persistent(l_Lean_Name_toExprAux___closed__9);
l_Lean_Name_toExprAux___closed__10 = _init_l_Lean_Name_toExprAux___closed__10();
lean_mark_persistent(l_Lean_Name_toExprAux___closed__10);
l_Lean_Name_toExprAux___closed__11 = _init_l_Lean_Name_toExprAux___closed__11();
lean_mark_persistent(l_Lean_Name_toExprAux___closed__11);
l_Lean_Name_toExprAux___closed__12 = _init_l_Lean_Name_toExprAux___closed__12();
lean_mark_persistent(l_Lean_Name_toExprAux___closed__12);
l_Lean_Name_toExprAux___closed__13 = _init_l_Lean_Name_toExprAux___closed__13();
lean_mark_persistent(l_Lean_Name_toExprAux___closed__13);
l_Lean_instToExprName___closed__1 = _init_l_Lean_instToExprName___closed__1();
lean_mark_persistent(l_Lean_instToExprName___closed__1);
l_Lean_instToExprName___closed__2 = _init_l_Lean_instToExprName___closed__2();
lean_mark_persistent(l_Lean_instToExprName___closed__2);
l_Lean_instToExprName___closed__3 = _init_l_Lean_instToExprName___closed__3();
lean_mark_persistent(l_Lean_instToExprName___closed__3);
l_Lean_instToExprName = _init_l_Lean_instToExprName();
lean_mark_persistent(l_Lean_instToExprName);
l_Lean_instToExprOption___rarg___lambda__1___closed__1 = _init_l_Lean_instToExprOption___rarg___lambda__1___closed__1();
lean_mark_persistent(l_Lean_instToExprOption___rarg___lambda__1___closed__1);
l_Lean_instToExprOption___rarg___lambda__1___closed__2 = _init_l_Lean_instToExprOption___rarg___lambda__1___closed__2();
lean_mark_persistent(l_Lean_instToExprOption___rarg___lambda__1___closed__2);
l_Lean_instToExprOption___rarg___lambda__1___closed__3 = _init_l_Lean_instToExprOption___rarg___lambda__1___closed__3();
lean_mark_persistent(l_Lean_instToExprOption___rarg___lambda__1___closed__3);
l_Lean_instToExprOption___rarg___lambda__1___closed__4 = _init_l_Lean_instToExprOption___rarg___lambda__1___closed__4();
lean_mark_persistent(l_Lean_instToExprOption___rarg___lambda__1___closed__4);
l_Lean_instToExprOption___rarg___lambda__1___closed__5 = _init_l_Lean_instToExprOption___rarg___lambda__1___closed__5();
lean_mark_persistent(l_Lean_instToExprOption___rarg___lambda__1___closed__5);
l_Lean_instToExprOption___rarg___lambda__1___closed__6 = _init_l_Lean_instToExprOption___rarg___lambda__1___closed__6();
lean_mark_persistent(l_Lean_instToExprOption___rarg___lambda__1___closed__6);
l_Lean_instToExprOption___rarg___lambda__1___closed__7 = _init_l_Lean_instToExprOption___rarg___lambda__1___closed__7();
lean_mark_persistent(l_Lean_instToExprOption___rarg___lambda__1___closed__7);
l_Lean_instToExprOption___rarg___lambda__1___closed__8 = _init_l_Lean_instToExprOption___rarg___lambda__1___closed__8();
lean_mark_persistent(l_Lean_instToExprOption___rarg___lambda__1___closed__8);
l_Lean_instToExprOption___rarg___lambda__1___closed__9 = _init_l_Lean_instToExprOption___rarg___lambda__1___closed__9();
lean_mark_persistent(l_Lean_instToExprOption___rarg___lambda__1___closed__9);
l_Lean_instToExprOption___rarg___closed__1 = _init_l_Lean_instToExprOption___rarg___closed__1();
lean_mark_persistent(l_Lean_instToExprOption___rarg___closed__1);
l_Lean_instToExprList___rarg___closed__1 = _init_l_Lean_instToExprList___rarg___closed__1();
lean_mark_persistent(l_Lean_instToExprList___rarg___closed__1);
l_Lean_instToExprList___rarg___closed__2 = _init_l_Lean_instToExprList___rarg___closed__2();
lean_mark_persistent(l_Lean_instToExprList___rarg___closed__2);
l_Lean_instToExprList___rarg___closed__3 = _init_l_Lean_instToExprList___rarg___closed__3();
lean_mark_persistent(l_Lean_instToExprList___rarg___closed__3);
l_Lean_instToExprList___rarg___closed__4 = _init_l_Lean_instToExprList___rarg___closed__4();
lean_mark_persistent(l_Lean_instToExprList___rarg___closed__4);
l_Lean_instToExprList___rarg___closed__5 = _init_l_Lean_instToExprList___rarg___closed__5();
lean_mark_persistent(l_Lean_instToExprList___rarg___closed__5);
l_Lean_instToExprList___rarg___closed__6 = _init_l_Lean_instToExprList___rarg___closed__6();
lean_mark_persistent(l_Lean_instToExprList___rarg___closed__6);
l_Lean_instToExprList___rarg___closed__7 = _init_l_Lean_instToExprList___rarg___closed__7();
lean_mark_persistent(l_Lean_instToExprList___rarg___closed__7);
l_Lean_instToExprList___rarg___closed__8 = _init_l_Lean_instToExprList___rarg___closed__8();
lean_mark_persistent(l_Lean_instToExprList___rarg___closed__8);
l_Lean_instToExprList___rarg___closed__9 = _init_l_Lean_instToExprList___rarg___closed__9();
lean_mark_persistent(l_Lean_instToExprList___rarg___closed__9);
l_Lean_instToExprArray___rarg___lambda__1___closed__1 = _init_l_Lean_instToExprArray___rarg___lambda__1___closed__1();
lean_mark_persistent(l_Lean_instToExprArray___rarg___lambda__1___closed__1);
l_Lean_instToExprArray___rarg___lambda__1___closed__2 = _init_l_Lean_instToExprArray___rarg___lambda__1___closed__2();
lean_mark_persistent(l_Lean_instToExprArray___rarg___lambda__1___closed__2);
l_Lean_instToExprArray___rarg___lambda__1___closed__3 = _init_l_Lean_instToExprArray___rarg___lambda__1___closed__3();
lean_mark_persistent(l_Lean_instToExprArray___rarg___lambda__1___closed__3);
l_Lean_instToExprArray___rarg___lambda__1___closed__4 = _init_l_Lean_instToExprArray___rarg___lambda__1___closed__4();
lean_mark_persistent(l_Lean_instToExprArray___rarg___lambda__1___closed__4);
l_Lean_instToExprArray___rarg___closed__1 = _init_l_Lean_instToExprArray___rarg___closed__1();
lean_mark_persistent(l_Lean_instToExprArray___rarg___closed__1);
l_Lean_instToExprArray___rarg___closed__2 = _init_l_Lean_instToExprArray___rarg___closed__2();
lean_mark_persistent(l_Lean_instToExprArray___rarg___closed__2);
l_Lean_instToExprArray___rarg___closed__3 = _init_l_Lean_instToExprArray___rarg___closed__3();
lean_mark_persistent(l_Lean_instToExprArray___rarg___closed__3);
l_Lean_instToExprProd___rarg___lambda__1___closed__1 = _init_l_Lean_instToExprProd___rarg___lambda__1___closed__1();
lean_mark_persistent(l_Lean_instToExprProd___rarg___lambda__1___closed__1);
l_Lean_instToExprProd___rarg___lambda__1___closed__2 = _init_l_Lean_instToExprProd___rarg___lambda__1___closed__2();
lean_mark_persistent(l_Lean_instToExprProd___rarg___lambda__1___closed__2);
l_Lean_instToExprProd___rarg___lambda__1___closed__3 = _init_l_Lean_instToExprProd___rarg___lambda__1___closed__3();
lean_mark_persistent(l_Lean_instToExprProd___rarg___lambda__1___closed__3);
l_Lean_instToExprProd___rarg___lambda__1___closed__4 = _init_l_Lean_instToExprProd___rarg___lambda__1___closed__4();
lean_mark_persistent(l_Lean_instToExprProd___rarg___lambda__1___closed__4);
l_Lean_instToExprProd___rarg___lambda__1___closed__5 = _init_l_Lean_instToExprProd___rarg___lambda__1___closed__5();
lean_mark_persistent(l_Lean_instToExprProd___rarg___lambda__1___closed__5);
l_Lean_instToExprProd___rarg___lambda__1___closed__6 = _init_l_Lean_instToExprProd___rarg___lambda__1___closed__6();
lean_mark_persistent(l_Lean_instToExprProd___rarg___lambda__1___closed__6);
l_Lean_instToExprProd___rarg___closed__1 = _init_l_Lean_instToExprProd___rarg___closed__1();
lean_mark_persistent(l_Lean_instToExprProd___rarg___closed__1);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
