// Lean compiler output
// Module: Lake.DSL.Script
// Imports: Lake.Config.Package Lake.DSL.Attributes Lake.DSL.Syntax
#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_Lake_DSL_expandScriptDecl___lambda__1___closed__42;
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__15;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__2___closed__6;
lean_object* l_Lean_Macro_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__21;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__23;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__2___closed__1;
static lean_object* l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__2;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__44;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__26;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__18;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__25;
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__45;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__37;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__54;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__3___closed__2;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__51;
lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__52;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__39;
static lean_object* l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__1;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__11;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__7;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__33;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__12;
static lean_object* l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__3;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t);
lean_object* l_Lean_Syntax_node6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__34;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__48;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__13;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__2___closed__2;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__2___closed__5;
lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__14;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__4___closed__1;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__3___closed__1;
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__9;
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
extern lean_object* l_Lean_Elab_macroAttribute;
lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl(lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__53;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_DSL_expandIdentOrStrAsIdent(lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__38;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__40;
lean_object* l_Array_append___rarg(lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__27;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__49;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__28;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__22;
lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__2___closed__3;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__35;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__3___closed__5;
lean_object* l_Lean_Syntax_SepArray_ofElems(lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__47;
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__5;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_DSL_expandAttrs(lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__16;
lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__41;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__19;
uint8_t l_Lean_Syntax_isNone(lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___closed__1;
lean_object* l_Array_mkArray1___rarg(lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__4___closed__2;
static lean_object* l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__4;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__10;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__31;
static lean_object* l_Lake_DSL_expandScriptDecl___closed__2;
lean_object* lean_array_mk(lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__2___closed__4;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1(lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__30;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__3___closed__6;
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__43;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__3;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__4;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__46;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__3___closed__7;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__6;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
lean_object* l_Lake_DSL_expandOptSimpleBinder(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__50;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__32;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__8;
lean_object* l_String_toSubstring_x27(lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__36;
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Parser", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Term", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attrInstance", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__3;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__4;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attrKind", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__3;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__6;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("null", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__8;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Attr", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("simple", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__11;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__12;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("«script»", 10, 8);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__14;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("script", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__16;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Command", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__19() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declaration", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__18;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__19;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__21() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declModifiers", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__18;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__21;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__23() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attributes", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__24() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__3;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__23;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__25() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("@[", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__26() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(",", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__27() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("]", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__28() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("definition", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__29() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__18;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__28;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__30() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("def", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__31() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declId", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__32() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__18;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__31;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__33() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_array_mk(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__34() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_box(2);
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__9;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__33;
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__35() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__34;
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_Lake_DSL_expandScriptDecl___lambda__1___closed__36() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("optDeclSig", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__37() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__18;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__36;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__38() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("typeSpec", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__39() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__3;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__38;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__40() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__41() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ScriptFn", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__42() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__41;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__43() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__41;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__44() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__45() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__44;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__41;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__46() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__45;
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_Lake_DSL_expandScriptDecl___lambda__1___closed__47() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__46;
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_Lake_DSL_expandScriptDecl___lambda__1___closed__48() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":=", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__49() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("fun", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__50() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__3;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__49;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__51() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("basicFun", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__52() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__3;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__51;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__53() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("=>", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__54() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__10;
x_2 = l_Array_append___rarg(x_1, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; uint8_t x_14; 
x_13 = l_Lake_DSL_expandIdentOrStrAsIdent(x_1);
x_14 = !lean_is_exclusive(x_11);
if (x_14 == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_15 = lean_ctor_get(x_11, 1);
x_16 = lean_ctor_get(x_11, 2);
x_17 = lean_ctor_get(x_11, 5);
x_18 = l_Lean_replaceRef(x_2, x_17);
lean_dec(x_17);
lean_inc(x_18);
lean_inc(x_16);
lean_inc(x_15);
lean_ctor_set(x_11, 5, x_18);
x_19 = l_Lake_DSL_expandOptSimpleBinder(x_3, x_11, x_12);
lean_dec(x_11);
x_20 = !lean_is_exclusive(x_19);
if (x_20 == 0)
{
lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; 
x_21 = lean_ctor_get(x_19, 0);
x_22 = 0;
x_23 = l_Lean_SourceInfo_fromRef(x_18, x_22);
lean_dec(x_18);
x_24 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__9;
x_25 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__10;
lean_inc(x_23);
x_26 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_26, 0, x_23);
lean_ctor_set(x_26, 1, x_24);
lean_ctor_set(x_26, 2, x_25);
x_27 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__7;
lean_inc(x_26);
lean_inc(x_23);
x_28 = l_Lean_Syntax_node1(x_23, x_27, x_26);
x_29 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
lean_inc(x_16);
lean_inc(x_15);
x_30 = l_Lean_addMacroScope(x_15, x_29, x_16);
x_31 = lean_box(0);
x_32 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__15;
lean_inc(x_23);
x_33 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_33, 0, x_23);
lean_ctor_set(x_33, 1, x_32);
lean_ctor_set(x_33, 2, x_30);
lean_ctor_set(x_33, 3, x_31);
x_34 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__13;
lean_inc(x_26);
lean_inc(x_23);
x_35 = l_Lean_Syntax_node2(x_23, x_34, x_33, x_26);
x_36 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__5;
lean_inc(x_23);
x_37 = l_Lean_Syntax_node2(x_23, x_36, x_28, x_35);
x_38 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_38, 0, x_37);
lean_ctor_set(x_38, 1, x_31);
x_39 = lean_array_mk(x_38);
x_40 = l_Lake_DSL_expandAttrs(x_4);
x_41 = l_Array_append___rarg(x_39, x_40);
lean_dec(x_40);
x_42 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__25;
lean_inc(x_23);
x_43 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_43, 0, x_23);
lean_ctor_set(x_43, 1, x_42);
x_44 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__26;
x_45 = l_Lean_Syntax_SepArray_ofElems(x_44, x_41);
lean_dec(x_41);
x_46 = l_Array_append___rarg(x_25, x_45);
lean_dec(x_45);
lean_inc(x_23);
x_47 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_47, 0, x_23);
lean_ctor_set(x_47, 1, x_24);
lean_ctor_set(x_47, 2, x_46);
x_48 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__27;
lean_inc(x_23);
x_49 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_49, 0, x_23);
lean_ctor_set(x_49, 1, x_48);
x_50 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
lean_inc(x_23);
x_51 = l_Lean_Syntax_node3(x_23, x_50, x_43, x_47, x_49);
lean_inc(x_23);
x_52 = l_Lean_Syntax_node1(x_23, x_24, x_51);
x_53 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__30;
lean_inc(x_23);
x_54 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_54, 0, x_23);
lean_ctor_set(x_54, 1, x_53);
x_55 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__35;
x_56 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_56, 0, x_13);
lean_ctor_set(x_56, 1, x_55);
x_57 = lean_array_mk(x_56);
x_58 = lean_box(2);
x_59 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__32;
x_60 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_60, 0, x_58);
lean_ctor_set(x_60, 1, x_59);
lean_ctor_set(x_60, 2, x_57);
x_61 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__40;
lean_inc(x_23);
x_62 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_62, 0, x_23);
lean_ctor_set(x_62, 1, x_61);
x_63 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__43;
x_64 = l_Lean_addMacroScope(x_15, x_63, x_16);
x_65 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__42;
x_66 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__47;
lean_inc(x_23);
x_67 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_67, 0, x_23);
lean_ctor_set(x_67, 1, x_65);
lean_ctor_set(x_67, 2, x_64);
lean_ctor_set(x_67, 3, x_66);
x_68 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__39;
lean_inc(x_23);
x_69 = l_Lean_Syntax_node2(x_23, x_68, x_62, x_67);
lean_inc(x_23);
x_70 = l_Lean_Syntax_node1(x_23, x_24, x_69);
x_71 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__37;
lean_inc(x_26);
lean_inc(x_23);
x_72 = l_Lean_Syntax_node2(x_23, x_71, x_26, x_70);
x_73 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__48;
lean_inc(x_23);
x_74 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_74, 0, x_23);
lean_ctor_set(x_74, 1, x_73);
x_75 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__49;
lean_inc(x_23);
x_76 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_76, 0, x_23);
lean_ctor_set(x_76, 1, x_75);
lean_inc(x_23);
x_77 = l_Lean_Syntax_node1(x_23, x_24, x_21);
x_78 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__53;
lean_inc(x_23);
x_79 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_79, 0, x_23);
lean_ctor_set(x_79, 1, x_78);
x_80 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__52;
lean_inc(x_26);
lean_inc(x_23);
x_81 = l_Lean_Syntax_node4(x_23, x_80, x_77, x_26, x_79, x_5);
x_82 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__50;
lean_inc(x_23);
x_83 = l_Lean_Syntax_node2(x_23, x_82, x_76, x_81);
lean_inc_n(x_26, 2);
lean_inc(x_23);
x_84 = l_Lean_Syntax_node2(x_23, x_6, x_26, x_26);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; 
x_85 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__54;
lean_inc(x_23);
x_86 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_86, 0, x_23);
lean_ctor_set(x_86, 1, x_24);
lean_ctor_set(x_86, 2, x_85);
x_87 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__22;
lean_inc_n(x_26, 4);
lean_inc(x_86);
lean_inc(x_23);
x_88 = l_Lean_Syntax_node6(x_23, x_87, x_86, x_52, x_26, x_26, x_26, x_26);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; 
lean_inc(x_23);
x_89 = l_Lean_Syntax_node4(x_23, x_8, x_74, x_83, x_84, x_86);
x_90 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
lean_inc(x_23);
x_91 = l_Lean_Syntax_node5(x_23, x_90, x_54, x_60, x_72, x_89, x_26);
x_92 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
x_93 = l_Lean_Syntax_node2(x_23, x_92, x_88, x_91);
lean_ctor_set(x_19, 0, x_93);
return x_19;
}
else
{
lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; 
lean_dec(x_86);
x_94 = lean_ctor_get(x_10, 0);
lean_inc(x_94);
lean_dec(x_10);
x_95 = l_Array_mkArray1___rarg(x_94);
x_96 = l_Array_append___rarg(x_25, x_95);
lean_dec(x_95);
lean_inc(x_23);
x_97 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_97, 0, x_23);
lean_ctor_set(x_97, 1, x_24);
lean_ctor_set(x_97, 2, x_96);
lean_inc(x_23);
x_98 = l_Lean_Syntax_node4(x_23, x_8, x_74, x_83, x_84, x_97);
x_99 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
lean_inc(x_23);
x_100 = l_Lean_Syntax_node5(x_23, x_99, x_54, x_60, x_72, x_98, x_26);
x_101 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
x_102 = l_Lean_Syntax_node2(x_23, x_101, x_88, x_100);
lean_ctor_set(x_19, 0, x_102);
return x_19;
}
}
else
{
lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; 
x_103 = lean_ctor_get(x_7, 0);
lean_inc(x_103);
lean_dec(x_7);
x_104 = l_Array_mkArray1___rarg(x_103);
x_105 = l_Array_append___rarg(x_25, x_104);
lean_dec(x_104);
lean_inc(x_23);
x_106 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_106, 0, x_23);
lean_ctor_set(x_106, 1, x_24);
lean_ctor_set(x_106, 2, x_105);
x_107 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__22;
lean_inc_n(x_26, 4);
lean_inc(x_23);
x_108 = l_Lean_Syntax_node6(x_23, x_107, x_106, x_52, x_26, x_26, x_26, x_26);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_109 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__54;
lean_inc(x_23);
x_110 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_110, 0, x_23);
lean_ctor_set(x_110, 1, x_24);
lean_ctor_set(x_110, 2, x_109);
lean_inc(x_23);
x_111 = l_Lean_Syntax_node4(x_23, x_8, x_74, x_83, x_84, x_110);
x_112 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
lean_inc(x_23);
x_113 = l_Lean_Syntax_node5(x_23, x_112, x_54, x_60, x_72, x_111, x_26);
x_114 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
x_115 = l_Lean_Syntax_node2(x_23, x_114, x_108, x_113);
lean_ctor_set(x_19, 0, x_115);
return x_19;
}
else
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; 
x_116 = lean_ctor_get(x_10, 0);
lean_inc(x_116);
lean_dec(x_10);
x_117 = l_Array_mkArray1___rarg(x_116);
x_118 = l_Array_append___rarg(x_25, x_117);
lean_dec(x_117);
lean_inc(x_23);
x_119 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_119, 0, x_23);
lean_ctor_set(x_119, 1, x_24);
lean_ctor_set(x_119, 2, x_118);
lean_inc(x_23);
x_120 = l_Lean_Syntax_node4(x_23, x_8, x_74, x_83, x_84, x_119);
x_121 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
lean_inc(x_23);
x_122 = l_Lean_Syntax_node5(x_23, x_121, x_54, x_60, x_72, x_120, x_26);
x_123 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
x_124 = l_Lean_Syntax_node2(x_23, x_123, x_108, x_122);
lean_ctor_set(x_19, 0, x_124);
return x_19;
}
}
}
else
{
lean_object* x_125; lean_object* x_126; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; 
x_125 = lean_ctor_get(x_19, 0);
x_126 = lean_ctor_get(x_19, 1);
lean_inc(x_126);
lean_inc(x_125);
lean_dec(x_19);
x_127 = 0;
x_128 = l_Lean_SourceInfo_fromRef(x_18, x_127);
lean_dec(x_18);
x_129 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__9;
x_130 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__10;
lean_inc(x_128);
x_131 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_131, 0, x_128);
lean_ctor_set(x_131, 1, x_129);
lean_ctor_set(x_131, 2, x_130);
x_132 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__7;
lean_inc(x_131);
lean_inc(x_128);
x_133 = l_Lean_Syntax_node1(x_128, x_132, x_131);
x_134 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
lean_inc(x_16);
lean_inc(x_15);
x_135 = l_Lean_addMacroScope(x_15, x_134, x_16);
x_136 = lean_box(0);
x_137 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__15;
lean_inc(x_128);
x_138 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_138, 0, x_128);
lean_ctor_set(x_138, 1, x_137);
lean_ctor_set(x_138, 2, x_135);
lean_ctor_set(x_138, 3, x_136);
x_139 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__13;
lean_inc(x_131);
lean_inc(x_128);
x_140 = l_Lean_Syntax_node2(x_128, x_139, x_138, x_131);
x_141 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__5;
lean_inc(x_128);
x_142 = l_Lean_Syntax_node2(x_128, x_141, x_133, x_140);
x_143 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_143, 0, x_142);
lean_ctor_set(x_143, 1, x_136);
x_144 = lean_array_mk(x_143);
x_145 = l_Lake_DSL_expandAttrs(x_4);
x_146 = l_Array_append___rarg(x_144, x_145);
lean_dec(x_145);
x_147 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__25;
lean_inc(x_128);
x_148 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_148, 0, x_128);
lean_ctor_set(x_148, 1, x_147);
x_149 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__26;
x_150 = l_Lean_Syntax_SepArray_ofElems(x_149, x_146);
lean_dec(x_146);
x_151 = l_Array_append___rarg(x_130, x_150);
lean_dec(x_150);
lean_inc(x_128);
x_152 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_152, 0, x_128);
lean_ctor_set(x_152, 1, x_129);
lean_ctor_set(x_152, 2, x_151);
x_153 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__27;
lean_inc(x_128);
x_154 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_154, 0, x_128);
lean_ctor_set(x_154, 1, x_153);
x_155 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
lean_inc(x_128);
x_156 = l_Lean_Syntax_node3(x_128, x_155, x_148, x_152, x_154);
lean_inc(x_128);
x_157 = l_Lean_Syntax_node1(x_128, x_129, x_156);
x_158 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__30;
lean_inc(x_128);
x_159 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_159, 0, x_128);
lean_ctor_set(x_159, 1, x_158);
x_160 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__35;
x_161 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_161, 0, x_13);
lean_ctor_set(x_161, 1, x_160);
x_162 = lean_array_mk(x_161);
x_163 = lean_box(2);
x_164 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__32;
x_165 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_165, 0, x_163);
lean_ctor_set(x_165, 1, x_164);
lean_ctor_set(x_165, 2, x_162);
x_166 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__40;
lean_inc(x_128);
x_167 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_167, 0, x_128);
lean_ctor_set(x_167, 1, x_166);
x_168 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__43;
x_169 = l_Lean_addMacroScope(x_15, x_168, x_16);
x_170 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__42;
x_171 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__47;
lean_inc(x_128);
x_172 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_172, 0, x_128);
lean_ctor_set(x_172, 1, x_170);
lean_ctor_set(x_172, 2, x_169);
lean_ctor_set(x_172, 3, x_171);
x_173 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__39;
lean_inc(x_128);
x_174 = l_Lean_Syntax_node2(x_128, x_173, x_167, x_172);
lean_inc(x_128);
x_175 = l_Lean_Syntax_node1(x_128, x_129, x_174);
x_176 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__37;
lean_inc(x_131);
lean_inc(x_128);
x_177 = l_Lean_Syntax_node2(x_128, x_176, x_131, x_175);
x_178 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__48;
lean_inc(x_128);
x_179 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_179, 0, x_128);
lean_ctor_set(x_179, 1, x_178);
x_180 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__49;
lean_inc(x_128);
x_181 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_181, 0, x_128);
lean_ctor_set(x_181, 1, x_180);
lean_inc(x_128);
x_182 = l_Lean_Syntax_node1(x_128, x_129, x_125);
x_183 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__53;
lean_inc(x_128);
x_184 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_184, 0, x_128);
lean_ctor_set(x_184, 1, x_183);
x_185 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__52;
lean_inc(x_131);
lean_inc(x_128);
x_186 = l_Lean_Syntax_node4(x_128, x_185, x_182, x_131, x_184, x_5);
x_187 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__50;
lean_inc(x_128);
x_188 = l_Lean_Syntax_node2(x_128, x_187, x_181, x_186);
lean_inc_n(x_131, 2);
lean_inc(x_128);
x_189 = l_Lean_Syntax_node2(x_128, x_6, x_131, x_131);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; 
x_190 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__54;
lean_inc(x_128);
x_191 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_191, 0, x_128);
lean_ctor_set(x_191, 1, x_129);
lean_ctor_set(x_191, 2, x_190);
x_192 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__22;
lean_inc_n(x_131, 4);
lean_inc(x_191);
lean_inc(x_128);
x_193 = l_Lean_Syntax_node6(x_128, x_192, x_191, x_157, x_131, x_131, x_131, x_131);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; 
lean_inc(x_128);
x_194 = l_Lean_Syntax_node4(x_128, x_8, x_179, x_188, x_189, x_191);
x_195 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
lean_inc(x_128);
x_196 = l_Lean_Syntax_node5(x_128, x_195, x_159, x_165, x_177, x_194, x_131);
x_197 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
x_198 = l_Lean_Syntax_node2(x_128, x_197, x_193, x_196);
x_199 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_199, 0, x_198);
lean_ctor_set(x_199, 1, x_126);
return x_199;
}
else
{
lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; 
lean_dec(x_191);
x_200 = lean_ctor_get(x_10, 0);
lean_inc(x_200);
lean_dec(x_10);
x_201 = l_Array_mkArray1___rarg(x_200);
x_202 = l_Array_append___rarg(x_130, x_201);
lean_dec(x_201);
lean_inc(x_128);
x_203 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_203, 0, x_128);
lean_ctor_set(x_203, 1, x_129);
lean_ctor_set(x_203, 2, x_202);
lean_inc(x_128);
x_204 = l_Lean_Syntax_node4(x_128, x_8, x_179, x_188, x_189, x_203);
x_205 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
lean_inc(x_128);
x_206 = l_Lean_Syntax_node5(x_128, x_205, x_159, x_165, x_177, x_204, x_131);
x_207 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
x_208 = l_Lean_Syntax_node2(x_128, x_207, x_193, x_206);
x_209 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_209, 0, x_208);
lean_ctor_set(x_209, 1, x_126);
return x_209;
}
}
else
{
lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; 
x_210 = lean_ctor_get(x_7, 0);
lean_inc(x_210);
lean_dec(x_7);
x_211 = l_Array_mkArray1___rarg(x_210);
x_212 = l_Array_append___rarg(x_130, x_211);
lean_dec(x_211);
lean_inc(x_128);
x_213 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_213, 0, x_128);
lean_ctor_set(x_213, 1, x_129);
lean_ctor_set(x_213, 2, x_212);
x_214 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__22;
lean_inc_n(x_131, 4);
lean_inc(x_128);
x_215 = l_Lean_Syntax_node6(x_128, x_214, x_213, x_157, x_131, x_131, x_131, x_131);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; 
x_216 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__54;
lean_inc(x_128);
x_217 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_217, 0, x_128);
lean_ctor_set(x_217, 1, x_129);
lean_ctor_set(x_217, 2, x_216);
lean_inc(x_128);
x_218 = l_Lean_Syntax_node4(x_128, x_8, x_179, x_188, x_189, x_217);
x_219 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
lean_inc(x_128);
x_220 = l_Lean_Syntax_node5(x_128, x_219, x_159, x_165, x_177, x_218, x_131);
x_221 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
x_222 = l_Lean_Syntax_node2(x_128, x_221, x_215, x_220);
x_223 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_223, 0, x_222);
lean_ctor_set(x_223, 1, x_126);
return x_223;
}
else
{
lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; 
x_224 = lean_ctor_get(x_10, 0);
lean_inc(x_224);
lean_dec(x_10);
x_225 = l_Array_mkArray1___rarg(x_224);
x_226 = l_Array_append___rarg(x_130, x_225);
lean_dec(x_225);
lean_inc(x_128);
x_227 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_227, 0, x_128);
lean_ctor_set(x_227, 1, x_129);
lean_ctor_set(x_227, 2, x_226);
lean_inc(x_128);
x_228 = l_Lean_Syntax_node4(x_128, x_8, x_179, x_188, x_189, x_227);
x_229 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
lean_inc(x_128);
x_230 = l_Lean_Syntax_node5(x_128, x_229, x_159, x_165, x_177, x_228, x_131);
x_231 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
x_232 = l_Lean_Syntax_node2(x_128, x_231, x_215, x_230);
x_233 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_233, 0, x_232);
lean_ctor_set(x_233, 1, x_126);
return x_233;
}
}
}
}
else
{
lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; uint8_t x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; 
x_234 = lean_ctor_get(x_11, 0);
x_235 = lean_ctor_get(x_11, 1);
x_236 = lean_ctor_get(x_11, 2);
x_237 = lean_ctor_get(x_11, 3);
x_238 = lean_ctor_get(x_11, 4);
x_239 = lean_ctor_get(x_11, 5);
lean_inc(x_239);
lean_inc(x_238);
lean_inc(x_237);
lean_inc(x_236);
lean_inc(x_235);
lean_inc(x_234);
lean_dec(x_11);
x_240 = l_Lean_replaceRef(x_2, x_239);
lean_dec(x_239);
lean_inc(x_240);
lean_inc(x_236);
lean_inc(x_235);
x_241 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_241, 0, x_234);
lean_ctor_set(x_241, 1, x_235);
lean_ctor_set(x_241, 2, x_236);
lean_ctor_set(x_241, 3, x_237);
lean_ctor_set(x_241, 4, x_238);
lean_ctor_set(x_241, 5, x_240);
x_242 = l_Lake_DSL_expandOptSimpleBinder(x_3, x_241, x_12);
lean_dec(x_241);
x_243 = lean_ctor_get(x_242, 0);
lean_inc(x_243);
x_244 = lean_ctor_get(x_242, 1);
lean_inc(x_244);
if (lean_is_exclusive(x_242)) {
 lean_ctor_release(x_242, 0);
 lean_ctor_release(x_242, 1);
 x_245 = x_242;
} else {
 lean_dec_ref(x_242);
 x_245 = lean_box(0);
}
x_246 = 0;
x_247 = l_Lean_SourceInfo_fromRef(x_240, x_246);
lean_dec(x_240);
x_248 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__9;
x_249 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__10;
lean_inc(x_247);
x_250 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_250, 0, x_247);
lean_ctor_set(x_250, 1, x_248);
lean_ctor_set(x_250, 2, x_249);
x_251 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__7;
lean_inc(x_250);
lean_inc(x_247);
x_252 = l_Lean_Syntax_node1(x_247, x_251, x_250);
x_253 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
lean_inc(x_236);
lean_inc(x_235);
x_254 = l_Lean_addMacroScope(x_235, x_253, x_236);
x_255 = lean_box(0);
x_256 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__15;
lean_inc(x_247);
x_257 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_257, 0, x_247);
lean_ctor_set(x_257, 1, x_256);
lean_ctor_set(x_257, 2, x_254);
lean_ctor_set(x_257, 3, x_255);
x_258 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__13;
lean_inc(x_250);
lean_inc(x_247);
x_259 = l_Lean_Syntax_node2(x_247, x_258, x_257, x_250);
x_260 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__5;
lean_inc(x_247);
x_261 = l_Lean_Syntax_node2(x_247, x_260, x_252, x_259);
x_262 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_262, 0, x_261);
lean_ctor_set(x_262, 1, x_255);
x_263 = lean_array_mk(x_262);
x_264 = l_Lake_DSL_expandAttrs(x_4);
x_265 = l_Array_append___rarg(x_263, x_264);
lean_dec(x_264);
x_266 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__25;
lean_inc(x_247);
x_267 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_267, 0, x_247);
lean_ctor_set(x_267, 1, x_266);
x_268 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__26;
x_269 = l_Lean_Syntax_SepArray_ofElems(x_268, x_265);
lean_dec(x_265);
x_270 = l_Array_append___rarg(x_249, x_269);
lean_dec(x_269);
lean_inc(x_247);
x_271 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_271, 0, x_247);
lean_ctor_set(x_271, 1, x_248);
lean_ctor_set(x_271, 2, x_270);
x_272 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__27;
lean_inc(x_247);
x_273 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_273, 0, x_247);
lean_ctor_set(x_273, 1, x_272);
x_274 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
lean_inc(x_247);
x_275 = l_Lean_Syntax_node3(x_247, x_274, x_267, x_271, x_273);
lean_inc(x_247);
x_276 = l_Lean_Syntax_node1(x_247, x_248, x_275);
x_277 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__30;
lean_inc(x_247);
x_278 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_278, 0, x_247);
lean_ctor_set(x_278, 1, x_277);
x_279 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__35;
x_280 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_280, 0, x_13);
lean_ctor_set(x_280, 1, x_279);
x_281 = lean_array_mk(x_280);
x_282 = lean_box(2);
x_283 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__32;
x_284 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_284, 0, x_282);
lean_ctor_set(x_284, 1, x_283);
lean_ctor_set(x_284, 2, x_281);
x_285 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__40;
lean_inc(x_247);
x_286 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_286, 0, x_247);
lean_ctor_set(x_286, 1, x_285);
x_287 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__43;
x_288 = l_Lean_addMacroScope(x_235, x_287, x_236);
x_289 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__42;
x_290 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__47;
lean_inc(x_247);
x_291 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_291, 0, x_247);
lean_ctor_set(x_291, 1, x_289);
lean_ctor_set(x_291, 2, x_288);
lean_ctor_set(x_291, 3, x_290);
x_292 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__39;
lean_inc(x_247);
x_293 = l_Lean_Syntax_node2(x_247, x_292, x_286, x_291);
lean_inc(x_247);
x_294 = l_Lean_Syntax_node1(x_247, x_248, x_293);
x_295 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__37;
lean_inc(x_250);
lean_inc(x_247);
x_296 = l_Lean_Syntax_node2(x_247, x_295, x_250, x_294);
x_297 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__48;
lean_inc(x_247);
x_298 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_298, 0, x_247);
lean_ctor_set(x_298, 1, x_297);
x_299 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__49;
lean_inc(x_247);
x_300 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_300, 0, x_247);
lean_ctor_set(x_300, 1, x_299);
lean_inc(x_247);
x_301 = l_Lean_Syntax_node1(x_247, x_248, x_243);
x_302 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__53;
lean_inc(x_247);
x_303 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_303, 0, x_247);
lean_ctor_set(x_303, 1, x_302);
x_304 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__52;
lean_inc(x_250);
lean_inc(x_247);
x_305 = l_Lean_Syntax_node4(x_247, x_304, x_301, x_250, x_303, x_5);
x_306 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__50;
lean_inc(x_247);
x_307 = l_Lean_Syntax_node2(x_247, x_306, x_300, x_305);
lean_inc_n(x_250, 2);
lean_inc(x_247);
x_308 = l_Lean_Syntax_node2(x_247, x_6, x_250, x_250);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; 
x_309 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__54;
lean_inc(x_247);
x_310 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_310, 0, x_247);
lean_ctor_set(x_310, 1, x_248);
lean_ctor_set(x_310, 2, x_309);
x_311 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__22;
lean_inc_n(x_250, 4);
lean_inc(x_310);
lean_inc(x_247);
x_312 = l_Lean_Syntax_node6(x_247, x_311, x_310, x_276, x_250, x_250, x_250, x_250);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; 
lean_inc(x_247);
x_313 = l_Lean_Syntax_node4(x_247, x_8, x_298, x_307, x_308, x_310);
x_314 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
lean_inc(x_247);
x_315 = l_Lean_Syntax_node5(x_247, x_314, x_278, x_284, x_296, x_313, x_250);
x_316 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
x_317 = l_Lean_Syntax_node2(x_247, x_316, x_312, x_315);
if (lean_is_scalar(x_245)) {
 x_318 = lean_alloc_ctor(0, 2, 0);
} else {
 x_318 = x_245;
}
lean_ctor_set(x_318, 0, x_317);
lean_ctor_set(x_318, 1, x_244);
return x_318;
}
else
{
lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; 
lean_dec(x_310);
x_319 = lean_ctor_get(x_10, 0);
lean_inc(x_319);
lean_dec(x_10);
x_320 = l_Array_mkArray1___rarg(x_319);
x_321 = l_Array_append___rarg(x_249, x_320);
lean_dec(x_320);
lean_inc(x_247);
x_322 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_322, 0, x_247);
lean_ctor_set(x_322, 1, x_248);
lean_ctor_set(x_322, 2, x_321);
lean_inc(x_247);
x_323 = l_Lean_Syntax_node4(x_247, x_8, x_298, x_307, x_308, x_322);
x_324 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
lean_inc(x_247);
x_325 = l_Lean_Syntax_node5(x_247, x_324, x_278, x_284, x_296, x_323, x_250);
x_326 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
x_327 = l_Lean_Syntax_node2(x_247, x_326, x_312, x_325);
if (lean_is_scalar(x_245)) {
 x_328 = lean_alloc_ctor(0, 2, 0);
} else {
 x_328 = x_245;
}
lean_ctor_set(x_328, 0, x_327);
lean_ctor_set(x_328, 1, x_244);
return x_328;
}
}
else
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; 
x_329 = lean_ctor_get(x_7, 0);
lean_inc(x_329);
lean_dec(x_7);
x_330 = l_Array_mkArray1___rarg(x_329);
x_331 = l_Array_append___rarg(x_249, x_330);
lean_dec(x_330);
lean_inc(x_247);
x_332 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_332, 0, x_247);
lean_ctor_set(x_332, 1, x_248);
lean_ctor_set(x_332, 2, x_331);
x_333 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__22;
lean_inc_n(x_250, 4);
lean_inc(x_247);
x_334 = l_Lean_Syntax_node6(x_247, x_333, x_332, x_276, x_250, x_250, x_250, x_250);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; 
x_335 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__54;
lean_inc(x_247);
x_336 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_336, 0, x_247);
lean_ctor_set(x_336, 1, x_248);
lean_ctor_set(x_336, 2, x_335);
lean_inc(x_247);
x_337 = l_Lean_Syntax_node4(x_247, x_8, x_298, x_307, x_308, x_336);
x_338 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
lean_inc(x_247);
x_339 = l_Lean_Syntax_node5(x_247, x_338, x_278, x_284, x_296, x_337, x_250);
x_340 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
x_341 = l_Lean_Syntax_node2(x_247, x_340, x_334, x_339);
if (lean_is_scalar(x_245)) {
 x_342 = lean_alloc_ctor(0, 2, 0);
} else {
 x_342 = x_245;
}
lean_ctor_set(x_342, 0, x_341);
lean_ctor_set(x_342, 1, x_244);
return x_342;
}
else
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; 
x_343 = lean_ctor_get(x_10, 0);
lean_inc(x_343);
lean_dec(x_10);
x_344 = l_Array_mkArray1___rarg(x_343);
x_345 = l_Array_append___rarg(x_249, x_344);
lean_dec(x_344);
lean_inc(x_247);
x_346 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_346, 0, x_247);
lean_ctor_set(x_346, 1, x_248);
lean_ctor_set(x_346, 2, x_345);
lean_inc(x_247);
x_347 = l_Lean_Syntax_node4(x_247, x_8, x_298, x_307, x_308, x_346);
x_348 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
lean_inc(x_247);
x_349 = l_Lean_Syntax_node5(x_247, x_348, x_278, x_284, x_296, x_347, x_250);
x_350 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
x_351 = l_Lean_Syntax_node2(x_247, x_350, x_334, x_349);
if (lean_is_scalar(x_245)) {
 x_352 = lean_alloc_ctor(0, 2, 0);
} else {
 x_352 = x_245;
}
lean_ctor_set(x_352, 0, x_351);
lean_ctor_set(x_352, 1, x_244);
return x_352;
}
}
}
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declValSimple", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__18;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("do", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Termination", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("suffix", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__4;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__5;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; uint8_t x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_14 = lean_ctor_get(x_12, 5);
x_15 = 0;
x_16 = l_Lean_SourceInfo_fromRef(x_14, x_15);
x_17 = 1;
x_18 = l_Lean_SourceInfo_fromRef(x_1, x_17);
x_19 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__16;
x_20 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_20, 0, x_18);
lean_ctor_set(x_20, 1, x_19);
x_21 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__48;
lean_inc(x_16);
x_22 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_22, 0, x_16);
lean_ctor_set(x_22, 1, x_21);
x_23 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__3;
lean_inc(x_16);
x_24 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_24, 0, x_16);
lean_ctor_set(x_24, 1, x_23);
lean_inc(x_16);
x_25 = l_Lean_Syntax_node2(x_16, x_2, x_24, x_3);
x_26 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__9;
x_27 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__10;
lean_inc(x_16);
x_28 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_28, 0, x_16);
lean_ctor_set(x_28, 1, x_26);
lean_ctor_set(x_28, 2, x_27);
x_29 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__6;
lean_inc(x_28);
lean_inc(x_16);
x_30 = l_Lean_Syntax_node2(x_16, x_29, x_28, x_28);
if (lean_obj_tag(x_9) == 0)
{
x_31 = x_27;
goto block_76;
}
else
{
lean_object* x_77; lean_object* x_78; 
x_77 = lean_ctor_get(x_9, 0);
lean_inc(x_77);
lean_dec(x_9);
x_78 = l_Array_mkArray1___rarg(x_77);
x_31 = x_78;
goto block_76;
}
block_76:
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = l_Array_append___rarg(x_27, x_31);
lean_dec(x_31);
lean_inc(x_16);
x_33 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_33, 0, x_16);
lean_ctor_set(x_33, 1, x_26);
lean_ctor_set(x_33, 2, x_32);
if (lean_obj_tag(x_8) == 0)
{
x_34 = x_27;
goto block_73;
}
else
{
lean_object* x_74; lean_object* x_75; 
x_74 = lean_ctor_get(x_8, 0);
lean_inc(x_74);
lean_dec(x_8);
x_75 = l_Array_mkArray1___rarg(x_74);
x_34 = x_75;
goto block_73;
}
block_73:
{
lean_object* x_35; lean_object* x_36; 
x_35 = l_Array_append___rarg(x_27, x_34);
lean_dec(x_34);
lean_inc(x_16);
x_36 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_36, 0, x_16);
lean_ctor_set(x_36, 1, x_26);
lean_ctor_set(x_36, 2, x_35);
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_37; lean_object* x_38; 
x_37 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__54;
lean_inc(x_16);
x_38 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_38, 0, x_16);
lean_ctor_set(x_38, 1, x_26);
lean_ctor_set(x_38, 2, x_37);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
x_39 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__2;
lean_inc(x_38);
lean_inc(x_16);
x_40 = l_Lean_Syntax_node4(x_16, x_39, x_22, x_25, x_30, x_38);
lean_inc(x_16);
x_41 = l_Lean_Syntax_node3(x_16, x_5, x_6, x_38, x_40);
x_42 = l_Lean_Syntax_node4(x_16, x_7, x_33, x_36, x_20, x_41);
x_43 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_43, 0, x_42);
lean_ctor_set(x_43, 1, x_13);
return x_43;
}
else
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_44 = lean_ctor_get(x_11, 0);
lean_inc(x_44);
lean_dec(x_11);
x_45 = l_Array_mkArray1___rarg(x_44);
x_46 = l_Array_append___rarg(x_27, x_45);
lean_dec(x_45);
lean_inc(x_16);
x_47 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_47, 0, x_16);
lean_ctor_set(x_47, 1, x_26);
lean_ctor_set(x_47, 2, x_46);
x_48 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__2;
lean_inc(x_16);
x_49 = l_Lean_Syntax_node4(x_16, x_48, x_22, x_25, x_30, x_47);
lean_inc(x_16);
x_50 = l_Lean_Syntax_node3(x_16, x_5, x_6, x_38, x_49);
x_51 = l_Lean_Syntax_node4(x_16, x_7, x_33, x_36, x_20, x_50);
x_52 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_52, 0, x_51);
lean_ctor_set(x_52, 1, x_13);
return x_52;
}
}
else
{
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; 
x_53 = lean_ctor_get(x_4, 0);
lean_inc(x_53);
lean_dec(x_4);
x_54 = l_Array_mkArray1___rarg(x_53);
x_55 = l_Array_append___rarg(x_27, x_54);
lean_dec(x_54);
lean_inc(x_16);
x_56 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_56, 0, x_16);
lean_ctor_set(x_56, 1, x_26);
lean_ctor_set(x_56, 2, x_55);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; 
x_57 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__54;
lean_inc(x_16);
x_58 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_58, 0, x_16);
lean_ctor_set(x_58, 1, x_26);
lean_ctor_set(x_58, 2, x_57);
x_59 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__2;
lean_inc(x_16);
x_60 = l_Lean_Syntax_node4(x_16, x_59, x_22, x_25, x_30, x_58);
lean_inc(x_16);
x_61 = l_Lean_Syntax_node3(x_16, x_5, x_6, x_56, x_60);
x_62 = l_Lean_Syntax_node4(x_16, x_7, x_33, x_36, x_20, x_61);
x_63 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_63, 0, x_62);
lean_ctor_set(x_63, 1, x_13);
return x_63;
}
else
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; 
x_64 = lean_ctor_get(x_11, 0);
lean_inc(x_64);
lean_dec(x_11);
x_65 = l_Array_mkArray1___rarg(x_64);
x_66 = l_Array_append___rarg(x_27, x_65);
lean_dec(x_65);
lean_inc(x_16);
x_67 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_67, 0, x_16);
lean_ctor_set(x_67, 1, x_26);
lean_ctor_set(x_67, 2, x_66);
x_68 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__2;
lean_inc(x_16);
x_69 = l_Lean_Syntax_node4(x_16, x_68, x_22, x_25, x_30, x_67);
lean_inc(x_16);
x_70 = l_Lean_Syntax_node3(x_16, x_5, x_6, x_56, x_69);
x_71 = l_Lean_Syntax_node4(x_16, x_7, x_33, x_36, x_20, x_70);
x_72 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_72, 0, x_71);
lean_ctor_set(x_72, 1, x_13);
return x_72;
}
}
}
}
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("DSL", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declValDo", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__44;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__1;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__2;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ill-formed script declaration", 29, 29);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("whereDecls", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__3;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__5;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__3;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_13 = lean_unsigned_to_nat(2u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
lean_inc(x_14);
x_16 = l_Lean_Syntax_isOfKind(x_14, x_15);
if (x_16 == 0)
{
lean_object* x_17; uint8_t x_18; 
lean_dec(x_8);
lean_dec(x_7);
x_17 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__2;
lean_inc(x_14);
x_18 = l_Lean_Syntax_isOfKind(x_14, x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; 
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_19 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
x_20 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_19, x_11, x_12);
return x_20;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; 
x_21 = lean_unsigned_to_nat(1u);
x_22 = l_Lean_Syntax_getArg(x_14, x_21);
x_23 = l_Lean_Syntax_getArg(x_14, x_13);
x_24 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__6;
lean_inc(x_23);
x_25 = l_Lean_Syntax_isOfKind(x_23, x_24);
if (x_25 == 0)
{
lean_object* x_26; lean_object* x_27; 
lean_dec(x_23);
lean_dec(x_22);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_26 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
x_27 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_26, x_11, x_12);
return x_27;
}
else
{
lean_object* x_28; lean_object* x_29; uint8_t x_30; 
x_28 = lean_unsigned_to_nat(0u);
x_29 = l_Lean_Syntax_getArg(x_23, x_28);
x_30 = l_Lean_Syntax_matchesNull(x_29, x_28);
if (x_30 == 0)
{
lean_object* x_31; lean_object* x_32; 
lean_dec(x_23);
lean_dec(x_22);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_31 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
x_32 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_31, x_11, x_12);
return x_32;
}
else
{
lean_object* x_33; uint8_t x_34; 
x_33 = l_Lean_Syntax_getArg(x_23, x_21);
lean_dec(x_23);
x_34 = l_Lean_Syntax_matchesNull(x_33, x_28);
if (x_34 == 0)
{
lean_object* x_35; lean_object* x_36; 
lean_dec(x_22);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_35 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
x_36 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_35, x_11, x_12);
return x_36;
}
else
{
lean_object* x_37; lean_object* x_38; uint8_t x_39; 
x_37 = lean_unsigned_to_nat(3u);
x_38 = l_Lean_Syntax_getArg(x_14, x_37);
lean_dec(x_14);
x_39 = l_Lean_Syntax_isNone(x_38);
if (x_39 == 0)
{
uint8_t x_40; 
lean_inc(x_38);
x_40 = l_Lean_Syntax_matchesNull(x_38, x_21);
if (x_40 == 0)
{
lean_object* x_41; lean_object* x_42; 
lean_dec(x_38);
lean_dec(x_22);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_41 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
x_42 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_41, x_11, x_12);
return x_42;
}
else
{
lean_object* x_43; lean_object* x_44; uint8_t x_45; 
x_43 = l_Lean_Syntax_getArg(x_38, x_28);
lean_dec(x_38);
x_44 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__6;
lean_inc(x_43);
x_45 = l_Lean_Syntax_isOfKind(x_43, x_44);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; 
lean_dec(x_43);
lean_dec(x_22);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_46 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
x_47 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_46, x_11, x_12);
return x_47;
}
else
{
lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_48 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_48, 0, x_43);
x_49 = lean_box(0);
x_50 = l_Lake_DSL_expandScriptDecl___lambda__1(x_3, x_4, x_10, x_5, x_22, x_24, x_6, x_17, x_49, x_48, x_11, x_12);
return x_50;
}
}
}
else
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; 
lean_dec(x_38);
x_51 = lean_box(0);
x_52 = lean_box(0);
x_53 = l_Lake_DSL_expandScriptDecl___lambda__1(x_3, x_4, x_10, x_5, x_22, x_24, x_6, x_17, x_52, x_51, x_11, x_12);
return x_53;
}
}
}
}
}
}
else
{
lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; 
x_54 = lean_unsigned_to_nat(0u);
x_55 = l_Lean_Syntax_getArg(x_14, x_54);
x_56 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__7;
lean_inc(x_55);
x_57 = l_Lean_Syntax_isOfKind(x_55, x_56);
if (x_57 == 0)
{
lean_object* x_58; lean_object* x_59; 
lean_dec(x_55);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_58 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
x_59 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_58, x_11, x_12);
return x_59;
}
else
{
lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; 
x_60 = lean_unsigned_to_nat(1u);
x_61 = l_Lean_Syntax_getArg(x_55, x_60);
lean_dec(x_55);
x_62 = l_Lean_Syntax_getArg(x_14, x_60);
lean_dec(x_14);
x_63 = l_Lean_Syntax_isNone(x_62);
if (x_63 == 0)
{
uint8_t x_64; 
lean_inc(x_62);
x_64 = l_Lean_Syntax_matchesNull(x_62, x_60);
if (x_64 == 0)
{
lean_object* x_65; lean_object* x_66; 
lean_dec(x_62);
lean_dec(x_61);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_65 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
x_66 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_65, x_11, x_12);
return x_66;
}
else
{
lean_object* x_67; lean_object* x_68; uint8_t x_69; 
x_67 = l_Lean_Syntax_getArg(x_62, x_54);
lean_dec(x_62);
x_68 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__6;
lean_inc(x_67);
x_69 = l_Lean_Syntax_isOfKind(x_67, x_68);
if (x_69 == 0)
{
lean_object* x_70; lean_object* x_71; 
lean_dec(x_67);
lean_dec(x_61);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_70 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
x_71 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_70, x_11, x_12);
return x_71;
}
else
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_72 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_72, 0, x_67);
x_73 = lean_box(0);
x_74 = l_Lake_DSL_expandScriptDecl___lambda__2(x_4, x_56, x_61, x_10, x_7, x_3, x_8, x_5, x_6, x_73, x_72, x_11, x_12);
lean_dec(x_11);
return x_74;
}
}
}
else
{
lean_object* x_75; lean_object* x_76; lean_object* x_77; 
lean_dec(x_62);
x_75 = lean_box(0);
x_76 = lean_box(0);
x_77 = l_Lake_DSL_expandScriptDecl___lambda__2(x_4, x_56, x_61, x_10, x_7, x_3, x_8, x_5, x_6, x_76, x_75, x_11, x_12);
lean_dec(x_11);
return x_77;
}
}
}
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__4___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("scriptDeclSpec", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__4___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__44;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__1;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__4___closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_8 = lean_unsigned_to_nat(2u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = lean_unsigned_to_nat(3u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
x_12 = l_Lake_DSL_expandScriptDecl___lambda__4___closed__2;
lean_inc(x_11);
x_13 = l_Lean_Syntax_isOfKind(x_11, x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
x_14 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
x_15 = l_Lean_Macro_throwErrorAt___rarg(x_1, x_14, x_6, x_7);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_16 = lean_unsigned_to_nat(0u);
x_17 = l_Lean_Syntax_getArg(x_11, x_16);
x_18 = lean_unsigned_to_nat(1u);
x_19 = l_Lean_Syntax_getArg(x_11, x_18);
x_20 = l_Lean_Syntax_isNone(x_19);
if (x_20 == 0)
{
uint8_t x_21; 
lean_inc(x_19);
x_21 = l_Lean_Syntax_matchesNull(x_19, x_18);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; 
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
x_22 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
x_23 = l_Lean_Macro_throwErrorAt___rarg(x_1, x_22, x_6, x_7);
return x_23;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_24 = l_Lean_Syntax_getArg(x_19, x_16);
lean_dec(x_19);
x_25 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_25, 0, x_24);
x_26 = lean_box(0);
x_27 = l_Lake_DSL_expandScriptDecl___lambda__3(x_11, x_1, x_17, x_9, x_5, x_2, x_12, x_3, x_26, x_25, x_6, x_7);
lean_dec(x_9);
lean_dec(x_11);
return x_27;
}
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; 
lean_dec(x_19);
x_28 = lean_box(0);
x_29 = lean_box(0);
x_30 = l_Lake_DSL_expandScriptDecl___lambda__3(x_11, x_1, x_17, x_9, x_5, x_2, x_12, x_3, x_29, x_28, x_6, x_7);
lean_dec(x_9);
lean_dec(x_11);
return x_30;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_7 = lean_unsigned_to_nat(1u);
x_8 = l_Lean_Syntax_getArg(x_1, x_7);
x_9 = l_Lean_Syntax_isNone(x_8);
if (x_9 == 0)
{
uint8_t x_10; 
lean_inc(x_8);
x_10 = l_Lean_Syntax_matchesNull(x_8, x_7);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_2);
x_11 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
x_12 = l_Lean_Macro_throwErrorAt___rarg(x_1, x_11, x_5, x_6);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_13 = lean_unsigned_to_nat(0u);
x_14 = l_Lean_Syntax_getArg(x_8, x_13);
lean_dec(x_8);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
x_16 = lean_box(0);
x_17 = l_Lake_DSL_expandScriptDecl___lambda__4(x_1, x_4, x_2, x_16, x_15, x_5, x_6);
return x_17;
}
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; 
lean_dec(x_8);
x_18 = lean_box(0);
x_19 = lean_box(0);
x_20 = l_Lake_DSL_expandScriptDecl___lambda__4(x_1, x_4, x_2, x_19, x_18, x_5, x_6);
return x_20;
}
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("scriptDecl", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__44;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__1;
x_3 = l_Lake_DSL_expandScriptDecl___closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Lake_DSL_expandScriptDecl___closed__2;
lean_inc(x_1);
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
x_6 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
x_7 = l_Lean_Macro_throwErrorAt___rarg(x_1, x_6, x_2, x_3);
lean_dec(x_1);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = l_Lean_Syntax_isNone(x_9);
if (x_10 == 0)
{
lean_object* x_11; uint8_t x_12; 
x_11 = lean_unsigned_to_nat(1u);
lean_inc(x_9);
x_12 = l_Lean_Syntax_matchesNull(x_9, x_11);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; 
lean_dec(x_9);
x_13 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
x_14 = l_Lean_Macro_throwErrorAt___rarg(x_1, x_13, x_2, x_3);
lean_dec(x_1);
return x_14;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_15 = l_Lean_Syntax_getArg(x_9, x_8);
lean_dec(x_9);
x_16 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_16, 0, x_15);
x_17 = lean_box(0);
x_18 = l_Lake_DSL_expandScriptDecl___lambda__5(x_1, x_4, x_17, x_16, x_2, x_3);
lean_dec(x_1);
return x_18;
}
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
lean_dec(x_9);
x_19 = lean_box(0);
x_20 = lean_box(0);
x_21 = l_Lake_DSL_expandScriptDecl___lambda__5(x_1, x_4, x_20, x_19, x_2, x_3);
lean_dec(x_1);
return x_21;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; 
x_13 = l_Lake_DSL_expandScriptDecl___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
lean_dec(x_9);
lean_dec(x_2);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; 
x_14 = l_Lake_DSL_expandScriptDecl___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_1);
return x_14;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; 
x_13 = l_Lake_DSL_expandScriptDecl___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
lean_dec(x_9);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lake_DSL_expandScriptDecl___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_4);
lean_dec(x_1);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lake_DSL_expandScriptDecl___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_3);
lean_dec(x_1);
return x_7;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expandScriptDecl", 16, 16);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__44;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__1;
x_3 = l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_macroAttribute;
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_DSL_expandScriptDecl), 3, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__3;
x_3 = l_Lake_DSL_expandScriptDecl___closed__2;
x_4 = l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__2;
x_5 = l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__4;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
lean_object* initialize_Lake_Config_Package(uint8_t builtin, lean_object*);
lean_object* initialize_Lake_DSL_Attributes(uint8_t builtin, lean_object*);
lean_object* initialize_Lake_DSL_Syntax(uint8_t builtin, lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lake_DSL_Script(uint8_t builtin, lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lake_Config_Package(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_DSL_Attributes(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_DSL_Syntax(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__1 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__1();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__1);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__2 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__2();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__2);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__3 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__3();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__3);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__4 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__4();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__4);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__5 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__5();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__5);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__6 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__6();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__6);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__7 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__7();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__7);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__8 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__8();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__8);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__9 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__9();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__9);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__10 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__10();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__10);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__11 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__11();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__11);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__12 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__12();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__12);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__13 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__13();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__13);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__14 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__14();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__14);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__15 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__15();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__15);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__16 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__16();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__16);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__17 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__17();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__17);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__18 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__18();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__18);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__19 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__19();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__19);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__20 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__20();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__20);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__21 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__21();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__21);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__22 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__22();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__22);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__23 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__23();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__23);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__24 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__24();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__24);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__25 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__25();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__25);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__26 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__26();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__26);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__27 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__27();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__27);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__28 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__28();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__28);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__29 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__29();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__29);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__30 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__30();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__30);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__31 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__31();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__31);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__32 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__32();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__32);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__33 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__33();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__33);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__34 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__34();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__34);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__35 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__35();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__35);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__36 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__36();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__36);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__37 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__37();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__37);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__38 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__38();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__38);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__39 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__39();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__39);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__40 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__40();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__40);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__41 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__41();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__41);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__42 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__42();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__42);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__43 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__43();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__43);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__44 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__44();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__44);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__45 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__45();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__45);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__46 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__46();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__46);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__47 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__47();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__47);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__48 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__48();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__48);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__49 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__49();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__49);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__50 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__50();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__50);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__51 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__51();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__51);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__52 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__52();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__52);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__53 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__53();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__53);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__54 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__54();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__54);
l_Lake_DSL_expandScriptDecl___lambda__2___closed__1 = _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__1();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__2___closed__1);
l_Lake_DSL_expandScriptDecl___lambda__2___closed__2 = _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__2();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__2___closed__2);
l_Lake_DSL_expandScriptDecl___lambda__2___closed__3 = _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__3();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__2___closed__3);
l_Lake_DSL_expandScriptDecl___lambda__2___closed__4 = _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__4();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__2___closed__4);
l_Lake_DSL_expandScriptDecl___lambda__2___closed__5 = _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__5();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__2___closed__5);
l_Lake_DSL_expandScriptDecl___lambda__2___closed__6 = _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__6();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__2___closed__6);
l_Lake_DSL_expandScriptDecl___lambda__3___closed__1 = _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__1();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__3___closed__1);
l_Lake_DSL_expandScriptDecl___lambda__3___closed__2 = _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__2();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__3___closed__2);
l_Lake_DSL_expandScriptDecl___lambda__3___closed__3 = _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__3();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__3___closed__3);
l_Lake_DSL_expandScriptDecl___lambda__3___closed__4 = _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__4();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__3___closed__4);
l_Lake_DSL_expandScriptDecl___lambda__3___closed__5 = _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__5();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__3___closed__5);
l_Lake_DSL_expandScriptDecl___lambda__3___closed__6 = _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__6();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__3___closed__6);
l_Lake_DSL_expandScriptDecl___lambda__3___closed__7 = _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__7();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__3___closed__7);
l_Lake_DSL_expandScriptDecl___lambda__4___closed__1 = _init_l_Lake_DSL_expandScriptDecl___lambda__4___closed__1();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__4___closed__1);
l_Lake_DSL_expandScriptDecl___lambda__4___closed__2 = _init_l_Lake_DSL_expandScriptDecl___lambda__4___closed__2();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__4___closed__2);
l_Lake_DSL_expandScriptDecl___closed__1 = _init_l_Lake_DSL_expandScriptDecl___closed__1();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___closed__1);
l_Lake_DSL_expandScriptDecl___closed__2 = _init_l_Lake_DSL_expandScriptDecl___closed__2();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___closed__2);
l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__1 = _init_l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__1();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__1);
l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__2 = _init_l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__2();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__2);
l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__3 = _init_l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__3();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__3);
l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__4 = _init_l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__4();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1___closed__4);
if (builtin) {res = l_Lake_DSL_expandScriptDecl___regBuiltin_Lake_DSL_expandScriptDecl__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
