diff --git a/stage0/stdlib/Lean/Compiler/ImplementedByAttr.c b/stage0/stdlib/Lean/Compiler/ImplementedByAttr.c index 7f9d5eda63..bc9ebb7a83 100644 --- a/stage0/stdlib/Lean/Compiler/ImplementedByAttr.c +++ b/stage0/stdlib/Lean/Compiler/ImplementedByAttr.c @@ -80,7 +80,7 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_implementedByAttr___regBuiltin_Lean_Com static lean_object* l_Lean_Compiler_implementedByAttr___regBuiltin_Lean_Compiler_implementedByAttr_declRange__3___closed__2; static lean_object* l_Lean_Compiler_initFn___closed__2____x40_Lean_Compiler_ImplementedByAttr___hyg_3_; lean_object* l_Lean_Name_mkStr1(lean_object*); -lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_implementedByAttr___regBuiltin_Lean_Compiler_implementedByAttr_declRange__3___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_implementedByAttr; lean_object* l_Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_filterFieldList___at___Lean_realizeGlobalConstCore_spec__0_spec__2_spec__2_spec__2_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -978,7 +978,7 @@ lean_inc_ref(x_3); x_9 = l_Lean_Attribute_Builtin_getIdent(x_2, x_3, x_4, x_8); if (lean_obj_tag(x_9) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); @@ -990,60 +990,61 @@ lean_closure_set(x_13, 0, x_10); lean_closure_set(x_13, 1, x_12); lean_closure_set(x_13, 2, x_7); lean_closure_set(x_13, 3, x_1); -x_14 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_13, x_3, x_4, x_11); -return x_14; +x_14 = 1; +x_15 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_13, x_14, x_3, x_4, x_11); +return x_15; } else { -uint8_t x_15; +uint8_t x_16; lean_dec(x_7); lean_dec(x_4); lean_dec_ref(x_3); lean_dec(x_1); -x_15 = !lean_is_exclusive(x_9); -if (x_15 == 0) +x_16 = !lean_is_exclusive(x_9); +if (x_16 == 0) { return x_9; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_9, 0); -x_17 = lean_ctor_get(x_9, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_9, 0); +x_18 = lean_ctor_get(x_9, 1); +lean_inc(x_18); lean_inc(x_17); -lean_inc(x_16); lean_dec(x_9); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -return x_18; +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; } } } else { -uint8_t x_19; +uint8_t x_20; lean_dec(x_4); lean_dec_ref(x_3); lean_dec(x_2); lean_dec(x_1); -x_19 = !lean_is_exclusive(x_6); -if (x_19 == 0) +x_20 = !lean_is_exclusive(x_6); +if (x_20 == 0) { return x_6; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_6, 0); -x_21 = lean_ctor_get(x_6, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_6, 0); +x_22 = lean_ctor_get(x_6, 1); +lean_inc(x_22); lean_inc(x_21); -lean_inc(x_20); lean_dec(x_6); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } } diff --git a/stage0/stdlib/Lean/CoreM.c b/stage0/stdlib/Lean/CoreM.c index f501010a5f..d527cbe4e8 100644 --- a/stage0/stdlib/Lean/CoreM.c +++ b/stage0/stdlib/Lean/CoreM.c @@ -535,7 +535,7 @@ lean_object* l_Lean_throwMaxRecDepthAt___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_addTraceAsMessages___at___Lean_Core_wrapAsyncAsSnapshot_spec__0_spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadEnvCoreM___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_setMessageLog___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_instMonadExceptOf___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_catchInternalId___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -608,6 +608,7 @@ LEAN_EXPORT lean_object* l_Lean_Core_checkMaxHeartbeatsCore___redArg(lean_object static lean_object* l_Lean_Core_initFn___closed__12____x40_Lean_CoreM___hyg_915_; static lean_object* l_Lean_Core_initFn___closed__8____x40_Lean_CoreM___hyg_915_; static lean_object* l___auto___closed__2____x40_Lean_CoreM___hyg_4837_; +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_hasMacroScopes(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); static lean_object* l___auto___closed__7____x40_Lean_CoreM___hyg_4837_; @@ -673,6 +674,7 @@ static lean_object* l_Lean_Core_initFn___closed__3____x40_Lean_CoreM___hyg_4799_ lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_153_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_CoreM_run___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentArray_toArray___redArg(lean_object*); LEAN_EXPORT lean_object* l_Lean_logMessageKind___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_catchInternalIds___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -806,7 +808,7 @@ static lean_object* l_Lean_addTraceAsMessages___at___Lean_Core_wrapAsyncAsSnapsh lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__9; -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_addTraceAsMessages___at___Lean_Core_wrapAsyncAsSnapshot_spec__0_spec__4_spec__4___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_wrapAsyncAsSnapshot___redArg___lam__3___closed__8; static double l_Lean_withTraceNode___at___Lean_Core_wrapAsyncAsSnapshot_spec__18___redArg___closed__5; @@ -23432,226 +23434,235 @@ return x_34; } } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_5 = lean_st_ref_get(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_6, 0); -lean_inc_ref(x_7); -lean_dec(x_6); -x_8 = lean_ctor_get(x_5, 1); +if (x_2 == 0) +{ +lean_object* x_6; +x_6 = lean_apply_3(x_1, x_3, x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_7 = lean_st_ref_get(x_4, x_5); +x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); -lean_dec_ref(x_5); -x_9 = lean_ctor_get_uint8(x_7, sizeof(void*)*8); +x_9 = lean_ctor_get(x_8, 0); +lean_inc_ref(x_9); +lean_dec(x_8); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); lean_dec_ref(x_7); -x_10 = lean_st_ref_take(x_3, x_8); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec_ref(x_10); -x_13 = !lean_is_exclusive(x_11); -if (x_13 == 0) +x_11 = lean_ctor_get_uint8(x_9, sizeof(void*)*8); +lean_dec_ref(x_9); +x_12 = lean_st_ref_take(x_4, x_10); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec_ref(x_12); +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) { -lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_14 = lean_ctor_get(x_11, 0); -x_15 = lean_ctor_get(x_11, 5); -lean_dec(x_15); -x_16 = 0; -x_17 = l_Lean_Environment_setExporting(x_14, x_16); -x_18 = l_Lean_Core_instInhabitedCache___closed__2; -lean_ctor_set(x_11, 5, x_18); -lean_ctor_set(x_11, 0, x_17); -x_19 = lean_st_ref_set(x_3, x_11, x_12); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec_ref(x_19); -lean_inc(x_3); -x_21 = lean_apply_3(x_1, x_2, x_3, x_20); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_22 = lean_ctor_get(x_21, 0); +lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_16 = lean_ctor_get(x_13, 0); +x_17 = lean_ctor_get(x_13, 5); +lean_dec(x_17); +x_18 = 0; +x_19 = l_Lean_Environment_setExporting(x_16, x_18); +x_20 = l_Lean_Core_instInhabitedCache___closed__2; +lean_ctor_set(x_13, 5, x_20); +lean_ctor_set(x_13, 0, x_19); +x_21 = lean_st_ref_set(x_4, x_13, x_14); +x_22 = lean_ctor_get(x_21, 1); lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); lean_dec_ref(x_21); -lean_inc(x_22); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_22); -x_25 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___lam__0(x_3, x_9, x_18, x_24, x_23); -lean_dec_ref(x_24); -lean_dec(x_3); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +lean_inc(x_4); +x_23 = lean_apply_3(x_1, x_3, x_4, x_22); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_27; -x_27 = lean_ctor_get(x_25, 0); -lean_dec(x_27); -lean_ctor_set(x_25, 0, x_22); -return x_25; +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec_ref(x_23); +lean_inc(x_24); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_24); +x_27 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___lam__0(x_4, x_11, x_20, x_26, x_25); +lean_dec_ref(x_26); +lean_dec(x_4); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_27, 0); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_24); +return x_27; } else { -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); -lean_dec(x_25); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_22); -lean_ctor_set(x_29, 1, x_28); -return x_29; -} -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_30 = lean_ctor_get(x_21, 0); +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_27, 1); lean_inc(x_30); -x_31 = lean_ctor_get(x_21, 1); -lean_inc(x_31); -lean_dec_ref(x_21); -x_32 = lean_box(0); -x_33 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___lam__0(x_3, x_9, x_18, x_32, x_31); -lean_dec(x_3); -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) +lean_dec(x_27); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_24); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +else { -lean_object* x_35; -x_35 = lean_ctor_get(x_33, 0); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_32 = lean_ctor_get(x_23, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_23, 1); +lean_inc(x_33); +lean_dec_ref(x_23); +x_34 = lean_box(0); +x_35 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___lam__0(x_4, x_11, x_20, x_34, x_33); +lean_dec(x_4); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; +x_37 = lean_ctor_get(x_35, 0); +lean_dec(x_37); +lean_ctor_set_tag(x_35, 1); +lean_ctor_set(x_35, 0, x_32); +return x_35; +} +else +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); lean_dec(x_35); -lean_ctor_set_tag(x_33, 1); -lean_ctor_set(x_33, 0, x_30); -return x_33; -} -else -{ -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_33, 1); -lean_inc(x_36); -lean_dec(x_33); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_30); -lean_ctor_set(x_37, 1, x_36); -return x_37; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_32); +lean_ctor_set(x_39, 1, x_38); +return x_39; } } } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_38 = lean_ctor_get(x_11, 0); -x_39 = lean_ctor_get(x_11, 1); -x_40 = lean_ctor_get(x_11, 2); -x_41 = lean_ctor_get(x_11, 3); -x_42 = lean_ctor_get(x_11, 4); -x_43 = lean_ctor_get(x_11, 6); -x_44 = lean_ctor_get(x_11, 7); -x_45 = lean_ctor_get(x_11, 8); +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; uint8_t 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; +x_40 = lean_ctor_get(x_13, 0); +x_41 = lean_ctor_get(x_13, 1); +x_42 = lean_ctor_get(x_13, 2); +x_43 = lean_ctor_get(x_13, 3); +x_44 = lean_ctor_get(x_13, 4); +x_45 = lean_ctor_get(x_13, 6); +x_46 = lean_ctor_get(x_13, 7); +x_47 = lean_ctor_get(x_13, 8); +lean_inc(x_47); +lean_inc(x_46); lean_inc(x_45); lean_inc(x_44); lean_inc(x_43); lean_inc(x_42); lean_inc(x_41); lean_inc(x_40); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_11); -x_46 = 0; -x_47 = l_Lean_Environment_setExporting(x_38, x_46); -x_48 = l_Lean_Core_instInhabitedCache___closed__2; -x_49 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_39); -lean_ctor_set(x_49, 2, x_40); -lean_ctor_set(x_49, 3, x_41); -lean_ctor_set(x_49, 4, x_42); -lean_ctor_set(x_49, 5, x_48); -lean_ctor_set(x_49, 6, x_43); -lean_ctor_set(x_49, 7, x_44); -lean_ctor_set(x_49, 8, x_45); -x_50 = lean_st_ref_set(x_3, x_49, x_12); -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -lean_dec_ref(x_50); -lean_inc(x_3); -x_52 = lean_apply_3(x_1, x_2, x_3, x_51); -if (lean_obj_tag(x_52) == 0) -{ -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; -x_53 = lean_ctor_get(x_52, 0); +lean_dec(x_13); +x_48 = 0; +x_49 = l_Lean_Environment_setExporting(x_40, x_48); +x_50 = l_Lean_Core_instInhabitedCache___closed__2; +x_51 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_41); +lean_ctor_set(x_51, 2, x_42); +lean_ctor_set(x_51, 3, x_43); +lean_ctor_set(x_51, 4, x_44); +lean_ctor_set(x_51, 5, x_50); +lean_ctor_set(x_51, 6, x_45); +lean_ctor_set(x_51, 7, x_46); +lean_ctor_set(x_51, 8, x_47); +x_52 = lean_st_ref_set(x_4, x_51, x_14); +x_53 = lean_ctor_get(x_52, 1); lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); lean_dec_ref(x_52); -lean_inc(x_53); -x_55 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_55, 0, x_53); -x_56 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___lam__0(x_3, x_9, x_48, x_55, x_54); -lean_dec_ref(x_55); -lean_dec(x_3); -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_58 = x_56; +lean_inc(x_4); +x_54 = lean_apply_3(x_1, x_3, x_4, x_53); +if (lean_obj_tag(x_54) == 0) +{ +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; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec_ref(x_54); +lean_inc(x_55); +x_57 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_57, 0, x_55); +x_58 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___lam__0(x_4, x_11, x_50, x_57, x_56); +lean_dec_ref(x_57); +lean_dec(x_4); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_60 = x_58; } else { - lean_dec_ref(x_56); - x_58 = lean_box(0); + lean_dec_ref(x_58); + x_60 = lean_box(0); } -if (lean_is_scalar(x_58)) { - x_59 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_60)) { + x_61 = lean_alloc_ctor(0, 2, 0); } else { - x_59 = x_58; + x_61 = x_60; } -lean_ctor_set(x_59, 0, x_53); -lean_ctor_set(x_59, 1, x_57); -return x_59; +lean_ctor_set(x_61, 0, x_55); +lean_ctor_set(x_61, 1, x_59); +return x_61; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_60 = lean_ctor_get(x_52, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_52, 1); -lean_inc(x_61); -lean_dec_ref(x_52); -x_62 = lean_box(0); -x_63 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___lam__0(x_3, x_9, x_48, x_62, x_61); -lean_dec(x_3); -x_64 = lean_ctor_get(x_63, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_63)) { - lean_ctor_release(x_63, 0); - lean_ctor_release(x_63, 1); - x_65 = x_63; +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; +x_62 = lean_ctor_get(x_54, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_54, 1); +lean_inc(x_63); +lean_dec_ref(x_54); +x_64 = lean_box(0); +x_65 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___lam__0(x_4, x_11, x_50, x_64, x_63); +lean_dec(x_4); +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_67 = x_65; } else { - lean_dec_ref(x_63); - x_65 = lean_box(0); + lean_dec_ref(x_65); + x_67 = lean_box(0); } -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(1, 2, 0); } else { - x_66 = x_65; - lean_ctor_set_tag(x_66, 1); + x_68 = x_67; + lean_ctor_set_tag(x_68, 1); } -lean_ctor_set(x_66, 0, x_60); -lean_ctor_set(x_66, 1, x_64); -return x_66; +lean_ctor_set(x_68, 0, x_62); +lean_ctor_set(x_68, 1, x_66); +return x_68; } } } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; -x_6 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_2, x_3, x_4, x_5); -return x_6; +lean_object* x_7; +x_7 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_2, x_3, x_4, x_5, x_6); +return x_7; } } LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_compileDecls_doCompile_spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { @@ -23803,53 +23814,54 @@ x_13 = lean_array_get_size(x_1); x_14 = lean_nat_dec_lt(x_12, x_13); if (x_14 == 0) { -lean_object* x_15; +uint8_t x_15; lean_object* x_16; lean_dec(x_13); lean_free_object(x_6); lean_dec(x_8); lean_dec_ref(x_1); -x_15 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_11, x_3, x_4, x_9); -return x_15; +x_15 = 1; +x_16 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_11, x_15, x_3, x_4, x_9); +return x_16; } else { if (x_14 == 0) { -lean_object* x_16; +lean_object* x_17; lean_dec(x_13); lean_free_object(x_6); lean_dec(x_8); lean_dec_ref(x_1); -x_16 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_11, x_3, x_4, x_9); -return x_16; +x_17 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_11, x_14, x_3, x_4, x_9); +return x_17; } else { -lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; uint8_t x_21; -x_17 = lean_ctor_get(x_8, 0); -lean_inc_ref(x_17); +lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; uint8_t x_22; +x_18 = lean_ctor_get(x_8, 0); +lean_inc_ref(x_18); lean_dec(x_8); -x_18 = l_Lean_Environment_constants(x_17); -x_19 = 0; -x_20 = lean_usize_of_nat(x_13); +x_19 = l_Lean_Environment_constants(x_18); +x_20 = 0; +x_21 = lean_usize_of_nat(x_13); lean_dec(x_13); -x_21 = l_Array_anyMUnsafe_any___at___Lean_compileDecls_doCompile_spec__1(x_18, x_1, x_19, x_20); +x_22 = l_Array_anyMUnsafe_any___at___Lean_compileDecls_doCompile_spec__1(x_19, x_1, x_20, x_21); lean_dec_ref(x_1); -if (x_21 == 0) -{ -lean_object* x_22; -lean_free_object(x_6); -x_22 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_11, x_3, x_4, x_9); -return x_22; -} -else +if (x_22 == 0) { lean_object* x_23; +lean_free_object(x_6); +x_23 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_11, x_14, x_3, x_4, x_9); +return x_23; +} +else +{ +lean_object* x_24; lean_dec_ref(x_11); lean_dec(x_4); lean_dec_ref(x_3); -x_23 = lean_box(0); -lean_ctor_set(x_6, 0, x_23); +x_24 = lean_box(0); +lean_ctor_set(x_6, 0, x_24); return x_6; } } @@ -23857,69 +23869,70 @@ return x_6; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_24 = lean_ctor_get(x_6, 0); -x_25 = lean_ctor_get(x_6, 1); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_25 = lean_ctor_get(x_6, 0); +x_26 = lean_ctor_get(x_6, 1); +lean_inc(x_26); lean_inc(x_25); -lean_inc(x_24); lean_dec(x_6); -x_26 = lean_box(x_2); +x_27 = lean_box(x_2); lean_inc_ref(x_1); -x_27 = lean_alloc_closure((void*)(l_Lean_compileDecls_doCompile___lam__0___boxed), 5, 2); -lean_closure_set(x_27, 0, x_1); -lean_closure_set(x_27, 1, x_26); -x_28 = lean_unsigned_to_nat(0u); -x_29 = lean_array_get_size(x_1); -x_30 = lean_nat_dec_lt(x_28, x_29); -if (x_30 == 0) +x_28 = lean_alloc_closure((void*)(l_Lean_compileDecls_doCompile___lam__0___boxed), 5, 2); +lean_closure_set(x_28, 0, x_1); +lean_closure_set(x_28, 1, x_27); +x_29 = lean_unsigned_to_nat(0u); +x_30 = lean_array_get_size(x_1); +x_31 = lean_nat_dec_lt(x_29, x_30); +if (x_31 == 0) { -lean_object* x_31; -lean_dec(x_29); -lean_dec(x_24); +uint8_t x_32; lean_object* x_33; +lean_dec(x_30); +lean_dec(x_25); lean_dec_ref(x_1); -x_31 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_27, x_3, x_4, x_25); -return x_31; +x_32 = 1; +x_33 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_28, x_32, x_3, x_4, x_26); +return x_33; } else { -if (x_30 == 0) +if (x_31 == 0) { -lean_object* x_32; -lean_dec(x_29); -lean_dec(x_24); +lean_object* x_34; +lean_dec(x_30); +lean_dec(x_25); lean_dec_ref(x_1); -x_32 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_27, x_3, x_4, x_25); -return x_32; +x_34 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_28, x_31, x_3, x_4, x_26); +return x_34; } else { -lean_object* x_33; lean_object* x_34; size_t x_35; size_t x_36; uint8_t x_37; -x_33 = lean_ctor_get(x_24, 0); -lean_inc_ref(x_33); -lean_dec(x_24); -x_34 = l_Lean_Environment_constants(x_33); -x_35 = 0; -x_36 = lean_usize_of_nat(x_29); -lean_dec(x_29); -x_37 = l_Array_anyMUnsafe_any___at___Lean_compileDecls_doCompile_spec__1(x_34, x_1, x_35, x_36); +lean_object* x_35; lean_object* x_36; size_t x_37; size_t x_38; uint8_t x_39; +x_35 = lean_ctor_get(x_25, 0); +lean_inc_ref(x_35); +lean_dec(x_25); +x_36 = l_Lean_Environment_constants(x_35); +x_37 = 0; +x_38 = lean_usize_of_nat(x_30); +lean_dec(x_30); +x_39 = l_Array_anyMUnsafe_any___at___Lean_compileDecls_doCompile_spec__1(x_36, x_1, x_37, x_38); lean_dec_ref(x_1); -if (x_37 == 0) +if (x_39 == 0) { -lean_object* x_38; -x_38 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_27, x_3, x_4, x_25); -return x_38; +lean_object* x_40; +x_40 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_28, x_31, x_3, x_4, x_26); +return x_40; } else { -lean_object* x_39; lean_object* x_40; -lean_dec_ref(x_27); +lean_object* x_41; lean_object* x_42; +lean_dec_ref(x_28); lean_dec(x_4); lean_dec_ref(x_3); -x_39 = lean_box(0); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_25); -return x_40; +x_41 = lean_box(0); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_26); +return x_42; } } } @@ -23937,6 +23950,24 @@ lean_dec(x_1); return x_7; } } +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_2); +x_7 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_1, x_6, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___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: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_3); +x_8 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0(x_1, x_2, x_7, x_4, x_5, x_6); +return x_8; +} +} LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_compileDecls_doCompile_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { diff --git a/stage0/stdlib/Lean/DefEqAttrib.c b/stage0/stdlib/Lean/DefEqAttrib.c index ea355c47d2..092190df78 100644 --- a/stage0/stdlib/Lean/DefEqAttrib.c +++ b/stage0/stdlib/Lean/DefEqAttrib.c @@ -60,7 +60,7 @@ uint8_t l_Lean_MessageData_hasSyntheticSorry(lean_object*); static lean_object* l_Lean_initFn___closed__2____x40_Lean_DefEqAttrib___hyg_456_; LEAN_EXPORT lean_object* l_Lean_validateDefEqAttr___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_validateDefEqAttr___lam__0___closed__3; -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_inferDefEqAttr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___closed__3; static lean_object* l_Lean_inferDefEqAttr___lam__1___closed__3; @@ -106,6 +106,7 @@ static lean_object* l_Lean_defeqAttr___regBuiltin_Lean_defeqAttr_declRange__3___ static lean_object* l_Lean_logAt___at___Lean_log___at___Lean_logError___at___Lean_inferDefEqAttr_spec__1_spec__1_spec__1___lam__0___closed__2; static lean_object* l_Lean_TagAttribute_setTag___at___Lean_inferDefEqAttr_spec__0___lam__1___closed__10; lean_object* l_Lean_MessageData_ofFormat(lean_object*); +LEAN_EXPORT lean_object* l_Lean_validateDefEqAttr___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_logAt___at___Lean_log___at___Lean_logError___at___Lean_inferDefEqAttr_spec__1_spec__1_spec__1___lam__0___closed__1; LEAN_EXPORT lean_object* l___private_Lean_DefEqAttrib_0__Lean_isRflProofCore___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_defeqAttr___regBuiltin_Lean_defeqAttr_docString__1___closed__0; @@ -116,6 +117,7 @@ static lean_object* l_Lean_TagAttribute_setTag___at___Lean_inferDefEqAttr_spec__ static lean_object* l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___closed__2; uint8_t l_Lean_Environment_asyncMayContain(lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_initFn___closed__3____x40_Lean_DefEqAttrib___hyg_456_; uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -156,7 +158,7 @@ static lean_object* l_Lean_validateDefEqAttr___closed__8; LEAN_EXPORT lean_object* l_Lean_defeqAttr___regBuiltin_Lean_defeqAttr_docString__1(lean_object*); static lean_object* l_Lean_validateDefEqAttr___lam__0___closed__8; static lean_object* l_Lean_logAt___at___Lean_log___at___Lean_logError___at___Lean_inferDefEqAttr_spec__1_spec__1_spec__1___lam__0___closed__3; -LEAN_EXPORT lean_object* l_Lean_validateDefEqAttr___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_validateDefEqAttr___lam__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_defeqAttr___regBuiltin_Lean_defeqAttr_declRange__3___closed__1; static lean_object* l_Lean_TagAttribute_setTag___at___Lean_inferDefEqAttr_spec__0___closed__0; uint8_t l_Lean_Option_get___at_____private_Lean_Util_Profile_0__Lean_get__profiler_spec__0(lean_object*, lean_object*); @@ -196,6 +198,7 @@ static lean_object* l_Lean_validateDefEqAttr___lam__0___closed__0; static lean_object* l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___closed__4; static lean_object* l___private_Lean_DefEqAttrib_0__Lean_isRflProofCore___redArg___closed__0; static lean_object* l_Lean_validateDefEqAttr___lam__0___closed__2; +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_validateDefEqAttr___closed__5; static lean_object* l_Lean_validateDefEqAttr___closed__3; LEAN_EXPORT lean_object* l_Lean_TagAttribute_setTag___at___Lean_inferDefEqAttr_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -208,7 +211,7 @@ lean_object* l_Lean_MessageData_ofLazyM(lean_object*, lean_object*); static lean_object* l___private_Lean_DefEqAttrib_0__Lean_isRflProofCore___redArg___closed__5; static lean_object* l_Lean_validateDefEqAttr___closed__6; static lean_object* l_Lean_validateDefEqAttr___closed__17; -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_DefEqAttrib_0__Lean_isRflProofCore___redArg___closed__3; static lean_object* l_Lean_validateDefEqAttr___closed__7; uint64_t l_Lean_Meta_TransparencyMode_toUInt64(uint8_t); @@ -1306,384 +1309,393 @@ lean_ctor_set(x_5, 5, x_1); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(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_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_7 = lean_st_ref_get(x_5, x_6); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_8, 0); -lean_inc_ref(x_9); -lean_dec(x_8); -x_10 = lean_ctor_get(x_7, 1); +if (x_2 == 0) +{ +lean_object* x_8; +x_8 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_9 = lean_st_ref_get(x_6, x_7); +x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -lean_dec_ref(x_7); -x_11 = lean_ctor_get_uint8(x_9, sizeof(void*)*8); +x_11 = lean_ctor_get(x_10, 0); +lean_inc_ref(x_11); +lean_dec(x_10); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); lean_dec_ref(x_9); -x_12 = lean_st_ref_take(x_5, x_10); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec_ref(x_12); -x_15 = !lean_is_exclusive(x_13); -if (x_15 == 0) +x_13 = lean_ctor_get_uint8(x_11, sizeof(void*)*8); +lean_dec_ref(x_11); +x_14 = lean_st_ref_take(x_6, x_12); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec_ref(x_14); +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) { -lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_16 = lean_ctor_get(x_13, 0); -x_17 = lean_ctor_get(x_13, 5); -lean_dec(x_17); -x_18 = 0; -x_19 = l_Lean_Environment_setExporting(x_16, x_18); -x_20 = l___private_Lean_DefEqAttrib_0__Lean_isDefEqCareful___closed__7; -lean_ctor_set(x_13, 5, x_20); -lean_ctor_set(x_13, 0, x_19); -x_21 = lean_st_ref_set(x_5, x_13, x_14); -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec_ref(x_21); -x_23 = lean_st_ref_take(x_3, x_22); -x_24 = lean_ctor_get(x_23, 0); +lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_18 = lean_ctor_get(x_15, 0); +x_19 = lean_ctor_get(x_15, 5); +lean_dec(x_19); +x_20 = 0; +x_21 = l_Lean_Environment_setExporting(x_18, x_20); +x_22 = l___private_Lean_DefEqAttrib_0__Lean_isDefEqCareful___closed__7; +lean_ctor_set(x_15, 5, x_22); +lean_ctor_set(x_15, 0, x_21); +x_23 = lean_st_ref_set(x_6, x_15, x_16); +x_24 = lean_ctor_get(x_23, 1); lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); lean_dec_ref(x_23); -x_26 = !lean_is_exclusive(x_24); -if (x_26 == 0) +x_25 = lean_st_ref_take(x_4, x_24); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec_ref(x_25); +x_28 = !lean_is_exclusive(x_26); +if (x_28 == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_27 = lean_ctor_get(x_24, 1); -lean_dec(x_27); -x_28 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___closed__4; -lean_ctor_set(x_24, 1, x_28); -x_29 = lean_st_ref_set(x_3, x_24, x_25); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec_ref(x_29); -lean_inc(x_5); -lean_inc(x_3); -x_31 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_30); -if (lean_obj_tag(x_31) == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_32 = lean_ctor_get(x_31, 0); +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_29 = lean_ctor_get(x_26, 1); +lean_dec(x_29); +x_30 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___closed__4; +lean_ctor_set(x_26, 1, x_30); +x_31 = lean_st_ref_set(x_4, x_26, x_27); +x_32 = lean_ctor_get(x_31, 1); lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); lean_dec_ref(x_31); -lean_inc(x_32); -x_34 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_34, 0, x_32); -x_35 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___lam__0(x_5, x_11, x_20, x_3, x_28, x_34, x_33); -lean_dec_ref(x_34); -lean_dec(x_3); -lean_dec(x_5); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) +lean_inc(x_6); +lean_inc(x_4); +x_33 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_32); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_37; -x_37 = lean_ctor_get(x_35, 0); -lean_dec(x_37); -lean_ctor_set(x_35, 0, x_32); -return x_35; +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec_ref(x_33); +lean_inc(x_34); +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_34); +x_37 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___lam__0(x_6, x_13, x_22, x_4, x_30, x_36, x_35); +lean_dec_ref(x_36); +lean_dec(x_4); +lean_dec(x_6); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_37, 0); +lean_dec(x_39); +lean_ctor_set(x_37, 0, x_34); +return x_37; } else { -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_dec(x_35); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_32); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_40 = lean_ctor_get(x_31, 0); +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 1); lean_inc(x_40); -x_41 = lean_ctor_get(x_31, 1); -lean_inc(x_41); -lean_dec_ref(x_31); -x_42 = lean_box(0); -x_43 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___lam__0(x_5, x_11, x_20, x_3, x_28, x_42, x_41); -lean_dec(x_3); -lean_dec(x_5); -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) +lean_dec(x_37); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_34); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +else { -lean_object* x_45; -x_45 = lean_ctor_get(x_43, 0); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_42 = lean_ctor_get(x_33, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_33, 1); +lean_inc(x_43); +lean_dec_ref(x_33); +x_44 = lean_box(0); +x_45 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___lam__0(x_6, x_13, x_22, x_4, x_30, x_44, x_43); +lean_dec(x_4); +lean_dec(x_6); +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +lean_object* x_47; +x_47 = lean_ctor_get(x_45, 0); +lean_dec(x_47); +lean_ctor_set_tag(x_45, 1); +lean_ctor_set(x_45, 0, x_42); +return x_45; +} +else +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); lean_dec(x_45); -lean_ctor_set_tag(x_43, 1); -lean_ctor_set(x_43, 0, x_40); -return x_43; -} -else -{ -lean_object* x_46; lean_object* x_47; -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); -lean_dec(x_43); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_40); -lean_ctor_set(x_47, 1, x_46); -return x_47; +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_42); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } } else { -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; -x_48 = lean_ctor_get(x_24, 0); -x_49 = lean_ctor_get(x_24, 2); -x_50 = lean_ctor_get(x_24, 3); -x_51 = lean_ctor_get(x_24, 4); +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; +x_50 = lean_ctor_get(x_26, 0); +x_51 = lean_ctor_get(x_26, 2); +x_52 = lean_ctor_get(x_26, 3); +x_53 = lean_ctor_get(x_26, 4); +lean_inc(x_53); +lean_inc(x_52); lean_inc(x_51); lean_inc(x_50); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_24); -x_52 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___closed__4; -x_53 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_53, 0, x_48); -lean_ctor_set(x_53, 1, x_52); -lean_ctor_set(x_53, 2, x_49); -lean_ctor_set(x_53, 3, x_50); -lean_ctor_set(x_53, 4, x_51); -x_54 = lean_st_ref_set(x_3, x_53, x_25); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec_ref(x_54); -lean_inc(x_5); -lean_inc(x_3); -x_56 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_55); -if (lean_obj_tag(x_56) == 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 = lean_ctor_get(x_56, 0); +lean_dec(x_26); +x_54 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___closed__4; +x_55 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_55, 0, x_50); +lean_ctor_set(x_55, 1, x_54); +lean_ctor_set(x_55, 2, x_51); +lean_ctor_set(x_55, 3, x_52); +lean_ctor_set(x_55, 4, x_53); +x_56 = lean_st_ref_set(x_4, x_55, x_27); +x_57 = lean_ctor_get(x_56, 1); lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); lean_dec_ref(x_56); -lean_inc(x_57); -x_59 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_59, 0, x_57); -x_60 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___lam__0(x_5, x_11, x_20, x_3, x_52, x_59, x_58); -lean_dec_ref(x_59); -lean_dec(x_3); -lean_dec(x_5); -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_62 = x_60; +lean_inc(x_6); +lean_inc(x_4); +x_58 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_57); +if (lean_obj_tag(x_58) == 0) +{ +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; +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec_ref(x_58); +lean_inc(x_59); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_59); +x_62 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___lam__0(x_6, x_13, x_22, x_4, x_54, x_61, x_60); +lean_dec_ref(x_61); +lean_dec(x_4); +lean_dec(x_6); +x_63 = lean_ctor_get(x_62, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_64 = x_62; } else { - lean_dec_ref(x_60); - x_62 = lean_box(0); + lean_dec_ref(x_62); + x_64 = lean_box(0); } -if (lean_is_scalar(x_62)) { - x_63 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_64)) { + x_65 = lean_alloc_ctor(0, 2, 0); } else { - x_63 = x_62; + x_65 = x_64; } -lean_ctor_set(x_63, 0, x_57); -lean_ctor_set(x_63, 1, x_61); -return x_63; +lean_ctor_set(x_65, 0, x_59); +lean_ctor_set(x_65, 1, x_63); +return x_65; } 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; -x_64 = lean_ctor_get(x_56, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_56, 1); -lean_inc(x_65); -lean_dec_ref(x_56); -x_66 = lean_box(0); -x_67 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___lam__0(x_5, x_11, x_20, x_3, x_52, x_66, x_65); -lean_dec(x_3); -lean_dec(x_5); -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_69 = x_67; +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_66 = lean_ctor_get(x_58, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_58, 1); +lean_inc(x_67); +lean_dec_ref(x_58); +x_68 = lean_box(0); +x_69 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___lam__0(x_6, x_13, x_22, x_4, x_54, x_68, x_67); +lean_dec(x_4); +lean_dec(x_6); +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_71 = x_69; } else { - lean_dec_ref(x_67); - x_69 = lean_box(0); + lean_dec_ref(x_69); + x_71 = lean_box(0); } -if (lean_is_scalar(x_69)) { - x_70 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(1, 2, 0); } else { - x_70 = x_69; - lean_ctor_set_tag(x_70, 1); + x_72 = x_71; + lean_ctor_set_tag(x_72, 1); } -lean_ctor_set(x_70, 0, x_64); -lean_ctor_set(x_70, 1, x_68); -return x_70; +lean_ctor_set(x_72, 0, x_66); +lean_ctor_set(x_72, 1, x_70); +return x_72; } } } else { -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; uint8_t x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_71 = lean_ctor_get(x_13, 0); -x_72 = lean_ctor_get(x_13, 1); -x_73 = lean_ctor_get(x_13, 2); -x_74 = lean_ctor_get(x_13, 3); -x_75 = lean_ctor_get(x_13, 4); -x_76 = lean_ctor_get(x_13, 6); -x_77 = lean_ctor_get(x_13, 7); -x_78 = lean_ctor_get(x_13, 8); +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; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_73 = lean_ctor_get(x_15, 0); +x_74 = lean_ctor_get(x_15, 1); +x_75 = lean_ctor_get(x_15, 2); +x_76 = lean_ctor_get(x_15, 3); +x_77 = lean_ctor_get(x_15, 4); +x_78 = lean_ctor_get(x_15, 6); +x_79 = lean_ctor_get(x_15, 7); +x_80 = lean_ctor_get(x_15, 8); +lean_inc(x_80); +lean_inc(x_79); lean_inc(x_78); lean_inc(x_77); lean_inc(x_76); lean_inc(x_75); lean_inc(x_74); lean_inc(x_73); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_13); -x_79 = 0; -x_80 = l_Lean_Environment_setExporting(x_71, x_79); -x_81 = l___private_Lean_DefEqAttrib_0__Lean_isDefEqCareful___closed__7; -x_82 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_72); -lean_ctor_set(x_82, 2, x_73); -lean_ctor_set(x_82, 3, x_74); -lean_ctor_set(x_82, 4, x_75); -lean_ctor_set(x_82, 5, x_81); -lean_ctor_set(x_82, 6, x_76); -lean_ctor_set(x_82, 7, x_77); -lean_ctor_set(x_82, 8, x_78); -x_83 = lean_st_ref_set(x_5, x_82, x_14); -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -lean_dec_ref(x_83); -x_85 = lean_st_ref_take(x_3, x_84); -x_86 = lean_ctor_get(x_85, 0); +lean_dec(x_15); +x_81 = 0; +x_82 = l_Lean_Environment_setExporting(x_73, x_81); +x_83 = l___private_Lean_DefEqAttrib_0__Lean_isDefEqCareful___closed__7; +x_84 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_74); +lean_ctor_set(x_84, 2, x_75); +lean_ctor_set(x_84, 3, x_76); +lean_ctor_set(x_84, 4, x_77); +lean_ctor_set(x_84, 5, x_83); +lean_ctor_set(x_84, 6, x_78); +lean_ctor_set(x_84, 7, x_79); +lean_ctor_set(x_84, 8, x_80); +x_85 = lean_st_ref_set(x_6, x_84, x_16); +x_86 = lean_ctor_get(x_85, 1); lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); lean_dec_ref(x_85); -x_88 = lean_ctor_get(x_86, 0); -lean_inc_ref(x_88); -x_89 = lean_ctor_get(x_86, 2); +x_87 = lean_st_ref_take(x_4, x_86); +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); lean_inc(x_89); -x_90 = lean_ctor_get(x_86, 3); +lean_dec_ref(x_87); +x_90 = lean_ctor_get(x_88, 0); lean_inc_ref(x_90); -x_91 = lean_ctor_get(x_86, 4); -lean_inc_ref(x_91); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - lean_ctor_release(x_86, 2); - lean_ctor_release(x_86, 3); - lean_ctor_release(x_86, 4); - x_92 = x_86; +x_91 = lean_ctor_get(x_88, 2); +lean_inc(x_91); +x_92 = lean_ctor_get(x_88, 3); +lean_inc_ref(x_92); +x_93 = lean_ctor_get(x_88, 4); +lean_inc_ref(x_93); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + lean_ctor_release(x_88, 2); + lean_ctor_release(x_88, 3); + lean_ctor_release(x_88, 4); + x_94 = x_88; } else { - lean_dec_ref(x_86); - x_92 = lean_box(0); + lean_dec_ref(x_88); + x_94 = lean_box(0); } -x_93 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___closed__4; -if (lean_is_scalar(x_92)) { - x_94 = lean_alloc_ctor(0, 5, 0); +x_95 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___closed__4; +if (lean_is_scalar(x_94)) { + x_96 = lean_alloc_ctor(0, 5, 0); } else { - x_94 = x_92; + x_96 = x_94; } -lean_ctor_set(x_94, 0, x_88); -lean_ctor_set(x_94, 1, x_93); -lean_ctor_set(x_94, 2, x_89); -lean_ctor_set(x_94, 3, x_90); -lean_ctor_set(x_94, 4, x_91); -x_95 = lean_st_ref_set(x_3, x_94, x_87); -x_96 = lean_ctor_get(x_95, 1); -lean_inc(x_96); -lean_dec_ref(x_95); -lean_inc(x_5); -lean_inc(x_3); -x_97 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_96); -if (lean_obj_tag(x_97) == 0) -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_98 = lean_ctor_get(x_97, 0); +lean_ctor_set(x_96, 0, x_90); +lean_ctor_set(x_96, 1, x_95); +lean_ctor_set(x_96, 2, x_91); +lean_ctor_set(x_96, 3, x_92); +lean_ctor_set(x_96, 4, x_93); +x_97 = lean_st_ref_set(x_4, x_96, x_89); +x_98 = lean_ctor_get(x_97, 1); lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); lean_dec_ref(x_97); -lean_inc(x_98); -x_100 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_100, 0, x_98); -x_101 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___lam__0(x_5, x_11, x_81, x_3, x_93, x_100, x_99); -lean_dec_ref(x_100); -lean_dec(x_3); -lean_dec(x_5); -x_102 = lean_ctor_get(x_101, 1); -lean_inc(x_102); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_103 = x_101; +lean_inc(x_6); +lean_inc(x_4); +x_99 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_98); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec_ref(x_99); +lean_inc(x_100); +x_102 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_102, 0, x_100); +x_103 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___lam__0(x_6, x_13, x_83, x_4, x_95, x_102, x_101); +lean_dec_ref(x_102); +lean_dec(x_4); +lean_dec(x_6); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_105 = x_103; } else { - lean_dec_ref(x_101); - x_103 = lean_box(0); + lean_dec_ref(x_103); + x_105 = lean_box(0); } -if (lean_is_scalar(x_103)) { - x_104 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(0, 2, 0); } else { - x_104 = x_103; + x_106 = x_105; } -lean_ctor_set(x_104, 0, x_98); -lean_ctor_set(x_104, 1, x_102); -return x_104; +lean_ctor_set(x_106, 0, x_100); +lean_ctor_set(x_106, 1, x_104); +return x_106; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_105 = lean_ctor_get(x_97, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_97, 1); -lean_inc(x_106); -lean_dec_ref(x_97); -x_107 = lean_box(0); -x_108 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___lam__0(x_5, x_11, x_81, x_3, x_93, x_107, x_106); -lean_dec(x_3); -lean_dec(x_5); -x_109 = lean_ctor_get(x_108, 1); -lean_inc(x_109); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_110 = x_108; +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_107 = lean_ctor_get(x_99, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_99, 1); +lean_inc(x_108); +lean_dec_ref(x_99); +x_109 = lean_box(0); +x_110 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___lam__0(x_6, x_13, x_83, x_4, x_95, x_109, x_108); +lean_dec(x_4); +lean_dec(x_6); +x_111 = lean_ctor_get(x_110, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + x_112 = x_110; } else { - lean_dec_ref(x_108); - x_110 = lean_box(0); + lean_dec_ref(x_110); + x_112 = lean_box(0); } -if (lean_is_scalar(x_110)) { - x_111 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_112)) { + x_113 = lean_alloc_ctor(1, 2, 0); } else { - x_111 = x_110; - lean_ctor_set_tag(x_111, 1); + x_113 = x_112; + lean_ctor_set_tag(x_113, 1); } -lean_ctor_set(x_111, 0, x_105); -lean_ctor_set(x_111, 1, x_109); -return x_111; +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_111); +return x_113; } } } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0(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_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_8; -x_8 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(x_2, x_3, x_4, x_5, x_6, x_7); -return x_8; +lean_object* x_9; +x_9 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_9; } } static lean_object* _init_l_Lean_validateDefEqAttr___lam__0___closed__0() { @@ -1763,482 +1775,482 @@ x_2 = l_Lean_MessageData_note(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_validateDefEqAttr___lam__0(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_EXPORT lean_object* l_Lean_validateDefEqAttr___lam__0(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_8; -lean_inc(x_6); -lean_inc_ref(x_5); -lean_inc(x_4); -lean_inc_ref(x_3); -x_8 = l_Lean_Meta_addPPExplicitToExposeDiff(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) +lean_object* x_9; +lean_inc(x_7); +lean_inc_ref(x_6); +lean_inc(x_5); +lean_inc_ref(x_4); +x_9 = l_Lean_Meta_addPPExplicitToExposeDiff(x_1, x_2, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -lean_dec_ref(x_8); -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec_ref(x_9); +x_12 = !lean_is_exclusive(x_10); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_12 = lean_ctor_get(x_9, 0); -x_13 = lean_ctor_get(x_9, 1); -x_14 = lean_st_ref_get(x_6, x_10); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_13 = lean_ctor_get(x_10, 0); +x_14 = lean_ctor_get(x_10, 1); +x_15 = lean_st_ref_get(x_7, x_11); x_16 = lean_ctor_get(x_15, 0); -lean_inc_ref(x_16); -lean_dec(x_15); -x_17 = !lean_is_exclusive(x_14); -if (x_17 == 0) +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 0); +lean_inc_ref(x_17); +lean_dec(x_16); +x_18 = !lean_is_exclusive(x_15); +if (x_18 == 0) { -lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_18 = lean_ctor_get(x_14, 1); -x_19 = lean_ctor_get(x_14, 0); -lean_dec(x_19); -x_20 = lean_ctor_get_uint8(x_16, sizeof(void*)*8); -lean_dec_ref(x_16); -x_21 = l_Lean_validateDefEqAttr___lam__0___closed__1; -lean_inc(x_12); -x_22 = l_Lean_indentExpr(x_12); -lean_ctor_set_tag(x_9, 7); -lean_ctor_set(x_9, 1, x_22); -lean_ctor_set(x_9, 0, x_21); -x_23 = l_Lean_validateDefEqAttr___lam__0___closed__3; -x_24 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_24, 0, x_9); -lean_ctor_set(x_24, 1, x_23); +lean_object* x_19; lean_object* x_20; uint8_t 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; +x_19 = lean_ctor_get(x_15, 1); +x_20 = lean_ctor_get(x_15, 0); +lean_dec(x_20); +x_21 = lean_ctor_get_uint8(x_17, sizeof(void*)*8); +lean_dec_ref(x_17); +x_22 = l_Lean_validateDefEqAttr___lam__0___closed__1; lean_inc(x_13); -x_25 = l_Lean_indentExpr(x_13); -x_26 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -x_27 = l_Lean_validateDefEqAttr___lam__0___closed__5; -x_28 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -if (x_20 == 0) +x_23 = l_Lean_indentExpr(x_13); +lean_ctor_set_tag(x_10, 7); +lean_ctor_set(x_10, 1, x_23); +lean_ctor_set(x_10, 0, x_22); +x_24 = l_Lean_validateDefEqAttr___lam__0___closed__3; +x_25 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_25, 1, x_24); +lean_inc(x_14); +x_26 = l_Lean_indentExpr(x_14); +x_27 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = l_Lean_validateDefEqAttr___lam__0___closed__5; +x_29 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +if (x_21 == 0) { +lean_dec(x_14); lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -lean_ctor_set(x_14, 0, x_28); -return x_14; +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_ctor_set(x_15, 0, x_29); +return x_15; } else { -lean_object* x_29; lean_object* x_30; -lean_free_object(x_14); -x_29 = lean_alloc_closure((void*)(l___private_Lean_DefEqAttrib_0__Lean_isDefEqCareful), 7, 2); -lean_closure_set(x_29, 0, x_12); -lean_closure_set(x_29, 1, x_13); -x_30 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(x_29, x_3, x_4, x_5, x_6, x_18); -if (lean_obj_tag(x_30) == 0) +lean_object* x_30; lean_object* x_31; +lean_free_object(x_15); +x_30 = lean_alloc_closure((void*)(l___private_Lean_DefEqAttrib_0__Lean_isDefEqCareful), 7, 2); +lean_closure_set(x_30, 0, x_13); +lean_closure_set(x_30, 1, x_14); +x_31 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(x_30, x_3, x_4, x_5, x_6, x_7, x_19); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_31; uint8_t x_32; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_unbox(x_31); -lean_dec(x_31); -if (x_32 == 0) -{ -uint8_t x_33; -x_33 = !lean_is_exclusive(x_30); +lean_object* x_32; uint8_t x_33; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_unbox(x_32); +lean_dec(x_32); if (x_33 == 0) { -lean_object* x_34; -x_34 = lean_ctor_get(x_30, 0); -lean_dec(x_34); -lean_ctor_set(x_30, 0, x_28); -return x_30; +uint8_t x_34; +x_34 = !lean_is_exclusive(x_31); +if (x_34 == 0) +{ +lean_object* x_35; +x_35 = lean_ctor_get(x_31, 0); +lean_dec(x_35); +lean_ctor_set(x_31, 0, x_29); +return x_31; } else { -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_30, 1); -lean_inc(x_35); -lean_dec(x_30); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_28); -lean_ctor_set(x_36, 1, x_35); -return x_36; +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_31, 1); +lean_inc(x_36); +lean_dec(x_31); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_29); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } else { -uint8_t x_37; -x_37 = !lean_is_exclusive(x_30); -if (x_37 == 0) +uint8_t x_38; +x_38 = !lean_is_exclusive(x_31); +if (x_38 == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_30, 0); -lean_dec(x_38); -x_39 = l_Lean_validateDefEqAttr___lam__0___closed__8; -x_40 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_40, 0, x_28); -lean_ctor_set(x_40, 1, x_39); -lean_ctor_set(x_30, 0, x_40); -return x_30; +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_31, 0); +lean_dec(x_39); +x_40 = l_Lean_validateDefEqAttr___lam__0___closed__8; +x_41 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_41, 0, x_29); +lean_ctor_set(x_41, 1, x_40); +lean_ctor_set(x_31, 0, x_41); +return x_31; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_41 = lean_ctor_get(x_30, 1); -lean_inc(x_41); -lean_dec(x_30); -x_42 = l_Lean_validateDefEqAttr___lam__0___closed__8; -x_43 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_43, 0, x_28); -lean_ctor_set(x_43, 1, x_42); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_41); -return x_44; +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_42 = lean_ctor_get(x_31, 1); +lean_inc(x_42); +lean_dec(x_31); +x_43 = l_Lean_validateDefEqAttr___lam__0___closed__8; +x_44 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_44, 0, x_29); +lean_ctor_set(x_44, 1, x_43); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_42); +return x_45; } } } else { -uint8_t x_45; -lean_dec_ref(x_28); -x_45 = !lean_is_exclusive(x_30); -if (x_45 == 0) +uint8_t x_46; +lean_dec_ref(x_29); +x_46 = !lean_is_exclusive(x_31); +if (x_46 == 0) { -return x_30; +return x_31; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_30, 0); -x_47 = lean_ctor_get(x_30, 1); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_31, 0); +x_48 = lean_ctor_get(x_31, 1); +lean_inc(x_48); lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_30); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_dec(x_31); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } } } else { -lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_49 = lean_ctor_get(x_14, 1); -lean_inc(x_49); -lean_dec(x_14); -x_50 = lean_ctor_get_uint8(x_16, sizeof(void*)*8); -lean_dec_ref(x_16); -x_51 = l_Lean_validateDefEqAttr___lam__0___closed__1; -lean_inc(x_12); -x_52 = l_Lean_indentExpr(x_12); -lean_ctor_set_tag(x_9, 7); -lean_ctor_set(x_9, 1, x_52); -lean_ctor_set(x_9, 0, x_51); -x_53 = l_Lean_validateDefEqAttr___lam__0___closed__3; -x_54 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_54, 0, x_9); -lean_ctor_set(x_54, 1, x_53); +lean_object* x_50; uint8_t 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; +x_50 = lean_ctor_get(x_15, 1); +lean_inc(x_50); +lean_dec(x_15); +x_51 = lean_ctor_get_uint8(x_17, sizeof(void*)*8); +lean_dec_ref(x_17); +x_52 = l_Lean_validateDefEqAttr___lam__0___closed__1; lean_inc(x_13); -x_55 = l_Lean_indentExpr(x_13); -x_56 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -x_57 = l_Lean_validateDefEqAttr___lam__0___closed__5; -x_58 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -if (x_50 == 0) +x_53 = l_Lean_indentExpr(x_13); +lean_ctor_set_tag(x_10, 7); +lean_ctor_set(x_10, 1, x_53); +lean_ctor_set(x_10, 0, x_52); +x_54 = l_Lean_validateDefEqAttr___lam__0___closed__3; +x_55 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_55, 0, x_10); +lean_ctor_set(x_55, 1, x_54); +lean_inc(x_14); +x_56 = l_Lean_indentExpr(x_14); +x_57 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +x_58 = l_Lean_validateDefEqAttr___lam__0___closed__5; +x_59 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +if (x_51 == 0) { -lean_object* x_59; +lean_object* x_60; +lean_dec(x_14); lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_49); -return x_59; +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_50); +return x_60; } else { -lean_object* x_60; lean_object* x_61; -x_60 = lean_alloc_closure((void*)(l___private_Lean_DefEqAttrib_0__Lean_isDefEqCareful), 7, 2); -lean_closure_set(x_60, 0, x_12); -lean_closure_set(x_60, 1, x_13); -x_61 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(x_60, x_3, x_4, x_5, x_6, x_49); -if (lean_obj_tag(x_61) == 0) +lean_object* x_61; lean_object* x_62; +x_61 = lean_alloc_closure((void*)(l___private_Lean_DefEqAttrib_0__Lean_isDefEqCareful), 7, 2); +lean_closure_set(x_61, 0, x_13); +lean_closure_set(x_61, 1, x_14); +x_62 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(x_61, x_3, x_4, x_5, x_6, x_7, x_50); +if (lean_obj_tag(x_62) == 0) { -lean_object* x_62; uint8_t x_63; -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_unbox(x_62); -lean_dec(x_62); -if (x_63 == 0) +lean_object* x_63; uint8_t x_64; +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_unbox(x_63); +lean_dec(x_63); +if (x_64 == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_65 = x_61; +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_66 = x_62; } else { - lean_dec_ref(x_61); - x_65 = lean_box(0); + lean_dec_ref(x_62); + x_66 = lean_box(0); } -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(0, 2, 0); } else { - x_66 = x_65; + x_67 = x_66; } -lean_ctor_set(x_66, 0, x_58); -lean_ctor_set(x_66, 1, x_64); -return x_66; +lean_ctor_set(x_67, 0, x_59); +lean_ctor_set(x_67, 1, x_65); +return x_67; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_67 = lean_ctor_get(x_61, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_68 = x_61; +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_68 = lean_ctor_get(x_62, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_69 = x_62; } else { - lean_dec_ref(x_61); - x_68 = lean_box(0); + lean_dec_ref(x_62); + x_69 = lean_box(0); } -x_69 = l_Lean_validateDefEqAttr___lam__0___closed__8; -x_70 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_70, 0, x_58); -lean_ctor_set(x_70, 1, x_69); -if (lean_is_scalar(x_68)) { - x_71 = lean_alloc_ctor(0, 2, 0); +x_70 = l_Lean_validateDefEqAttr___lam__0___closed__8; +x_71 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_71, 0, x_59); +lean_ctor_set(x_71, 1, x_70); +if (lean_is_scalar(x_69)) { + x_72 = lean_alloc_ctor(0, 2, 0); } else { - x_71 = x_68; + x_72 = x_69; } -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_67); -return x_71; +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_68); +return x_72; } } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -lean_dec_ref(x_58); -x_72 = lean_ctor_get(x_61, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_61, 1); +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec_ref(x_59); +x_73 = lean_ctor_get(x_62, 0); lean_inc(x_73); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_74 = x_61; +x_74 = lean_ctor_get(x_62, 1); +lean_inc(x_74); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_75 = x_62; } else { - lean_dec_ref(x_61); - x_74 = lean_box(0); + lean_dec_ref(x_62); + x_75 = lean_box(0); } -if (lean_is_scalar(x_74)) { - x_75 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_75)) { + x_76 = lean_alloc_ctor(1, 2, 0); } else { - x_75 = x_74; + x_76 = x_75; } -lean_ctor_set(x_75, 0, x_72); -lean_ctor_set(x_75, 1, x_73); -return x_75; +lean_ctor_set(x_76, 0, x_73); +lean_ctor_set(x_76, 1, x_74); +return x_76; } } } } else { -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; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_76 = lean_ctor_get(x_9, 0); -x_77 = lean_ctor_get(x_9, 1); +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; uint8_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_77 = lean_ctor_get(x_10, 0); +x_78 = lean_ctor_get(x_10, 1); +lean_inc(x_78); lean_inc(x_77); -lean_inc(x_76); -lean_dec(x_9); -x_78 = lean_st_ref_get(x_6, x_10); -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); +lean_dec(x_10); +x_79 = lean_st_ref_get(x_7, x_11); x_80 = lean_ctor_get(x_79, 0); -lean_inc_ref(x_80); -lean_dec(x_79); -x_81 = lean_ctor_get(x_78, 1); -lean_inc(x_81); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_82 = x_78; +lean_inc(x_80); +x_81 = lean_ctor_get(x_80, 0); +lean_inc_ref(x_81); +lean_dec(x_80); +x_82 = lean_ctor_get(x_79, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_83 = x_79; } else { - lean_dec_ref(x_78); - x_82 = lean_box(0); + lean_dec_ref(x_79); + x_83 = lean_box(0); } -x_83 = lean_ctor_get_uint8(x_80, sizeof(void*)*8); -lean_dec_ref(x_80); -x_84 = l_Lean_validateDefEqAttr___lam__0___closed__1; -lean_inc(x_76); -x_85 = l_Lean_indentExpr(x_76); -x_86 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -x_87 = l_Lean_validateDefEqAttr___lam__0___closed__3; -x_88 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); +x_84 = lean_ctor_get_uint8(x_81, sizeof(void*)*8); +lean_dec_ref(x_81); +x_85 = l_Lean_validateDefEqAttr___lam__0___closed__1; lean_inc(x_77); -x_89 = l_Lean_indentExpr(x_77); -x_90 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -x_91 = l_Lean_validateDefEqAttr___lam__0___closed__5; -x_92 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -if (x_83 == 0) +x_86 = l_Lean_indentExpr(x_77); +x_87 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +x_88 = l_Lean_validateDefEqAttr___lam__0___closed__3; +x_89 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +lean_inc(x_78); +x_90 = l_Lean_indentExpr(x_78); +x_91 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +x_92 = l_Lean_validateDefEqAttr___lam__0___closed__5; +x_93 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +if (x_84 == 0) { -lean_object* x_93; +lean_object* x_94; +lean_dec(x_78); lean_dec(x_77); -lean_dec(x_76); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -if (lean_is_scalar(x_82)) { - x_93 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +if (lean_is_scalar(x_83)) { + x_94 = lean_alloc_ctor(0, 2, 0); } else { - x_93 = x_82; + x_94 = x_83; } -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_81); -return x_93; +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_82); +return x_94; } else { -lean_object* x_94; lean_object* x_95; -lean_dec(x_82); -x_94 = lean_alloc_closure((void*)(l___private_Lean_DefEqAttrib_0__Lean_isDefEqCareful), 7, 2); -lean_closure_set(x_94, 0, x_76); -lean_closure_set(x_94, 1, x_77); -x_95 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(x_94, x_3, x_4, x_5, x_6, x_81); -if (lean_obj_tag(x_95) == 0) +lean_object* x_95; lean_object* x_96; +lean_dec(x_83); +x_95 = lean_alloc_closure((void*)(l___private_Lean_DefEqAttrib_0__Lean_isDefEqCareful), 7, 2); +lean_closure_set(x_95, 0, x_77); +lean_closure_set(x_95, 1, x_78); +x_96 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(x_95, x_3, x_4, x_5, x_6, x_7, x_82); +if (lean_obj_tag(x_96) == 0) { -lean_object* x_96; uint8_t x_97; -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_unbox(x_96); -lean_dec(x_96); -if (x_97 == 0) +lean_object* x_97; uint8_t x_98; +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_unbox(x_97); +lean_dec(x_97); +if (x_98 == 0) { -lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_95, 1); -lean_inc(x_98); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_99 = x_95; +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_96, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_100 = x_96; } else { - lean_dec_ref(x_95); - x_99 = lean_box(0); + lean_dec_ref(x_96); + x_100 = lean_box(0); } -if (lean_is_scalar(x_99)) { - x_100 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_100)) { + x_101 = lean_alloc_ctor(0, 2, 0); } else { - x_100 = x_99; + x_101 = x_100; } -lean_ctor_set(x_100, 0, x_92); -lean_ctor_set(x_100, 1, x_98); -return x_100; +lean_ctor_set(x_101, 0, x_93); +lean_ctor_set(x_101, 1, x_99); +return x_101; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_101 = lean_ctor_get(x_95, 1); -lean_inc(x_101); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_102 = x_95; +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_102 = lean_ctor_get(x_96, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_103 = x_96; } else { - lean_dec_ref(x_95); - x_102 = lean_box(0); + lean_dec_ref(x_96); + x_103 = lean_box(0); } -x_103 = l_Lean_validateDefEqAttr___lam__0___closed__8; -x_104 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_104, 0, x_92); -lean_ctor_set(x_104, 1, x_103); -if (lean_is_scalar(x_102)) { - x_105 = lean_alloc_ctor(0, 2, 0); +x_104 = l_Lean_validateDefEqAttr___lam__0___closed__8; +x_105 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_105, 0, x_93); +lean_ctor_set(x_105, 1, x_104); +if (lean_is_scalar(x_103)) { + x_106 = lean_alloc_ctor(0, 2, 0); } else { - x_105 = x_102; + x_106 = x_103; } -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_101); -return x_105; +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_102); +return x_106; } } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -lean_dec_ref(x_92); -x_106 = lean_ctor_get(x_95, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_95, 1); +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +lean_dec_ref(x_93); +x_107 = lean_ctor_get(x_96, 0); lean_inc(x_107); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_108 = x_95; +x_108 = lean_ctor_get(x_96, 1); +lean_inc(x_108); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_109 = x_96; } else { - lean_dec_ref(x_95); - x_108 = lean_box(0); + lean_dec_ref(x_96); + x_109 = lean_box(0); } -if (lean_is_scalar(x_108)) { - x_109 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_109)) { + x_110 = lean_alloc_ctor(1, 2, 0); } else { - x_109 = x_108; + x_110 = x_109; } -lean_ctor_set(x_109, 0, x_106); -lean_ctor_set(x_109, 1, x_107); -return x_109; +lean_ctor_set(x_110, 0, x_107); +lean_ctor_set(x_110, 1, x_108); +return x_110; } } } } else { -uint8_t x_110; -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -x_110 = !lean_is_exclusive(x_8); -if (x_110 == 0) +uint8_t x_111; +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +x_111 = !lean_is_exclusive(x_9); +if (x_111 == 0) { -return x_8; +return x_9; } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_8, 0); -x_112 = lean_ctor_get(x_8, 1); +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_9, 0); +x_113 = lean_ctor_get(x_9, 1); +lean_inc(x_113); lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_8); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -return x_113; +lean_dec(x_9); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 1, x_113); +return x_114; } } } @@ -2350,113 +2362,115 @@ x_26 = lean_unbox(x_25); lean_dec(x_25); if (x_26 == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_object* x_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; x_27 = lean_ctor_get(x_24, 1); lean_inc(x_27); lean_dec_ref(x_24); +x_28 = lean_box(x_13); lean_inc_ref(x_23); lean_inc_ref(x_22); -x_28 = lean_alloc_closure((void*)(l_Lean_validateDefEqAttr___lam__0), 7, 2); -lean_closure_set(x_28, 0, x_22); -lean_closure_set(x_28, 1, x_23); -x_29 = l_Lean_validateDefEqAttr___lam__1___closed__4; -x_30 = lean_array_push(x_29, x_22); -x_31 = lean_array_push(x_30, x_23); -x_32 = l_Lean_MessageData_ofLazyM(x_28, x_31); -x_33 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0_spec__0___redArg(x_32, x_3, x_4, x_5, x_6, x_27); +x_29 = lean_alloc_closure((void*)(l_Lean_validateDefEqAttr___lam__0___boxed), 8, 3); +lean_closure_set(x_29, 0, x_22); +lean_closure_set(x_29, 1, x_23); +lean_closure_set(x_29, 2, x_28); +x_30 = l_Lean_validateDefEqAttr___lam__1___closed__4; +x_31 = lean_array_push(x_30, x_22); +x_32 = lean_array_push(x_31, x_23); +x_33 = l_Lean_MessageData_ofLazyM(x_29, x_32); +x_34 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0_spec__0___redArg(x_33, x_3, x_4, x_5, x_6, x_27); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -return x_33; +return x_34; } else { -uint8_t x_34; +uint8_t x_35; lean_dec_ref(x_23); lean_dec_ref(x_22); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -x_34 = !lean_is_exclusive(x_24); -if (x_34 == 0) +x_35 = !lean_is_exclusive(x_24); +if (x_35 == 0) { -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_24, 0); -lean_dec(x_35); -x_36 = lean_box(0); -lean_ctor_set(x_24, 0, x_36); +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_24, 0); +lean_dec(x_36); +x_37 = lean_box(0); +lean_ctor_set(x_24, 0, x_37); return x_24; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_24, 1); -lean_inc(x_37); +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_24, 1); +lean_inc(x_38); lean_dec(x_24); -x_38 = lean_box(0); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -return x_39; +x_39 = lean_box(0); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +return x_40; } } } else { -uint8_t x_40; +uint8_t x_41; lean_dec_ref(x_23); lean_dec_ref(x_22); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -x_40 = !lean_is_exclusive(x_24); -if (x_40 == 0) +x_41 = !lean_is_exclusive(x_24); +if (x_41 == 0) { return x_24; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_24, 0); -x_42 = lean_ctor_get(x_24, 1); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_24, 0); +x_43 = lean_ctor_get(x_24, 1); +lean_inc(x_43); lean_inc(x_42); -lean_inc(x_41); lean_dec(x_24); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -return x_43; +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; } } } } else { -uint8_t x_44; +uint8_t x_45; lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -x_44 = !lean_is_exclusive(x_8); -if (x_44 == 0) +x_45 = !lean_is_exclusive(x_8); +if (x_45 == 0) { return x_8; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_8, 0); -x_46 = lean_ctor_get(x_8, 1); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_8, 0); +x_47 = lean_ctor_get(x_8, 1); +lean_inc(x_47); lean_inc(x_46); -lean_inc(x_45); lean_dec(x_8); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } @@ -2983,6 +2997,33 @@ lean_dec(x_1); return x_9; } } +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_2); +x_9 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_3); +x_10 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_validateDefEqAttr___lam__0___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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_3); +x_10 = l_Lean_validateDefEqAttr___lam__0(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} LEAN_EXPORT lean_object* l_Lean_validateDefEqAttr___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { @@ -4284,7 +4325,7 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_logAt___at___Lean_log___at___Lean_logError___at___Lean_inferDefEqAttr_spec__1_spec__1_spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_81; uint8_t x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; uint8_t x_114; lean_object* x_115; uint8_t x_116; lean_object* x_117; lean_object* x_121; uint8_t x_122; lean_object* x_123; uint8_t x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; uint8_t x_140; uint8_t x_142; uint8_t x_158; +lean_object* x_10; uint8_t x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; uint8_t x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; lean_object* x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; uint8_t x_125; lean_object* x_126; uint8_t x_127; uint8_t x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; uint8_t x_140; uint8_t x_142; uint8_t x_158; x_133 = 2; x_158 = l_Lean_beqMessageSeverity____x40_Lean_Message___hyg_185_(x_3, x_133); if (x_158 == 0) @@ -4326,13 +4367,13 @@ x_28 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_28, 0, x_20); lean_ctor_set(x_28, 1, x_13); x_29 = lean_alloc_ctor(0, 5, 3); -lean_ctor_set(x_29, 0, x_12); -lean_ctor_set(x_29, 1, x_15); -lean_ctor_set(x_29, 2, x_11); -lean_ctor_set(x_29, 3, x_16); +lean_ctor_set(x_29, 0, x_10); +lean_ctor_set(x_29, 1, x_14); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_15); lean_ctor_set(x_29, 4, x_28); -lean_ctor_set_uint8(x_29, sizeof(void*)*5, x_10); -lean_ctor_set_uint8(x_29, sizeof(void*)*5 + 1, x_14); +lean_ctor_set_uint8(x_29, sizeof(void*)*5, x_12); +lean_ctor_set_uint8(x_29, sizeof(void*)*5 + 1, x_11); lean_ctor_set_uint8(x_29, sizeof(void*)*5 + 2, x_4); x_30 = l_Lean_MessageLog_add(x_29, x_27); lean_ctor_set(x_22, 6, x_30); @@ -4388,13 +4429,13 @@ x_47 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_47, 0, x_20); lean_ctor_set(x_47, 1, x_13); x_48 = lean_alloc_ctor(0, 5, 3); -lean_ctor_set(x_48, 0, x_12); -lean_ctor_set(x_48, 1, x_15); -lean_ctor_set(x_48, 2, x_11); -lean_ctor_set(x_48, 3, x_16); +lean_ctor_set(x_48, 0, x_10); +lean_ctor_set(x_48, 1, x_14); +lean_ctor_set(x_48, 2, x_16); +lean_ctor_set(x_48, 3, x_15); lean_ctor_set(x_48, 4, x_47); -lean_ctor_set_uint8(x_48, sizeof(void*)*5, x_10); -lean_ctor_set_uint8(x_48, sizeof(void*)*5 + 1, x_14); +lean_ctor_set_uint8(x_48, sizeof(void*)*5, x_12); +lean_ctor_set_uint8(x_48, sizeof(void*)*5 + 1, x_11); lean_ctor_set_uint8(x_48, sizeof(void*)*5 + 2, x_4); x_49 = l_Lean_MessageLog_add(x_48, x_44); x_50 = lean_alloc_ctor(0, 9, 0); @@ -4482,13 +4523,13 @@ x_71 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_71, 0, x_70); lean_ctor_set(x_71, 1, x_13); x_72 = lean_alloc_ctor(0, 5, 3); -lean_ctor_set(x_72, 0, x_12); -lean_ctor_set(x_72, 1, x_15); -lean_ctor_set(x_72, 2, x_11); -lean_ctor_set(x_72, 3, x_16); +lean_ctor_set(x_72, 0, x_10); +lean_ctor_set(x_72, 1, x_14); +lean_ctor_set(x_72, 2, x_16); +lean_ctor_set(x_72, 3, x_15); lean_ctor_set(x_72, 4, x_71); -lean_ctor_set_uint8(x_72, sizeof(void*)*5, x_10); -lean_ctor_set_uint8(x_72, sizeof(void*)*5 + 1, x_14); +lean_ctor_set_uint8(x_72, sizeof(void*)*5, x_12); +lean_ctor_set_uint8(x_72, sizeof(void*)*5 + 1, x_11); lean_ctor_set_uint8(x_72, sizeof(void*)*5 + 2, x_4); x_73 = l_Lean_MessageLog_add(x_72, x_66); if (lean_is_scalar(x_69)) { @@ -4538,25 +4579,25 @@ if (x_91 == 0) lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; x_92 = lean_ctor_get(x_90, 0); x_93 = lean_ctor_get(x_90, 1); -lean_inc_ref(x_83); -x_94 = l_Lean_FileMap_toPosition(x_83, x_87); -lean_dec(x_87); -x_95 = l_Lean_FileMap_toPosition(x_83, x_88); +lean_inc_ref(x_82); +x_94 = l_Lean_FileMap_toPosition(x_82, x_86); +lean_dec(x_86); +x_95 = l_Lean_FileMap_toPosition(x_82, x_88); lean_dec(x_88); x_96 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_96, 0, x_95); x_97 = l_Lean_validateDefEqAttr___lam__0___closed__4; -if (x_84 == 0) +if (x_85 == 0) { lean_free_object(x_90); lean_dec(x_81); -x_10 = x_82; -x_11 = x_96; -x_12 = x_85; +x_10 = x_83; +x_11 = x_84; +x_12 = x_87; x_13 = x_92; -x_14 = x_86; -x_15 = x_94; -x_16 = x_97; +x_14 = x_94; +x_15 = x_97; +x_16 = x_96; x_17 = x_7; x_18 = x_8; x_19 = x_93; @@ -4573,7 +4614,7 @@ lean_object* x_99; lean_dec_ref(x_96); lean_dec_ref(x_94); lean_dec(x_92); -lean_dec_ref(x_85); +lean_dec_ref(x_83); lean_dec_ref(x_7); x_99 = lean_box(0); lean_ctor_set(x_90, 0, x_99); @@ -4582,13 +4623,13 @@ return x_90; else { lean_free_object(x_90); -x_10 = x_82; -x_11 = x_96; -x_12 = x_85; +x_10 = x_83; +x_11 = x_84; +x_12 = x_87; x_13 = x_92; -x_14 = x_86; -x_15 = x_94; -x_16 = x_97; +x_14 = x_94; +x_15 = x_97; +x_16 = x_96; x_17 = x_7; x_18 = x_8; x_19 = x_93; @@ -4604,24 +4645,24 @@ x_101 = lean_ctor_get(x_90, 1); lean_inc(x_101); lean_inc(x_100); lean_dec(x_90); -lean_inc_ref(x_83); -x_102 = l_Lean_FileMap_toPosition(x_83, x_87); -lean_dec(x_87); -x_103 = l_Lean_FileMap_toPosition(x_83, x_88); +lean_inc_ref(x_82); +x_102 = l_Lean_FileMap_toPosition(x_82, x_86); +lean_dec(x_86); +x_103 = l_Lean_FileMap_toPosition(x_82, x_88); lean_dec(x_88); x_104 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_104, 0, x_103); x_105 = l_Lean_validateDefEqAttr___lam__0___closed__4; -if (x_84 == 0) +if (x_85 == 0) { lean_dec(x_81); -x_10 = x_82; -x_11 = x_104; -x_12 = x_85; +x_10 = x_83; +x_11 = x_84; +x_12 = x_87; x_13 = x_100; -x_14 = x_86; -x_15 = x_102; -x_16 = x_105; +x_14 = x_102; +x_15 = x_105; +x_16 = x_104; x_17 = x_7; x_18 = x_8; x_19 = x_101; @@ -4638,7 +4679,7 @@ lean_object* x_107; lean_object* x_108; lean_dec_ref(x_104); lean_dec_ref(x_102); lean_dec(x_100); -lean_dec_ref(x_85); +lean_dec_ref(x_83); lean_dec_ref(x_7); x_107 = lean_box(0); x_108 = lean_alloc_ctor(0, 2, 0); @@ -4648,13 +4689,13 @@ return x_108; } else { -x_10 = x_82; -x_11 = x_104; -x_12 = x_85; +x_10 = x_83; +x_11 = x_84; +x_12 = x_87; x_13 = x_100; -x_14 = x_86; -x_15 = x_102; -x_16 = x_105; +x_14 = x_102; +x_15 = x_105; +x_16 = x_104; x_17 = x_7; x_18 = x_8; x_19 = x_101; @@ -4666,18 +4707,18 @@ goto block_80; block_120: { lean_object* x_118; -x_118 = l_Lean_Syntax_getTailPos_x3f(x_111, x_113); -lean_dec(x_111); +x_118 = l_Lean_Syntax_getTailPos_x3f(x_116, x_115); +lean_dec(x_116); if (lean_obj_tag(x_118) == 0) { lean_inc(x_117); x_81 = x_110; -x_82 = x_113; +x_82 = x_111; x_83 = x_112; -x_84 = x_114; -x_85 = x_115; -x_86 = x_116; -x_87 = x_117; +x_84 = x_113; +x_85 = x_114; +x_86 = x_117; +x_87 = x_115; x_88 = x_117; goto block_109; } @@ -4688,12 +4729,12 @@ x_119 = lean_ctor_get(x_118, 0); lean_inc(x_119); lean_dec(x_118); x_81 = x_110; -x_82 = x_113; +x_82 = x_111; x_83 = x_112; -x_84 = x_114; -x_85 = x_115; -x_86 = x_116; -x_87 = x_117; +x_84 = x_113; +x_85 = x_114; +x_86 = x_117; +x_87 = x_115; x_88 = x_119; goto block_109; } @@ -4701,20 +4742,20 @@ goto block_109; block_132: { lean_object* x_128; lean_object* x_129; -x_128 = l_Lean_replaceRef(x_1, x_125); -lean_dec(x_125); -x_129 = l_Lean_Syntax_getPos_x3f(x_128, x_122); +x_128 = l_Lean_replaceRef(x_1, x_126); +lean_dec(x_126); +x_129 = l_Lean_Syntax_getPos_x3f(x_128, x_125); if (lean_obj_tag(x_129) == 0) { lean_object* x_130; x_130 = lean_unsigned_to_nat(0u); x_110 = x_121; -x_111 = x_128; +x_111 = x_122; x_112 = x_123; -x_113 = x_122; +x_113 = x_127; x_114 = x_124; -x_115 = x_126; -x_116 = x_127; +x_115 = x_125; +x_116 = x_128; x_117 = x_130; goto block_120; } @@ -4725,12 +4766,12 @@ x_131 = lean_ctor_get(x_129, 0); lean_inc(x_131); lean_dec(x_129); x_110 = x_121; -x_111 = x_128; +x_111 = x_122; x_112 = x_123; -x_113 = x_122; +x_113 = x_127; x_114 = x_124; -x_115 = x_126; -x_116 = x_127; +x_115 = x_125; +x_116 = x_128; x_117 = x_131; goto block_120; } @@ -4739,22 +4780,22 @@ block_141: { if (x_140 == 0) { -x_121 = x_134; -x_122 = x_139; +x_121 = x_137; +x_122 = x_134; x_123 = x_135; x_124 = x_136; -x_125 = x_137; +x_125 = x_139; x_126 = x_138; x_127 = x_3; goto block_132; } else { -x_121 = x_134; -x_122 = x_139; +x_121 = x_137; +x_122 = x_134; x_123 = x_135; x_124 = x_136; -x_125 = x_137; +x_125 = x_139; x_126 = x_138; x_127 = x_133; goto block_132; @@ -4784,11 +4825,11 @@ x_152 = l_Lean_beqMessageSeverity____x40_Lean_Message___hyg_185_(x_3, x_151); if (x_152 == 0) { lean_dec(x_145); -x_134 = x_150; -x_135 = x_144; +x_134 = x_144; +x_135 = x_143; x_136 = x_147; -x_137 = x_146; -x_138 = x_143; +x_137 = x_150; +x_138 = x_146; x_139 = x_142; x_140 = x_152; goto block_141; @@ -4799,11 +4840,11 @@ lean_object* x_153; uint8_t x_154; x_153 = l_Lean_logAt___at___Lean_log___at___Lean_logError___at___Lean_inferDefEqAttr_spec__1_spec__1_spec__1___closed__0; x_154 = l_Lean_Option_get___at_____private_Lean_Util_Profile_0__Lean_get__profiler_spec__0(x_145, x_153); lean_dec(x_145); -x_134 = x_150; -x_135 = x_144; +x_134 = x_144; +x_135 = x_143; x_136 = x_147; -x_137 = x_146; -x_138 = x_143; +x_137 = x_150; +x_138 = x_146; x_139 = x_142; x_140 = x_154; goto block_141; @@ -5142,11 +5183,11 @@ x_163 = lean_unbox(x_158); lean_dec(x_158); lean_inc(x_5); lean_inc(x_3); -x_50 = x_4; +x_50 = x_3; x_51 = x_161; -x_52 = x_3; +x_52 = x_5; x_53 = x_2; -x_54 = x_5; +x_54 = x_4; x_55 = x_163; goto block_149; } @@ -5155,11 +5196,11 @@ else lean_dec(x_158); lean_inc(x_5); lean_inc(x_3); -x_50 = x_4; +x_50 = x_3; x_51 = x_161; -x_52 = x_3; +x_52 = x_5; x_53 = x_2; -x_54 = x_5; +x_54 = x_4; x_55 = x_153; goto block_149; } @@ -5206,7 +5247,7 @@ block_18: { lean_object* x_16; lean_object* x_17; x_16 = l___private_Lean_DefEqAttrib_0__Lean_isRflProofCore___redArg___closed__6; -x_17 = l_Lean_TagAttribute_setTag___at___Lean_inferDefEqAttr_spec__0(x_16, x_1, x_14, x_12, x_11, x_13, x_15); +x_17 = l_Lean_TagAttribute_setTag___at___Lean_inferDefEqAttr_spec__0(x_16, x_1, x_13, x_11, x_14, x_12, x_15); return x_17; } block_39: @@ -5214,7 +5255,7 @@ block_39: if (x_26 == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -lean_dec_ref(x_21); +lean_dec_ref(x_20); x_27 = l_Lean_inferDefEqAttr___lam__1___closed__1; lean_inc(x_1); x_28 = l_Lean_MessageData_ofName(x_1); @@ -5225,7 +5266,7 @@ x_30 = l_Lean_inferDefEqAttr___lam__1___closed__3; x_31 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_31, 0, x_29); lean_ctor_set(x_31, 1, x_30); -x_32 = l_Lean_Exception_toMessageData(x_20); +x_32 = l_Lean_Exception_toMessageData(x_24); x_33 = l_Lean_indentD(x_32); x_34 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_34, 0, x_31); @@ -5234,14 +5275,14 @@ x_35 = l_Lean_validateDefEqAttr___lam__0___closed__5; x_36 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_36, 0, x_34); lean_ctor_set(x_36, 1, x_35); -lean_inc_ref(x_19); -x_37 = l_Lean_logError___at___Lean_inferDefEqAttr_spec__1(x_36, x_25, x_22, x_19, x_24, x_23); +lean_inc_ref(x_25); +x_37 = l_Lean_logError___at___Lean_inferDefEqAttr_spec__1(x_36, x_23, x_19, x_25, x_22, x_21); x_38 = lean_ctor_get(x_37, 1); lean_inc(x_38); lean_dec_ref(x_37); x_11 = x_19; x_12 = x_22; -x_13 = x_24; +x_13 = x_23; x_14 = x_25; x_15 = x_38; goto block_18; @@ -5249,12 +5290,12 @@ goto block_18; else { lean_dec_ref(x_25); -lean_dec(x_24); +lean_dec_ref(x_24); +lean_dec_ref(x_23); lean_dec(x_22); -lean_dec_ref(x_20); -lean_dec_ref(x_19); +lean_dec(x_19); lean_dec(x_1); -return x_21; +return x_20; } } block_49: @@ -5270,24 +5311,24 @@ if (x_47 == 0) uint8_t x_48; x_48 = l_Lean_Exception_isRuntime(x_44); x_19 = x_40; -x_20 = x_44; -x_21 = x_46; +x_20 = x_46; +x_21 = x_45; x_22 = x_41; -x_23 = x_45; -x_24 = x_43; -x_25 = x_42; +x_23 = x_42; +x_24 = x_44; +x_25 = x_43; x_26 = x_48; goto block_39; } else { x_19 = x_40; -x_20 = x_44; -x_21 = x_46; +x_20 = x_46; +x_21 = x_45; x_22 = x_41; -x_23 = x_45; -x_24 = x_43; -x_25 = x_42; +x_23 = x_42; +x_24 = x_44; +x_25 = x_43; x_26 = x_47; goto block_39; } @@ -5295,13 +5336,13 @@ goto block_39; block_149: { lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; -x_56 = lean_st_ref_get(x_54, x_51); +x_56 = lean_st_ref_get(x_52, x_51); x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); x_58 = lean_ctor_get(x_56, 1); lean_inc(x_58); lean_dec_ref(x_56); -x_59 = lean_st_ref_take(x_54, x_58); +x_59 = lean_st_ref_take(x_52, x_58); x_60 = lean_ctor_get(x_59, 0); lean_inc(x_60); x_61 = lean_ctor_get(x_59, 1); @@ -5318,11 +5359,11 @@ x_65 = l_Lean_Environment_setExporting(x_63, x_55); x_66 = l___private_Lean_DefEqAttrib_0__Lean_isDefEqCareful___closed__7; lean_ctor_set(x_60, 5, x_66); lean_ctor_set(x_60, 0, x_65); -x_67 = lean_st_ref_set(x_54, x_60, x_61); +x_67 = lean_st_ref_set(x_52, x_60, x_61); x_68 = lean_ctor_get(x_67, 1); lean_inc(x_68); lean_dec_ref(x_67); -x_69 = lean_st_ref_take(x_52, x_68); +x_69 = lean_st_ref_take(x_50, x_68); x_70 = lean_ctor_get(x_69, 0); lean_inc(x_70); x_71 = lean_ctor_get(x_69, 1); @@ -5336,7 +5377,7 @@ x_73 = lean_ctor_get(x_70, 1); lean_dec(x_73); x_74 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg___closed__4; lean_ctor_set(x_70, 1, x_74); -x_75 = lean_st_ref_set(x_52, x_70, x_71); +x_75 = lean_st_ref_set(x_50, x_70, x_71); x_76 = lean_ctor_get(x_57, 0); lean_inc_ref(x_76); lean_dec(x_57); @@ -5345,10 +5386,10 @@ lean_inc(x_77); lean_dec_ref(x_75); x_78 = lean_ctor_get_uint8(x_76, sizeof(void*)*8); lean_dec_ref(x_76); -lean_inc(x_54); -lean_inc_ref(x_50); +lean_inc(x_52); +lean_inc_ref(x_54); lean_inc(x_1); -x_79 = l_Lean_validateDefEqAttr(x_1, x_50, x_54, x_77); +x_79 = l_Lean_validateDefEqAttr(x_1, x_54, x_52, x_77); if (lean_obj_tag(x_79) == 0) { lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; @@ -5368,8 +5409,8 @@ lean_inc(x_84); lean_dec_ref(x_83); x_11 = x_50; x_12 = x_52; -x_13 = x_54; -x_14 = x_53; +x_13 = x_53; +x_14 = x_54; x_15 = x_84; goto block_18; } @@ -5416,7 +5457,7 @@ lean_ctor_set(x_95, 1, x_94); lean_ctor_set(x_95, 2, x_91); lean_ctor_set(x_95, 3, x_92); lean_ctor_set(x_95, 4, x_93); -x_96 = lean_st_ref_set(x_52, x_95, x_71); +x_96 = lean_st_ref_set(x_50, x_95, x_71); x_97 = lean_ctor_get(x_57, 0); lean_inc_ref(x_97); lean_dec(x_57); @@ -5425,10 +5466,10 @@ lean_inc(x_98); lean_dec_ref(x_96); x_99 = lean_ctor_get_uint8(x_97, sizeof(void*)*8); lean_dec_ref(x_97); -lean_inc(x_54); -lean_inc_ref(x_50); +lean_inc(x_52); +lean_inc_ref(x_54); lean_inc(x_1); -x_100 = l_Lean_validateDefEqAttr(x_1, x_50, x_54, x_98); +x_100 = l_Lean_validateDefEqAttr(x_1, x_54, x_52, x_98); if (lean_obj_tag(x_100) == 0) { lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; @@ -5448,8 +5489,8 @@ lean_inc(x_105); lean_dec_ref(x_104); x_11 = x_50; x_12 = x_52; -x_13 = x_54; -x_14 = x_53; +x_13 = x_53; +x_14 = x_54; x_15 = x_105; goto block_18; } @@ -5510,11 +5551,11 @@ lean_ctor_set(x_121, 5, x_120); lean_ctor_set(x_121, 6, x_116); lean_ctor_set(x_121, 7, x_117); lean_ctor_set(x_121, 8, x_118); -x_122 = lean_st_ref_set(x_54, x_121, x_61); +x_122 = lean_st_ref_set(x_52, x_121, x_61); x_123 = lean_ctor_get(x_122, 1); lean_inc(x_123); lean_dec_ref(x_122); -x_124 = lean_st_ref_take(x_52, x_123); +x_124 = lean_st_ref_take(x_50, x_123); x_125 = lean_ctor_get(x_124, 0); lean_inc(x_125); x_126 = lean_ctor_get(x_124, 1); @@ -5550,7 +5591,7 @@ lean_ctor_set(x_133, 1, x_132); lean_ctor_set(x_133, 2, x_128); lean_ctor_set(x_133, 3, x_129); lean_ctor_set(x_133, 4, x_130); -x_134 = lean_st_ref_set(x_52, x_133, x_126); +x_134 = lean_st_ref_set(x_50, x_133, x_126); x_135 = lean_ctor_get(x_57, 0); lean_inc_ref(x_135); lean_dec(x_57); @@ -5559,10 +5600,10 @@ lean_inc(x_136); lean_dec_ref(x_134); x_137 = lean_ctor_get_uint8(x_135, sizeof(void*)*8); lean_dec_ref(x_135); -lean_inc(x_54); -lean_inc_ref(x_50); +lean_inc(x_52); +lean_inc_ref(x_54); lean_inc(x_1); -x_138 = l_Lean_validateDefEqAttr(x_1, x_50, x_54, x_136); +x_138 = l_Lean_validateDefEqAttr(x_1, x_54, x_52, x_136); if (lean_obj_tag(x_138) == 0) { lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; @@ -5582,8 +5623,8 @@ lean_inc(x_143); lean_dec_ref(x_142); x_11 = x_50; x_12 = x_52; -x_13 = x_54; -x_14 = x_53; +x_13 = x_53; +x_14 = x_54; x_15 = x_143; goto block_18; } @@ -5617,11 +5658,12 @@ goto block_49; LEAN_EXPORT lean_object* l_Lean_inferDefEqAttr(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; +lean_object* x_7; uint8_t x_8; lean_object* x_9; x_7 = lean_alloc_closure((void*)(l_Lean_inferDefEqAttr___lam__1), 6, 1); lean_closure_set(x_7, 0, x_1); -x_8 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(x_7, x_2, x_3, x_4, x_5, x_6); -return x_8; +x_8 = 1; +x_9 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(x_7, x_8, x_2, x_3, x_4, x_5, x_6); +return x_9; } } LEAN_EXPORT lean_object* l_Lean_TagAttribute_setTag___at___Lean_inferDefEqAttr_spec__0___lam__0___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) { diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index 9ede8e3621..f14b52c5ab 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -50233,7 +50233,6 @@ lean_inc(x_239); lean_dec(x_233); lean_inc(x_239); x_240 = l_Lean_isPrivateNameFromImportedModule(x_238, x_239); -lean_dec_ref(x_238); if (x_240 == 0) { lean_free_object(x_234); @@ -50322,7 +50321,6 @@ lean_inc(x_254); lean_dec(x_233); lean_inc(x_254); x_255 = l_Lean_isPrivateNameFromImportedModule(x_253, x_254); -lean_dec_ref(x_253); if (x_255 == 0) { lean_free_object(x_225); @@ -50455,7 +50453,6 @@ lean_inc(x_279); lean_dec(x_273); lean_inc(x_279); x_280 = l_Lean_isPrivateNameFromImportedModule(x_278, x_279); -lean_dec_ref(x_278); if (x_280 == 0) { lean_dec(x_277); @@ -50606,7 +50603,6 @@ lean_inc(x_309); lean_dec(x_303); lean_inc(x_309); x_310 = l_Lean_isPrivateNameFromImportedModule(x_308, x_309); -lean_dec_ref(x_308); if (x_310 == 0) { lean_dec(x_307); @@ -50811,7 +50807,6 @@ lean_inc(x_346); lean_dec(x_340); lean_inc(x_346); x_347 = l_Lean_isPrivateNameFromImportedModule(x_345, x_346); -lean_dec_ref(x_345); if (x_347 == 0) { lean_dec(x_344); diff --git a/stage0/stdlib/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Lean/Elab/BuiltinNotation.c index cd263956fe..01e2fcf103 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Lean/Elab/BuiltinNotation.c @@ -3193,7 +3193,6 @@ x_205 = l_Lean_Syntax_getArgs(x_145); lean_dec(x_145); lean_inc(x_80); x_206 = l_Lean_isPrivateNameFromImportedModule(x_86, x_80); -lean_dec_ref(x_86); if (x_206 == 0) { lean_object* x_207; @@ -4399,7 +4398,6 @@ x_456 = l_Lean_Syntax_getArgs(x_418); lean_dec(x_418); lean_inc(x_376); x_457 = l_Lean_isPrivateNameFromImportedModule(x_382, x_376); -lean_dec_ref(x_382); if (x_457 == 0) { lean_object* x_458; @@ -5160,7 +5158,6 @@ x_634 = l_Lean_Syntax_getArgs(x_596); lean_dec(x_596); lean_inc(x_554); x_635 = l_Lean_isPrivateNameFromImportedModule(x_560, x_554); -lean_dec_ref(x_560); if (x_635 == 0) { lean_object* x_636; diff --git a/stage0/stdlib/Lean/Elab/BuiltinTerm.c b/stage0/stdlib/Lean/Elab/BuiltinTerm.c index 963cce486c..04158dee60 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinTerm.c +++ b/stage0/stdlib/Lean/Elab/BuiltinTerm.c @@ -664,9 +664,8 @@ static lean_object* l_Lean_throwUnknownConstantAt___at___Lean_Elab_Term_elabValu static lean_object* l_Lean_Elab_throwIllFormedSyntax___at___Lean_Elab_Term_elabStrLit_spec__0___redArg___closed__0; lean_object* l_Lean_Elab_Term_withTermInfoContext_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabValueOf___regBuiltin_Lean_Elab_Term_elabValueOf__1(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPrivateDecl___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabDeclName___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabClear___regBuiltin_Lean_Elab_Term_elabClear__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPipeCompletion___regBuiltin_Lean_Elab_Term_elabPipeCompletion_declRange__3(lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at___Lean_Elab_Term_elabOpen_spec__4___closed__18; @@ -676,7 +675,7 @@ static lean_object* l_Lean_Elab_Term_elabCompletion___regBuiltin_Lean_Elab_Term_ static lean_object* l_Lean_Elab_Term_elabLetMVar___regBuiltin_Lean_Elab_Term_elabLetMVar__1___closed__0; static lean_object* l_Lean_Elab_Term_elabClear___regBuiltin_Lean_Elab_Term_elabClear__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabNumLit___regBuiltin_Lean_Elab_Term_elabNumLit__1(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPrivateDecl___lam__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPrivateDecl___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_OpenDecl_elabOpenDecl___at___Lean_Elab_Term_elabOpen_spec__4_spec__43___redArg___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_Lean_Elab_Term_elabLetMVar___regBuiltin_Lean_Elab_Term_elabLetMVar_declRange__3___closed__0; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabOmission___regBuiltin_Lean_Elab_Term_elabOmission__1(lean_object*); @@ -884,6 +883,7 @@ static lean_object* l_Lean_Elab_Term_elabSetOption___closed__1; static lean_object* l_Lean_Elab_Term_elabSetOption___regBuiltin_Lean_Elab_Term_elabSetOption__1___closed__0; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_OpenDecl_elabOpenDecl___at___Lean_Elab_Term_elabOpen_spec__4_spec__47_spec__47___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabCharLit___regBuiltin_Lean_Elab_Term_elabCharLit__1___closed__1; +lean_object* l_Lean_Elab_Term_elabTermAndSynthesize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterTR_loop___at___Lean_filterFieldList___at___Lean_realizeGlobalConstCore_spec__0_spec__0(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabQuotedName___regBuiltin_Lean_Elab_Term_elabQuotedName_declRange__3___closed__1; static lean_object* l_Lean_Elab_Term_elabStrLit___regBuiltin_Lean_Elab_Term_elabStrLit__1___closed__3; @@ -25398,110 +25398,110 @@ x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(x_2, x_3, x_4, x_5, x_1); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPrivateDecl___lam__0(lean_object* x_1, lean_object* x_2, uint8_t 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_EXPORT lean_object* l_Lean_Elab_Term_elabPrivateDecl___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_12; -lean_inc(x_10); -lean_inc_ref(x_9); -lean_inc(x_8); -lean_inc_ref(x_7); -x_12 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_3, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_12) == 0) +lean_object* x_11; +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +lean_inc_ref(x_6); +x_11 = l_Lean_Elab_Term_elabTermAndSynthesize(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_12, 0); +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec_ref(x_12); -x_15 = 0; -lean_inc(x_10); -lean_inc_ref(x_9); -lean_inc(x_8); -lean_inc_ref(x_7); -lean_inc(x_4); -x_16 = l_Lean_Meta_mkAuxDefinitionFor(x_4, x_13, x_15, x_7, x_8, x_9, x_10, x_14); -if (lean_obj_tag(x_16) == 0) +lean_dec_ref(x_11); +x_14 = 0; +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +lean_inc_ref(x_6); +lean_inc(x_3); +x_15 = l_Lean_Meta_mkAuxDefinitionFor(x_3, x_12, x_14, x_6, x_7, x_8, x_9, x_13); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; -x_17 = lean_ctor_get(x_16, 0); +lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec_ref(x_16); -x_19 = 0; -x_20 = l_Lean_Meta_setInlineAttribute(x_4, x_19, x_7, x_8, x_9, x_10, x_18); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -if (lean_obj_tag(x_20) == 0) +lean_dec_ref(x_15); +x_18 = 0; +x_19 = l_Lean_Meta_setInlineAttribute(x_3, x_18, x_6, x_7, x_8, x_9, x_17); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +if (lean_obj_tag(x_19) == 0) { -uint8_t x_21; -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -lean_object* x_22; -x_22 = lean_ctor_get(x_20, 0); -lean_dec(x_22); -lean_ctor_set(x_20, 0, x_17); -return x_20; +lean_object* x_21; +x_21 = lean_ctor_get(x_19, 0); +lean_dec(x_21); +lean_ctor_set(x_19, 0, x_16); +return x_19; } else { -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); -lean_dec(x_20); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_17); -lean_ctor_set(x_24, 1, x_23); -return x_24; +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_dec(x_19); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_16); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } else { -uint8_t x_25; -lean_dec(x_17); -x_25 = !lean_is_exclusive(x_20); -if (x_25 == 0) +uint8_t x_24; +lean_dec(x_16); +x_24 = !lean_is_exclusive(x_19); +if (x_24 == 0) { -return x_20; +return x_19; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_20, 0); -x_27 = lean_ctor_get(x_20, 1); -lean_inc(x_27); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_19, 0); +x_26 = lean_ctor_get(x_19, 1); lean_inc(x_26); -lean_dec(x_20); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -return x_28; +lean_inc(x_25); +lean_dec(x_19); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; } } } else { -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_4); -return x_16; +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_3); +return x_15; } } else { -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_4); -return x_12; +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_3); +return x_11; } } } @@ -25588,7 +25588,7 @@ return x_20; } else { -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_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_21 = l_Lean_Elab_Term_elabPrivateDecl___closed__3; x_22 = l_Lean_mkAuxDeclName___at___Lean_Elab_Term_mkAuxName_spec__0___redArg(x_21, x_8, x_16); x_23 = lean_ctor_get(x_22, 0); @@ -25596,27 +25596,16 @@ lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec_ref(x_22); -x_25 = lean_box(x_11); -x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabPrivateDecl___lam__0___boxed), 11, 4); -lean_closure_set(x_26, 0, x_19); -lean_closure_set(x_26, 1, x_2); -lean_closure_set(x_26, 2, x_25); -lean_closure_set(x_26, 3, x_23); -x_27 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_24); -return x_27; +x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabPrivateDecl___lam__0), 10, 3); +lean_closure_set(x_25, 0, x_19); +lean_closure_set(x_25, 1, x_2); +lean_closure_set(x_25, 2, x_23); +x_26 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(x_25, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_24); +return x_26; } } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPrivateDecl___lam__0___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) { -_start: -{ -uint8_t x_12; lean_object* x_13; -x_12 = lean_unbox(x_3); -x_13 = l_Lean_Elab_Term_elabPrivateDecl___lam__0(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_13; -} -} static lean_object* _init_l_Lean_Elab_Term_elabPrivateDecl___regBuiltin_Lean_Elab_Term_elabPrivateDecl__1___closed__0() { _start: { diff --git a/stage0/stdlib/Lean/Elab/ComputedFields.c b/stage0/stdlib/Lean/Elab/ComputedFields.c index 9744a1be1b..8e2c6c21b7 100644 --- a/stage0/stdlib/Lean/Elab/ComputedFields.c +++ b/stage0/stdlib/Lean/Elab/ComputedFields.c @@ -57,7 +57,7 @@ lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_whnfHeadPred___at___Lean_Elab_ComputedFields_getComputedFieldValue_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_ComputedFields_overrideConstructors_spec__2___redArg(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*); uint8_t lean_usize_dec_eq(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_ComputedFields_computedFieldAttr___regBuiltin_Lean_Elab_ComputedFields_computedFieldAttr_docString__1___closed__0; static lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Elab_ComputedFields_overrideComputedFields_spec__2_spec__2___closed__0; static lean_object* l_Lean_Elab_ComputedFields_overrideCasesOn___lam__2___closed__2; @@ -251,6 +251,7 @@ LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields static lean_object* l_Lean_Elab_ComputedFields_computedFieldAttr___regBuiltin_Lean_Elab_ComputedFields_computedFieldAttr_declRange__3___closed__4; static lean_object* l_Lean_Elab_ComputedFields_initFn___closed__5____x40_Lean_Elab_ComputedFields___hyg_5_; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_ComputedFields_overrideConstructors_spec__0(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_ComputedFields_mkUnsafeCastTo___closed__0; lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_initFn___lam__0____x40_Lean_Elab_ComputedFields___hyg_5____boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -306,11 +307,12 @@ static lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_lo lean_object* l_Lean_Environment_setExporting(lean_object*, uint8_t); static lean_object* l_Lean_getConstInfoCtor___at___Lean_Elab_ComputedFields_isScalarField_spec__0___closed__1; static lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Elab_ComputedFields_validateComputedFields_spec__2_spec__2___closed__0; +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_overrideComputedFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___Lean_Meta_withLocalDeclD___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__3_spec__3___redArg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___at_____private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getConfig___redArg(lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Elab_ComputedFields_validateComputedFields_spec__2_spec__2___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Elab_ComputedFields_overrideComputedFields_spec__2_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -6159,384 +6161,393 @@ return x_64; } } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(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_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_8 = lean_st_ref_get(x_6, x_7); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_9, 0); -lean_inc_ref(x_10); -lean_dec(x_9); -x_11 = lean_ctor_get(x_8, 1); +if (x_2 == 0) +{ +lean_object* x_9; +x_9 = lean_apply_6(x_1, x_3, x_4, x_5, x_6, x_7, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_10 = lean_st_ref_get(x_7, x_8); +x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); -lean_dec_ref(x_8); -x_12 = lean_ctor_get_uint8(x_10, sizeof(void*)*8); +x_12 = lean_ctor_get(x_11, 0); +lean_inc_ref(x_12); +lean_dec(x_11); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); lean_dec_ref(x_10); -x_13 = lean_st_ref_take(x_6, x_11); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec_ref(x_13); -x_16 = !lean_is_exclusive(x_14); -if (x_16 == 0) +x_14 = lean_ctor_get_uint8(x_12, sizeof(void*)*8); +lean_dec_ref(x_12); +x_15 = lean_st_ref_take(x_7, x_13); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec_ref(x_15); +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 0) { -lean_object* x_17; lean_object* x_18; uint8_t 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; uint8_t x_27; -x_17 = lean_ctor_get(x_14, 0); -x_18 = lean_ctor_get(x_14, 5); -lean_dec(x_18); -x_19 = 0; -x_20 = l_Lean_Environment_setExporting(x_17, x_19); -x_21 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__2; -lean_ctor_set(x_14, 5, x_21); -lean_ctor_set(x_14, 0, x_20); -x_22 = lean_st_ref_set(x_6, x_14, x_15); -x_23 = lean_ctor_get(x_22, 1); -lean_inc(x_23); -lean_dec_ref(x_22); -x_24 = lean_st_ref_take(x_4, x_23); -x_25 = lean_ctor_get(x_24, 0); +lean_object* x_19; lean_object* x_20; uint8_t 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; uint8_t x_29; +x_19 = lean_ctor_get(x_16, 0); +x_20 = lean_ctor_get(x_16, 5); +lean_dec(x_20); +x_21 = 0; +x_22 = l_Lean_Environment_setExporting(x_19, x_21); +x_23 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__2; +lean_ctor_set(x_16, 5, x_23); +lean_ctor_set(x_16, 0, x_22); +x_24 = lean_st_ref_set(x_7, x_16, x_17); +x_25 = lean_ctor_get(x_24, 1); lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); lean_dec_ref(x_24); -x_27 = !lean_is_exclusive(x_25); -if (x_27 == 0) +x_26 = lean_st_ref_take(x_5, x_25); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec_ref(x_26); +x_29 = !lean_is_exclusive(x_27); +if (x_29 == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_28 = lean_ctor_get(x_25, 1); -lean_dec(x_28); -x_29 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__7; -lean_ctor_set(x_25, 1, x_29); -x_30 = lean_st_ref_set(x_4, x_25, x_26); -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec_ref(x_30); -lean_inc(x_6); -lean_inc(x_4); -x_32 = lean_apply_6(x_1, x_2, x_3, x_4, x_5, x_6, x_31); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_33 = lean_ctor_get(x_32, 0); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_30 = lean_ctor_get(x_27, 1); +lean_dec(x_30); +x_31 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__7; +lean_ctor_set(x_27, 1, x_31); +x_32 = lean_st_ref_set(x_5, x_27, x_28); +x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); lean_dec_ref(x_32); -lean_inc(x_33); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_33); -x_36 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_6, x_12, x_21, x_4, x_29, x_35, x_34); -lean_dec_ref(x_35); -lean_dec(x_4); -lean_dec(x_6); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) +lean_inc(x_7); +lean_inc(x_5); +x_34 = lean_apply_6(x_1, x_3, x_4, x_5, x_6, x_7, x_33); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_38; -x_38 = lean_ctor_get(x_36, 0); -lean_dec(x_38); -lean_ctor_set(x_36, 0, x_33); -return x_36; +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec_ref(x_34); +lean_inc(x_35); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_35); +x_38 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_7, x_14, x_23, x_5, x_31, x_37, x_36); +lean_dec_ref(x_37); +lean_dec(x_5); +lean_dec(x_7); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +lean_object* x_40; +x_40 = lean_ctor_get(x_38, 0); +lean_dec(x_40); +lean_ctor_set(x_38, 0, x_35); +return x_38; } else { -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_dec(x_36); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_33); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_41 = lean_ctor_get(x_32, 0); +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_38, 1); lean_inc(x_41); -x_42 = lean_ctor_get(x_32, 1); -lean_inc(x_42); -lean_dec_ref(x_32); -x_43 = lean_box(0); -x_44 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_6, x_12, x_21, x_4, x_29, x_43, x_42); -lean_dec(x_4); -lean_dec(x_6); -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) +lean_dec(x_38); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_35); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +else { -lean_object* x_46; -x_46 = lean_ctor_get(x_44, 0); +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_43 = lean_ctor_get(x_34, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_34, 1); +lean_inc(x_44); +lean_dec_ref(x_34); +x_45 = lean_box(0); +x_46 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_7, x_14, x_23, x_5, x_31, x_45, x_44); +lean_dec(x_5); +lean_dec(x_7); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) +{ +lean_object* x_48; +x_48 = lean_ctor_get(x_46, 0); +lean_dec(x_48); +lean_ctor_set_tag(x_46, 1); +lean_ctor_set(x_46, 0, x_43); +return x_46; +} +else +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_46, 1); +lean_inc(x_49); lean_dec(x_46); -lean_ctor_set_tag(x_44, 1); -lean_ctor_set(x_44, 0, x_41); -return x_44; -} -else -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_44, 1); -lean_inc(x_47); -lean_dec(x_44); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_41); -lean_ctor_set(x_48, 1, x_47); -return x_48; +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_43); +lean_ctor_set(x_50, 1, x_49); +return x_50; } } } else { -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; -x_49 = lean_ctor_get(x_25, 0); -x_50 = lean_ctor_get(x_25, 2); -x_51 = lean_ctor_get(x_25, 3); -x_52 = lean_ctor_get(x_25, 4); +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; +x_51 = lean_ctor_get(x_27, 0); +x_52 = lean_ctor_get(x_27, 2); +x_53 = lean_ctor_get(x_27, 3); +x_54 = lean_ctor_get(x_27, 4); +lean_inc(x_54); +lean_inc(x_53); lean_inc(x_52); lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_25); -x_53 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__7; -x_54 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_54, 0, x_49); -lean_ctor_set(x_54, 1, x_53); -lean_ctor_set(x_54, 2, x_50); -lean_ctor_set(x_54, 3, x_51); -lean_ctor_set(x_54, 4, x_52); -x_55 = lean_st_ref_set(x_4, x_54, x_26); -x_56 = lean_ctor_get(x_55, 1); -lean_inc(x_56); -lean_dec_ref(x_55); -lean_inc(x_6); -lean_inc(x_4); -x_57 = lean_apply_6(x_1, x_2, x_3, x_4, x_5, x_6, x_56); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_58 = lean_ctor_get(x_57, 0); +lean_dec(x_27); +x_55 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__7; +x_56 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_56, 0, x_51); +lean_ctor_set(x_56, 1, x_55); +lean_ctor_set(x_56, 2, x_52); +lean_ctor_set(x_56, 3, x_53); +lean_ctor_set(x_56, 4, x_54); +x_57 = lean_st_ref_set(x_5, x_56, x_28); +x_58 = lean_ctor_get(x_57, 1); lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); lean_dec_ref(x_57); -lean_inc(x_58); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_58); -x_61 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_6, x_12, x_21, x_4, x_53, x_60, x_59); -lean_dec_ref(x_60); -lean_dec(x_4); -lean_dec(x_6); -x_62 = lean_ctor_get(x_61, 1); -lean_inc(x_62); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_63 = x_61; +lean_inc(x_7); +lean_inc(x_5); +x_59 = lean_apply_6(x_1, x_3, x_4, x_5, x_6, x_7, x_58); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec_ref(x_59); +lean_inc(x_60); +x_62 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_62, 0, x_60); +x_63 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_7, x_14, x_23, x_5, x_55, x_62, x_61); +lean_dec_ref(x_62); +lean_dec(x_5); +lean_dec(x_7); +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_65 = x_63; } else { - lean_dec_ref(x_61); - x_63 = lean_box(0); + lean_dec_ref(x_63); + x_65 = lean_box(0); } -if (lean_is_scalar(x_63)) { - x_64 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(0, 2, 0); } else { - x_64 = x_63; + x_66 = x_65; } -lean_ctor_set(x_64, 0, x_58); -lean_ctor_set(x_64, 1, x_62); -return x_64; +lean_ctor_set(x_66, 0, x_60); +lean_ctor_set(x_66, 1, x_64); +return x_66; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_65 = lean_ctor_get(x_57, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_57, 1); -lean_inc(x_66); -lean_dec_ref(x_57); -x_67 = lean_box(0); -x_68 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_6, x_12, x_21, x_4, x_53, x_67, x_66); -lean_dec(x_4); -lean_dec(x_6); -x_69 = lean_ctor_get(x_68, 1); -lean_inc(x_69); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_70 = x_68; +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; +x_67 = lean_ctor_get(x_59, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_59, 1); +lean_inc(x_68); +lean_dec_ref(x_59); +x_69 = lean_box(0); +x_70 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_7, x_14, x_23, x_5, x_55, x_69, x_68); +lean_dec(x_5); +lean_dec(x_7); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_72 = x_70; } else { - lean_dec_ref(x_68); - x_70 = lean_box(0); + lean_dec_ref(x_70); + x_72 = lean_box(0); } -if (lean_is_scalar(x_70)) { - x_71 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_72)) { + x_73 = lean_alloc_ctor(1, 2, 0); } else { - x_71 = x_70; - lean_ctor_set_tag(x_71, 1); + x_73 = x_72; + lean_ctor_set_tag(x_73, 1); } -lean_ctor_set(x_71, 0, x_65); -lean_ctor_set(x_71, 1, x_69); -return x_71; +lean_ctor_set(x_73, 0, x_67); +lean_ctor_set(x_73, 1, x_71); +return x_73; } } } else { -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; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_72 = lean_ctor_get(x_14, 0); -x_73 = lean_ctor_get(x_14, 1); -x_74 = lean_ctor_get(x_14, 2); -x_75 = lean_ctor_get(x_14, 3); -x_76 = lean_ctor_get(x_14, 4); -x_77 = lean_ctor_get(x_14, 6); -x_78 = lean_ctor_get(x_14, 7); -x_79 = lean_ctor_get(x_14, 8); +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; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_74 = lean_ctor_get(x_16, 0); +x_75 = lean_ctor_get(x_16, 1); +x_76 = lean_ctor_get(x_16, 2); +x_77 = lean_ctor_get(x_16, 3); +x_78 = lean_ctor_get(x_16, 4); +x_79 = lean_ctor_get(x_16, 6); +x_80 = lean_ctor_get(x_16, 7); +x_81 = lean_ctor_get(x_16, 8); +lean_inc(x_81); +lean_inc(x_80); lean_inc(x_79); lean_inc(x_78); lean_inc(x_77); lean_inc(x_76); lean_inc(x_75); lean_inc(x_74); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_14); -x_80 = 0; -x_81 = l_Lean_Environment_setExporting(x_72, x_80); -x_82 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__2; -x_83 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_73); -lean_ctor_set(x_83, 2, x_74); -lean_ctor_set(x_83, 3, x_75); -lean_ctor_set(x_83, 4, x_76); -lean_ctor_set(x_83, 5, x_82); -lean_ctor_set(x_83, 6, x_77); -lean_ctor_set(x_83, 7, x_78); -lean_ctor_set(x_83, 8, x_79); -x_84 = lean_st_ref_set(x_6, x_83, x_15); -x_85 = lean_ctor_get(x_84, 1); -lean_inc(x_85); -lean_dec_ref(x_84); -x_86 = lean_st_ref_take(x_4, x_85); -x_87 = lean_ctor_get(x_86, 0); +lean_dec(x_16); +x_82 = 0; +x_83 = l_Lean_Environment_setExporting(x_74, x_82); +x_84 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__2; +x_85 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_75); +lean_ctor_set(x_85, 2, x_76); +lean_ctor_set(x_85, 3, x_77); +lean_ctor_set(x_85, 4, x_78); +lean_ctor_set(x_85, 5, x_84); +lean_ctor_set(x_85, 6, x_79); +lean_ctor_set(x_85, 7, x_80); +lean_ctor_set(x_85, 8, x_81); +x_86 = lean_st_ref_set(x_7, x_85, x_17); +x_87 = lean_ctor_get(x_86, 1); lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); lean_dec_ref(x_86); -x_89 = lean_ctor_get(x_87, 0); -lean_inc_ref(x_89); -x_90 = lean_ctor_get(x_87, 2); +x_88 = lean_st_ref_take(x_5, x_87); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); lean_inc(x_90); -x_91 = lean_ctor_get(x_87, 3); +lean_dec_ref(x_88); +x_91 = lean_ctor_get(x_89, 0); lean_inc_ref(x_91); -x_92 = lean_ctor_get(x_87, 4); -lean_inc_ref(x_92); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - lean_ctor_release(x_87, 2); - lean_ctor_release(x_87, 3); - lean_ctor_release(x_87, 4); - x_93 = x_87; +x_92 = lean_ctor_get(x_89, 2); +lean_inc(x_92); +x_93 = lean_ctor_get(x_89, 3); +lean_inc_ref(x_93); +x_94 = lean_ctor_get(x_89, 4); +lean_inc_ref(x_94); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + lean_ctor_release(x_89, 2); + lean_ctor_release(x_89, 3); + lean_ctor_release(x_89, 4); + x_95 = x_89; } else { - lean_dec_ref(x_87); - x_93 = lean_box(0); + lean_dec_ref(x_89); + x_95 = lean_box(0); } -x_94 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__7; -if (lean_is_scalar(x_93)) { - x_95 = lean_alloc_ctor(0, 5, 0); +x_96 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__7; +if (lean_is_scalar(x_95)) { + x_97 = lean_alloc_ctor(0, 5, 0); } else { - x_95 = x_93; + x_97 = x_95; } -lean_ctor_set(x_95, 0, x_89); -lean_ctor_set(x_95, 1, x_94); -lean_ctor_set(x_95, 2, x_90); -lean_ctor_set(x_95, 3, x_91); -lean_ctor_set(x_95, 4, x_92); -x_96 = lean_st_ref_set(x_4, x_95, x_88); -x_97 = lean_ctor_get(x_96, 1); -lean_inc(x_97); -lean_dec_ref(x_96); -lean_inc(x_6); -lean_inc(x_4); -x_98 = lean_apply_6(x_1, x_2, x_3, x_4, x_5, x_6, x_97); -if (lean_obj_tag(x_98) == 0) -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_99 = lean_ctor_get(x_98, 0); +lean_ctor_set(x_97, 0, x_91); +lean_ctor_set(x_97, 1, x_96); +lean_ctor_set(x_97, 2, x_92); +lean_ctor_set(x_97, 3, x_93); +lean_ctor_set(x_97, 4, x_94); +x_98 = lean_st_ref_set(x_5, x_97, x_90); +x_99 = lean_ctor_get(x_98, 1); lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); lean_dec_ref(x_98); -lean_inc(x_99); -x_101 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_101, 0, x_99); -x_102 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_6, x_12, x_82, x_4, x_94, x_101, x_100); -lean_dec_ref(x_101); -lean_dec(x_4); -lean_dec(x_6); -x_103 = lean_ctor_get(x_102, 1); -lean_inc(x_103); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - x_104 = x_102; +lean_inc(x_7); +lean_inc(x_5); +x_100 = lean_apply_6(x_1, x_3, x_4, x_5, x_6, x_7, x_99); +if (lean_obj_tag(x_100) == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); +lean_inc(x_102); +lean_dec_ref(x_100); +lean_inc(x_101); +x_103 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_103, 0, x_101); +x_104 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_7, x_14, x_84, x_5, x_96, x_103, x_102); +lean_dec_ref(x_103); +lean_dec(x_5); +lean_dec(x_7); +x_105 = lean_ctor_get(x_104, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_106 = x_104; } else { - lean_dec_ref(x_102); - x_104 = lean_box(0); + lean_dec_ref(x_104); + x_106 = lean_box(0); } -if (lean_is_scalar(x_104)) { - x_105 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_106)) { + x_107 = lean_alloc_ctor(0, 2, 0); } else { - x_105 = x_104; + x_107 = x_106; } -lean_ctor_set(x_105, 0, x_99); -lean_ctor_set(x_105, 1, x_103); -return x_105; +lean_ctor_set(x_107, 0, x_101); +lean_ctor_set(x_107, 1, x_105); +return x_107; } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_106 = lean_ctor_get(x_98, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_98, 1); -lean_inc(x_107); -lean_dec_ref(x_98); -x_108 = lean_box(0); -x_109 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_6, x_12, x_82, x_4, x_94, x_108, x_107); -lean_dec(x_4); -lean_dec(x_6); -x_110 = lean_ctor_get(x_109, 1); -lean_inc(x_110); -if (lean_is_exclusive(x_109)) { - lean_ctor_release(x_109, 0); - lean_ctor_release(x_109, 1); - x_111 = x_109; +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_108 = lean_ctor_get(x_100, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_100, 1); +lean_inc(x_109); +lean_dec_ref(x_100); +x_110 = lean_box(0); +x_111 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_7, x_14, x_84, x_5, x_96, x_110, x_109); +lean_dec(x_5); +lean_dec(x_7); +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_113 = x_111; } else { - lean_dec_ref(x_109); - x_111 = lean_box(0); + lean_dec_ref(x_111); + x_113 = lean_box(0); } -if (lean_is_scalar(x_111)) { - x_112 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_113)) { + x_114 = lean_alloc_ctor(1, 2, 0); } else { - x_112 = x_111; - lean_ctor_set_tag(x_112, 1); + x_114 = x_113; + lean_ctor_set_tag(x_114, 1); } -lean_ctor_set(x_112, 0, x_106); -lean_ctor_set(x_112, 1, x_110); -return x_112; +lean_ctor_set(x_114, 0, x_108); +lean_ctor_set(x_114, 1, x_112); +return x_114; } } } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_9; -x_9 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_9; +lean_object* x_10; +x_10 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_10; } } LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_ComputedFields_overrideConstructors_spec__2_spec__2___redArg___lam__0(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) { @@ -6628,7 +6639,7 @@ return x_26; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_ComputedFields_overrideConstructors_spec__2_spec__2___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_inc_ref(x_1); x_16 = l_Array_append___redArg(x_1, x_8); lean_inc_ref(x_2); @@ -6638,59 +6649,59 @@ x_18 = lean_alloc_closure((void*)(l_List_forIn_x27_loop___at___List_forIn_x27_lo lean_closure_set(x_18, 0, x_3); lean_closure_set(x_18, 1, x_4); lean_closure_set(x_18, 2, x_17); +x_19 = 1; lean_inc(x_14); lean_inc_ref(x_13); lean_inc(x_12); lean_inc_ref(x_11); lean_inc_ref(x_10); -x_19 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_18, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_19) == 0) +x_20 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_18, x_19, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec_ref(x_19); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec_ref(x_20); lean_inc(x_14); lean_inc_ref(x_13); lean_inc(x_12); lean_inc_ref(x_11); -x_22 = lean_infer_type(x_2, x_11, x_12, x_13, x_14, x_21); -if (lean_obj_tag(x_22) == 0) +x_23 = lean_infer_type(x_2, x_11, x_12, x_13, x_14, x_22); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); +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; +x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); -lean_dec_ref(x_22); -x_25 = l_List_mapM_loop___at___Lean_Elab_ComputedFields_mkImplType_spec__1___lam__0___closed__1; +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec_ref(x_23); +x_26 = l_List_mapM_loop___at___Lean_Elab_ComputedFields_mkImplType_spec__1___lam__0___closed__1; lean_inc(x_3); -x_26 = l_Lean_Name_append(x_3, x_25); -x_27 = l_Lean_Expr_const___override(x_26, x_5); -x_28 = l_Array_append___redArg(x_1, x_20); -lean_dec(x_20); -x_29 = l_Array_append___redArg(x_28, x_8); -x_30 = l_Lean_mkAppN(x_27, x_29); -lean_dec_ref(x_29); +x_27 = l_Lean_Name_append(x_3, x_26); +x_28 = l_Lean_Expr_const___override(x_27, x_5); +x_29 = l_Array_append___redArg(x_1, x_21); +lean_dec(x_21); +x_30 = l_Array_append___redArg(x_29, x_8); +x_31 = l_Lean_mkAppN(x_28, x_30); +lean_dec_ref(x_30); lean_inc(x_14); lean_inc_ref(x_13); lean_inc(x_12); lean_inc_ref(x_11); -x_31 = l_Lean_Elab_ComputedFields_mkUnsafeCastTo(x_9, x_30, x_11, x_12, x_13, x_14, x_24); -if (lean_obj_tag(x_31) == 0) +x_32 = l_Lean_Elab_ComputedFields_mkUnsafeCastTo(x_9, x_31, x_11, x_12, x_13, x_14, x_25); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_32; lean_object* x_33; uint8_t x_34; uint8_t x_35; uint8_t x_36; lean_object* x_37; -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); +lean_object* x_33; lean_object* x_34; uint8_t x_35; uint8_t x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); -lean_dec_ref(x_31); -x_34 = 0; -x_35 = 1; +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec_ref(x_32); +x_35 = 0; x_36 = 1; -x_37 = l_Lean_Meta_mkLambdaFVars(x_16, x_32, x_34, x_35, x_34, x_35, x_36, x_11, x_12, x_13, x_14, x_33); +x_37 = l_Lean_Meta_mkLambdaFVars(x_16, x_33, x_35, x_19, x_35, x_19, x_36, x_11, x_12, x_13, x_14, x_34); if (lean_obj_tag(x_37) == 0) { lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; @@ -6706,7 +6717,7 @@ lean_inc(x_41); x_42 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_42, 0, x_41); lean_ctor_set(x_42, 1, x_6); -lean_ctor_set(x_42, 2, x_23); +lean_ctor_set(x_42, 2, x_24); x_43 = lean_box(0); x_44 = 0; x_45 = lean_box(0); @@ -6847,7 +6858,7 @@ return x_49; else { uint8_t x_67; -lean_dec(x_23); +lean_dec(x_24); lean_dec(x_14); lean_dec_ref(x_13); lean_dec(x_12); @@ -6878,7 +6889,7 @@ return x_70; else { uint8_t x_71; -lean_dec(x_23); +lean_dec(x_24); lean_dec_ref(x_16); lean_dec(x_14); lean_dec_ref(x_13); @@ -6887,19 +6898,19 @@ lean_dec_ref(x_11); lean_dec_ref(x_10); lean_dec(x_6); lean_dec(x_3); -x_71 = !lean_is_exclusive(x_31); +x_71 = !lean_is_exclusive(x_32); if (x_71 == 0) { -return x_31; +return x_32; } else { lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_31, 0); -x_73 = lean_ctor_get(x_31, 1); +x_72 = lean_ctor_get(x_32, 0); +x_73 = lean_ctor_get(x_32, 1); lean_inc(x_73); lean_inc(x_72); -lean_dec(x_31); +lean_dec(x_32); x_74 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_74, 0, x_72); lean_ctor_set(x_74, 1, x_73); @@ -6910,7 +6921,7 @@ return x_74; else { uint8_t x_75; -lean_dec(x_20); +lean_dec(x_21); lean_dec_ref(x_16); lean_dec(x_14); lean_dec_ref(x_13); @@ -6922,19 +6933,19 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec_ref(x_1); -x_75 = !lean_is_exclusive(x_22); +x_75 = !lean_is_exclusive(x_23); if (x_75 == 0) { -return x_22; +return x_23; } else { lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_22, 0); -x_77 = lean_ctor_get(x_22, 1); +x_76 = lean_ctor_get(x_23, 0); +x_77 = lean_ctor_get(x_23, 1); lean_inc(x_77); lean_inc(x_76); -lean_dec(x_22); +lean_dec(x_23); x_78 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_78, 0, x_76); lean_ctor_set(x_78, 1, x_77); @@ -6957,19 +6968,19 @@ lean_dec(x_5); lean_dec(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_79 = !lean_is_exclusive(x_19); +x_79 = !lean_is_exclusive(x_20); if (x_79 == 0) { -return x_19; +return x_20; } else { lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_19, 0); -x_81 = lean_ctor_get(x_19, 1); +x_80 = lean_ctor_get(x_20, 0); +x_81 = lean_ctor_get(x_20, 1); lean_inc(x_81); lean_inc(x_80); -lean_dec(x_19); +lean_dec(x_20); x_82 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_82, 0, x_80); lean_ctor_set(x_82, 1, x_81); @@ -7344,6 +7355,24 @@ lean_dec(x_1); return x_9; } } +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_2); +x_10 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_3); +x_11 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1(x_1, x_2, x_10, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_ComputedFields_overrideConstructors_spec__2_spec__2___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -7804,7 +7833,7 @@ lean_inc_ref(x_18); lean_inc(x_17); lean_inc_ref(x_16); lean_inc_ref(x_15); -x_55 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_54, x_15, x_16, x_17, x_18, x_19, x_41); +x_55 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_54, x_32, x_15, x_16, x_17, x_18, x_19, x_41); if (lean_obj_tag(x_55) == 0) { lean_object* x_56; lean_object* x_57; lean_object* x_58; @@ -8561,7 +8590,7 @@ lean_inc_ref(x_18); lean_inc(x_17); lean_inc_ref(x_16); lean_inc_ref(x_15); -x_175 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_174, x_15, x_16, x_17, x_18, x_19, x_161); +x_175 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_174, x_32, x_15, x_16, x_17, x_18, x_19, x_161); if (lean_obj_tag(x_175) == 0) { lean_object* x_176; lean_object* x_177; lean_object* x_178; @@ -9345,7 +9374,7 @@ lean_inc_ref(x_18); lean_inc(x_17); lean_inc_ref(x_16); lean_inc_ref(x_15); -x_299 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_298, x_15, x_16, x_17, x_18, x_19, x_283); +x_299 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_298, x_32, x_15, x_16, x_17, x_18, x_19, x_283); if (lean_obj_tag(x_299) == 0) { lean_object* x_300; lean_object* x_301; lean_object* x_302; @@ -10230,7 +10259,7 @@ lean_inc_ref(x_18); lean_inc(x_17); lean_inc_ref(x_16); lean_inc_ref(x_15); -x_55 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_54, x_15, x_16, x_17, x_18, x_19, x_41); +x_55 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_54, x_32, x_15, x_16, x_17, x_18, x_19, x_41); if (lean_obj_tag(x_55) == 0) { lean_object* x_56; lean_object* x_57; lean_object* x_58; @@ -10987,7 +11016,7 @@ lean_inc_ref(x_18); lean_inc(x_17); lean_inc_ref(x_16); lean_inc_ref(x_15); -x_175 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_174, x_15, x_16, x_17, x_18, x_19, x_161); +x_175 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_174, x_32, x_15, x_16, x_17, x_18, x_19, x_161); if (lean_obj_tag(x_175) == 0) { lean_object* x_176; lean_object* x_177; lean_object* x_178; @@ -11771,7 +11800,7 @@ lean_inc_ref(x_18); lean_inc(x_17); lean_inc_ref(x_16); lean_inc_ref(x_15); -x_299 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_298, x_15, x_16, x_17, x_18, x_19, x_283); +x_299 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_298, x_32, x_15, x_16, x_17, x_18, x_19, x_283); if (lean_obj_tag(x_299) == 0) { lean_object* x_300; lean_object* x_301; lean_object* x_302; diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index fce0e9619e..a93ba03e35 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -21,7 +21,9 @@ static lean_object* l_Lean_Elab_Command_elabAxiom___lam__2___closed__14; LEAN_EXPORT lean_object* l_Lean_ensureNonAmbiguous___at___Lean_Elab_Command_elabAttr_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabDeclaration___lam__0(lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabDeclaration___regBuiltin_Lean_Elab_Command_elabDeclaration__1___closed__2; +static lean_object* l_Lean_Elab_Command_initFn___closed__6____x40_Lean_Elab_Declaration___hyg_8373_; lean_object* lean_format_pretty(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Declaration___hyg_8373_(lean_object*); static lean_object* l_Lean_Elab_Command_elabAxiom___lam__2___closed__11; static lean_object* l_Lean_Elab_Command_expandNamespacedDeclaration___closed__0; static lean_object* l_Lean_Elab_Command_elabInitialize___regBuiltin_Lean_Elab_Command_elabInitialize__1___closed__0; @@ -31,9 +33,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabAxiom___lam__1___boxed(lean_obj LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabAttr(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_withSaveInfoContext___at___Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_expandMutualPreamble___regBuiltin_Lean_Elab_Command_expandMutualPreamble_declRange__3___closed__1; -static lean_object* l_Lean_Elab_Command_initFn___closed__8____x40_Lean_Elab_Declaration___hyg_8325_; LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMutualElement___regBuiltin_Lean_Elab_Command_expandMutualElement_declRange__3(lean_object*); -static lean_object* l_Lean_Elab_Command_initFn___closed__1____x40_Lean_Elab_Declaration___hyg_8325_; lean_object* l_Lean_Attribute_erase(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStx(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Core_instMonadCoreM___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -49,6 +49,7 @@ static lean_object* l_Lean_Elab_Command_elabAxiom___lam__2___closed__13; lean_object* l_Lean_addBuiltinDocString(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabInitialize___closed__44; LEAN_EXPORT lean_object* l_Lean_Elab_getDeclarationRange_x3f___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_addDeclarationRangesForBuiltin___at___Lean_Elab_Command_elabInitialize_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn___closed__5____x40_Lean_Elab_Declaration___hyg_8373_; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_Command_isMutualInductive___at___Lean_Elab_Command_elabMutual_spec__0_spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_ensureValidNamespace___closed__3; static lean_object* l_Lean_Elab_Command_expandMutualNamespace___regBuiltin_Lean_Elab_Command_expandMutualNamespace_declRange__3___closed__4; @@ -76,7 +77,6 @@ static lean_object* l_Lean_Elab_Command_expandMutualElement___closed__1; static lean_object* l_Lean_Elab_Command_expandMutualPreamble___regBuiltin_Lean_Elab_Command_expandMutualPreamble_declRange__3___closed__2; static lean_object* l_Lean_Elab_Command_elabInitialize___closed__21; static lean_object* l_Lean_Elab_Command_elabDeclaration___lam__2___closed__0; -static lean_object* l_Lean_Elab_Command_initFn___closed__0____x40_Lean_Elab_Declaration___hyg_8325_; static lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__1; static lean_object* l_Lean_Elab_Command_expandNamespacedDeclaration___regBuiltin_Lean_Elab_Command_expandNamespacedDeclaration_declRange__5___closed__2; static lean_object* l_Lean_Elab_Command_elabAxiom___lam__2___closed__6; @@ -85,7 +85,6 @@ lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); static lean_object* l_Lean_Elab_Command_expandNamespacedDeclaration___regBuiltin_Lean_Elab_Command_expandNamespacedDeclaration__1___closed__0; static lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_ensureValidNamespace___closed__1; -static lean_object* l_Lean_Elab_Command_initFn___closed__2____x40_Lean_Elab_Declaration___hyg_8325_; lean_object* lean_array_push(lean_object*, lean_object*); static lean_object* l_Lean_ensureNonAmbiguous___at___Lean_Elab_Command_elabAttr_spec__1___closed__0; static lean_object* l_Lean_Elab_Command_elabInitialize___closed__61; @@ -118,7 +117,6 @@ static lean_object* l_Lean_Elab_Command_elabMutual___regBuiltin_Lean_Elab_Comman LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabDeclaration___regBuiltin_Lean_Elab_Command_elabDeclaration__1(lean_object*); lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_Command_expandMutualNamespace_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn___closed__5____x40_Lean_Elab_Declaration___hyg_8325_; static lean_object* l_Lean_Elab_Command_expandNamespacedDeclaration___regBuiltin_Lean_Elab_Command_expandNamespacedDeclaration_docString__3___closed__0; static lean_object* l_Lean_ensureNonAmbiguous___at___Lean_Elab_Command_elabAttr_spec__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandNamespacedDeclaration___regBuiltin_Lean_Elab_Command_expandNamespacedDeclaration_docString__3(lean_object*); @@ -128,6 +126,7 @@ static lean_object* l_Lean_Elab_Command_elabAxiom___lam__2___closed__3; lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_DeclarationRange_ofStringPositions(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn___closed__7____x40_Lean_Elab_Declaration___hyg_8373_; LEAN_EXPORT uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand(lean_object*); lean_object* l_ReaderT_instApplicativeOfMonad___redArg___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at___Lean_ensureNonAmbiguous___at___Lean_Elab_Command_elabAttr_spec__1_spec__1___closed__3; @@ -159,7 +158,6 @@ static lean_object* l_Lean_Elab_Command_elabInitialize___closed__13; static lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__7; static lean_object* l_Lean_Elab_Command_elabInitialize___closed__29; lean_object* l_Array_mkArray0(lean_object*); -static lean_object* l_Lean_Elab_Command_initFn___closed__6____x40_Lean_Elab_Declaration___hyg_8325_; lean_object* l_Lean_CollectLevelParams_main(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__6; lean_object* l_ReaderT_instMonad___redArg(lean_object*); @@ -183,13 +181,14 @@ lean_object* l_Array_mkArray1___redArg(lean_object*); static lean_object* l_Lean_Elab_Command_elabMutual___regBuiltin_Lean_Elab_Command_elabMutual__1___closed__1; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef_spec__0(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isInstanceDef___boxed(lean_object*); +static lean_object* l_Lean_Elab_Command_initFn___closed__9____x40_Lean_Elab_Declaration___hyg_8373_; LEAN_EXPORT uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_ensureValidNamespace___lam__0(lean_object*); static lean_object* l_Lean_Elab_Command_elabInitialize___closed__0; -static lean_object* l_Lean_Elab_Command_initFn___closed__11____x40_Lean_Elab_Declaration___hyg_8325_; static lean_object* l_Lean_Elab_Command_elabInitialize___closed__39; lean_object* l_Lean_Elab_Term_ensureNoUnassignedMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_isInductiveCommand___at___Lean_Elab_Command_isMutualInductive___at___Lean_Elab_Command_elabMutual_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn___closed__1____x40_Lean_Elab_Declaration___hyg_8373_; static lean_object* l_Lean_Elab_Command_elabInitialize___closed__11; LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_addDeclarationRangesForBuiltin___at___Lean_Elab_Command_elabInitialize_spec__0_spec__0_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_commandElabAttribute; @@ -219,6 +218,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_ LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabInitialize___regBuiltin_Lean_Elab_Command_elabInitialize__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_findCommonPrefix_findCommon(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_withoutCommandIncrementality___redArg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn___closed__2____x40_Lean_Elab_Declaration___hyg_8373_; lean_object* l_instMonadEIO(lean_object*); static lean_object* l_Lean_Elab_Command_elabInitialize___closed__12; static lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand___closed__4; @@ -230,10 +230,8 @@ lean_object* l_Lean_Syntax_TSepArray_getElems___redArg(lean_object*); static lean_object* l_Lean_Elab_Command_expandNamespacedDeclaration___regBuiltin_Lean_Elab_Command_expandNamespacedDeclaration_declRange__5___closed__5; lean_object* l_Lean_MessageData_ofFormat(lean_object*); static lean_object* l_Lean_Elab_Command_elabDeclaration___regBuiltin_Lean_Elab_Command_elabDeclaration_declRange__3___closed__5; -static lean_object* l_Lean_Elab_Command_initFn___closed__4____x40_Lean_Elab_Declaration___hyg_8325_; lean_object* l_Lean_Elab_Term_withDeclName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabInitialize___closed__55; -static lean_object* l_Lean_Elab_Command_initFn___closed__10____x40_Lean_Elab_Declaration___hyg_8325_; static lean_object* l_Lean_Elab_addDeclarationRangesForBuiltin___at___Lean_Elab_Command_elabInitialize_spec__0___closed__1; lean_object* l_Lean_Elab_Term_instMonadTermElabM___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_Command_elabAttr_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -242,6 +240,7 @@ lean_object* l_Lean_Name_replacePrefix(lean_object*, lean_object*, lean_object*) lean_object* l_instInhabitedOfMonad___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMutualPreamble___regBuiltin_Lean_Elab_Command_expandMutualPreamble_declRange__3(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn___closed__3____x40_Lean_Elab_Declaration___hyg_8373_; lean_object* l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_addBuiltinIncrementalElab(lean_object*, lean_object*); uint8_t l_Lean_Elab_Command_isDefLike(lean_object*); @@ -400,7 +399,6 @@ static lean_object* l_panic___at___Lean_ensureNonAmbiguous___at___Lean_Elab_Comm static lean_object* l_Lean_Elab_Command_elabAxiom___lam__2___closed__7; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabInitialize___closed__59; -static lean_object* l_Lean_Elab_Command_initFn___closed__3____x40_Lean_Elab_Declaration___hyg_8325_; uint8_t l_Lean_isAttribute(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__0; lean_object* l_Lean_MapDeclarationExtension_insert___redArg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -441,12 +439,14 @@ lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l_ReaderT_instApplicativeOfMonad___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getRange_x3f(lean_object*, uint8_t); static lean_object* l_Lean_Elab_Command_expandMutualElement___regBuiltin_Lean_Elab_Command_expandMutualElement__1___closed__0; +uint8_t l_Lean_isPrivateName(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_findCommonPrefix(lean_object*); static lean_object* l_Lean_Elab_Command_elabDeclaration___lam__2___closed__1; lean_object* l_Nat_nextPowerOfTwo(lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Command_expandMutualNamespace_spec__1___closed__1; static lean_object* l_Lean_Elab_Command_elabDeclaration___regBuiltin_Lean_Elab_Command_elabDeclaration_declRange__3___closed__3; static lean_object* l_Lean_Elab_Command_elabInitialize___closed__36; +static lean_object* l_Lean_Elab_Command_elabInitialize___closed__66; lean_object* lean_erase_macro_scopes(lean_object*); static lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__11; LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRangesForBuiltin___at___Lean_Elab_Command_elabInitialize_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -455,33 +455,35 @@ static lean_object* l_Lean_Elab_Command_elabDeclaration___closed__0; static lean_object* l_Lean_Elab_Command_expandNamespacedDeclaration___regBuiltin_Lean_Elab_Command_expandNamespacedDeclaration__1___closed__2; static lean_object* l_Lean_Elab_Command_elabAxiom___lam__2___closed__4; lean_object* l_Lean_Elab_elabModifiers___at___Lean_Elab_Command_elabMutualInductive_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn___closed__9____x40_Lean_Elab_Declaration___hyg_8325_; lean_object* l_Lean_mkConstWithLevelParams___at___Lean_Elab_checkNotAlreadyDeclared___at___Lean_Elab_applyVisibility___at___Lean_Elab_mkDeclName___at___Lean_Elab_expandDeclId___at___Lean_Elab_Term_expandDeclId_spec__0_spec__1_spec__3_spec__3_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_expandMutualPreamble___regBuiltin_Lean_Elab_Command_expandMutualPreamble_declRange__3___closed__0; static lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__0; -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Declaration___hyg_8325_(lean_object*); static lean_object* l_Lean_Elab_Command_elabInitialize___closed__63; lean_object* l_Lean_throwError___at_____private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabAttr___regBuiltin_Lean_Elab_Command_elabAttr_declRange__3___closed__2; static lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__1; +static lean_object* l_Lean_Elab_Command_initFn___closed__0____x40_Lean_Elab_Declaration___hyg_8373_; static lean_object* l_Lean_ensureNonAmbiguous___at___Lean_Elab_Command_elabAttr_spec__1___closed__2; size_t lean_usize_add(size_t, size_t); static lean_object* l_panic___at___Lean_ensureNonAmbiguous___at___Lean_Elab_Command_elabAttr_spec__1_spec__1___closed__6; lean_object* l_mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_isBuiltinSimproc___redArg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn___closed__11____x40_Lean_Elab_Declaration___hyg_8373_; static lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__8; +static lean_object* l_Lean_Elab_Command_initFn___closed__4____x40_Lean_Elab_Declaration___hyg_8373_; static lean_object* l_Lean_Elab_Command_elabAxiom___lam__2___closed__0; lean_object* l_Lean_Macro_expandMacro_x3f(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn___closed__12____x40_Lean_Elab_Declaration___hyg_8325_; lean_object* lean_array_uget(lean_object*, size_t); size_t lean_array_size(lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_Command_elabAttr_spec__0___closed__4; static lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__4; static lean_object* l_Lean_Elab_Command_elabAttr___regBuiltin_Lean_Elab_Command_elabAttr__1___closed__1; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Elab_Command_elabAttr_spec__4_spec__4___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn___closed__12____x40_Lean_Elab_Declaration___hyg_8373_; static lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_ensureValidNamespace___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn___closed__8____x40_Lean_Elab_Declaration___hyg_8373_; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_expandMutualElement___regBuiltin_Lean_Elab_Command_expandMutualElement_declRange__3___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMutual(lean_object*, lean_object*, lean_object*, lean_object*); @@ -512,6 +514,7 @@ lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_setDeclIdName(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_expandMutualElement___closed__0; static lean_object* l_Lean_Elab_Command_elabInitialize___closed__40; +static lean_object* l_Lean_Elab_Command_initFn___closed__10____x40_Lean_Elab_Declaration___hyg_8373_; lean_object* l_Lean_mkAtom(lean_object*); lean_object* l_Lean_Elab_Term_withAutoBoundImplicitForbiddenPred(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -520,7 +523,6 @@ lean_object* l_Lean_Elab_Command_getCurrMacroScope___redArg(lean_object*, lean_o uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_isInductiveCommand___at___Lean_Elab_Command_isMutualInductive___at___Lean_Elab_Command_elabMutual_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn___closed__7____x40_Lean_Elab_Declaration___hyg_8325_; static lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_Command_elabAttr_spec__0___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMutualNamespace___regBuiltin_Lean_Elab_Command_expandMutualNamespace_declRange__3(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); @@ -12112,7 +12114,7 @@ static lean_object* _init_l_Lean_Elab_Command_elabInitialize___closed__56() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("declSig", 7, 7); +x_1 = lean_mk_string_unchecked("private", 7, 7); return x_1; } } @@ -12131,16 +12133,26 @@ return x_5; static lean_object* _init_l_Lean_Elab_Command_elabInitialize___closed__58() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("private", 7, 7); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Command_elabInitialize___closed__59() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("declSig", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabInitialize___closed__60() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Command_elabInitialize___closed__58; +x_1 = l_Lean_Elab_Command_elabInitialize___closed__59; x_2 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__2; x_3 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__1; x_4 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__0; @@ -12148,7 +12160,7 @@ x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Command_elabInitialize___closed__60() { +static lean_object* _init_l_Lean_Elab_Command_elabInitialize___closed__61() { _start: { lean_object* x_1; @@ -12156,7 +12168,7 @@ x_1 = lean_mk_string_unchecked("Term", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_elabInitialize___closed__61() { +static lean_object* _init_l_Lean_Elab_Command_elabInitialize___closed__62() { _start: { lean_object* x_1; @@ -12164,16 +12176,16 @@ x_1 = lean_mk_string_unchecked("builtin_init", 12, 12); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_elabInitialize___closed__62() { +static lean_object* _init_l_Lean_Elab_Command_elabInitialize___closed__63() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabInitialize___closed__61; +x_1 = l_Lean_Elab_Command_elabInitialize___closed__62; x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_elabInitialize___closed__63() { +static lean_object* _init_l_Lean_Elab_Command_elabInitialize___closed__64() { _start: { lean_object* x_1; @@ -12181,21 +12193,21 @@ x_1 = lean_mk_string_unchecked("init", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_elabInitialize___closed__64() { +static lean_object* _init_l_Lean_Elab_Command_elabInitialize___closed__65() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabInitialize___closed__63; +x_1 = l_Lean_Elab_Command_elabInitialize___closed__64; x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_elabInitialize___closed__65() { +static lean_object* _init_l_Lean_Elab_Command_elabInitialize___closed__66() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Elab_Command_elabInitialize___closed__12; -x_2 = l_Lean_Elab_Command_elabInitialize___closed__60; +x_2 = l_Lean_Elab_Command_elabInitialize___closed__61; x_3 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__1; x_4 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__0; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); @@ -12223,2300 +12235,2444 @@ return x_10; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_147; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_148; x_11 = lean_unsigned_to_nat(0u); x_12 = l_Lean_Syntax_getArg(x_1, x_11); x_13 = l_Lean_Elab_Command_elabInitialize___closed__3; lean_inc(x_12); -x_147 = l_Lean_Syntax_isOfKind(x_12, x_13); -if (x_147 == 0) +x_148 = l_Lean_Syntax_isOfKind(x_12, x_13); +if (x_148 == 0) { -lean_object* x_148; +lean_object* x_149; lean_dec(x_12); lean_dec(x_3); lean_dec_ref(x_2); lean_dec(x_1); -x_148 = l_Lean_Elab_throwUnsupportedSyntax___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__5___redArg(x_4); -return x_148; +x_149 = l_Lean_Elab_throwUnsupportedSyntax___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__5___redArg(x_4); +return x_149; } else { -lean_object* x_149; lean_object* x_150; lean_object* x_151; uint8_t 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_194; lean_object* x_195; uint8_t x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; uint8_t 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; uint8_t 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; uint8_t x_312; 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_object* x_319; lean_object* x_335; uint8_t x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; -x_149 = lean_unsigned_to_nat(1u); -x_150 = l_Lean_Syntax_getArg(x_1, x_149); -x_151 = l_Lean_Elab_Command_elabInitialize___closed__39; -lean_inc(x_150); -x_152 = l_Lean_Syntax_isOfKind(x_150, x_151); -if (x_152 == 0) +lean_object* x_150; lean_object* x_151; lean_object* x_152; uint8_t 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_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; uint8_t x_202; lean_object* x_203; lean_object* x_204; lean_object* x_240; lean_object* x_241; lean_object* x_242; uint8_t x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; uint8_t x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_288; lean_object* x_289; lean_object* x_290; uint8_t 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_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; uint8_t x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; uint8_t x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; uint8_t x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; +x_150 = lean_unsigned_to_nat(1u); +x_151 = l_Lean_Syntax_getArg(x_1, x_150); +x_152 = l_Lean_Elab_Command_elabInitialize___closed__39; +lean_inc(x_151); +x_153 = l_Lean_Syntax_isOfKind(x_151, x_152); +if (x_153 == 0) { -lean_object* x_390; -lean_dec(x_150); +lean_object* x_449; +lean_dec(x_151); lean_dec(x_12); lean_dec(x_3); lean_dec_ref(x_2); lean_dec(x_1); -x_390 = l_Lean_Elab_throwUnsupportedSyntax___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__5___redArg(x_4); -return x_390; +x_449 = l_Lean_Elab_throwUnsupportedSyntax___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__5___redArg(x_4); +return x_449; } else { -lean_object* x_391; lean_object* x_392; uint8_t x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_487; uint8_t x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; uint8_t x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_567; lean_object* x_568; uint8_t x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_597; uint8_t x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_621; uint8_t x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_653; uint8_t x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_734; uint8_t x_735; -x_391 = lean_unsigned_to_nat(2u); -x_734 = l_Lean_Syntax_getArg(x_1, x_391); -x_735 = l_Lean_Syntax_isNone(x_734); -if (x_735 == 0) +lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; uint8_t x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; uint8_t x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; uint8_t x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; uint8_t x_636; lean_object* x_637; lean_object* x_638; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; uint8_t x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; uint8_t x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; uint8_t x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_793; uint8_t x_794; +x_450 = lean_unsigned_to_nat(2u); +x_793 = l_Lean_Syntax_getArg(x_1, x_450); +x_794 = l_Lean_Syntax_isNone(x_793); +if (x_794 == 0) { -lean_object* x_736; uint8_t x_737; -x_736 = lean_unsigned_to_nat(3u); -lean_inc(x_734); -x_737 = l_Lean_Syntax_matchesNull(x_734, x_736); -if (x_737 == 0) +lean_object* x_795; uint8_t x_796; +x_795 = lean_unsigned_to_nat(3u); +lean_inc(x_793); +x_796 = l_Lean_Syntax_matchesNull(x_793, x_795); +if (x_796 == 0) { -lean_object* x_738; -lean_dec(x_734); -lean_dec(x_150); +lean_object* x_797; +lean_dec(x_793); +lean_dec(x_151); lean_dec(x_12); lean_dec(x_3); lean_dec_ref(x_2); lean_dec(x_1); -x_738 = l_Lean_Elab_throwUnsupportedSyntax___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__5___redArg(x_4); -return x_738; +x_797 = l_Lean_Elab_throwUnsupportedSyntax___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__5___redArg(x_4); +return x_797; } else { -lean_object* x_739; lean_object* x_740; uint8_t x_741; -x_739 = l_Lean_Syntax_getArg(x_734, x_149); -x_740 = l_Lean_Elab_Command_elabInitialize___closed__65; -lean_inc(x_739); -x_741 = l_Lean_Syntax_isOfKind(x_739, x_740); -if (x_741 == 0) +lean_object* x_798; lean_object* x_799; uint8_t x_800; +x_798 = l_Lean_Syntax_getArg(x_793, x_150); +x_799 = l_Lean_Elab_Command_elabInitialize___closed__66; +lean_inc(x_798); +x_800 = l_Lean_Syntax_isOfKind(x_798, x_799); +if (x_800 == 0) { -lean_object* x_742; -lean_dec(x_739); -lean_dec(x_734); -lean_dec(x_150); +lean_object* x_801; +lean_dec(x_798); +lean_dec(x_793); +lean_dec(x_151); lean_dec(x_12); lean_dec(x_3); lean_dec_ref(x_2); lean_dec(x_1); -x_742 = l_Lean_Elab_throwUnsupportedSyntax___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__5___redArg(x_4); -return x_742; +x_801 = l_Lean_Elab_throwUnsupportedSyntax___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__5___redArg(x_4); +return x_801; } else { -lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; -x_743 = l_Lean_Syntax_getArg(x_734, x_11); -lean_dec(x_734); -x_744 = l_Lean_Syntax_getArg(x_739, x_149); -lean_dec(x_739); -x_745 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_745, 0, x_743); -x_746 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_746, 0, x_744); -x_721 = x_745; -x_722 = x_746; -x_723 = x_2; -x_724 = x_3; -x_725 = x_4; -goto block_733; +lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; +x_802 = l_Lean_Syntax_getArg(x_793, x_11); +lean_dec(x_793); +x_803 = l_Lean_Syntax_getArg(x_798, x_150); +lean_dec(x_798); +x_804 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_804, 0, x_802); +x_805 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_805, 0, x_803); +x_780 = x_804; +x_781 = x_805; +x_782 = x_2; +x_783 = x_3; +x_784 = x_4; +goto block_792; } } } else { -lean_object* x_747; -lean_dec(x_734); -x_747 = lean_box(0); -x_721 = x_747; -x_722 = x_747; -x_723 = x_2; -x_724 = x_3; -x_725 = x_4; -goto block_733; +lean_object* x_806; +lean_dec(x_793); +x_806 = lean_box(0); +x_780 = x_806; +x_781 = x_806; +x_782 = x_2; +x_783 = x_3; +x_784 = x_4; +goto block_792; } -block_486: +block_545: { -lean_object* x_413; uint8_t x_414; -x_413 = l_Lean_Elab_Command_getScope___redArg(x_401, x_399); -x_414 = !lean_is_exclusive(x_413); -if (x_414 == 0) +lean_object* x_472; uint8_t x_473; +x_472 = l_Lean_Elab_Command_getScope___redArg(x_453, x_463); +x_473 = !lean_is_exclusive(x_472); +if (x_473 == 0) { -lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; -x_415 = lean_ctor_get(x_413, 0); -x_416 = lean_ctor_get(x_413, 1); -x_417 = lean_ctor_get(x_415, 2); -lean_inc(x_417); -lean_dec(x_415); -lean_inc_ref(x_410); -x_418 = l_Array_append___redArg(x_410, x_412); -lean_dec_ref(x_412); -lean_inc(x_402); -lean_inc(x_395); -x_419 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_419, 0, x_395); -lean_ctor_set(x_419, 1, x_402); -lean_ctor_set(x_419, 2, x_418); -lean_inc_n(x_406, 3); -lean_inc(x_395); -x_420 = l_Lean_Syntax_node6(x_395, x_13, x_411, x_408, x_419, x_406, x_406, x_406); -x_421 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__5; -x_422 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__6; -lean_inc(x_395); -lean_ctor_set_tag(x_413, 2); -lean_ctor_set(x_413, 1, x_421); -lean_ctor_set(x_413, 0, x_395); -x_423 = l_Lean_Elab_Command_elabInitialize___closed__6; -x_424 = l_Lean_Elab_Command_expandMutualElement___closed__0; -x_425 = lean_box(2); -lean_inc(x_402); -x_426 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_426, 0, x_425); -lean_ctor_set(x_426, 1, x_402); -lean_ctor_set(x_426, 2, x_424); -x_427 = l_Lean_Elab_addDeclarationRangesForBuiltin___at___Lean_Elab_Command_elabInitialize_spec__0___closed__2; -lean_inc(x_403); -x_428 = lean_array_push(x_427, x_403); -x_429 = lean_array_push(x_428, x_426); -x_430 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_430, 0, x_425); -lean_ctor_set(x_430, 1, x_423); -lean_ctor_set(x_430, 2, x_429); -x_431 = l_Lean_Elab_Command_elabInitialize___closed__57; -x_432 = l_Lean_Elab_Command_elabInitialize___closed__12; -lean_inc_ref(x_405); -x_433 = l_Lean_Name_mkStr4(x_5, x_6, x_405, x_432); -x_434 = l_Lean_Elab_Command_elabInitialize___closed__13; -lean_inc(x_395); -x_435 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_435, 0, x_395); -lean_ctor_set(x_435, 1, x_434); -lean_inc(x_404); -lean_inc(x_433); -lean_inc(x_395); -x_436 = l_Lean_Syntax_node2(x_395, x_433, x_435, x_404); -lean_inc(x_406); -lean_inc(x_395); -x_437 = l_Lean_Syntax_node2(x_395, x_431, x_406, x_436); -lean_inc(x_395); -x_438 = l_Lean_Syntax_node4(x_395, x_422, x_413, x_430, x_437, x_406); -lean_inc(x_394); -x_439 = l_Lean_Syntax_node2(x_395, x_394, x_420, x_438); -x_440 = l_Lean_Syntax_getId(x_403); -lean_dec(x_403); -x_441 = l_Lean_Name_append(x_417, x_440); -if (lean_obj_tag(x_407) == 0) -{ -x_335 = x_392; -x_336 = x_393; -x_337 = x_394; -x_338 = x_439; -x_339 = x_396; -x_340 = x_398; -x_341 = x_397; -x_342 = x_434; -x_343 = x_423; -x_344 = x_402; -x_345 = x_433; -x_346 = x_400; -x_347 = x_404; -x_348 = x_405; -x_349 = x_410; -x_350 = x_441; -x_351 = x_409; -x_352 = x_401; -x_353 = x_416; -goto block_389; -} -else -{ -lean_object* x_442; lean_object* x_443; uint8_t x_444; -x_442 = lean_ctor_get(x_407, 0); -lean_inc(x_442); -lean_dec(x_407); -x_443 = l_Lean_Elab_Command_elabInitialize___closed__59; -x_444 = l_Lean_Syntax_isOfKind(x_442, x_443); -if (x_444 == 0) -{ -x_335 = x_392; -x_336 = x_393; -x_337 = x_394; -x_338 = x_439; -x_339 = x_396; -x_340 = x_398; -x_341 = x_397; -x_342 = x_434; -x_343 = x_423; -x_344 = x_402; -x_345 = x_433; -x_346 = x_400; -x_347 = x_404; -x_348 = x_405; -x_349 = x_410; -x_350 = x_441; -x_351 = x_409; -x_352 = x_401; -x_353 = x_416; -goto block_389; -} -else -{ -lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; -x_445 = lean_st_ref_get(x_401, x_416); -x_446 = lean_ctor_get(x_445, 0); -lean_inc(x_446); -x_447 = lean_ctor_get(x_445, 1); -lean_inc(x_447); -lean_dec_ref(x_445); -x_448 = lean_ctor_get(x_446, 0); -lean_inc_ref(x_448); -lean_dec(x_446); -x_449 = l_Lean_mkPrivateName(x_448, x_441); -lean_dec_ref(x_448); -x_335 = x_392; -x_336 = x_393; -x_337 = x_394; -x_338 = x_439; -x_339 = x_396; -x_340 = x_398; -x_341 = x_397; -x_342 = x_434; -x_343 = x_423; -x_344 = x_402; -x_345 = x_433; -x_346 = x_400; -x_347 = x_404; -x_348 = x_405; -x_349 = x_410; -x_350 = x_449; -x_351 = x_409; -x_352 = x_401; -x_353 = x_447; -goto block_389; -} -} -} -else -{ -lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; -x_450 = lean_ctor_get(x_413, 0); -x_451 = lean_ctor_get(x_413, 1); +lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; +x_474 = lean_ctor_get(x_472, 0); +x_475 = lean_ctor_get(x_472, 1); +x_476 = lean_ctor_get(x_474, 2); +lean_inc(x_476); +lean_dec(x_474); +lean_inc_ref(x_457); +x_477 = l_Array_append___redArg(x_457, x_471); +lean_dec_ref(x_471); +lean_inc(x_470); lean_inc(x_451); -lean_inc(x_450); -lean_dec(x_413); -x_452 = lean_ctor_get(x_450, 2); -lean_inc(x_452); -lean_dec(x_450); -lean_inc_ref(x_410); -x_453 = l_Array_append___redArg(x_410, x_412); -lean_dec_ref(x_412); -lean_inc(x_402); -lean_inc(x_395); -x_454 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_454, 0, x_395); -lean_ctor_set(x_454, 1, x_402); -lean_ctor_set(x_454, 2, x_453); -lean_inc_n(x_406, 3); -lean_inc(x_395); -x_455 = l_Lean_Syntax_node6(x_395, x_13, x_411, x_408, x_454, x_406, x_406, x_406); -x_456 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__5; -x_457 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__6; -lean_inc(x_395); -x_458 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_458, 0, x_395); -lean_ctor_set(x_458, 1, x_456); -x_459 = l_Lean_Elab_Command_elabInitialize___closed__6; -x_460 = l_Lean_Elab_Command_expandMutualElement___closed__0; -x_461 = lean_box(2); -lean_inc(x_402); -x_462 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_462, 0, x_461); -lean_ctor_set(x_462, 1, x_402); -lean_ctor_set(x_462, 2, x_460); -x_463 = l_Lean_Elab_addDeclarationRangesForBuiltin___at___Lean_Elab_Command_elabInitialize_spec__0___closed__2; -lean_inc(x_403); -x_464 = lean_array_push(x_463, x_403); -x_465 = lean_array_push(x_464, x_462); -x_466 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_466, 0, x_461); -lean_ctor_set(x_466, 1, x_459); -lean_ctor_set(x_466, 2, x_465); -x_467 = l_Lean_Elab_Command_elabInitialize___closed__57; -x_468 = l_Lean_Elab_Command_elabInitialize___closed__12; -lean_inc_ref(x_405); -x_469 = l_Lean_Name_mkStr4(x_5, x_6, x_405, x_468); -x_470 = l_Lean_Elab_Command_elabInitialize___closed__13; -lean_inc(x_395); -x_471 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_471, 0, x_395); -lean_ctor_set(x_471, 1, x_470); -lean_inc(x_404); +x_478 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_478, 0, x_451); +lean_ctor_set(x_478, 1, x_470); +lean_ctor_set(x_478, 2, x_477); +lean_inc_n(x_468, 3); +lean_inc(x_451); +x_479 = l_Lean_Syntax_node6(x_451, x_13, x_460, x_461, x_478, x_468, x_468, x_468); +x_480 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__5; +x_481 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__6; +lean_inc(x_451); +lean_ctor_set_tag(x_472, 2); +lean_ctor_set(x_472, 1, x_480); +lean_ctor_set(x_472, 0, x_451); +x_482 = l_Lean_Elab_Command_elabInitialize___closed__6; +x_483 = l_Lean_Elab_Command_expandMutualElement___closed__0; +x_484 = lean_box(2); +lean_inc(x_470); +x_485 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_485, 0, x_484); +lean_ctor_set(x_485, 1, x_470); +lean_ctor_set(x_485, 2, x_483); +x_486 = l_Lean_Elab_addDeclarationRangesForBuiltin___at___Lean_Elab_Command_elabInitialize_spec__0___closed__2; +lean_inc(x_459); +x_487 = lean_array_push(x_486, x_459); +x_488 = lean_array_push(x_487, x_485); +x_489 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_489, 0, x_484); +lean_ctor_set(x_489, 1, x_482); +lean_ctor_set(x_489, 2, x_488); +x_490 = l_Lean_Elab_Command_elabInitialize___closed__60; +x_491 = l_Lean_Elab_Command_elabInitialize___closed__12; +lean_inc_ref(x_452); +x_492 = l_Lean_Name_mkStr4(x_5, x_6, x_452, x_491); +x_493 = l_Lean_Elab_Command_elabInitialize___closed__13; +lean_inc(x_451); +x_494 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_494, 0, x_451); +lean_ctor_set(x_494, 1, x_493); +lean_inc(x_465); +lean_inc(x_492); +lean_inc(x_451); +x_495 = l_Lean_Syntax_node2(x_451, x_492, x_494, x_465); +lean_inc(x_468); +lean_inc(x_451); +x_496 = l_Lean_Syntax_node2(x_451, x_490, x_468, x_495); +lean_inc(x_451); +x_497 = l_Lean_Syntax_node4(x_451, x_481, x_472, x_489, x_496, x_468); lean_inc(x_469); -lean_inc(x_395); -x_472 = l_Lean_Syntax_node2(x_395, x_469, x_471, x_404); -lean_inc(x_406); -lean_inc(x_395); -x_473 = l_Lean_Syntax_node2(x_395, x_467, x_406, x_472); -lean_inc(x_395); -x_474 = l_Lean_Syntax_node4(x_395, x_457, x_458, x_466, x_473, x_406); -lean_inc(x_394); -x_475 = l_Lean_Syntax_node2(x_395, x_394, x_455, x_474); -x_476 = l_Lean_Syntax_getId(x_403); -lean_dec(x_403); -x_477 = l_Lean_Name_append(x_452, x_476); -if (lean_obj_tag(x_407) == 0) +x_498 = l_Lean_Syntax_node2(x_451, x_469, x_479, x_497); +x_499 = l_Lean_Syntax_getId(x_459); +lean_dec(x_459); +x_500 = l_Lean_Name_append(x_476, x_499); +if (lean_obj_tag(x_467) == 0) { -x_335 = x_392; -x_336 = x_393; -x_337 = x_394; -x_338 = x_475; -x_339 = x_396; -x_340 = x_398; -x_341 = x_397; -x_342 = x_470; -x_343 = x_459; -x_344 = x_402; -x_345 = x_469; -x_346 = x_400; -x_347 = x_404; -x_348 = x_405; -x_349 = x_410; -x_350 = x_477; -x_351 = x_409; -x_352 = x_401; -x_353 = x_451; -goto block_389; +x_422 = x_452; +x_423 = x_455; +x_424 = x_457; +x_425 = x_456; +x_426 = x_458; +x_427 = x_492; +x_428 = x_462; +x_429 = x_465; +x_430 = x_464; +x_431 = x_493; +x_432 = x_466; +x_433 = x_498; +x_434 = x_469; +x_435 = x_482; +x_436 = x_470; +x_437 = x_500; +x_438 = x_454; +x_439 = x_453; +x_440 = x_475; +goto block_448; } else { -lean_object* x_478; lean_object* x_479; uint8_t x_480; -x_478 = lean_ctor_get(x_407, 0); -lean_inc(x_478); -lean_dec(x_407); -x_479 = l_Lean_Elab_Command_elabInitialize___closed__59; -x_480 = l_Lean_Syntax_isOfKind(x_478, x_479); -if (x_480 == 0) +lean_object* x_501; lean_object* x_502; uint8_t x_503; +x_501 = lean_ctor_get(x_467, 0); +lean_inc(x_501); +lean_dec(x_467); +x_502 = l_Lean_Elab_Command_elabInitialize___closed__57; +x_503 = l_Lean_Syntax_isOfKind(x_501, x_502); +if (x_503 == 0) { -x_335 = x_392; -x_336 = x_393; -x_337 = x_394; -x_338 = x_475; -x_339 = x_396; -x_340 = x_398; -x_341 = x_397; -x_342 = x_470; -x_343 = x_459; -x_344 = x_402; -x_345 = x_469; -x_346 = x_400; -x_347 = x_404; -x_348 = x_405; -x_349 = x_410; -x_350 = x_477; -x_351 = x_409; -x_352 = x_401; -x_353 = x_451; -goto block_389; +x_422 = x_452; +x_423 = x_455; +x_424 = x_457; +x_425 = x_456; +x_426 = x_458; +x_427 = x_492; +x_428 = x_462; +x_429 = x_465; +x_430 = x_464; +x_431 = x_493; +x_432 = x_466; +x_433 = x_498; +x_434 = x_469; +x_435 = x_482; +x_436 = x_470; +x_437 = x_500; +x_438 = x_454; +x_439 = x_453; +x_440 = x_475; +goto block_448; } else { -lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; -x_481 = lean_st_ref_get(x_401, x_451); -x_482 = lean_ctor_get(x_481, 0); -lean_inc(x_482); -x_483 = lean_ctor_get(x_481, 1); -lean_inc(x_483); -lean_dec_ref(x_481); -x_484 = lean_ctor_get(x_482, 0); -lean_inc_ref(x_484); -lean_dec(x_482); -x_485 = l_Lean_mkPrivateName(x_484, x_477); -lean_dec_ref(x_484); -x_335 = x_392; -x_336 = x_393; -x_337 = x_394; -x_338 = x_475; -x_339 = x_396; -x_340 = x_398; -x_341 = x_397; -x_342 = x_470; -x_343 = x_459; -x_344 = x_402; -x_345 = x_469; -x_346 = x_400; -x_347 = x_404; -x_348 = x_405; -x_349 = x_410; -x_350 = x_485; -x_351 = x_409; -x_352 = x_401; -x_353 = x_483; -goto block_389; +lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; +x_504 = lean_st_ref_get(x_453, x_475); +x_505 = lean_ctor_get(x_504, 0); +lean_inc(x_505); +x_506 = lean_ctor_get(x_504, 1); +lean_inc(x_506); +lean_dec_ref(x_504); +x_507 = lean_ctor_get(x_505, 0); +lean_inc_ref(x_507); +lean_dec(x_505); +x_508 = l_Lean_mkPrivateName(x_507, x_500); +lean_dec_ref(x_507); +x_422 = x_452; +x_423 = x_455; +x_424 = x_457; +x_425 = x_456; +x_426 = x_458; +x_427 = x_492; +x_428 = x_462; +x_429 = x_465; +x_430 = x_464; +x_431 = x_493; +x_432 = x_466; +x_433 = x_498; +x_434 = x_469; +x_435 = x_482; +x_436 = x_470; +x_437 = x_508; +x_438 = x_454; +x_439 = x_453; +x_440 = x_506; +goto block_448; } } } -} -block_520: -{ -lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; -x_510 = l_Array_append___redArg(x_505, x_509); -lean_dec_ref(x_509); -lean_inc(x_498); -lean_inc(x_490); -x_511 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_511, 0, x_490); -lean_ctor_set(x_511, 1, x_498); -lean_ctor_set(x_511, 2, x_510); -x_512 = l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_Command_elabAttr_spec__0___closed__4; -lean_inc(x_490); -x_513 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_513, 0, x_490); -lean_ctor_set(x_513, 1, x_512); -lean_inc(x_490); -x_514 = l_Lean_Syntax_node3(x_490, x_494, x_502, x_511, x_513); -lean_inc(x_498); -lean_inc(x_490); -x_515 = l_Lean_Syntax_node1(x_490, x_498, x_514); -if (lean_obj_tag(x_504) == 0) -{ -lean_object* x_516; -x_516 = l_Lean_Elab_Command_elabInitialize___closed__44; -x_392 = x_487; -x_393 = x_488; -x_394 = x_489; -x_395 = x_490; -x_396 = x_491; -x_397 = x_492; -x_398 = x_493; -x_399 = x_495; -x_400 = x_499; -x_401 = x_497; -x_402 = x_498; -x_403 = x_496; -x_404 = x_500; -x_405 = x_501; -x_406 = x_503; -x_407 = x_504; -x_408 = x_515; -x_409 = x_508; -x_410 = x_507; -x_411 = x_506; -x_412 = x_516; -goto block_486; -} else { -lean_object* x_517; lean_object* x_518; lean_object* x_519; -x_517 = lean_ctor_get(x_504, 0); -lean_inc(x_517); -x_518 = l_Lean_Elab_Command_elabInitialize___closed__44; -x_519 = lean_array_push(x_518, x_517); -x_392 = x_487; -x_393 = x_488; -x_394 = x_489; -x_395 = x_490; -x_396 = x_491; -x_397 = x_492; -x_398 = x_493; -x_399 = x_495; -x_400 = x_499; -x_401 = x_497; -x_402 = x_498; -x_403 = x_496; -x_404 = x_500; -x_405 = x_501; -x_406 = x_503; -x_407 = x_504; -x_408 = x_515; -x_409 = x_508; -x_410 = x_507; -x_411 = x_506; -x_412 = x_519; -goto block_486; -} -} -block_566: +lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; +x_509 = lean_ctor_get(x_472, 0); +x_510 = lean_ctor_get(x_472, 1); +lean_inc(x_510); +lean_inc(x_509); +lean_dec(x_472); +x_511 = lean_ctor_get(x_509, 2); +lean_inc(x_511); +lean_dec(x_509); +lean_inc_ref(x_457); +x_512 = l_Array_append___redArg(x_457, x_471); +lean_dec_ref(x_471); +lean_inc(x_470); +lean_inc(x_451); +x_513 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_513, 0, x_451); +lean_ctor_set(x_513, 1, x_470); +lean_ctor_set(x_513, 2, x_512); +lean_inc_n(x_468, 3); +lean_inc(x_451); +x_514 = l_Lean_Syntax_node6(x_451, x_13, x_460, x_461, x_513, x_468, x_468, x_468); +x_515 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__5; +x_516 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__6; +lean_inc(x_451); +x_517 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_517, 0, x_451); +lean_ctor_set(x_517, 1, x_515); +x_518 = l_Lean_Elab_Command_elabInitialize___closed__6; +x_519 = l_Lean_Elab_Command_expandMutualElement___closed__0; +x_520 = lean_box(2); +lean_inc(x_470); +x_521 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_521, 0, x_520); +lean_ctor_set(x_521, 1, x_470); +lean_ctor_set(x_521, 2, x_519); +x_522 = l_Lean_Elab_addDeclarationRangesForBuiltin___at___Lean_Elab_Command_elabInitialize_spec__0___closed__2; +lean_inc(x_459); +x_523 = lean_array_push(x_522, x_459); +x_524 = lean_array_push(x_523, x_521); +x_525 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_525, 0, x_520); +lean_ctor_set(x_525, 1, x_518); +lean_ctor_set(x_525, 2, x_524); +x_526 = l_Lean_Elab_Command_elabInitialize___closed__60; +x_527 = l_Lean_Elab_Command_elabInitialize___closed__12; +lean_inc_ref(x_452); +x_528 = l_Lean_Name_mkStr4(x_5, x_6, x_452, x_527); +x_529 = l_Lean_Elab_Command_elabInitialize___closed__13; +lean_inc(x_451); +x_530 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_530, 0, x_451); +lean_ctor_set(x_530, 1, x_529); +lean_inc(x_465); +lean_inc(x_528); +lean_inc(x_451); +x_531 = l_Lean_Syntax_node2(x_451, x_528, x_530, x_465); +lean_inc(x_468); +lean_inc(x_451); +x_532 = l_Lean_Syntax_node2(x_451, x_526, x_468, x_531); +lean_inc(x_451); +x_533 = l_Lean_Syntax_node4(x_451, x_516, x_517, x_525, x_532, x_468); +lean_inc(x_469); +x_534 = l_Lean_Syntax_node2(x_451, x_469, x_514, x_533); +x_535 = l_Lean_Syntax_getId(x_459); +lean_dec(x_459); +x_536 = l_Lean_Name_append(x_511, x_535); +if (lean_obj_tag(x_467) == 0) { -lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; -lean_inc_ref(x_537); -x_540 = l_Array_append___redArg(x_537, x_539); -lean_dec_ref(x_539); -lean_inc(x_531); -lean_inc(x_524); -x_541 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_541, 0, x_524); -lean_ctor_set(x_541, 1, x_531); -lean_ctor_set(x_541, 2, x_540); -x_542 = l_Lean_Elab_Command_elabInitialize___closed__40; -lean_inc_ref(x_534); -x_543 = l_Lean_Name_mkStr4(x_5, x_6, x_534, x_542); -x_544 = l_Lean_Elab_Command_elabInitialize___closed__41; -lean_inc(x_524); -x_545 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_545, 0, x_524); -lean_ctor_set(x_545, 1, x_544); -x_546 = l_Lean_Elab_Command_elabInitialize___closed__47; -lean_inc_ref(x_534); -x_547 = l_Lean_Name_mkStr4(x_5, x_6, x_534, x_546); -x_548 = l_Lean_Elab_Command_elabInitialize___closed__48; -lean_inc_ref(x_534); -x_549 = l_Lean_Name_mkStr4(x_5, x_6, x_534, x_548); -lean_inc_ref(x_537); -lean_inc(x_531); -lean_inc(x_524); -x_550 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_550, 0, x_524); -lean_ctor_set(x_550, 1, x_531); -lean_ctor_set(x_550, 2, x_537); -lean_inc_ref(x_550); -lean_inc(x_524); -x_551 = l_Lean_Syntax_node1(x_524, x_549, x_550); -x_552 = l_Lean_Elab_Command_elabInitialize___closed__51; -x_553 = l_Lean_Elab_Command_elabInitialize___closed__8; -x_554 = l_Lean_Elab_Command_elabInitialize___closed__9; -x_555 = l_Lean_addMacroScope(x_528, x_554, x_522); -x_556 = lean_box(0); -lean_inc(x_524); -x_557 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_557, 0, x_524); -lean_ctor_set(x_557, 1, x_553); -lean_ctor_set(x_557, 2, x_555); -lean_ctor_set(x_557, 3, x_556); -lean_inc(x_531); -lean_inc(x_524); -x_558 = l_Lean_Syntax_node1(x_524, x_531, x_557); -lean_inc(x_524); -x_559 = l_Lean_Syntax_node2(x_524, x_552, x_538, x_558); -lean_inc(x_524); -x_560 = l_Lean_Syntax_node2(x_524, x_547, x_551, x_559); -x_561 = l_Lean_Elab_Command_elabInitialize___closed__42; -lean_inc(x_524); -x_562 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_562, 0, x_524); -lean_ctor_set(x_562, 1, x_561); -x_563 = l_Array_mkArray2___redArg(x_560, x_562); -if (lean_obj_tag(x_525) == 0) -{ -lean_object* x_564; -x_564 = l_Lean_Elab_Command_elabInitialize___closed__44; -x_487 = x_554; -x_488 = x_521; -x_489 = x_523; -x_490 = x_524; -x_491 = x_556; -x_492 = x_526; -x_493 = x_527; -x_494 = x_543; -x_495 = x_529; -x_496 = x_532; -x_497 = x_530; -x_498 = x_531; -x_499 = x_553; -x_500 = x_533; -x_501 = x_534; -x_502 = x_545; -x_503 = x_550; -x_504 = x_535; -x_505 = x_563; -x_506 = x_541; -x_507 = x_537; -x_508 = x_536; -x_509 = x_564; -goto block_520; +x_422 = x_452; +x_423 = x_455; +x_424 = x_457; +x_425 = x_456; +x_426 = x_458; +x_427 = x_528; +x_428 = x_462; +x_429 = x_465; +x_430 = x_464; +x_431 = x_529; +x_432 = x_466; +x_433 = x_534; +x_434 = x_469; +x_435 = x_518; +x_436 = x_470; +x_437 = x_536; +x_438 = x_454; +x_439 = x_453; +x_440 = x_510; +goto block_448; } else { -lean_object* x_565; -x_565 = lean_ctor_get(x_525, 0); -lean_inc(x_565); -lean_dec(x_525); -x_487 = x_554; -x_488 = x_521; -x_489 = x_523; -x_490 = x_524; -x_491 = x_556; -x_492 = x_526; -x_493 = x_527; -x_494 = x_543; -x_495 = x_529; -x_496 = x_532; -x_497 = x_530; -x_498 = x_531; -x_499 = x_553; -x_500 = x_533; -x_501 = x_534; -x_502 = x_545; -x_503 = x_550; -x_504 = x_535; -x_505 = x_563; -x_506 = x_541; -x_507 = x_537; -x_508 = x_536; -x_509 = x_565; -goto block_520; -} -} -block_596: +lean_object* x_537; lean_object* x_538; uint8_t x_539; +x_537 = lean_ctor_get(x_467, 0); +lean_inc(x_537); +lean_dec(x_467); +x_538 = l_Lean_Elab_Command_elabInitialize___closed__57; +x_539 = l_Lean_Syntax_isOfKind(x_537, x_538); +if (x_539 == 0) { -lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; -x_580 = l_Lean_Elab_Command_getRef___redArg(x_577, x_570); -x_581 = lean_ctor_get(x_580, 0); -lean_inc(x_581); -x_582 = lean_ctor_get(x_580, 1); -lean_inc(x_582); -lean_dec_ref(x_580); -x_583 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_577, x_582); -x_584 = lean_ctor_get(x_583, 0); -lean_inc(x_584); -x_585 = lean_ctor_get(x_583, 1); -lean_inc(x_585); -lean_dec_ref(x_583); -x_586 = l_Lean_Elab_Command_getMainModule___redArg(x_568, x_585); -x_587 = lean_ctor_get(x_586, 0); -lean_inc(x_587); -x_588 = lean_ctor_get(x_586, 1); -lean_inc(x_588); -lean_dec_ref(x_586); -x_589 = l_Lean_SourceInfo_fromRef(x_581, x_569); -lean_dec(x_581); -x_590 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__4; -x_591 = l_Lean_Elab_Command_expandNamespacedDeclaration___closed__1; -x_592 = l_Lean_Elab_Command_expandMutualPreamble___closed__4; -if (lean_obj_tag(x_578) == 0) -{ -lean_object* x_593; -x_593 = l_Lean_Elab_Command_elabInitialize___closed__44; -x_521 = x_569; -x_522 = x_584; -x_523 = x_590; -x_524 = x_589; -x_525 = x_573; -x_526 = x_575; -x_527 = x_574; -x_528 = x_587; -x_529 = x_588; -x_530 = x_568; -x_531 = x_591; -x_532 = x_567; -x_533 = x_571; -x_534 = x_572; -x_535 = x_579; -x_536 = x_577; -x_537 = x_592; -x_538 = x_576; -x_539 = x_593; -goto block_566; +x_422 = x_452; +x_423 = x_455; +x_424 = x_457; +x_425 = x_456; +x_426 = x_458; +x_427 = x_528; +x_428 = x_462; +x_429 = x_465; +x_430 = x_464; +x_431 = x_529; +x_432 = x_466; +x_433 = x_534; +x_434 = x_469; +x_435 = x_518; +x_436 = x_470; +x_437 = x_536; +x_438 = x_454; +x_439 = x_453; +x_440 = x_510; +goto block_448; } else { -lean_object* x_594; lean_object* x_595; -x_594 = lean_ctor_get(x_578, 0); -lean_inc(x_594); -lean_dec(x_578); -x_595 = l_Array_mkArray1___redArg(x_594); -x_521 = x_569; -x_522 = x_584; -x_523 = x_590; -x_524 = x_589; -x_525 = x_573; -x_526 = x_575; -x_527 = x_574; -x_528 = x_587; -x_529 = x_588; -x_530 = x_568; -x_531 = x_591; -x_532 = x_567; -x_533 = x_571; -x_534 = x_572; -x_535 = x_579; -x_536 = x_577; -x_537 = x_592; -x_538 = x_576; -x_539 = x_595; -goto block_566; +lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; +x_540 = lean_st_ref_get(x_453, x_510); +x_541 = lean_ctor_get(x_540, 0); +lean_inc(x_541); +x_542 = lean_ctor_get(x_540, 1); +lean_inc(x_542); +lean_dec_ref(x_540); +x_543 = lean_ctor_get(x_541, 0); +lean_inc_ref(x_543); +lean_dec(x_541); +x_544 = l_Lean_mkPrivateName(x_543, x_536); +lean_dec_ref(x_543); +x_422 = x_452; +x_423 = x_455; +x_424 = x_457; +x_425 = x_456; +x_426 = x_458; +x_427 = x_528; +x_428 = x_462; +x_429 = x_465; +x_430 = x_464; +x_431 = x_529; +x_432 = x_466; +x_433 = x_534; +x_434 = x_469; +x_435 = x_518; +x_436 = x_470; +x_437 = x_544; +x_438 = x_454; +x_439 = x_453; +x_440 = x_542; +goto block_448; } } -block_620: +} +} +block_579: { -lean_object* x_610; lean_object* x_611; uint8_t x_612; -x_610 = lean_unsigned_to_nat(5u); -x_611 = l_Lean_Syntax_getArg(x_12, x_610); -x_612 = l_Lean_Syntax_matchesNull(x_611, x_11); -if (x_612 == 0) +lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; +x_569 = l_Array_append___redArg(x_554, x_568); +lean_dec_ref(x_568); +lean_inc(x_567); +lean_inc(x_546); +x_570 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_570, 0, x_546); +lean_ctor_set(x_570, 1, x_567); +lean_ctor_set(x_570, 2, x_569); +x_571 = l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_Command_elabAttr_spec__0___closed__4; +lean_inc(x_546); +x_572 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_572, 0, x_546); +lean_ctor_set(x_572, 1, x_571); +lean_inc(x_546); +x_573 = l_Lean_Syntax_node3(x_546, x_566, x_549, x_570, x_572); +lean_inc(x_567); +lean_inc(x_546); +x_574 = l_Lean_Syntax_node1(x_546, x_567, x_573); +if (lean_obj_tag(x_564) == 0) { -lean_object* x_613; lean_object* x_614; -lean_dec(x_606); -lean_dec(x_605); -lean_dec(x_604); -lean_dec(x_603); -lean_dec(x_602); -lean_dec_ref(x_601); -lean_dec(x_600); -lean_dec(x_599); -lean_dec(x_597); -x_613 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_614 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_613, x_607, x_608, x_609); -lean_dec(x_608); -lean_dec(x_12); -return x_614; +lean_object* x_575; +x_575 = l_Lean_Elab_Command_elabInitialize___closed__44; +x_451 = x_546; +x_452 = x_547; +x_453 = x_548; +x_454 = x_550; +x_455 = x_551; +x_456 = x_552; +x_457 = x_553; +x_458 = x_555; +x_459 = x_556; +x_460 = x_557; +x_461 = x_574; +x_462 = x_558; +x_463 = x_559; +x_464 = x_561; +x_465 = x_560; +x_466 = x_562; +x_467 = x_564; +x_468 = x_563; +x_469 = x_565; +x_470 = x_567; +x_471 = x_575; +goto block_545; } else { -lean_object* x_615; -lean_dec(x_12); -x_615 = l_Lean_Syntax_getOptional_x3f(x_605); -lean_dec(x_605); -if (lean_obj_tag(x_615) == 0) +lean_object* x_576; lean_object* x_577; lean_object* x_578; +x_576 = lean_ctor_get(x_564, 0); +lean_inc(x_576); +x_577 = l_Lean_Elab_Command_elabInitialize___closed__44; +x_578 = lean_array_push(x_577, x_576); +x_451 = x_546; +x_452 = x_547; +x_453 = x_548; +x_454 = x_550; +x_455 = x_551; +x_456 = x_552; +x_457 = x_553; +x_458 = x_555; +x_459 = x_556; +x_460 = x_557; +x_461 = x_574; +x_462 = x_558; +x_463 = x_559; +x_464 = x_561; +x_465 = x_560; +x_466 = x_562; +x_467 = x_564; +x_468 = x_563; +x_469 = x_565; +x_470 = x_567; +x_471 = x_578; +goto block_545; +} +} +block_625: { -lean_object* x_616; -x_616 = lean_box(0); +lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; +lean_inc_ref(x_584); +x_599 = l_Array_append___redArg(x_584, x_598); +lean_dec_ref(x_598); +lean_inc(x_597); +lean_inc(x_580); +x_600 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_600, 0, x_580); +lean_ctor_set(x_600, 1, x_597); +lean_ctor_set(x_600, 2, x_599); +x_601 = l_Lean_Elab_Command_elabInitialize___closed__40; +lean_inc_ref(x_581); +x_602 = l_Lean_Name_mkStr4(x_5, x_6, x_581, x_601); +x_603 = l_Lean_Elab_Command_elabInitialize___closed__41; +lean_inc(x_580); +x_604 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_604, 0, x_580); +lean_ctor_set(x_604, 1, x_603); +x_605 = l_Lean_Elab_Command_elabInitialize___closed__47; +lean_inc_ref(x_581); +x_606 = l_Lean_Name_mkStr4(x_5, x_6, x_581, x_605); +x_607 = l_Lean_Elab_Command_elabInitialize___closed__48; +lean_inc_ref(x_581); +x_608 = l_Lean_Name_mkStr4(x_5, x_6, x_581, x_607); +lean_inc_ref(x_584); +lean_inc(x_597); +lean_inc(x_580); +x_609 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_609, 0, x_580); +lean_ctor_set(x_609, 1, x_597); +lean_ctor_set(x_609, 2, x_584); +lean_inc_ref(x_609); +lean_inc(x_580); +x_610 = l_Lean_Syntax_node1(x_580, x_608, x_609); +x_611 = l_Lean_Elab_Command_elabInitialize___closed__51; +x_612 = l_Lean_Elab_Command_elabInitialize___closed__8; +x_613 = l_Lean_Elab_Command_elabInitialize___closed__9; +x_614 = l_Lean_addMacroScope(x_587, x_613, x_592); +x_615 = lean_box(0); +lean_inc(x_580); +x_616 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_616, 0, x_580); +lean_ctor_set(x_616, 1, x_612); +lean_ctor_set(x_616, 2, x_614); +lean_ctor_set(x_616, 3, x_615); +lean_inc(x_597); +lean_inc(x_580); +x_617 = l_Lean_Syntax_node1(x_580, x_597, x_616); +lean_inc(x_580); +x_618 = l_Lean_Syntax_node2(x_580, x_611, x_588, x_617); +lean_inc(x_580); +x_619 = l_Lean_Syntax_node2(x_580, x_606, x_610, x_618); +x_620 = l_Lean_Elab_Command_elabInitialize___closed__42; +lean_inc(x_580); +x_621 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_621, 0, x_580); +lean_ctor_set(x_621, 1, x_620); +x_622 = l_Array_mkArray2___redArg(x_619, x_621); +if (lean_obj_tag(x_596) == 0) +{ +lean_object* x_623; +x_623 = l_Lean_Elab_Command_elabInitialize___closed__44; +x_546 = x_580; +x_547 = x_581; +x_548 = x_582; +x_549 = x_604; +x_550 = x_583; +x_551 = x_613; +x_552 = x_585; +x_553 = x_584; +x_554 = x_622; +x_555 = x_615; +x_556 = x_586; +x_557 = x_600; +x_558 = x_589; +x_559 = x_590; +x_560 = x_591; +x_561 = x_612; +x_562 = x_593; +x_563 = x_609; +x_564 = x_594; +x_565 = x_595; +x_566 = x_602; x_567 = x_597; -x_568 = x_608; -x_569 = x_598; -x_570 = x_609; -x_571 = x_599; -x_572 = x_601; -x_573 = x_600; -x_574 = x_606; -x_575 = x_602; -x_576 = x_603; -x_577 = x_607; -x_578 = x_604; -x_579 = x_616; -goto block_596; +x_568 = x_623; +goto block_579; } else { -uint8_t x_617; -x_617 = !lean_is_exclusive(x_615); -if (x_617 == 0) -{ +lean_object* x_624; +x_624 = lean_ctor_get(x_596, 0); +lean_inc(x_624); +lean_dec(x_596); +x_546 = x_580; +x_547 = x_581; +x_548 = x_582; +x_549 = x_604; +x_550 = x_583; +x_551 = x_613; +x_552 = x_585; +x_553 = x_584; +x_554 = x_622; +x_555 = x_615; +x_556 = x_586; +x_557 = x_600; +x_558 = x_589; +x_559 = x_590; +x_560 = x_591; +x_561 = x_612; +x_562 = x_593; +x_563 = x_609; +x_564 = x_594; +x_565 = x_595; +x_566 = x_602; x_567 = x_597; -x_568 = x_608; -x_569 = x_598; -x_570 = x_609; -x_571 = x_599; -x_572 = x_601; -x_573 = x_600; -x_574 = x_606; -x_575 = x_602; -x_576 = x_603; -x_577 = x_607; -x_578 = x_604; -x_579 = x_615; -goto block_596; -} -else -{ -lean_object* x_618; lean_object* x_619; -x_618 = lean_ctor_get(x_615, 0); -lean_inc(x_618); -lean_dec(x_615); -x_619 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_619, 0, x_618); -x_567 = x_597; -x_568 = x_608; -x_569 = x_598; -x_570 = x_609; -x_571 = x_599; -x_572 = x_601; -x_573 = x_600; -x_574 = x_606; -x_575 = x_602; -x_576 = x_603; -x_577 = x_607; -x_578 = x_604; -x_579 = x_619; -goto block_596; +x_568 = x_624; +goto block_579; } } -} -} -block_652: +block_655: { -lean_object* x_633; uint8_t x_634; -x_633 = l_Lean_Syntax_getArg(x_12, x_623); -x_634 = l_Lean_Syntax_matchesNull(x_633, x_11); -if (x_634 == 0) -{ -lean_object* x_635; lean_object* x_636; -lean_dec(x_629); -lean_dec(x_628); -lean_dec(x_627); -lean_dec(x_626); -lean_dec_ref(x_625); -lean_dec(x_624); -lean_dec(x_621); -x_635 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_636 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_635, x_630, x_631, x_632); -lean_dec(x_631); -lean_dec(x_12); -return x_636; -} -else -{ -lean_object* x_637; lean_object* x_638; lean_object* x_639; uint8_t x_640; -x_637 = l_Lean_Syntax_getArg(x_12, x_391); -x_638 = lean_unsigned_to_nat(4u); -x_639 = l_Lean_Syntax_getArg(x_12, x_638); -x_640 = l_Lean_Syntax_isNone(x_639); -if (x_640 == 0) -{ -uint8_t x_641; -lean_inc(x_639); -x_641 = l_Lean_Syntax_matchesNull(x_639, x_149); -if (x_641 == 0) -{ -lean_object* x_642; lean_object* x_643; -lean_dec(x_639); -lean_dec(x_637); -lean_dec(x_629); -lean_dec(x_628); -lean_dec(x_627); -lean_dec(x_626); -lean_dec_ref(x_625); -lean_dec(x_624); -lean_dec(x_621); -x_642 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_643 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_642, x_630, x_631, x_632); -lean_dec(x_631); -lean_dec(x_12); -return x_643; -} -else -{ -lean_object* x_644; lean_object* x_645; uint8_t x_646; -x_644 = l_Lean_Syntax_getArg(x_639, x_11); -lean_dec(x_639); -x_645 = l_Lean_Elab_Command_elabInitialize___closed__46; +lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; +x_639 = l_Lean_Elab_Command_getRef___redArg(x_629, x_630); +x_640 = lean_ctor_get(x_639, 0); +lean_inc(x_640); +x_641 = lean_ctor_get(x_639, 1); +lean_inc(x_641); +lean_dec_ref(x_639); +x_642 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_629, x_641); +x_643 = lean_ctor_get(x_642, 0); +lean_inc(x_643); +x_644 = lean_ctor_get(x_642, 1); lean_inc(x_644); -x_646 = l_Lean_Syntax_isOfKind(x_644, x_645); -if (x_646 == 0) +lean_dec_ref(x_642); +x_645 = l_Lean_Elab_Command_getMainModule___redArg(x_628, x_644); +x_646 = lean_ctor_get(x_645, 0); +lean_inc(x_646); +x_647 = lean_ctor_get(x_645, 1); +lean_inc(x_647); +lean_dec_ref(x_645); +x_648 = l_Lean_SourceInfo_fromRef(x_640, x_636); +lean_dec(x_640); +x_649 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__4; +x_650 = l_Lean_Elab_Command_expandNamespacedDeclaration___closed__1; +x_651 = l_Lean_Elab_Command_expandMutualPreamble___closed__4; +if (lean_obj_tag(x_631) == 0) { -lean_object* x_647; lean_object* x_648; -lean_dec(x_644); -lean_dec(x_637); -lean_dec(x_629); -lean_dec(x_628); -lean_dec(x_627); -lean_dec(x_626); -lean_dec_ref(x_625); -lean_dec(x_624); -lean_dec(x_621); -x_647 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_648 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_647, x_630, x_631, x_632); +lean_object* x_652; +x_652 = l_Lean_Elab_Command_elabInitialize___closed__44; +x_580 = x_648; +x_581 = x_626; +x_582 = x_628; +x_583 = x_629; +x_584 = x_651; +x_585 = x_633; +x_586 = x_634; +x_587 = x_646; +x_588 = x_635; +x_589 = x_636; +x_590 = x_647; +x_591 = x_627; +x_592 = x_643; +x_593 = x_632; +x_594 = x_638; +x_595 = x_649; +x_596 = x_637; +x_597 = x_650; +x_598 = x_652; +goto block_625; +} +else +{ +lean_object* x_653; lean_object* x_654; +x_653 = lean_ctor_get(x_631, 0); +lean_inc(x_653); lean_dec(x_631); -lean_dec(x_12); -return x_648; -} -else -{ -lean_object* x_649; lean_object* x_650; -x_649 = l_Lean_Syntax_getArg(x_644, x_11); -lean_dec(x_644); -x_650 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_650, 0, x_649); -x_597 = x_621; -x_598 = x_622; -x_599 = x_624; -x_600 = x_629; -x_601 = x_625; -x_602 = x_626; -x_603 = x_627; -x_604 = x_628; -x_605 = x_637; -x_606 = x_650; -x_607 = x_630; -x_608 = x_631; -x_609 = x_632; -goto block_620; -} -} -} -else -{ -lean_object* x_651; -lean_dec(x_639); -x_651 = lean_box(0); -x_597 = x_621; -x_598 = x_622; -x_599 = x_624; -x_600 = x_629; -x_601 = x_625; -x_602 = x_626; -x_603 = x_627; -x_604 = x_628; -x_605 = x_637; -x_606 = x_651; -x_607 = x_630; -x_608 = x_631; -x_609 = x_632; -goto block_620; -} +x_654 = l_Array_mkArray1___redArg(x_653); +x_580 = x_648; +x_581 = x_626; +x_582 = x_628; +x_583 = x_629; +x_584 = x_651; +x_585 = x_633; +x_586 = x_634; +x_587 = x_646; +x_588 = x_635; +x_589 = x_636; +x_590 = x_647; +x_591 = x_627; +x_592 = x_643; +x_593 = x_632; +x_594 = x_638; +x_595 = x_649; +x_596 = x_637; +x_597 = x_650; +x_598 = x_654; +goto block_625; } } block_679: { -lean_object* x_664; uint8_t x_665; -x_664 = l_Lean_Syntax_getArg(x_12, x_149); -x_665 = l_Lean_Syntax_isNone(x_664); -if (x_665 == 0) +lean_object* x_669; lean_object* x_670; uint8_t x_671; +x_669 = lean_unsigned_to_nat(5u); +x_670 = l_Lean_Syntax_getArg(x_12, x_669); +x_671 = l_Lean_Syntax_matchesNull(x_670, x_11); +if (x_671 == 0) { -uint8_t x_666; -lean_inc(x_664); -x_666 = l_Lean_Syntax_matchesNull(x_664, x_149); -if (x_666 == 0) -{ -lean_object* x_667; lean_object* x_668; +lean_object* x_672; lean_object* x_673; +lean_dec(x_665); lean_dec(x_664); +lean_dec(x_663); +lean_dec(x_661); lean_dec(x_660); lean_dec(x_659); lean_dec(x_658); -lean_dec_ref(x_657); -lean_dec(x_656); -lean_dec(x_653); -x_667 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_668 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_667, x_661, x_662, x_663); -lean_dec(x_662); +lean_dec(x_657); +lean_dec_ref(x_656); +x_672 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_673 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_672, x_666, x_667, x_668); +lean_dec(x_667); lean_dec(x_12); -return x_668; +return x_673; } else { -lean_object* x_669; lean_object* x_670; lean_object* x_671; uint8_t x_672; -x_669 = l_Lean_Syntax_getArg(x_664, x_11); -lean_dec(x_664); -x_670 = l_Lean_Elab_Command_elabInitialize___closed__40; -lean_inc_ref(x_657); -x_671 = l_Lean_Name_mkStr4(x_5, x_6, x_657, x_670); -lean_inc(x_669); -x_672 = l_Lean_Syntax_isOfKind(x_669, x_671); -lean_dec(x_671); -if (x_672 == 0) -{ -lean_object* x_673; lean_object* x_674; -lean_dec(x_669); +lean_object* x_674; +lean_dec(x_12); +x_674 = l_Lean_Syntax_getOptional_x3f(x_660); lean_dec(x_660); -lean_dec(x_659); -lean_dec(x_658); -lean_dec_ref(x_657); -lean_dec(x_656); -lean_dec(x_653); -x_673 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_674 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_673, x_661, x_662, x_663); -lean_dec(x_662); -lean_dec(x_12); -return x_674; +if (lean_obj_tag(x_674) == 0) +{ +lean_object* x_675; +x_675 = lean_box(0); +x_626 = x_656; +x_627 = x_657; +x_628 = x_667; +x_629 = x_666; +x_630 = x_668; +x_631 = x_659; +x_632 = x_658; +x_633 = x_665; +x_634 = x_661; +x_635 = x_663; +x_636 = x_662; +x_637 = x_664; +x_638 = x_675; +goto block_655; } else { -lean_object* x_675; lean_object* x_676; lean_object* x_677; -x_675 = l_Lean_Syntax_getArg(x_669, x_149); -lean_dec(x_669); -x_676 = l_Lean_Syntax_getArgs(x_675); -lean_dec(x_675); -x_677 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_677, 0, x_676); -x_621 = x_653; -x_622 = x_654; -x_623 = x_655; -x_624 = x_656; -x_625 = x_657; -x_626 = x_658; -x_627 = x_659; -x_628 = x_660; -x_629 = x_677; -x_630 = x_661; -x_631 = x_662; -x_632 = x_663; -goto block_652; -} -} +uint8_t x_676; +x_676 = !lean_is_exclusive(x_674); +if (x_676 == 0) +{ +x_626 = x_656; +x_627 = x_657; +x_628 = x_667; +x_629 = x_666; +x_630 = x_668; +x_631 = x_659; +x_632 = x_658; +x_633 = x_665; +x_634 = x_661; +x_635 = x_663; +x_636 = x_662; +x_637 = x_664; +x_638 = x_674; +goto block_655; } else { -lean_object* x_678; -lean_dec(x_664); -x_678 = lean_box(0); -x_621 = x_653; -x_622 = x_654; -x_623 = x_655; -x_624 = x_656; -x_625 = x_657; -x_626 = x_658; -x_627 = x_659; -x_628 = x_660; -x_629 = x_678; -x_630 = x_661; -x_631 = x_662; -x_632 = x_663; -goto block_652; +lean_object* x_677; lean_object* x_678; +x_677 = lean_ctor_get(x_674, 0); +lean_inc(x_677); +lean_dec(x_674); +x_678 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_678, 0, x_677); +x_626 = x_656; +x_627 = x_657; +x_628 = x_667; +x_629 = x_666; +x_630 = x_668; +x_631 = x_659; +x_632 = x_658; +x_633 = x_665; +x_634 = x_661; +x_635 = x_663; +x_636 = x_662; +x_637 = x_664; +x_638 = x_678; +goto block_655; } } -block_720: -{ -uint8_t x_689; lean_object* x_690; -x_689 = 0; -x_690 = l_Lean_mkIdentFrom(x_1, x_688, x_689); -lean_dec(x_1); -if (lean_obj_tag(x_687) == 0) -{ -lean_dec(x_680); -x_312 = x_689; -x_313 = x_682; -x_314 = x_683; -x_315 = x_685; -x_316 = x_690; -x_317 = x_684; -x_318 = x_686; -x_319 = x_681; -goto block_334; } -else -{ -if (lean_obj_tag(x_680) == 0) -{ -lean_dec(x_687); -x_312 = x_689; -x_313 = x_682; -x_314 = x_683; -x_315 = x_685; -x_316 = x_690; -x_317 = x_684; -x_318 = x_686; -x_319 = x_681; -goto block_334; } -else +block_711: { -if (x_147 == 0) +lean_object* x_692; uint8_t x_693; +x_692 = l_Lean_Syntax_getArg(x_12, x_682); +x_693 = l_Lean_Syntax_matchesNull(x_692, x_11); +if (x_693 == 0) { -lean_object* x_691; lean_object* x_692; -lean_dec(x_690); -lean_dec(x_687); -lean_dec(x_685); -lean_dec_ref(x_683); -lean_dec(x_680); -x_691 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_692 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_691, x_684, x_686, x_681); +lean_object* x_694; lean_object* x_695; +lean_dec(x_688); lean_dec(x_686); +lean_dec(x_685); +lean_dec(x_684); +lean_dec(x_683); +lean_dec(x_681); +lean_dec_ref(x_680); +x_694 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_695 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_694, x_689, x_690, x_691); +lean_dec(x_690); lean_dec(x_12); -return x_692; +return x_695; } else { -lean_object* x_693; uint8_t x_694; -x_693 = lean_ctor_get(x_687, 0); -lean_inc(x_693); -lean_dec(x_687); -x_694 = !lean_is_exclusive(x_680); -if (x_694 == 0) +lean_object* x_696; lean_object* x_697; lean_object* x_698; uint8_t x_699; +x_696 = l_Lean_Syntax_getArg(x_12, x_450); +x_697 = lean_unsigned_to_nat(4u); +x_698 = l_Lean_Syntax_getArg(x_12, x_697); +x_699 = l_Lean_Syntax_isNone(x_698); +if (x_699 == 0) { -lean_object* x_695; lean_object* x_696; uint8_t x_697; -x_695 = lean_ctor_get(x_680, 0); -x_696 = l_Lean_Syntax_getArg(x_12, x_11); -x_697 = l_Lean_Syntax_isNone(x_696); -if (x_697 == 0) +uint8_t x_700; +lean_inc(x_698); +x_700 = l_Lean_Syntax_matchesNull(x_698, x_150); +if (x_700 == 0) { -uint8_t x_698; -lean_inc(x_696); -x_698 = l_Lean_Syntax_matchesNull(x_696, x_149); -if (x_698 == 0) -{ -lean_object* x_699; lean_object* x_700; +lean_object* x_701; lean_object* x_702; +lean_dec(x_698); lean_dec(x_696); -lean_free_object(x_680); -lean_dec(x_695); -lean_dec(x_693); -lean_dec(x_690); -lean_dec(x_685); -lean_dec_ref(x_683); -x_699 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_700 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_699, x_684, x_686, x_681); +lean_dec(x_688); lean_dec(x_686); +lean_dec(x_685); +lean_dec(x_684); +lean_dec(x_683); +lean_dec(x_681); +lean_dec_ref(x_680); +x_701 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_702 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_701, x_689, x_690, x_691); +lean_dec(x_690); lean_dec(x_12); -return x_700; +return x_702; } else { -lean_object* x_701; lean_object* x_702; uint8_t x_703; -x_701 = l_Lean_Syntax_getArg(x_696, x_11); +lean_object* x_703; lean_object* x_704; uint8_t x_705; +x_703 = l_Lean_Syntax_getArg(x_698, x_11); +lean_dec(x_698); +x_704 = l_Lean_Elab_Command_elabInitialize___closed__46; +lean_inc(x_703); +x_705 = l_Lean_Syntax_isOfKind(x_703, x_704); +if (x_705 == 0) +{ +lean_object* x_706; lean_object* x_707; +lean_dec(x_703); lean_dec(x_696); -x_702 = l_Lean_Elab_Command_elabInitialize___closed__55; -lean_inc(x_701); -x_703 = l_Lean_Syntax_isOfKind(x_701, x_702); -if (x_703 == 0) -{ -lean_object* x_704; lean_object* x_705; -lean_dec(x_701); -lean_free_object(x_680); -lean_dec(x_695); -lean_dec(x_693); -lean_dec(x_690); -lean_dec(x_685); -lean_dec_ref(x_683); -x_704 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_705 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_704, x_684, x_686, x_681); +lean_dec(x_688); lean_dec(x_686); +lean_dec(x_685); +lean_dec(x_684); +lean_dec(x_683); +lean_dec(x_681); +lean_dec_ref(x_680); +x_706 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_707 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_706, x_689, x_690, x_691); +lean_dec(x_690); lean_dec(x_12); -return x_705; +return x_707; } else { -lean_ctor_set(x_680, 0, x_701); -x_653 = x_693; -x_654 = x_689; -x_655 = x_682; -x_656 = x_695; -x_657 = x_683; -x_658 = x_685; -x_659 = x_690; -x_660 = x_680; -x_661 = x_684; -x_662 = x_686; -x_663 = x_681; +lean_object* x_708; lean_object* x_709; +x_708 = l_Lean_Syntax_getArg(x_703, x_11); +lean_dec(x_703); +x_709 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_709, 0, x_708); +x_656 = x_680; +x_657 = x_681; +x_658 = x_684; +x_659 = x_683; +x_660 = x_696; +x_661 = x_685; +x_662 = x_687; +x_663 = x_686; +x_664 = x_688; +x_665 = x_709; +x_666 = x_689; +x_667 = x_690; +x_668 = x_691; goto block_679; } } } else { -lean_object* x_706; -lean_dec(x_696); -lean_free_object(x_680); -x_706 = lean_box(0); -x_653 = x_693; -x_654 = x_689; -x_655 = x_682; -x_656 = x_695; -x_657 = x_683; -x_658 = x_685; -x_659 = x_690; -x_660 = x_706; -x_661 = x_684; -x_662 = x_686; -x_663 = x_681; +lean_object* x_710; +lean_dec(x_698); +x_710 = lean_box(0); +x_656 = x_680; +x_657 = x_681; +x_658 = x_684; +x_659 = x_683; +x_660 = x_696; +x_661 = x_685; +x_662 = x_687; +x_663 = x_686; +x_664 = x_688; +x_665 = x_710; +x_666 = x_689; +x_667 = x_690; +x_668 = x_691; goto block_679; } } -else -{ -lean_object* x_707; lean_object* x_708; uint8_t x_709; -x_707 = lean_ctor_get(x_680, 0); -lean_inc(x_707); -lean_dec(x_680); -x_708 = l_Lean_Syntax_getArg(x_12, x_11); -x_709 = l_Lean_Syntax_isNone(x_708); -if (x_709 == 0) -{ -uint8_t x_710; -lean_inc(x_708); -x_710 = l_Lean_Syntax_matchesNull(x_708, x_149); -if (x_710 == 0) -{ -lean_object* x_711; lean_object* x_712; -lean_dec(x_708); -lean_dec(x_707); -lean_dec(x_693); -lean_dec(x_690); -lean_dec(x_685); -lean_dec_ref(x_683); -x_711 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_712 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_711, x_684, x_686, x_681); -lean_dec(x_686); -lean_dec(x_12); -return x_712; } -else +block_738: { -lean_object* x_713; lean_object* x_714; uint8_t x_715; -x_713 = l_Lean_Syntax_getArg(x_708, x_11); -lean_dec(x_708); -x_714 = l_Lean_Elab_Command_elabInitialize___closed__55; -lean_inc(x_713); -x_715 = l_Lean_Syntax_isOfKind(x_713, x_714); -if (x_715 == 0) +lean_object* x_723; uint8_t x_724; +x_723 = l_Lean_Syntax_getArg(x_12, x_150); +x_724 = l_Lean_Syntax_isNone(x_723); +if (x_724 == 0) { -lean_object* x_716; lean_object* x_717; +uint8_t x_725; +lean_inc(x_723); +x_725 = l_Lean_Syntax_matchesNull(x_723, x_150); +if (x_725 == 0) +{ +lean_object* x_726; lean_object* x_727; +lean_dec(x_723); +lean_dec(x_719); +lean_dec(x_718); +lean_dec(x_716); +lean_dec(x_715); lean_dec(x_713); -lean_dec(x_707); -lean_dec(x_693); -lean_dec(x_690); -lean_dec(x_685); -lean_dec_ref(x_683); -x_716 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_717 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_716, x_684, x_686, x_681); -lean_dec(x_686); +lean_dec_ref(x_712); +x_726 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_727 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_726, x_720, x_721, x_722); +lean_dec(x_721); lean_dec(x_12); -return x_717; +return x_727; } else { -lean_object* x_718; -x_718 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_718, 0, x_713); -x_653 = x_693; -x_654 = x_689; -x_655 = x_682; -x_656 = x_707; -x_657 = x_683; -x_658 = x_685; -x_659 = x_690; -x_660 = x_718; -x_661 = x_684; -x_662 = x_686; -x_663 = x_681; -goto block_679; +lean_object* x_728; lean_object* x_729; lean_object* x_730; uint8_t x_731; +x_728 = l_Lean_Syntax_getArg(x_723, x_11); +lean_dec(x_723); +x_729 = l_Lean_Elab_Command_elabInitialize___closed__40; +lean_inc_ref(x_712); +x_730 = l_Lean_Name_mkStr4(x_5, x_6, x_712, x_729); +lean_inc(x_728); +x_731 = l_Lean_Syntax_isOfKind(x_728, x_730); +lean_dec(x_730); +if (x_731 == 0) +{ +lean_object* x_732; lean_object* x_733; +lean_dec(x_728); +lean_dec(x_719); +lean_dec(x_718); +lean_dec(x_716); +lean_dec(x_715); +lean_dec(x_713); +lean_dec_ref(x_712); +x_732 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_733 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_732, x_720, x_721, x_722); +lean_dec(x_721); +lean_dec(x_12); +return x_733; +} +else +{ +lean_object* x_734; lean_object* x_735; lean_object* x_736; +x_734 = l_Lean_Syntax_getArg(x_728, x_150); +lean_dec(x_728); +x_735 = l_Lean_Syntax_getArgs(x_734); +lean_dec(x_734); +x_736 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_736, 0, x_735); +x_680 = x_712; +x_681 = x_713; +x_682 = x_714; +x_683 = x_719; +x_684 = x_715; +x_685 = x_716; +x_686 = x_718; +x_687 = x_717; +x_688 = x_736; +x_689 = x_720; +x_690 = x_721; +x_691 = x_722; +goto block_711; } } } else { -lean_object* x_719; -lean_dec(x_708); -x_719 = lean_box(0); -x_653 = x_693; -x_654 = x_689; -x_655 = x_682; -x_656 = x_707; -x_657 = x_683; -x_658 = x_685; -x_659 = x_690; -x_660 = x_719; -x_661 = x_684; -x_662 = x_686; -x_663 = x_681; -goto block_679; +lean_object* x_737; +lean_dec(x_723); +x_737 = lean_box(0); +x_680 = x_712; +x_681 = x_713; +x_682 = x_714; +x_683 = x_719; +x_684 = x_715; +x_685 = x_716; +x_686 = x_718; +x_687 = x_717; +x_688 = x_737; +x_689 = x_720; +x_690 = x_721; +x_691 = x_722; +goto block_711; } } -} -} -} -} -block_733: +block_779: { -lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; uint8_t x_730; -x_726 = lean_unsigned_to_nat(3u); -x_727 = l_Lean_Syntax_getArg(x_1, x_726); -x_728 = l_Lean_Elab_Command_elabInitialize___closed__60; -x_729 = l_Lean_Syntax_getArg(x_150, x_11); -lean_dec(x_150); -x_730 = l_Lean_Syntax_isToken(x_7, x_729); -lean_dec(x_729); -if (x_730 == 0) +uint8_t x_748; lean_object* x_749; +x_748 = 0; +x_749 = l_Lean_mkIdentFrom(x_1, x_747, x_748); +lean_dec(x_1); +if (lean_obj_tag(x_746) == 0) { -lean_object* x_731; -x_731 = l_Lean_Elab_Command_elabInitialize___closed__62; -x_680 = x_722; -x_681 = x_725; -x_682 = x_726; -x_683 = x_728; -x_684 = x_723; -x_685 = x_727; -x_686 = x_724; -x_687 = x_721; -x_688 = x_731; -goto block_720; +lean_dec(x_745); +x_313 = x_739; +x_314 = x_743; +x_315 = x_744; +x_316 = x_749; +x_317 = x_748; +x_318 = x_742; +x_319 = x_741; +x_320 = x_740; +goto block_335; } else { -lean_object* x_732; -x_732 = l_Lean_Elab_Command_elabInitialize___closed__64; -x_680 = x_722; -x_681 = x_725; -x_682 = x_726; -x_683 = x_728; -x_684 = x_723; -x_685 = x_727; -x_686 = x_724; -x_687 = x_721; -x_688 = x_732; -goto block_720; -} -} -} -block_193: +if (lean_obj_tag(x_745) == 0) { -lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; size_t x_173; size_t 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_inc_ref(x_165); -x_167 = l_Array_append___redArg(x_165, x_166); -lean_dec_ref(x_166); -lean_inc(x_155); -lean_inc(x_157); -x_168 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_168, 0, x_157); -lean_ctor_set(x_168, 1, x_155); -lean_ctor_set(x_168, 2, x_167); -x_169 = l_Lean_Elab_Command_elabInitialize___closed__40; +lean_dec(x_746); +x_313 = x_739; +x_314 = x_743; +x_315 = x_744; +x_316 = x_749; +x_317 = x_748; +x_318 = x_742; +x_319 = x_741; +x_320 = x_740; +goto block_335; +} +else +{ +if (x_148 == 0) +{ +lean_object* x_750; lean_object* x_751; +lean_dec(x_749); +lean_dec(x_746); +lean_dec(x_745); +lean_dec(x_744); +lean_dec_ref(x_739); +x_750 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_751 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_750, x_742, x_741, x_740); +lean_dec(x_741); +lean_dec(x_12); +return x_751; +} +else +{ +lean_object* x_752; uint8_t x_753; +x_752 = lean_ctor_get(x_746, 0); +lean_inc(x_752); +lean_dec(x_746); +x_753 = !lean_is_exclusive(x_745); +if (x_753 == 0) +{ +lean_object* x_754; lean_object* x_755; uint8_t x_756; +x_754 = lean_ctor_get(x_745, 0); +x_755 = l_Lean_Syntax_getArg(x_12, x_11); +x_756 = l_Lean_Syntax_isNone(x_755); +if (x_756 == 0) +{ +uint8_t x_757; +lean_inc(x_755); +x_757 = l_Lean_Syntax_matchesNull(x_755, x_150); +if (x_757 == 0) +{ +lean_object* x_758; lean_object* x_759; +lean_dec(x_755); +lean_free_object(x_745); +lean_dec(x_754); +lean_dec(x_752); +lean_dec(x_749); +lean_dec(x_744); +lean_dec_ref(x_739); +x_758 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_759 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_758, x_742, x_741, x_740); +lean_dec(x_741); +lean_dec(x_12); +return x_759; +} +else +{ +lean_object* x_760; lean_object* x_761; uint8_t x_762; +x_760 = l_Lean_Syntax_getArg(x_755, x_11); +lean_dec(x_755); +x_761 = l_Lean_Elab_Command_elabInitialize___closed__55; +lean_inc(x_760); +x_762 = l_Lean_Syntax_isOfKind(x_760, x_761); +if (x_762 == 0) +{ +lean_object* x_763; lean_object* x_764; +lean_dec(x_760); +lean_free_object(x_745); +lean_dec(x_754); +lean_dec(x_752); +lean_dec(x_749); +lean_dec(x_744); +lean_dec_ref(x_739); +x_763 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_764 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_763, x_742, x_741, x_740); +lean_dec(x_741); +lean_dec(x_12); +return x_764; +} +else +{ +lean_ctor_set(x_745, 0, x_760); +x_712 = x_739; +x_713 = x_754; +x_714 = x_743; +x_715 = x_744; +x_716 = x_752; +x_717 = x_748; +x_718 = x_749; +x_719 = x_745; +x_720 = x_742; +x_721 = x_741; +x_722 = x_740; +goto block_738; +} +} +} +else +{ +lean_object* x_765; +lean_dec(x_755); +lean_free_object(x_745); +x_765 = lean_box(0); +x_712 = x_739; +x_713 = x_754; +x_714 = x_743; +x_715 = x_744; +x_716 = x_752; +x_717 = x_748; +x_718 = x_749; +x_719 = x_765; +x_720 = x_742; +x_721 = x_741; +x_722 = x_740; +goto block_738; +} +} +else +{ +lean_object* x_766; lean_object* x_767; uint8_t x_768; +x_766 = lean_ctor_get(x_745, 0); +lean_inc(x_766); +lean_dec(x_745); +x_767 = l_Lean_Syntax_getArg(x_12, x_11); +x_768 = l_Lean_Syntax_isNone(x_767); +if (x_768 == 0) +{ +uint8_t x_769; +lean_inc(x_767); +x_769 = l_Lean_Syntax_matchesNull(x_767, x_150); +if (x_769 == 0) +{ +lean_object* x_770; lean_object* x_771; +lean_dec(x_767); +lean_dec(x_766); +lean_dec(x_752); +lean_dec(x_749); +lean_dec(x_744); +lean_dec_ref(x_739); +x_770 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_771 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_770, x_742, x_741, x_740); +lean_dec(x_741); +lean_dec(x_12); +return x_771; +} +else +{ +lean_object* x_772; lean_object* x_773; uint8_t x_774; +x_772 = l_Lean_Syntax_getArg(x_767, x_11); +lean_dec(x_767); +x_773 = l_Lean_Elab_Command_elabInitialize___closed__55; +lean_inc(x_772); +x_774 = l_Lean_Syntax_isOfKind(x_772, x_773); +if (x_774 == 0) +{ +lean_object* x_775; lean_object* x_776; +lean_dec(x_772); +lean_dec(x_766); +lean_dec(x_752); +lean_dec(x_749); +lean_dec(x_744); +lean_dec_ref(x_739); +x_775 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_776 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_775, x_742, x_741, x_740); +lean_dec(x_741); +lean_dec(x_12); +return x_776; +} +else +{ +lean_object* x_777; +x_777 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_777, 0, x_772); +x_712 = x_739; +x_713 = x_766; +x_714 = x_743; +x_715 = x_744; +x_716 = x_752; +x_717 = x_748; +x_718 = x_749; +x_719 = x_777; +x_720 = x_742; +x_721 = x_741; +x_722 = x_740; +goto block_738; +} +} +} +else +{ +lean_object* x_778; +lean_dec(x_767); +x_778 = lean_box(0); +x_712 = x_739; +x_713 = x_766; +x_714 = x_743; +x_715 = x_744; +x_716 = x_752; +x_717 = x_748; +x_718 = x_749; +x_719 = x_778; +x_720 = x_742; +x_721 = x_741; +x_722 = x_740; +goto block_738; +} +} +} +} +} +} +block_792: +{ +lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; uint8_t x_789; +x_785 = lean_unsigned_to_nat(3u); +x_786 = l_Lean_Syntax_getArg(x_1, x_785); +x_787 = l_Lean_Elab_Command_elabInitialize___closed__61; +x_788 = l_Lean_Syntax_getArg(x_151, x_11); +lean_dec(x_151); +x_789 = l_Lean_Syntax_isToken(x_7, x_788); +lean_dec(x_788); +if (x_789 == 0) +{ +lean_object* x_790; +x_790 = l_Lean_Elab_Command_elabInitialize___closed__63; +x_739 = x_787; +x_740 = x_784; +x_741 = x_783; +x_742 = x_782; +x_743 = x_785; +x_744 = x_786; +x_745 = x_781; +x_746 = x_780; +x_747 = x_790; +goto block_779; +} +else +{ +lean_object* x_791; +x_791 = l_Lean_Elab_Command_elabInitialize___closed__65; +x_739 = x_787; +x_740 = x_784; +x_741 = x_783; +x_742 = x_782; +x_743 = x_785; +x_744 = x_786; +x_745 = x_781; +x_746 = x_780; +x_747 = x_791; +goto block_779; +} +} +} +block_194: +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; size_t x_174; size_t 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_inc_ref(x_163); -x_170 = l_Lean_Name_mkStr4(x_5, x_6, x_163, x_169); -x_171 = l_Lean_Elab_Command_elabInitialize___closed__41; -lean_inc(x_157); -x_172 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_172, 0, x_157); -lean_ctor_set(x_172, 1, x_171); -x_173 = lean_array_size(x_161); -x_174 = 0; -x_175 = l_Array_mapMUnsafe_map___at___Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw________1_spec__0(x_173, x_174, x_161); -x_176 = l_Lean_Elab_Command_elabInitialize___closed__43; -x_177 = l_Lean_mkSepArray(x_175, x_176); -lean_dec_ref(x_175); -lean_inc_ref(x_165); -x_178 = l_Array_append___redArg(x_165, x_177); -lean_dec_ref(x_177); +x_168 = l_Array_append___redArg(x_163, x_167); +lean_dec_ref(x_167); +lean_inc(x_160); lean_inc(x_155); -lean_inc(x_157); -x_179 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_179, 0, x_157); -lean_ctor_set(x_179, 1, x_155); -lean_ctor_set(x_179, 2, x_178); -x_180 = l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_Command_elabAttr_spec__0___closed__4; -lean_inc(x_157); -x_181 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_181, 0, x_157); -lean_ctor_set(x_181, 1, x_180); -lean_inc(x_157); -x_182 = l_Lean_Syntax_node3(x_157, x_170, x_172, x_179, x_181); +x_169 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_169, 0, x_155); +lean_ctor_set(x_169, 1, x_160); +lean_ctor_set(x_169, 2, x_168); +x_170 = l_Lean_Elab_Command_elabInitialize___closed__40; +lean_inc_ref(x_154); +x_171 = l_Lean_Name_mkStr4(x_5, x_6, x_154, x_170); +x_172 = l_Lean_Elab_Command_elabInitialize___closed__41; lean_inc(x_155); -lean_inc(x_157); -x_183 = l_Lean_Syntax_node1(x_157, x_155, x_182); -lean_inc_ref(x_165); +x_173 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_173, 0, x_155); +lean_ctor_set(x_173, 1, x_172); +x_174 = lean_array_size(x_158); +x_175 = 0; +x_176 = l_Array_mapMUnsafe_map___at___Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw________1_spec__0(x_174, x_175, x_158); +x_177 = l_Lean_Elab_Command_elabInitialize___closed__43; +x_178 = l_Lean_mkSepArray(x_176, x_177); +lean_dec_ref(x_176); +lean_inc_ref(x_163); +x_179 = l_Array_append___redArg(x_163, x_178); +lean_dec_ref(x_178); +lean_inc(x_160); lean_inc(x_155); -lean_inc(x_157); -x_184 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_184, 0, x_157); -lean_ctor_set(x_184, 1, x_155); -lean_ctor_set(x_184, 2, x_165); -if (lean_obj_tag(x_162) == 0) +x_180 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_180, 0, x_155); +lean_ctor_set(x_180, 1, x_160); +lean_ctor_set(x_180, 2, x_179); +x_181 = l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_Command_elabAttr_spec__0___closed__4; +lean_inc(x_155); +x_182 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_182, 0, x_155); +lean_ctor_set(x_182, 1, x_181); +lean_inc(x_155); +x_183 = l_Lean_Syntax_node3(x_155, x_171, x_173, x_180, x_182); +lean_inc(x_160); +lean_inc(x_155); +x_184 = l_Lean_Syntax_node1(x_155, x_160, x_183); +lean_inc_ref(x_163); +lean_inc(x_160); +lean_inc(x_155); +x_185 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_185, 0, x_155); +lean_ctor_set(x_185, 1, x_160); +lean_ctor_set(x_185, 2, x_163); +if (lean_obj_tag(x_157) == 0) { -lean_object* x_185; -x_185 = l_Lean_Elab_Command_elabInitialize___closed__44; -x_14 = x_153; -x_15 = x_154; -x_16 = x_155; -x_17 = x_156; -x_18 = x_183; -x_19 = x_168; -x_20 = x_157; -x_21 = x_158; -x_22 = x_159; -x_23 = x_160; +lean_object* x_186; +x_186 = l_Lean_Elab_Command_elabInitialize___closed__44; +x_14 = x_154; +x_15 = x_155; +x_16 = x_156; +x_17 = x_185; +x_18 = x_184; +x_19 = x_159; +x_20 = x_160; +x_21 = x_169; +x_22 = x_161; +x_23 = x_162; x_24 = x_163; x_25 = x_164; x_26 = x_165; -x_27 = x_184; -x_28 = x_185; +x_27 = x_166; +x_28 = x_186; goto block_77; } else { -lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; -x_186 = lean_ctor_get(x_162, 0); -lean_inc(x_186); -lean_dec(x_162); -x_187 = l_Lean_Elab_Command_elabInitialize___closed__45; -x_188 = l_Lean_Elab_Command_elabInitialize___closed__46; -x_189 = l_Lean_SourceInfo_fromRef(x_186, x_152); -lean_dec(x_186); -x_190 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_190, 0, x_189); -lean_ctor_set(x_190, 1, x_187); -lean_inc(x_157); -x_191 = l_Lean_Syntax_node1(x_157, x_188, x_190); -x_192 = l_Array_mkArray1___redArg(x_191); -x_14 = x_153; -x_15 = x_154; -x_16 = x_155; -x_17 = x_156; -x_18 = x_183; -x_19 = x_168; -x_20 = x_157; -x_21 = x_158; -x_22 = x_159; -x_23 = x_160; +lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; +x_187 = lean_ctor_get(x_157, 0); +lean_inc(x_187); +lean_dec(x_157); +x_188 = l_Lean_Elab_Command_elabInitialize___closed__45; +x_189 = l_Lean_Elab_Command_elabInitialize___closed__46; +x_190 = l_Lean_SourceInfo_fromRef(x_187, x_153); +lean_dec(x_187); +x_191 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_188); +lean_inc(x_155); +x_192 = l_Lean_Syntax_node1(x_155, x_189, x_191); +x_193 = l_Array_mkArray1___redArg(x_192); +x_14 = x_154; +x_15 = x_155; +x_16 = x_156; +x_17 = x_185; +x_18 = x_184; +x_19 = x_159; +x_20 = x_160; +x_21 = x_169; +x_22 = x_161; +x_23 = x_162; x_24 = x_163; x_25 = x_164; x_26 = x_165; -x_27 = x_184; -x_28 = x_192; +x_27 = x_166; +x_28 = x_193; goto block_77; } } -block_238: +block_239: { -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; -x_204 = l_Lean_Elab_Command_getRef___redArg(x_195, x_197); -x_205 = lean_ctor_get(x_204, 0); -lean_inc(x_205); -x_206 = lean_ctor_get(x_204, 1); +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_205 = l_Lean_Elab_Command_getRef___redArg(x_203, x_199); +x_206 = lean_ctor_get(x_205, 0); lean_inc(x_206); -lean_dec_ref(x_204); -x_207 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_195, x_206); -x_208 = lean_ctor_get(x_207, 1); -lean_inc(x_208); -lean_dec_ref(x_207); -x_209 = l_Lean_Elab_Command_getMainModule___redArg(x_194, x_208); -x_210 = lean_ctor_get(x_209, 1); -lean_inc(x_210); -lean_dec_ref(x_209); -x_211 = l_Lean_Elab_Command_getRef___redArg(x_195, x_210); -x_212 = lean_ctor_get(x_211, 0); -lean_inc(x_212); -x_213 = lean_ctor_get(x_211, 1); +x_207 = lean_ctor_get(x_205, 1); +lean_inc(x_207); +lean_dec_ref(x_205); +x_208 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_203, x_207); +x_209 = lean_ctor_get(x_208, 1); +lean_inc(x_209); +lean_dec_ref(x_208); +x_210 = l_Lean_Elab_Command_getMainModule___redArg(x_196, x_209); +x_211 = lean_ctor_get(x_210, 1); +lean_inc(x_211); +lean_dec_ref(x_210); +x_212 = l_Lean_Elab_Command_getRef___redArg(x_203, x_211); +x_213 = lean_ctor_get(x_212, 0); lean_inc(x_213); -lean_dec_ref(x_211); -x_214 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_195, x_213); -x_215 = lean_ctor_get(x_214, 0); -lean_inc(x_215); -x_216 = lean_ctor_get(x_214, 1); +x_214 = lean_ctor_get(x_212, 1); +lean_inc(x_214); +lean_dec_ref(x_212); +x_215 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_203, x_214); +x_216 = lean_ctor_get(x_215, 0); lean_inc(x_216); -lean_dec_ref(x_214); -x_217 = l_Lean_Elab_Command_getMainModule___redArg(x_194, x_216); -x_218 = lean_ctor_get(x_217, 0); -lean_inc(x_218); -x_219 = lean_ctor_get(x_217, 1); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec_ref(x_215); +x_218 = l_Lean_Elab_Command_getMainModule___redArg(x_196, x_217); +x_219 = lean_ctor_get(x_218, 0); lean_inc(x_219); -lean_dec_ref(x_217); -x_220 = l_Lean_SourceInfo_fromRef(x_205, x_196); -lean_dec(x_205); -x_221 = l_Lean_Elab_Command_elabInitialize___closed__47; -lean_inc_ref(x_199); -x_222 = l_Lean_Name_mkStr4(x_5, x_6, x_199, x_221); -x_223 = l_Lean_Elab_Command_elabInitialize___closed__48; -lean_inc_ref(x_199); -x_224 = l_Lean_Name_mkStr4(x_5, x_6, x_199, x_223); -x_225 = l_Lean_Elab_Command_expandNamespacedDeclaration___closed__1; -x_226 = l_Lean_Elab_Command_expandMutualPreamble___closed__4; +x_220 = lean_ctor_get(x_218, 1); lean_inc(x_220); -x_227 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_227, 0, x_220); -lean_ctor_set(x_227, 1, x_225); -lean_ctor_set(x_227, 2, x_226); -lean_inc_ref(x_227); -lean_inc(x_220); -x_228 = l_Lean_Syntax_node1(x_220, x_224, x_227); -x_229 = l_Lean_Elab_Command_elabInitialize___closed__51; -lean_inc(x_220); -x_230 = l_Lean_Syntax_node2(x_220, x_229, x_202, x_227); -x_231 = l_Lean_Syntax_node2(x_220, x_222, x_228, x_230); -x_232 = lean_array_push(x_203, x_231); -x_233 = l_Lean_SourceInfo_fromRef(x_212, x_196); -lean_dec(x_212); -x_234 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__4; -if (lean_obj_tag(x_201) == 0) +lean_dec_ref(x_218); +x_221 = l_Lean_SourceInfo_fromRef(x_206, x_202); +lean_dec(x_206); +x_222 = l_Lean_Elab_Command_elabInitialize___closed__47; +lean_inc_ref(x_195); +x_223 = l_Lean_Name_mkStr4(x_5, x_6, x_195, x_222); +x_224 = l_Lean_Elab_Command_elabInitialize___closed__48; +lean_inc_ref(x_195); +x_225 = l_Lean_Name_mkStr4(x_5, x_6, x_195, x_224); +x_226 = l_Lean_Elab_Command_expandNamespacedDeclaration___closed__1; +x_227 = l_Lean_Elab_Command_expandMutualPreamble___closed__4; +lean_inc(x_221); +x_228 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_228, 0, x_221); +lean_ctor_set(x_228, 1, x_226); +lean_ctor_set(x_228, 2, x_227); +lean_inc_ref(x_228); +lean_inc(x_221); +x_229 = l_Lean_Syntax_node1(x_221, x_225, x_228); +x_230 = l_Lean_Elab_Command_elabInitialize___closed__51; +lean_inc(x_221); +x_231 = l_Lean_Syntax_node2(x_221, x_230, x_201, x_228); +x_232 = l_Lean_Syntax_node2(x_221, x_223, x_229, x_231); +x_233 = lean_array_push(x_204, x_232); +x_234 = l_Lean_SourceInfo_fromRef(x_213, x_202); +lean_dec(x_213); +x_235 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__4; +if (lean_obj_tag(x_200) == 0) { -lean_object* x_235; -x_235 = l_Lean_Elab_Command_elabInitialize___closed__44; -x_153 = x_218; -x_154 = x_219; -x_155 = x_225; -x_156 = x_200; -x_157 = x_233; -x_158 = x_234; -x_159 = x_195; -x_160 = x_194; -x_161 = x_232; -x_162 = x_198; -x_163 = x_199; -x_164 = x_215; -x_165 = x_226; -x_166 = x_235; -goto block_193; +lean_object* x_236; +x_236 = l_Lean_Elab_Command_elabInitialize___closed__44; +x_154 = x_195; +x_155 = x_234; +x_156 = x_216; +x_157 = x_198; +x_158 = x_233; +x_159 = x_203; +x_160 = x_226; +x_161 = x_219; +x_162 = x_235; +x_163 = x_227; +x_164 = x_196; +x_165 = x_197; +x_166 = x_220; +x_167 = x_236; +goto block_194; } else { -lean_object* x_236; lean_object* x_237; -x_236 = lean_ctor_get(x_201, 0); -lean_inc(x_236); -lean_dec(x_201); -x_237 = l_Array_mkArray1___redArg(x_236); -x_153 = x_218; -x_154 = x_219; -x_155 = x_225; -x_156 = x_200; -x_157 = x_233; -x_158 = x_234; -x_159 = x_195; -x_160 = x_194; -x_161 = x_232; -x_162 = x_198; -x_163 = x_199; -x_164 = x_215; -x_165 = x_226; -x_166 = x_237; -goto block_193; +lean_object* x_237; lean_object* x_238; +x_237 = lean_ctor_get(x_200, 0); +lean_inc(x_237); +lean_dec(x_200); +x_238 = l_Array_mkArray1___redArg(x_237); +x_154 = x_195; +x_155 = x_234; +x_156 = x_216; +x_157 = x_198; +x_158 = x_233; +x_159 = x_203; +x_160 = x_226; +x_161 = x_219; +x_162 = x_235; +x_163 = x_227; +x_164 = x_196; +x_165 = x_197; +x_166 = x_220; +x_167 = x_238; +goto block_194; } } -block_257: +block_258: { -lean_object* x_249; lean_object* x_250; uint8_t x_251; -x_249 = lean_unsigned_to_nat(5u); -x_250 = l_Lean_Syntax_getArg(x_12, x_249); -x_251 = l_Lean_Syntax_matchesNull(x_250, x_11); -if (x_251 == 0) +lean_object* x_250; lean_object* x_251; uint8_t x_252; +x_250 = lean_unsigned_to_nat(5u); +x_251 = l_Lean_Syntax_getArg(x_12, x_250); +x_252 = l_Lean_Syntax_matchesNull(x_251, x_11); +if (x_252 == 0) { -lean_object* x_252; lean_object* x_253; +lean_object* x_253; lean_object* x_254; +lean_dec(x_246); lean_dec(x_245); lean_dec(x_244); -lean_dec(x_243); lean_dec(x_242); lean_dec(x_241); lean_dec_ref(x_240); -x_252 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_253 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_252, x_246, x_247, x_248); -lean_dec(x_247); +x_253 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_254 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_253, x_247, x_248, x_249); +lean_dec(x_248); lean_dec(x_12); -return x_253; +return x_254; } else { lean_dec(x_12); -if (lean_obj_tag(x_241) == 0) +if (lean_obj_tag(x_242) == 0) { -lean_object* x_254; -x_254 = l_Lean_Elab_Command_expandMutualElement___closed__0; -x_194 = x_247; -x_195 = x_246; -x_196 = x_239; -x_197 = x_248; -x_198 = x_245; -x_199 = x_240; -x_200 = x_242; -x_201 = x_243; -x_202 = x_244; -x_203 = x_254; -goto block_238; +lean_object* x_255; +x_255 = l_Lean_Elab_Command_expandMutualElement___closed__0; +x_195 = x_240; +x_196 = x_248; +x_197 = x_241; +x_198 = x_246; +x_199 = x_249; +x_200 = x_245; +x_201 = x_244; +x_202 = x_243; +x_203 = x_247; +x_204 = x_255; +goto block_239; } else { -lean_object* x_255; lean_object* x_256; -x_255 = lean_ctor_get(x_241, 0); -lean_inc(x_255); -lean_dec(x_241); -x_256 = l_Lean_Syntax_TSepArray_getElems___redArg(x_255); -lean_dec(x_255); -x_194 = x_247; -x_195 = x_246; -x_196 = x_239; -x_197 = x_248; -x_198 = x_245; -x_199 = x_240; -x_200 = x_242; -x_201 = x_243; -x_202 = x_244; -x_203 = x_256; -goto block_238; +lean_object* x_256; lean_object* x_257; +x_256 = lean_ctor_get(x_242, 0); +lean_inc(x_256); +lean_dec(x_242); +x_257 = l_Lean_Syntax_TSepArray_getElems___redArg(x_256); +lean_dec(x_256); +x_195 = x_240; +x_196 = x_248; +x_197 = x_241; +x_198 = x_246; +x_199 = x_249; +x_200 = x_245; +x_201 = x_244; +x_202 = x_243; +x_203 = x_247; +x_204 = x_257; +goto block_239; } } } -block_286: +block_287: { -lean_object* x_268; uint8_t x_269; -x_268 = l_Lean_Syntax_getArg(x_12, x_259); -x_269 = l_Lean_Syntax_matchesNull(x_268, x_11); -if (x_269 == 0) +lean_object* x_269; uint8_t x_270; +x_269 = l_Lean_Syntax_getArg(x_12, x_260); +x_270 = l_Lean_Syntax_matchesNull(x_269, x_11); +if (x_270 == 0) { -lean_object* x_270; lean_object* x_271; -lean_dec(x_264); +lean_object* x_271; lean_object* x_272; +lean_dec(x_265); lean_dec(x_263); lean_dec(x_262); lean_dec(x_261); -lean_dec_ref(x_260); -x_270 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_271 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_270, x_265, x_266, x_267); -lean_dec(x_266); +lean_dec_ref(x_259); +x_271 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_272 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_271, x_266, x_267, x_268); +lean_dec(x_267); lean_dec(x_12); -return x_271; +return x_272; } else { -lean_object* x_272; lean_object* x_273; uint8_t x_274; -x_272 = lean_unsigned_to_nat(4u); -x_273 = l_Lean_Syntax_getArg(x_12, x_272); -x_274 = l_Lean_Syntax_isNone(x_273); -if (x_274 == 0) -{ -uint8_t x_275; -lean_inc(x_273); -x_275 = l_Lean_Syntax_matchesNull(x_273, x_149); +lean_object* x_273; lean_object* x_274; uint8_t x_275; +x_273 = lean_unsigned_to_nat(4u); +x_274 = l_Lean_Syntax_getArg(x_12, x_273); +x_275 = l_Lean_Syntax_isNone(x_274); if (x_275 == 0) { -lean_object* x_276; lean_object* x_277; -lean_dec(x_273); -lean_dec(x_264); +uint8_t x_276; +lean_inc(x_274); +x_276 = l_Lean_Syntax_matchesNull(x_274, x_150); +if (x_276 == 0) +{ +lean_object* x_277; lean_object* x_278; +lean_dec(x_274); +lean_dec(x_265); lean_dec(x_263); lean_dec(x_262); lean_dec(x_261); -lean_dec_ref(x_260); -x_276 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_277 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_276, x_265, x_266, x_267); -lean_dec(x_266); +lean_dec_ref(x_259); +x_277 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_278 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_277, x_266, x_267, x_268); +lean_dec(x_267); lean_dec(x_12); -return x_277; +return x_278; } else { -lean_object* x_278; lean_object* x_279; uint8_t x_280; -x_278 = l_Lean_Syntax_getArg(x_273, x_11); -lean_dec(x_273); -x_279 = l_Lean_Elab_Command_elabInitialize___closed__46; -lean_inc(x_278); -x_280 = l_Lean_Syntax_isOfKind(x_278, x_279); -if (x_280 == 0) +lean_object* x_279; lean_object* x_280; uint8_t x_281; +x_279 = l_Lean_Syntax_getArg(x_274, x_11); +lean_dec(x_274); +x_280 = l_Lean_Elab_Command_elabInitialize___closed__46; +lean_inc(x_279); +x_281 = l_Lean_Syntax_isOfKind(x_279, x_280); +if (x_281 == 0) { -lean_object* x_281; lean_object* x_282; -lean_dec(x_278); -lean_dec(x_264); +lean_object* x_282; lean_object* x_283; +lean_dec(x_279); +lean_dec(x_265); lean_dec(x_263); lean_dec(x_262); lean_dec(x_261); -lean_dec_ref(x_260); -x_281 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_282 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_281, x_265, x_266, x_267); -lean_dec(x_266); +lean_dec_ref(x_259); +x_282 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_283 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_282, x_266, x_267, x_268); +lean_dec(x_267); lean_dec(x_12); -return x_282; +return x_283; } else { -lean_object* x_283; lean_object* x_284; -x_283 = l_Lean_Syntax_getArg(x_278, x_11); -lean_dec(x_278); -x_284 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_284, 0, x_283); -x_239 = x_258; -x_240 = x_260; -x_241 = x_264; -x_242 = x_261; -x_243 = x_262; +lean_object* x_284; lean_object* x_285; +x_284 = l_Lean_Syntax_getArg(x_279, x_11); +lean_dec(x_279); +x_285 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_285, 0, x_284); +x_240 = x_259; +x_241 = x_261; +x_242 = x_265; +x_243 = x_264; x_244 = x_263; -x_245 = x_284; -x_246 = x_265; +x_245 = x_262; +x_246 = x_285; x_247 = x_266; x_248 = x_267; -goto block_257; +x_249 = x_268; +goto block_258; } } } else { -lean_object* x_285; -lean_dec(x_273); -x_285 = lean_box(0); -x_239 = x_258; -x_240 = x_260; -x_241 = x_264; -x_242 = x_261; -x_243 = x_262; +lean_object* x_286; +lean_dec(x_274); +x_286 = lean_box(0); +x_240 = x_259; +x_241 = x_261; +x_242 = x_265; +x_243 = x_264; x_244 = x_263; -x_245 = x_285; -x_246 = x_265; +x_245 = x_262; +x_246 = x_286; x_247 = x_266; x_248 = x_267; -goto block_257; +x_249 = x_268; +goto block_258; } } } -block_311: +block_312: { -lean_object* x_296; uint8_t x_297; -x_296 = l_Lean_Syntax_getArg(x_12, x_149); -x_297 = l_Lean_Syntax_isNone(x_296); -if (x_297 == 0) -{ -uint8_t x_298; -lean_inc(x_296); -x_298 = l_Lean_Syntax_matchesNull(x_296, x_149); +lean_object* x_297; uint8_t x_298; +x_297 = l_Lean_Syntax_getArg(x_12, x_150); +x_298 = l_Lean_Syntax_isNone(x_297); if (x_298 == 0) { -lean_object* x_299; lean_object* x_300; -lean_dec(x_296); +uint8_t x_299; +lean_inc(x_297); +x_299 = l_Lean_Syntax_matchesNull(x_297, x_150); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; +lean_dec(x_297); +lean_dec(x_293); lean_dec(x_292); -lean_dec(x_291); lean_dec(x_290); -lean_dec_ref(x_289); -x_299 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_300 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_299, x_293, x_294, x_295); -lean_dec(x_294); +lean_dec_ref(x_288); +x_300 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_301 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_300, x_294, x_295, x_296); +lean_dec(x_295); lean_dec(x_12); -return x_300; +return x_301; } else { -lean_object* x_301; lean_object* x_302; lean_object* x_303; uint8_t x_304; -x_301 = l_Lean_Syntax_getArg(x_296, x_11); -lean_dec(x_296); -x_302 = l_Lean_Elab_Command_elabInitialize___closed__40; -lean_inc_ref(x_289); -x_303 = l_Lean_Name_mkStr4(x_5, x_6, x_289, x_302); -lean_inc(x_301); -x_304 = l_Lean_Syntax_isOfKind(x_301, x_303); -lean_dec(x_303); -if (x_304 == 0) +lean_object* x_302; lean_object* x_303; lean_object* x_304; uint8_t x_305; +x_302 = l_Lean_Syntax_getArg(x_297, x_11); +lean_dec(x_297); +x_303 = l_Lean_Elab_Command_elabInitialize___closed__40; +lean_inc_ref(x_288); +x_304 = l_Lean_Name_mkStr4(x_5, x_6, x_288, x_303); +lean_inc(x_302); +x_305 = l_Lean_Syntax_isOfKind(x_302, x_304); +lean_dec(x_304); +if (x_305 == 0) { -lean_object* x_305; lean_object* x_306; -lean_dec(x_301); +lean_object* x_306; lean_object* x_307; +lean_dec(x_302); +lean_dec(x_293); lean_dec(x_292); -lean_dec(x_291); lean_dec(x_290); -lean_dec_ref(x_289); -x_305 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_306 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_305, x_293, x_294, x_295); -lean_dec(x_294); +lean_dec_ref(x_288); +x_306 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_307 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_306, x_294, x_295, x_296); +lean_dec(x_295); lean_dec(x_12); -return x_306; +return x_307; } else { -lean_object* x_307; lean_object* x_308; lean_object* x_309; -x_307 = l_Lean_Syntax_getArg(x_301, x_149); -lean_dec(x_301); -x_308 = l_Lean_Syntax_getArgs(x_307); -lean_dec(x_307); -x_309 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_309, 0, x_308); -x_258 = x_287; +lean_object* x_308; lean_object* x_309; lean_object* x_310; +x_308 = l_Lean_Syntax_getArg(x_302, x_150); +lean_dec(x_302); +x_309 = l_Lean_Syntax_getArgs(x_308); +lean_dec(x_308); +x_310 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_310, 0, x_309); x_259 = x_288; x_260 = x_289; x_261 = x_290; -x_262 = x_292; -x_263 = x_291; -x_264 = x_309; -x_265 = x_293; +x_262 = x_293; +x_263 = x_292; +x_264 = x_291; +x_265 = x_310; x_266 = x_294; x_267 = x_295; -goto block_286; +x_268 = x_296; +goto block_287; } } } else { -lean_object* x_310; -lean_dec(x_296); -x_310 = lean_box(0); -x_258 = x_287; +lean_object* x_311; +lean_dec(x_297); +x_311 = lean_box(0); x_259 = x_288; x_260 = x_289; x_261 = x_290; -x_262 = x_292; -x_263 = x_291; -x_264 = x_310; -x_265 = x_293; +x_262 = x_293; +x_263 = x_292; +x_264 = x_291; +x_265 = x_311; x_266 = x_294; x_267 = x_295; -goto block_286; +x_268 = x_296; +goto block_287; } } -block_334: +block_335: { -if (x_147 == 0) +if (x_148 == 0) { -lean_object* x_320; lean_object* x_321; +lean_object* x_321; lean_object* x_322; lean_dec(x_316); lean_dec(x_315); -lean_dec_ref(x_314); -x_320 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_321 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_320, x_317, x_318, x_319); -lean_dec(x_318); +lean_dec_ref(x_313); +x_321 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_322 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_321, x_318, x_319, x_320); +lean_dec(x_319); lean_dec(x_12); -return x_321; +return x_322; } else { -lean_object* x_322; uint8_t x_323; -x_322 = l_Lean_Syntax_getArg(x_12, x_11); -x_323 = l_Lean_Syntax_isNone(x_322); -if (x_323 == 0) -{ -uint8_t x_324; -lean_inc(x_322); -x_324 = l_Lean_Syntax_matchesNull(x_322, x_149); +lean_object* x_323; uint8_t x_324; +x_323 = l_Lean_Syntax_getArg(x_12, x_11); +x_324 = l_Lean_Syntax_isNone(x_323); if (x_324 == 0) { -lean_object* x_325; lean_object* x_326; -lean_dec(x_322); +uint8_t x_325; +lean_inc(x_323); +x_325 = l_Lean_Syntax_matchesNull(x_323, x_150); +if (x_325 == 0) +{ +lean_object* x_326; lean_object* x_327; +lean_dec(x_323); lean_dec(x_316); lean_dec(x_315); -lean_dec_ref(x_314); -x_325 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_326 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_325, x_317, x_318, x_319); -lean_dec(x_318); +lean_dec_ref(x_313); +x_326 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_327 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_326, x_318, x_319, x_320); +lean_dec(x_319); lean_dec(x_12); -return x_326; +return x_327; } else { -lean_object* x_327; lean_object* x_328; uint8_t x_329; -x_327 = l_Lean_Syntax_getArg(x_322, x_11); -lean_dec(x_322); -x_328 = l_Lean_Elab_Command_elabInitialize___closed__55; -lean_inc(x_327); -x_329 = l_Lean_Syntax_isOfKind(x_327, x_328); -if (x_329 == 0) +lean_object* x_328; lean_object* x_329; uint8_t x_330; +x_328 = l_Lean_Syntax_getArg(x_323, x_11); +lean_dec(x_323); +x_329 = l_Lean_Elab_Command_elabInitialize___closed__55; +lean_inc(x_328); +x_330 = l_Lean_Syntax_isOfKind(x_328, x_329); +if (x_330 == 0) { -lean_object* x_330; lean_object* x_331; -lean_dec(x_327); +lean_object* x_331; lean_object* x_332; +lean_dec(x_328); lean_dec(x_316); lean_dec(x_315); -lean_dec_ref(x_314); -x_330 = l_Lean_Elab_Command_elabInitialize___closed__53; -x_331 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_330, x_317, x_318, x_319); -lean_dec(x_318); +lean_dec_ref(x_313); +x_331 = l_Lean_Elab_Command_elabInitialize___closed__53; +x_332 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at___Lean_Elab_Command_elabCommand_go_spec__1_spec__3___redArg(x_12, x_331, x_318, x_319, x_320); +lean_dec(x_319); lean_dec(x_12); -return x_331; -} -else -{ -lean_object* x_332; -x_332 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_332, 0, x_327); -x_287 = x_312; -x_288 = x_313; -x_289 = x_314; -x_290 = x_315; -x_291 = x_316; -x_292 = x_332; -x_293 = x_317; -x_294 = x_318; -x_295 = x_319; -goto block_311; -} -} +return x_332; } else { lean_object* x_333; -lean_dec(x_322); -x_333 = lean_box(0); -x_287 = x_312; +x_333 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_333, 0, x_328); x_288 = x_313; x_289 = x_314; x_290 = x_315; -x_291 = x_316; -x_292 = x_333; -x_293 = x_317; +x_291 = x_317; +x_292 = x_316; +x_293 = x_333; x_294 = x_318; x_295 = x_319; -goto block_311; +x_296 = x_320; +goto block_312; } } } -block_389: +else { -lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; uint8_t x_365; -x_354 = l_Lean_Syntax_getArg(x_338, x_11); -x_355 = l_Lean_Syntax_getArg(x_338, x_149); -lean_inc_ref(x_351); -lean_inc(x_350); -x_356 = l_Lean_Elab_addDeclarationRangesForBuiltin___at___Lean_Elab_Command_elabInitialize_spec__0(x_350, x_354, x_355, x_351, x_352, x_353); -x_357 = lean_ctor_get(x_356, 1); -lean_inc(x_357); -lean_dec_ref(x_356); -x_358 = l_Lean_Elab_Command_getRef___redArg(x_351, x_357); -x_359 = lean_ctor_get(x_358, 0); -lean_inc(x_359); -x_360 = lean_ctor_get(x_358, 1); -lean_inc(x_360); +lean_object* x_334; +lean_dec(x_323); +x_334 = lean_box(0); +x_288 = x_313; +x_289 = x_314; +x_290 = x_315; +x_291 = x_317; +x_292 = x_316; +x_293 = x_334; +x_294 = x_318; +x_295 = x_319; +x_296 = x_320; +goto block_312; +} +} +} +block_369: +{ +lean_object* x_359; lean_object* x_360; +lean_inc_ref(x_341); +x_359 = l_Array_append___redArg(x_341, x_358); lean_dec_ref(x_358); -x_361 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_351, x_360); -x_362 = lean_ctor_get(x_361, 0); +lean_inc(x_357); +lean_inc(x_347); +x_360 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_360, 0, x_347); +lean_ctor_set(x_360, 1, x_357); +lean_ctor_set(x_360, 2, x_359); +if (lean_obj_tag(x_340) == 0) +{ +lean_object* x_361; +x_361 = l_Lean_Elab_Command_elabInitialize___closed__44; +x_78 = x_336; +x_79 = x_337; +x_80 = x_338; +x_81 = x_339; +x_82 = x_341; +x_83 = x_342; +x_84 = x_343; +x_85 = x_344; +x_86 = x_345; +x_87 = x_346; +x_88 = x_347; +x_89 = x_349; +x_90 = x_348; +x_91 = x_360; +x_92 = x_351; +x_93 = x_350; +x_94 = x_352; +x_95 = x_353; +x_96 = x_354; +x_97 = x_355; +x_98 = x_356; +x_99 = x_357; +x_100 = x_361; +goto block_147; +} +else +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; +x_362 = lean_ctor_get(x_340, 0); lean_inc(x_362); -x_363 = lean_ctor_get(x_361, 1); -lean_inc(x_363); -lean_dec_ref(x_361); -x_364 = l_Lean_Elab_Command_getMainModule___redArg(x_352, x_363); -x_365 = !lean_is_exclusive(x_364); -if (x_365 == 0) -{ -lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; -x_366 = lean_ctor_get(x_364, 0); -x_367 = lean_ctor_get(x_364, 1); -x_368 = l_Lean_SourceInfo_fromRef(x_359, x_336); -lean_dec(x_359); -lean_inc_ref(x_349); -lean_inc(x_344); -lean_inc(x_368); -x_369 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_369, 0, x_368); -lean_ctor_set(x_369, 1, x_344); -lean_ctor_set(x_369, 2, x_349); -if (lean_obj_tag(x_340) == 0) -{ -lean_object* x_370; -lean_free_object(x_364); -x_370 = l_Lean_Elab_Command_elabInitialize___closed__44; -x_78 = x_335; -x_79 = x_368; -x_80 = x_337; -x_81 = x_338; -x_82 = x_362; -x_83 = x_339; -x_84 = x_341; -x_85 = x_342; -x_86 = x_343; -x_87 = x_352; -x_88 = x_345; -x_89 = x_344; -x_90 = x_346; -x_91 = x_347; -x_92 = x_348; -x_93 = x_351; -x_94 = x_366; -x_95 = x_367; -x_96 = x_349; -x_97 = x_350; -x_98 = x_369; -x_99 = x_370; -goto block_146; -} -else -{ -lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; -x_371 = lean_ctor_get(x_340, 0); -lean_inc(x_371); lean_dec(x_340); -x_372 = l_Lean_Elab_Command_elabInitialize___closed__45; -x_373 = l_Lean_Elab_Command_elabInitialize___closed__46; -x_374 = l_Lean_SourceInfo_fromRef(x_371, x_152); -lean_dec(x_371); -lean_ctor_set_tag(x_364, 2); -lean_ctor_set(x_364, 1, x_372); -lean_ctor_set(x_364, 0, x_374); -lean_inc(x_368); -x_375 = l_Lean_Syntax_node1(x_368, x_373, x_364); -x_376 = l_Array_mkArray1___redArg(x_375); -x_78 = x_335; -x_79 = x_368; -x_80 = x_337; -x_81 = x_338; -x_82 = x_362; -x_83 = x_339; -x_84 = x_341; -x_85 = x_342; -x_86 = x_343; -x_87 = x_352; -x_88 = x_345; -x_89 = x_344; -x_90 = x_346; -x_91 = x_347; -x_92 = x_348; -x_93 = x_351; -x_94 = x_366; -x_95 = x_367; -x_96 = x_349; -x_97 = x_350; -x_98 = x_369; -x_99 = x_376; -goto block_146; +x_363 = l_Lean_Elab_Command_elabInitialize___closed__45; +x_364 = l_Lean_Elab_Command_elabInitialize___closed__46; +x_365 = l_Lean_SourceInfo_fromRef(x_362, x_153); +lean_dec(x_362); +x_366 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_366, 0, x_365); +lean_ctor_set(x_366, 1, x_363); +lean_inc(x_347); +x_367 = l_Lean_Syntax_node1(x_347, x_364, x_366); +x_368 = l_Array_mkArray1___redArg(x_367); +x_78 = x_336; +x_79 = x_337; +x_80 = x_338; +x_81 = x_339; +x_82 = x_341; +x_83 = x_342; +x_84 = x_343; +x_85 = x_344; +x_86 = x_345; +x_87 = x_346; +x_88 = x_347; +x_89 = x_349; +x_90 = x_348; +x_91 = x_360; +x_92 = x_351; +x_93 = x_350; +x_94 = x_352; +x_95 = x_353; +x_96 = x_354; +x_97 = x_355; +x_98 = x_356; +x_99 = x_357; +x_100 = x_368; +goto block_147; +} +} +block_421: +{ +lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; uint8_t x_397; +x_390 = l_Lean_Elab_Command_getRef___redArg(x_381, x_371); +x_391 = lean_ctor_get(x_390, 0); +lean_inc(x_391); +x_392 = lean_ctor_get(x_390, 1); +lean_inc(x_392); +lean_dec_ref(x_390); +x_393 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_381, x_392); +x_394 = lean_ctor_get(x_393, 0); +lean_inc(x_394); +x_395 = lean_ctor_get(x_393, 1); +lean_inc(x_395); +lean_dec_ref(x_393); +x_396 = l_Lean_Elab_Command_getMainModule___redArg(x_382, x_395); +x_397 = !lean_is_exclusive(x_396); +if (x_397 == 0) +{ +lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; +x_398 = lean_ctor_get(x_396, 0); +x_399 = lean_ctor_get(x_396, 1); +x_400 = l_Lean_SourceInfo_fromRef(x_391, x_378); +lean_dec(x_391); +lean_inc_ref(x_373); +lean_inc(x_388); +lean_inc(x_400); +x_401 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_401, 0, x_400); +lean_ctor_set(x_401, 1, x_388); +lean_ctor_set(x_401, 2, x_373); +if (lean_obj_tag(x_389) == 0) +{ +lean_object* x_402; +lean_free_object(x_396); +x_402 = l_Lean_Elab_Command_elabInitialize___closed__44; +x_336 = x_399; +x_337 = x_398; +x_338 = x_370; +x_339 = x_372; +x_340 = x_374; +x_341 = x_373; +x_342 = x_401; +x_343 = x_375; +x_344 = x_394; +x_345 = x_376; +x_346 = x_377; +x_347 = x_400; +x_348 = x_380; +x_349 = x_379; +x_350 = x_381; +x_351 = x_382; +x_352 = x_383; +x_353 = x_384; +x_354 = x_385; +x_355 = x_386; +x_356 = x_387; +x_357 = x_388; +x_358 = x_402; +goto block_369; +} +else +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; +x_403 = lean_ctor_get(x_389, 0); +lean_inc(x_403); +lean_dec(x_389); +x_404 = l_Lean_Elab_Command_elabInitialize___closed__56; +x_405 = l_Lean_Elab_Command_elabInitialize___closed__57; +x_406 = l_Lean_SourceInfo_fromRef(x_403, x_153); +lean_dec(x_403); +lean_ctor_set_tag(x_396, 2); +lean_ctor_set(x_396, 1, x_404); +lean_ctor_set(x_396, 0, x_406); +lean_inc(x_400); +x_407 = l_Lean_Syntax_node1(x_400, x_405, x_396); +x_408 = l_Array_mkArray1___redArg(x_407); +x_336 = x_399; +x_337 = x_398; +x_338 = x_370; +x_339 = x_372; +x_340 = x_374; +x_341 = x_373; +x_342 = x_401; +x_343 = x_375; +x_344 = x_394; +x_345 = x_376; +x_346 = x_377; +x_347 = x_400; +x_348 = x_380; +x_349 = x_379; +x_350 = x_381; +x_351 = x_382; +x_352 = x_383; +x_353 = x_384; +x_354 = x_385; +x_355 = x_386; +x_356 = x_387; +x_357 = x_388; +x_358 = x_408; +goto block_369; } } else { -lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; -x_377 = lean_ctor_get(x_364, 0); -x_378 = lean_ctor_get(x_364, 1); -lean_inc(x_378); -lean_inc(x_377); -lean_dec(x_364); -x_379 = l_Lean_SourceInfo_fromRef(x_359, x_336); -lean_dec(x_359); -lean_inc_ref(x_349); -lean_inc(x_344); -lean_inc(x_379); -x_380 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_380, 0, x_379); -lean_ctor_set(x_380, 1, x_344); -lean_ctor_set(x_380, 2, x_349); -if (lean_obj_tag(x_340) == 0) +lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; +x_409 = lean_ctor_get(x_396, 0); +x_410 = lean_ctor_get(x_396, 1); +lean_inc(x_410); +lean_inc(x_409); +lean_dec(x_396); +x_411 = l_Lean_SourceInfo_fromRef(x_391, x_378); +lean_dec(x_391); +lean_inc_ref(x_373); +lean_inc(x_388); +lean_inc(x_411); +x_412 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_412, 0, x_411); +lean_ctor_set(x_412, 1, x_388); +lean_ctor_set(x_412, 2, x_373); +if (lean_obj_tag(x_389) == 0) { -lean_object* x_381; -x_381 = l_Lean_Elab_Command_elabInitialize___closed__44; -x_78 = x_335; -x_79 = x_379; -x_80 = x_337; -x_81 = x_338; -x_82 = x_362; -x_83 = x_339; -x_84 = x_341; -x_85 = x_342; -x_86 = x_343; -x_87 = x_352; -x_88 = x_345; -x_89 = x_344; -x_90 = x_346; -x_91 = x_347; -x_92 = x_348; -x_93 = x_351; -x_94 = x_377; -x_95 = x_378; -x_96 = x_349; -x_97 = x_350; -x_98 = x_380; -x_99 = x_381; -goto block_146; +lean_object* x_413; +x_413 = l_Lean_Elab_Command_elabInitialize___closed__44; +x_336 = x_410; +x_337 = x_409; +x_338 = x_370; +x_339 = x_372; +x_340 = x_374; +x_341 = x_373; +x_342 = x_412; +x_343 = x_375; +x_344 = x_394; +x_345 = x_376; +x_346 = x_377; +x_347 = x_411; +x_348 = x_380; +x_349 = x_379; +x_350 = x_381; +x_351 = x_382; +x_352 = x_383; +x_353 = x_384; +x_354 = x_385; +x_355 = x_386; +x_356 = x_387; +x_357 = x_388; +x_358 = x_413; +goto block_369; } else { -lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; -x_382 = lean_ctor_get(x_340, 0); -lean_inc(x_382); -lean_dec(x_340); -x_383 = l_Lean_Elab_Command_elabInitialize___closed__45; -x_384 = l_Lean_Elab_Command_elabInitialize___closed__46; -x_385 = l_Lean_SourceInfo_fromRef(x_382, x_152); -lean_dec(x_382); -x_386 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_386, 0, x_385); -lean_ctor_set(x_386, 1, x_383); -lean_inc(x_379); -x_387 = l_Lean_Syntax_node1(x_379, x_384, x_386); -x_388 = l_Array_mkArray1___redArg(x_387); -x_78 = x_335; -x_79 = x_379; -x_80 = x_337; -x_81 = x_338; -x_82 = x_362; -x_83 = x_339; -x_84 = x_341; -x_85 = x_342; -x_86 = x_343; -x_87 = x_352; -x_88 = x_345; -x_89 = x_344; -x_90 = x_346; -x_91 = x_347; -x_92 = x_348; -x_93 = x_351; -x_94 = x_377; -x_95 = x_378; -x_96 = x_349; -x_97 = x_350; -x_98 = x_380; -x_99 = x_388; -goto block_146; +lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; +x_414 = lean_ctor_get(x_389, 0); +lean_inc(x_414); +lean_dec(x_389); +x_415 = l_Lean_Elab_Command_elabInitialize___closed__56; +x_416 = l_Lean_Elab_Command_elabInitialize___closed__57; +x_417 = l_Lean_SourceInfo_fromRef(x_414, x_153); +lean_dec(x_414); +x_418 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_418, 0, x_417); +lean_ctor_set(x_418, 1, x_415); +lean_inc(x_411); +x_419 = l_Lean_Syntax_node1(x_411, x_416, x_418); +x_420 = l_Array_mkArray1___redArg(x_419); +x_336 = x_410; +x_337 = x_409; +x_338 = x_370; +x_339 = x_372; +x_340 = x_374; +x_341 = x_373; +x_342 = x_412; +x_343 = x_375; +x_344 = x_394; +x_345 = x_376; +x_346 = x_377; +x_347 = x_411; +x_348 = x_380; +x_349 = x_379; +x_350 = x_381; +x_351 = x_382; +x_352 = x_383; +x_353 = x_384; +x_354 = x_385; +x_355 = x_386; +x_356 = x_387; +x_357 = x_388; +x_358 = x_420; +goto block_369; } } } +block_448: +{ +lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; uint8_t x_445; +x_441 = l_Lean_Syntax_getArg(x_433, x_11); +x_442 = l_Lean_Syntax_getArg(x_433, x_150); +lean_inc_ref(x_438); +lean_inc(x_437); +x_443 = l_Lean_Elab_addDeclarationRangesForBuiltin___at___Lean_Elab_Command_elabInitialize_spec__0(x_437, x_441, x_442, x_438, x_439, x_440); +x_444 = lean_ctor_get(x_443, 1); +lean_inc(x_444); +lean_dec_ref(x_443); +x_445 = l_Lean_isPrivateName(x_437); +if (x_445 == 0) +{ +lean_object* x_446; +x_446 = lean_box(0); +x_370 = x_422; +x_371 = x_444; +x_372 = x_423; +x_373 = x_424; +x_374 = x_425; +x_375 = x_426; +x_376 = x_437; +x_377 = x_427; +x_378 = x_428; +x_379 = x_429; +x_380 = x_430; +x_381 = x_438; +x_382 = x_439; +x_383 = x_431; +x_384 = x_432; +x_385 = x_433; +x_386 = x_434; +x_387 = x_435; +x_388 = x_436; +x_389 = x_446; +goto block_421; +} +else +{ +lean_object* x_447; +x_447 = l_Lean_Elab_Command_elabInitialize___closed__58; +x_370 = x_422; +x_371 = x_444; +x_372 = x_423; +x_373 = x_424; +x_374 = x_425; +x_375 = x_426; +x_376 = x_437; +x_377 = x_427; +x_378 = x_428; +x_379 = x_429; +x_380 = x_430; +x_381 = x_438; +x_382 = x_439; +x_383 = x_431; +x_384 = x_432; +x_385 = x_433; +x_386 = x_434; +x_387 = x_435; +x_388 = x_436; +x_389 = x_447; +goto block_421; +} +} } block_77: { 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; -x_29 = l_Array_append___redArg(x_26, x_28); +x_29 = l_Array_append___redArg(x_24, x_28); lean_dec_ref(x_28); -lean_inc(x_16); lean_inc(x_20); +lean_inc(x_15); x_30 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_30, 0, x_20); -lean_ctor_set(x_30, 1, x_16); +lean_ctor_set(x_30, 0, x_15); +lean_ctor_set(x_30, 1, x_20); lean_ctor_set(x_30, 2, x_29); -lean_inc_n(x_27, 3); -lean_inc(x_20); -x_31 = l_Lean_Syntax_node6(x_20, x_13, x_19, x_18, x_27, x_27, x_30, x_27); +lean_inc_n(x_17, 3); +lean_inc(x_15); +x_31 = l_Lean_Syntax_node6(x_15, x_13, x_21, x_18, x_17, x_17, x_30, x_17); x_32 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__20; x_33 = l_Lean_Elab_Command_elabInitialize___closed__4; -lean_inc(x_20); +lean_inc(x_15); x_34 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_34, 0, x_20); +lean_ctor_set(x_34, 0, x_15); lean_ctor_set(x_34, 1, x_33); x_35 = l_Lean_Elab_Command_elabInitialize___closed__6; x_36 = l_Lean_Elab_Command_elabInitialize___closed__8; x_37 = l_Lean_Elab_Command_elabInitialize___closed__9; -lean_inc(x_25); -lean_inc(x_14); -x_38 = l_Lean_addMacroScope(x_14, x_37, x_25); +lean_inc(x_16); +lean_inc(x_22); +x_38 = l_Lean_addMacroScope(x_22, x_37, x_16); x_39 = lean_box(0); -lean_inc(x_20); +lean_inc(x_15); x_40 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_40, 0, x_20); +lean_ctor_set(x_40, 0, x_15); lean_ctor_set(x_40, 1, x_36); lean_ctor_set(x_40, 2, x_38); lean_ctor_set(x_40, 3, x_39); -lean_inc(x_27); -lean_inc(x_20); -x_41 = l_Lean_Syntax_node2(x_20, x_35, x_40, x_27); +lean_inc(x_17); +lean_inc(x_15); +x_41 = l_Lean_Syntax_node2(x_15, x_35, x_40, x_17); x_42 = l_Lean_Elab_Command_elabInitialize___closed__11; x_43 = l_Lean_Elab_Command_elabInitialize___closed__12; -lean_inc_ref(x_24); -x_44 = l_Lean_Name_mkStr4(x_5, x_6, x_24, x_43); +lean_inc_ref(x_14); +x_44 = l_Lean_Name_mkStr4(x_5, x_6, x_14, x_43); x_45 = l_Lean_Elab_Command_elabInitialize___closed__13; -lean_inc(x_20); +lean_inc(x_15); x_46 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_46, 0, x_20); +lean_ctor_set(x_46, 0, x_15); lean_ctor_set(x_46, 1, x_45); x_47 = l_Lean_Elab_Command_elabInitialize___closed__14; -lean_inc_ref(x_24); -x_48 = l_Lean_Name_mkStr4(x_5, x_6, x_24, x_47); +lean_inc_ref(x_14); +x_48 = l_Lean_Name_mkStr4(x_5, x_6, x_14, x_47); x_49 = l_Lean_Elab_Command_elabInitialize___closed__16; x_50 = l_Lean_Elab_Command_elabInitialize___closed__17; -lean_inc(x_25); -lean_inc(x_14); -x_51 = l_Lean_addMacroScope(x_14, x_50, x_25); +lean_inc(x_16); +lean_inc(x_22); +x_51 = l_Lean_addMacroScope(x_22, x_50, x_16); x_52 = l_Lean_Elab_Command_elabInitialize___closed__21; -lean_inc(x_20); +lean_inc(x_15); x_53 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_53, 0, x_20); +lean_ctor_set(x_53, 0, x_15); lean_ctor_set(x_53, 1, x_49); lean_ctor_set(x_53, 2, x_51); lean_ctor_set(x_53, 3, x_52); x_54 = l_Lean_Elab_Command_elabInitialize___closed__23; x_55 = l_Lean_Elab_Command_elabInitialize___closed__24; -x_56 = l_Lean_addMacroScope(x_14, x_55, x_25); +x_56 = l_Lean_addMacroScope(x_22, x_55, x_16); x_57 = l_Lean_Elab_Command_elabInitialize___closed__28; -lean_inc(x_20); +lean_inc(x_15); x_58 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_58, 0, x_20); +lean_ctor_set(x_58, 0, x_15); lean_ctor_set(x_58, 1, x_54); lean_ctor_set(x_58, 2, x_56); lean_ctor_set(x_58, 3, x_57); -lean_inc(x_16); lean_inc(x_20); -x_59 = l_Lean_Syntax_node1(x_20, x_16, x_58); -lean_inc(x_20); -x_60 = l_Lean_Syntax_node2(x_20, x_48, x_53, x_59); -lean_inc(x_20); -x_61 = l_Lean_Syntax_node2(x_20, x_44, x_46, x_60); -lean_inc(x_20); -x_62 = l_Lean_Syntax_node1(x_20, x_16, x_61); -lean_inc(x_27); -lean_inc(x_20); -x_63 = l_Lean_Syntax_node2(x_20, x_42, x_27, x_62); +lean_inc(x_15); +x_59 = l_Lean_Syntax_node1(x_15, x_20, x_58); +lean_inc(x_15); +x_60 = l_Lean_Syntax_node2(x_15, x_48, x_53, x_59); +lean_inc(x_15); +x_61 = l_Lean_Syntax_node2(x_15, x_44, x_46, x_60); +lean_inc(x_15); +x_62 = l_Lean_Syntax_node1(x_15, x_20, x_61); +lean_inc(x_17); +lean_inc(x_15); +x_63 = l_Lean_Syntax_node2(x_15, x_42, x_17, x_62); x_64 = l_Lean_Elab_Command_elabInitialize___closed__30; x_65 = l_Lean_Elab_Command_elabInitialize___closed__31; -lean_inc(x_20); +lean_inc(x_15); x_66 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_66, 0, x_20); +lean_ctor_set(x_66, 0, x_15); lean_ctor_set(x_66, 1, x_65); x_67 = l_Lean_Elab_Command_elabInitialize___closed__32; -x_68 = l_Lean_Name_mkStr4(x_5, x_6, x_24, x_67); -lean_inc(x_20); +x_68 = l_Lean_Name_mkStr4(x_5, x_6, x_14, x_67); +lean_inc(x_15); x_69 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_69, 0, x_20); +lean_ctor_set(x_69, 0, x_15); lean_ctor_set(x_69, 1, x_67); -lean_inc(x_20); -x_70 = l_Lean_Syntax_node2(x_20, x_68, x_69, x_17); +lean_inc(x_15); +x_70 = l_Lean_Syntax_node2(x_15, x_68, x_69, x_26); x_71 = l_Lean_Elab_Command_elabInitialize___closed__35; -lean_inc_n(x_27, 2); -lean_inc(x_20); -x_72 = l_Lean_Syntax_node2(x_20, x_71, x_27, x_27); -lean_inc(x_27); -lean_inc(x_20); -x_73 = l_Lean_Syntax_node4(x_20, x_64, x_66, x_70, x_72, x_27); -lean_inc(x_20); -x_74 = l_Lean_Syntax_node5(x_20, x_32, x_34, x_41, x_63, x_73, x_27); -x_75 = l_Lean_Syntax_node2(x_20, x_21, x_31, x_74); -x_76 = l_Lean_Elab_Command_elabCommand(x_75, x_22, x_23, x_15); +lean_inc_n(x_17, 2); +lean_inc(x_15); +x_72 = l_Lean_Syntax_node2(x_15, x_71, x_17, x_17); +lean_inc(x_17); +lean_inc(x_15); +x_73 = l_Lean_Syntax_node4(x_15, x_64, x_66, x_70, x_72, x_17); +lean_inc(x_15); +x_74 = l_Lean_Syntax_node5(x_15, x_32, x_34, x_41, x_63, x_73, x_17); +x_75 = l_Lean_Syntax_node2(x_15, x_23, x_31, x_74); +x_76 = l_Lean_Elab_Command_elabCommand(x_75, x_19, x_25, x_27); return x_76; } -block_146: +block_147: { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_100 = l_Array_append___redArg(x_96, x_99); -lean_dec_ref(x_99); -lean_inc(x_89); +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_101 = l_Array_append___redArg(x_82, x_100); +lean_dec_ref(x_100); +lean_inc(x_99); +lean_inc(x_88); +x_102 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_102, 0, x_88); +lean_ctor_set(x_102, 1, x_99); +lean_ctor_set(x_102, 2, x_101); +lean_inc_n(x_83, 4); +lean_inc(x_88); +x_103 = l_Lean_Syntax_node6(x_88, x_13, x_83, x_83, x_91, x_83, x_102, x_83); +x_104 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__20; +x_105 = l_Lean_Elab_Command_elabInitialize___closed__4; +lean_inc(x_88); +x_106 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_106, 0, x_88); +lean_ctor_set(x_106, 1, x_105); +lean_inc(x_85); lean_inc(x_79); -x_101 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_101, 0, x_79); -lean_ctor_set(x_101, 1, x_89); -lean_ctor_set(x_101, 2, x_100); -lean_inc_n(x_98, 5); -lean_inc(x_79); -x_102 = l_Lean_Syntax_node6(x_79, x_13, x_98, x_98, x_98, x_98, x_101, x_98); -x_103 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__20; -x_104 = l_Lean_Elab_Command_elabInitialize___closed__4; -lean_inc(x_79); -x_105 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_105, 0, x_79); -lean_ctor_set(x_105, 1, x_104); -lean_inc(x_82); -lean_inc(x_94); -x_106 = l_Lean_addMacroScope(x_94, x_78, x_82); +x_107 = l_Lean_addMacroScope(x_79, x_81, x_85); +lean_inc(x_84); +lean_inc(x_88); +x_108 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_108, 0, x_88); +lean_ctor_set(x_108, 1, x_90); +lean_ctor_set(x_108, 2, x_107); +lean_ctor_set(x_108, 3, x_84); lean_inc(x_83); -lean_inc(x_79); -x_107 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_107, 0, x_79); -lean_ctor_set(x_107, 1, x_90); -lean_ctor_set(x_107, 2, x_106); -lean_ctor_set(x_107, 3, x_83); -lean_inc(x_98); -lean_inc(x_79); -x_108 = l_Lean_Syntax_node2(x_79, x_86, x_107, x_98); -x_109 = l_Lean_Elab_Command_elabInitialize___closed__11; -lean_inc(x_79); -x_110 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_110, 0, x_79); -lean_ctor_set(x_110, 1, x_85); -x_111 = l_Lean_Elab_Command_elabInitialize___closed__14; -lean_inc_ref(x_92); -x_112 = l_Lean_Name_mkStr4(x_5, x_6, x_92, x_111); -x_113 = l_Lean_Elab_Command_elabInitialize___closed__16; -x_114 = l_Lean_Elab_Command_elabInitialize___closed__17; -x_115 = l_Lean_addMacroScope(x_94, x_114, x_82); -x_116 = l_Lean_Elab_Command_elabInitialize___closed__18; -x_117 = l_Lean_Elab_Command_elabInitialize___closed__19; -x_118 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_83); +lean_inc(x_88); +x_109 = l_Lean_Syntax_node2(x_88, x_98, x_108, x_83); +x_110 = l_Lean_Elab_Command_elabInitialize___closed__11; +lean_inc(x_88); +x_111 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_111, 0, x_88); +lean_ctor_set(x_111, 1, x_94); +x_112 = l_Lean_Elab_Command_elabInitialize___closed__14; +lean_inc_ref(x_80); +x_113 = l_Lean_Name_mkStr4(x_5, x_6, x_80, x_112); +x_114 = l_Lean_Elab_Command_elabInitialize___closed__16; +x_115 = l_Lean_Elab_Command_elabInitialize___closed__17; +x_116 = l_Lean_addMacroScope(x_79, x_115, x_85); +x_117 = l_Lean_Elab_Command_elabInitialize___closed__18; +x_118 = l_Lean_Elab_Command_elabInitialize___closed__19; x_119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_119, 0, x_116); -lean_ctor_set(x_119, 1, x_118); -lean_inc(x_79); -x_120 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_120, 0, x_79); -lean_ctor_set(x_120, 1, x_113); -lean_ctor_set(x_120, 2, x_115); -lean_ctor_set(x_120, 3, x_119); -lean_inc(x_89); -lean_inc(x_79); -x_121 = l_Lean_Syntax_node1(x_79, x_89, x_91); -lean_inc(x_79); -x_122 = l_Lean_Syntax_node2(x_79, x_112, x_120, x_121); -lean_inc(x_79); -x_123 = l_Lean_Syntax_node2(x_79, x_88, x_110, x_122); -lean_inc(x_89); -lean_inc(x_79); -x_124 = l_Lean_Syntax_node1(x_79, x_89, x_123); -lean_inc(x_98); -lean_inc(x_79); -x_125 = l_Lean_Syntax_node2(x_79, x_109, x_98, x_124); -x_126 = l_Lean_Elab_Command_elabInitialize___closed__30; -x_127 = l_Lean_Elab_Command_elabInitialize___closed__31; -lean_inc(x_79); -x_128 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_128, 0, x_79); -lean_ctor_set(x_128, 1, x_127); -x_129 = l_Lean_Elab_Command_elabInitialize___closed__36; -lean_inc_ref(x_92); -x_130 = l_Lean_Name_mkStr4(x_5, x_6, x_92, x_129); -x_131 = l_Lean_Elab_Command_elabInitialize___closed__37; -lean_inc(x_79); -x_132 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_132, 0, x_79); -lean_ctor_set(x_132, 1, x_131); -x_133 = lean_mk_syntax_ident(x_97); -x_134 = l_Lean_Elab_Command_elabInitialize___closed__32; -x_135 = l_Lean_Name_mkStr4(x_5, x_6, x_92, x_134); -lean_inc(x_79); -x_136 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_136, 0, x_79); -lean_ctor_set(x_136, 1, x_134); -lean_inc(x_79); -x_137 = l_Lean_Syntax_node2(x_79, x_135, x_136, x_84); -lean_inc(x_98); -lean_inc(x_79); -x_138 = l_Lean_Syntax_node4(x_79, x_130, x_132, x_98, x_133, x_137); -x_139 = l_Lean_Elab_Command_elabInitialize___closed__35; -lean_inc_n(x_98, 2); -lean_inc(x_79); -x_140 = l_Lean_Syntax_node2(x_79, x_139, x_98, x_98); -lean_inc(x_98); -lean_inc(x_79); -x_141 = l_Lean_Syntax_node4(x_79, x_126, x_128, x_138, x_140, x_98); -lean_inc(x_79); -x_142 = l_Lean_Syntax_node5(x_79, x_103, x_105, x_108, x_125, x_141, x_98); -lean_inc(x_79); -x_143 = l_Lean_Syntax_node2(x_79, x_80, x_102, x_142); -x_144 = l_Lean_Syntax_node2(x_79, x_89, x_143, x_81); -x_145 = l_Lean_Elab_Command_elabCommand(x_144, x_93, x_87, x_95); -return x_145; +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_84); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_117); +lean_ctor_set(x_120, 1, x_119); +lean_inc(x_88); +x_121 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_121, 0, x_88); +lean_ctor_set(x_121, 1, x_114); +lean_ctor_set(x_121, 2, x_116); +lean_ctor_set(x_121, 3, x_120); +lean_inc(x_99); +lean_inc(x_88); +x_122 = l_Lean_Syntax_node1(x_88, x_99, x_89); +lean_inc(x_88); +x_123 = l_Lean_Syntax_node2(x_88, x_113, x_121, x_122); +lean_inc(x_88); +x_124 = l_Lean_Syntax_node2(x_88, x_87, x_111, x_123); +lean_inc(x_99); +lean_inc(x_88); +x_125 = l_Lean_Syntax_node1(x_88, x_99, x_124); +lean_inc(x_83); +lean_inc(x_88); +x_126 = l_Lean_Syntax_node2(x_88, x_110, x_83, x_125); +x_127 = l_Lean_Elab_Command_elabInitialize___closed__30; +x_128 = l_Lean_Elab_Command_elabInitialize___closed__31; +lean_inc(x_88); +x_129 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_129, 0, x_88); +lean_ctor_set(x_129, 1, x_128); +x_130 = l_Lean_Elab_Command_elabInitialize___closed__36; +lean_inc_ref(x_80); +x_131 = l_Lean_Name_mkStr4(x_5, x_6, x_80, x_130); +x_132 = l_Lean_Elab_Command_elabInitialize___closed__37; +lean_inc(x_88); +x_133 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_133, 0, x_88); +lean_ctor_set(x_133, 1, x_132); +x_134 = lean_mk_syntax_ident(x_86); +x_135 = l_Lean_Elab_Command_elabInitialize___closed__32; +x_136 = l_Lean_Name_mkStr4(x_5, x_6, x_80, x_135); +lean_inc(x_88); +x_137 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_137, 0, x_88); +lean_ctor_set(x_137, 1, x_135); +lean_inc(x_88); +x_138 = l_Lean_Syntax_node2(x_88, x_136, x_137, x_95); +lean_inc(x_83); +lean_inc(x_88); +x_139 = l_Lean_Syntax_node4(x_88, x_131, x_133, x_83, x_134, x_138); +x_140 = l_Lean_Elab_Command_elabInitialize___closed__35; +lean_inc_n(x_83, 2); +lean_inc(x_88); +x_141 = l_Lean_Syntax_node2(x_88, x_140, x_83, x_83); +lean_inc(x_83); +lean_inc(x_88); +x_142 = l_Lean_Syntax_node4(x_88, x_127, x_129, x_139, x_141, x_83); +lean_inc(x_88); +x_143 = l_Lean_Syntax_node5(x_88, x_104, x_106, x_109, x_126, x_142, x_83); +lean_inc(x_88); +x_144 = l_Lean_Syntax_node2(x_88, x_97, x_103, x_143); +x_145 = l_Lean_Syntax_node2(x_88, x_99, x_144, x_96); +x_146 = l_Lean_Elab_Command_elabCommand(x_145, x_93, x_92, x_78); +return x_146; } } } @@ -14611,7 +14767,7 @@ x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(x_2, x_3, x_4, x_5, x_1); return x_6; } } -static lean_object* _init_l_Lean_Elab_Command_initFn___closed__0____x40_Lean_Elab_Declaration___hyg_8325_() { +static lean_object* _init_l_Lean_Elab_Command_initFn___closed__0____x40_Lean_Elab_Declaration___hyg_8373_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -14621,37 +14777,37 @@ x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn___closed__1____x40_Lean_Elab_Declaration___hyg_8325_() { +static lean_object* _init_l_Lean_Elab_Command_initFn___closed__1____x40_Lean_Elab_Declaration___hyg_8373_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Command_elabAxiom___lam__2___closed__9; -x_2 = l_Lean_Elab_Command_initFn___closed__0____x40_Lean_Elab_Declaration___hyg_8325_; +x_2 = l_Lean_Elab_Command_initFn___closed__0____x40_Lean_Elab_Declaration___hyg_8373_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn___closed__2____x40_Lean_Elab_Declaration___hyg_8325_() { +static lean_object* _init_l_Lean_Elab_Command_initFn___closed__2____x40_Lean_Elab_Declaration___hyg_8373_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__2; -x_2 = l_Lean_Elab_Command_initFn___closed__1____x40_Lean_Elab_Declaration___hyg_8325_; +x_2 = l_Lean_Elab_Command_initFn___closed__1____x40_Lean_Elab_Declaration___hyg_8373_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn___closed__3____x40_Lean_Elab_Declaration___hyg_8325_() { +static lean_object* _init_l_Lean_Elab_Command_initFn___closed__3____x40_Lean_Elab_Declaration___hyg_8373_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Command_elabInitialize___closed__7; -x_2 = l_Lean_Elab_Command_initFn___closed__2____x40_Lean_Elab_Declaration___hyg_8325_; +x_2 = l_Lean_Elab_Command_initFn___closed__2____x40_Lean_Elab_Declaration___hyg_8373_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn___closed__4____x40_Lean_Elab_Declaration___hyg_8325_() { +static lean_object* _init_l_Lean_Elab_Command_initFn___closed__4____x40_Lean_Elab_Declaration___hyg_8373_() { _start: { lean_object* x_1; @@ -14659,37 +14815,37 @@ x_1 = lean_mk_string_unchecked("_@", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn___closed__5____x40_Lean_Elab_Declaration___hyg_8325_() { +static lean_object* _init_l_Lean_Elab_Command_initFn___closed__5____x40_Lean_Elab_Declaration___hyg_8373_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn___closed__4____x40_Lean_Elab_Declaration___hyg_8325_; -x_2 = l_Lean_Elab_Command_initFn___closed__3____x40_Lean_Elab_Declaration___hyg_8325_; +x_1 = l_Lean_Elab_Command_initFn___closed__4____x40_Lean_Elab_Declaration___hyg_8373_; +x_2 = l_Lean_Elab_Command_initFn___closed__3____x40_Lean_Elab_Declaration___hyg_8373_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn___closed__6____x40_Lean_Elab_Declaration___hyg_8325_() { +static lean_object* _init_l_Lean_Elab_Command_initFn___closed__6____x40_Lean_Elab_Declaration___hyg_8373_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isNamedDef___closed__0; -x_2 = l_Lean_Elab_Command_initFn___closed__5____x40_Lean_Elab_Declaration___hyg_8325_; +x_2 = l_Lean_Elab_Command_initFn___closed__5____x40_Lean_Elab_Declaration___hyg_8373_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn___closed__7____x40_Lean_Elab_Declaration___hyg_8325_() { +static lean_object* _init_l_Lean_Elab_Command_initFn___closed__7____x40_Lean_Elab_Declaration___hyg_8373_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Command_elabAxiom___lam__2___closed__9; -x_2 = l_Lean_Elab_Command_initFn___closed__6____x40_Lean_Elab_Declaration___hyg_8325_; +x_2 = l_Lean_Elab_Command_initFn___closed__6____x40_Lean_Elab_Declaration___hyg_8373_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn___closed__8____x40_Lean_Elab_Declaration___hyg_8325_() { +static lean_object* _init_l_Lean_Elab_Command_initFn___closed__8____x40_Lean_Elab_Declaration___hyg_8373_() { _start: { lean_object* x_1; @@ -14697,17 +14853,17 @@ x_1 = lean_mk_string_unchecked("Declaration", 11, 11); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn___closed__9____x40_Lean_Elab_Declaration___hyg_8325_() { +static lean_object* _init_l_Lean_Elab_Command_initFn___closed__9____x40_Lean_Elab_Declaration___hyg_8373_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn___closed__8____x40_Lean_Elab_Declaration___hyg_8325_; -x_2 = l_Lean_Elab_Command_initFn___closed__7____x40_Lean_Elab_Declaration___hyg_8325_; +x_1 = l_Lean_Elab_Command_initFn___closed__8____x40_Lean_Elab_Declaration___hyg_8373_; +x_2 = l_Lean_Elab_Command_initFn___closed__7____x40_Lean_Elab_Declaration___hyg_8373_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn___closed__10____x40_Lean_Elab_Declaration___hyg_8325_() { +static lean_object* _init_l_Lean_Elab_Command_initFn___closed__10____x40_Lean_Elab_Declaration___hyg_8373_() { _start: { lean_object* x_1; @@ -14715,33 +14871,33 @@ x_1 = lean_mk_string_unchecked("_hyg", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn___closed__11____x40_Lean_Elab_Declaration___hyg_8325_() { +static lean_object* _init_l_Lean_Elab_Command_initFn___closed__11____x40_Lean_Elab_Declaration___hyg_8373_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn___closed__10____x40_Lean_Elab_Declaration___hyg_8325_; -x_2 = l_Lean_Elab_Command_initFn___closed__9____x40_Lean_Elab_Declaration___hyg_8325_; +x_1 = l_Lean_Elab_Command_initFn___closed__10____x40_Lean_Elab_Declaration___hyg_8373_; +x_2 = l_Lean_Elab_Command_initFn___closed__9____x40_Lean_Elab_Declaration___hyg_8373_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn___closed__12____x40_Lean_Elab_Declaration___hyg_8325_() { +static lean_object* _init_l_Lean_Elab_Command_initFn___closed__12____x40_Lean_Elab_Declaration___hyg_8373_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(8325u); -x_2 = l_Lean_Elab_Command_initFn___closed__11____x40_Lean_Elab_Declaration___hyg_8325_; +x_1 = lean_unsigned_to_nat(8373u); +x_2 = l_Lean_Elab_Command_initFn___closed__11____x40_Lean_Elab_Declaration___hyg_8373_; x_3 = l_Lean_Name_num___override(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Declaration___hyg_8325_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Declaration___hyg_8373_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_elabAxiom___lam__2___closed__10; x_3 = 0; -x_4 = l_Lean_Elab_Command_initFn___closed__12____x40_Lean_Elab_Declaration___hyg_8325_; +x_4 = l_Lean_Elab_Command_initFn___closed__12____x40_Lean_Elab_Declaration___hyg_8373_; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -15308,6 +15464,8 @@ l_Lean_Elab_Command_elabInitialize___closed__64 = _init_l_Lean_Elab_Command_elab lean_mark_persistent(l_Lean_Elab_Command_elabInitialize___closed__64); l_Lean_Elab_Command_elabInitialize___closed__65 = _init_l_Lean_Elab_Command_elabInitialize___closed__65(); lean_mark_persistent(l_Lean_Elab_Command_elabInitialize___closed__65); +l_Lean_Elab_Command_elabInitialize___closed__66 = _init_l_Lean_Elab_Command_elabInitialize___closed__66(); +lean_mark_persistent(l_Lean_Elab_Command_elabInitialize___closed__66); l_Lean_Elab_Command_elabInitialize___regBuiltin_Lean_Elab_Command_elabInitialize__1___closed__0 = _init_l_Lean_Elab_Command_elabInitialize___regBuiltin_Lean_Elab_Command_elabInitialize__1___closed__0(); lean_mark_persistent(l_Lean_Elab_Command_elabInitialize___regBuiltin_Lean_Elab_Command_elabInitialize__1___closed__0); l_Lean_Elab_Command_elabInitialize___regBuiltin_Lean_Elab_Command_elabInitialize__1___closed__1 = _init_l_Lean_Elab_Command_elabInitialize___regBuiltin_Lean_Elab_Command_elabInitialize__1___closed__1(); @@ -15315,33 +15473,33 @@ lean_mark_persistent(l_Lean_Elab_Command_elabInitialize___regBuiltin_Lean_Elab_C if (builtin) {res = l_Lean_Elab_Command_elabInitialize___regBuiltin_Lean_Elab_Command_elabInitialize__1(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_Elab_Command_initFn___closed__0____x40_Lean_Elab_Declaration___hyg_8325_ = _init_l_Lean_Elab_Command_initFn___closed__0____x40_Lean_Elab_Declaration___hyg_8325_(); -lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__0____x40_Lean_Elab_Declaration___hyg_8325_); -l_Lean_Elab_Command_initFn___closed__1____x40_Lean_Elab_Declaration___hyg_8325_ = _init_l_Lean_Elab_Command_initFn___closed__1____x40_Lean_Elab_Declaration___hyg_8325_(); -lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__1____x40_Lean_Elab_Declaration___hyg_8325_); -l_Lean_Elab_Command_initFn___closed__2____x40_Lean_Elab_Declaration___hyg_8325_ = _init_l_Lean_Elab_Command_initFn___closed__2____x40_Lean_Elab_Declaration___hyg_8325_(); -lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__2____x40_Lean_Elab_Declaration___hyg_8325_); -l_Lean_Elab_Command_initFn___closed__3____x40_Lean_Elab_Declaration___hyg_8325_ = _init_l_Lean_Elab_Command_initFn___closed__3____x40_Lean_Elab_Declaration___hyg_8325_(); -lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__3____x40_Lean_Elab_Declaration___hyg_8325_); -l_Lean_Elab_Command_initFn___closed__4____x40_Lean_Elab_Declaration___hyg_8325_ = _init_l_Lean_Elab_Command_initFn___closed__4____x40_Lean_Elab_Declaration___hyg_8325_(); -lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__4____x40_Lean_Elab_Declaration___hyg_8325_); -l_Lean_Elab_Command_initFn___closed__5____x40_Lean_Elab_Declaration___hyg_8325_ = _init_l_Lean_Elab_Command_initFn___closed__5____x40_Lean_Elab_Declaration___hyg_8325_(); -lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__5____x40_Lean_Elab_Declaration___hyg_8325_); -l_Lean_Elab_Command_initFn___closed__6____x40_Lean_Elab_Declaration___hyg_8325_ = _init_l_Lean_Elab_Command_initFn___closed__6____x40_Lean_Elab_Declaration___hyg_8325_(); -lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__6____x40_Lean_Elab_Declaration___hyg_8325_); -l_Lean_Elab_Command_initFn___closed__7____x40_Lean_Elab_Declaration___hyg_8325_ = _init_l_Lean_Elab_Command_initFn___closed__7____x40_Lean_Elab_Declaration___hyg_8325_(); -lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__7____x40_Lean_Elab_Declaration___hyg_8325_); -l_Lean_Elab_Command_initFn___closed__8____x40_Lean_Elab_Declaration___hyg_8325_ = _init_l_Lean_Elab_Command_initFn___closed__8____x40_Lean_Elab_Declaration___hyg_8325_(); -lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__8____x40_Lean_Elab_Declaration___hyg_8325_); -l_Lean_Elab_Command_initFn___closed__9____x40_Lean_Elab_Declaration___hyg_8325_ = _init_l_Lean_Elab_Command_initFn___closed__9____x40_Lean_Elab_Declaration___hyg_8325_(); -lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__9____x40_Lean_Elab_Declaration___hyg_8325_); -l_Lean_Elab_Command_initFn___closed__10____x40_Lean_Elab_Declaration___hyg_8325_ = _init_l_Lean_Elab_Command_initFn___closed__10____x40_Lean_Elab_Declaration___hyg_8325_(); -lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__10____x40_Lean_Elab_Declaration___hyg_8325_); -l_Lean_Elab_Command_initFn___closed__11____x40_Lean_Elab_Declaration___hyg_8325_ = _init_l_Lean_Elab_Command_initFn___closed__11____x40_Lean_Elab_Declaration___hyg_8325_(); -lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__11____x40_Lean_Elab_Declaration___hyg_8325_); -l_Lean_Elab_Command_initFn___closed__12____x40_Lean_Elab_Declaration___hyg_8325_ = _init_l_Lean_Elab_Command_initFn___closed__12____x40_Lean_Elab_Declaration___hyg_8325_(); -lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__12____x40_Lean_Elab_Declaration___hyg_8325_); -if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Declaration___hyg_8325_(lean_io_mk_world()); +}l_Lean_Elab_Command_initFn___closed__0____x40_Lean_Elab_Declaration___hyg_8373_ = _init_l_Lean_Elab_Command_initFn___closed__0____x40_Lean_Elab_Declaration___hyg_8373_(); +lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__0____x40_Lean_Elab_Declaration___hyg_8373_); +l_Lean_Elab_Command_initFn___closed__1____x40_Lean_Elab_Declaration___hyg_8373_ = _init_l_Lean_Elab_Command_initFn___closed__1____x40_Lean_Elab_Declaration___hyg_8373_(); +lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__1____x40_Lean_Elab_Declaration___hyg_8373_); +l_Lean_Elab_Command_initFn___closed__2____x40_Lean_Elab_Declaration___hyg_8373_ = _init_l_Lean_Elab_Command_initFn___closed__2____x40_Lean_Elab_Declaration___hyg_8373_(); +lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__2____x40_Lean_Elab_Declaration___hyg_8373_); +l_Lean_Elab_Command_initFn___closed__3____x40_Lean_Elab_Declaration___hyg_8373_ = _init_l_Lean_Elab_Command_initFn___closed__3____x40_Lean_Elab_Declaration___hyg_8373_(); +lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__3____x40_Lean_Elab_Declaration___hyg_8373_); +l_Lean_Elab_Command_initFn___closed__4____x40_Lean_Elab_Declaration___hyg_8373_ = _init_l_Lean_Elab_Command_initFn___closed__4____x40_Lean_Elab_Declaration___hyg_8373_(); +lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__4____x40_Lean_Elab_Declaration___hyg_8373_); +l_Lean_Elab_Command_initFn___closed__5____x40_Lean_Elab_Declaration___hyg_8373_ = _init_l_Lean_Elab_Command_initFn___closed__5____x40_Lean_Elab_Declaration___hyg_8373_(); +lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__5____x40_Lean_Elab_Declaration___hyg_8373_); +l_Lean_Elab_Command_initFn___closed__6____x40_Lean_Elab_Declaration___hyg_8373_ = _init_l_Lean_Elab_Command_initFn___closed__6____x40_Lean_Elab_Declaration___hyg_8373_(); +lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__6____x40_Lean_Elab_Declaration___hyg_8373_); +l_Lean_Elab_Command_initFn___closed__7____x40_Lean_Elab_Declaration___hyg_8373_ = _init_l_Lean_Elab_Command_initFn___closed__7____x40_Lean_Elab_Declaration___hyg_8373_(); +lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__7____x40_Lean_Elab_Declaration___hyg_8373_); +l_Lean_Elab_Command_initFn___closed__8____x40_Lean_Elab_Declaration___hyg_8373_ = _init_l_Lean_Elab_Command_initFn___closed__8____x40_Lean_Elab_Declaration___hyg_8373_(); +lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__8____x40_Lean_Elab_Declaration___hyg_8373_); +l_Lean_Elab_Command_initFn___closed__9____x40_Lean_Elab_Declaration___hyg_8373_ = _init_l_Lean_Elab_Command_initFn___closed__9____x40_Lean_Elab_Declaration___hyg_8373_(); +lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__9____x40_Lean_Elab_Declaration___hyg_8373_); +l_Lean_Elab_Command_initFn___closed__10____x40_Lean_Elab_Declaration___hyg_8373_ = _init_l_Lean_Elab_Command_initFn___closed__10____x40_Lean_Elab_Declaration___hyg_8373_(); +lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__10____x40_Lean_Elab_Declaration___hyg_8373_); +l_Lean_Elab_Command_initFn___closed__11____x40_Lean_Elab_Declaration___hyg_8373_ = _init_l_Lean_Elab_Command_initFn___closed__11____x40_Lean_Elab_Declaration___hyg_8373_(); +lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__11____x40_Lean_Elab_Declaration___hyg_8373_); +l_Lean_Elab_Command_initFn___closed__12____x40_Lean_Elab_Declaration___hyg_8373_ = _init_l_Lean_Elab_Command_initFn___closed__12____x40_Lean_Elab_Declaration___hyg_8373_(); +lean_mark_persistent(l_Lean_Elab_Command_initFn___closed__12____x40_Lean_Elab_Declaration___hyg_8373_); +if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Declaration___hyg_8373_(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)); diff --git a/stage0/stdlib/Lean/Elab/Deriving/BEq.c b/stage0/stdlib/Lean/Elab/Deriving/BEq.c index e1e387edc3..ffd67ca6e0 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/BEq.c +++ b/stage0/stdlib/Lean/Elab/Deriving/BEq.c @@ -13,6 +13,7 @@ #ifdef __cplusplus extern "C" { #endif +static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__1____x40_Lean_Elab_Deriving_BEq___hyg_4037_; LEAN_EXPORT lean_object* l_Lean_isInductive___at___Lean_Elab_Deriving_BEq_mkBEqInstanceHandler_spec__1___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__5___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -21,6 +22,7 @@ static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_ static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__43; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_4037_(lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__25; lean_object* lean_mk_empty_array_with_capacity(lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__9; @@ -43,7 +45,7 @@ lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_o static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__7; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__16; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3___boxed(lean_object**); -static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__15____x40_Lean_Elab_Deriving_BEq___hyg_3946_; +static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__8____x40_Lean_Elab_Deriving_BEq___hyg_4037_; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__2; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch___closed__2; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__6; @@ -55,16 +57,14 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_mkBEqInstance___lam__0(uint8_t lean_object* l_Array_mapMUnsafe_map___at___Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw________1_spec__0(size_t, size_t, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__13; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__2; -static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__4____x40_Lean_Elab_Deriving_BEq___hyg_3946_; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__11; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__5_spec__5___redArg___lam__0___closed__0; -static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__10____x40_Lean_Elab_Deriving_BEq___hyg_3946_; uint8_t lean_usize_dec_eq(size_t, size_t); +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__20; lean_object* l_Lean_Elab_Deriving_mkInstanceCmds(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_mkDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3___redArg___boxed(lean_object**); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__9____x40_Lean_Elab_Deriving_BEq___hyg_3946_; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__4; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__5_spec__5___redArg___lam__0___closed__8; LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -79,6 +79,7 @@ static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_ lean_object* l_Lean_Environment_find_x3f(lean_object*, lean_object*, uint8_t); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__21; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__28; +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__18; lean_object* l_Lean_Elab_Deriving_mkLocalInstanceLetDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); @@ -87,11 +88,10 @@ static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_ static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__17; uint8_t l_List_isEmpty___redArg(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); -static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__11____x40_Lean_Elab_Deriving_BEq___hyg_3946_; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__38; -static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__1____x40_Lean_Elab_Deriving_BEq___hyg_3946_; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__5_spec__5___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch___closed__1; +static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__10____x40_Lean_Elab_Deriving_BEq___hyg_4037_; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__7___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_InductiveVal_numTypeFormers(lean_object*); @@ -100,6 +100,7 @@ LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at__ LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___lam__0(uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_Deriving_BEq_mkBEqInstanceHandler_spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mkArray0(lean_object*); +static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__11____x40_Lean_Elab_Deriving_BEq___hyg_4037_; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__5_spec__5___boxed(lean_object**); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__3; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__7; @@ -107,13 +108,16 @@ static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___boxed(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_Lean_Elab_Deriving_BEq_initFn___closed__4____x40_Lean_Elab_Deriving_BEq___hyg_4037_; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__4; size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mkArray1___redArg(lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__15; LEAN_EXPORT lean_object* l_Lean_isInductive___at___Lean_Elab_Deriving_BEq_mkBEqInstanceHandler_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__15; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__5; +static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__13____x40_Lean_Elab_Deriving_BEq___hyg_4037_; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__34; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__40; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__6; @@ -138,8 +142,8 @@ static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__1; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__9; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__16; lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t); -static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__8____x40_Lean_Elab_Deriving_BEq___hyg_3946_; lean_object* l_Lean_Syntax_node6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_empty(lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__23; lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasAnyFVar_visit___at___Lean_Expr_containsFVar_spec__0(lean_object*, lean_object*); @@ -161,6 +165,7 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__18; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__1; lean_object* l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__15____x40_Lean_Elab_Deriving_BEq___hyg_4037_; static lean_object* l_Lean_getConstInfoCtor___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__0___closed__0; lean_object* lean_array_to_list(lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__14; @@ -178,7 +183,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Derivin static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch___closed__3; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_Deriving_BEq_mkBEqInstanceHandler_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__14____x40_Lean_Elab_Deriving_BEq___hyg_3946_; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__6; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__1; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__31; @@ -190,8 +194,6 @@ static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__22; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__41; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__26; lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__7____x40_Lean_Elab_Deriving_BEq___hyg_3946_; -static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__40; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__32; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch___closed__4; @@ -202,48 +204,43 @@ static lean_object* l_Lean_getConstInfoCtor___at___Lean_Elab_Deriving_BEq_mkMatc static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__7; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__0; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__9____x40_Lean_Elab_Deriving_BEq___hyg_4037_; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__5_spec__5___redArg___lam__0___closed__5; lean_object* lean_mk_syntax_ident(lean_object*); static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__12; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__13____x40_Lean_Elab_Deriving_BEq___hyg_3946_; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__10; static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__10; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__5____x40_Lean_Elab_Deriving_BEq___hyg_3946_; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__32; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__11; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isEnumType___at___Lean_Elab_Deriving_BEq_mkBEqInstance_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__0____x40_Lean_Elab_Deriving_BEq___hyg_3946_; -static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__2____x40_Lean_Elab_Deriving_BEq___hyg_3946_; lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__33; -static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__12____x40_Lean_Elab_Deriving_BEq___hyg_3946_; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___boxed(lean_object**); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__0; lean_object* l_Lean_Core_betaReduce(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__8; -static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__41; static lean_object* l_Lean_Elab_Deriving_BEq_mkBEqHeader___closed__0; lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_mkBEqHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__0____x40_Lean_Elab_Deriving_BEq___hyg_4037_; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__3; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__11; -static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__6____x40_Lean_Elab_Deriving_BEq___hyg_3946_; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__5; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__3; +static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__14____x40_Lean_Elab_Deriving_BEq___hyg_4037_; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__7; -LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_3946_(lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__11; -static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__3____x40_Lean_Elab_Deriving_BEq___hyg_3946_; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__10; static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_mkBEqInstance(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__0; +static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__3____x40_Lean_Elab_Deriving_BEq___hyg_4037_; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__5; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__3; @@ -260,6 +257,7 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_Deriving_ static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___closed__0; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__28; +static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__5____x40_Lean_Elab_Deriving_BEq___hyg_4037_; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__3; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__10; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch___closed__0; @@ -268,6 +266,7 @@ lean_object* l_Lean_mkSepArray(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__33; +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__19; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__45; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__2; lean_object* l_Array_toSubarray___redArg(lean_object*, lean_object*, lean_object*); @@ -289,6 +288,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___boxed(lean LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMutualBlock_spec__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__8; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__5; +static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__12____x40_Lean_Elab_Deriving_BEq___hyg_4037_; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__30; static lean_object* l_Lean_getConstInfo___at___Lean_isEnumType___at___Lean_Elab_Deriving_BEq_mkBEqInstance_spec__0_spec__0___closed__1; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__37; @@ -300,6 +300,7 @@ lean_object* l_Lean_Elab_Command_liftTermElabM___redArg(lean_object*, lean_objec static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__39; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__1___boxed(lean_object**); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___boxed(lean_object**); +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__17; size_t lean_usize_add(size_t, size_t); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__13; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__7(size_t, size_t, lean_object*); @@ -322,9 +323,12 @@ static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_ static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__36; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__1___redArg___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_array_get_size(lean_object*); +static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__6____x40_Lean_Elab_Deriving_BEq___hyg_4037_; static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__3; static lean_object* l_Lean_getConstInfo___at___Lean_isEnumType___at___Lean_Elab_Deriving_BEq_mkBEqInstance_spec__0_spec__0___closed__0; +static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__2____x40_Lean_Elab_Deriving_BEq___hyg_4037_; lean_object* l_Lean_mkAtom(lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__16; LEAN_EXPORT lean_object* l_Lean_isInductive___at___Lean_Elab_Deriving_BEq_mkBEqInstanceHandler_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -333,6 +337,7 @@ static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq uint8_t lean_usize_dec_lt(size_t, size_t); lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_Command_elabCommand_go_spec__13(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__10; +static lean_object* l_Lean_Elab_Deriving_BEq_initFn___closed__7____x40_Lean_Elab_Deriving_BEq___hyg_4037_; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__26; lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__30; @@ -355,6 +360,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkAlts(lean_object*, l static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__14; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__5_spec__5___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__4; +lean_object* l_Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f(lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__5; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__3; static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkBEqHeader___closed__0() { @@ -9496,7 +9502,7 @@ static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__0() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Command", 7, 7); +x_1 = lean_mk_string_unchecked("definition", 10, 10); return x_1; } } @@ -9504,115 +9510,103 @@ static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("declaration", 11, 11); +x_1 = lean_mk_string_unchecked("def", 3, 3); return x_1; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___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_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__1; -x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__0; -x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; -x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("declId", 6, 6); +return x_1; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("declModifiers", 13, 13); +x_1 = lean_mk_string_unchecked("optDeclSig", 10, 10); return x_1; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__4() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__3; -x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__0; -x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; -x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("typeSpec", 8, 8); +return x_1; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__5() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("attributes", 10, 10); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__3; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___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_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__5; -x_2 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__2; -x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; -x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__3; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__7() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("@[", 2, 2); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__6; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__8() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("attrInstance", 12, 12); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__6; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__9() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__8; -x_2 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__2; -x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; -x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("declValSimple", 13, 13); +return x_1; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__10() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("attrKind", 8, 8); +x_1 = lean_mk_string_unchecked(":=", 2, 2); return x_1; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__11() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__10; -x_2 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__2; -x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; -x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Termination", 11, 11); +return x_1; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__12() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Attr", 4, 4); +x_1 = lean_mk_string_unchecked("suffix", 6, 6); return x_1; } } @@ -9620,61 +9614,67 @@ static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__13() _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("simple", 6, 6); +x_1 = lean_mk_string_unchecked("partial", 7, 7); return x_1; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__14() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__8; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__14; +x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__7; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Command", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__17() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("declaration", 11, 11); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__18() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__13; -x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__12; +x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__17; +x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__15() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("expose", 6, 6); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__15; -x_2 = l_String_toSubstring_x27(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__17() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__15; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__18() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("]", 1, 1); -return x_1; -} -} static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__19() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("definition", 10, 10); +x_1 = lean_mk_string_unchecked("declModifiers", 13, 13); return x_1; } } @@ -9683,7 +9683,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_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__19; -x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__0; +x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); @@ -9694,35 +9694,35 @@ static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__21() _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("def", 3, 3); +x_1 = lean_mk_string_unchecked("attributes", 10, 10); return x_1; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__22() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("declId", 6, 6); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__23() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__22; -x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__0; +x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__21; +x_2 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__2; x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } +static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__23() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("@[", 2, 2); +return x_1; +} +} static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__24() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("optDeclSig", 10, 10); +x_1 = lean_mk_string_unchecked("attrInstance", 12, 12); return x_1; } } @@ -9731,7 +9731,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_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__24; -x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__0; +x_2 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__2; x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); @@ -9742,7 +9742,7 @@ static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__26() _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("typeSpec", 8, 8); +x_1 = lean_mk_string_unchecked("attrKind", 8, 8); return x_1; } } @@ -9761,141 +9761,113 @@ return x_5; static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__28() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__3; -x_2 = l_String_toSubstring_x27(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Attr", 4, 4); +return x_1; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__29() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__3; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("simple", 6, 6); +return x_1; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__30() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__29; -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; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__29; +x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__28; +x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; +x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__31() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__29; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("expose", 6, 6); +return x_1; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__32() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__31; -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; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__31; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__33() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__32; -x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__30; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__31; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__34() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("declValSimple", 13, 13); +x_1 = lean_mk_string_unchecked("]", 1, 1); return x_1; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__35() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__34; -x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__0; -x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; -x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; +lean_object* x_1; +x_1 = l_Array_empty(lean_box(0)); +return x_1; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__36() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked(":=", 2, 2); +x_1 = lean_mk_string_unchecked("private", 7, 7); return x_1; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__37() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Termination", 11, 11); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__36; +x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; +x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; +x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__38() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("suffix", 6, 6); -return x_1; +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 1; +x_2 = lean_box(0); +x_3 = l_Lean_SourceInfo_fromRef(x_2, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___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_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__38; -x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__37; -x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; -x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__40() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("partial", 7, 7); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__41() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__40; -x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__0; -x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; -x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__36; +x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__38; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction(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) { @@ -9917,91 +9889,99 @@ lean_inc_ref(x_14); x_15 = l_Lean_Elab_Deriving_BEq_mkBEqHeader(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_15) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_364; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 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_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_321; x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); -lean_dec_ref(x_15); -x_18 = lean_box(0); -x_19 = lean_array_get(x_18, x_11, x_2); +if (lean_is_exclusive(x_15)) { + lean_ctor_release(x_15, 0); + lean_ctor_release(x_15, 1); + x_18 = x_15; +} else { + lean_dec_ref(x_15); + x_18 = lean_box(0); +} +x_19 = lean_box(0); +x_20 = lean_array_get(x_19, x_11, x_2); lean_inc(x_8); lean_inc_ref(x_7); lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc_ref(x_3); -lean_inc(x_19); +lean_inc(x_20); lean_inc(x_16); -x_364 = l_Lean_Elab_Deriving_BEq_mkMatch(x_16, x_14, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_17); -if (lean_obj_tag(x_364) == 0) +x_321 = l_Lean_Elab_Deriving_BEq_mkMatch(x_16, x_14, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_17); +if (lean_obj_tag(x_321) == 0) { if (x_12 == 0) { -lean_object* x_365; lean_object* x_366; +lean_object* x_322; lean_object* x_323; lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -x_365 = lean_ctor_get(x_364, 0); -lean_inc(x_365); -x_366 = lean_ctor_get(x_364, 1); -lean_inc(x_366); -lean_dec_ref(x_364); -x_20 = x_365; -x_21 = x_7; -x_22 = x_8; -x_23 = x_366; -goto block_363; +x_322 = lean_ctor_get(x_321, 0); +lean_inc(x_322); +x_323 = lean_ctor_get(x_321, 1); +lean_inc(x_323); +lean_dec_ref(x_321); +x_143 = x_322; +x_144 = x_7; +x_145 = x_8; +x_146 = x_323; +goto block_320; } else { -lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; -x_367 = lean_ctor_get(x_364, 0); -lean_inc(x_367); -x_368 = lean_ctor_get(x_364, 1); -lean_inc(x_368); -lean_dec_ref(x_364); -x_369 = lean_ctor_get(x_16, 1); -lean_inc_ref(x_369); -x_370 = l_Lean_Elab_Deriving_BEq_mkBEqHeader___closed__1; +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; +x_324 = lean_ctor_get(x_321, 0); +lean_inc(x_324); +x_325 = lean_ctor_get(x_321, 1); +lean_inc(x_325); +lean_dec_ref(x_321); +x_326 = lean_ctor_get(x_16, 1); +lean_inc_ref(x_326); +x_327 = l_Lean_Elab_Deriving_BEq_mkBEqHeader___closed__1; lean_inc(x_8); lean_inc_ref(x_7); lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc_ref(x_3); -x_371 = l_Lean_Elab_Deriving_mkLocalInstanceLetDecls(x_1, x_370, x_369, x_3, x_4, x_5, x_6, x_7, x_8, x_368); -if (lean_obj_tag(x_371) == 0) +x_328 = l_Lean_Elab_Deriving_mkLocalInstanceLetDecls(x_1, x_327, x_326, x_3, x_4, x_5, x_6, x_7, x_8, x_325); +if (lean_obj_tag(x_328) == 0) { -lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; -x_372 = lean_ctor_get(x_371, 0); -lean_inc(x_372); -x_373 = lean_ctor_get(x_371, 1); -lean_inc(x_373); -lean_dec_ref(x_371); -x_374 = l_Lean_Elab_Deriving_mkLet(x_372, x_367, x_3, x_4, x_5, x_6, x_7, x_8, x_373); +lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; +x_329 = lean_ctor_get(x_328, 0); +lean_inc(x_329); +x_330 = lean_ctor_get(x_328, 1); +lean_inc(x_330); +lean_dec_ref(x_328); +x_331 = l_Lean_Elab_Deriving_mkLet(x_329, x_324, x_3, x_4, x_5, x_6, x_7, x_8, x_330); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -lean_dec(x_372); -x_375 = lean_ctor_get(x_374, 0); -lean_inc(x_375); -x_376 = lean_ctor_get(x_374, 1); -lean_inc(x_376); -lean_dec_ref(x_374); -x_20 = x_375; -x_21 = x_7; -x_22 = x_8; -x_23 = x_376; -goto block_363; +lean_dec(x_329); +x_332 = lean_ctor_get(x_331, 0); +lean_inc(x_332); +x_333 = lean_ctor_get(x_331, 1); +lean_inc(x_333); +lean_dec_ref(x_331); +x_143 = x_332; +x_144 = x_7; +x_145 = x_8; +x_146 = x_333; +goto block_320; } else { -uint8_t x_377; -lean_dec(x_367); -lean_dec(x_19); +uint8_t x_334; +lean_dec(x_324); +lean_dec(x_20); +lean_dec(x_18); lean_dec(x_16); lean_dec(x_8); lean_dec_ref(x_7); @@ -10009,30 +9989,31 @@ lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -x_377 = !lean_is_exclusive(x_371); -if (x_377 == 0) +x_334 = !lean_is_exclusive(x_328); +if (x_334 == 0) { -return x_371; +return x_328; } else { -lean_object* x_378; lean_object* x_379; lean_object* x_380; -x_378 = lean_ctor_get(x_371, 0); -x_379 = lean_ctor_get(x_371, 1); -lean_inc(x_379); -lean_inc(x_378); -lean_dec(x_371); -x_380 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_380, 0, x_378); -lean_ctor_set(x_380, 1, x_379); -return x_380; +lean_object* x_335; lean_object* x_336; lean_object* x_337; +x_335 = lean_ctor_get(x_328, 0); +x_336 = lean_ctor_get(x_328, 1); +lean_inc(x_336); +lean_inc(x_335); +lean_dec(x_328); +x_337 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_337, 0, x_335); +lean_ctor_set(x_337, 1, x_336); +return x_337; } } } } else { -lean_dec(x_19); +lean_dec(x_20); +lean_dec(x_18); lean_dec(x_16); lean_dec(x_8); lean_dec_ref(x_7); @@ -10040,790 +10021,827 @@ lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -return x_364; +return x_321; } -block_363: +block_81: { +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_inc_ref(x_21); +x_39 = l_Array_append___redArg(x_21, x_38); +lean_dec_ref(x_38); +lean_inc(x_25); +lean_inc(x_34); +x_40 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_40, 0, x_34); +lean_ctor_set(x_40, 1, x_25); +lean_ctor_set(x_40, 2, x_39); +lean_inc_n(x_31, 4); +lean_inc(x_34); +x_41 = l_Lean_Syntax_node6(x_34, x_23, x_31, x_22, x_40, x_31, x_31, x_31); +x_42 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__0; +lean_inc_ref(x_28); +lean_inc_ref(x_26); +lean_inc_ref(x_24); +x_43 = l_Lean_Name_mkStr4(x_24, x_26, x_28, x_42); +x_44 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__1; +lean_inc(x_34); +x_45 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_45, 0, x_34); +lean_ctor_set(x_45, 1, x_44); +x_46 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__2; +lean_inc_ref(x_28); +lean_inc_ref(x_26); +lean_inc_ref(x_24); +x_47 = l_Lean_Name_mkStr4(x_24, x_26, x_28, x_46); +x_48 = lean_mk_syntax_ident(x_20); +lean_inc(x_31); +lean_inc(x_34); +x_49 = l_Lean_Syntax_node2(x_34, x_47, x_48, x_31); +x_50 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__3; +lean_inc_ref(x_28); +lean_inc_ref(x_26); +lean_inc_ref(x_24); +x_51 = l_Lean_Name_mkStr4(x_24, x_26, x_28, x_50); +x_52 = l_Array_append___redArg(x_21, x_30); +lean_dec_ref(x_30); +lean_inc(x_25); +lean_inc(x_34); +x_53 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_53, 0, x_34); +lean_ctor_set(x_53, 1, x_25); +lean_ctor_set(x_53, 2, x_52); +x_54 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__4; +lean_inc_ref(x_26); +lean_inc_ref(x_24); +x_55 = l_Lean_Name_mkStr4(x_24, x_26, x_27, x_54); +x_56 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__18; +lean_inc(x_34); +x_57 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_57, 0, x_34); +lean_ctor_set(x_57, 1, x_56); +x_58 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__5; +x_59 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__6; +x_60 = l_Lean_addMacroScope(x_35, x_59, x_29); +x_61 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__7; +x_62 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__8; +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_37); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_63); +lean_inc(x_34); +x_65 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_65, 0, x_34); +lean_ctor_set(x_65, 1, x_58); +lean_ctor_set(x_65, 2, x_60); +lean_ctor_set(x_65, 3, x_64); +lean_inc(x_34); +x_66 = l_Lean_Syntax_node2(x_34, x_55, x_57, x_65); +lean_inc(x_34); +x_67 = l_Lean_Syntax_node1(x_34, x_25, x_66); +lean_inc(x_34); +x_68 = l_Lean_Syntax_node2(x_34, x_51, x_53, x_67); +x_69 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__9; +lean_inc_ref(x_26); +lean_inc_ref(x_24); +x_70 = l_Lean_Name_mkStr4(x_24, x_26, x_28, x_69); +x_71 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__10; +lean_inc(x_34); +x_72 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_72, 0, x_34); +lean_ctor_set(x_72, 1, x_71); +x_73 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__11; +x_74 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__12; +x_75 = l_Lean_Name_mkStr4(x_24, x_26, x_73, x_74); +lean_inc_n(x_31, 2); +lean_inc(x_34); +x_76 = l_Lean_Syntax_node2(x_34, x_75, x_31, x_31); +lean_inc(x_31); +lean_inc(x_34); +x_77 = l_Lean_Syntax_node4(x_34, x_70, x_72, x_36, x_76, x_31); +lean_inc(x_34); +x_78 = l_Lean_Syntax_node5(x_34, x_43, x_45, x_49, x_68, x_77, x_31); +x_79 = l_Lean_Syntax_node2(x_34, x_32, x_41, x_78); +if (lean_is_scalar(x_18)) { + x_80 = lean_alloc_ctor(0, 2, 0); +} else { + x_80 = x_18; +} +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_33); +return x_80; +} +block_142: +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +lean_inc_ref(x_93); +x_97 = l_Array_append___redArg(x_93, x_96); +lean_dec_ref(x_96); +lean_inc(x_91); +lean_inc(x_82); +x_98 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_98, 0, x_82); +lean_ctor_set(x_98, 1, x_91); +lean_ctor_set(x_98, 2, x_97); +x_99 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__13; +lean_inc_ref(x_90); +lean_inc_ref(x_84); +lean_inc_ref(x_88); +x_100 = l_Lean_Name_mkStr4(x_88, x_84, x_90, x_99); +lean_inc(x_82); +x_101 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_101, 0, x_82); +lean_ctor_set(x_101, 1, x_99); +lean_inc(x_82); +x_102 = l_Lean_Syntax_node1(x_82, x_100, x_101); +lean_inc(x_91); +lean_inc(x_82); +x_103 = l_Lean_Syntax_node1(x_82, x_91, x_102); +lean_inc_n(x_94, 4); +lean_inc(x_82); +x_104 = l_Lean_Syntax_node6(x_82, x_85, x_94, x_94, x_98, x_94, x_94, x_103); +x_105 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__0; +lean_inc_ref(x_90); +lean_inc_ref(x_84); +lean_inc_ref(x_88); +x_106 = l_Lean_Name_mkStr4(x_88, x_84, x_90, x_105); +x_107 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__1; +lean_inc(x_82); +x_108 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_108, 0, x_82); +lean_ctor_set(x_108, 1, x_107); +x_109 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__2; +lean_inc_ref(x_90); +lean_inc_ref(x_84); +lean_inc_ref(x_88); +x_110 = l_Lean_Name_mkStr4(x_88, x_84, x_90, x_109); +x_111 = lean_mk_syntax_ident(x_20); +lean_inc(x_94); +lean_inc(x_82); +x_112 = l_Lean_Syntax_node2(x_82, x_110, x_111, x_94); +x_113 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__3; +lean_inc_ref(x_90); +lean_inc_ref(x_84); +lean_inc_ref(x_88); +x_114 = l_Lean_Name_mkStr4(x_88, x_84, x_90, x_113); +x_115 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__2; +x_116 = l_Array_append___redArg(x_93, x_89); +lean_dec_ref(x_89); +lean_inc(x_91); +lean_inc(x_82); +x_117 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_117, 0, x_82); +lean_ctor_set(x_117, 1, x_91); +lean_ctor_set(x_117, 2, x_116); +x_118 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__4; +lean_inc_ref(x_84); +lean_inc_ref(x_88); +x_119 = l_Lean_Name_mkStr4(x_88, x_84, x_115, x_118); +x_120 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__18; +lean_inc(x_82); +x_121 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_121, 0, x_82); +lean_ctor_set(x_121, 1, x_120); +x_122 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__5; +x_123 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__6; +x_124 = l_Lean_addMacroScope(x_92, x_123, x_86); +x_125 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__15; +lean_inc(x_82); +x_126 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_126, 0, x_82); +lean_ctor_set(x_126, 1, x_122); +lean_ctor_set(x_126, 2, x_124); +lean_ctor_set(x_126, 3, x_125); +lean_inc(x_82); +x_127 = l_Lean_Syntax_node2(x_82, x_119, x_121, x_126); +lean_inc(x_82); +x_128 = l_Lean_Syntax_node1(x_82, x_91, x_127); +lean_inc(x_82); +x_129 = l_Lean_Syntax_node2(x_82, x_114, x_117, x_128); +x_130 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__9; +lean_inc_ref(x_84); +lean_inc_ref(x_88); +x_131 = l_Lean_Name_mkStr4(x_88, x_84, x_90, x_130); +x_132 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__10; +lean_inc(x_82); +x_133 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_133, 0, x_82); +lean_ctor_set(x_133, 1, x_132); +x_134 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__11; +x_135 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__12; +x_136 = l_Lean_Name_mkStr4(x_88, x_84, x_134, x_135); +lean_inc_n(x_94, 2); +lean_inc(x_82); +x_137 = l_Lean_Syntax_node2(x_82, x_136, x_94, x_94); +lean_inc(x_94); +lean_inc(x_82); +x_138 = l_Lean_Syntax_node4(x_82, x_131, x_133, x_95, x_137, x_94); +lean_inc(x_82); +x_139 = l_Lean_Syntax_node5(x_82, x_106, x_108, x_112, x_129, x_138, x_94); +x_140 = l_Lean_Syntax_node2(x_82, x_83, x_104, x_139); +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_87); +return x_141; +} +block_320: +{ +uint8_t x_147; +x_147 = !lean_is_exclusive(x_16); +if (x_147 == 0) +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_148 = lean_ctor_get(x_16, 0); +x_149 = lean_ctor_get(x_16, 3); +lean_dec(x_149); +x_150 = lean_ctor_get(x_16, 2); +lean_dec(x_150); +x_151 = lean_ctor_get(x_16, 1); +lean_dec(x_151); +x_152 = l_Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f(x_1); if (x_12 == 0) { -uint8_t x_24; -x_24 = !lean_is_exclusive(x_16); -if (x_24 == 0) +lean_object* x_153; uint8_t x_154; +x_153 = lean_st_ref_get(x_145, x_146); +lean_dec(x_145); +x_154 = !lean_is_exclusive(x_153); +if (x_154 == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_25 = lean_ctor_get(x_16, 0); -x_26 = lean_ctor_get(x_16, 3); -lean_dec(x_26); -x_27 = lean_ctor_get(x_16, 2); -lean_dec(x_27); -x_28 = lean_ctor_get(x_16, 1); -lean_dec(x_28); -x_29 = lean_st_ref_get(x_22, x_23); -lean_dec(x_22); -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_31 = lean_ctor_get(x_29, 0); -x_32 = lean_ctor_get(x_21, 5); -lean_inc(x_32); -x_33 = lean_ctor_get(x_21, 10); -lean_inc(x_33); -lean_dec_ref(x_21); -x_34 = lean_ctor_get(x_31, 0); -lean_inc_ref(x_34); -lean_dec(x_31); -x_35 = l_Lean_SourceInfo_fromRef(x_32, x_12); -lean_dec(x_32); -x_36 = l_Lean_Environment_mainModule(x_34); -lean_dec_ref(x_34); -x_37 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__2; -x_38 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__4; -x_39 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__11; -x_40 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__12; -lean_inc(x_35); -x_41 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_41, 0, x_35); -lean_ctor_set(x_41, 1, x_39); -lean_ctor_set(x_41, 2, x_40); -x_42 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__6; -x_43 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__7; -lean_inc(x_35); -x_44 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_44, 0, x_35); -lean_ctor_set(x_44, 1, x_43); -x_45 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__9; -x_46 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__11; -lean_inc_ref(x_41); -lean_inc(x_35); -x_47 = l_Lean_Syntax_node1(x_35, x_46, x_41); -x_48 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__14; -x_49 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; -x_50 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__17; -lean_inc(x_33); -lean_inc(x_36); -x_51 = l_Lean_addMacroScope(x_36, x_50, x_33); -x_52 = lean_box(0); -lean_inc(x_35); -lean_ctor_set_tag(x_16, 3); -lean_ctor_set(x_16, 3, x_52); -lean_ctor_set(x_16, 2, x_51); -lean_ctor_set(x_16, 1, x_49); -lean_ctor_set(x_16, 0, x_35); -lean_inc_ref(x_41); -lean_inc(x_35); -x_53 = l_Lean_Syntax_node2(x_35, x_48, x_16, x_41); -lean_inc(x_35); -x_54 = l_Lean_Syntax_node2(x_35, x_45, x_47, x_53); -lean_inc(x_35); -x_55 = l_Lean_Syntax_node1(x_35, x_39, x_54); -x_56 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__18; -lean_inc(x_35); -x_57 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_57, 0, x_35); -lean_ctor_set(x_57, 1, x_56); -lean_inc(x_35); -x_58 = l_Lean_Syntax_node3(x_35, x_42, x_44, x_55, x_57); -lean_inc(x_35); -x_59 = l_Lean_Syntax_node1(x_35, x_39, x_58); -lean_inc_ref_n(x_41, 5); -lean_inc(x_35); -x_60 = l_Lean_Syntax_node6(x_35, x_38, x_41, x_59, x_41, x_41, x_41, x_41); -x_61 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__20; -x_62 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__21; -lean_inc(x_35); -x_63 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_63, 0, x_35); -lean_ctor_set(x_63, 1, x_62); -x_64 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__23; -x_65 = lean_mk_syntax_ident(x_19); -lean_inc_ref(x_41); -lean_inc(x_35); -x_66 = l_Lean_Syntax_node2(x_35, x_64, x_65, x_41); -x_67 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__25; -x_68 = l_Array_append___redArg(x_40, x_25); -lean_dec_ref(x_25); -lean_inc(x_35); -x_69 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_69, 0, x_35); -lean_ctor_set(x_69, 1, x_39); -lean_ctor_set(x_69, 2, x_68); -x_70 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__27; -x_71 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__18; -lean_inc(x_35); -x_72 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_72, 0, x_35); -lean_ctor_set(x_72, 1, x_71); -x_73 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__28; -x_74 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__29; -x_75 = l_Lean_addMacroScope(x_36, x_74, x_33); -x_76 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__33; -lean_inc(x_35); -x_77 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_77, 0, x_35); -lean_ctor_set(x_77, 1, x_73); -lean_ctor_set(x_77, 2, x_75); -lean_ctor_set(x_77, 3, x_76); -lean_inc(x_35); -x_78 = l_Lean_Syntax_node2(x_35, x_70, x_72, x_77); -lean_inc(x_35); -x_79 = l_Lean_Syntax_node1(x_35, x_39, x_78); -lean_inc(x_35); -x_80 = l_Lean_Syntax_node2(x_35, x_67, x_69, x_79); -x_81 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__35; -x_82 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__36; -lean_inc(x_35); -x_83 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_83, 0, x_35); -lean_ctor_set(x_83, 1, x_82); -x_84 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39; -lean_inc_ref_n(x_41, 2); -lean_inc(x_35); -x_85 = l_Lean_Syntax_node2(x_35, x_84, x_41, x_41); -lean_inc_ref(x_41); -lean_inc(x_35); -x_86 = l_Lean_Syntax_node4(x_35, x_81, x_83, x_20, x_85, x_41); -lean_inc(x_35); -x_87 = l_Lean_Syntax_node5(x_35, x_61, x_63, x_66, x_80, x_86, x_41); -x_88 = l_Lean_Syntax_node2(x_35, x_37, x_60, x_87); -lean_ctor_set(x_29, 0, x_88); -return x_29; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_89 = lean_ctor_get(x_29, 0); -x_90 = lean_ctor_get(x_29, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_29); -x_91 = lean_ctor_get(x_21, 5); -lean_inc(x_91); -x_92 = lean_ctor_get(x_21, 10); -lean_inc(x_92); -lean_dec_ref(x_21); -x_93 = lean_ctor_get(x_89, 0); -lean_inc_ref(x_93); -lean_dec(x_89); -x_94 = l_Lean_SourceInfo_fromRef(x_91, x_12); -lean_dec(x_91); -x_95 = l_Lean_Environment_mainModule(x_93); -lean_dec_ref(x_93); -x_96 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__2; -x_97 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__4; -x_98 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__11; -x_99 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__12; -lean_inc(x_94); -x_100 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_100, 0, x_94); -lean_ctor_set(x_100, 1, x_98); -lean_ctor_set(x_100, 2, x_99); -x_101 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__6; -x_102 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__7; -lean_inc(x_94); -x_103 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_103, 0, x_94); -lean_ctor_set(x_103, 1, x_102); -x_104 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__9; -x_105 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__11; -lean_inc_ref(x_100); -lean_inc(x_94); -x_106 = l_Lean_Syntax_node1(x_94, x_105, x_100); -x_107 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__14; -x_108 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; -x_109 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__17; -lean_inc(x_92); -lean_inc(x_95); -x_110 = l_Lean_addMacroScope(x_95, x_109, x_92); -x_111 = lean_box(0); -lean_inc(x_94); -lean_ctor_set_tag(x_16, 3); -lean_ctor_set(x_16, 3, x_111); -lean_ctor_set(x_16, 2, x_110); -lean_ctor_set(x_16, 1, x_108); -lean_ctor_set(x_16, 0, x_94); -lean_inc_ref(x_100); -lean_inc(x_94); -x_112 = l_Lean_Syntax_node2(x_94, x_107, x_16, x_100); -lean_inc(x_94); -x_113 = l_Lean_Syntax_node2(x_94, x_104, x_106, x_112); -lean_inc(x_94); -x_114 = l_Lean_Syntax_node1(x_94, x_98, x_113); -x_115 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__18; -lean_inc(x_94); -x_116 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_116, 0, x_94); -lean_ctor_set(x_116, 1, x_115); -lean_inc(x_94); -x_117 = l_Lean_Syntax_node3(x_94, x_101, x_103, x_114, x_116); -lean_inc(x_94); -x_118 = l_Lean_Syntax_node1(x_94, x_98, x_117); -lean_inc_ref_n(x_100, 5); -lean_inc(x_94); -x_119 = l_Lean_Syntax_node6(x_94, x_97, x_100, x_118, x_100, x_100, x_100, x_100); -x_120 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__20; -x_121 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__21; -lean_inc(x_94); -x_122 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_122, 0, x_94); -lean_ctor_set(x_122, 1, x_121); -x_123 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__23; -x_124 = lean_mk_syntax_ident(x_19); -lean_inc_ref(x_100); -lean_inc(x_94); -x_125 = l_Lean_Syntax_node2(x_94, x_123, x_124, x_100); -x_126 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__25; -x_127 = l_Array_append___redArg(x_99, x_25); -lean_dec_ref(x_25); -lean_inc(x_94); -x_128 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_128, 0, x_94); -lean_ctor_set(x_128, 1, x_98); -lean_ctor_set(x_128, 2, x_127); -x_129 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__27; -x_130 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__18; -lean_inc(x_94); -x_131 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_131, 0, x_94); -lean_ctor_set(x_131, 1, x_130); -x_132 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__28; -x_133 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__29; -x_134 = l_Lean_addMacroScope(x_95, x_133, x_92); -x_135 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__33; -lean_inc(x_94); -x_136 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_136, 0, x_94); -lean_ctor_set(x_136, 1, x_132); -lean_ctor_set(x_136, 2, x_134); -lean_ctor_set(x_136, 3, x_135); -lean_inc(x_94); -x_137 = l_Lean_Syntax_node2(x_94, x_129, x_131, x_136); -lean_inc(x_94); -x_138 = l_Lean_Syntax_node1(x_94, x_98, x_137); -lean_inc(x_94); -x_139 = l_Lean_Syntax_node2(x_94, x_126, x_128, x_138); -x_140 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__35; -x_141 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__36; -lean_inc(x_94); -x_142 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_142, 0, x_94); -lean_ctor_set(x_142, 1, x_141); -x_143 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39; -lean_inc_ref_n(x_100, 2); -lean_inc(x_94); -x_144 = l_Lean_Syntax_node2(x_94, x_143, x_100, x_100); -lean_inc_ref(x_100); -lean_inc(x_94); -x_145 = l_Lean_Syntax_node4(x_94, x_140, x_142, x_20, x_144, x_100); -lean_inc(x_94); -x_146 = l_Lean_Syntax_node5(x_94, x_120, x_122, x_125, x_139, x_145, x_100); -x_147 = l_Lean_Syntax_node2(x_94, x_96, x_119, x_146); -x_148 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_90); -return x_148; -} -} -else -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; -x_149 = lean_ctor_get(x_16, 0); -lean_inc(x_149); -lean_dec(x_16); -x_150 = lean_st_ref_get(x_22, x_23); -lean_dec(x_22); -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 1); -lean_inc(x_152); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_153 = x_150; -} else { - lean_dec_ref(x_150); - x_153 = lean_box(0); -} -x_154 = lean_ctor_get(x_21, 5); -lean_inc(x_154); -x_155 = lean_ctor_get(x_21, 10); -lean_inc(x_155); -lean_dec_ref(x_21); -x_156 = lean_ctor_get(x_151, 0); -lean_inc_ref(x_156); -lean_dec(x_151); -x_157 = l_Lean_SourceInfo_fromRef(x_154, x_12); -lean_dec(x_154); -x_158 = l_Lean_Environment_mainModule(x_156); -lean_dec_ref(x_156); -x_159 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__2; -x_160 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__4; -x_161 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__11; -x_162 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__12; +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; +x_155 = lean_ctor_get(x_153, 0); +x_156 = lean_ctor_get(x_153, 1); +x_157 = lean_ctor_get(x_144, 5); lean_inc(x_157); -x_163 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_163, 0, x_157); -lean_ctor_set(x_163, 1, x_161); -lean_ctor_set(x_163, 2, x_162); -x_164 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__6; -x_165 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__7; -lean_inc(x_157); -x_166 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_166, 0, x_157); -lean_ctor_set(x_166, 1, x_165); -x_167 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__9; -x_168 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__11; -lean_inc_ref(x_163); -lean_inc(x_157); -x_169 = l_Lean_Syntax_node1(x_157, x_168, x_163); -x_170 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__14; -x_171 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; -x_172 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__17; -lean_inc(x_155); +x_158 = lean_ctor_get(x_144, 10); lean_inc(x_158); -x_173 = l_Lean_addMacroScope(x_158, x_172, x_155); -x_174 = lean_box(0); -lean_inc(x_157); -x_175 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_175, 0, x_157); -lean_ctor_set(x_175, 1, x_171); -lean_ctor_set(x_175, 2, x_173); -lean_ctor_set(x_175, 3, x_174); -lean_inc_ref(x_163); -lean_inc(x_157); -x_176 = l_Lean_Syntax_node2(x_157, x_170, x_175, x_163); -lean_inc(x_157); -x_177 = l_Lean_Syntax_node2(x_157, x_167, x_169, x_176); -lean_inc(x_157); -x_178 = l_Lean_Syntax_node1(x_157, x_161, x_177); -x_179 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__18; -lean_inc(x_157); -x_180 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_180, 0, x_157); -lean_ctor_set(x_180, 1, x_179); -lean_inc(x_157); -x_181 = l_Lean_Syntax_node3(x_157, x_164, x_166, x_178, x_180); -lean_inc(x_157); -x_182 = l_Lean_Syntax_node1(x_157, x_161, x_181); -lean_inc_ref_n(x_163, 5); -lean_inc(x_157); -x_183 = l_Lean_Syntax_node6(x_157, x_160, x_163, x_182, x_163, x_163, x_163, x_163); -x_184 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__20; -x_185 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__21; -lean_inc(x_157); -x_186 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_186, 0, x_157); -lean_ctor_set(x_186, 1, x_185); -x_187 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__23; -x_188 = lean_mk_syntax_ident(x_19); -lean_inc_ref(x_163); -lean_inc(x_157); -x_189 = l_Lean_Syntax_node2(x_157, x_187, x_188, x_163); -x_190 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__25; -x_191 = l_Array_append___redArg(x_162, x_149); -lean_dec_ref(x_149); -lean_inc(x_157); -x_192 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_192, 0, x_157); -lean_ctor_set(x_192, 1, x_161); -lean_ctor_set(x_192, 2, x_191); -x_193 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__27; -x_194 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__18; -lean_inc(x_157); -x_195 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_195, 0, x_157); -lean_ctor_set(x_195, 1, x_194); -x_196 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__28; -x_197 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__29; -x_198 = l_Lean_addMacroScope(x_158, x_197, x_155); -x_199 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__33; -lean_inc(x_157); -x_200 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_200, 0, x_157); -lean_ctor_set(x_200, 1, x_196); -lean_ctor_set(x_200, 2, x_198); -lean_ctor_set(x_200, 3, x_199); -lean_inc(x_157); -x_201 = l_Lean_Syntax_node2(x_157, x_193, x_195, x_200); -lean_inc(x_157); -x_202 = l_Lean_Syntax_node1(x_157, x_161, x_201); -lean_inc(x_157); -x_203 = l_Lean_Syntax_node2(x_157, x_190, x_192, x_202); -x_204 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__35; -x_205 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__36; -lean_inc(x_157); -x_206 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_206, 0, x_157); -lean_ctor_set(x_206, 1, x_205); -x_207 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39; -lean_inc_ref_n(x_163, 2); -lean_inc(x_157); -x_208 = l_Lean_Syntax_node2(x_157, x_207, x_163, x_163); -lean_inc_ref(x_163); -lean_inc(x_157); -x_209 = l_Lean_Syntax_node4(x_157, x_204, x_206, x_20, x_208, x_163); -lean_inc(x_157); -x_210 = l_Lean_Syntax_node5(x_157, x_184, x_186, x_189, x_203, x_209, x_163); -x_211 = l_Lean_Syntax_node2(x_157, x_159, x_183, x_210); -if (lean_is_scalar(x_153)) { - x_212 = lean_alloc_ctor(0, 2, 0); -} else { - x_212 = x_153; -} -lean_ctor_set(x_212, 0, x_211); -lean_ctor_set(x_212, 1, x_152); -return x_212; -} -} -else -{ -uint8_t x_213; -x_213 = !lean_is_exclusive(x_16); -if (x_213 == 0) -{ -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; uint8_t x_219; -x_214 = lean_ctor_get(x_16, 0); -x_215 = lean_ctor_get(x_16, 3); -lean_dec(x_215); -x_216 = lean_ctor_get(x_16, 2); -lean_dec(x_216); -x_217 = lean_ctor_get(x_16, 1); -lean_dec(x_217); -x_218 = lean_st_ref_get(x_22, x_23); -lean_dec(x_22); -x_219 = !lean_is_exclusive(x_218); -if (x_219 == 0) -{ -lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; -x_220 = lean_ctor_get(x_218, 0); -x_221 = lean_ctor_get(x_21, 5); -lean_inc(x_221); -x_222 = lean_ctor_get(x_21, 10); -lean_inc(x_222); -lean_dec_ref(x_21); -x_223 = lean_ctor_get(x_220, 0); -lean_inc_ref(x_223); -lean_dec(x_220); -x_224 = 0; -x_225 = l_Lean_SourceInfo_fromRef(x_221, x_224); -lean_dec(x_221); -x_226 = l_Lean_Environment_mainModule(x_223); -lean_dec_ref(x_223); -x_227 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__2; -x_228 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__4; -x_229 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__11; -x_230 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__12; -lean_inc(x_225); -x_231 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_231, 0, x_225); -lean_ctor_set(x_231, 1, x_229); -lean_ctor_set(x_231, 2, x_230); -x_232 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__40; -x_233 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__41; -lean_inc(x_225); -x_234 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_234, 0, x_225); -lean_ctor_set(x_234, 1, x_232); -lean_inc(x_225); -x_235 = l_Lean_Syntax_node1(x_225, x_233, x_234); -lean_inc(x_225); -x_236 = l_Lean_Syntax_node1(x_225, x_229, x_235); -lean_inc_ref_n(x_231, 5); -lean_inc(x_225); -x_237 = l_Lean_Syntax_node6(x_225, x_228, x_231, x_231, x_231, x_231, x_231, x_236); -x_238 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__20; -x_239 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__21; -lean_inc(x_225); -x_240 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_240, 0, x_225); -lean_ctor_set(x_240, 1, x_239); -x_241 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__23; -x_242 = lean_mk_syntax_ident(x_19); -lean_inc_ref(x_231); -lean_inc(x_225); -x_243 = l_Lean_Syntax_node2(x_225, x_241, x_242, x_231); -x_244 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__25; -x_245 = l_Array_append___redArg(x_230, x_214); -lean_dec_ref(x_214); -lean_inc(x_225); -x_246 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_246, 0, x_225); -lean_ctor_set(x_246, 1, x_229); -lean_ctor_set(x_246, 2, x_245); -x_247 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__27; -x_248 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__18; -lean_inc(x_225); -x_249 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_249, 0, x_225); -lean_ctor_set(x_249, 1, x_248); -x_250 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__28; -x_251 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__29; -x_252 = l_Lean_addMacroScope(x_226, x_251, x_222); -x_253 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__33; -lean_inc(x_225); +lean_dec_ref(x_144); +x_159 = lean_ctor_get(x_155, 0); +lean_inc_ref(x_159); +lean_dec(x_155); +x_160 = l_Lean_SourceInfo_fromRef(x_157, x_12); +lean_dec(x_157); +x_161 = l_Lean_Environment_mainModule(x_159); +lean_dec_ref(x_159); +x_162 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; +x_163 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; +x_164 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; +x_165 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__18; +x_166 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__20; +x_167 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__11; +x_168 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__12; +lean_inc(x_160); +x_169 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_169, 0, x_160); +lean_ctor_set(x_169, 1, x_167); +lean_ctor_set(x_169, 2, x_168); +x_170 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__2; +x_171 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__22; +x_172 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__23; +lean_inc(x_160); +lean_ctor_set_tag(x_153, 2); +lean_ctor_set(x_153, 1, x_172); +lean_ctor_set(x_153, 0, x_160); +x_173 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__25; +x_174 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__27; +lean_inc_ref(x_169); +lean_inc(x_160); +x_175 = l_Lean_Syntax_node1(x_160, x_174, x_169); +x_176 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__30; +x_177 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__32; +x_178 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__33; +lean_inc(x_158); +lean_inc(x_161); +x_179 = l_Lean_addMacroScope(x_161, x_178, x_158); +x_180 = lean_box(0); +lean_inc(x_160); lean_ctor_set_tag(x_16, 3); -lean_ctor_set(x_16, 3, x_253); -lean_ctor_set(x_16, 2, x_252); -lean_ctor_set(x_16, 1, x_250); -lean_ctor_set(x_16, 0, x_225); -lean_inc(x_225); -x_254 = l_Lean_Syntax_node2(x_225, x_247, x_249, x_16); -lean_inc(x_225); -x_255 = l_Lean_Syntax_node1(x_225, x_229, x_254); -lean_inc(x_225); -x_256 = l_Lean_Syntax_node2(x_225, x_244, x_246, x_255); -x_257 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__35; -x_258 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__36; -lean_inc(x_225); -x_259 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_259, 0, x_225); -lean_ctor_set(x_259, 1, x_258); -x_260 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39; -lean_inc_ref_n(x_231, 2); -lean_inc(x_225); -x_261 = l_Lean_Syntax_node2(x_225, x_260, x_231, x_231); -lean_inc_ref(x_231); -lean_inc(x_225); -x_262 = l_Lean_Syntax_node4(x_225, x_257, x_259, x_20, x_261, x_231); -lean_inc(x_225); -x_263 = l_Lean_Syntax_node5(x_225, x_238, x_240, x_243, x_256, x_262, x_231); -x_264 = l_Lean_Syntax_node2(x_225, x_227, x_237, x_263); -lean_ctor_set(x_218, 0, x_264); -return x_218; +lean_ctor_set(x_16, 3, x_180); +lean_ctor_set(x_16, 2, x_179); +lean_ctor_set(x_16, 1, x_177); +lean_ctor_set(x_16, 0, x_160); +lean_inc_ref(x_169); +lean_inc(x_160); +x_181 = l_Lean_Syntax_node2(x_160, x_176, x_16, x_169); +lean_inc(x_160); +x_182 = l_Lean_Syntax_node2(x_160, x_173, x_175, x_181); +lean_inc(x_160); +x_183 = l_Lean_Syntax_node1(x_160, x_167, x_182); +x_184 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__34; +lean_inc(x_160); +x_185 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_185, 0, x_160); +lean_ctor_set(x_185, 1, x_184); +lean_inc(x_160); +x_186 = l_Lean_Syntax_node3(x_160, x_171, x_153, x_183, x_185); +lean_inc(x_160); +x_187 = l_Lean_Syntax_node1(x_160, x_167, x_186); +if (lean_obj_tag(x_152) == 0) +{ +lean_object* x_188; +x_188 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__35; +x_21 = x_168; +x_22 = x_187; +x_23 = x_166; +x_24 = x_162; +x_25 = x_167; +x_26 = x_163; +x_27 = x_170; +x_28 = x_164; +x_29 = x_158; +x_30 = x_148; +x_31 = x_169; +x_32 = x_165; +x_33 = x_156; +x_34 = x_160; +x_35 = x_161; +x_36 = x_143; +x_37 = x_180; +x_38 = x_188; +goto block_81; } else { -lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; uint8_t x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; -x_265 = lean_ctor_get(x_218, 0); -x_266 = lean_ctor_get(x_218, 1); -lean_inc(x_266); -lean_inc(x_265); -lean_dec(x_218); -x_267 = lean_ctor_get(x_21, 5); -lean_inc(x_267); -x_268 = lean_ctor_get(x_21, 10); -lean_inc(x_268); -lean_dec_ref(x_21); -x_269 = lean_ctor_get(x_265, 0); -lean_inc_ref(x_269); -lean_dec(x_265); -x_270 = 0; -x_271 = l_Lean_SourceInfo_fromRef(x_267, x_270); -lean_dec(x_267); -x_272 = l_Lean_Environment_mainModule(x_269); -lean_dec_ref(x_269); -x_273 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__2; -x_274 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__4; -x_275 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__11; -x_276 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__12; -lean_inc(x_271); -x_277 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_277, 0, x_271); -lean_ctor_set(x_277, 1, x_275); -lean_ctor_set(x_277, 2, x_276); -x_278 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__40; -x_279 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__41; -lean_inc(x_271); -x_280 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_280, 0, x_271); -lean_ctor_set(x_280, 1, x_278); -lean_inc(x_271); -x_281 = l_Lean_Syntax_node1(x_271, x_279, x_280); -lean_inc(x_271); -x_282 = l_Lean_Syntax_node1(x_271, x_275, x_281); -lean_inc_ref_n(x_277, 5); -lean_inc(x_271); -x_283 = l_Lean_Syntax_node6(x_271, x_274, x_277, x_277, x_277, x_277, x_277, x_282); -x_284 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__20; -x_285 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__21; -lean_inc(x_271); -x_286 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_286, 0, x_271); -lean_ctor_set(x_286, 1, x_285); -x_287 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__23; -x_288 = lean_mk_syntax_ident(x_19); -lean_inc_ref(x_277); -lean_inc(x_271); -x_289 = l_Lean_Syntax_node2(x_271, x_287, x_288, x_277); -x_290 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__25; -x_291 = l_Array_append___redArg(x_276, x_214); -lean_dec_ref(x_214); -lean_inc(x_271); -x_292 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_292, 0, x_271); -lean_ctor_set(x_292, 1, x_275); -lean_ctor_set(x_292, 2, x_291); -x_293 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__27; -x_294 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__18; -lean_inc(x_271); -x_295 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_295, 0, x_271); -lean_ctor_set(x_295, 1, x_294); -x_296 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__28; -x_297 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__29; -x_298 = l_Lean_addMacroScope(x_272, x_297, x_268); -x_299 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__33; -lean_inc(x_271); +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; +lean_dec(x_152); +x_189 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__37; +x_190 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39; +lean_inc(x_160); +x_191 = l_Lean_Syntax_node1(x_160, x_189, x_190); +x_192 = l_Array_mkArray1___redArg(x_191); +x_21 = x_168; +x_22 = x_187; +x_23 = x_166; +x_24 = x_162; +x_25 = x_167; +x_26 = x_163; +x_27 = x_170; +x_28 = x_164; +x_29 = x_158; +x_30 = x_148; +x_31 = x_169; +x_32 = x_165; +x_33 = x_156; +x_34 = x_160; +x_35 = x_161; +x_36 = x_143; +x_37 = x_180; +x_38 = x_192; +goto block_81; +} +} +else +{ +lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_193 = lean_ctor_get(x_153, 0); +x_194 = lean_ctor_get(x_153, 1); +lean_inc(x_194); +lean_inc(x_193); +lean_dec(x_153); +x_195 = lean_ctor_get(x_144, 5); +lean_inc(x_195); +x_196 = lean_ctor_get(x_144, 10); +lean_inc(x_196); +lean_dec_ref(x_144); +x_197 = lean_ctor_get(x_193, 0); +lean_inc_ref(x_197); +lean_dec(x_193); +x_198 = l_Lean_SourceInfo_fromRef(x_195, x_12); +lean_dec(x_195); +x_199 = l_Lean_Environment_mainModule(x_197); +lean_dec_ref(x_197); +x_200 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; +x_201 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; +x_202 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; +x_203 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__18; +x_204 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__20; +x_205 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__11; +x_206 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__12; +lean_inc(x_198); +x_207 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_207, 0, x_198); +lean_ctor_set(x_207, 1, x_205); +lean_ctor_set(x_207, 2, x_206); +x_208 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__2; +x_209 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__22; +x_210 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__23; +lean_inc(x_198); +x_211 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_211, 0, x_198); +lean_ctor_set(x_211, 1, x_210); +x_212 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__25; +x_213 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__27; +lean_inc_ref(x_207); +lean_inc(x_198); +x_214 = l_Lean_Syntax_node1(x_198, x_213, x_207); +x_215 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__30; +x_216 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__32; +x_217 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__33; +lean_inc(x_196); +lean_inc(x_199); +x_218 = l_Lean_addMacroScope(x_199, x_217, x_196); +x_219 = lean_box(0); +lean_inc(x_198); lean_ctor_set_tag(x_16, 3); -lean_ctor_set(x_16, 3, x_299); -lean_ctor_set(x_16, 2, x_298); -lean_ctor_set(x_16, 1, x_296); -lean_ctor_set(x_16, 0, x_271); -lean_inc(x_271); -x_300 = l_Lean_Syntax_node2(x_271, x_293, x_295, x_16); -lean_inc(x_271); -x_301 = l_Lean_Syntax_node1(x_271, x_275, x_300); -lean_inc(x_271); -x_302 = l_Lean_Syntax_node2(x_271, x_290, x_292, x_301); -x_303 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__35; -x_304 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__36; -lean_inc(x_271); -x_305 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_305, 0, x_271); -lean_ctor_set(x_305, 1, x_304); -x_306 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39; -lean_inc_ref_n(x_277, 2); -lean_inc(x_271); -x_307 = l_Lean_Syntax_node2(x_271, x_306, x_277, x_277); -lean_inc_ref(x_277); -lean_inc(x_271); -x_308 = l_Lean_Syntax_node4(x_271, x_303, x_305, x_20, x_307, x_277); -lean_inc(x_271); -x_309 = l_Lean_Syntax_node5(x_271, x_284, x_286, x_289, x_302, x_308, x_277); -x_310 = l_Lean_Syntax_node2(x_271, x_273, x_283, x_309); -x_311 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_311, 0, x_310); -lean_ctor_set(x_311, 1, x_266); -return x_311; +lean_ctor_set(x_16, 3, x_219); +lean_ctor_set(x_16, 2, x_218); +lean_ctor_set(x_16, 1, x_216); +lean_ctor_set(x_16, 0, x_198); +lean_inc_ref(x_207); +lean_inc(x_198); +x_220 = l_Lean_Syntax_node2(x_198, x_215, x_16, x_207); +lean_inc(x_198); +x_221 = l_Lean_Syntax_node2(x_198, x_212, x_214, x_220); +lean_inc(x_198); +x_222 = l_Lean_Syntax_node1(x_198, x_205, x_221); +x_223 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__34; +lean_inc(x_198); +x_224 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_224, 0, x_198); +lean_ctor_set(x_224, 1, x_223); +lean_inc(x_198); +x_225 = l_Lean_Syntax_node3(x_198, x_209, x_211, x_222, x_224); +lean_inc(x_198); +x_226 = l_Lean_Syntax_node1(x_198, x_205, x_225); +if (lean_obj_tag(x_152) == 0) +{ +lean_object* x_227; +x_227 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__35; +x_21 = x_206; +x_22 = x_226; +x_23 = x_204; +x_24 = x_200; +x_25 = x_205; +x_26 = x_201; +x_27 = x_208; +x_28 = x_202; +x_29 = x_196; +x_30 = x_148; +x_31 = x_207; +x_32 = x_203; +x_33 = x_194; +x_34 = x_198; +x_35 = x_199; +x_36 = x_143; +x_37 = x_219; +x_38 = x_227; +goto block_81; +} +else +{ +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +lean_dec(x_152); +x_228 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__37; +x_229 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39; +lean_inc(x_198); +x_230 = l_Lean_Syntax_node1(x_198, x_228, x_229); +x_231 = l_Array_mkArray1___redArg(x_230); +x_21 = x_206; +x_22 = x_226; +x_23 = x_204; +x_24 = x_200; +x_25 = x_205; +x_26 = x_201; +x_27 = x_208; +x_28 = x_202; +x_29 = x_196; +x_30 = x_148; +x_31 = x_207; +x_32 = x_203; +x_33 = x_194; +x_34 = x_198; +x_35 = x_199; +x_36 = x_143; +x_37 = x_219; +x_38 = x_231; +goto block_81; +} } } else { -lean_object* x_312; 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_object* x_319; uint8_t 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_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; -x_312 = lean_ctor_get(x_16, 0); -lean_inc(x_312); +lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; uint8_t x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +lean_free_object(x_16); +lean_dec(x_18); +x_232 = lean_st_ref_get(x_145, x_146); +lean_dec(x_145); +x_233 = lean_ctor_get(x_232, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_232, 1); +lean_inc(x_234); +lean_dec_ref(x_232); +x_235 = lean_ctor_get(x_144, 5); +lean_inc(x_235); +x_236 = lean_ctor_get(x_144, 10); +lean_inc(x_236); +lean_dec_ref(x_144); +x_237 = lean_ctor_get(x_233, 0); +lean_inc_ref(x_237); +lean_dec(x_233); +x_238 = 0; +x_239 = l_Lean_SourceInfo_fromRef(x_235, x_238); +lean_dec(x_235); +x_240 = l_Lean_Environment_mainModule(x_237); +lean_dec_ref(x_237); +x_241 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; +x_242 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; +x_243 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; +x_244 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__18; +x_245 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__20; +x_246 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__11; +x_247 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__12; +lean_inc(x_239); +x_248 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_248, 0, x_239); +lean_ctor_set(x_248, 1, x_246); +lean_ctor_set(x_248, 2, x_247); +if (lean_obj_tag(x_152) == 0) +{ +lean_object* x_249; +x_249 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__35; +x_82 = x_239; +x_83 = x_244; +x_84 = x_242; +x_85 = x_245; +x_86 = x_236; +x_87 = x_234; +x_88 = x_241; +x_89 = x_148; +x_90 = x_243; +x_91 = x_246; +x_92 = x_240; +x_93 = x_247; +x_94 = x_248; +x_95 = x_143; +x_96 = x_249; +goto block_142; +} +else +{ +lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; +lean_dec(x_152); +x_250 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__37; +x_251 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39; +lean_inc(x_239); +x_252 = l_Lean_Syntax_node1(x_239, x_250, x_251); +x_253 = l_Array_mkArray1___redArg(x_252); +x_82 = x_239; +x_83 = x_244; +x_84 = x_242; +x_85 = x_245; +x_86 = x_236; +x_87 = x_234; +x_88 = x_241; +x_89 = x_148; +x_90 = x_243; +x_91 = x_246; +x_92 = x_240; +x_93 = x_247; +x_94 = x_248; +x_95 = x_143; +x_96 = x_253; +goto block_142; +} +} +} +else +{ +lean_object* x_254; lean_object* x_255; +x_254 = lean_ctor_get(x_16, 0); +lean_inc(x_254); lean_dec(x_16); -x_313 = lean_st_ref_get(x_22, x_23); -lean_dec(x_22); -x_314 = lean_ctor_get(x_313, 0); -lean_inc(x_314); -x_315 = lean_ctor_get(x_313, 1); -lean_inc(x_315); -if (lean_is_exclusive(x_313)) { - lean_ctor_release(x_313, 0); - lean_ctor_release(x_313, 1); - x_316 = x_313; +x_255 = l_Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f(x_1); +if (x_12 == 0) +{ +lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; +x_256 = lean_st_ref_get(x_145, x_146); +lean_dec(x_145); +x_257 = lean_ctor_get(x_256, 0); +lean_inc(x_257); +x_258 = lean_ctor_get(x_256, 1); +lean_inc(x_258); +if (lean_is_exclusive(x_256)) { + lean_ctor_release(x_256, 0); + lean_ctor_release(x_256, 1); + x_259 = x_256; } else { - lean_dec_ref(x_313); - x_316 = lean_box(0); + lean_dec_ref(x_256); + x_259 = lean_box(0); } -x_317 = lean_ctor_get(x_21, 5); -lean_inc(x_317); -x_318 = lean_ctor_get(x_21, 10); -lean_inc(x_318); -lean_dec_ref(x_21); -x_319 = lean_ctor_get(x_314, 0); -lean_inc_ref(x_319); -lean_dec(x_314); -x_320 = 0; -x_321 = l_Lean_SourceInfo_fromRef(x_317, x_320); -lean_dec(x_317); -x_322 = l_Lean_Environment_mainModule(x_319); -lean_dec_ref(x_319); -x_323 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__2; -x_324 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__4; -x_325 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__11; -x_326 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__12; -lean_inc(x_321); -x_327 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_327, 0, x_321); -lean_ctor_set(x_327, 1, x_325); -lean_ctor_set(x_327, 2, x_326); -x_328 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__40; -x_329 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__41; -lean_inc(x_321); -x_330 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_330, 0, x_321); -lean_ctor_set(x_330, 1, x_328); -lean_inc(x_321); -x_331 = l_Lean_Syntax_node1(x_321, x_329, x_330); -lean_inc(x_321); -x_332 = l_Lean_Syntax_node1(x_321, x_325, x_331); -lean_inc_ref_n(x_327, 5); -lean_inc(x_321); -x_333 = l_Lean_Syntax_node6(x_321, x_324, x_327, x_327, x_327, x_327, x_327, x_332); -x_334 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__20; -x_335 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__21; -lean_inc(x_321); -x_336 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_336, 0, x_321); -lean_ctor_set(x_336, 1, x_335); -x_337 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__23; -x_338 = lean_mk_syntax_ident(x_19); -lean_inc_ref(x_327); -lean_inc(x_321); -x_339 = l_Lean_Syntax_node2(x_321, x_337, x_338, x_327); -x_340 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__25; -x_341 = l_Array_append___redArg(x_326, x_312); -lean_dec_ref(x_312); -lean_inc(x_321); -x_342 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_342, 0, x_321); -lean_ctor_set(x_342, 1, x_325); -lean_ctor_set(x_342, 2, x_341); -x_343 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__27; -x_344 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__18; -lean_inc(x_321); -x_345 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_345, 0, x_321); -lean_ctor_set(x_345, 1, x_344); -x_346 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__28; -x_347 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__29; -x_348 = l_Lean_addMacroScope(x_322, x_347, x_318); -x_349 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__33; -lean_inc(x_321); -x_350 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_350, 0, x_321); -lean_ctor_set(x_350, 1, x_346); -lean_ctor_set(x_350, 2, x_348); -lean_ctor_set(x_350, 3, x_349); -lean_inc(x_321); -x_351 = l_Lean_Syntax_node2(x_321, x_343, x_345, x_350); -lean_inc(x_321); -x_352 = l_Lean_Syntax_node1(x_321, x_325, x_351); -lean_inc(x_321); -x_353 = l_Lean_Syntax_node2(x_321, x_340, x_342, x_352); -x_354 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__35; -x_355 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__36; -lean_inc(x_321); -x_356 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_356, 0, x_321); -lean_ctor_set(x_356, 1, x_355); -x_357 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39; -lean_inc_ref_n(x_327, 2); -lean_inc(x_321); -x_358 = l_Lean_Syntax_node2(x_321, x_357, x_327, x_327); -lean_inc_ref(x_327); -lean_inc(x_321); -x_359 = l_Lean_Syntax_node4(x_321, x_354, x_356, x_20, x_358, x_327); -lean_inc(x_321); -x_360 = l_Lean_Syntax_node5(x_321, x_334, x_336, x_339, x_353, x_359, x_327); -x_361 = l_Lean_Syntax_node2(x_321, x_323, x_333, x_360); -if (lean_is_scalar(x_316)) { - x_362 = lean_alloc_ctor(0, 2, 0); +x_260 = lean_ctor_get(x_144, 5); +lean_inc(x_260); +x_261 = lean_ctor_get(x_144, 10); +lean_inc(x_261); +lean_dec_ref(x_144); +x_262 = lean_ctor_get(x_257, 0); +lean_inc_ref(x_262); +lean_dec(x_257); +x_263 = l_Lean_SourceInfo_fromRef(x_260, x_12); +lean_dec(x_260); +x_264 = l_Lean_Environment_mainModule(x_262); +lean_dec_ref(x_262); +x_265 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; +x_266 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; +x_267 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; +x_268 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__18; +x_269 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__20; +x_270 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__11; +x_271 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__12; +lean_inc(x_263); +x_272 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_272, 0, x_263); +lean_ctor_set(x_272, 1, x_270); +lean_ctor_set(x_272, 2, x_271); +x_273 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__2; +x_274 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__22; +x_275 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__23; +lean_inc(x_263); +if (lean_is_scalar(x_259)) { + x_276 = lean_alloc_ctor(2, 2, 0); } else { - x_362 = x_316; + x_276 = x_259; + lean_ctor_set_tag(x_276, 2); +} +lean_ctor_set(x_276, 0, x_263); +lean_ctor_set(x_276, 1, x_275); +x_277 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__25; +x_278 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__27; +lean_inc_ref(x_272); +lean_inc(x_263); +x_279 = l_Lean_Syntax_node1(x_263, x_278, x_272); +x_280 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__30; +x_281 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__32; +x_282 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__33; +lean_inc(x_261); +lean_inc(x_264); +x_283 = l_Lean_addMacroScope(x_264, x_282, x_261); +x_284 = lean_box(0); +lean_inc(x_263); +x_285 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_285, 0, x_263); +lean_ctor_set(x_285, 1, x_281); +lean_ctor_set(x_285, 2, x_283); +lean_ctor_set(x_285, 3, x_284); +lean_inc_ref(x_272); +lean_inc(x_263); +x_286 = l_Lean_Syntax_node2(x_263, x_280, x_285, x_272); +lean_inc(x_263); +x_287 = l_Lean_Syntax_node2(x_263, x_277, x_279, x_286); +lean_inc(x_263); +x_288 = l_Lean_Syntax_node1(x_263, x_270, x_287); +x_289 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__34; +lean_inc(x_263); +x_290 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_290, 0, x_263); +lean_ctor_set(x_290, 1, x_289); +lean_inc(x_263); +x_291 = l_Lean_Syntax_node3(x_263, x_274, x_276, x_288, x_290); +lean_inc(x_263); +x_292 = l_Lean_Syntax_node1(x_263, x_270, x_291); +if (lean_obj_tag(x_255) == 0) +{ +lean_object* x_293; +x_293 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__35; +x_21 = x_271; +x_22 = x_292; +x_23 = x_269; +x_24 = x_265; +x_25 = x_270; +x_26 = x_266; +x_27 = x_273; +x_28 = x_267; +x_29 = x_261; +x_30 = x_254; +x_31 = x_272; +x_32 = x_268; +x_33 = x_258; +x_34 = x_263; +x_35 = x_264; +x_36 = x_143; +x_37 = x_284; +x_38 = x_293; +goto block_81; +} +else +{ +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; +lean_dec(x_255); +x_294 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__37; +x_295 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39; +lean_inc(x_263); +x_296 = l_Lean_Syntax_node1(x_263, x_294, x_295); +x_297 = l_Array_mkArray1___redArg(x_296); +x_21 = x_271; +x_22 = x_292; +x_23 = x_269; +x_24 = x_265; +x_25 = x_270; +x_26 = x_266; +x_27 = x_273; +x_28 = x_267; +x_29 = x_261; +x_30 = x_254; +x_31 = x_272; +x_32 = x_268; +x_33 = x_258; +x_34 = x_263; +x_35 = x_264; +x_36 = x_143; +x_37 = x_284; +x_38 = x_297; +goto block_81; +} +} +else +{ +lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; uint8_t x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; +lean_dec(x_18); +x_298 = lean_st_ref_get(x_145, x_146); +lean_dec(x_145); +x_299 = lean_ctor_get(x_298, 0); +lean_inc(x_299); +x_300 = lean_ctor_get(x_298, 1); +lean_inc(x_300); +lean_dec_ref(x_298); +x_301 = lean_ctor_get(x_144, 5); +lean_inc(x_301); +x_302 = lean_ctor_get(x_144, 10); +lean_inc(x_302); +lean_dec_ref(x_144); +x_303 = lean_ctor_get(x_299, 0); +lean_inc_ref(x_303); +lean_dec(x_299); +x_304 = 0; +x_305 = l_Lean_SourceInfo_fromRef(x_301, x_304); +lean_dec(x_301); +x_306 = l_Lean_Environment_mainModule(x_303); +lean_dec_ref(x_303); +x_307 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; +x_308 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; +x_309 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; +x_310 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__18; +x_311 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__20; +x_312 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__11; +x_313 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__12; +lean_inc(x_305); +x_314 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_314, 0, x_305); +lean_ctor_set(x_314, 1, x_312); +lean_ctor_set(x_314, 2, x_313); +if (lean_obj_tag(x_255) == 0) +{ +lean_object* x_315; +x_315 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__35; +x_82 = x_305; +x_83 = x_310; +x_84 = x_308; +x_85 = x_311; +x_86 = x_302; +x_87 = x_300; +x_88 = x_307; +x_89 = x_254; +x_90 = x_309; +x_91 = x_312; +x_92 = x_306; +x_93 = x_313; +x_94 = x_314; +x_95 = x_143; +x_96 = x_315; +goto block_142; +} +else +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; +lean_dec(x_255); +x_316 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__37; +x_317 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39; +lean_inc(x_305); +x_318 = l_Lean_Syntax_node1(x_305, x_316, x_317); +x_319 = l_Array_mkArray1___redArg(x_318); +x_82 = x_305; +x_83 = x_310; +x_84 = x_308; +x_85 = x_311; +x_86 = x_302; +x_87 = x_300; +x_88 = x_307; +x_89 = x_254; +x_90 = x_309; +x_91 = x_312; +x_92 = x_306; +x_93 = x_313; +x_94 = x_314; +x_95 = x_143; +x_96 = x_319; +goto block_142; } -lean_ctor_set(x_362, 0, x_361); -lean_ctor_set(x_362, 1, x_315); -return x_362; } } } } else { -uint8_t x_381; +uint8_t x_338; lean_dec_ref(x_14); lean_dec(x_8); lean_dec_ref(x_7); @@ -10831,23 +10849,23 @@ lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -x_381 = !lean_is_exclusive(x_15); -if (x_381 == 0) +x_338 = !lean_is_exclusive(x_15); +if (x_338 == 0) { return x_15; } else { -lean_object* x_382; lean_object* x_383; lean_object* x_384; -x_382 = lean_ctor_get(x_15, 0); -x_383 = lean_ctor_get(x_15, 1); -lean_inc(x_383); -lean_inc(x_382); +lean_object* x_339; lean_object* x_340; lean_object* x_341; +x_339 = lean_ctor_get(x_15, 0); +x_340 = lean_ctor_get(x_15, 1); +lean_inc(x_340); +lean_inc(x_339); lean_dec(x_15); -x_384 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_384, 0, x_382); -lean_ctor_set(x_384, 1, x_383); -return x_384; +x_341 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_341, 0, x_339); +lean_ctor_set(x_341, 1, x_340); +return x_341; } } } @@ -10998,7 +11016,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_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__0; -x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__0; +x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); @@ -11018,7 +11036,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_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__2; -x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__0; +x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); @@ -11726,17 +11744,21 @@ return x_73; static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__0() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("explicitBinder", 14, 14); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__0; +x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; +x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; +x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; } } static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__0; -x_2 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__2; +x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__2; +x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); @@ -11746,34 +11768,40 @@ return x_5; static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__2() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("x", 1, 1); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__3; +x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; +x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; +x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; } } static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__2; -x_2 = l_String_toSubstring_x27(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("explicitBinder", 14, 14); +return x_1; } } static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__4() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__2; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__3; +x_2 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__2; +x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; +x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; } } static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__5() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("y", 1, 1); +x_1 = lean_mk_string_unchecked("x", 1, 1); return x_1; } } @@ -11799,7 +11827,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Derivi _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("x.toCtorIdx", 11, 11); +x_1 = lean_mk_string_unchecked("y", 1, 1); return x_1; } } @@ -11815,22 +11843,72 @@ return x_2; static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__10() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("toCtorIdx", 9, 9); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__8; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; } } static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__11() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__4; +x_2 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__2; +x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; +x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__9; +x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; +x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; +x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__13() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("x.toCtorIdx", 11, 11); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__13; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__15() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("toCtorIdx", 9, 9); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__16() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__10; -x_2 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__2; +x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__15; +x_2 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__5; x_3 = l_Lean_Name_mkStr2(x_2, x_1); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__12() { +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__17() { _start: { lean_object* x_1; @@ -11838,436 +11916,285 @@ x_1 = lean_mk_string_unchecked("y.toCtorIdx", 11, 11); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__13() { +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__18() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__12; +x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__17; x_2 = l_String_toSubstring_x27(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__14() { +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__10; -x_2 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__5; +x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__15; +x_2 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__8; x_3 = l_Lean_Name_mkStr2(x_2, x_1); return x_3; } } +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___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_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__12; +x_2 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__11; +x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__1; +x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; uint8_t x_7; +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t 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; 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; x_6 = lean_st_ref_get(x_4, x_5); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_8 = lean_ctor_get(x_6, 0); -x_9 = lean_ctor_get(x_1, 1); -x_10 = lean_ctor_get(x_3, 5); -lean_inc(x_10); -x_11 = lean_ctor_get(x_3, 10); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +if (lean_is_exclusive(x_6)) { + lean_ctor_release(x_6, 0); + lean_ctor_release(x_6, 1); + x_9 = x_6; +} else { + lean_dec_ref(x_6); + x_9 = lean_box(0); +} +x_10 = lean_ctor_get(x_1, 1); +x_11 = lean_ctor_get(x_3, 5); lean_inc(x_11); +x_12 = lean_ctor_get(x_3, 10); +lean_inc(x_12); lean_dec_ref(x_3); -x_12 = lean_ctor_get(x_8, 0); -lean_inc_ref(x_12); -lean_dec(x_8); -x_13 = lean_box(0); -x_14 = lean_unsigned_to_nat(0u); -x_15 = lean_array_get(x_13, x_9, x_14); -x_16 = 0; -x_17 = l_Lean_SourceInfo_fromRef(x_10, x_16); -lean_dec(x_10); -x_18 = l_Lean_Environment_mainModule(x_12); -lean_dec_ref(x_12); -x_19 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__2; -x_20 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__4; -x_21 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__11; -x_22 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__12; -lean_inc(x_17); -x_23 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_23, 0, x_17); -lean_ctor_set(x_23, 1, x_21); -lean_ctor_set(x_23, 2, x_22); -x_24 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__6; -x_25 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__7; -lean_inc(x_17); -x_26 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_26, 0, x_17); -lean_ctor_set(x_26, 1, x_25); -x_27 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__9; -x_28 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__11; -lean_inc_ref(x_23); -lean_inc(x_17); -x_29 = l_Lean_Syntax_node1(x_17, x_28, x_23); -x_30 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__14; -x_31 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; -x_32 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__17; -lean_inc(x_11); -lean_inc(x_18); -x_33 = l_Lean_addMacroScope(x_18, x_32, x_11); -x_34 = lean_box(0); -lean_inc(x_17); -x_35 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_35, 0, x_17); -lean_ctor_set(x_35, 1, x_31); -lean_ctor_set(x_35, 2, x_33); -lean_ctor_set(x_35, 3, x_34); -lean_inc_ref(x_23); -lean_inc(x_17); -x_36 = l_Lean_Syntax_node2(x_17, x_30, x_35, x_23); -lean_inc(x_17); -x_37 = l_Lean_Syntax_node2(x_17, x_27, x_29, x_36); -lean_inc(x_17); -x_38 = l_Lean_Syntax_node1(x_17, x_21, x_37); -x_39 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__18; -lean_inc(x_17); -x_40 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_40, 0, x_17); -lean_ctor_set(x_40, 1, x_39); -lean_inc(x_17); -x_41 = l_Lean_Syntax_node3(x_17, x_24, x_26, x_38, x_40); -lean_inc(x_17); -x_42 = l_Lean_Syntax_node1(x_17, x_21, x_41); -lean_inc_ref_n(x_23, 5); -lean_inc(x_17); -x_43 = l_Lean_Syntax_node6(x_17, x_20, x_23, x_42, x_23, x_23, x_23, x_23); -x_44 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__20; -x_45 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__21; -lean_inc(x_17); -x_46 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_46, 0, x_17); -lean_ctor_set(x_46, 1, x_45); -x_47 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__23; -x_48 = lean_mk_syntax_ident(x_15); -lean_inc_ref(x_23); -lean_inc(x_17); -x_49 = l_Lean_Syntax_node2(x_17, x_47, x_48, x_23); -x_50 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__25; -x_51 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__1; -x_52 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__34; -lean_inc(x_17); -x_53 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_53, 0, x_17); -lean_ctor_set(x_53, 1, x_52); -x_54 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__3; -x_55 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__4; -lean_inc(x_11); -lean_inc(x_18); -x_56 = l_Lean_addMacroScope(x_18, x_55, x_11); -lean_inc(x_17); -x_57 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_57, 0, x_17); -lean_ctor_set(x_57, 1, x_54); -lean_ctor_set(x_57, 2, x_56); -lean_ctor_set(x_57, 3, x_34); -x_58 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__6; -x_59 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__7; -lean_inc(x_11); -lean_inc(x_18); -x_60 = l_Lean_addMacroScope(x_18, x_59, x_11); -lean_inc(x_17); -x_61 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_61, 0, x_17); -lean_ctor_set(x_61, 1, x_58); -lean_ctor_set(x_61, 2, x_60); -lean_ctor_set(x_61, 3, x_34); -lean_inc(x_17); -x_62 = l_Lean_Syntax_node2(x_17, x_21, x_57, x_61); -x_63 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__18; -lean_inc(x_17); -x_64 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_64, 0, x_17); -lean_ctor_set(x_64, 1, x_63); -x_65 = lean_mk_syntax_ident(x_2); -lean_inc_ref(x_64); -lean_inc(x_17); -x_66 = l_Lean_Syntax_node2(x_17, x_21, x_64, x_65); -x_67 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__44; -lean_inc(x_17); -x_68 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_68, 0, x_17); -lean_ctor_set(x_68, 1, x_67); -lean_inc_ref(x_23); -lean_inc(x_17); -x_69 = l_Lean_Syntax_node5(x_17, x_51, x_53, x_62, x_66, x_23, x_68); -lean_inc(x_17); -x_70 = l_Lean_Syntax_node1(x_17, x_21, x_69); -x_71 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__27; -x_72 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__28; -x_73 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__29; -lean_inc(x_11); -lean_inc(x_18); -x_74 = l_Lean_addMacroScope(x_18, x_73, x_11); -x_75 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__33; -lean_inc(x_17); -x_76 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_76, 0, x_17); -lean_ctor_set(x_76, 1, x_72); -lean_ctor_set(x_76, 2, x_74); -lean_ctor_set(x_76, 3, x_75); -lean_inc(x_17); -x_77 = l_Lean_Syntax_node2(x_17, x_71, x_64, x_76); -lean_inc(x_17); -x_78 = l_Lean_Syntax_node1(x_17, x_21, x_77); -lean_inc(x_17); -x_79 = l_Lean_Syntax_node2(x_17, x_50, x_70, x_78); -x_80 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__35; -x_81 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__36; -lean_inc(x_17); -x_82 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_82, 0, x_17); -lean_ctor_set(x_82, 1, x_81); -x_83 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__7; -x_84 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__9; -x_85 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__11; -lean_inc(x_11); -lean_inc(x_18); -x_86 = l_Lean_addMacroScope(x_18, x_85, x_11); -lean_inc(x_17); -x_87 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_87, 0, x_17); -lean_ctor_set(x_87, 1, x_84); -lean_ctor_set(x_87, 2, x_86); -lean_ctor_set(x_87, 3, x_34); -x_88 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__8; -lean_inc(x_17); -x_89 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_89, 0, x_17); -lean_ctor_set(x_89, 1, x_88); -x_90 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__13; -x_91 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__14; -x_92 = l_Lean_addMacroScope(x_18, x_91, x_11); -lean_inc(x_17); -x_93 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_93, 0, x_17); -lean_ctor_set(x_93, 1, x_90); -lean_ctor_set(x_93, 2, x_92); -lean_ctor_set(x_93, 3, x_34); -lean_inc(x_17); -x_94 = l_Lean_Syntax_node3(x_17, x_83, x_87, x_89, x_93); -x_95 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39; -lean_inc_ref_n(x_23, 2); -lean_inc(x_17); -x_96 = l_Lean_Syntax_node2(x_17, x_95, x_23, x_23); -lean_inc_ref(x_23); -lean_inc(x_17); -x_97 = l_Lean_Syntax_node4(x_17, x_80, x_82, x_94, x_96, x_23); -lean_inc(x_17); -x_98 = l_Lean_Syntax_node5(x_17, x_44, x_46, x_49, x_79, x_97, x_23); -x_99 = l_Lean_Syntax_node2(x_17, x_19, x_43, x_98); -lean_ctor_set(x_6, 0, x_99); -return x_6; +x_13 = lean_ctor_get(x_7, 0); +lean_inc_ref(x_13); +lean_dec(x_7); +x_14 = lean_box(0); +x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_array_get(x_14, x_10, x_15); +x_17 = l_Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f(x_1); +x_18 = 0; +x_19 = l_Lean_SourceInfo_fromRef(x_11, x_18); +lean_dec(x_11); +x_20 = l_Lean_Environment_mainModule(x_13); +lean_dec_ref(x_13); +x_21 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__18; +x_22 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__20; +x_23 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__11; +x_24 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__12; +lean_inc(x_19); +x_25 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_25, 0, x_19); +lean_ctor_set(x_25, 1, x_23); +lean_ctor_set(x_25, 2, x_24); +x_26 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__22; +x_27 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__23; +lean_inc(x_19); +x_28 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_28, 0, x_19); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__25; +x_30 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__27; +lean_inc_ref(x_25); +lean_inc(x_19); +x_31 = l_Lean_Syntax_node1(x_19, x_30, x_25); +x_32 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__30; +x_33 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__32; +x_34 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__33; +lean_inc(x_12); +lean_inc(x_20); +x_35 = l_Lean_addMacroScope(x_20, x_34, x_12); +x_36 = lean_box(0); +lean_inc(x_19); +x_37 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_37, 0, x_19); +lean_ctor_set(x_37, 1, x_33); +lean_ctor_set(x_37, 2, x_35); +lean_ctor_set(x_37, 3, x_36); +lean_inc_ref(x_25); +lean_inc(x_19); +x_38 = l_Lean_Syntax_node2(x_19, x_32, x_37, x_25); +lean_inc(x_19); +x_39 = l_Lean_Syntax_node2(x_19, x_29, x_31, x_38); +lean_inc(x_19); +x_40 = l_Lean_Syntax_node1(x_19, x_23, x_39); +x_41 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__34; +lean_inc(x_19); +x_42 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_42, 0, x_19); +lean_ctor_set(x_42, 1, x_41); +lean_inc(x_19); +x_43 = l_Lean_Syntax_node3(x_19, x_26, x_28, x_40, x_42); +lean_inc(x_19); +x_44 = l_Lean_Syntax_node1(x_19, x_23, x_43); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_107; +x_107 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__35; +x_45 = x_107; +goto block_106; } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; -x_100 = lean_ctor_get(x_6, 0); -x_101 = lean_ctor_get(x_6, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_6); -x_102 = lean_ctor_get(x_1, 1); -x_103 = lean_ctor_get(x_3, 5); -lean_inc(x_103); -x_104 = lean_ctor_get(x_3, 10); -lean_inc(x_104); -lean_dec_ref(x_3); -x_105 = lean_ctor_get(x_100, 0); -lean_inc_ref(x_105); -lean_dec(x_100); -x_106 = lean_box(0); -x_107 = lean_unsigned_to_nat(0u); -x_108 = lean_array_get(x_106, x_102, x_107); -x_109 = 0; -x_110 = l_Lean_SourceInfo_fromRef(x_103, x_109); -lean_dec(x_103); -x_111 = l_Lean_Environment_mainModule(x_105); -lean_dec_ref(x_105); -x_112 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__2; -x_113 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__4; -x_114 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__11; -x_115 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__12; -lean_inc(x_110); -x_116 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_116, 0, x_110); -lean_ctor_set(x_116, 1, x_114); -lean_ctor_set(x_116, 2, x_115); -x_117 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__6; -x_118 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__7; -lean_inc(x_110); -x_119 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_119, 0, x_110); -lean_ctor_set(x_119, 1, x_118); -x_120 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__9; -x_121 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__11; -lean_inc_ref(x_116); -lean_inc(x_110); -x_122 = l_Lean_Syntax_node1(x_110, x_121, x_116); -x_123 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__14; -x_124 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__16; -x_125 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__17; -lean_inc(x_104); -lean_inc(x_111); -x_126 = l_Lean_addMacroScope(x_111, x_125, x_104); -x_127 = lean_box(0); -lean_inc(x_110); -x_128 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_128, 0, x_110); -lean_ctor_set(x_128, 1, x_124); -lean_ctor_set(x_128, 2, x_126); -lean_ctor_set(x_128, 3, x_127); -lean_inc_ref(x_116); -lean_inc(x_110); -x_129 = l_Lean_Syntax_node2(x_110, x_123, x_128, x_116); -lean_inc(x_110); -x_130 = l_Lean_Syntax_node2(x_110, x_120, x_122, x_129); -lean_inc(x_110); -x_131 = l_Lean_Syntax_node1(x_110, x_114, x_130); -x_132 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__18; -lean_inc(x_110); -x_133 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_133, 0, x_110); -lean_ctor_set(x_133, 1, x_132); -lean_inc(x_110); -x_134 = l_Lean_Syntax_node3(x_110, x_117, x_119, x_131, x_133); -lean_inc(x_110); -x_135 = l_Lean_Syntax_node1(x_110, x_114, x_134); -lean_inc_ref_n(x_116, 5); -lean_inc(x_110); -x_136 = l_Lean_Syntax_node6(x_110, x_113, x_116, x_135, x_116, x_116, x_116, x_116); -x_137 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__20; -x_138 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__21; -lean_inc(x_110); -x_139 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_139, 0, x_110); -lean_ctor_set(x_139, 1, x_138); -x_140 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__23; -x_141 = lean_mk_syntax_ident(x_108); -lean_inc_ref(x_116); -lean_inc(x_110); -x_142 = l_Lean_Syntax_node2(x_110, x_140, x_141, x_116); -x_143 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__25; -x_144 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__1; -x_145 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__34; -lean_inc(x_110); -x_146 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_146, 0, x_110); -lean_ctor_set(x_146, 1, x_145); -x_147 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__3; -x_148 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__4; -lean_inc(x_104); -lean_inc(x_111); -x_149 = l_Lean_addMacroScope(x_111, x_148, x_104); -lean_inc(x_110); -x_150 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_150, 0, x_110); -lean_ctor_set(x_150, 1, x_147); -lean_ctor_set(x_150, 2, x_149); -lean_ctor_set(x_150, 3, x_127); -x_151 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__6; -x_152 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__7; -lean_inc(x_104); -lean_inc(x_111); -x_153 = l_Lean_addMacroScope(x_111, x_152, x_104); -lean_inc(x_110); -x_154 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_154, 0, x_110); -lean_ctor_set(x_154, 1, x_151); -lean_ctor_set(x_154, 2, x_153); -lean_ctor_set(x_154, 3, x_127); -lean_inc(x_110); -x_155 = l_Lean_Syntax_node2(x_110, x_114, x_150, x_154); -x_156 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__18; -lean_inc(x_110); -x_157 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_157, 0, x_110); -lean_ctor_set(x_157, 1, x_156); -x_158 = lean_mk_syntax_ident(x_2); -lean_inc_ref(x_157); -lean_inc(x_110); -x_159 = l_Lean_Syntax_node2(x_110, x_114, x_157, x_158); -x_160 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__44; -lean_inc(x_110); -x_161 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_161, 0, x_110); -lean_ctor_set(x_161, 1, x_160); -lean_inc_ref(x_116); -lean_inc(x_110); -x_162 = l_Lean_Syntax_node5(x_110, x_144, x_146, x_155, x_159, x_116, x_161); -lean_inc(x_110); -x_163 = l_Lean_Syntax_node1(x_110, x_114, x_162); -x_164 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__27; -x_165 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__28; -x_166 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__29; -lean_inc(x_104); -lean_inc(x_111); -x_167 = l_Lean_addMacroScope(x_111, x_166, x_104); -x_168 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__33; -lean_inc(x_110); -x_169 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_169, 0, x_110); -lean_ctor_set(x_169, 1, x_165); -lean_ctor_set(x_169, 2, x_167); -lean_ctor_set(x_169, 3, x_168); -lean_inc(x_110); -x_170 = l_Lean_Syntax_node2(x_110, x_164, x_157, x_169); -lean_inc(x_110); -x_171 = l_Lean_Syntax_node1(x_110, x_114, x_170); -lean_inc(x_110); -x_172 = l_Lean_Syntax_node2(x_110, x_143, x_163, x_171); -x_173 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__35; -x_174 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__36; -lean_inc(x_110); -x_175 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_175, 0, x_110); -lean_ctor_set(x_175, 1, x_174); -x_176 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__7; -x_177 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__9; -x_178 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__11; -lean_inc(x_104); -lean_inc(x_111); -x_179 = l_Lean_addMacroScope(x_111, x_178, x_104); -lean_inc(x_110); -x_180 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_180, 0, x_110); -lean_ctor_set(x_180, 1, x_177); -lean_ctor_set(x_180, 2, x_179); -lean_ctor_set(x_180, 3, x_127); -x_181 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__8; -lean_inc(x_110); -x_182 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_182, 0, x_110); -lean_ctor_set(x_182, 1, x_181); -x_183 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__13; -x_184 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__14; -x_185 = l_Lean_addMacroScope(x_111, x_184, x_104); -lean_inc(x_110); -x_186 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_186, 0, x_110); -lean_ctor_set(x_186, 1, x_183); -lean_ctor_set(x_186, 2, x_185); -lean_ctor_set(x_186, 3, x_127); -lean_inc(x_110); -x_187 = l_Lean_Syntax_node3(x_110, x_176, x_180, x_182, x_186); -x_188 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39; -lean_inc_ref_n(x_116, 2); -lean_inc(x_110); -x_189 = l_Lean_Syntax_node2(x_110, x_188, x_116, x_116); -lean_inc_ref(x_116); -lean_inc(x_110); -x_190 = l_Lean_Syntax_node4(x_110, x_173, x_175, x_187, x_189, x_116); -lean_inc(x_110); -x_191 = l_Lean_Syntax_node5(x_110, x_137, x_139, x_142, x_172, x_190, x_116); -x_192 = l_Lean_Syntax_node2(x_110, x_112, x_136, x_191); -x_193 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_193, 0, x_192); -lean_ctor_set(x_193, 1, x_101); -return x_193; +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +lean_dec(x_17); +x_108 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__37; +x_109 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39; +lean_inc(x_19); +x_110 = l_Lean_Syntax_node1(x_19, x_108, x_109); +x_111 = l_Array_mkArray1___redArg(x_110); +x_45 = x_111; +goto block_106; +} +block_106: +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_46 = l_Array_append___redArg(x_24, x_45); +lean_dec_ref(x_45); +lean_inc(x_19); +x_47 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_47, 0, x_19); +lean_ctor_set(x_47, 1, x_23); +lean_ctor_set(x_47, 2, x_46); +lean_inc_ref_n(x_25, 4); +lean_inc(x_19); +x_48 = l_Lean_Syntax_node6(x_19, x_22, x_25, x_44, x_47, x_25, x_25, x_25); +x_49 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__0; +x_50 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__1; +lean_inc(x_19); +x_51 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_51, 0, x_19); +lean_ctor_set(x_51, 1, x_50); +x_52 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__1; +x_53 = lean_mk_syntax_ident(x_16); +lean_inc_ref(x_25); +lean_inc(x_19); +x_54 = l_Lean_Syntax_node2(x_19, x_52, x_53, x_25); +x_55 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__2; +x_56 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__4; +x_57 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__34; +lean_inc(x_19); +x_58 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_58, 0, x_19); +lean_ctor_set(x_58, 1, x_57); +x_59 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__6; +x_60 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__7; +lean_inc(x_12); +lean_inc(x_20); +x_61 = l_Lean_addMacroScope(x_20, x_60, x_12); +lean_inc(x_19); +x_62 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_62, 0, x_19); +lean_ctor_set(x_62, 1, x_59); +lean_ctor_set(x_62, 2, x_61); +lean_ctor_set(x_62, 3, x_36); +x_63 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__9; +x_64 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__10; +lean_inc(x_12); +lean_inc(x_20); +x_65 = l_Lean_addMacroScope(x_20, x_64, x_12); +lean_inc(x_19); +x_66 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_66, 0, x_19); +lean_ctor_set(x_66, 1, x_63); +lean_ctor_set(x_66, 2, x_65); +lean_ctor_set(x_66, 3, x_36); +lean_inc(x_19); +x_67 = l_Lean_Syntax_node2(x_19, x_23, x_62, x_66); +x_68 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__18; +lean_inc(x_19); +x_69 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_69, 0, x_19); +lean_ctor_set(x_69, 1, x_68); +x_70 = lean_mk_syntax_ident(x_2); +lean_inc_ref(x_69); +lean_inc(x_19); +x_71 = l_Lean_Syntax_node2(x_19, x_23, x_69, x_70); +x_72 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__44; +lean_inc(x_19); +x_73 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_73, 0, x_19); +lean_ctor_set(x_73, 1, x_72); +lean_inc_ref(x_25); +lean_inc(x_19); +x_74 = l_Lean_Syntax_node5(x_19, x_56, x_58, x_67, x_71, x_25, x_73); +lean_inc(x_19); +x_75 = l_Lean_Syntax_node1(x_19, x_23, x_74); +x_76 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__11; +x_77 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__5; +x_78 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__6; +lean_inc(x_12); +lean_inc(x_20); +x_79 = l_Lean_addMacroScope(x_20, x_78, x_12); +x_80 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__15; +lean_inc(x_19); +x_81 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_81, 0, x_19); +lean_ctor_set(x_81, 1, x_77); +lean_ctor_set(x_81, 2, x_79); +lean_ctor_set(x_81, 3, x_80); +lean_inc(x_19); +x_82 = l_Lean_Syntax_node2(x_19, x_76, x_69, x_81); +lean_inc(x_19); +x_83 = l_Lean_Syntax_node1(x_19, x_23, x_82); +lean_inc(x_19); +x_84 = l_Lean_Syntax_node2(x_19, x_55, x_75, x_83); +x_85 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__12; +x_86 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__10; +lean_inc(x_19); +x_87 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_87, 0, x_19); +lean_ctor_set(x_87, 1, x_86); +x_88 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__7; +x_89 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__14; +x_90 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__16; +lean_inc(x_12); +lean_inc(x_20); +x_91 = l_Lean_addMacroScope(x_20, x_90, x_12); +lean_inc(x_19); +x_92 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_92, 0, x_19); +lean_ctor_set(x_92, 1, x_89); +lean_ctor_set(x_92, 2, x_91); +lean_ctor_set(x_92, 3, x_36); +x_93 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkAlts_spec__3_spec__3___redArg___closed__8; +lean_inc(x_19); +x_94 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_94, 0, x_19); +lean_ctor_set(x_94, 1, x_93); +x_95 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__18; +x_96 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__19; +x_97 = l_Lean_addMacroScope(x_20, x_96, x_12); +lean_inc(x_19); +x_98 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_98, 0, x_19); +lean_ctor_set(x_98, 1, x_95); +lean_ctor_set(x_98, 2, x_97); +lean_ctor_set(x_98, 3, x_36); +lean_inc(x_19); +x_99 = l_Lean_Syntax_node3(x_19, x_88, x_92, x_94, x_98); +x_100 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__20; +lean_inc_ref_n(x_25, 2); +lean_inc(x_19); +x_101 = l_Lean_Syntax_node2(x_19, x_100, x_25, x_25); +lean_inc_ref(x_25); +lean_inc(x_19); +x_102 = l_Lean_Syntax_node4(x_19, x_85, x_87, x_99, x_101, x_25); +lean_inc(x_19); +x_103 = l_Lean_Syntax_node5(x_19, x_49, x_51, x_54, x_84, x_102, x_25); +x_104 = l_Lean_Syntax_node2(x_19, x_21, x_48, x_103); +if (lean_is_scalar(x_9)) { + x_105 = lean_alloc_ctor(0, 2, 0); +} else { + x_105 = x_9; +} +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_8); +return x_105; } } } @@ -13925,7 +13852,7 @@ lean_dec_ref(x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__0____x40_Lean_Elab_Deriving_BEq___hyg_3946_() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__0____x40_Lean_Elab_Deriving_BEq___hyg_4037_() { _start: { lean_object* x_1; @@ -13933,7 +13860,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler__ return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__1____x40_Lean_Elab_Deriving_BEq___hyg_3946_() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__1____x40_Lean_Elab_Deriving_BEq___hyg_4037_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -13943,37 +13870,37 @@ x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__2____x40_Lean_Elab_Deriving_BEq___hyg_3946_() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__2____x40_Lean_Elab_Deriving_BEq___hyg_4037_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__2; -x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__1____x40_Lean_Elab_Deriving_BEq___hyg_3946_; +x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__1____x40_Lean_Elab_Deriving_BEq___hyg_4037_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__3____x40_Lean_Elab_Deriving_BEq___hyg_3946_() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__3____x40_Lean_Elab_Deriving_BEq___hyg_4037_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__3; -x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__2____x40_Lean_Elab_Deriving_BEq___hyg_3946_; +x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__2____x40_Lean_Elab_Deriving_BEq___hyg_4037_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__4____x40_Lean_Elab_Deriving_BEq___hyg_3946_() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__4____x40_Lean_Elab_Deriving_BEq___hyg_4037_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Deriving_BEq_mkBEqHeader___closed__0; -x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__3____x40_Lean_Elab_Deriving_BEq___hyg_3946_; +x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__3____x40_Lean_Elab_Deriving_BEq___hyg_4037_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__5____x40_Lean_Elab_Deriving_BEq___hyg_3946_() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__5____x40_Lean_Elab_Deriving_BEq___hyg_4037_() { _start: { lean_object* x_1; @@ -13981,17 +13908,17 @@ x_1 = lean_mk_string_unchecked("initFn", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__6____x40_Lean_Elab_Deriving_BEq___hyg_3946_() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__6____x40_Lean_Elab_Deriving_BEq___hyg_4037_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_BEq_initFn___closed__5____x40_Lean_Elab_Deriving_BEq___hyg_3946_; -x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__4____x40_Lean_Elab_Deriving_BEq___hyg_3946_; +x_1 = l_Lean_Elab_Deriving_BEq_initFn___closed__5____x40_Lean_Elab_Deriving_BEq___hyg_4037_; +x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__4____x40_Lean_Elab_Deriving_BEq___hyg_4037_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__7____x40_Lean_Elab_Deriving_BEq___hyg_3946_() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__7____x40_Lean_Elab_Deriving_BEq___hyg_4037_() { _start: { lean_object* x_1; @@ -13999,57 +13926,57 @@ x_1 = lean_mk_string_unchecked("_@", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__8____x40_Lean_Elab_Deriving_BEq___hyg_3946_() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__8____x40_Lean_Elab_Deriving_BEq___hyg_4037_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_BEq_initFn___closed__7____x40_Lean_Elab_Deriving_BEq___hyg_3946_; -x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__6____x40_Lean_Elab_Deriving_BEq___hyg_3946_; +x_1 = l_Lean_Elab_Deriving_BEq_initFn___closed__7____x40_Lean_Elab_Deriving_BEq___hyg_4037_; +x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__6____x40_Lean_Elab_Deriving_BEq___hyg_4037_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__9____x40_Lean_Elab_Deriving_BEq___hyg_3946_() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__9____x40_Lean_Elab_Deriving_BEq___hyg_4037_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt_spec__0___redArg___closed__0; -x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__8____x40_Lean_Elab_Deriving_BEq___hyg_3946_; +x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__8____x40_Lean_Elab_Deriving_BEq___hyg_4037_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__10____x40_Lean_Elab_Deriving_BEq___hyg_3946_() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__10____x40_Lean_Elab_Deriving_BEq___hyg_4037_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__2; -x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__9____x40_Lean_Elab_Deriving_BEq___hyg_3946_; +x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__9____x40_Lean_Elab_Deriving_BEq___hyg_4037_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__11____x40_Lean_Elab_Deriving_BEq___hyg_3946_() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__11____x40_Lean_Elab_Deriving_BEq___hyg_4037_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__3; -x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__10____x40_Lean_Elab_Deriving_BEq___hyg_3946_; +x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__10____x40_Lean_Elab_Deriving_BEq___hyg_4037_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__12____x40_Lean_Elab_Deriving_BEq___hyg_3946_() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__12____x40_Lean_Elab_Deriving_BEq___hyg_4037_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Deriving_BEq_mkBEqHeader___closed__0; -x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__11____x40_Lean_Elab_Deriving_BEq___hyg_3946_; +x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__11____x40_Lean_Elab_Deriving_BEq___hyg_4037_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__13____x40_Lean_Elab_Deriving_BEq___hyg_3946_() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__13____x40_Lean_Elab_Deriving_BEq___hyg_4037_() { _start: { lean_object* x_1; @@ -14057,32 +13984,32 @@ x_1 = lean_mk_string_unchecked("_hyg", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__14____x40_Lean_Elab_Deriving_BEq___hyg_3946_() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__14____x40_Lean_Elab_Deriving_BEq___hyg_4037_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_BEq_initFn___closed__13____x40_Lean_Elab_Deriving_BEq___hyg_3946_; -x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__12____x40_Lean_Elab_Deriving_BEq___hyg_3946_; +x_1 = l_Lean_Elab_Deriving_BEq_initFn___closed__13____x40_Lean_Elab_Deriving_BEq___hyg_4037_; +x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__12____x40_Lean_Elab_Deriving_BEq___hyg_4037_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__15____x40_Lean_Elab_Deriving_BEq___hyg_3946_() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn___closed__15____x40_Lean_Elab_Deriving_BEq___hyg_4037_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(3946u); -x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__14____x40_Lean_Elab_Deriving_BEq___hyg_3946_; +x_1 = lean_unsigned_to_nat(4037u); +x_2 = l_Lean_Elab_Deriving_BEq_initFn___closed__14____x40_Lean_Elab_Deriving_BEq___hyg_4037_; x_3 = l_Lean_Name_num___override(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_3946_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_4037_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l_Lean_Elab_Deriving_BEq_mkBEqHeader___closed__1; -x_3 = l_Lean_Elab_Deriving_BEq_initFn___closed__0____x40_Lean_Elab_Deriving_BEq___hyg_3946_; +x_3 = l_Lean_Elab_Deriving_BEq_initFn___closed__0____x40_Lean_Elab_Deriving_BEq___hyg_4037_; x_4 = l_Lean_Elab_registerDerivingHandler(x_2, x_3, x_1); if (lean_obj_tag(x_4) == 0) { @@ -14092,7 +14019,7 @@ lean_inc(x_5); lean_dec_ref(x_4); x_6 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__4; x_7 = 0; -x_8 = l_Lean_Elab_Deriving_BEq_initFn___closed__15____x40_Lean_Elab_Deriving_BEq___hyg_3946_; +x_8 = l_Lean_Elab_Deriving_BEq_initFn___closed__15____x40_Lean_Elab_Deriving_BEq___hyg_4037_; x_9 = l_Lean_registerTraceClass(x_6, x_7, x_8, x_5); return x_9; } @@ -14383,10 +14310,6 @@ l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__38 = _init_l_Lean_Elab_Deriving lean_mark_persistent(l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__38); l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39 = _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39(); lean_mark_persistent(l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__39); -l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__40 = _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__40(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__40); -l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__41 = _init_l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__41(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_mkAuxFunction___closed__41); l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__0 = _init_l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__0(); lean_mark_persistent(l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__0); l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__1 = _init_l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__1(); @@ -14459,43 +14382,55 @@ l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redA lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__13); l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__14 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__14(); lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__14); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__15 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__15(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__15); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__16 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__16(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__16); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__17 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__17(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__17); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__18 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__18(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__18); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__19 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__19(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__19); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__20 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__20(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___redArg___closed__20); l_Lean_getConstInfo___at___Lean_isEnumType___at___Lean_Elab_Deriving_BEq_mkBEqInstance_spec__0_spec__0___closed__0 = _init_l_Lean_getConstInfo___at___Lean_isEnumType___at___Lean_Elab_Deriving_BEq_mkBEqInstance_spec__0_spec__0___closed__0(); lean_mark_persistent(l_Lean_getConstInfo___at___Lean_isEnumType___at___Lean_Elab_Deriving_BEq_mkBEqInstance_spec__0_spec__0___closed__0); l_Lean_getConstInfo___at___Lean_isEnumType___at___Lean_Elab_Deriving_BEq_mkBEqInstance_spec__0_spec__0___closed__1 = _init_l_Lean_getConstInfo___at___Lean_isEnumType___at___Lean_Elab_Deriving_BEq_mkBEqInstance_spec__0_spec__0___closed__1(); lean_mark_persistent(l_Lean_getConstInfo___at___Lean_isEnumType___at___Lean_Elab_Deriving_BEq_mkBEqInstance_spec__0_spec__0___closed__1); -l_Lean_Elab_Deriving_BEq_initFn___closed__0____x40_Lean_Elab_Deriving_BEq___hyg_3946_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__0____x40_Lean_Elab_Deriving_BEq___hyg_3946_(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__0____x40_Lean_Elab_Deriving_BEq___hyg_3946_); -l_Lean_Elab_Deriving_BEq_initFn___closed__1____x40_Lean_Elab_Deriving_BEq___hyg_3946_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__1____x40_Lean_Elab_Deriving_BEq___hyg_3946_(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__1____x40_Lean_Elab_Deriving_BEq___hyg_3946_); -l_Lean_Elab_Deriving_BEq_initFn___closed__2____x40_Lean_Elab_Deriving_BEq___hyg_3946_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__2____x40_Lean_Elab_Deriving_BEq___hyg_3946_(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__2____x40_Lean_Elab_Deriving_BEq___hyg_3946_); -l_Lean_Elab_Deriving_BEq_initFn___closed__3____x40_Lean_Elab_Deriving_BEq___hyg_3946_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__3____x40_Lean_Elab_Deriving_BEq___hyg_3946_(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__3____x40_Lean_Elab_Deriving_BEq___hyg_3946_); -l_Lean_Elab_Deriving_BEq_initFn___closed__4____x40_Lean_Elab_Deriving_BEq___hyg_3946_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__4____x40_Lean_Elab_Deriving_BEq___hyg_3946_(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__4____x40_Lean_Elab_Deriving_BEq___hyg_3946_); -l_Lean_Elab_Deriving_BEq_initFn___closed__5____x40_Lean_Elab_Deriving_BEq___hyg_3946_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__5____x40_Lean_Elab_Deriving_BEq___hyg_3946_(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__5____x40_Lean_Elab_Deriving_BEq___hyg_3946_); -l_Lean_Elab_Deriving_BEq_initFn___closed__6____x40_Lean_Elab_Deriving_BEq___hyg_3946_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__6____x40_Lean_Elab_Deriving_BEq___hyg_3946_(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__6____x40_Lean_Elab_Deriving_BEq___hyg_3946_); -l_Lean_Elab_Deriving_BEq_initFn___closed__7____x40_Lean_Elab_Deriving_BEq___hyg_3946_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__7____x40_Lean_Elab_Deriving_BEq___hyg_3946_(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__7____x40_Lean_Elab_Deriving_BEq___hyg_3946_); -l_Lean_Elab_Deriving_BEq_initFn___closed__8____x40_Lean_Elab_Deriving_BEq___hyg_3946_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__8____x40_Lean_Elab_Deriving_BEq___hyg_3946_(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__8____x40_Lean_Elab_Deriving_BEq___hyg_3946_); -l_Lean_Elab_Deriving_BEq_initFn___closed__9____x40_Lean_Elab_Deriving_BEq___hyg_3946_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__9____x40_Lean_Elab_Deriving_BEq___hyg_3946_(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__9____x40_Lean_Elab_Deriving_BEq___hyg_3946_); -l_Lean_Elab_Deriving_BEq_initFn___closed__10____x40_Lean_Elab_Deriving_BEq___hyg_3946_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__10____x40_Lean_Elab_Deriving_BEq___hyg_3946_(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__10____x40_Lean_Elab_Deriving_BEq___hyg_3946_); -l_Lean_Elab_Deriving_BEq_initFn___closed__11____x40_Lean_Elab_Deriving_BEq___hyg_3946_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__11____x40_Lean_Elab_Deriving_BEq___hyg_3946_(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__11____x40_Lean_Elab_Deriving_BEq___hyg_3946_); -l_Lean_Elab_Deriving_BEq_initFn___closed__12____x40_Lean_Elab_Deriving_BEq___hyg_3946_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__12____x40_Lean_Elab_Deriving_BEq___hyg_3946_(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__12____x40_Lean_Elab_Deriving_BEq___hyg_3946_); -l_Lean_Elab_Deriving_BEq_initFn___closed__13____x40_Lean_Elab_Deriving_BEq___hyg_3946_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__13____x40_Lean_Elab_Deriving_BEq___hyg_3946_(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__13____x40_Lean_Elab_Deriving_BEq___hyg_3946_); -l_Lean_Elab_Deriving_BEq_initFn___closed__14____x40_Lean_Elab_Deriving_BEq___hyg_3946_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__14____x40_Lean_Elab_Deriving_BEq___hyg_3946_(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__14____x40_Lean_Elab_Deriving_BEq___hyg_3946_); -l_Lean_Elab_Deriving_BEq_initFn___closed__15____x40_Lean_Elab_Deriving_BEq___hyg_3946_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__15____x40_Lean_Elab_Deriving_BEq___hyg_3946_(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__15____x40_Lean_Elab_Deriving_BEq___hyg_3946_); -if (builtin) {res = l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_3946_(lean_io_mk_world()); +l_Lean_Elab_Deriving_BEq_initFn___closed__0____x40_Lean_Elab_Deriving_BEq___hyg_4037_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__0____x40_Lean_Elab_Deriving_BEq___hyg_4037_(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__0____x40_Lean_Elab_Deriving_BEq___hyg_4037_); +l_Lean_Elab_Deriving_BEq_initFn___closed__1____x40_Lean_Elab_Deriving_BEq___hyg_4037_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__1____x40_Lean_Elab_Deriving_BEq___hyg_4037_(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__1____x40_Lean_Elab_Deriving_BEq___hyg_4037_); +l_Lean_Elab_Deriving_BEq_initFn___closed__2____x40_Lean_Elab_Deriving_BEq___hyg_4037_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__2____x40_Lean_Elab_Deriving_BEq___hyg_4037_(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__2____x40_Lean_Elab_Deriving_BEq___hyg_4037_); +l_Lean_Elab_Deriving_BEq_initFn___closed__3____x40_Lean_Elab_Deriving_BEq___hyg_4037_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__3____x40_Lean_Elab_Deriving_BEq___hyg_4037_(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__3____x40_Lean_Elab_Deriving_BEq___hyg_4037_); +l_Lean_Elab_Deriving_BEq_initFn___closed__4____x40_Lean_Elab_Deriving_BEq___hyg_4037_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__4____x40_Lean_Elab_Deriving_BEq___hyg_4037_(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__4____x40_Lean_Elab_Deriving_BEq___hyg_4037_); +l_Lean_Elab_Deriving_BEq_initFn___closed__5____x40_Lean_Elab_Deriving_BEq___hyg_4037_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__5____x40_Lean_Elab_Deriving_BEq___hyg_4037_(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__5____x40_Lean_Elab_Deriving_BEq___hyg_4037_); +l_Lean_Elab_Deriving_BEq_initFn___closed__6____x40_Lean_Elab_Deriving_BEq___hyg_4037_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__6____x40_Lean_Elab_Deriving_BEq___hyg_4037_(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__6____x40_Lean_Elab_Deriving_BEq___hyg_4037_); +l_Lean_Elab_Deriving_BEq_initFn___closed__7____x40_Lean_Elab_Deriving_BEq___hyg_4037_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__7____x40_Lean_Elab_Deriving_BEq___hyg_4037_(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__7____x40_Lean_Elab_Deriving_BEq___hyg_4037_); +l_Lean_Elab_Deriving_BEq_initFn___closed__8____x40_Lean_Elab_Deriving_BEq___hyg_4037_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__8____x40_Lean_Elab_Deriving_BEq___hyg_4037_(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__8____x40_Lean_Elab_Deriving_BEq___hyg_4037_); +l_Lean_Elab_Deriving_BEq_initFn___closed__9____x40_Lean_Elab_Deriving_BEq___hyg_4037_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__9____x40_Lean_Elab_Deriving_BEq___hyg_4037_(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__9____x40_Lean_Elab_Deriving_BEq___hyg_4037_); +l_Lean_Elab_Deriving_BEq_initFn___closed__10____x40_Lean_Elab_Deriving_BEq___hyg_4037_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__10____x40_Lean_Elab_Deriving_BEq___hyg_4037_(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__10____x40_Lean_Elab_Deriving_BEq___hyg_4037_); +l_Lean_Elab_Deriving_BEq_initFn___closed__11____x40_Lean_Elab_Deriving_BEq___hyg_4037_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__11____x40_Lean_Elab_Deriving_BEq___hyg_4037_(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__11____x40_Lean_Elab_Deriving_BEq___hyg_4037_); +l_Lean_Elab_Deriving_BEq_initFn___closed__12____x40_Lean_Elab_Deriving_BEq___hyg_4037_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__12____x40_Lean_Elab_Deriving_BEq___hyg_4037_(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__12____x40_Lean_Elab_Deriving_BEq___hyg_4037_); +l_Lean_Elab_Deriving_BEq_initFn___closed__13____x40_Lean_Elab_Deriving_BEq___hyg_4037_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__13____x40_Lean_Elab_Deriving_BEq___hyg_4037_(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__13____x40_Lean_Elab_Deriving_BEq___hyg_4037_); +l_Lean_Elab_Deriving_BEq_initFn___closed__14____x40_Lean_Elab_Deriving_BEq___hyg_4037_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__14____x40_Lean_Elab_Deriving_BEq___hyg_4037_(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__14____x40_Lean_Elab_Deriving_BEq___hyg_4037_); +l_Lean_Elab_Deriving_BEq_initFn___closed__15____x40_Lean_Elab_Deriving_BEq___hyg_4037_ = _init_l_Lean_Elab_Deriving_BEq_initFn___closed__15____x40_Lean_Elab_Deriving_BEq___hyg_4037_(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn___closed__15____x40_Lean_Elab_Deriving_BEq___hyg_4037_); +if (builtin) {res = l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_4037_(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)); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Basic.c b/stage0/stdlib/Lean/Elab/Deriving/Basic.c index 77d9ff961e..1e7beb7a83 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Basic.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Basic.c @@ -27,12 +27,13 @@ extern lean_object* l_Lean_declRangeExt; static lean_object* l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_Term_mkInst_x3f___closed__0; LEAN_EXPORT lean_object* l_Lean_Elab_getDeclarationRange_x3f___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_name_append_after(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1900_; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_tryApplyDefHandler___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_processDefDeriving___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_658_(lean_object*); uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___redArg___closed__4; +static lean_object* l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1910_; +static lean_object* l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1910_; static lean_object* l_Lean_Elab_defaultHandler___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_derivingHandlersRef; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_tryApplyDefHandler(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -45,18 +46,22 @@ static lean_object* l_Lean_Elab_elabDeriving___regBuiltin_Lean_Elab_elabDeriving lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabDeriving___regBuiltin_Lean_Elab_elabDeriving_declRange__3___closed__3; +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_usize_dec_eq(size_t, size_t); static lean_object* l_Lean_Elab_defaultHandler___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_getDeclarationRange_x3f___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1910_; static lean_object* l_Lean_Elab_Term_processDefDeriving___closed__0; static lean_object* l_Lean_getConstInfo___at___Lean_Elab_Term_processDefDeriving_spec__0___closed__2; lean_object* l_Lean_Environment_find_x3f(lean_object*, lean_object*, uint8_t); static lean_object* l_Lean_getConstInfo___at___Lean_Elab_Term_processDefDeriving_spec__0___closed__3; -static lean_object* l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1900_; lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_defaultHandler___closed__0; +static lean_object* l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1910_; lean_object* l_Lean_DeclarationRange_ofStringPositions(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1910_; lean_object* l_Lean_Elab_Command_liftCoreM___redArg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_applyDerivingHandlers(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -64,13 +69,13 @@ lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* lean_name_append_before(lean_object*, lean_object*); lean_object* l_List_mapTR_loop___at___Lean_Meta_substCore_spec__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1900_; +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1910_(lean_object*); +static lean_object* l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1910_; +static lean_object* l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1910_; lean_object* l_Lean_initializing(lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1900_; lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_getConstInfo___at___Lean_Elab_Term_processDefDeriving_spec__0___closed__0; size_t lean_usize_of_nat(lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1900_; static lean_object* l_Lean_Elab_applyDerivingHandlers___lam__0___closed__0; LEAN_EXPORT lean_object* l_Lean_Elab_elabDeriving(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_elabDeriving_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); @@ -87,15 +92,14 @@ static lean_object* l_Lean_Elab_elabDeriving___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Elab_elabDeriving_spec__2_spec__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* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_getDeclarationRange_x3f___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1900_; -static lean_object* l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1900_; static lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___redArg___closed__2; static lean_object* l_Lean_Elab_elabDeriving___closed__3; -static lean_object* l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1900_; lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_elabDeriving_spec__0(size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_applyDerivingHandlers___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_defaultHandler___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1910_; static lean_object* l_Lean_Elab_elabDeriving___regBuiltin_Lean_Elab_elabDeriving_declRange__3___closed__4; lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); @@ -106,27 +110,28 @@ uint8_t lean_is_out_param(lean_object*); lean_object* l_Lean_Meta_synthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_elabDeriving_spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1910_; LEAN_EXPORT lean_object* l_Lean_Elab_DerivingClassView_applyHandlers(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1910_; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_registerDerivingHandler___closed__2; lean_object* l_Lean_Elab_realizeGlobalConstNoOverloadWithInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_withTraceNode___at___Lean_Elab_Command_runLinters_spec__6___redArg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1910_; static lean_object* l_Lean_Elab_elabDeriving___regBuiltin_Lean_Elab_elabDeriving_declRange__3___closed__0; -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1900_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_getDeclarationRange_x3f___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_RBNode_find___at___Lean_NameMap_contains_spec__0___redArg(lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appFn_x21(lean_object*); static lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___redArg___closed__5; -static lean_object* l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1900_; +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Elab_elabDeriving_spec__2_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_getOptDerivingClasses___closed__1; -static lean_object* l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1900_; lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getRef___redArg(lean_object*, lean_object*); @@ -136,10 +141,10 @@ LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___Lean_Elab_Term_processDefDer LEAN_EXPORT lean_object* l_Lean_Elab_elabDeriving___regBuiltin_Lean_Elab_elabDeriving_declRange__3(lean_object*); static lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___redArg___closed__7; lean_object* l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1900_; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_Term_mkInst_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabDeriving___closed__0; lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_getOptDerivingClasses(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_____aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1_spec__2(uint8_t, lean_object*, size_t, size_t, lean_object*); @@ -153,14 +158,15 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___redArg___closed__3; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_applyDerivingHandlers_spec__0(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_mkStr2(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1910_; static lean_object* l_Lean_Elab_registerDerivingHandler___closed__0; static lean_object* l_Lean_Elab_elabDeriving___regBuiltin_Lean_Elab_elabDeriving_declRange__3___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_elabDeriving_spec__0___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEqGuarded(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MapDeclarationExtension_insert___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_applyDerivingHandlers_spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabDeriving___closed__5; static lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___redArg___closed__6; -static lean_object* l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1900_; static lean_object* l_Lean_Elab_defaultHandler___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_applyDerivingHandlers___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabDeriving___regBuiltin_Lean_Elab_elabDeriving_declRange__3___closed__6; @@ -168,8 +174,10 @@ static lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationR LEAN_EXPORT lean_object* l_Lean_Elab_applyDerivingHandlers___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapTR_loop___at___Lean_mkConstWithLevelParams___at___Lean_Meta_mkSimpCongrTheorem_spec__1_spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Elab_applyDerivingHandlers___lam__0___closed__1; +static lean_object* l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1910_; lean_object* l_Lean_Meta_addInstance(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getRange_x3f(lean_object*, uint8_t); +uint8_t l_Lean_isPrivateName(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1(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_getString_x21(lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); @@ -177,6 +185,8 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_Term_ lean_object* l_Lean_Elab_liftMacroM___at_____private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_____private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_withTraceNode___at___Lean_Elab_Command_runLinters_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_applyDerivingHandlers_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); @@ -188,17 +198,19 @@ lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_o lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); lean_object* l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabDeriving___closed__4; +static lean_object* l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1910_; lean_object* lean_array_get_size(lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1900_; lean_object* l_Lean_Elab_logException___at___Lean_Elab_Command_runLinters_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Elab_applyDerivingHandlers_spec__2(lean_object*, size_t, size_t); lean_object* l_Lean_addAndCompile(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabDeriving___regBuiltin_Lean_Elab_elabDeriving__1___closed__2; uint8_t l_Lean_Exception_isRuntime(lean_object*); static lean_object* l_Lean_Elab_applyDerivingHandlers___closed__0; +lean_object* l_Lean_Environment_setExporting(lean_object*, uint8_t); uint8_t l_Lean_Expr_isForall(lean_object*); lean_object* l_Lean_Meta_mkConstWithFreshMVarLevels(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_applyDerivingHandlers___lam__1___closed__0; @@ -207,7 +219,6 @@ lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_MessageData_ofName(lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__1___redArg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1900_; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_Term_mkInst_x3f_go_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -3878,6 +3889,369 @@ x_11 = l_List_forIn_x27_loop___at___Lean_Elab_applyDerivingHandlers_spec__0___re return x_11; } } +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_5 = lean_st_ref_take(x_1, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec_ref(x_5); +x_8 = !lean_is_exclusive(x_6); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_ctor_get(x_6, 0); +x_10 = l_Lean_Environment_setExporting(x_9, x_2); +lean_ctor_set(x_6, 0, x_10); +x_11 = lean_st_ref_set(x_1, x_6, x_7); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_11, 0); +lean_dec(x_13); +x_14 = lean_box(0); +lean_ctor_set(x_11, 0, x_14); +return x_11; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_11, 1); +lean_inc(x_15); +lean_dec(x_11); +x_16 = lean_box(0); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 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; +x_18 = lean_ctor_get(x_6, 0); +x_19 = lean_ctor_get(x_6, 1); +x_20 = lean_ctor_get(x_6, 2); +x_21 = lean_ctor_get(x_6, 3); +x_22 = lean_ctor_get(x_6, 4); +x_23 = lean_ctor_get(x_6, 5); +x_24 = lean_ctor_get(x_6, 6); +x_25 = lean_ctor_get(x_6, 7); +x_26 = lean_ctor_get(x_6, 8); +x_27 = lean_ctor_get(x_6, 9); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_6); +x_28 = l_Lean_Environment_setExporting(x_18, x_2); +x_29 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_19); +lean_ctor_set(x_29, 2, x_20); +lean_ctor_set(x_29, 3, x_21); +lean_ctor_set(x_29, 4, x_22); +lean_ctor_set(x_29, 5, x_23); +lean_ctor_set(x_29, 6, x_24); +lean_ctor_set(x_29, 7, x_25); +lean_ctor_set(x_29, 8, x_26); +lean_ctor_set(x_29, 9, x_27); +x_30 = lean_st_ref_set(x_1, x_29, x_7); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_32 = x_30; +} else { + lean_dec_ref(x_30); + x_32 = lean_box(0); +} +x_33 = lean_box(0); +if (lean_is_scalar(x_32)) { + x_34 = lean_alloc_ctor(0, 2, 0); +} else { + x_34 = x_32; +} +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_31); +return x_34; +} +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (x_2 == 0) +{ +lean_object* x_6; +x_6 = lean_apply_3(x_1, x_3, x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_7 = lean_st_ref_get(x_4, x_5); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_8, 0); +lean_inc_ref(x_9); +lean_dec(x_8); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); +lean_dec_ref(x_7); +x_11 = lean_ctor_get_uint8(x_9, sizeof(void*)*8); +lean_dec_ref(x_9); +x_12 = lean_st_ref_take(x_4, x_10); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec_ref(x_12); +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_16 = lean_ctor_get(x_13, 0); +x_17 = 0; +x_18 = l_Lean_Environment_setExporting(x_16, x_17); +lean_ctor_set(x_13, 0, x_18); +x_19 = lean_st_ref_set(x_4, x_13, x_14); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec_ref(x_19); +lean_inc(x_4); +x_21 = lean_apply_3(x_1, x_3, x_4, x_20); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec_ref(x_21); +lean_inc(x_22); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_22); +x_25 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0(x_4, x_11, x_24, x_23); +lean_dec_ref(x_24); +lean_dec(x_4); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +lean_ctor_set(x_25, 0, x_22); +return x_25; +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_22); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_30 = lean_ctor_get(x_21, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_21, 1); +lean_inc(x_31); +lean_dec_ref(x_21); +x_32 = lean_box(0); +x_33 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0(x_4, x_11, x_32, x_31); +lean_dec(x_4); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; +x_35 = lean_ctor_get(x_33, 0); +lean_dec(x_35); +lean_ctor_set_tag(x_33, 1); +lean_ctor_set(x_33, 0, x_30); +return x_33; +} +else +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_30); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +else +{ +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; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_38 = lean_ctor_get(x_13, 0); +x_39 = lean_ctor_get(x_13, 1); +x_40 = lean_ctor_get(x_13, 2); +x_41 = lean_ctor_get(x_13, 3); +x_42 = lean_ctor_get(x_13, 4); +x_43 = lean_ctor_get(x_13, 5); +x_44 = lean_ctor_get(x_13, 6); +x_45 = lean_ctor_get(x_13, 7); +x_46 = lean_ctor_get(x_13, 8); +x_47 = lean_ctor_get(x_13, 9); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_13); +x_48 = 0; +x_49 = l_Lean_Environment_setExporting(x_38, x_48); +x_50 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_39); +lean_ctor_set(x_50, 2, x_40); +lean_ctor_set(x_50, 3, x_41); +lean_ctor_set(x_50, 4, x_42); +lean_ctor_set(x_50, 5, x_43); +lean_ctor_set(x_50, 6, x_44); +lean_ctor_set(x_50, 7, x_45); +lean_ctor_set(x_50, 8, x_46); +lean_ctor_set(x_50, 9, x_47); +x_51 = lean_st_ref_set(x_4, x_50, x_14); +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +lean_dec_ref(x_51); +lean_inc(x_4); +x_53 = lean_apply_3(x_1, x_3, x_4, x_52); +if (lean_obj_tag(x_53) == 0) +{ +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; +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec_ref(x_53); +lean_inc(x_54); +x_56 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_56, 0, x_54); +x_57 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0(x_4, x_11, x_56, x_55); +lean_dec_ref(x_56); +lean_dec(x_4); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_59 = x_57; +} else { + lean_dec_ref(x_57); + x_59 = lean_box(0); +} +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(0, 2, 0); +} else { + x_60 = x_59; +} +lean_ctor_set(x_60, 0, x_54); +lean_ctor_set(x_60, 1, x_58); +return x_60; +} +else +{ +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; +x_61 = lean_ctor_get(x_53, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_53, 1); +lean_inc(x_62); +lean_dec_ref(x_53); +x_63 = lean_box(0); +x_64 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0(x_4, x_11, x_63, x_62); +lean_dec(x_4); +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_66 = x_64; +} else { + lean_dec_ref(x_64); + x_66 = lean_box(0); +} +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(1, 2, 0); +} else { + x_67 = x_66; + lean_ctor_set_tag(x_67, 1); +} +lean_ctor_set(x_67, 0, x_61); +lean_ctor_set(x_67, 1, x_65); +return x_67; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Elab_applyDerivingHandlers_spec__2(lean_object* x_1, size_t x_2, size_t x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_usize_dec_eq(x_2, x_3); +if (x_4 == 0) +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_uget(x_1, x_2); +x_6 = l_Lean_isPrivateName(x_5); +lean_dec(x_5); +if (x_6 == 0) +{ +size_t x_7; size_t x_8; +x_7 = 1; +x_8 = lean_usize_add(x_2, x_7); +x_2 = x_8; +goto _start; +} +else +{ +return x_6; +} +} +else +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +} +} static lean_object* _init_l_Lean_Elab_applyDerivingHandlers___lam__0___closed__0() { _start: { @@ -4068,20 +4442,60 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Elab_applyDerivingHandlers(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_inc(x_1); x_6 = lean_alloc_closure((void*)(l_Lean_Elab_applyDerivingHandlers___lam__0___boxed), 5, 1); lean_closure_set(x_6, 0, x_1); x_7 = l_Lean_Elab_applyDerivingHandlers___closed__2; x_8 = l_Lean_Elab_registerDerivingHandler___closed__2; +lean_inc_ref(x_2); x_9 = lean_alloc_closure((void*)(l_Lean_Elab_applyDerivingHandlers___lam__1___boxed), 6, 3); lean_closure_set(x_9, 0, x_8); lean_closure_set(x_9, 1, x_1); lean_closure_set(x_9, 2, x_2); x_10 = 1; x_11 = l_Lean_Elab_defaultHandler___closed__4; -x_12 = l_Lean_withTraceNode___at___Lean_Elab_Command_runLinters_spec__6___redArg(x_7, x_6, x_9, x_10, x_11, x_3, x_4, x_5); -return x_12; +x_12 = lean_box(x_10); +x_13 = lean_alloc_closure((void*)(l_Lean_withTraceNode___at___Lean_Elab_Command_runLinters_spec__6___boxed), 9, 6); +lean_closure_set(x_13, 0, lean_box(0)); +lean_closure_set(x_13, 1, x_7); +lean_closure_set(x_13, 2, x_6); +lean_closure_set(x_13, 3, x_9); +lean_closure_set(x_13, 4, x_12); +lean_closure_set(x_13, 5, x_11); +x_14 = lean_unsigned_to_nat(0u); +x_15 = lean_array_get_size(x_2); +x_16 = lean_nat_dec_lt(x_14, x_15); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_15); +lean_dec_ref(x_2); +x_17 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg(x_13, x_16, x_3, x_4, x_5); +return x_17; +} +else +{ +if (x_16 == 0) +{ +lean_object* x_18; +lean_dec(x_15); +lean_dec_ref(x_2); +x_18 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg(x_13, x_16, x_3, x_4, x_5); +return x_18; +} +else +{ +size_t x_19; size_t x_20; uint8_t x_21; lean_object* x_22; +x_19 = 0; +x_20 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_21 = l_Array_anyMUnsafe_any___at___Lean_Elab_applyDerivingHandlers_spec__2(x_2, x_19, x_20); +lean_dec_ref(x_2); +x_22 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg(x_13, x_21, x_3, x_4, x_5); +return x_22; +} +} } } LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_applyDerivingHandlers_spec__0___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) { @@ -4093,6 +4507,49 @@ lean_dec(x_4); return x_11; } } +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_2); +x_6 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0(x_1, x_5, x_3, x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_2); +x_7 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg(x_1, x_6, x_3, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_3); +x_8 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1(x_1, x_2, x_7, x_4, x_5, x_6); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_applyDerivingHandlers_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; uint8_t x_6; lean_object* x_7; +x_4 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_5 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_6 = l_Array_anyMUnsafe_any___at___Lean_Elab_applyDerivingHandlers_spec__2(x_1, x_4, x_5); +lean_dec_ref(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_applyDerivingHandlers___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -4754,7 +5211,7 @@ return x_7; } else { -lean_object* x_8; lean_object* x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_35; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; lean_object* x_12; lean_object* x_35; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; x_8 = lean_unsigned_to_nat(0u); x_9 = lean_unsigned_to_nat(1u); x_53 = lean_unsigned_to_nat(2u); @@ -4805,13 +5262,13 @@ block_34: { size_t x_13; lean_object* x_14; lean_object* x_15; size_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_13 = lean_array_size(x_12); -x_14 = l_Array_mapMUnsafe_map___at___Lean_Elab_elabDeriving_spec__0(x_13, x_10, x_12); +x_14 = l_Array_mapMUnsafe_map___at___Lean_Elab_elabDeriving_spec__0(x_13, x_11, x_12); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); lean_dec(x_14); x_16 = lean_array_size(x_15); x_17 = lean_box_usize(x_16); -x_18 = lean_box_usize(x_10); +x_18 = lean_box_usize(x_11); x_19 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___Lean_Elab_elabDeriving_spec__1___boxed), 6, 3); lean_closure_set(x_19, 0, x_17); lean_closure_set(x_19, 1, x_18); @@ -4826,9 +5283,9 @@ x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec_ref(x_20); x_23 = lean_box(0); -x_24 = lean_array_size(x_11); -x_25 = l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_elabDeriving_spec__2(x_23, x_21, x_8, x_9, x_11, x_24, x_10, x_23, x_2, x_3, x_22); -lean_dec_ref(x_11); +x_24 = lean_array_size(x_10); +x_25 = l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_elabDeriving_spec__2(x_23, x_21, x_8, x_9, x_10, x_24, x_11, x_23, x_2, x_3, x_22); +lean_dec_ref(x_10); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; @@ -4861,7 +5318,7 @@ return x_25; else { uint8_t x_30; -lean_dec_ref(x_11); +lean_dec_ref(x_10); lean_dec(x_3); lean_dec_ref(x_2); x_30 = !lean_is_exclusive(x_20); @@ -4905,8 +5362,8 @@ if (x_45 == 0) { lean_dec(x_44); lean_dec_ref(x_42); -x_10 = x_37; -x_11 = x_39; +x_10 = x_39; +x_11 = x_37; x_12 = x_43; goto block_34; } @@ -4918,8 +5375,8 @@ if (x_46 == 0) { lean_dec(x_44); lean_dec_ref(x_42); -x_10 = x_37; -x_11 = x_39; +x_10 = x_39; +x_11 = x_37; x_12 = x_43; goto block_34; } @@ -4937,8 +5394,8 @@ lean_dec_ref(x_42); x_51 = lean_ctor_get(x_50, 1); lean_inc(x_51); lean_dec_ref(x_50); -x_10 = x_37; -x_11 = x_39; +x_10 = x_39; +x_11 = x_37; x_12 = x_51; goto block_34; } @@ -5431,7 +5888,7 @@ return x_26; } } } -static lean_object* _init_l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1900_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1910_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -5441,17 +5898,17 @@ x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1900_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1910_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_applyDerivingHandlers___closed__0; -x_2 = l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1900_; +x_2 = l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1910_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1900_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1910_() { _start: { lean_object* x_1; @@ -5459,17 +5916,17 @@ x_1 = lean_mk_string_unchecked("initFn", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1900_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1910_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1900_; -x_2 = l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1900_; +x_1 = l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1910_; +x_2 = l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1910_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1900_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1910_() { _start: { lean_object* x_1; @@ -5477,47 +5934,47 @@ x_1 = lean_mk_string_unchecked("_@", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1900_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1910_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1900_; -x_2 = l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1900_; +x_1 = l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1910_; +x_2 = l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1910_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1900_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1910_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_elabDeriving___closed__0; -x_2 = l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1900_; +x_2 = l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1910_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1900_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1910_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_applyDerivingHandlers___closed__0; -x_2 = l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1900_; +x_2 = l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1910_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1900_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1910_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_applyDerivingHandlers___closed__1; -x_2 = l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1900_; +x_2 = l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1910_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1900_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1910_() { _start: { lean_object* x_1; @@ -5525,17 +5982,17 @@ x_1 = lean_mk_string_unchecked("Basic", 5, 5); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1900_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1910_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1900_; -x_2 = l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1900_; +x_1 = l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1910_; +x_2 = l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1910_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1900_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1910_() { _start: { lean_object* x_1; @@ -5543,33 +6000,33 @@ x_1 = lean_mk_string_unchecked("_hyg", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1900_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1910_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1900_; -x_2 = l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1900_; +x_1 = l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1910_; +x_2 = l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1910_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1900_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1910_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1900u); -x_2 = l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1900_; +x_1 = lean_unsigned_to_nat(1910u); +x_2 = l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1910_; x_3 = l_Lean_Name_num___override(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1900_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1910_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_applyDerivingHandlers___closed__2; x_3 = 0; -x_4 = l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1900_; +x_4 = l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1910_; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -5698,35 +6155,35 @@ l_Lean_Elab_getOptDerivingClasses___closed__1 = _init_l_Lean_Elab_getOptDeriving lean_mark_persistent(l_Lean_Elab_getOptDerivingClasses___closed__1); l_Lean_Elab_getOptDerivingClasses___closed__2 = _init_l_Lean_Elab_getOptDerivingClasses___closed__2(); lean_mark_persistent(l_Lean_Elab_getOptDerivingClasses___closed__2); -l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1900_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1900_); -l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1900_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1900_); -l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1900_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1900_); -l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1900_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1900_); -l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1900_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1900_); -l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1900_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1900_); -l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1900_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1900_); -l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1900_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1900_); -l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1900_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1900_); -l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1900_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1900_); -l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1900_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1900_); -l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1900_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1900_); -l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1900_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1900_); -l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1900_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1900_); -if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1900_(lean_io_mk_world()); +l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1910_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1910_); +l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1910_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1910_); +l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1910_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1910_); +l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1910_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1910_); +l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1910_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1910_); +l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1910_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1910_); +l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1910_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1910_); +l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1910_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1910_); +l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1910_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1910_); +l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1910_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1910_); +l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1910_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1910_); +l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1910_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1910_); +l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1910_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1910_); +l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1910_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1910_); +if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1910_(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)); diff --git a/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c b/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c index f9fb404f2c..c4bb6005aa 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c +++ b/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c @@ -27,7 +27,6 @@ static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__2 static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__0___redArg___closed__21; static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__2; lean_object* lean_mk_empty_array_with_capacity(lean_object*); -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__7____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; static lean_object* l_Array_foldrMUnsafe_fold___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_spec__0___closed__4; static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__0___redArg___closed__18; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct___lam__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*); @@ -42,8 +41,8 @@ static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_ static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__13; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___redArg___lam__0___closed__23; +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__16____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__12____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__20; static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__24; @@ -56,13 +55,13 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction__ static lean_object* l_Array_foldrMUnsafe_fold___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_spec__0___closed__2; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct___closed__6; lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__13____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__0___redArg___closed__28; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct___closed__13; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; LEAN_EXPORT uint8_t l_Array_qsort_sort___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__8___redArg___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___redArg___lam__0___closed__14; +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__7____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__0___redArg___closed__14; lean_object* l_Lean_Elab_Term_elabBinders___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -76,10 +75,10 @@ static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct___cl lean_object* l_Array_mapMUnsafe_map___at___Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw________1_spec__0(size_t, size_t, lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct___closed__15; static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__11; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__7(size_t, size_t, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct___closed__7; -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__9____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___redArg___lam__0___closed__4; lean_object* l_Lean_Elab_Deriving_mkInstanceCmds(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_mkDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -93,6 +92,7 @@ static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct___lam__1___closed__9; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__9; +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__13____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct___closed__5; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__6; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); @@ -106,15 +106,14 @@ static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_ static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__0___redArg___closed__33; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___redArg___lam__0___closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__11____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; lean_object* l_Lean_Elab_Deriving_mkLocalInstanceLetDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct_mkAlts_spec__1___redArg___lam__0___closed__1; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct_mkAlts_spec__3_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__0___redArg___closed__7; -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__1____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__11; -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__14____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct_spec__1___boxed(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_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__3; lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -138,6 +137,7 @@ LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJ uint8_t lean_string_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__15____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; static lean_object* l___private_Lean_Elab_Deriving_FromToJson_0__Lean_Elab_Deriving_FromToJson_mkToJsonInstance___closed__1; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct___closed__2; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___redArg___lam__0___closed__7; @@ -179,6 +179,7 @@ static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_ LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___redArg___lam__0___closed__13; static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__14; +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__9____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; lean_object* l_Lean_Elab_Deriving_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instQuoteNameMkStr1___private__1(lean_object*); lean_object* l_Lean_getConstInfo___at___Lean_getConstInfoInduct___at___Lean_Elab_Deriving_mkContext_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -188,6 +189,7 @@ static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct___cl LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct___closed__4; lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t); +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__8____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; lean_object* l_Lean_MessageData_ofSyntax(lean_object*); static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___redArg___lam__0___closed__22; static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__0___redArg___closed__27; @@ -221,6 +223,7 @@ LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJ lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__23; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__14____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct___closed__9; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonHeader___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -228,7 +231,7 @@ lean_object* l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redAr static lean_object* l___private_Lean_Elab_Deriving_FromToJson_0__Lean_Elab_Deriving_FromToJson_mkFromJsonInstance___closed__0; static lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__0___redArg___closed__4; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct___closed__1; -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__15____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__17____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* lean_array_to_list(lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__0___redArg___closed__25; @@ -236,7 +239,6 @@ static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__10____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__11; lean_object* l_Lean_Elab_Deriving_mkHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__17; @@ -252,7 +254,7 @@ LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_Deriving_FromTo static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__3; extern lean_object* l_Lean_instInhabitedExpr; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___redArg___lam__0___closed__9; -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__8____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__2____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__0___redArg___closed__1; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkJsonField___closed__1; @@ -279,6 +281,7 @@ static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct___lam_ lean_object* lean_string_utf8_prev(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct___closed__10; static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__0___redArg___closed__15; +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__1____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__0___redArg___closed__8; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__0___redArg___closed__0; @@ -291,6 +294,7 @@ static lean_object* l_Array_foldrMUnsafe_fold___at___Lean_Elab_Deriving_FromToJs LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct_mkAlts_spec__3___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___redArg___lam__0___closed__27; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__0____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct___lam__1___closed__0; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -307,14 +311,13 @@ static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___redArg___lam__0___closed__21; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__2; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___redArg___lam__0___closed__0; -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__2____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct_mkAlts_spec__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*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t); -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__4____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__0___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonMutualBlock___closed__2; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct_mkAlts___closed__0; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct___closed__3; +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__3____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___redArg___lam__0___closed__25; static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__23; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonMutualBlock(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -342,7 +345,6 @@ uint8_t l_Lean_Name_hasMacroScopes(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_mkInductiveApp_spec__0(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_isInductive___at___Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__5____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___redArg___lam__0___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__0___redArg___closed__29; @@ -362,13 +364,12 @@ static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam_ LEAN_EXPORT lean_object* l_Lean_isInductive___at___Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___redArg___lam__0___closed__6; +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__4____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_SepArray_ofElems(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__3____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct_mkAlts_spec__2___redArg___closed__2; -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__16____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct___lam__1___closed__5; lean_object* l_Lean_Environment_mainModule(lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__10; @@ -387,7 +388,6 @@ lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__1; LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__8___redArg___lam__0___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__17____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__5_spec__5___redArg___lam__0___closed__28; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__17; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__4___boxed(lean_object**); @@ -402,6 +402,7 @@ static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam_ lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct___closed__17; lean_object* l_Lean_mkSepArray(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__6____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct___closed__12; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct___lam__1___closed__4; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct_spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -435,6 +436,7 @@ LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at__ static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__0___redArg___closed__34; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonMutualBlock___closed__0; +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__5____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; lean_object* lean_erase_macro_scopes(lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__0; static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__7; @@ -481,6 +483,7 @@ static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct___clos static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct___closed__5; static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__12; static lean_object* l_Array_foldrMUnsafe_fold___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_spec__0___closed__5; +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__10____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; lean_object* l_Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_filterFieldList___at___Lean_realizeGlobalConstCore_spec__0_spec__2_spec__2_spec__2_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__0___redArg___closed__22; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct___closed__2; @@ -503,6 +506,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_Command_elabCommand_go_s static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__2; static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__1; lean_object* lean_nat_add(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__12____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__4; @@ -524,25 +528,20 @@ static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_ static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_FromToJson_mkFromJsonMutualBlock_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct___closed__2; -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__0____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__3(size_t, size_t, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct___closed__3; -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__11____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_FromToJson_mkToJsonMutualBlock_spec__0___boxed(lean_object**); static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__1___closed__4; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_FromToJson_mkToJsonMutualBlock_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn___closed__6____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__7___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__12; lean_object* l_Lean_Syntax_mkNumLit(lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__25; static lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForInduct_mkAlts_spec__0___redArg___closed__2; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct_mkAlts_spec__3_spec__3___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__12; -LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct___closed__15; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_FromToJson_mkToJsonMutualBlock_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForInduct_mkAlts_spec__1___redArg(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*); @@ -14366,7 +14365,7 @@ static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("private", 7, 7); +x_1 = lean_mk_string_unchecked("definition", 10, 10); return x_1; } } @@ -14374,7 +14373,7 @@ static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("definition", 10, 10); +x_1 = lean_mk_string_unchecked("def", 3, 3); return x_1; } } @@ -14382,7 +14381,7 @@ static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("def", 3, 3); +x_1 = lean_mk_string_unchecked("declId", 6, 6); return x_1; } } @@ -14390,7 +14389,7 @@ static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("declId", 6, 6); +x_1 = lean_mk_string_unchecked("optDeclSig", 10, 10); return x_1; } } @@ -14398,7 +14397,7 @@ static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("optDeclSig", 10, 10); +x_1 = lean_mk_string_unchecked("typeSpec", 8, 8); return x_1; } } @@ -14406,7 +14405,7 @@ static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("typeSpec", 8, 8); +x_1 = lean_mk_string_unchecked("declValSimple", 13, 13); return x_1; } } @@ -14414,7 +14413,7 @@ static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("declValSimple", 13, 13); +x_1 = lean_mk_string_unchecked("Termination", 11, 11); return x_1; } } @@ -14422,19 +14421,11 @@ static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Termination", 11, 11); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11() { -_start: -{ -lean_object* x_1; x_1 = lean_mk_string_unchecked("suffix", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__12() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11() { _start: { lean_object* x_1; @@ -14492,7 +14483,7 @@ lean_dec(x_17); x_29 = !lean_is_exclusive(x_28); if (x_29 == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; x_30 = lean_ctor_get(x_28, 0); x_31 = lean_ctor_get(x_16, 5); lean_inc(x_31); @@ -14522,958 +14513,886 @@ x_43 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_43, 0, x_34); lean_ctor_set(x_43, 1, x_41); lean_ctor_set(x_43, 2, x_42); -x_44 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; +lean_inc_ref_n(x_43, 6); +lean_inc(x_34); +x_44 = l_Lean_Syntax_node6(x_34, x_40, x_43, x_43, x_43, x_43, x_43, x_43); +x_45 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_45 = l_Lean_Name_mkStr4(x_5, x_6, x_36, x_44); +x_46 = l_Lean_Name_mkStr4(x_5, x_6, x_36, x_45); +x_47 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; lean_inc(x_34); lean_ctor_set_tag(x_24, 2); -lean_ctor_set(x_24, 1, x_44); +lean_ctor_set(x_24, 1, x_47); lean_ctor_set(x_24, 0, x_34); -lean_inc(x_34); -x_46 = l_Lean_Syntax_node1(x_34, x_45, x_24); -lean_inc(x_34); -x_47 = l_Lean_Syntax_node1(x_34, x_41, x_46); -lean_inc_ref_n(x_43, 5); -lean_inc(x_34); -x_48 = l_Lean_Syntax_node6(x_34, x_40, x_43, x_43, x_47, x_43, x_43, x_43); -x_49 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +x_48 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_50 = l_Lean_Name_mkStr4(x_5, x_6, x_36, x_49); -x_51 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; -lean_inc(x_34); -x_52 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_52, 0, x_34); -lean_ctor_set(x_52, 1, x_51); -x_53 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; -lean_inc_ref(x_6); -lean_inc_ref(x_5); -x_54 = l_Lean_Name_mkStr4(x_5, x_6, x_36, x_53); -x_55 = lean_mk_syntax_ident(x_7); +x_49 = l_Lean_Name_mkStr4(x_5, x_6, x_36, x_48); +x_50 = lean_mk_syntax_ident(x_7); lean_inc_ref(x_43); lean_inc(x_34); -x_56 = l_Lean_Syntax_node2(x_34, x_54, x_55, x_43); -x_57 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; +x_51 = l_Lean_Syntax_node2(x_34, x_49, x_50, x_43); +x_52 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_58 = l_Lean_Name_mkStr4(x_5, x_6, x_36, x_57); -x_59 = l_Array_append___redArg(x_42, x_8); +x_53 = l_Lean_Name_mkStr4(x_5, x_6, x_36, x_52); +x_54 = l_Array_append___redArg(x_42, x_8); lean_inc(x_34); -x_60 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_60, 0, x_34); -lean_ctor_set(x_60, 1, x_41); -lean_ctor_set(x_60, 2, x_59); -x_61 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; +x_55 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_55, 0, x_34); +lean_ctor_set(x_55, 1, x_41); +lean_ctor_set(x_55, 2, x_54); +x_56 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_62 = l_Lean_Name_mkStr4(x_5, x_6, x_9, x_61); -x_63 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; +x_57 = l_Lean_Name_mkStr4(x_5, x_6, x_9, x_56); +x_58 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; lean_inc(x_34); -x_64 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_64, 0, x_34); -lean_ctor_set(x_64, 1, x_63); -x_65 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__12; -x_66 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__17; -x_67 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__18; -x_68 = l_Lean_addMacroScope(x_35, x_67, x_32); +x_59 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_59, 0, x_34); +lean_ctor_set(x_59, 1, x_58); +x_60 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__12; +x_61 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__17; +x_62 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__18; +x_63 = l_Lean_addMacroScope(x_35, x_62, x_32); lean_inc_ref(x_5); -x_69 = l_Lean_Name_mkStr2(x_5, x_65); -x_70 = lean_box(0); -lean_inc(x_69); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -x_72 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_72, 0, x_69); -x_73 = lean_box(0); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_71); -lean_ctor_set(x_75, 1, x_74); +x_64 = l_Lean_Name_mkStr2(x_5, x_60); +x_65 = lean_box(0); +lean_inc(x_64); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +x_67 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_67, 0, x_64); +x_68 = lean_box(0); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_66); +lean_ctor_set(x_70, 1, x_69); lean_inc(x_34); -x_76 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_76, 0, x_34); -lean_ctor_set(x_76, 1, x_66); -lean_ctor_set(x_76, 2, x_68); -lean_ctor_set(x_76, 3, x_75); +x_71 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_71, 0, x_34); +lean_ctor_set(x_71, 1, x_61); +lean_ctor_set(x_71, 2, x_63); +lean_ctor_set(x_71, 3, x_70); lean_inc(x_34); -x_77 = l_Lean_Syntax_node2(x_34, x_62, x_64, x_76); +x_72 = l_Lean_Syntax_node2(x_34, x_57, x_59, x_71); lean_inc(x_34); -x_78 = l_Lean_Syntax_node1(x_34, x_41, x_77); +x_73 = l_Lean_Syntax_node1(x_34, x_41, x_72); lean_inc(x_34); -x_79 = l_Lean_Syntax_node2(x_34, x_58, x_60, x_78); -x_80 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_74 = l_Lean_Syntax_node2(x_34, x_53, x_55, x_73); +x_75 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_81 = l_Lean_Name_mkStr4(x_5, x_6, x_36, x_80); -x_82 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; +x_76 = l_Lean_Name_mkStr4(x_5, x_6, x_36, x_75); +x_77 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; lean_inc(x_34); -x_83 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_83, 0, x_34); -lean_ctor_set(x_83, 1, x_82); -x_84 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; -x_85 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; -x_86 = l_Lean_Name_mkStr4(x_5, x_6, x_84, x_85); +x_78 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_78, 0, x_34); +lean_ctor_set(x_78, 1, x_77); +x_79 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_80 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; +x_81 = l_Lean_Name_mkStr4(x_5, x_6, x_79, x_80); lean_inc_ref_n(x_43, 2); lean_inc(x_34); -x_87 = l_Lean_Syntax_node2(x_34, x_86, x_43, x_43); +x_82 = l_Lean_Syntax_node2(x_34, x_81, x_43, x_43); lean_inc_ref(x_43); lean_inc(x_34); -x_88 = l_Lean_Syntax_node4(x_34, x_81, x_83, x_26, x_87, x_43); +x_83 = l_Lean_Syntax_node4(x_34, x_76, x_78, x_26, x_82, x_43); lean_inc(x_34); -x_89 = l_Lean_Syntax_node5(x_34, x_50, x_52, x_56, x_79, x_88, x_43); -x_90 = l_Lean_Syntax_node2(x_34, x_38, x_48, x_89); -lean_ctor_set(x_28, 0, x_90); +x_84 = l_Lean_Syntax_node5(x_34, x_46, x_24, x_51, x_74, x_83, x_43); +x_85 = l_Lean_Syntax_node2(x_34, x_38, x_44, x_84); +lean_ctor_set(x_28, 0, x_85); return x_28; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_91 = lean_ctor_get(x_28, 0); -x_92 = lean_ctor_get(x_28, 1); -lean_inc(x_92); -lean_inc(x_91); +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_86 = lean_ctor_get(x_28, 0); +x_87 = lean_ctor_get(x_28, 1); +lean_inc(x_87); +lean_inc(x_86); lean_dec(x_28); -x_93 = lean_ctor_get(x_16, 5); -lean_inc(x_93); -x_94 = lean_ctor_get(x_16, 10); -lean_inc(x_94); +x_88 = lean_ctor_get(x_16, 5); +lean_inc(x_88); +x_89 = lean_ctor_get(x_16, 10); +lean_inc(x_89); lean_dec_ref(x_16); -x_95 = lean_ctor_get(x_91, 0); -lean_inc_ref(x_95); -lean_dec(x_91); -x_96 = l_Lean_SourceInfo_fromRef(x_93, x_4); -lean_dec(x_93); -x_97 = l_Lean_Environment_mainModule(x_95); -lean_dec_ref(x_95); -x_98 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; -x_99 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; +x_90 = lean_ctor_get(x_86, 0); +lean_inc_ref(x_90); +lean_dec(x_86); +x_91 = l_Lean_SourceInfo_fromRef(x_88, x_4); +lean_dec(x_88); +x_92 = l_Lean_Environment_mainModule(x_90); +lean_dec_ref(x_90); +x_93 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; +x_94 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_100 = l_Lean_Name_mkStr4(x_5, x_6, x_98, x_99); -x_101 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; +x_95 = l_Lean_Name_mkStr4(x_5, x_6, x_93, x_94); +x_96 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_102 = l_Lean_Name_mkStr4(x_5, x_6, x_98, x_101); -x_103 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; -x_104 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; -lean_inc(x_96); -x_105 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_105, 0, x_96); -lean_ctor_set(x_105, 1, x_103); -lean_ctor_set(x_105, 2, x_104); -x_106 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; +x_97 = l_Lean_Name_mkStr4(x_5, x_6, x_93, x_96); +x_98 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; +x_99 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; +lean_inc(x_91); +x_100 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_100, 0, x_91); +lean_ctor_set(x_100, 1, x_98); +lean_ctor_set(x_100, 2, x_99); +lean_inc_ref_n(x_100, 6); +lean_inc(x_91); +x_101 = l_Lean_Syntax_node6(x_91, x_97, x_100, x_100, x_100, x_100, x_100, x_100); +x_102 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_107 = l_Lean_Name_mkStr4(x_5, x_6, x_98, x_106); -lean_inc(x_96); +x_103 = l_Lean_Name_mkStr4(x_5, x_6, x_93, x_102); +x_104 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_inc(x_91); lean_ctor_set_tag(x_24, 2); -lean_ctor_set(x_24, 1, x_106); -lean_ctor_set(x_24, 0, x_96); -lean_inc(x_96); -x_108 = l_Lean_Syntax_node1(x_96, x_107, x_24); -lean_inc(x_96); -x_109 = l_Lean_Syntax_node1(x_96, x_103, x_108); -lean_inc_ref_n(x_105, 5); -lean_inc(x_96); -x_110 = l_Lean_Syntax_node6(x_96, x_102, x_105, x_105, x_109, x_105, x_105, x_105); -x_111 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_ctor_set(x_24, 1, x_104); +lean_ctor_set(x_24, 0, x_91); +x_105 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_112 = l_Lean_Name_mkStr4(x_5, x_6, x_98, x_111); -x_113 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; -lean_inc(x_96); -x_114 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_114, 0, x_96); -lean_ctor_set(x_114, 1, x_113); -x_115 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; +x_106 = l_Lean_Name_mkStr4(x_5, x_6, x_93, x_105); +x_107 = lean_mk_syntax_ident(x_7); +lean_inc_ref(x_100); +lean_inc(x_91); +x_108 = l_Lean_Syntax_node2(x_91, x_106, x_107, x_100); +x_109 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_116 = l_Lean_Name_mkStr4(x_5, x_6, x_98, x_115); -x_117 = lean_mk_syntax_ident(x_7); -lean_inc_ref(x_105); -lean_inc(x_96); -x_118 = l_Lean_Syntax_node2(x_96, x_116, x_117, x_105); -x_119 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; +x_110 = l_Lean_Name_mkStr4(x_5, x_6, x_93, x_109); +x_111 = l_Array_append___redArg(x_99, x_8); +lean_inc(x_91); +x_112 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_112, 0, x_91); +lean_ctor_set(x_112, 1, x_98); +lean_ctor_set(x_112, 2, x_111); +x_113 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_120 = l_Lean_Name_mkStr4(x_5, x_6, x_98, x_119); -x_121 = l_Array_append___redArg(x_104, x_8); -lean_inc(x_96); -x_122 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_122, 0, x_96); -lean_ctor_set(x_122, 1, x_103); -lean_ctor_set(x_122, 2, x_121); -x_123 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; -lean_inc_ref(x_6); +x_114 = l_Lean_Name_mkStr4(x_5, x_6, x_9, x_113); +x_115 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; +lean_inc(x_91); +x_116 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_116, 0, x_91); +lean_ctor_set(x_116, 1, x_115); +x_117 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__12; +x_118 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__17; +x_119 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__18; +x_120 = l_Lean_addMacroScope(x_92, x_119, x_89); lean_inc_ref(x_5); -x_124 = l_Lean_Name_mkStr4(x_5, x_6, x_9, x_123); -x_125 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; -lean_inc(x_96); -x_126 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_126, 0, x_96); +x_121 = l_Lean_Name_mkStr2(x_5, x_117); +x_122 = lean_box(0); +lean_inc(x_121); +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +x_124 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_124, 0, x_121); +x_125 = lean_box(0); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); lean_ctor_set(x_126, 1, x_125); -x_127 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__12; -x_128 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__17; -x_129 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__18; -x_130 = l_Lean_addMacroScope(x_97, x_129, x_94); -lean_inc_ref(x_5); -x_131 = l_Lean_Name_mkStr2(x_5, x_127); -x_132 = lean_box(0); -lean_inc(x_131); -x_133 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_133, 0, x_131); -lean_ctor_set(x_133, 1, x_132); -x_134 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_134, 0, x_131); -x_135 = lean_box(0); -x_136 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_136, 0, x_134); -lean_ctor_set(x_136, 1, x_135); -x_137 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_137, 0, x_133); -lean_ctor_set(x_137, 1, x_136); -lean_inc(x_96); -x_138 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_138, 0, x_96); -lean_ctor_set(x_138, 1, x_128); -lean_ctor_set(x_138, 2, x_130); -lean_ctor_set(x_138, 3, x_137); -lean_inc(x_96); -x_139 = l_Lean_Syntax_node2(x_96, x_124, x_126, x_138); -lean_inc(x_96); -x_140 = l_Lean_Syntax_node1(x_96, x_103, x_139); -lean_inc(x_96); -x_141 = l_Lean_Syntax_node2(x_96, x_120, x_122, x_140); -x_142 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_127 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_127, 0, x_123); +lean_ctor_set(x_127, 1, x_126); +lean_inc(x_91); +x_128 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_128, 0, x_91); +lean_ctor_set(x_128, 1, x_118); +lean_ctor_set(x_128, 2, x_120); +lean_ctor_set(x_128, 3, x_127); +lean_inc(x_91); +x_129 = l_Lean_Syntax_node2(x_91, x_114, x_116, x_128); +lean_inc(x_91); +x_130 = l_Lean_Syntax_node1(x_91, x_98, x_129); +lean_inc(x_91); +x_131 = l_Lean_Syntax_node2(x_91, x_110, x_112, x_130); +x_132 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_143 = l_Lean_Name_mkStr4(x_5, x_6, x_98, x_142); -x_144 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; -lean_inc(x_96); -x_145 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_145, 0, x_96); -lean_ctor_set(x_145, 1, x_144); -x_146 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; -x_147 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; -x_148 = l_Lean_Name_mkStr4(x_5, x_6, x_146, x_147); -lean_inc_ref_n(x_105, 2); -lean_inc(x_96); -x_149 = l_Lean_Syntax_node2(x_96, x_148, x_105, x_105); -lean_inc_ref(x_105); -lean_inc(x_96); -x_150 = l_Lean_Syntax_node4(x_96, x_143, x_145, x_26, x_149, x_105); -lean_inc(x_96); -x_151 = l_Lean_Syntax_node5(x_96, x_112, x_114, x_118, x_141, x_150, x_105); -x_152 = l_Lean_Syntax_node2(x_96, x_100, x_110, x_151); -x_153 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_92); -return x_153; +x_133 = l_Lean_Name_mkStr4(x_5, x_6, x_93, x_132); +x_134 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; +lean_inc(x_91); +x_135 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_135, 0, x_91); +lean_ctor_set(x_135, 1, x_134); +x_136 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_137 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; +x_138 = l_Lean_Name_mkStr4(x_5, x_6, x_136, x_137); +lean_inc_ref_n(x_100, 2); +lean_inc(x_91); +x_139 = l_Lean_Syntax_node2(x_91, x_138, x_100, x_100); +lean_inc_ref(x_100); +lean_inc(x_91); +x_140 = l_Lean_Syntax_node4(x_91, x_133, x_135, x_26, x_139, x_100); +lean_inc(x_91); +x_141 = l_Lean_Syntax_node5(x_91, x_103, x_24, x_108, x_131, x_140, x_100); +x_142 = l_Lean_Syntax_node2(x_91, x_95, x_101, x_141); +x_143 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_87); +return x_143; } } else { -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; -x_154 = lean_ctor_get(x_24, 0); -x_155 = lean_ctor_get(x_24, 1); -lean_inc(x_155); -lean_inc(x_154); +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; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_144 = lean_ctor_get(x_24, 0); +x_145 = lean_ctor_get(x_24, 1); +lean_inc(x_145); +lean_inc(x_144); lean_dec(x_24); -x_156 = lean_st_ref_get(x_17, x_155); +x_146 = lean_st_ref_get(x_17, x_145); lean_dec(x_17); -x_157 = lean_ctor_get(x_156, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_156, 1); -lean_inc(x_158); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_159 = x_156; +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_146, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_149 = x_146; } else { - lean_dec_ref(x_156); - x_159 = lean_box(0); + lean_dec_ref(x_146); + x_149 = lean_box(0); } -x_160 = lean_ctor_get(x_16, 5); -lean_inc(x_160); -x_161 = lean_ctor_get(x_16, 10); -lean_inc(x_161); +x_150 = lean_ctor_get(x_16, 5); +lean_inc(x_150); +x_151 = lean_ctor_get(x_16, 10); +lean_inc(x_151); lean_dec_ref(x_16); -x_162 = lean_ctor_get(x_157, 0); +x_152 = lean_ctor_get(x_147, 0); +lean_inc_ref(x_152); +lean_dec(x_147); +x_153 = l_Lean_SourceInfo_fromRef(x_150, x_4); +lean_dec(x_150); +x_154 = l_Lean_Environment_mainModule(x_152); +lean_dec_ref(x_152); +x_155 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; +x_156 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; +lean_inc_ref(x_6); +lean_inc_ref(x_5); +x_157 = l_Lean_Name_mkStr4(x_5, x_6, x_155, x_156); +x_158 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; +lean_inc_ref(x_6); +lean_inc_ref(x_5); +x_159 = l_Lean_Name_mkStr4(x_5, x_6, x_155, x_158); +x_160 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; +x_161 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; +lean_inc(x_153); +x_162 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_162, 0, x_153); +lean_ctor_set(x_162, 1, x_160); +lean_ctor_set(x_162, 2, x_161); +lean_inc_ref_n(x_162, 6); +lean_inc(x_153); +x_163 = l_Lean_Syntax_node6(x_153, x_159, x_162, x_162, x_162, x_162, x_162, x_162); +x_164 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; +lean_inc_ref(x_6); +lean_inc_ref(x_5); +x_165 = l_Lean_Name_mkStr4(x_5, x_6, x_155, x_164); +x_166 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_inc(x_153); +x_167 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_167, 0, x_153); +lean_ctor_set(x_167, 1, x_166); +x_168 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; +lean_inc_ref(x_6); +lean_inc_ref(x_5); +x_169 = l_Lean_Name_mkStr4(x_5, x_6, x_155, x_168); +x_170 = lean_mk_syntax_ident(x_7); lean_inc_ref(x_162); -lean_dec(x_157); -x_163 = l_Lean_SourceInfo_fromRef(x_160, x_4); -lean_dec(x_160); -x_164 = l_Lean_Environment_mainModule(x_162); -lean_dec_ref(x_162); -x_165 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; -x_166 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; +lean_inc(x_153); +x_171 = l_Lean_Syntax_node2(x_153, x_169, x_170, x_162); +x_172 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_167 = l_Lean_Name_mkStr4(x_5, x_6, x_165, x_166); -x_168 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; +x_173 = l_Lean_Name_mkStr4(x_5, x_6, x_155, x_172); +x_174 = l_Array_append___redArg(x_161, x_8); +lean_inc(x_153); +x_175 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_175, 0, x_153); +lean_ctor_set(x_175, 1, x_160); +lean_ctor_set(x_175, 2, x_174); +x_176 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_169 = l_Lean_Name_mkStr4(x_5, x_6, x_165, x_168); -x_170 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; -x_171 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; -lean_inc(x_163); -x_172 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_172, 0, x_163); -lean_ctor_set(x_172, 1, x_170); -lean_ctor_set(x_172, 2, x_171); -x_173 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; +x_177 = l_Lean_Name_mkStr4(x_5, x_6, x_9, x_176); +x_178 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; +lean_inc(x_153); +x_179 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_179, 0, x_153); +lean_ctor_set(x_179, 1, x_178); +x_180 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__12; +x_181 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__17; +x_182 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__18; +x_183 = l_Lean_addMacroScope(x_154, x_182, x_151); +lean_inc_ref(x_5); +x_184 = l_Lean_Name_mkStr2(x_5, x_180); +x_185 = lean_box(0); +lean_inc(x_184); +x_186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_184); +lean_ctor_set(x_186, 1, x_185); +x_187 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_187, 0, x_184); +x_188 = lean_box(0); +x_189 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_189, 0, x_187); +lean_ctor_set(x_189, 1, x_188); +x_190 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_190, 0, x_186); +lean_ctor_set(x_190, 1, x_189); +lean_inc(x_153); +x_191 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_191, 0, x_153); +lean_ctor_set(x_191, 1, x_181); +lean_ctor_set(x_191, 2, x_183); +lean_ctor_set(x_191, 3, x_190); +lean_inc(x_153); +x_192 = l_Lean_Syntax_node2(x_153, x_177, x_179, x_191); +lean_inc(x_153); +x_193 = l_Lean_Syntax_node1(x_153, x_160, x_192); +lean_inc(x_153); +x_194 = l_Lean_Syntax_node2(x_153, x_173, x_175, x_193); +x_195 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_174 = l_Lean_Name_mkStr4(x_5, x_6, x_165, x_173); -lean_inc(x_163); -x_175 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_175, 0, x_163); -lean_ctor_set(x_175, 1, x_173); -lean_inc(x_163); -x_176 = l_Lean_Syntax_node1(x_163, x_174, x_175); -lean_inc(x_163); -x_177 = l_Lean_Syntax_node1(x_163, x_170, x_176); -lean_inc_ref_n(x_172, 5); -lean_inc(x_163); -x_178 = l_Lean_Syntax_node6(x_163, x_169, x_172, x_172, x_177, x_172, x_172, x_172); -x_179 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; -lean_inc_ref(x_6); -lean_inc_ref(x_5); -x_180 = l_Lean_Name_mkStr4(x_5, x_6, x_165, x_179); -x_181 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; -lean_inc(x_163); -x_182 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_182, 0, x_163); -lean_ctor_set(x_182, 1, x_181); -x_183 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; -lean_inc_ref(x_6); -lean_inc_ref(x_5); -x_184 = l_Lean_Name_mkStr4(x_5, x_6, x_165, x_183); -x_185 = lean_mk_syntax_ident(x_7); -lean_inc_ref(x_172); -lean_inc(x_163); -x_186 = l_Lean_Syntax_node2(x_163, x_184, x_185, x_172); -x_187 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; -lean_inc_ref(x_6); -lean_inc_ref(x_5); -x_188 = l_Lean_Name_mkStr4(x_5, x_6, x_165, x_187); -x_189 = l_Array_append___redArg(x_171, x_8); -lean_inc(x_163); -x_190 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_190, 0, x_163); -lean_ctor_set(x_190, 1, x_170); -lean_ctor_set(x_190, 2, x_189); -x_191 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; -lean_inc_ref(x_6); -lean_inc_ref(x_5); -x_192 = l_Lean_Name_mkStr4(x_5, x_6, x_9, x_191); -x_193 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; -lean_inc(x_163); -x_194 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_194, 0, x_163); -lean_ctor_set(x_194, 1, x_193); -x_195 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__12; -x_196 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__17; -x_197 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__18; -x_198 = l_Lean_addMacroScope(x_164, x_197, x_161); -lean_inc_ref(x_5); -x_199 = l_Lean_Name_mkStr2(x_5, x_195); -x_200 = lean_box(0); -lean_inc(x_199); -x_201 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_201, 0, x_199); -lean_ctor_set(x_201, 1, x_200); -x_202 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_202, 0, x_199); -x_203 = lean_box(0); -x_204 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_204, 0, x_202); -lean_ctor_set(x_204, 1, x_203); -x_205 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_205, 0, x_201); -lean_ctor_set(x_205, 1, x_204); -lean_inc(x_163); -x_206 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_206, 0, x_163); -lean_ctor_set(x_206, 1, x_196); -lean_ctor_set(x_206, 2, x_198); -lean_ctor_set(x_206, 3, x_205); -lean_inc(x_163); -x_207 = l_Lean_Syntax_node2(x_163, x_192, x_194, x_206); -lean_inc(x_163); -x_208 = l_Lean_Syntax_node1(x_163, x_170, x_207); -lean_inc(x_163); -x_209 = l_Lean_Syntax_node2(x_163, x_188, x_190, x_208); -x_210 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; -lean_inc_ref(x_6); -lean_inc_ref(x_5); -x_211 = l_Lean_Name_mkStr4(x_5, x_6, x_165, x_210); -x_212 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; -lean_inc(x_163); -x_213 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_213, 0, x_163); -lean_ctor_set(x_213, 1, x_212); -x_214 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; -x_215 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; -x_216 = l_Lean_Name_mkStr4(x_5, x_6, x_214, x_215); -lean_inc_ref_n(x_172, 2); -lean_inc(x_163); -x_217 = l_Lean_Syntax_node2(x_163, x_216, x_172, x_172); -lean_inc_ref(x_172); -lean_inc(x_163); -x_218 = l_Lean_Syntax_node4(x_163, x_211, x_213, x_154, x_217, x_172); -lean_inc(x_163); -x_219 = l_Lean_Syntax_node5(x_163, x_180, x_182, x_186, x_209, x_218, x_172); -x_220 = l_Lean_Syntax_node2(x_163, x_167, x_178, x_219); -if (lean_is_scalar(x_159)) { - x_221 = lean_alloc_ctor(0, 2, 0); +x_196 = l_Lean_Name_mkStr4(x_5, x_6, x_155, x_195); +x_197 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; +lean_inc(x_153); +x_198 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_198, 0, x_153); +lean_ctor_set(x_198, 1, x_197); +x_199 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_200 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; +x_201 = l_Lean_Name_mkStr4(x_5, x_6, x_199, x_200); +lean_inc_ref_n(x_162, 2); +lean_inc(x_153); +x_202 = l_Lean_Syntax_node2(x_153, x_201, x_162, x_162); +lean_inc_ref(x_162); +lean_inc(x_153); +x_203 = l_Lean_Syntax_node4(x_153, x_196, x_198, x_144, x_202, x_162); +lean_inc(x_153); +x_204 = l_Lean_Syntax_node5(x_153, x_165, x_167, x_171, x_194, x_203, x_162); +x_205 = l_Lean_Syntax_node2(x_153, x_157, x_163, x_204); +if (lean_is_scalar(x_149)) { + x_206 = lean_alloc_ctor(0, 2, 0); } else { - x_221 = x_159; + x_206 = x_149; } -lean_ctor_set(x_221, 0, x_220); -lean_ctor_set(x_221, 1, x_158); -return x_221; +lean_ctor_set(x_206, 0, x_205); +lean_ctor_set(x_206, 1, x_148); +return x_206; } } else { -uint8_t x_222; -x_222 = !lean_is_exclusive(x_24); -if (x_222 == 0) +uint8_t x_207; +x_207 = !lean_is_exclusive(x_24); +if (x_207 == 0) { -lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; -x_223 = lean_ctor_get(x_24, 0); -x_224 = lean_ctor_get(x_24, 1); -x_225 = l_Lean_Elab_Deriving_FromToJson_mkToJsonHeader___closed__1; +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; +x_208 = lean_ctor_get(x_24, 0); +x_209 = lean_ctor_get(x_24, 1); +x_210 = l_Lean_Elab_Deriving_FromToJson_mkToJsonHeader___closed__1; lean_inc_ref(x_5); -x_226 = l_Lean_Name_mkStr2(x_5, x_225); +x_211 = l_Lean_Name_mkStr2(x_5, x_210); lean_inc(x_17); lean_inc_ref(x_16); lean_inc(x_15); lean_inc_ref(x_14); lean_inc(x_13); lean_inc_ref(x_12); -x_227 = l_Lean_Elab_Deriving_mkLocalInstanceLetDecls(x_2, x_226, x_10, x_12, x_13, x_14, x_15, x_16, x_17, x_224); -if (lean_obj_tag(x_227) == 0) +x_212 = l_Lean_Elab_Deriving_mkLocalInstanceLetDecls(x_2, x_211, x_10, x_12, x_13, x_14, x_15, x_16, x_17, x_209); +if (lean_obj_tag(x_212) == 0) { -lean_object* x_228; lean_object* x_229; lean_object* x_230; uint8_t x_231; -x_228 = lean_ctor_get(x_227, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_227, 1); -lean_inc(x_229); -lean_dec_ref(x_227); -x_230 = l_Lean_Elab_Deriving_mkLet(x_228, x_223, x_12, x_13, x_14, x_15, x_16, x_17, x_229); +lean_object* x_213; lean_object* x_214; lean_object* x_215; uint8_t x_216; +x_213 = lean_ctor_get(x_212, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_212, 1); +lean_inc(x_214); +lean_dec_ref(x_212); +x_215 = l_Lean_Elab_Deriving_mkLet(x_213, x_208, x_12, x_13, x_14, x_15, x_16, x_17, x_214); lean_dec(x_15); lean_dec_ref(x_14); lean_dec(x_13); lean_dec_ref(x_12); -lean_dec(x_228); -x_231 = !lean_is_exclusive(x_230); -if (x_231 == 0) +lean_dec(x_213); +x_216 = !lean_is_exclusive(x_215); +if (x_216 == 0) { -lean_object* x_232; lean_object* x_233; lean_object* x_234; uint8_t x_235; -x_232 = lean_ctor_get(x_230, 0); -x_233 = lean_ctor_get(x_230, 1); -x_234 = lean_st_ref_get(x_17, x_233); +lean_object* x_217; lean_object* x_218; lean_object* x_219; uint8_t x_220; +x_217 = lean_ctor_get(x_215, 0); +x_218 = lean_ctor_get(x_215, 1); +x_219 = lean_st_ref_get(x_17, x_218); lean_dec(x_17); -x_235 = !lean_is_exclusive(x_234); -if (x_235 == 0) +x_220 = !lean_is_exclusive(x_219); +if (x_220 == 0) { -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; 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; -x_236 = lean_ctor_get(x_234, 0); -x_237 = lean_ctor_get(x_16, 5); -lean_inc(x_237); -x_238 = lean_ctor_get(x_16, 10); -lean_inc(x_238); +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; uint8_t x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; 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; +x_221 = lean_ctor_get(x_219, 0); +x_222 = lean_ctor_get(x_16, 5); +lean_inc(x_222); +x_223 = lean_ctor_get(x_16, 10); +lean_inc(x_223); lean_dec_ref(x_16); -x_239 = lean_ctor_get(x_236, 0); -lean_inc_ref(x_239); -lean_dec(x_236); -x_240 = 0; -x_241 = l_Lean_SourceInfo_fromRef(x_237, x_240); -lean_dec(x_237); -x_242 = l_Lean_Environment_mainModule(x_239); -lean_dec_ref(x_239); -x_243 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; -x_244 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; +x_224 = lean_ctor_get(x_221, 0); +lean_inc_ref(x_224); +lean_dec(x_221); +x_225 = 0; +x_226 = l_Lean_SourceInfo_fromRef(x_222, x_225); +lean_dec(x_222); +x_227 = l_Lean_Environment_mainModule(x_224); +lean_dec_ref(x_224); +x_228 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; +x_229 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_245 = l_Lean_Name_mkStr4(x_5, x_6, x_243, x_244); -x_246 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; +x_230 = l_Lean_Name_mkStr4(x_5, x_6, x_228, x_229); +x_231 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_247 = l_Lean_Name_mkStr4(x_5, x_6, x_243, x_246); -x_248 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; -x_249 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; -lean_inc(x_241); -x_250 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_250, 0, x_241); -lean_ctor_set(x_250, 1, x_248); -lean_ctor_set(x_250, 2, x_249); -x_251 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; +x_232 = l_Lean_Name_mkStr4(x_5, x_6, x_228, x_231); +x_233 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; +x_234 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; +lean_inc(x_226); +x_235 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_235, 0, x_226); +lean_ctor_set(x_235, 1, x_233); +lean_ctor_set(x_235, 2, x_234); +x_236 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_252 = l_Lean_Name_mkStr4(x_5, x_6, x_243, x_251); -lean_inc(x_241); -lean_ctor_set_tag(x_230, 2); -lean_ctor_set(x_230, 1, x_251); -lean_ctor_set(x_230, 0, x_241); -lean_inc(x_241); -x_253 = l_Lean_Syntax_node1(x_241, x_252, x_230); -lean_inc(x_241); -x_254 = l_Lean_Syntax_node1(x_241, x_248, x_253); -x_255 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__12; +x_237 = l_Lean_Name_mkStr4(x_5, x_6, x_228, x_236); +lean_inc(x_226); +lean_ctor_set_tag(x_215, 2); +lean_ctor_set(x_215, 1, x_236); +lean_ctor_set(x_215, 0, x_226); +lean_inc(x_226); +x_238 = l_Lean_Syntax_node1(x_226, x_237, x_215); +lean_inc(x_226); +x_239 = l_Lean_Syntax_node1(x_226, x_233, x_238); +lean_inc_ref_n(x_235, 5); +lean_inc(x_226); +x_240 = l_Lean_Syntax_node6(x_226, x_232, x_235, x_235, x_235, x_235, x_235, x_239); +x_241 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_256 = l_Lean_Name_mkStr4(x_5, x_6, x_243, x_255); -lean_inc(x_241); +x_242 = l_Lean_Name_mkStr4(x_5, x_6, x_228, x_241); +x_243 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_inc(x_226); lean_ctor_set_tag(x_24, 2); -lean_ctor_set(x_24, 1, x_255); -lean_ctor_set(x_24, 0, x_241); -lean_inc(x_241); -x_257 = l_Lean_Syntax_node1(x_241, x_256, x_24); -lean_inc(x_241); -x_258 = l_Lean_Syntax_node1(x_241, x_248, x_257); -lean_inc_ref_n(x_250, 4); -lean_inc(x_241); -x_259 = l_Lean_Syntax_node6(x_241, x_247, x_250, x_250, x_254, x_250, x_250, x_258); -x_260 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_ctor_set(x_24, 1, x_243); +lean_ctor_set(x_24, 0, x_226); +x_244 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_261 = l_Lean_Name_mkStr4(x_5, x_6, x_243, x_260); -x_262 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; -lean_inc(x_241); -x_263 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_263, 0, x_241); -lean_ctor_set(x_263, 1, x_262); -x_264 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; +x_245 = l_Lean_Name_mkStr4(x_5, x_6, x_228, x_244); +x_246 = lean_mk_syntax_ident(x_7); +lean_inc_ref(x_235); +lean_inc(x_226); +x_247 = l_Lean_Syntax_node2(x_226, x_245, x_246, x_235); +x_248 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_265 = l_Lean_Name_mkStr4(x_5, x_6, x_243, x_264); -x_266 = lean_mk_syntax_ident(x_7); -lean_inc_ref(x_250); -lean_inc(x_241); -x_267 = l_Lean_Syntax_node2(x_241, x_265, x_266, x_250); -x_268 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; +x_249 = l_Lean_Name_mkStr4(x_5, x_6, x_228, x_248); +x_250 = l_Array_append___redArg(x_234, x_8); +lean_inc(x_226); +x_251 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_251, 0, x_226); +lean_ctor_set(x_251, 1, x_233); +lean_ctor_set(x_251, 2, x_250); +x_252 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_269 = l_Lean_Name_mkStr4(x_5, x_6, x_243, x_268); -x_270 = l_Array_append___redArg(x_249, x_8); -lean_inc(x_241); -x_271 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_271, 0, x_241); -lean_ctor_set(x_271, 1, x_248); -lean_ctor_set(x_271, 2, x_270); -x_272 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; +x_253 = l_Lean_Name_mkStr4(x_5, x_6, x_9, x_252); +x_254 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; +lean_inc(x_226); +x_255 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_255, 0, x_226); +lean_ctor_set(x_255, 1, x_254); +x_256 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__12; +x_257 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__17; +x_258 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__18; +x_259 = l_Lean_addMacroScope(x_227, x_258, x_223); +lean_inc_ref(x_5); +x_260 = l_Lean_Name_mkStr2(x_5, x_256); +x_261 = lean_box(0); +lean_inc(x_260); +x_262 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_262, 0, x_260); +lean_ctor_set(x_262, 1, x_261); +x_263 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_263, 0, x_260); +x_264 = lean_box(0); +x_265 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_265, 0, x_263); +lean_ctor_set(x_265, 1, x_264); +x_266 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_266, 0, x_262); +lean_ctor_set(x_266, 1, x_265); +lean_inc(x_226); +x_267 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_267, 0, x_226); +lean_ctor_set(x_267, 1, x_257); +lean_ctor_set(x_267, 2, x_259); +lean_ctor_set(x_267, 3, x_266); +lean_inc(x_226); +x_268 = l_Lean_Syntax_node2(x_226, x_253, x_255, x_267); +lean_inc(x_226); +x_269 = l_Lean_Syntax_node1(x_226, x_233, x_268); +lean_inc(x_226); +x_270 = l_Lean_Syntax_node2(x_226, x_249, x_251, x_269); +x_271 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_273 = l_Lean_Name_mkStr4(x_5, x_6, x_9, x_272); -x_274 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; -lean_inc(x_241); -x_275 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_275, 0, x_241); -lean_ctor_set(x_275, 1, x_274); -x_276 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__12; -x_277 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__17; -x_278 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__18; -x_279 = l_Lean_addMacroScope(x_242, x_278, x_238); -lean_inc_ref(x_5); -x_280 = l_Lean_Name_mkStr2(x_5, x_276); -x_281 = lean_box(0); -lean_inc(x_280); -x_282 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_282, 0, x_280); -lean_ctor_set(x_282, 1, x_281); -x_283 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_283, 0, x_280); -x_284 = lean_box(0); -x_285 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_285, 0, x_283); -lean_ctor_set(x_285, 1, x_284); -x_286 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_286, 0, x_282); -lean_ctor_set(x_286, 1, x_285); -lean_inc(x_241); -x_287 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_287, 0, x_241); -lean_ctor_set(x_287, 1, x_277); -lean_ctor_set(x_287, 2, x_279); -lean_ctor_set(x_287, 3, x_286); -lean_inc(x_241); -x_288 = l_Lean_Syntax_node2(x_241, x_273, x_275, x_287); -lean_inc(x_241); -x_289 = l_Lean_Syntax_node1(x_241, x_248, x_288); -lean_inc(x_241); -x_290 = l_Lean_Syntax_node2(x_241, x_269, x_271, x_289); -x_291 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; -lean_inc_ref(x_6); -lean_inc_ref(x_5); -x_292 = l_Lean_Name_mkStr4(x_5, x_6, x_243, x_291); -x_293 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; -lean_inc(x_241); -x_294 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_294, 0, x_241); -lean_ctor_set(x_294, 1, x_293); -x_295 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; -x_296 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; -x_297 = l_Lean_Name_mkStr4(x_5, x_6, x_295, x_296); -lean_inc_ref_n(x_250, 2); -lean_inc(x_241); -x_298 = l_Lean_Syntax_node2(x_241, x_297, x_250, x_250); -lean_inc_ref(x_250); -lean_inc(x_241); -x_299 = l_Lean_Syntax_node4(x_241, x_292, x_294, x_232, x_298, x_250); -lean_inc(x_241); -x_300 = l_Lean_Syntax_node5(x_241, x_261, x_263, x_267, x_290, x_299, x_250); -x_301 = l_Lean_Syntax_node2(x_241, x_245, x_259, x_300); -lean_ctor_set(x_234, 0, x_301); -return x_234; +x_272 = l_Lean_Name_mkStr4(x_5, x_6, x_228, x_271); +x_273 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; +lean_inc(x_226); +x_274 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_274, 0, x_226); +lean_ctor_set(x_274, 1, x_273); +x_275 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_276 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; +x_277 = l_Lean_Name_mkStr4(x_5, x_6, x_275, x_276); +lean_inc_ref_n(x_235, 2); +lean_inc(x_226); +x_278 = l_Lean_Syntax_node2(x_226, x_277, x_235, x_235); +lean_inc_ref(x_235); +lean_inc(x_226); +x_279 = l_Lean_Syntax_node4(x_226, x_272, x_274, x_217, x_278, x_235); +lean_inc(x_226); +x_280 = l_Lean_Syntax_node5(x_226, x_242, x_24, x_247, x_270, x_279, x_235); +x_281 = l_Lean_Syntax_node2(x_226, x_230, x_240, x_280); +lean_ctor_set(x_219, 0, x_281); +return x_219; } else { -lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; 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_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_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; -x_302 = lean_ctor_get(x_234, 0); -x_303 = lean_ctor_get(x_234, 1); -lean_inc(x_303); -lean_inc(x_302); -lean_dec(x_234); -x_304 = lean_ctor_get(x_16, 5); -lean_inc(x_304); -x_305 = lean_ctor_get(x_16, 10); -lean_inc(x_305); +lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; uint8_t x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; 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_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_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; +x_282 = lean_ctor_get(x_219, 0); +x_283 = lean_ctor_get(x_219, 1); +lean_inc(x_283); +lean_inc(x_282); +lean_dec(x_219); +x_284 = lean_ctor_get(x_16, 5); +lean_inc(x_284); +x_285 = lean_ctor_get(x_16, 10); +lean_inc(x_285); lean_dec_ref(x_16); -x_306 = lean_ctor_get(x_302, 0); -lean_inc_ref(x_306); -lean_dec(x_302); -x_307 = 0; -x_308 = l_Lean_SourceInfo_fromRef(x_304, x_307); -lean_dec(x_304); -x_309 = l_Lean_Environment_mainModule(x_306); -lean_dec_ref(x_306); -x_310 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; -x_311 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; +x_286 = lean_ctor_get(x_282, 0); +lean_inc_ref(x_286); +lean_dec(x_282); +x_287 = 0; +x_288 = l_Lean_SourceInfo_fromRef(x_284, x_287); +lean_dec(x_284); +x_289 = l_Lean_Environment_mainModule(x_286); +lean_dec_ref(x_286); +x_290 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; +x_291 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_312 = l_Lean_Name_mkStr4(x_5, x_6, x_310, x_311); -x_313 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; +x_292 = l_Lean_Name_mkStr4(x_5, x_6, x_290, x_291); +x_293 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_314 = l_Lean_Name_mkStr4(x_5, x_6, x_310, x_313); -x_315 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; -x_316 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; -lean_inc(x_308); -x_317 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_317, 0, x_308); -lean_ctor_set(x_317, 1, x_315); -lean_ctor_set(x_317, 2, x_316); -x_318 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; +x_294 = l_Lean_Name_mkStr4(x_5, x_6, x_290, x_293); +x_295 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; +x_296 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; +lean_inc(x_288); +x_297 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_297, 0, x_288); +lean_ctor_set(x_297, 1, x_295); +lean_ctor_set(x_297, 2, x_296); +x_298 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_319 = l_Lean_Name_mkStr4(x_5, x_6, x_310, x_318); -lean_inc(x_308); -lean_ctor_set_tag(x_230, 2); -lean_ctor_set(x_230, 1, x_318); -lean_ctor_set(x_230, 0, x_308); -lean_inc(x_308); -x_320 = l_Lean_Syntax_node1(x_308, x_319, x_230); -lean_inc(x_308); -x_321 = l_Lean_Syntax_node1(x_308, x_315, x_320); -x_322 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__12; +x_299 = l_Lean_Name_mkStr4(x_5, x_6, x_290, x_298); +lean_inc(x_288); +lean_ctor_set_tag(x_215, 2); +lean_ctor_set(x_215, 1, x_298); +lean_ctor_set(x_215, 0, x_288); +lean_inc(x_288); +x_300 = l_Lean_Syntax_node1(x_288, x_299, x_215); +lean_inc(x_288); +x_301 = l_Lean_Syntax_node1(x_288, x_295, x_300); +lean_inc_ref_n(x_297, 5); +lean_inc(x_288); +x_302 = l_Lean_Syntax_node6(x_288, x_294, x_297, x_297, x_297, x_297, x_297, x_301); +x_303 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_323 = l_Lean_Name_mkStr4(x_5, x_6, x_310, x_322); -lean_inc(x_308); +x_304 = l_Lean_Name_mkStr4(x_5, x_6, x_290, x_303); +x_305 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_inc(x_288); lean_ctor_set_tag(x_24, 2); -lean_ctor_set(x_24, 1, x_322); -lean_ctor_set(x_24, 0, x_308); -lean_inc(x_308); -x_324 = l_Lean_Syntax_node1(x_308, x_323, x_24); -lean_inc(x_308); -x_325 = l_Lean_Syntax_node1(x_308, x_315, x_324); -lean_inc_ref_n(x_317, 4); -lean_inc(x_308); -x_326 = l_Lean_Syntax_node6(x_308, x_314, x_317, x_317, x_321, x_317, x_317, x_325); -x_327 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_ctor_set(x_24, 1, x_305); +lean_ctor_set(x_24, 0, x_288); +x_306 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_328 = l_Lean_Name_mkStr4(x_5, x_6, x_310, x_327); -x_329 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; -lean_inc(x_308); -x_330 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_330, 0, x_308); -lean_ctor_set(x_330, 1, x_329); -x_331 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; +x_307 = l_Lean_Name_mkStr4(x_5, x_6, x_290, x_306); +x_308 = lean_mk_syntax_ident(x_7); +lean_inc_ref(x_297); +lean_inc(x_288); +x_309 = l_Lean_Syntax_node2(x_288, x_307, x_308, x_297); +x_310 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_332 = l_Lean_Name_mkStr4(x_5, x_6, x_310, x_331); -x_333 = lean_mk_syntax_ident(x_7); -lean_inc_ref(x_317); -lean_inc(x_308); -x_334 = l_Lean_Syntax_node2(x_308, x_332, x_333, x_317); -x_335 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; +x_311 = l_Lean_Name_mkStr4(x_5, x_6, x_290, x_310); +x_312 = l_Array_append___redArg(x_296, x_8); +lean_inc(x_288); +x_313 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_313, 0, x_288); +lean_ctor_set(x_313, 1, x_295); +lean_ctor_set(x_313, 2, x_312); +x_314 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_336 = l_Lean_Name_mkStr4(x_5, x_6, x_310, x_335); -x_337 = l_Array_append___redArg(x_316, x_8); -lean_inc(x_308); -x_338 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_338, 0, x_308); -lean_ctor_set(x_338, 1, x_315); -lean_ctor_set(x_338, 2, x_337); -x_339 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; +x_315 = l_Lean_Name_mkStr4(x_5, x_6, x_9, x_314); +x_316 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; +lean_inc(x_288); +x_317 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_317, 0, x_288); +lean_ctor_set(x_317, 1, x_316); +x_318 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__12; +x_319 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__17; +x_320 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__18; +x_321 = l_Lean_addMacroScope(x_289, x_320, x_285); +lean_inc_ref(x_5); +x_322 = l_Lean_Name_mkStr2(x_5, x_318); +x_323 = lean_box(0); +lean_inc(x_322); +x_324 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_324, 0, x_322); +lean_ctor_set(x_324, 1, x_323); +x_325 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_325, 0, x_322); +x_326 = lean_box(0); +x_327 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_327, 0, x_325); +lean_ctor_set(x_327, 1, x_326); +x_328 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_328, 0, x_324); +lean_ctor_set(x_328, 1, x_327); +lean_inc(x_288); +x_329 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_329, 0, x_288); +lean_ctor_set(x_329, 1, x_319); +lean_ctor_set(x_329, 2, x_321); +lean_ctor_set(x_329, 3, x_328); +lean_inc(x_288); +x_330 = l_Lean_Syntax_node2(x_288, x_315, x_317, x_329); +lean_inc(x_288); +x_331 = l_Lean_Syntax_node1(x_288, x_295, x_330); +lean_inc(x_288); +x_332 = l_Lean_Syntax_node2(x_288, x_311, x_313, x_331); +x_333 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_340 = l_Lean_Name_mkStr4(x_5, x_6, x_9, x_339); -x_341 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; -lean_inc(x_308); -x_342 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_342, 0, x_308); -lean_ctor_set(x_342, 1, x_341); -x_343 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__12; -x_344 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__17; -x_345 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__18; -x_346 = l_Lean_addMacroScope(x_309, x_345, x_305); -lean_inc_ref(x_5); -x_347 = l_Lean_Name_mkStr2(x_5, x_343); -x_348 = lean_box(0); -lean_inc(x_347); -x_349 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_349, 0, x_347); -lean_ctor_set(x_349, 1, x_348); -x_350 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_350, 0, x_347); -x_351 = lean_box(0); -x_352 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_352, 0, x_350); -lean_ctor_set(x_352, 1, x_351); -x_353 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_353, 0, x_349); -lean_ctor_set(x_353, 1, x_352); -lean_inc(x_308); -x_354 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_354, 0, x_308); -lean_ctor_set(x_354, 1, x_344); -lean_ctor_set(x_354, 2, x_346); -lean_ctor_set(x_354, 3, x_353); -lean_inc(x_308); -x_355 = l_Lean_Syntax_node2(x_308, x_340, x_342, x_354); -lean_inc(x_308); -x_356 = l_Lean_Syntax_node1(x_308, x_315, x_355); -lean_inc(x_308); -x_357 = l_Lean_Syntax_node2(x_308, x_336, x_338, x_356); -x_358 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; -lean_inc_ref(x_6); -lean_inc_ref(x_5); -x_359 = l_Lean_Name_mkStr4(x_5, x_6, x_310, x_358); -x_360 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; -lean_inc(x_308); -x_361 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_361, 0, x_308); -lean_ctor_set(x_361, 1, x_360); -x_362 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; -x_363 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; -x_364 = l_Lean_Name_mkStr4(x_5, x_6, x_362, x_363); -lean_inc_ref_n(x_317, 2); -lean_inc(x_308); -x_365 = l_Lean_Syntax_node2(x_308, x_364, x_317, x_317); -lean_inc_ref(x_317); -lean_inc(x_308); -x_366 = l_Lean_Syntax_node4(x_308, x_359, x_361, x_232, x_365, x_317); -lean_inc(x_308); -x_367 = l_Lean_Syntax_node5(x_308, x_328, x_330, x_334, x_357, x_366, x_317); -x_368 = l_Lean_Syntax_node2(x_308, x_312, x_326, x_367); -x_369 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_369, 0, x_368); -lean_ctor_set(x_369, 1, x_303); -return x_369; +x_334 = l_Lean_Name_mkStr4(x_5, x_6, x_290, x_333); +x_335 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; +lean_inc(x_288); +x_336 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_336, 0, x_288); +lean_ctor_set(x_336, 1, x_335); +x_337 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_338 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; +x_339 = l_Lean_Name_mkStr4(x_5, x_6, x_337, x_338); +lean_inc_ref_n(x_297, 2); +lean_inc(x_288); +x_340 = l_Lean_Syntax_node2(x_288, x_339, x_297, x_297); +lean_inc_ref(x_297); +lean_inc(x_288); +x_341 = l_Lean_Syntax_node4(x_288, x_334, x_336, x_217, x_340, x_297); +lean_inc(x_288); +x_342 = l_Lean_Syntax_node5(x_288, x_304, x_24, x_309, x_332, x_341, x_297); +x_343 = l_Lean_Syntax_node2(x_288, x_292, x_302, x_342); +x_344 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_344, 0, x_343); +lean_ctor_set(x_344, 1, x_283); +return x_344; } } else { -lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; uint8_t x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; -x_370 = lean_ctor_get(x_230, 0); -x_371 = lean_ctor_get(x_230, 1); -lean_inc(x_371); -lean_inc(x_370); -lean_dec(x_230); -x_372 = lean_st_ref_get(x_17, x_371); +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; lean_object* x_353; uint8_t x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; +x_345 = lean_ctor_get(x_215, 0); +x_346 = lean_ctor_get(x_215, 1); +lean_inc(x_346); +lean_inc(x_345); +lean_dec(x_215); +x_347 = lean_st_ref_get(x_17, x_346); lean_dec(x_17); -x_373 = lean_ctor_get(x_372, 0); -lean_inc(x_373); -x_374 = lean_ctor_get(x_372, 1); -lean_inc(x_374); -if (lean_is_exclusive(x_372)) { - lean_ctor_release(x_372, 0); - lean_ctor_release(x_372, 1); - x_375 = x_372; +x_348 = lean_ctor_get(x_347, 0); +lean_inc(x_348); +x_349 = lean_ctor_get(x_347, 1); +lean_inc(x_349); +if (lean_is_exclusive(x_347)) { + lean_ctor_release(x_347, 0); + lean_ctor_release(x_347, 1); + x_350 = x_347; } else { - lean_dec_ref(x_372); - x_375 = lean_box(0); + lean_dec_ref(x_347); + x_350 = lean_box(0); } -x_376 = lean_ctor_get(x_16, 5); -lean_inc(x_376); -x_377 = lean_ctor_get(x_16, 10); -lean_inc(x_377); +x_351 = lean_ctor_get(x_16, 5); +lean_inc(x_351); +x_352 = lean_ctor_get(x_16, 10); +lean_inc(x_352); lean_dec_ref(x_16); -x_378 = lean_ctor_get(x_373, 0); -lean_inc_ref(x_378); -lean_dec(x_373); -x_379 = 0; -x_380 = l_Lean_SourceInfo_fromRef(x_376, x_379); -lean_dec(x_376); -x_381 = l_Lean_Environment_mainModule(x_378); -lean_dec_ref(x_378); -x_382 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; -x_383 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; +x_353 = lean_ctor_get(x_348, 0); +lean_inc_ref(x_353); +lean_dec(x_348); +x_354 = 0; +x_355 = l_Lean_SourceInfo_fromRef(x_351, x_354); +lean_dec(x_351); +x_356 = l_Lean_Environment_mainModule(x_353); +lean_dec_ref(x_353); +x_357 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; +x_358 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_384 = l_Lean_Name_mkStr4(x_5, x_6, x_382, x_383); -x_385 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; +x_359 = l_Lean_Name_mkStr4(x_5, x_6, x_357, x_358); +x_360 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_386 = l_Lean_Name_mkStr4(x_5, x_6, x_382, x_385); -x_387 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; -x_388 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; -lean_inc(x_380); -x_389 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_389, 0, x_380); -lean_ctor_set(x_389, 1, x_387); -lean_ctor_set(x_389, 2, x_388); -x_390 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; +x_361 = l_Lean_Name_mkStr4(x_5, x_6, x_357, x_360); +x_362 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; +x_363 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; +lean_inc(x_355); +x_364 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_364, 0, x_355); +lean_ctor_set(x_364, 1, x_362); +lean_ctor_set(x_364, 2, x_363); +x_365 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_391 = l_Lean_Name_mkStr4(x_5, x_6, x_382, x_390); -lean_inc(x_380); -x_392 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_392, 0, x_380); -lean_ctor_set(x_392, 1, x_390); -lean_inc(x_380); -x_393 = l_Lean_Syntax_node1(x_380, x_391, x_392); -lean_inc(x_380); -x_394 = l_Lean_Syntax_node1(x_380, x_387, x_393); -x_395 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__12; +x_366 = l_Lean_Name_mkStr4(x_5, x_6, x_357, x_365); +lean_inc(x_355); +x_367 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_367, 0, x_355); +lean_ctor_set(x_367, 1, x_365); +lean_inc(x_355); +x_368 = l_Lean_Syntax_node1(x_355, x_366, x_367); +lean_inc(x_355); +x_369 = l_Lean_Syntax_node1(x_355, x_362, x_368); +lean_inc_ref_n(x_364, 5); +lean_inc(x_355); +x_370 = l_Lean_Syntax_node6(x_355, x_361, x_364, x_364, x_364, x_364, x_364, x_369); +x_371 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_396 = l_Lean_Name_mkStr4(x_5, x_6, x_382, x_395); -lean_inc(x_380); +x_372 = l_Lean_Name_mkStr4(x_5, x_6, x_357, x_371); +x_373 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_inc(x_355); lean_ctor_set_tag(x_24, 2); -lean_ctor_set(x_24, 1, x_395); -lean_ctor_set(x_24, 0, x_380); -lean_inc(x_380); -x_397 = l_Lean_Syntax_node1(x_380, x_396, x_24); -lean_inc(x_380); -x_398 = l_Lean_Syntax_node1(x_380, x_387, x_397); -lean_inc_ref_n(x_389, 4); -lean_inc(x_380); -x_399 = l_Lean_Syntax_node6(x_380, x_386, x_389, x_389, x_394, x_389, x_389, x_398); -x_400 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_ctor_set(x_24, 1, x_373); +lean_ctor_set(x_24, 0, x_355); +x_374 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_401 = l_Lean_Name_mkStr4(x_5, x_6, x_382, x_400); -x_402 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; -lean_inc(x_380); -x_403 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_403, 0, x_380); -lean_ctor_set(x_403, 1, x_402); -x_404 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; +x_375 = l_Lean_Name_mkStr4(x_5, x_6, x_357, x_374); +x_376 = lean_mk_syntax_ident(x_7); +lean_inc_ref(x_364); +lean_inc(x_355); +x_377 = l_Lean_Syntax_node2(x_355, x_375, x_376, x_364); +x_378 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_405 = l_Lean_Name_mkStr4(x_5, x_6, x_382, x_404); -x_406 = lean_mk_syntax_ident(x_7); -lean_inc_ref(x_389); -lean_inc(x_380); -x_407 = l_Lean_Syntax_node2(x_380, x_405, x_406, x_389); -x_408 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; +x_379 = l_Lean_Name_mkStr4(x_5, x_6, x_357, x_378); +x_380 = l_Array_append___redArg(x_363, x_8); +lean_inc(x_355); +x_381 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_381, 0, x_355); +lean_ctor_set(x_381, 1, x_362); +lean_ctor_set(x_381, 2, x_380); +x_382 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_409 = l_Lean_Name_mkStr4(x_5, x_6, x_382, x_408); -x_410 = l_Array_append___redArg(x_388, x_8); -lean_inc(x_380); -x_411 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_411, 0, x_380); -lean_ctor_set(x_411, 1, x_387); -lean_ctor_set(x_411, 2, x_410); -x_412 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; +x_383 = l_Lean_Name_mkStr4(x_5, x_6, x_9, x_382); +x_384 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; +lean_inc(x_355); +x_385 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_385, 0, x_355); +lean_ctor_set(x_385, 1, x_384); +x_386 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__12; +x_387 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__17; +x_388 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__18; +x_389 = l_Lean_addMacroScope(x_356, x_388, x_352); +lean_inc_ref(x_5); +x_390 = l_Lean_Name_mkStr2(x_5, x_386); +x_391 = lean_box(0); +lean_inc(x_390); +x_392 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_392, 0, x_390); +lean_ctor_set(x_392, 1, x_391); +x_393 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_393, 0, x_390); +x_394 = lean_box(0); +x_395 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_395, 0, x_393); +lean_ctor_set(x_395, 1, x_394); +x_396 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_396, 0, x_392); +lean_ctor_set(x_396, 1, x_395); +lean_inc(x_355); +x_397 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_397, 0, x_355); +lean_ctor_set(x_397, 1, x_387); +lean_ctor_set(x_397, 2, x_389); +lean_ctor_set(x_397, 3, x_396); +lean_inc(x_355); +x_398 = l_Lean_Syntax_node2(x_355, x_383, x_385, x_397); +lean_inc(x_355); +x_399 = l_Lean_Syntax_node1(x_355, x_362, x_398); +lean_inc(x_355); +x_400 = l_Lean_Syntax_node2(x_355, x_379, x_381, x_399); +x_401 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_413 = l_Lean_Name_mkStr4(x_5, x_6, x_9, x_412); -x_414 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; -lean_inc(x_380); -x_415 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_415, 0, x_380); -lean_ctor_set(x_415, 1, x_414); -x_416 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__12; -x_417 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__17; -x_418 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__18; -x_419 = l_Lean_addMacroScope(x_381, x_418, x_377); -lean_inc_ref(x_5); -x_420 = l_Lean_Name_mkStr2(x_5, x_416); -x_421 = lean_box(0); -lean_inc(x_420); -x_422 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_422, 0, x_420); -lean_ctor_set(x_422, 1, x_421); -x_423 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_423, 0, x_420); -x_424 = lean_box(0); -x_425 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_425, 0, x_423); -lean_ctor_set(x_425, 1, x_424); -x_426 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_426, 0, x_422); -lean_ctor_set(x_426, 1, x_425); -lean_inc(x_380); -x_427 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_427, 0, x_380); -lean_ctor_set(x_427, 1, x_417); -lean_ctor_set(x_427, 2, x_419); -lean_ctor_set(x_427, 3, x_426); -lean_inc(x_380); -x_428 = l_Lean_Syntax_node2(x_380, x_413, x_415, x_427); -lean_inc(x_380); -x_429 = l_Lean_Syntax_node1(x_380, x_387, x_428); -lean_inc(x_380); -x_430 = l_Lean_Syntax_node2(x_380, x_409, x_411, x_429); -x_431 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; -lean_inc_ref(x_6); -lean_inc_ref(x_5); -x_432 = l_Lean_Name_mkStr4(x_5, x_6, x_382, x_431); -x_433 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; -lean_inc(x_380); -x_434 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_434, 0, x_380); -lean_ctor_set(x_434, 1, x_433); -x_435 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; -x_436 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; -x_437 = l_Lean_Name_mkStr4(x_5, x_6, x_435, x_436); -lean_inc_ref_n(x_389, 2); -lean_inc(x_380); -x_438 = l_Lean_Syntax_node2(x_380, x_437, x_389, x_389); -lean_inc_ref(x_389); -lean_inc(x_380); -x_439 = l_Lean_Syntax_node4(x_380, x_432, x_434, x_370, x_438, x_389); -lean_inc(x_380); -x_440 = l_Lean_Syntax_node5(x_380, x_401, x_403, x_407, x_430, x_439, x_389); -x_441 = l_Lean_Syntax_node2(x_380, x_384, x_399, x_440); -if (lean_is_scalar(x_375)) { - x_442 = lean_alloc_ctor(0, 2, 0); +x_402 = l_Lean_Name_mkStr4(x_5, x_6, x_357, x_401); +x_403 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; +lean_inc(x_355); +x_404 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_404, 0, x_355); +lean_ctor_set(x_404, 1, x_403); +x_405 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_406 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; +x_407 = l_Lean_Name_mkStr4(x_5, x_6, x_405, x_406); +lean_inc_ref_n(x_364, 2); +lean_inc(x_355); +x_408 = l_Lean_Syntax_node2(x_355, x_407, x_364, x_364); +lean_inc_ref(x_364); +lean_inc(x_355); +x_409 = l_Lean_Syntax_node4(x_355, x_402, x_404, x_345, x_408, x_364); +lean_inc(x_355); +x_410 = l_Lean_Syntax_node5(x_355, x_372, x_24, x_377, x_400, x_409, x_364); +x_411 = l_Lean_Syntax_node2(x_355, x_359, x_370, x_410); +if (lean_is_scalar(x_350)) { + x_412 = lean_alloc_ctor(0, 2, 0); } else { - x_442 = x_375; + x_412 = x_350; } -lean_ctor_set(x_442, 0, x_441); -lean_ctor_set(x_442, 1, x_374); -return x_442; +lean_ctor_set(x_412, 0, x_411); +lean_ctor_set(x_412, 1, x_349); +return x_412; } } else { -uint8_t x_443; +uint8_t x_413; lean_free_object(x_24); -lean_dec(x_223); +lean_dec(x_208); lean_dec(x_17); lean_dec_ref(x_16); lean_dec(x_15); @@ -15484,247 +15403,235 @@ lean_dec_ref(x_9); lean_dec(x_7); lean_dec_ref(x_6); lean_dec_ref(x_5); -x_443 = !lean_is_exclusive(x_227); -if (x_443 == 0) +x_413 = !lean_is_exclusive(x_212); +if (x_413 == 0) { -return x_227; +return x_212; } else { -lean_object* x_444; lean_object* x_445; lean_object* x_446; -x_444 = lean_ctor_get(x_227, 0); -x_445 = lean_ctor_get(x_227, 1); -lean_inc(x_445); -lean_inc(x_444); -lean_dec(x_227); -x_446 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_446, 0, x_444); -lean_ctor_set(x_446, 1, x_445); -return x_446; +lean_object* x_414; lean_object* x_415; lean_object* x_416; +x_414 = lean_ctor_get(x_212, 0); +x_415 = lean_ctor_get(x_212, 1); +lean_inc(x_415); +lean_inc(x_414); +lean_dec(x_212); +x_416 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_416, 0, x_414); +lean_ctor_set(x_416, 1, x_415); +return x_416; } } } else { -lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; -x_447 = lean_ctor_get(x_24, 0); -x_448 = lean_ctor_get(x_24, 1); -lean_inc(x_448); -lean_inc(x_447); +lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; +x_417 = lean_ctor_get(x_24, 0); +x_418 = lean_ctor_get(x_24, 1); +lean_inc(x_418); +lean_inc(x_417); lean_dec(x_24); -x_449 = l_Lean_Elab_Deriving_FromToJson_mkToJsonHeader___closed__1; +x_419 = l_Lean_Elab_Deriving_FromToJson_mkToJsonHeader___closed__1; lean_inc_ref(x_5); -x_450 = l_Lean_Name_mkStr2(x_5, x_449); +x_420 = l_Lean_Name_mkStr2(x_5, x_419); lean_inc(x_17); lean_inc_ref(x_16); lean_inc(x_15); lean_inc_ref(x_14); lean_inc(x_13); lean_inc_ref(x_12); -x_451 = l_Lean_Elab_Deriving_mkLocalInstanceLetDecls(x_2, x_450, x_10, x_12, x_13, x_14, x_15, x_16, x_17, x_448); -if (lean_obj_tag(x_451) == 0) +x_421 = l_Lean_Elab_Deriving_mkLocalInstanceLetDecls(x_2, x_420, x_10, x_12, x_13, x_14, x_15, x_16, x_17, x_418); +if (lean_obj_tag(x_421) == 0) { -lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; uint8_t x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; -x_452 = lean_ctor_get(x_451, 0); -lean_inc(x_452); -x_453 = lean_ctor_get(x_451, 1); -lean_inc(x_453); -lean_dec_ref(x_451); -x_454 = l_Lean_Elab_Deriving_mkLet(x_452, x_447, x_12, x_13, x_14, x_15, x_16, x_17, x_453); +lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; uint8_t x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; +x_422 = lean_ctor_get(x_421, 0); +lean_inc(x_422); +x_423 = lean_ctor_get(x_421, 1); +lean_inc(x_423); +lean_dec_ref(x_421); +x_424 = l_Lean_Elab_Deriving_mkLet(x_422, x_417, x_12, x_13, x_14, x_15, x_16, x_17, x_423); lean_dec(x_15); lean_dec_ref(x_14); lean_dec(x_13); lean_dec_ref(x_12); -lean_dec(x_452); -x_455 = lean_ctor_get(x_454, 0); -lean_inc(x_455); -x_456 = lean_ctor_get(x_454, 1); -lean_inc(x_456); -if (lean_is_exclusive(x_454)) { - lean_ctor_release(x_454, 0); - lean_ctor_release(x_454, 1); - x_457 = x_454; +lean_dec(x_422); +x_425 = lean_ctor_get(x_424, 0); +lean_inc(x_425); +x_426 = lean_ctor_get(x_424, 1); +lean_inc(x_426); +if (lean_is_exclusive(x_424)) { + lean_ctor_release(x_424, 0); + lean_ctor_release(x_424, 1); + x_427 = x_424; } else { - lean_dec_ref(x_454); - x_457 = lean_box(0); + lean_dec_ref(x_424); + x_427 = lean_box(0); } -x_458 = lean_st_ref_get(x_17, x_456); +x_428 = lean_st_ref_get(x_17, x_426); lean_dec(x_17); -x_459 = lean_ctor_get(x_458, 0); -lean_inc(x_459); -x_460 = lean_ctor_get(x_458, 1); -lean_inc(x_460); -if (lean_is_exclusive(x_458)) { - lean_ctor_release(x_458, 0); - lean_ctor_release(x_458, 1); - x_461 = x_458; +x_429 = lean_ctor_get(x_428, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_428, 1); +lean_inc(x_430); +if (lean_is_exclusive(x_428)) { + lean_ctor_release(x_428, 0); + lean_ctor_release(x_428, 1); + x_431 = x_428; } else { - lean_dec_ref(x_458); - x_461 = lean_box(0); + lean_dec_ref(x_428); + x_431 = lean_box(0); } -x_462 = lean_ctor_get(x_16, 5); -lean_inc(x_462); -x_463 = lean_ctor_get(x_16, 10); -lean_inc(x_463); +x_432 = lean_ctor_get(x_16, 5); +lean_inc(x_432); +x_433 = lean_ctor_get(x_16, 10); +lean_inc(x_433); lean_dec_ref(x_16); -x_464 = lean_ctor_get(x_459, 0); -lean_inc_ref(x_464); -lean_dec(x_459); -x_465 = 0; -x_466 = l_Lean_SourceInfo_fromRef(x_462, x_465); -lean_dec(x_462); -x_467 = l_Lean_Environment_mainModule(x_464); -lean_dec_ref(x_464); -x_468 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; -x_469 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; +x_434 = lean_ctor_get(x_429, 0); +lean_inc_ref(x_434); +lean_dec(x_429); +x_435 = 0; +x_436 = l_Lean_SourceInfo_fromRef(x_432, x_435); +lean_dec(x_432); +x_437 = l_Lean_Environment_mainModule(x_434); +lean_dec_ref(x_434); +x_438 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; +x_439 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_470 = l_Lean_Name_mkStr4(x_5, x_6, x_468, x_469); -x_471 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; +x_440 = l_Lean_Name_mkStr4(x_5, x_6, x_438, x_439); +x_441 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_472 = l_Lean_Name_mkStr4(x_5, x_6, x_468, x_471); -x_473 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; -x_474 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; -lean_inc(x_466); -x_475 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_475, 0, x_466); -lean_ctor_set(x_475, 1, x_473); -lean_ctor_set(x_475, 2, x_474); -x_476 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; +x_442 = l_Lean_Name_mkStr4(x_5, x_6, x_438, x_441); +x_443 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; +x_444 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; +lean_inc(x_436); +x_445 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_445, 0, x_436); +lean_ctor_set(x_445, 1, x_443); +lean_ctor_set(x_445, 2, x_444); +x_446 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_477 = l_Lean_Name_mkStr4(x_5, x_6, x_468, x_476); -lean_inc(x_466); -if (lean_is_scalar(x_457)) { - x_478 = lean_alloc_ctor(2, 2, 0); +x_447 = l_Lean_Name_mkStr4(x_5, x_6, x_438, x_446); +lean_inc(x_436); +if (lean_is_scalar(x_427)) { + x_448 = lean_alloc_ctor(2, 2, 0); } else { - x_478 = x_457; - lean_ctor_set_tag(x_478, 2); + x_448 = x_427; + lean_ctor_set_tag(x_448, 2); } -lean_ctor_set(x_478, 0, x_466); -lean_ctor_set(x_478, 1, x_476); -lean_inc(x_466); -x_479 = l_Lean_Syntax_node1(x_466, x_477, x_478); -lean_inc(x_466); -x_480 = l_Lean_Syntax_node1(x_466, x_473, x_479); -x_481 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__12; +lean_ctor_set(x_448, 0, x_436); +lean_ctor_set(x_448, 1, x_446); +lean_inc(x_436); +x_449 = l_Lean_Syntax_node1(x_436, x_447, x_448); +lean_inc(x_436); +x_450 = l_Lean_Syntax_node1(x_436, x_443, x_449); +lean_inc_ref_n(x_445, 5); +lean_inc(x_436); +x_451 = l_Lean_Syntax_node6(x_436, x_442, x_445, x_445, x_445, x_445, x_445, x_450); +x_452 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_482 = l_Lean_Name_mkStr4(x_5, x_6, x_468, x_481); -lean_inc(x_466); -x_483 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_483, 0, x_466); -lean_ctor_set(x_483, 1, x_481); -lean_inc(x_466); -x_484 = l_Lean_Syntax_node1(x_466, x_482, x_483); -lean_inc(x_466); -x_485 = l_Lean_Syntax_node1(x_466, x_473, x_484); -lean_inc_ref_n(x_475, 4); -lean_inc(x_466); -x_486 = l_Lean_Syntax_node6(x_466, x_472, x_475, x_475, x_480, x_475, x_475, x_485); -x_487 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +x_453 = l_Lean_Name_mkStr4(x_5, x_6, x_438, x_452); +x_454 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_inc(x_436); +x_455 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_455, 0, x_436); +lean_ctor_set(x_455, 1, x_454); +x_456 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_488 = l_Lean_Name_mkStr4(x_5, x_6, x_468, x_487); -x_489 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; -lean_inc(x_466); -x_490 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_490, 0, x_466); -lean_ctor_set(x_490, 1, x_489); -x_491 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; +x_457 = l_Lean_Name_mkStr4(x_5, x_6, x_438, x_456); +x_458 = lean_mk_syntax_ident(x_7); +lean_inc_ref(x_445); +lean_inc(x_436); +x_459 = l_Lean_Syntax_node2(x_436, x_457, x_458, x_445); +x_460 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_492 = l_Lean_Name_mkStr4(x_5, x_6, x_468, x_491); -x_493 = lean_mk_syntax_ident(x_7); -lean_inc_ref(x_475); -lean_inc(x_466); -x_494 = l_Lean_Syntax_node2(x_466, x_492, x_493, x_475); -x_495 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; +x_461 = l_Lean_Name_mkStr4(x_5, x_6, x_438, x_460); +x_462 = l_Array_append___redArg(x_444, x_8); +lean_inc(x_436); +x_463 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_463, 0, x_436); +lean_ctor_set(x_463, 1, x_443); +lean_ctor_set(x_463, 2, x_462); +x_464 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_496 = l_Lean_Name_mkStr4(x_5, x_6, x_468, x_495); -x_497 = l_Array_append___redArg(x_474, x_8); -lean_inc(x_466); -x_498 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_498, 0, x_466); -lean_ctor_set(x_498, 1, x_473); -lean_ctor_set(x_498, 2, x_497); -x_499 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; +x_465 = l_Lean_Name_mkStr4(x_5, x_6, x_9, x_464); +x_466 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; +lean_inc(x_436); +x_467 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_467, 0, x_436); +lean_ctor_set(x_467, 1, x_466); +x_468 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__12; +x_469 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__17; +x_470 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__18; +x_471 = l_Lean_addMacroScope(x_437, x_470, x_433); +lean_inc_ref(x_5); +x_472 = l_Lean_Name_mkStr2(x_5, x_468); +x_473 = lean_box(0); +lean_inc(x_472); +x_474 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_474, 0, x_472); +lean_ctor_set(x_474, 1, x_473); +x_475 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_475, 0, x_472); +x_476 = lean_box(0); +x_477 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_477, 0, x_475); +lean_ctor_set(x_477, 1, x_476); +x_478 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_478, 0, x_474); +lean_ctor_set(x_478, 1, x_477); +lean_inc(x_436); +x_479 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_479, 0, x_436); +lean_ctor_set(x_479, 1, x_469); +lean_ctor_set(x_479, 2, x_471); +lean_ctor_set(x_479, 3, x_478); +lean_inc(x_436); +x_480 = l_Lean_Syntax_node2(x_436, x_465, x_467, x_479); +lean_inc(x_436); +x_481 = l_Lean_Syntax_node1(x_436, x_443, x_480); +lean_inc(x_436); +x_482 = l_Lean_Syntax_node2(x_436, x_461, x_463, x_481); +x_483 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; lean_inc_ref(x_6); lean_inc_ref(x_5); -x_500 = l_Lean_Name_mkStr4(x_5, x_6, x_9, x_499); -x_501 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; -lean_inc(x_466); -x_502 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_502, 0, x_466); -lean_ctor_set(x_502, 1, x_501); -x_503 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__12; -x_504 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__17; -x_505 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__18; -x_506 = l_Lean_addMacroScope(x_467, x_505, x_463); -lean_inc_ref(x_5); -x_507 = l_Lean_Name_mkStr2(x_5, x_503); -x_508 = lean_box(0); -lean_inc(x_507); -x_509 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_509, 0, x_507); -lean_ctor_set(x_509, 1, x_508); -x_510 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_510, 0, x_507); -x_511 = lean_box(0); -x_512 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_512, 0, x_510); -lean_ctor_set(x_512, 1, x_511); -x_513 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_513, 0, x_509); -lean_ctor_set(x_513, 1, x_512); -lean_inc(x_466); -x_514 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_514, 0, x_466); -lean_ctor_set(x_514, 1, x_504); -lean_ctor_set(x_514, 2, x_506); -lean_ctor_set(x_514, 3, x_513); -lean_inc(x_466); -x_515 = l_Lean_Syntax_node2(x_466, x_500, x_502, x_514); -lean_inc(x_466); -x_516 = l_Lean_Syntax_node1(x_466, x_473, x_515); -lean_inc(x_466); -x_517 = l_Lean_Syntax_node2(x_466, x_496, x_498, x_516); -x_518 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; -lean_inc_ref(x_6); -lean_inc_ref(x_5); -x_519 = l_Lean_Name_mkStr4(x_5, x_6, x_468, x_518); -x_520 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; -lean_inc(x_466); -x_521 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_521, 0, x_466); -lean_ctor_set(x_521, 1, x_520); -x_522 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; -x_523 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; -x_524 = l_Lean_Name_mkStr4(x_5, x_6, x_522, x_523); -lean_inc_ref_n(x_475, 2); -lean_inc(x_466); -x_525 = l_Lean_Syntax_node2(x_466, x_524, x_475, x_475); -lean_inc_ref(x_475); -lean_inc(x_466); -x_526 = l_Lean_Syntax_node4(x_466, x_519, x_521, x_455, x_525, x_475); -lean_inc(x_466); -x_527 = l_Lean_Syntax_node5(x_466, x_488, x_490, x_494, x_517, x_526, x_475); -x_528 = l_Lean_Syntax_node2(x_466, x_470, x_486, x_527); -if (lean_is_scalar(x_461)) { - x_529 = lean_alloc_ctor(0, 2, 0); +x_484 = l_Lean_Name_mkStr4(x_5, x_6, x_438, x_483); +x_485 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; +lean_inc(x_436); +x_486 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_486, 0, x_436); +lean_ctor_set(x_486, 1, x_485); +x_487 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_488 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; +x_489 = l_Lean_Name_mkStr4(x_5, x_6, x_487, x_488); +lean_inc_ref_n(x_445, 2); +lean_inc(x_436); +x_490 = l_Lean_Syntax_node2(x_436, x_489, x_445, x_445); +lean_inc_ref(x_445); +lean_inc(x_436); +x_491 = l_Lean_Syntax_node4(x_436, x_484, x_486, x_425, x_490, x_445); +lean_inc(x_436); +x_492 = l_Lean_Syntax_node5(x_436, x_453, x_455, x_459, x_482, x_491, x_445); +x_493 = l_Lean_Syntax_node2(x_436, x_440, x_451, x_492); +if (lean_is_scalar(x_431)) { + x_494 = lean_alloc_ctor(0, 2, 0); } else { - x_529 = x_461; + x_494 = x_431; } -lean_ctor_set(x_529, 0, x_528); -lean_ctor_set(x_529, 1, x_460); -return x_529; +lean_ctor_set(x_494, 0, x_493); +lean_ctor_set(x_494, 1, x_430); +return x_494; } else { -lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; -lean_dec(x_447); +lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; +lean_dec(x_417); lean_dec(x_17); lean_dec_ref(x_16); lean_dec(x_15); @@ -15735,26 +15642,26 @@ lean_dec_ref(x_9); lean_dec(x_7); lean_dec_ref(x_6); lean_dec_ref(x_5); -x_530 = lean_ctor_get(x_451, 0); -lean_inc(x_530); -x_531 = lean_ctor_get(x_451, 1); -lean_inc(x_531); -if (lean_is_exclusive(x_451)) { - lean_ctor_release(x_451, 0); - lean_ctor_release(x_451, 1); - x_532 = x_451; +x_495 = lean_ctor_get(x_421, 0); +lean_inc(x_495); +x_496 = lean_ctor_get(x_421, 1); +lean_inc(x_496); +if (lean_is_exclusive(x_421)) { + lean_ctor_release(x_421, 0); + lean_ctor_release(x_421, 1); + x_497 = x_421; } else { - lean_dec_ref(x_451); - x_532 = lean_box(0); + lean_dec_ref(x_421); + x_497 = lean_box(0); } -if (lean_is_scalar(x_532)) { - x_533 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_497)) { + x_498 = lean_alloc_ctor(1, 2, 0); } else { - x_533 = x_532; + x_498 = x_497; } -lean_ctor_set(x_533, 0, x_530); -lean_ctor_set(x_533, 1, x_531); -return x_533; +lean_ctor_set(x_498, 0, x_495); +lean_ctor_set(x_498, 1, x_496); +return x_498; } } } @@ -15777,7 +15684,7 @@ return x_24; } else { -uint8_t x_534; +uint8_t x_499; lean_dec(x_17); lean_dec_ref(x_16); lean_dec(x_15); @@ -15790,23 +15697,23 @@ lean_dec(x_7); lean_dec_ref(x_6); lean_dec_ref(x_5); lean_dec_ref(x_3); -x_534 = !lean_is_exclusive(x_21); -if (x_534 == 0) +x_499 = !lean_is_exclusive(x_21); +if (x_499 == 0) { return x_21; } else { -lean_object* x_535; lean_object* x_536; lean_object* x_537; -x_535 = lean_ctor_get(x_21, 0); -x_536 = lean_ctor_get(x_21, 1); -lean_inc(x_536); -lean_inc(x_535); +lean_object* x_500; lean_object* x_501; lean_object* x_502; +x_500 = lean_ctor_get(x_21, 0); +x_501 = lean_ctor_get(x_21, 1); +lean_inc(x_501); +lean_inc(x_500); lean_dec(x_21); -x_537 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_537, 0, x_535); -lean_ctor_set(x_537, 1, x_536); -return x_537; +x_502 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_502, 0, x_500); +lean_ctor_set(x_502, 1, x_501); +return x_502; } } } @@ -16167,501 +16074,465 @@ if (lean_is_exclusive(x_24)) { } if (x_10 == 0) { -uint8_t x_341; -x_341 = lean_ctor_get_uint8(x_5, sizeof(void*)*6); -if (x_341 == 0) +uint8_t x_321; +x_321 = lean_ctor_get_uint8(x_5, sizeof(void*)*6); +if (x_321 == 0) { -lean_object* x_342; uint8_t x_343; +lean_object* x_322; uint8_t x_323; lean_dec(x_27); lean_dec(x_15); lean_dec_ref(x_14); lean_dec(x_13); lean_dec_ref(x_12); lean_dec_ref(x_2); -x_342 = l_Lean_Elab_Deriving_mkInductiveApp___redArg(x_5, x_4, x_16, x_17, x_26); -x_343 = !lean_is_exclusive(x_342); -if (x_343 == 0) +x_322 = l_Lean_Elab_Deriving_mkInductiveApp___redArg(x_5, x_4, x_16, x_17, x_26); +x_323 = !lean_is_exclusive(x_322); +if (x_323 == 0) { -lean_object* x_344; lean_object* x_345; lean_object* x_346; uint8_t x_347; -x_344 = lean_ctor_get(x_342, 0); -x_345 = lean_ctor_get(x_342, 1); -x_346 = lean_st_ref_get(x_17, x_345); +lean_object* x_324; lean_object* x_325; lean_object* x_326; uint8_t x_327; +x_324 = lean_ctor_get(x_322, 0); +x_325 = lean_ctor_get(x_322, 1); +x_326 = lean_st_ref_get(x_17, x_325); lean_dec(x_17); -x_347 = !lean_is_exclusive(x_346); -if (x_347 == 0) +x_327 = !lean_is_exclusive(x_326); +if (x_327 == 0) { -lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; -x_348 = lean_ctor_get(x_346, 0); -x_349 = lean_ctor_get(x_16, 5); -lean_inc(x_349); -x_350 = lean_ctor_get(x_16, 10); -lean_inc(x_350); +lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; +x_328 = lean_ctor_get(x_326, 0); +x_329 = lean_ctor_get(x_16, 5); +lean_inc(x_329); +x_330 = lean_ctor_get(x_16, 10); +lean_inc(x_330); lean_dec_ref(x_16); -x_351 = lean_ctor_get(x_348, 0); -lean_inc_ref(x_351); -lean_dec(x_348); -x_352 = l_Lean_SourceInfo_fromRef(x_349, x_341); -lean_dec(x_349); -x_353 = l_Lean_Environment_mainModule(x_351); -lean_dec_ref(x_351); -x_354 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; -x_355 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; +x_331 = lean_ctor_get(x_328, 0); +lean_inc_ref(x_331); +lean_dec(x_328); +x_332 = l_Lean_SourceInfo_fromRef(x_329, x_321); +lean_dec(x_329); +x_333 = l_Lean_Environment_mainModule(x_331); +lean_dec_ref(x_331); +x_334 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; +x_335 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_356 = l_Lean_Name_mkStr4(x_3, x_6, x_354, x_355); -x_357 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; +x_336 = l_Lean_Name_mkStr4(x_3, x_6, x_334, x_335); +x_337 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_358 = l_Lean_Name_mkStr4(x_3, x_6, x_354, x_357); -x_359 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; -x_360 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; -lean_inc(x_352); -x_361 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_361, 0, x_352); -lean_ctor_set(x_361, 1, x_359); -lean_ctor_set(x_361, 2, x_360); -x_362 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; +x_338 = l_Lean_Name_mkStr4(x_3, x_6, x_334, x_337); +x_339 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; +x_340 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; +lean_inc(x_332); +x_341 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_341, 0, x_332); +lean_ctor_set(x_341, 1, x_339); +lean_ctor_set(x_341, 2, x_340); +lean_inc_ref_n(x_341, 6); +lean_inc(x_332); +x_342 = l_Lean_Syntax_node6(x_332, x_338, x_341, x_341, x_341, x_341, x_341, x_341); +x_343 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_363 = l_Lean_Name_mkStr4(x_3, x_6, x_354, x_362); -lean_inc(x_352); -lean_ctor_set_tag(x_342, 2); -lean_ctor_set(x_342, 1, x_362); -lean_ctor_set(x_342, 0, x_352); -lean_inc(x_352); -x_364 = l_Lean_Syntax_node1(x_352, x_363, x_342); -lean_inc(x_352); -x_365 = l_Lean_Syntax_node1(x_352, x_359, x_364); -lean_inc_ref_n(x_361, 5); -lean_inc(x_352); -x_366 = l_Lean_Syntax_node6(x_352, x_358, x_361, x_361, x_365, x_361, x_361, x_361); -x_367 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +x_344 = l_Lean_Name_mkStr4(x_3, x_6, x_334, x_343); +x_345 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_inc(x_332); +lean_ctor_set_tag(x_322, 2); +lean_ctor_set(x_322, 1, x_345); +lean_ctor_set(x_322, 0, x_332); +x_346 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_368 = l_Lean_Name_mkStr4(x_3, x_6, x_354, x_367); -x_369 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; -lean_inc(x_352); -x_370 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_370, 0, x_352); -lean_ctor_set(x_370, 1, x_369); -x_371 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; +x_347 = l_Lean_Name_mkStr4(x_3, x_6, x_334, x_346); +x_348 = lean_mk_syntax_ident(x_7); +lean_inc_ref(x_341); +lean_inc(x_332); +x_349 = l_Lean_Syntax_node2(x_332, x_347, x_348, x_341); +x_350 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_372 = l_Lean_Name_mkStr4(x_3, x_6, x_354, x_371); -x_373 = lean_mk_syntax_ident(x_7); -lean_inc_ref(x_361); -lean_inc(x_352); -x_374 = l_Lean_Syntax_node2(x_352, x_372, x_373, x_361); -x_375 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; -lean_inc_ref(x_6); -lean_inc_ref(x_3); -x_376 = l_Lean_Name_mkStr4(x_3, x_6, x_354, x_375); -x_377 = l_Array_append___redArg(x_360, x_8); -lean_inc(x_352); -x_378 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_378, 0, x_352); -lean_ctor_set(x_378, 1, x_359); -lean_ctor_set(x_378, 2, x_377); -x_379 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; +x_351 = l_Lean_Name_mkStr4(x_3, x_6, x_334, x_350); +x_352 = l_Array_append___redArg(x_340, x_8); +lean_inc(x_332); +x_353 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_353, 0, x_332); +lean_ctor_set(x_353, 1, x_339); +lean_ctor_set(x_353, 2, x_352); +x_354 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; lean_inc_ref(x_9); lean_inc_ref(x_6); lean_inc_ref(x_3); -x_380 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_379); -x_381 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; -lean_inc(x_352); -x_382 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_382, 0, x_352); -lean_ctor_set(x_382, 1, x_381); -x_383 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__6; +x_355 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_354); +x_356 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; +lean_inc(x_332); +x_357 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_357, 0, x_332); +lean_ctor_set(x_357, 1, x_356); +x_358 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_384 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_383); -x_385 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0; -x_386 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__1; -lean_inc(x_350); -lean_inc(x_353); -x_387 = l_Lean_addMacroScope(x_353, x_386, x_350); -x_388 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__5; -lean_inc(x_352); -x_389 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_389, 0, x_352); -lean_ctor_set(x_389, 1, x_385); -lean_ctor_set(x_389, 2, x_387); -lean_ctor_set(x_389, 3, x_388); -x_390 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__7; -x_391 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__8; -x_392 = l_Lean_addMacroScope(x_353, x_391, x_350); -x_393 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__12; -lean_inc(x_352); -x_394 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_394, 0, x_352); -lean_ctor_set(x_394, 1, x_390); -lean_ctor_set(x_394, 2, x_392); -lean_ctor_set(x_394, 3, x_393); -lean_inc(x_352); -x_395 = l_Lean_Syntax_node2(x_352, x_359, x_394, x_344); -lean_inc(x_352); -x_396 = l_Lean_Syntax_node2(x_352, x_384, x_389, x_395); -lean_inc(x_352); -x_397 = l_Lean_Syntax_node2(x_352, x_380, x_382, x_396); -lean_inc(x_352); -x_398 = l_Lean_Syntax_node1(x_352, x_359, x_397); -lean_inc(x_352); -x_399 = l_Lean_Syntax_node2(x_352, x_376, x_378, x_398); -x_400 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_359 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_358); +x_360 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0; +x_361 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__1; +lean_inc(x_330); +lean_inc(x_333); +x_362 = l_Lean_addMacroScope(x_333, x_361, x_330); +x_363 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__5; +lean_inc(x_332); +x_364 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_364, 0, x_332); +lean_ctor_set(x_364, 1, x_360); +lean_ctor_set(x_364, 2, x_362); +lean_ctor_set(x_364, 3, x_363); +x_365 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__7; +x_366 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__8; +x_367 = l_Lean_addMacroScope(x_333, x_366, x_330); +x_368 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__12; +lean_inc(x_332); +x_369 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_369, 0, x_332); +lean_ctor_set(x_369, 1, x_365); +lean_ctor_set(x_369, 2, x_367); +lean_ctor_set(x_369, 3, x_368); +lean_inc(x_332); +x_370 = l_Lean_Syntax_node2(x_332, x_339, x_369, x_324); +lean_inc(x_332); +x_371 = l_Lean_Syntax_node2(x_332, x_359, x_364, x_370); +lean_inc(x_332); +x_372 = l_Lean_Syntax_node2(x_332, x_355, x_357, x_371); +lean_inc(x_332); +x_373 = l_Lean_Syntax_node1(x_332, x_339, x_372); +lean_inc(x_332); +x_374 = l_Lean_Syntax_node2(x_332, x_351, x_353, x_373); +x_375 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_401 = l_Lean_Name_mkStr4(x_3, x_6, x_354, x_400); -x_402 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; -lean_inc(x_352); -x_403 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_403, 0, x_352); -lean_ctor_set(x_403, 1, x_402); -x_404 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; -x_405 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; -x_406 = l_Lean_Name_mkStr4(x_3, x_6, x_404, x_405); -lean_inc_ref_n(x_361, 2); -lean_inc(x_352); -x_407 = l_Lean_Syntax_node2(x_352, x_406, x_361, x_361); -lean_inc_ref(x_361); -lean_inc(x_352); -x_408 = l_Lean_Syntax_node4(x_352, x_401, x_403, x_25, x_407, x_361); -lean_inc(x_352); -x_409 = l_Lean_Syntax_node5(x_352, x_368, x_370, x_374, x_399, x_408, x_361); -x_410 = l_Lean_Syntax_node2(x_352, x_356, x_366, x_409); -lean_ctor_set(x_346, 0, x_410); -return x_346; +x_376 = l_Lean_Name_mkStr4(x_3, x_6, x_334, x_375); +x_377 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; +lean_inc(x_332); +x_378 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_378, 0, x_332); +lean_ctor_set(x_378, 1, x_377); +x_379 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_380 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; +x_381 = l_Lean_Name_mkStr4(x_3, x_6, x_379, x_380); +lean_inc_ref_n(x_341, 2); +lean_inc(x_332); +x_382 = l_Lean_Syntax_node2(x_332, x_381, x_341, x_341); +lean_inc_ref(x_341); +lean_inc(x_332); +x_383 = l_Lean_Syntax_node4(x_332, x_376, x_378, x_25, x_382, x_341); +lean_inc(x_332); +x_384 = l_Lean_Syntax_node5(x_332, x_344, x_322, x_349, x_374, x_383, x_341); +x_385 = l_Lean_Syntax_node2(x_332, x_336, x_342, x_384); +lean_ctor_set(x_326, 0, x_385); +return x_326; } else { -lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; -x_411 = lean_ctor_get(x_346, 0); -x_412 = lean_ctor_get(x_346, 1); -lean_inc(x_412); -lean_inc(x_411); -lean_dec(x_346); -x_413 = lean_ctor_get(x_16, 5); -lean_inc(x_413); -x_414 = lean_ctor_get(x_16, 10); -lean_inc(x_414); +lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; +x_386 = lean_ctor_get(x_326, 0); +x_387 = lean_ctor_get(x_326, 1); +lean_inc(x_387); +lean_inc(x_386); +lean_dec(x_326); +x_388 = lean_ctor_get(x_16, 5); +lean_inc(x_388); +x_389 = lean_ctor_get(x_16, 10); +lean_inc(x_389); lean_dec_ref(x_16); -x_415 = lean_ctor_get(x_411, 0); -lean_inc_ref(x_415); -lean_dec(x_411); -x_416 = l_Lean_SourceInfo_fromRef(x_413, x_341); -lean_dec(x_413); -x_417 = l_Lean_Environment_mainModule(x_415); -lean_dec_ref(x_415); -x_418 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; -x_419 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; +x_390 = lean_ctor_get(x_386, 0); +lean_inc_ref(x_390); +lean_dec(x_386); +x_391 = l_Lean_SourceInfo_fromRef(x_388, x_321); +lean_dec(x_388); +x_392 = l_Lean_Environment_mainModule(x_390); +lean_dec_ref(x_390); +x_393 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; +x_394 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_420 = l_Lean_Name_mkStr4(x_3, x_6, x_418, x_419); -x_421 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; +x_395 = l_Lean_Name_mkStr4(x_3, x_6, x_393, x_394); +x_396 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_422 = l_Lean_Name_mkStr4(x_3, x_6, x_418, x_421); -x_423 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; -x_424 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; -lean_inc(x_416); -x_425 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_425, 0, x_416); -lean_ctor_set(x_425, 1, x_423); -lean_ctor_set(x_425, 2, x_424); -x_426 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; +x_397 = l_Lean_Name_mkStr4(x_3, x_6, x_393, x_396); +x_398 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; +x_399 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; +lean_inc(x_391); +x_400 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_400, 0, x_391); +lean_ctor_set(x_400, 1, x_398); +lean_ctor_set(x_400, 2, x_399); +lean_inc_ref_n(x_400, 6); +lean_inc(x_391); +x_401 = l_Lean_Syntax_node6(x_391, x_397, x_400, x_400, x_400, x_400, x_400, x_400); +x_402 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_427 = l_Lean_Name_mkStr4(x_3, x_6, x_418, x_426); -lean_inc(x_416); -lean_ctor_set_tag(x_342, 2); -lean_ctor_set(x_342, 1, x_426); -lean_ctor_set(x_342, 0, x_416); -lean_inc(x_416); -x_428 = l_Lean_Syntax_node1(x_416, x_427, x_342); -lean_inc(x_416); -x_429 = l_Lean_Syntax_node1(x_416, x_423, x_428); -lean_inc_ref_n(x_425, 5); -lean_inc(x_416); -x_430 = l_Lean_Syntax_node6(x_416, x_422, x_425, x_425, x_429, x_425, x_425, x_425); -x_431 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +x_403 = l_Lean_Name_mkStr4(x_3, x_6, x_393, x_402); +x_404 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_inc(x_391); +lean_ctor_set_tag(x_322, 2); +lean_ctor_set(x_322, 1, x_404); +lean_ctor_set(x_322, 0, x_391); +x_405 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_432 = l_Lean_Name_mkStr4(x_3, x_6, x_418, x_431); -x_433 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; -lean_inc(x_416); -x_434 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_434, 0, x_416); -lean_ctor_set(x_434, 1, x_433); -x_435 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; +x_406 = l_Lean_Name_mkStr4(x_3, x_6, x_393, x_405); +x_407 = lean_mk_syntax_ident(x_7); +lean_inc_ref(x_400); +lean_inc(x_391); +x_408 = l_Lean_Syntax_node2(x_391, x_406, x_407, x_400); +x_409 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_436 = l_Lean_Name_mkStr4(x_3, x_6, x_418, x_435); -x_437 = lean_mk_syntax_ident(x_7); -lean_inc_ref(x_425); -lean_inc(x_416); -x_438 = l_Lean_Syntax_node2(x_416, x_436, x_437, x_425); -x_439 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; -lean_inc_ref(x_6); -lean_inc_ref(x_3); -x_440 = l_Lean_Name_mkStr4(x_3, x_6, x_418, x_439); -x_441 = l_Array_append___redArg(x_424, x_8); -lean_inc(x_416); -x_442 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_442, 0, x_416); -lean_ctor_set(x_442, 1, x_423); -lean_ctor_set(x_442, 2, x_441); -x_443 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; +x_410 = l_Lean_Name_mkStr4(x_3, x_6, x_393, x_409); +x_411 = l_Array_append___redArg(x_399, x_8); +lean_inc(x_391); +x_412 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_412, 0, x_391); +lean_ctor_set(x_412, 1, x_398); +lean_ctor_set(x_412, 2, x_411); +x_413 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; lean_inc_ref(x_9); lean_inc_ref(x_6); lean_inc_ref(x_3); -x_444 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_443); -x_445 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; -lean_inc(x_416); -x_446 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_446, 0, x_416); -lean_ctor_set(x_446, 1, x_445); -x_447 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__6; +x_414 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_413); +x_415 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; +lean_inc(x_391); +x_416 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_416, 0, x_391); +lean_ctor_set(x_416, 1, x_415); +x_417 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_448 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_447); -x_449 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0; -x_450 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__1; -lean_inc(x_414); -lean_inc(x_417); -x_451 = l_Lean_addMacroScope(x_417, x_450, x_414); -x_452 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__5; -lean_inc(x_416); -x_453 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_453, 0, x_416); -lean_ctor_set(x_453, 1, x_449); -lean_ctor_set(x_453, 2, x_451); -lean_ctor_set(x_453, 3, x_452); -x_454 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__7; -x_455 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__8; -x_456 = l_Lean_addMacroScope(x_417, x_455, x_414); -x_457 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__12; -lean_inc(x_416); -x_458 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_458, 0, x_416); -lean_ctor_set(x_458, 1, x_454); -lean_ctor_set(x_458, 2, x_456); -lean_ctor_set(x_458, 3, x_457); -lean_inc(x_416); -x_459 = l_Lean_Syntax_node2(x_416, x_423, x_458, x_344); -lean_inc(x_416); -x_460 = l_Lean_Syntax_node2(x_416, x_448, x_453, x_459); -lean_inc(x_416); -x_461 = l_Lean_Syntax_node2(x_416, x_444, x_446, x_460); -lean_inc(x_416); -x_462 = l_Lean_Syntax_node1(x_416, x_423, x_461); -lean_inc(x_416); -x_463 = l_Lean_Syntax_node2(x_416, x_440, x_442, x_462); -x_464 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_418 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_417); +x_419 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0; +x_420 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__1; +lean_inc(x_389); +lean_inc(x_392); +x_421 = l_Lean_addMacroScope(x_392, x_420, x_389); +x_422 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__5; +lean_inc(x_391); +x_423 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_423, 0, x_391); +lean_ctor_set(x_423, 1, x_419); +lean_ctor_set(x_423, 2, x_421); +lean_ctor_set(x_423, 3, x_422); +x_424 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__7; +x_425 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__8; +x_426 = l_Lean_addMacroScope(x_392, x_425, x_389); +x_427 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__12; +lean_inc(x_391); +x_428 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_428, 0, x_391); +lean_ctor_set(x_428, 1, x_424); +lean_ctor_set(x_428, 2, x_426); +lean_ctor_set(x_428, 3, x_427); +lean_inc(x_391); +x_429 = l_Lean_Syntax_node2(x_391, x_398, x_428, x_324); +lean_inc(x_391); +x_430 = l_Lean_Syntax_node2(x_391, x_418, x_423, x_429); +lean_inc(x_391); +x_431 = l_Lean_Syntax_node2(x_391, x_414, x_416, x_430); +lean_inc(x_391); +x_432 = l_Lean_Syntax_node1(x_391, x_398, x_431); +lean_inc(x_391); +x_433 = l_Lean_Syntax_node2(x_391, x_410, x_412, x_432); +x_434 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_465 = l_Lean_Name_mkStr4(x_3, x_6, x_418, x_464); -x_466 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; -lean_inc(x_416); -x_467 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_467, 0, x_416); -lean_ctor_set(x_467, 1, x_466); -x_468 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; -x_469 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; -x_470 = l_Lean_Name_mkStr4(x_3, x_6, x_468, x_469); -lean_inc_ref_n(x_425, 2); -lean_inc(x_416); -x_471 = l_Lean_Syntax_node2(x_416, x_470, x_425, x_425); -lean_inc_ref(x_425); -lean_inc(x_416); -x_472 = l_Lean_Syntax_node4(x_416, x_465, x_467, x_25, x_471, x_425); -lean_inc(x_416); -x_473 = l_Lean_Syntax_node5(x_416, x_432, x_434, x_438, x_463, x_472, x_425); -x_474 = l_Lean_Syntax_node2(x_416, x_420, x_430, x_473); -x_475 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_475, 0, x_474); -lean_ctor_set(x_475, 1, x_412); -return x_475; +x_435 = l_Lean_Name_mkStr4(x_3, x_6, x_393, x_434); +x_436 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; +lean_inc(x_391); +x_437 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_437, 0, x_391); +lean_ctor_set(x_437, 1, x_436); +x_438 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_439 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; +x_440 = l_Lean_Name_mkStr4(x_3, x_6, x_438, x_439); +lean_inc_ref_n(x_400, 2); +lean_inc(x_391); +x_441 = l_Lean_Syntax_node2(x_391, x_440, x_400, x_400); +lean_inc_ref(x_400); +lean_inc(x_391); +x_442 = l_Lean_Syntax_node4(x_391, x_435, x_437, x_25, x_441, x_400); +lean_inc(x_391); +x_443 = l_Lean_Syntax_node5(x_391, x_403, x_322, x_408, x_433, x_442, x_400); +x_444 = l_Lean_Syntax_node2(x_391, x_395, x_401, x_443); +x_445 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_445, 0, x_444); +lean_ctor_set(x_445, 1, x_387); +return x_445; } } else { -lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; -x_476 = lean_ctor_get(x_342, 0); -x_477 = lean_ctor_get(x_342, 1); -lean_inc(x_477); -lean_inc(x_476); -lean_dec(x_342); -x_478 = lean_st_ref_get(x_17, x_477); +lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; +x_446 = lean_ctor_get(x_322, 0); +x_447 = lean_ctor_get(x_322, 1); +lean_inc(x_447); +lean_inc(x_446); +lean_dec(x_322); +x_448 = lean_st_ref_get(x_17, x_447); lean_dec(x_17); -x_479 = lean_ctor_get(x_478, 0); -lean_inc(x_479); -x_480 = lean_ctor_get(x_478, 1); -lean_inc(x_480); -if (lean_is_exclusive(x_478)) { - lean_ctor_release(x_478, 0); - lean_ctor_release(x_478, 1); - x_481 = x_478; +x_449 = lean_ctor_get(x_448, 0); +lean_inc(x_449); +x_450 = lean_ctor_get(x_448, 1); +lean_inc(x_450); +if (lean_is_exclusive(x_448)) { + lean_ctor_release(x_448, 0); + lean_ctor_release(x_448, 1); + x_451 = x_448; } else { - lean_dec_ref(x_478); - x_481 = lean_box(0); + lean_dec_ref(x_448); + x_451 = lean_box(0); } -x_482 = lean_ctor_get(x_16, 5); -lean_inc(x_482); -x_483 = lean_ctor_get(x_16, 10); -lean_inc(x_483); +x_452 = lean_ctor_get(x_16, 5); +lean_inc(x_452); +x_453 = lean_ctor_get(x_16, 10); +lean_inc(x_453); lean_dec_ref(x_16); -x_484 = lean_ctor_get(x_479, 0); -lean_inc_ref(x_484); -lean_dec(x_479); -x_485 = l_Lean_SourceInfo_fromRef(x_482, x_341); -lean_dec(x_482); -x_486 = l_Lean_Environment_mainModule(x_484); -lean_dec_ref(x_484); -x_487 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; -x_488 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; +x_454 = lean_ctor_get(x_449, 0); +lean_inc_ref(x_454); +lean_dec(x_449); +x_455 = l_Lean_SourceInfo_fromRef(x_452, x_321); +lean_dec(x_452); +x_456 = l_Lean_Environment_mainModule(x_454); +lean_dec_ref(x_454); +x_457 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; +x_458 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_489 = l_Lean_Name_mkStr4(x_3, x_6, x_487, x_488); -x_490 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; +x_459 = l_Lean_Name_mkStr4(x_3, x_6, x_457, x_458); +x_460 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_491 = l_Lean_Name_mkStr4(x_3, x_6, x_487, x_490); -x_492 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; -x_493 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; -lean_inc(x_485); -x_494 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_494, 0, x_485); -lean_ctor_set(x_494, 1, x_492); -lean_ctor_set(x_494, 2, x_493); -x_495 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; +x_461 = l_Lean_Name_mkStr4(x_3, x_6, x_457, x_460); +x_462 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; +x_463 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; +lean_inc(x_455); +x_464 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_464, 0, x_455); +lean_ctor_set(x_464, 1, x_462); +lean_ctor_set(x_464, 2, x_463); +lean_inc_ref_n(x_464, 6); +lean_inc(x_455); +x_465 = l_Lean_Syntax_node6(x_455, x_461, x_464, x_464, x_464, x_464, x_464, x_464); +x_466 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_496 = l_Lean_Name_mkStr4(x_3, x_6, x_487, x_495); -lean_inc(x_485); -x_497 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_497, 0, x_485); -lean_ctor_set(x_497, 1, x_495); -lean_inc(x_485); -x_498 = l_Lean_Syntax_node1(x_485, x_496, x_497); -lean_inc(x_485); -x_499 = l_Lean_Syntax_node1(x_485, x_492, x_498); -lean_inc_ref_n(x_494, 5); -lean_inc(x_485); -x_500 = l_Lean_Syntax_node6(x_485, x_491, x_494, x_494, x_499, x_494, x_494, x_494); -x_501 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +x_467 = l_Lean_Name_mkStr4(x_3, x_6, x_457, x_466); +x_468 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_inc(x_455); +x_469 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_469, 0, x_455); +lean_ctor_set(x_469, 1, x_468); +x_470 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_502 = l_Lean_Name_mkStr4(x_3, x_6, x_487, x_501); -x_503 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; -lean_inc(x_485); -x_504 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_504, 0, x_485); -lean_ctor_set(x_504, 1, x_503); -x_505 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; +x_471 = l_Lean_Name_mkStr4(x_3, x_6, x_457, x_470); +x_472 = lean_mk_syntax_ident(x_7); +lean_inc_ref(x_464); +lean_inc(x_455); +x_473 = l_Lean_Syntax_node2(x_455, x_471, x_472, x_464); +x_474 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_506 = l_Lean_Name_mkStr4(x_3, x_6, x_487, x_505); -x_507 = lean_mk_syntax_ident(x_7); -lean_inc_ref(x_494); -lean_inc(x_485); -x_508 = l_Lean_Syntax_node2(x_485, x_506, x_507, x_494); -x_509 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; -lean_inc_ref(x_6); -lean_inc_ref(x_3); -x_510 = l_Lean_Name_mkStr4(x_3, x_6, x_487, x_509); -x_511 = l_Array_append___redArg(x_493, x_8); -lean_inc(x_485); -x_512 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_512, 0, x_485); -lean_ctor_set(x_512, 1, x_492); -lean_ctor_set(x_512, 2, x_511); -x_513 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; +x_475 = l_Lean_Name_mkStr4(x_3, x_6, x_457, x_474); +x_476 = l_Array_append___redArg(x_463, x_8); +lean_inc(x_455); +x_477 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_477, 0, x_455); +lean_ctor_set(x_477, 1, x_462); +lean_ctor_set(x_477, 2, x_476); +x_478 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; lean_inc_ref(x_9); lean_inc_ref(x_6); lean_inc_ref(x_3); -x_514 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_513); -x_515 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; -lean_inc(x_485); -x_516 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_516, 0, x_485); -lean_ctor_set(x_516, 1, x_515); -x_517 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__6; +x_479 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_478); +x_480 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; +lean_inc(x_455); +x_481 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_481, 0, x_455); +lean_ctor_set(x_481, 1, x_480); +x_482 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_518 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_517); -x_519 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0; -x_520 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__1; -lean_inc(x_483); -lean_inc(x_486); -x_521 = l_Lean_addMacroScope(x_486, x_520, x_483); -x_522 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__5; -lean_inc(x_485); -x_523 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_523, 0, x_485); -lean_ctor_set(x_523, 1, x_519); -lean_ctor_set(x_523, 2, x_521); -lean_ctor_set(x_523, 3, x_522); -x_524 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__7; -x_525 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__8; -x_526 = l_Lean_addMacroScope(x_486, x_525, x_483); -x_527 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__12; -lean_inc(x_485); -x_528 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_528, 0, x_485); -lean_ctor_set(x_528, 1, x_524); -lean_ctor_set(x_528, 2, x_526); -lean_ctor_set(x_528, 3, x_527); -lean_inc(x_485); -x_529 = l_Lean_Syntax_node2(x_485, x_492, x_528, x_476); -lean_inc(x_485); -x_530 = l_Lean_Syntax_node2(x_485, x_518, x_523, x_529); -lean_inc(x_485); -x_531 = l_Lean_Syntax_node2(x_485, x_514, x_516, x_530); -lean_inc(x_485); -x_532 = l_Lean_Syntax_node1(x_485, x_492, x_531); -lean_inc(x_485); -x_533 = l_Lean_Syntax_node2(x_485, x_510, x_512, x_532); -x_534 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_483 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_482); +x_484 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0; +x_485 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__1; +lean_inc(x_453); +lean_inc(x_456); +x_486 = l_Lean_addMacroScope(x_456, x_485, x_453); +x_487 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__5; +lean_inc(x_455); +x_488 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_488, 0, x_455); +lean_ctor_set(x_488, 1, x_484); +lean_ctor_set(x_488, 2, x_486); +lean_ctor_set(x_488, 3, x_487); +x_489 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__7; +x_490 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__8; +x_491 = l_Lean_addMacroScope(x_456, x_490, x_453); +x_492 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__12; +lean_inc(x_455); +x_493 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_493, 0, x_455); +lean_ctor_set(x_493, 1, x_489); +lean_ctor_set(x_493, 2, x_491); +lean_ctor_set(x_493, 3, x_492); +lean_inc(x_455); +x_494 = l_Lean_Syntax_node2(x_455, x_462, x_493, x_446); +lean_inc(x_455); +x_495 = l_Lean_Syntax_node2(x_455, x_483, x_488, x_494); +lean_inc(x_455); +x_496 = l_Lean_Syntax_node2(x_455, x_479, x_481, x_495); +lean_inc(x_455); +x_497 = l_Lean_Syntax_node1(x_455, x_462, x_496); +lean_inc(x_455); +x_498 = l_Lean_Syntax_node2(x_455, x_475, x_477, x_497); +x_499 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_535 = l_Lean_Name_mkStr4(x_3, x_6, x_487, x_534); -x_536 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; -lean_inc(x_485); -x_537 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_537, 0, x_485); -lean_ctor_set(x_537, 1, x_536); -x_538 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; -x_539 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; -x_540 = l_Lean_Name_mkStr4(x_3, x_6, x_538, x_539); -lean_inc_ref_n(x_494, 2); -lean_inc(x_485); -x_541 = l_Lean_Syntax_node2(x_485, x_540, x_494, x_494); -lean_inc_ref(x_494); -lean_inc(x_485); -x_542 = l_Lean_Syntax_node4(x_485, x_535, x_537, x_25, x_541, x_494); -lean_inc(x_485); -x_543 = l_Lean_Syntax_node5(x_485, x_502, x_504, x_508, x_533, x_542, x_494); -x_544 = l_Lean_Syntax_node2(x_485, x_489, x_500, x_543); -if (lean_is_scalar(x_481)) { - x_545 = lean_alloc_ctor(0, 2, 0); +x_500 = l_Lean_Name_mkStr4(x_3, x_6, x_457, x_499); +x_501 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; +lean_inc(x_455); +x_502 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_502, 0, x_455); +lean_ctor_set(x_502, 1, x_501); +x_503 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_504 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; +x_505 = l_Lean_Name_mkStr4(x_3, x_6, x_503, x_504); +lean_inc_ref_n(x_464, 2); +lean_inc(x_455); +x_506 = l_Lean_Syntax_node2(x_455, x_505, x_464, x_464); +lean_inc_ref(x_464); +lean_inc(x_455); +x_507 = l_Lean_Syntax_node4(x_455, x_500, x_502, x_25, x_506, x_464); +lean_inc(x_455); +x_508 = l_Lean_Syntax_node5(x_455, x_467, x_469, x_473, x_498, x_507, x_464); +x_509 = l_Lean_Syntax_node2(x_455, x_459, x_465, x_508); +if (lean_is_scalar(x_451)) { + x_510 = lean_alloc_ctor(0, 2, 0); } else { - x_545 = x_481; + x_510 = x_451; } -lean_ctor_set(x_545, 0, x_544); -lean_ctor_set(x_545, 1, x_480); -return x_545; +lean_ctor_set(x_510, 0, x_509); +lean_ctor_set(x_510, 1, x_450); +return x_510; } } else { -goto block_340; +goto block_320; } } else { -goto block_340; +goto block_320; } -block_340: +block_320: { lean_object* x_28; lean_object* x_29; lean_object* x_30; x_28 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__0; @@ -16708,7 +16579,7 @@ lean_dec(x_17); x_42 = !lean_is_exclusive(x_41); if (x_42 == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; x_43 = lean_ctor_get(x_41, 0); x_44 = lean_ctor_get(x_16, 5); lean_inc(x_44); @@ -16739,7 +16610,7 @@ x_57 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_57, 0, x_48); lean_ctor_set(x_57, 1, x_55); lean_ctor_set(x_57, 2, x_56); -x_58 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; +x_58 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; lean_inc_ref(x_6); lean_inc_ref(x_3); x_59 = l_Lean_Name_mkStr4(x_3, x_6, x_50, x_58); @@ -16751,687 +16622,639 @@ lean_inc(x_48); x_60 = l_Lean_Syntax_node1(x_48, x_59, x_37); lean_inc(x_48); x_61 = l_Lean_Syntax_node1(x_48, x_55, x_60); -x_62 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__12; +lean_inc_ref_n(x_57, 5); +lean_inc(x_48); +x_62 = l_Lean_Syntax_node6(x_48, x_54, x_57, x_57, x_57, x_57, x_57, x_61); +x_63 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_63 = l_Lean_Name_mkStr4(x_3, x_6, x_50, x_62); +x_64 = l_Lean_Name_mkStr4(x_3, x_6, x_50, x_63); +x_65 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; lean_inc(x_48); lean_ctor_set_tag(x_33, 2); -lean_ctor_set(x_33, 1, x_62); +lean_ctor_set(x_33, 1, x_65); lean_ctor_set(x_33, 0, x_48); -lean_inc(x_48); -x_64 = l_Lean_Syntax_node1(x_48, x_63, x_33); -lean_inc(x_48); -x_65 = l_Lean_Syntax_node1(x_48, x_55, x_64); -lean_inc_ref_n(x_57, 4); -lean_inc(x_48); -x_66 = l_Lean_Syntax_node6(x_48, x_54, x_57, x_57, x_61, x_57, x_57, x_65); -x_67 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +x_66 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_68 = l_Lean_Name_mkStr4(x_3, x_6, x_50, x_67); -x_69 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; -lean_inc(x_48); -if (lean_is_scalar(x_27)) { - x_70 = lean_alloc_ctor(2, 2, 0); -} else { - x_70 = x_27; - lean_ctor_set_tag(x_70, 2); -} -lean_ctor_set(x_70, 0, x_48); -lean_ctor_set(x_70, 1, x_69); -x_71 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; -lean_inc_ref(x_6); -lean_inc_ref(x_3); -x_72 = l_Lean_Name_mkStr4(x_3, x_6, x_50, x_71); -x_73 = lean_mk_syntax_ident(x_7); +x_67 = l_Lean_Name_mkStr4(x_3, x_6, x_50, x_66); +x_68 = lean_mk_syntax_ident(x_7); lean_inc_ref(x_57); lean_inc(x_48); -x_74 = l_Lean_Syntax_node2(x_48, x_72, x_73, x_57); -x_75 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; +x_69 = l_Lean_Syntax_node2(x_48, x_67, x_68, x_57); +x_70 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_76 = l_Lean_Name_mkStr4(x_3, x_6, x_50, x_75); -x_77 = l_Array_append___redArg(x_56, x_8); +x_71 = l_Lean_Name_mkStr4(x_3, x_6, x_50, x_70); +x_72 = l_Array_append___redArg(x_56, x_8); lean_inc(x_48); -x_78 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_78, 0, x_48); -lean_ctor_set(x_78, 1, x_55); -lean_ctor_set(x_78, 2, x_77); -x_79 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; +x_73 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_73, 0, x_48); +lean_ctor_set(x_73, 1, x_55); +lean_ctor_set(x_73, 2, x_72); +x_74 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; lean_inc_ref(x_9); lean_inc_ref(x_6); lean_inc_ref(x_3); -x_80 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_79); -x_81 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; +x_75 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_74); +x_76 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; lean_inc(x_48); -x_82 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_82, 0, x_48); -lean_ctor_set(x_82, 1, x_81); -x_83 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__6; +if (lean_is_scalar(x_27)) { + x_77 = lean_alloc_ctor(2, 2, 0); +} else { + x_77 = x_27; + lean_ctor_set_tag(x_77, 2); +} +lean_ctor_set(x_77, 0, x_48); +lean_ctor_set(x_77, 1, x_76); +x_78 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_84 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_83); -x_85 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0; -x_86 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__1; +x_79 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_78); +x_80 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0; +x_81 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__1; lean_inc(x_45); lean_inc(x_49); +x_82 = l_Lean_addMacroScope(x_49, x_81, x_45); +x_83 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__5; +lean_inc(x_48); +x_84 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_84, 0, x_48); +lean_ctor_set(x_84, 1, x_80); +lean_ctor_set(x_84, 2, x_82); +lean_ctor_set(x_84, 3, x_83); +x_85 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__7; +x_86 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__8; x_87 = l_Lean_addMacroScope(x_49, x_86, x_45); -x_88 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__5; +x_88 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__12; lean_inc(x_48); x_89 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_89, 0, x_48); lean_ctor_set(x_89, 1, x_85); lean_ctor_set(x_89, 2, x_87); lean_ctor_set(x_89, 3, x_88); -x_90 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__7; -x_91 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__8; -x_92 = l_Lean_addMacroScope(x_49, x_91, x_45); -x_93 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__12; lean_inc(x_48); -x_94 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_94, 0, x_48); -lean_ctor_set(x_94, 1, x_90); -lean_ctor_set(x_94, 2, x_92); -lean_ctor_set(x_94, 3, x_93); +x_90 = l_Lean_Syntax_node2(x_48, x_55, x_89, x_39); lean_inc(x_48); -x_95 = l_Lean_Syntax_node2(x_48, x_55, x_94, x_39); +x_91 = l_Lean_Syntax_node2(x_48, x_79, x_84, x_90); lean_inc(x_48); -x_96 = l_Lean_Syntax_node2(x_48, x_84, x_89, x_95); +x_92 = l_Lean_Syntax_node2(x_48, x_75, x_77, x_91); lean_inc(x_48); -x_97 = l_Lean_Syntax_node2(x_48, x_80, x_82, x_96); +x_93 = l_Lean_Syntax_node1(x_48, x_55, x_92); lean_inc(x_48); -x_98 = l_Lean_Syntax_node1(x_48, x_55, x_97); -lean_inc(x_48); -x_99 = l_Lean_Syntax_node2(x_48, x_76, x_78, x_98); -x_100 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_94 = l_Lean_Syntax_node2(x_48, x_71, x_73, x_93); +x_95 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_101 = l_Lean_Name_mkStr4(x_3, x_6, x_50, x_100); -x_102 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; +x_96 = l_Lean_Name_mkStr4(x_3, x_6, x_50, x_95); +x_97 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; lean_inc(x_48); -x_103 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_103, 0, x_48); -lean_ctor_set(x_103, 1, x_102); -x_104 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; -x_105 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; -x_106 = l_Lean_Name_mkStr4(x_3, x_6, x_104, x_105); +x_98 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_98, 0, x_48); +lean_ctor_set(x_98, 1, x_97); +x_99 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_100 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; +x_101 = l_Lean_Name_mkStr4(x_3, x_6, x_99, x_100); lean_inc_ref_n(x_57, 2); lean_inc(x_48); -x_107 = l_Lean_Syntax_node2(x_48, x_106, x_57, x_57); +x_102 = l_Lean_Syntax_node2(x_48, x_101, x_57, x_57); lean_inc_ref(x_57); lean_inc(x_48); -x_108 = l_Lean_Syntax_node4(x_48, x_101, x_103, x_35, x_107, x_57); +x_103 = l_Lean_Syntax_node4(x_48, x_96, x_98, x_35, x_102, x_57); lean_inc(x_48); -x_109 = l_Lean_Syntax_node5(x_48, x_68, x_70, x_74, x_99, x_108, x_57); -x_110 = l_Lean_Syntax_node2(x_48, x_52, x_66, x_109); -lean_ctor_set(x_41, 0, x_110); +x_104 = l_Lean_Syntax_node5(x_48, x_64, x_33, x_69, x_94, x_103, x_57); +x_105 = l_Lean_Syntax_node2(x_48, x_52, x_62, x_104); +lean_ctor_set(x_41, 0, x_105); return x_41; } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; 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; -x_111 = lean_ctor_get(x_41, 0); -x_112 = lean_ctor_get(x_41, 1); -lean_inc(x_112); -lean_inc(x_111); +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +x_106 = lean_ctor_get(x_41, 0); +x_107 = lean_ctor_get(x_41, 1); +lean_inc(x_107); +lean_inc(x_106); lean_dec(x_41); -x_113 = lean_ctor_get(x_16, 5); -lean_inc(x_113); -x_114 = lean_ctor_get(x_16, 10); -lean_inc(x_114); +x_108 = lean_ctor_get(x_16, 5); +lean_inc(x_108); +x_109 = lean_ctor_get(x_16, 10); +lean_inc(x_109); lean_dec_ref(x_16); -x_115 = lean_ctor_get(x_111, 0); -lean_inc_ref(x_115); -lean_dec(x_111); -x_116 = 0; -x_117 = l_Lean_SourceInfo_fromRef(x_113, x_116); -lean_dec(x_113); -x_118 = l_Lean_Environment_mainModule(x_115); -lean_dec_ref(x_115); -x_119 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; -x_120 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; +x_110 = lean_ctor_get(x_106, 0); +lean_inc_ref(x_110); +lean_dec(x_106); +x_111 = 0; +x_112 = l_Lean_SourceInfo_fromRef(x_108, x_111); +lean_dec(x_108); +x_113 = l_Lean_Environment_mainModule(x_110); +lean_dec_ref(x_110); +x_114 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; +x_115 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_121 = l_Lean_Name_mkStr4(x_3, x_6, x_119, x_120); -x_122 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; +x_116 = l_Lean_Name_mkStr4(x_3, x_6, x_114, x_115); +x_117 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_123 = l_Lean_Name_mkStr4(x_3, x_6, x_119, x_122); -x_124 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; -x_125 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; -lean_inc(x_117); -x_126 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_126, 0, x_117); -lean_ctor_set(x_126, 1, x_124); -lean_ctor_set(x_126, 2, x_125); +x_118 = l_Lean_Name_mkStr4(x_3, x_6, x_114, x_117); +x_119 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; +x_120 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; +lean_inc(x_112); +x_121 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_121, 0, x_112); +lean_ctor_set(x_121, 1, x_119); +lean_ctor_set(x_121, 2, x_120); +x_122 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; +lean_inc_ref(x_6); +lean_inc_ref(x_3); +x_123 = l_Lean_Name_mkStr4(x_3, x_6, x_114, x_122); +lean_inc(x_112); +lean_ctor_set_tag(x_37, 2); +lean_ctor_set(x_37, 1, x_122); +lean_ctor_set(x_37, 0, x_112); +lean_inc(x_112); +x_124 = l_Lean_Syntax_node1(x_112, x_123, x_37); +lean_inc(x_112); +x_125 = l_Lean_Syntax_node1(x_112, x_119, x_124); +lean_inc_ref_n(x_121, 5); +lean_inc(x_112); +x_126 = l_Lean_Syntax_node6(x_112, x_118, x_121, x_121, x_121, x_121, x_121, x_125); x_127 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_128 = l_Lean_Name_mkStr4(x_3, x_6, x_119, x_127); -lean_inc(x_117); -lean_ctor_set_tag(x_37, 2); -lean_ctor_set(x_37, 1, x_127); -lean_ctor_set(x_37, 0, x_117); -lean_inc(x_117); -x_129 = l_Lean_Syntax_node1(x_117, x_128, x_37); -lean_inc(x_117); -x_130 = l_Lean_Syntax_node1(x_117, x_124, x_129); -x_131 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__12; -lean_inc_ref(x_6); -lean_inc_ref(x_3); -x_132 = l_Lean_Name_mkStr4(x_3, x_6, x_119, x_131); -lean_inc(x_117); +x_128 = l_Lean_Name_mkStr4(x_3, x_6, x_114, x_127); +x_129 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_inc(x_112); lean_ctor_set_tag(x_33, 2); -lean_ctor_set(x_33, 1, x_131); -lean_ctor_set(x_33, 0, x_117); -lean_inc(x_117); -x_133 = l_Lean_Syntax_node1(x_117, x_132, x_33); -lean_inc(x_117); -x_134 = l_Lean_Syntax_node1(x_117, x_124, x_133); -lean_inc_ref_n(x_126, 4); -lean_inc(x_117); -x_135 = l_Lean_Syntax_node6(x_117, x_123, x_126, x_126, x_130, x_126, x_126, x_134); -x_136 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_ctor_set(x_33, 1, x_129); +lean_ctor_set(x_33, 0, x_112); +x_130 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_137 = l_Lean_Name_mkStr4(x_3, x_6, x_119, x_136); -x_138 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; -lean_inc(x_117); -if (lean_is_scalar(x_27)) { - x_139 = lean_alloc_ctor(2, 2, 0); -} else { - x_139 = x_27; - lean_ctor_set_tag(x_139, 2); -} -lean_ctor_set(x_139, 0, x_117); -lean_ctor_set(x_139, 1, x_138); -x_140 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; +x_131 = l_Lean_Name_mkStr4(x_3, x_6, x_114, x_130); +x_132 = lean_mk_syntax_ident(x_7); +lean_inc_ref(x_121); +lean_inc(x_112); +x_133 = l_Lean_Syntax_node2(x_112, x_131, x_132, x_121); +x_134 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_141 = l_Lean_Name_mkStr4(x_3, x_6, x_119, x_140); -x_142 = lean_mk_syntax_ident(x_7); -lean_inc_ref(x_126); -lean_inc(x_117); -x_143 = l_Lean_Syntax_node2(x_117, x_141, x_142, x_126); -x_144 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; -lean_inc_ref(x_6); -lean_inc_ref(x_3); -x_145 = l_Lean_Name_mkStr4(x_3, x_6, x_119, x_144); -x_146 = l_Array_append___redArg(x_125, x_8); -lean_inc(x_117); -x_147 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_147, 0, x_117); -lean_ctor_set(x_147, 1, x_124); -lean_ctor_set(x_147, 2, x_146); -x_148 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; +x_135 = l_Lean_Name_mkStr4(x_3, x_6, x_114, x_134); +x_136 = l_Array_append___redArg(x_120, x_8); +lean_inc(x_112); +x_137 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_137, 0, x_112); +lean_ctor_set(x_137, 1, x_119); +lean_ctor_set(x_137, 2, x_136); +x_138 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; lean_inc_ref(x_9); lean_inc_ref(x_6); lean_inc_ref(x_3); -x_149 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_148); -x_150 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; -lean_inc(x_117); -x_151 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_151, 0, x_117); -lean_ctor_set(x_151, 1, x_150); -x_152 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__6; +x_139 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_138); +x_140 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; +lean_inc(x_112); +if (lean_is_scalar(x_27)) { + x_141 = lean_alloc_ctor(2, 2, 0); +} else { + x_141 = x_27; + lean_ctor_set_tag(x_141, 2); +} +lean_ctor_set(x_141, 0, x_112); +lean_ctor_set(x_141, 1, x_140); +x_142 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_153 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_152); -x_154 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0; -x_155 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__1; -lean_inc(x_114); -lean_inc(x_118); -x_156 = l_Lean_addMacroScope(x_118, x_155, x_114); -x_157 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__5; -lean_inc(x_117); -x_158 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_158, 0, x_117); -lean_ctor_set(x_158, 1, x_154); -lean_ctor_set(x_158, 2, x_156); -lean_ctor_set(x_158, 3, x_157); -x_159 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__7; -x_160 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__8; -x_161 = l_Lean_addMacroScope(x_118, x_160, x_114); -x_162 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__12; -lean_inc(x_117); -x_163 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_163, 0, x_117); -lean_ctor_set(x_163, 1, x_159); -lean_ctor_set(x_163, 2, x_161); -lean_ctor_set(x_163, 3, x_162); -lean_inc(x_117); -x_164 = l_Lean_Syntax_node2(x_117, x_124, x_163, x_39); -lean_inc(x_117); -x_165 = l_Lean_Syntax_node2(x_117, x_153, x_158, x_164); -lean_inc(x_117); -x_166 = l_Lean_Syntax_node2(x_117, x_149, x_151, x_165); -lean_inc(x_117); -x_167 = l_Lean_Syntax_node1(x_117, x_124, x_166); -lean_inc(x_117); -x_168 = l_Lean_Syntax_node2(x_117, x_145, x_147, x_167); -x_169 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_143 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_142); +x_144 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0; +x_145 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__1; +lean_inc(x_109); +lean_inc(x_113); +x_146 = l_Lean_addMacroScope(x_113, x_145, x_109); +x_147 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__5; +lean_inc(x_112); +x_148 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_148, 0, x_112); +lean_ctor_set(x_148, 1, x_144); +lean_ctor_set(x_148, 2, x_146); +lean_ctor_set(x_148, 3, x_147); +x_149 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__7; +x_150 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__8; +x_151 = l_Lean_addMacroScope(x_113, x_150, x_109); +x_152 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__12; +lean_inc(x_112); +x_153 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_153, 0, x_112); +lean_ctor_set(x_153, 1, x_149); +lean_ctor_set(x_153, 2, x_151); +lean_ctor_set(x_153, 3, x_152); +lean_inc(x_112); +x_154 = l_Lean_Syntax_node2(x_112, x_119, x_153, x_39); +lean_inc(x_112); +x_155 = l_Lean_Syntax_node2(x_112, x_143, x_148, x_154); +lean_inc(x_112); +x_156 = l_Lean_Syntax_node2(x_112, x_139, x_141, x_155); +lean_inc(x_112); +x_157 = l_Lean_Syntax_node1(x_112, x_119, x_156); +lean_inc(x_112); +x_158 = l_Lean_Syntax_node2(x_112, x_135, x_137, x_157); +x_159 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_170 = l_Lean_Name_mkStr4(x_3, x_6, x_119, x_169); -x_171 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; -lean_inc(x_117); -x_172 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_172, 0, x_117); -lean_ctor_set(x_172, 1, x_171); -x_173 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; -x_174 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; -x_175 = l_Lean_Name_mkStr4(x_3, x_6, x_173, x_174); -lean_inc_ref_n(x_126, 2); -lean_inc(x_117); -x_176 = l_Lean_Syntax_node2(x_117, x_175, x_126, x_126); -lean_inc_ref(x_126); -lean_inc(x_117); -x_177 = l_Lean_Syntax_node4(x_117, x_170, x_172, x_35, x_176, x_126); -lean_inc(x_117); -x_178 = l_Lean_Syntax_node5(x_117, x_137, x_139, x_143, x_168, x_177, x_126); -x_179 = l_Lean_Syntax_node2(x_117, x_121, x_135, x_178); -x_180 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_112); -return x_180; +x_160 = l_Lean_Name_mkStr4(x_3, x_6, x_114, x_159); +x_161 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; +lean_inc(x_112); +x_162 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_162, 0, x_112); +lean_ctor_set(x_162, 1, x_161); +x_163 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_164 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; +x_165 = l_Lean_Name_mkStr4(x_3, x_6, x_163, x_164); +lean_inc_ref_n(x_121, 2); +lean_inc(x_112); +x_166 = l_Lean_Syntax_node2(x_112, x_165, x_121, x_121); +lean_inc_ref(x_121); +lean_inc(x_112); +x_167 = l_Lean_Syntax_node4(x_112, x_160, x_162, x_35, x_166, x_121); +lean_inc(x_112); +x_168 = l_Lean_Syntax_node5(x_112, x_128, x_33, x_133, x_158, x_167, x_121); +x_169 = l_Lean_Syntax_node2(x_112, x_116, x_126, x_168); +x_170 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_170, 0, x_169); +lean_ctor_set(x_170, 1, x_107); +return x_170; } } else { -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; uint8_t x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; -x_181 = lean_ctor_get(x_37, 0); -x_182 = lean_ctor_get(x_37, 1); -lean_inc(x_182); -lean_inc(x_181); +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; uint8_t x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_171 = lean_ctor_get(x_37, 0); +x_172 = lean_ctor_get(x_37, 1); +lean_inc(x_172); +lean_inc(x_171); lean_dec(x_37); -x_183 = lean_st_ref_get(x_17, x_182); +x_173 = lean_st_ref_get(x_17, x_172); lean_dec(x_17); -x_184 = lean_ctor_get(x_183, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_183, 1); -lean_inc(x_185); -if (lean_is_exclusive(x_183)) { - lean_ctor_release(x_183, 0); - lean_ctor_release(x_183, 1); - x_186 = x_183; +x_174 = lean_ctor_get(x_173, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_173, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_173)) { + lean_ctor_release(x_173, 0); + lean_ctor_release(x_173, 1); + x_176 = x_173; } else { - lean_dec_ref(x_183); - x_186 = lean_box(0); + lean_dec_ref(x_173); + x_176 = lean_box(0); } -x_187 = lean_ctor_get(x_16, 5); -lean_inc(x_187); -x_188 = lean_ctor_get(x_16, 10); -lean_inc(x_188); +x_177 = lean_ctor_get(x_16, 5); +lean_inc(x_177); +x_178 = lean_ctor_get(x_16, 10); +lean_inc(x_178); lean_dec_ref(x_16); -x_189 = lean_ctor_get(x_184, 0); -lean_inc_ref(x_189); -lean_dec(x_184); -x_190 = 0; -x_191 = l_Lean_SourceInfo_fromRef(x_187, x_190); -lean_dec(x_187); -x_192 = l_Lean_Environment_mainModule(x_189); -lean_dec_ref(x_189); -x_193 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; -x_194 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; +x_179 = lean_ctor_get(x_174, 0); +lean_inc_ref(x_179); +lean_dec(x_174); +x_180 = 0; +x_181 = l_Lean_SourceInfo_fromRef(x_177, x_180); +lean_dec(x_177); +x_182 = l_Lean_Environment_mainModule(x_179); +lean_dec_ref(x_179); +x_183 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; +x_184 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_195 = l_Lean_Name_mkStr4(x_3, x_6, x_193, x_194); -x_196 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; +x_185 = l_Lean_Name_mkStr4(x_3, x_6, x_183, x_184); +x_186 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_197 = l_Lean_Name_mkStr4(x_3, x_6, x_193, x_196); -x_198 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; -x_199 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; -lean_inc(x_191); -x_200 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_200, 0, x_191); -lean_ctor_set(x_200, 1, x_198); -lean_ctor_set(x_200, 2, x_199); -x_201 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; +x_187 = l_Lean_Name_mkStr4(x_3, x_6, x_183, x_186); +x_188 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; +x_189 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; +lean_inc(x_181); +x_190 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_190, 0, x_181); +lean_ctor_set(x_190, 1, x_188); +lean_ctor_set(x_190, 2, x_189); +x_191 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_202 = l_Lean_Name_mkStr4(x_3, x_6, x_193, x_201); -lean_inc(x_191); -x_203 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_203, 0, x_191); -lean_ctor_set(x_203, 1, x_201); -lean_inc(x_191); -x_204 = l_Lean_Syntax_node1(x_191, x_202, x_203); -lean_inc(x_191); -x_205 = l_Lean_Syntax_node1(x_191, x_198, x_204); -x_206 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__12; +x_192 = l_Lean_Name_mkStr4(x_3, x_6, x_183, x_191); +lean_inc(x_181); +x_193 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_193, 0, x_181); +lean_ctor_set(x_193, 1, x_191); +lean_inc(x_181); +x_194 = l_Lean_Syntax_node1(x_181, x_192, x_193); +lean_inc(x_181); +x_195 = l_Lean_Syntax_node1(x_181, x_188, x_194); +lean_inc_ref_n(x_190, 5); +lean_inc(x_181); +x_196 = l_Lean_Syntax_node6(x_181, x_187, x_190, x_190, x_190, x_190, x_190, x_195); +x_197 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_207 = l_Lean_Name_mkStr4(x_3, x_6, x_193, x_206); -lean_inc(x_191); +x_198 = l_Lean_Name_mkStr4(x_3, x_6, x_183, x_197); +x_199 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_inc(x_181); lean_ctor_set_tag(x_33, 2); -lean_ctor_set(x_33, 1, x_206); -lean_ctor_set(x_33, 0, x_191); -lean_inc(x_191); -x_208 = l_Lean_Syntax_node1(x_191, x_207, x_33); -lean_inc(x_191); -x_209 = l_Lean_Syntax_node1(x_191, x_198, x_208); -lean_inc_ref_n(x_200, 4); -lean_inc(x_191); -x_210 = l_Lean_Syntax_node6(x_191, x_197, x_200, x_200, x_205, x_200, x_200, x_209); -x_211 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_ctor_set(x_33, 1, x_199); +lean_ctor_set(x_33, 0, x_181); +x_200 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_212 = l_Lean_Name_mkStr4(x_3, x_6, x_193, x_211); -x_213 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; -lean_inc(x_191); -if (lean_is_scalar(x_27)) { - x_214 = lean_alloc_ctor(2, 2, 0); -} else { - x_214 = x_27; - lean_ctor_set_tag(x_214, 2); -} -lean_ctor_set(x_214, 0, x_191); -lean_ctor_set(x_214, 1, x_213); -x_215 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; +x_201 = l_Lean_Name_mkStr4(x_3, x_6, x_183, x_200); +x_202 = lean_mk_syntax_ident(x_7); +lean_inc_ref(x_190); +lean_inc(x_181); +x_203 = l_Lean_Syntax_node2(x_181, x_201, x_202, x_190); +x_204 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_216 = l_Lean_Name_mkStr4(x_3, x_6, x_193, x_215); -x_217 = lean_mk_syntax_ident(x_7); -lean_inc_ref(x_200); -lean_inc(x_191); -x_218 = l_Lean_Syntax_node2(x_191, x_216, x_217, x_200); -x_219 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; -lean_inc_ref(x_6); -lean_inc_ref(x_3); -x_220 = l_Lean_Name_mkStr4(x_3, x_6, x_193, x_219); -x_221 = l_Array_append___redArg(x_199, x_8); -lean_inc(x_191); -x_222 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_222, 0, x_191); -lean_ctor_set(x_222, 1, x_198); -lean_ctor_set(x_222, 2, x_221); -x_223 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; +x_205 = l_Lean_Name_mkStr4(x_3, x_6, x_183, x_204); +x_206 = l_Array_append___redArg(x_189, x_8); +lean_inc(x_181); +x_207 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_207, 0, x_181); +lean_ctor_set(x_207, 1, x_188); +lean_ctor_set(x_207, 2, x_206); +x_208 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; lean_inc_ref(x_9); lean_inc_ref(x_6); lean_inc_ref(x_3); -x_224 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_223); -x_225 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; -lean_inc(x_191); -x_226 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_226, 0, x_191); -lean_ctor_set(x_226, 1, x_225); -x_227 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__6; -lean_inc_ref(x_6); -lean_inc_ref(x_3); -x_228 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_227); -x_229 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0; -x_230 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__1; -lean_inc(x_188); -lean_inc(x_192); -x_231 = l_Lean_addMacroScope(x_192, x_230, x_188); -x_232 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__5; -lean_inc(x_191); -x_233 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_233, 0, x_191); -lean_ctor_set(x_233, 1, x_229); -lean_ctor_set(x_233, 2, x_231); -lean_ctor_set(x_233, 3, x_232); -x_234 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__7; -x_235 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__8; -x_236 = l_Lean_addMacroScope(x_192, x_235, x_188); -x_237 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__12; -lean_inc(x_191); -x_238 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_238, 0, x_191); -lean_ctor_set(x_238, 1, x_234); -lean_ctor_set(x_238, 2, x_236); -lean_ctor_set(x_238, 3, x_237); -lean_inc(x_191); -x_239 = l_Lean_Syntax_node2(x_191, x_198, x_238, x_181); -lean_inc(x_191); -x_240 = l_Lean_Syntax_node2(x_191, x_228, x_233, x_239); -lean_inc(x_191); -x_241 = l_Lean_Syntax_node2(x_191, x_224, x_226, x_240); -lean_inc(x_191); -x_242 = l_Lean_Syntax_node1(x_191, x_198, x_241); -lean_inc(x_191); -x_243 = l_Lean_Syntax_node2(x_191, x_220, x_222, x_242); -x_244 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; -lean_inc_ref(x_6); -lean_inc_ref(x_3); -x_245 = l_Lean_Name_mkStr4(x_3, x_6, x_193, x_244); -x_246 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; -lean_inc(x_191); -x_247 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_247, 0, x_191); -lean_ctor_set(x_247, 1, x_246); -x_248 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; -x_249 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; -x_250 = l_Lean_Name_mkStr4(x_3, x_6, x_248, x_249); -lean_inc_ref_n(x_200, 2); -lean_inc(x_191); -x_251 = l_Lean_Syntax_node2(x_191, x_250, x_200, x_200); -lean_inc_ref(x_200); -lean_inc(x_191); -x_252 = l_Lean_Syntax_node4(x_191, x_245, x_247, x_35, x_251, x_200); -lean_inc(x_191); -x_253 = l_Lean_Syntax_node5(x_191, x_212, x_214, x_218, x_243, x_252, x_200); -x_254 = l_Lean_Syntax_node2(x_191, x_195, x_210, x_253); -if (lean_is_scalar(x_186)) { - x_255 = lean_alloc_ctor(0, 2, 0); +x_209 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_208); +x_210 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; +lean_inc(x_181); +if (lean_is_scalar(x_27)) { + x_211 = lean_alloc_ctor(2, 2, 0); } else { - x_255 = x_186; + x_211 = x_27; + lean_ctor_set_tag(x_211, 2); } -lean_ctor_set(x_255, 0, x_254); -lean_ctor_set(x_255, 1, x_185); -return x_255; +lean_ctor_set(x_211, 0, x_181); +lean_ctor_set(x_211, 1, x_210); +x_212 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__6; +lean_inc_ref(x_6); +lean_inc_ref(x_3); +x_213 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_212); +x_214 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0; +x_215 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__1; +lean_inc(x_178); +lean_inc(x_182); +x_216 = l_Lean_addMacroScope(x_182, x_215, x_178); +x_217 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__5; +lean_inc(x_181); +x_218 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_218, 0, x_181); +lean_ctor_set(x_218, 1, x_214); +lean_ctor_set(x_218, 2, x_216); +lean_ctor_set(x_218, 3, x_217); +x_219 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__7; +x_220 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__8; +x_221 = l_Lean_addMacroScope(x_182, x_220, x_178); +x_222 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__12; +lean_inc(x_181); +x_223 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_223, 0, x_181); +lean_ctor_set(x_223, 1, x_219); +lean_ctor_set(x_223, 2, x_221); +lean_ctor_set(x_223, 3, x_222); +lean_inc(x_181); +x_224 = l_Lean_Syntax_node2(x_181, x_188, x_223, x_171); +lean_inc(x_181); +x_225 = l_Lean_Syntax_node2(x_181, x_213, x_218, x_224); +lean_inc(x_181); +x_226 = l_Lean_Syntax_node2(x_181, x_209, x_211, x_225); +lean_inc(x_181); +x_227 = l_Lean_Syntax_node1(x_181, x_188, x_226); +lean_inc(x_181); +x_228 = l_Lean_Syntax_node2(x_181, x_205, x_207, x_227); +x_229 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; +lean_inc_ref(x_6); +lean_inc_ref(x_3); +x_230 = l_Lean_Name_mkStr4(x_3, x_6, x_183, x_229); +x_231 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; +lean_inc(x_181); +x_232 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_232, 0, x_181); +lean_ctor_set(x_232, 1, x_231); +x_233 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_234 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; +x_235 = l_Lean_Name_mkStr4(x_3, x_6, x_233, x_234); +lean_inc_ref_n(x_190, 2); +lean_inc(x_181); +x_236 = l_Lean_Syntax_node2(x_181, x_235, x_190, x_190); +lean_inc_ref(x_190); +lean_inc(x_181); +x_237 = l_Lean_Syntax_node4(x_181, x_230, x_232, x_35, x_236, x_190); +lean_inc(x_181); +x_238 = l_Lean_Syntax_node5(x_181, x_198, x_33, x_203, x_228, x_237, x_190); +x_239 = l_Lean_Syntax_node2(x_181, x_185, x_196, x_238); +if (lean_is_scalar(x_176)) { + x_240 = lean_alloc_ctor(0, 2, 0); +} else { + x_240 = x_176; +} +lean_ctor_set(x_240, 0, x_239); +lean_ctor_set(x_240, 1, x_175); +return x_240; } } else { -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; uint8_t x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; 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_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_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; -x_256 = lean_ctor_get(x_33, 0); -x_257 = lean_ctor_get(x_33, 1); -lean_inc(x_257); -lean_inc(x_256); +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; uint8_t 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; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; +x_241 = lean_ctor_get(x_33, 0); +x_242 = lean_ctor_get(x_33, 1); +lean_inc(x_242); +lean_inc(x_241); lean_dec(x_33); -x_258 = l_Lean_Elab_Deriving_mkInductiveApp___redArg(x_5, x_4, x_16, x_17, x_257); -x_259 = lean_ctor_get(x_258, 0); -lean_inc(x_259); -x_260 = lean_ctor_get(x_258, 1); -lean_inc(x_260); -if (lean_is_exclusive(x_258)) { - lean_ctor_release(x_258, 0); - lean_ctor_release(x_258, 1); - x_261 = x_258; +x_243 = l_Lean_Elab_Deriving_mkInductiveApp___redArg(x_5, x_4, x_16, x_17, x_242); +x_244 = lean_ctor_get(x_243, 0); +lean_inc(x_244); +x_245 = lean_ctor_get(x_243, 1); +lean_inc(x_245); +if (lean_is_exclusive(x_243)) { + lean_ctor_release(x_243, 0); + lean_ctor_release(x_243, 1); + x_246 = x_243; } else { - lean_dec_ref(x_258); - x_261 = lean_box(0); + lean_dec_ref(x_243); + x_246 = lean_box(0); } -x_262 = lean_st_ref_get(x_17, x_260); +x_247 = lean_st_ref_get(x_17, x_245); lean_dec(x_17); -x_263 = lean_ctor_get(x_262, 0); -lean_inc(x_263); -x_264 = lean_ctor_get(x_262, 1); -lean_inc(x_264); -if (lean_is_exclusive(x_262)) { - lean_ctor_release(x_262, 0); - lean_ctor_release(x_262, 1); - x_265 = x_262; +x_248 = lean_ctor_get(x_247, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_247, 1); +lean_inc(x_249); +if (lean_is_exclusive(x_247)) { + lean_ctor_release(x_247, 0); + lean_ctor_release(x_247, 1); + x_250 = x_247; } else { - lean_dec_ref(x_262); - x_265 = lean_box(0); + lean_dec_ref(x_247); + x_250 = lean_box(0); } -x_266 = lean_ctor_get(x_16, 5); -lean_inc(x_266); -x_267 = lean_ctor_get(x_16, 10); -lean_inc(x_267); +x_251 = lean_ctor_get(x_16, 5); +lean_inc(x_251); +x_252 = lean_ctor_get(x_16, 10); +lean_inc(x_252); lean_dec_ref(x_16); -x_268 = lean_ctor_get(x_263, 0); -lean_inc_ref(x_268); -lean_dec(x_263); -x_269 = 0; -x_270 = l_Lean_SourceInfo_fromRef(x_266, x_269); -lean_dec(x_266); -x_271 = l_Lean_Environment_mainModule(x_268); -lean_dec_ref(x_268); -x_272 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; -x_273 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; +x_253 = lean_ctor_get(x_248, 0); +lean_inc_ref(x_253); +lean_dec(x_248); +x_254 = 0; +x_255 = l_Lean_SourceInfo_fromRef(x_251, x_254); +lean_dec(x_251); +x_256 = l_Lean_Environment_mainModule(x_253); +lean_dec_ref(x_253); +x_257 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__0; +x_258 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__1; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_274 = l_Lean_Name_mkStr4(x_3, x_6, x_272, x_273); -x_275 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; +x_259 = l_Lean_Name_mkStr4(x_3, x_6, x_257, x_258); +x_260 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__2; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_276 = l_Lean_Name_mkStr4(x_3, x_6, x_272, x_275); -x_277 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; -x_278 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; -lean_inc(x_270); -x_279 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_279, 0, x_270); -lean_ctor_set(x_279, 1, x_277); -lean_ctor_set(x_279, 2, x_278); -x_280 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; +x_261 = l_Lean_Name_mkStr4(x_3, x_6, x_257, x_260); +x_262 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__8; +x_263 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__24; +lean_inc(x_255); +x_264 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_264, 0, x_255); +lean_ctor_set(x_264, 1, x_262); +lean_ctor_set(x_264, 2, x_263); +x_265 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_281 = l_Lean_Name_mkStr4(x_3, x_6, x_272, x_280); -lean_inc(x_270); -if (lean_is_scalar(x_261)) { - x_282 = lean_alloc_ctor(2, 2, 0); +x_266 = l_Lean_Name_mkStr4(x_3, x_6, x_257, x_265); +lean_inc(x_255); +if (lean_is_scalar(x_246)) { + x_267 = lean_alloc_ctor(2, 2, 0); } else { - x_282 = x_261; - lean_ctor_set_tag(x_282, 2); + x_267 = x_246; + lean_ctor_set_tag(x_267, 2); } -lean_ctor_set(x_282, 0, x_270); -lean_ctor_set(x_282, 1, x_280); -lean_inc(x_270); -x_283 = l_Lean_Syntax_node1(x_270, x_281, x_282); -lean_inc(x_270); -x_284 = l_Lean_Syntax_node1(x_270, x_277, x_283); -x_285 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__12; +lean_ctor_set(x_267, 0, x_255); +lean_ctor_set(x_267, 1, x_265); +lean_inc(x_255); +x_268 = l_Lean_Syntax_node1(x_255, x_266, x_267); +lean_inc(x_255); +x_269 = l_Lean_Syntax_node1(x_255, x_262, x_268); +lean_inc_ref_n(x_264, 5); +lean_inc(x_255); +x_270 = l_Lean_Syntax_node6(x_255, x_261, x_264, x_264, x_264, x_264, x_264, x_269); +x_271 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__3; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_286 = l_Lean_Name_mkStr4(x_3, x_6, x_272, x_285); -lean_inc(x_270); -x_287 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_287, 0, x_270); -lean_ctor_set(x_287, 1, x_285); -lean_inc(x_270); -x_288 = l_Lean_Syntax_node1(x_270, x_286, x_287); -lean_inc(x_270); -x_289 = l_Lean_Syntax_node1(x_270, x_277, x_288); -lean_inc_ref_n(x_279, 4); -lean_inc(x_270); -x_290 = l_Lean_Syntax_node6(x_270, x_276, x_279, x_279, x_284, x_279, x_279, x_289); -x_291 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +x_272 = l_Lean_Name_mkStr4(x_3, x_6, x_257, x_271); +x_273 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__4; +lean_inc(x_255); +x_274 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_274, 0, x_255); +lean_ctor_set(x_274, 1, x_273); +x_275 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_292 = l_Lean_Name_mkStr4(x_3, x_6, x_272, x_291); -x_293 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__5; -lean_inc(x_270); -if (lean_is_scalar(x_27)) { - x_294 = lean_alloc_ctor(2, 2, 0); -} else { - x_294 = x_27; - lean_ctor_set_tag(x_294, 2); -} -lean_ctor_set(x_294, 0, x_270); -lean_ctor_set(x_294, 1, x_293); -x_295 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; +x_276 = l_Lean_Name_mkStr4(x_3, x_6, x_257, x_275); +x_277 = lean_mk_syntax_ident(x_7); +lean_inc_ref(x_264); +lean_inc(x_255); +x_278 = l_Lean_Syntax_node2(x_255, x_276, x_277, x_264); +x_279 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__6; lean_inc_ref(x_6); lean_inc_ref(x_3); -x_296 = l_Lean_Name_mkStr4(x_3, x_6, x_272, x_295); -x_297 = lean_mk_syntax_ident(x_7); -lean_inc_ref(x_279); -lean_inc(x_270); -x_298 = l_Lean_Syntax_node2(x_270, x_296, x_297, x_279); -x_299 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; -lean_inc_ref(x_6); -lean_inc_ref(x_3); -x_300 = l_Lean_Name_mkStr4(x_3, x_6, x_272, x_299); -x_301 = l_Array_append___redArg(x_278, x_8); -lean_inc(x_270); -x_302 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_302, 0, x_270); -lean_ctor_set(x_302, 1, x_277); -lean_ctor_set(x_302, 2, x_301); -x_303 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; +x_280 = l_Lean_Name_mkStr4(x_3, x_6, x_257, x_279); +x_281 = l_Array_append___redArg(x_263, x_8); +lean_inc(x_255); +x_282 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_282, 0, x_255); +lean_ctor_set(x_282, 1, x_262); +lean_ctor_set(x_282, 2, x_281); +x_283 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__7; lean_inc_ref(x_9); lean_inc_ref(x_6); lean_inc_ref(x_3); -x_304 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_303); -x_305 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; -lean_inc(x_270); -x_306 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_306, 0, x_270); -lean_ctor_set(x_306, 1, x_305); -x_307 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__6; -lean_inc_ref(x_6); -lean_inc_ref(x_3); -x_308 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_307); -x_309 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0; -x_310 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__1; -lean_inc(x_267); -lean_inc(x_271); -x_311 = l_Lean_addMacroScope(x_271, x_310, x_267); -x_312 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__5; -lean_inc(x_270); -x_313 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_313, 0, x_270); -lean_ctor_set(x_313, 1, x_309); -lean_ctor_set(x_313, 2, x_311); -lean_ctor_set(x_313, 3, x_312); -x_314 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__7; -x_315 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__8; -x_316 = l_Lean_addMacroScope(x_271, x_315, x_267); -x_317 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__12; -lean_inc(x_270); -x_318 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_318, 0, x_270); -lean_ctor_set(x_318, 1, x_314); -lean_ctor_set(x_318, 2, x_316); -lean_ctor_set(x_318, 3, x_317); -lean_inc(x_270); -x_319 = l_Lean_Syntax_node2(x_270, x_277, x_318, x_259); -lean_inc(x_270); -x_320 = l_Lean_Syntax_node2(x_270, x_308, x_313, x_319); -lean_inc(x_270); -x_321 = l_Lean_Syntax_node2(x_270, x_304, x_306, x_320); -lean_inc(x_270); -x_322 = l_Lean_Syntax_node1(x_270, x_277, x_321); -lean_inc(x_270); -x_323 = l_Lean_Syntax_node2(x_270, x_300, x_302, x_322); -x_324 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; -lean_inc_ref(x_6); -lean_inc_ref(x_3); -x_325 = l_Lean_Name_mkStr4(x_3, x_6, x_272, x_324); -x_326 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; -lean_inc(x_270); -x_327 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_327, 0, x_270); -lean_ctor_set(x_327, 1, x_326); -x_328 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; -x_329 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11; -x_330 = l_Lean_Name_mkStr4(x_3, x_6, x_328, x_329); -lean_inc_ref_n(x_279, 2); -lean_inc(x_270); -x_331 = l_Lean_Syntax_node2(x_270, x_330, x_279, x_279); -lean_inc_ref(x_279); -lean_inc(x_270); -x_332 = l_Lean_Syntax_node4(x_270, x_325, x_327, x_256, x_331, x_279); -lean_inc(x_270); -x_333 = l_Lean_Syntax_node5(x_270, x_292, x_294, x_298, x_323, x_332, x_279); -x_334 = l_Lean_Syntax_node2(x_270, x_274, x_290, x_333); -if (lean_is_scalar(x_265)) { - x_335 = lean_alloc_ctor(0, 2, 0); +x_284 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_283); +x_285 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__16; +lean_inc(x_255); +if (lean_is_scalar(x_27)) { + x_286 = lean_alloc_ctor(2, 2, 0); } else { - x_335 = x_265; + x_286 = x_27; + lean_ctor_set_tag(x_286, 2); } -lean_ctor_set(x_335, 0, x_334); -lean_ctor_set(x_335, 1, x_264); -return x_335; +lean_ctor_set(x_286, 0, x_255); +lean_ctor_set(x_286, 1, x_285); +x_287 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkToJsonBodyForStruct_spec__0___redArg___closed__6; +lean_inc_ref(x_6); +lean_inc_ref(x_3); +x_288 = l_Lean_Name_mkStr4(x_3, x_6, x_9, x_287); +x_289 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0; +x_290 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__1; +lean_inc(x_252); +lean_inc(x_256); +x_291 = l_Lean_addMacroScope(x_256, x_290, x_252); +x_292 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__5; +lean_inc(x_255); +x_293 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_293, 0, x_255); +lean_ctor_set(x_293, 1, x_289); +lean_ctor_set(x_293, 2, x_291); +lean_ctor_set(x_293, 3, x_292); +x_294 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__7; +x_295 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__8; +x_296 = l_Lean_addMacroScope(x_256, x_295, x_252); +x_297 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__12; +lean_inc(x_255); +x_298 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_298, 0, x_255); +lean_ctor_set(x_298, 1, x_294); +lean_ctor_set(x_298, 2, x_296); +lean_ctor_set(x_298, 3, x_297); +lean_inc(x_255); +x_299 = l_Lean_Syntax_node2(x_255, x_262, x_298, x_244); +lean_inc(x_255); +x_300 = l_Lean_Syntax_node2(x_255, x_288, x_293, x_299); +lean_inc(x_255); +x_301 = l_Lean_Syntax_node2(x_255, x_284, x_286, x_300); +lean_inc(x_255); +x_302 = l_Lean_Syntax_node1(x_255, x_262, x_301); +lean_inc(x_255); +x_303 = l_Lean_Syntax_node2(x_255, x_280, x_282, x_302); +x_304 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__8; +lean_inc_ref(x_6); +lean_inc_ref(x_3); +x_305 = l_Lean_Name_mkStr4(x_3, x_6, x_257, x_304); +x_306 = l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_FromToJson_mkFromJsonBodyForStruct_spec__2___closed__3; +lean_inc(x_255); +x_307 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_307, 0, x_255); +lean_ctor_set(x_307, 1, x_306); +x_308 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__9; +x_309 = l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10; +x_310 = l_Lean_Name_mkStr4(x_3, x_6, x_308, x_309); +lean_inc_ref_n(x_264, 2); +lean_inc(x_255); +x_311 = l_Lean_Syntax_node2(x_255, x_310, x_264, x_264); +lean_inc_ref(x_264); +lean_inc(x_255); +x_312 = l_Lean_Syntax_node4(x_255, x_305, x_307, x_241, x_311, x_264); +lean_inc(x_255); +x_313 = l_Lean_Syntax_node5(x_255, x_272, x_274, x_278, x_303, x_312, x_264); +x_314 = l_Lean_Syntax_node2(x_255, x_259, x_270, x_313); +if (lean_is_scalar(x_250)) { + x_315 = lean_alloc_ctor(0, 2, 0); +} else { + x_315 = x_250; +} +lean_ctor_set(x_315, 0, x_314); +lean_ctor_set(x_315, 1, x_249); +return x_315; } } else { -uint8_t x_336; +uint8_t x_316; lean_dec(x_27); lean_dec(x_25); lean_dec(x_17); @@ -17446,23 +17269,23 @@ lean_dec_ref(x_6); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); -x_336 = !lean_is_exclusive(x_30); -if (x_336 == 0) +x_316 = !lean_is_exclusive(x_30); +if (x_316 == 0) { return x_30; } else { -lean_object* x_337; lean_object* x_338; lean_object* x_339; -x_337 = lean_ctor_get(x_30, 0); -x_338 = lean_ctor_get(x_30, 1); -lean_inc(x_338); -lean_inc(x_337); +lean_object* x_317; lean_object* x_318; lean_object* x_319; +x_317 = lean_ctor_get(x_30, 0); +x_318 = lean_ctor_get(x_30, 1); +lean_inc(x_318); +lean_inc(x_317); lean_dec(x_30); -x_339 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_339, 0, x_337); -lean_ctor_set(x_339, 1, x_338); -return x_339; +x_319 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_319, 0, x_317); +lean_ctor_set(x_319, 1, x_318); +return x_319; } } } @@ -17487,7 +17310,7 @@ return x_24; } else { -uint8_t x_546; +uint8_t x_511; lean_dec(x_17); lean_dec_ref(x_16); lean_dec(x_15); @@ -17501,23 +17324,23 @@ lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_546 = !lean_is_exclusive(x_21); -if (x_546 == 0) +x_511 = !lean_is_exclusive(x_21); +if (x_511 == 0) { return x_21; } else { -lean_object* x_547; lean_object* x_548; lean_object* x_549; -x_547 = lean_ctor_get(x_21, 0); -x_548 = lean_ctor_get(x_21, 1); -lean_inc(x_548); -lean_inc(x_547); +lean_object* x_512; lean_object* x_513; lean_object* x_514; +x_512 = lean_ctor_get(x_21, 0); +x_513 = lean_ctor_get(x_21, 1); +lean_inc(x_513); +lean_inc(x_512); lean_dec(x_21); -x_549 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_549, 0, x_547); -lean_ctor_set(x_549, 1, x_548); -return x_549; +x_514 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_514, 0, x_512); +lean_ctor_set(x_514, 1, x_513); +return x_514; } } } @@ -19883,7 +19706,7 @@ lean_dec_ref(x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__0____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__0____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; @@ -19891,7 +19714,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanc return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__1____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__1____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; @@ -19899,7 +19722,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_FromToJson_mkFromJsonInsta return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__2____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__2____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -19909,27 +19732,27 @@ x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__3____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__3____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Deriving_FromToJson_0__Lean_Elab_Deriving_FromToJson_mkToJsonInstance___closed__1; -x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__2____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; +x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__2____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__4____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__4____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Deriving_FromToJson_0__Lean_Elab_Deriving_FromToJson_mkToJsonInstance___closed__2; -x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__3____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; +x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__3____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__5____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__5____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; @@ -19937,17 +19760,17 @@ x_1 = lean_mk_string_unchecked("FromToJson", 10, 10); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__6____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__6____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__5____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; -x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__4____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; +x_1 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__5____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; +x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__4____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__7____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__7____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; @@ -19955,17 +19778,17 @@ x_1 = lean_mk_string_unchecked("initFn", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__8____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__8____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__7____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; -x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__6____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; +x_1 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__7____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; +x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__6____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__9____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__9____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; @@ -19973,57 +19796,57 @@ x_1 = lean_mk_string_unchecked("_@", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__10____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__10____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__9____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; -x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__8____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; +x_1 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__9____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; +x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__8____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__11____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__11____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonHeader___closed__0; -x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__10____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; +x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__10____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__12____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__12____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Deriving_FromToJson_0__Lean_Elab_Deriving_FromToJson_mkToJsonInstance___closed__1; -x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__11____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; +x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__11____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__13____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__13____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Deriving_FromToJson_0__Lean_Elab_Deriving_FromToJson_mkToJsonInstance___closed__2; -x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__12____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; +x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__12____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__14____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__14____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__5____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; -x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__13____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; +x_1 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__5____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; +x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__13____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__15____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__15____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; @@ -20031,32 +19854,32 @@ x_1 = lean_mk_string_unchecked("_hyg", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__16____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__16____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__15____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; -x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__14____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; +x_1 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__15____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; +x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__14____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__17____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__17____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(6619u); -x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__16____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; +x_1 = lean_unsigned_to_nat(6599u); +x_2 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__16____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; x_3 = l_Lean_Name_num___override(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonHeader___closed__2; -x_3 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__0____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; +x_3 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__0____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; x_4 = l_Lean_Elab_registerDerivingHandler(x_2, x_3, x_1); if (lean_obj_tag(x_4) == 0) { @@ -20065,7 +19888,7 @@ x_5 = lean_ctor_get(x_4, 1); lean_inc(x_5); lean_dec_ref(x_4); x_6 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonHeader___closed__1; -x_7 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__1____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; +x_7 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__1____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; x_8 = l_Lean_Elab_registerDerivingHandler(x_6, x_7, x_5); if (lean_obj_tag(x_8) == 0) { @@ -20075,7 +19898,7 @@ lean_inc(x_9); lean_dec_ref(x_8); x_10 = l___private_Lean_Elab_Deriving_FromToJson_0__Lean_Elab_Deriving_FromToJson_mkToJsonInstance___closed__3; x_11 = 0; -x_12 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__17____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_; +x_12 = l_Lean_Elab_Deriving_FromToJson_initFn___closed__17____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_; x_13 = l_Lean_registerTraceClass(x_10, x_11, x_12, x_9); if (lean_obj_tag(x_13) == 0) { @@ -20620,8 +20443,6 @@ l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10 = _ini lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__10); l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11 = _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11(); lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__11); -l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__12 = _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__12(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_mkToJsonAuxFunction___lam__0___closed__12); l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0 = _init_l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0(); lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__0); l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__1 = _init_l_Lean_Elab_Deriving_FromToJson_mkFromJsonAuxFunction___lam__0___closed__1(); @@ -20670,43 +20491,43 @@ l___private_Lean_Elab_Deriving_FromToJson_0__Lean_Elab_Deriving_FromToJson_mkFro lean_mark_persistent(l___private_Lean_Elab_Deriving_FromToJson_0__Lean_Elab_Deriving_FromToJson_mkFromJsonInstance___closed__0); l___private_Lean_Elab_Deriving_FromToJson_0__Lean_Elab_Deriving_FromToJson_mkFromJsonInstance___closed__1 = _init_l___private_Lean_Elab_Deriving_FromToJson_0__Lean_Elab_Deriving_FromToJson_mkFromJsonInstance___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Deriving_FromToJson_0__Lean_Elab_Deriving_FromToJson_mkFromJsonInstance___closed__1); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__0____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__0____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__0____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__1____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__1____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__1____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__2____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__2____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__2____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__3____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__3____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__3____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__4____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__4____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__4____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__5____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__5____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__5____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__6____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__6____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__6____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__7____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__7____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__7____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__8____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__8____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__8____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__9____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__9____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__9____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__10____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__10____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__10____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__11____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__11____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__11____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__12____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__12____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__12____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__13____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__13____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__13____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__14____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__14____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__14____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__15____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__15____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__15____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__16____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__16____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__16____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -l_Lean_Elab_Deriving_FromToJson_initFn___closed__17____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__17____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__17____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_); -if (builtin) {res = l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6619_(lean_io_mk_world()); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__0____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__0____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__0____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__1____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__1____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__1____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__2____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__2____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__2____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__3____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__3____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__3____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__4____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__4____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__4____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__5____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__5____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__5____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__6____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__6____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__6____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__7____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__7____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__7____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__8____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__8____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__8____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__9____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__9____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__9____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__10____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__10____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__10____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__11____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__11____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__11____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__12____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__12____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__12____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__13____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__13____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__13____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__14____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__14____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__14____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__15____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__15____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__15____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__16____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__16____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__16____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +l_Lean_Elab_Deriving_FromToJson_initFn___closed__17____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_ = _init_l_Lean_Elab_Deriving_FromToJson_initFn___closed__17____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn___closed__17____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_); +if (builtin) {res = l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6599_(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)); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c b/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c index 576495e3ac..e1efa6434c 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c @@ -16,6 +16,7 @@ extern "C" { LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance_spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__24; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_implicitBinderF; LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___Lean_getConstInfoInduct___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -26,6 +27,7 @@ lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_revFold___at___Lean_RBTree_toList___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__0_spec__0___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__17; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__1; +static lean_object* l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__2_spec__2___redArg___lam__0___closed__1; lean_object* l_Lean_RBNode_insert___at___Lean_IR_mkIndexSet_spec__0___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__17; @@ -47,6 +49,7 @@ LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at__ static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__13; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__15; uint8_t lean_usize_dec_eq(size_t, size_t); +static lean_object* l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__5; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___closed__3; lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_object*, lean_object*); @@ -60,6 +63,7 @@ static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____pr static lean_object* l_Lean_getConstInfoInduct___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__1___closed__3; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__13; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__5; +static lean_object* l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParams___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -88,17 +92,17 @@ static lean_object* l_Lean_getConstInfoInduct___at_____private_Lean_Elab_Derivin LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mkArray1___redArg(lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__2_spec__2___redArg___lam__0___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg(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___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___lam__1___closed__1; LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; lean_object* l_Lean_Elab_registerDerivingHandler(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_List_mapTR_loop___at_____private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder_spec__13(lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__4; +static lean_object* l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__0; -static lean_object* l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___lam__0___closed__1; lean_object* l_Lean_ForEachExprWhere_visit___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t); @@ -107,9 +111,11 @@ lean_object* l_Lean_Syntax_node6(lean_object*, lean_object*, lean_object*, lean_ static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__5; lean_object* l_instMonadEST(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___lam__0___closed__6; +lean_object* l_Array_empty(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__20; lean_object* l_Lean_Parser_Term_implicitBinder(uint8_t); +static lean_object* l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__2_spec__2___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__2_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -117,10 +123,10 @@ LEAN_EXPORT lean_object* l_Lean_RBTree_toList___at_____private_Lean_Elab_Derivin LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDeclD___at___Lean_Elab_Term_ToDepElimPattern_main_unpack_go_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___lam__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__26; lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___closed__2; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___lam__1___closed__3; -static lean_object* l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__3___redArg___closed__1; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__3___redArg___closed__0; LEAN_EXPORT lean_object* l_Lean_isInductive___at___Lean_Elab_mkInhabitedInstanceHandler_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -129,10 +135,9 @@ lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_o LEAN_EXPORT lean_object* l_Lean_RBNode_findCore___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__0(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__4; +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance_spec__2___boxed(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_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__11; -static lean_object* l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; -static lean_object* l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_mkInhabitedInstanceHandler(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*); @@ -151,7 +156,6 @@ static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____pr static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___lam__0___closed__2; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___lam__0___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_mkInhabitedInstanceHandler___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__19; LEAN_EXPORT lean_object* l_Lean_isInductive___at___Lean_Elab_mkInhabitedInstanceHandler_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__0; @@ -162,7 +166,6 @@ static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInha static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__11; lean_object* lean_mk_syntax_ident(lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__23; -static lean_object* l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; static lean_object* l_Lean_getConstInfoInduct___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__1___closed__1; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -170,6 +173,7 @@ LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at__ lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___lam__1___closed__4; lean_object* l_StateRefT_x27_lift___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___lam__0___closed__3; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__3___redArg___closed__4; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__10; @@ -178,12 +182,13 @@ static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____pr static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___lam__0___closed__0; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__4; LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___Lean_getConstInfoInduct___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__6; lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___at___Lean_Elab_Term_processDefDeriving_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__19; +static lean_object* l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; LEAN_EXPORT lean_object* l_Lean_RBTree_toList___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__0___boxed(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_findCore___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__0___redArg(lean_object*, lean_object*); @@ -198,33 +203,35 @@ static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInha uint8_t lean_nat_dec_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Environment_mainModule(lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___lam__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*); +static lean_object* l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___lam__1___closed__5; lean_object* l_Lean_Meta_forallTelescopeReducing___at___Lean_Elab_Term_elabNoFun_spec__1___redArg(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___lam__1___closed__0; lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_instBinderF; +static lean_object* l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__2_spec__2___redArg___closed__1; lean_object* l_Array_toSubarray___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__9; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__1; +static lean_object* l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__3___redArg___closed__2; lean_object* l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(size_t, size_t, lean_object*); lean_object* l_Array_append___redArg(lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__14; +uint8_t l_Lean_isPrivateName(lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_implicitBinderF___closed__0; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__21; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__2_spec__2___redArg___lam__0___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParams___redArg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; lean_object* l_instMonadLiftT___lam__0___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; lean_object* l_Lean_throwError___at_____private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___boxed(lean_object**); @@ -236,6 +243,7 @@ LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at__ LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg(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_array_uget(lean_object*, size_t); size_t lean_array_size(lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__25; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___lam__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); @@ -247,6 +255,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_m lean_object* l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___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* l_Lean_RBNode_insert___at___Lean_FVarIdSet_insert_spec__0___redArg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; LEAN_EXPORT lean_object* l_Lean_isInductive___at___Lean_Elab_mkInhabitedInstanceHandler_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_instBinder; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__2___redArg___boxed(lean_object**); @@ -267,6 +276,7 @@ lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance_spec__2___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Exception_isRuntime(lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_mkInhabitedInstanceHandler_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__6; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___lam__0___closed__3; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___closed__1; @@ -278,7 +288,6 @@ LEAN_EXPORT lean_object* l_Lean_RBNode_revFold___at___Lean_RBTree_toList___at___ lean_object* l_instMonadLiftTOfMonadLift___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_String_toSubstring_x27(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_mkInhabitedInstanceHandler_spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; lean_object* l_Lean_MessageData_ofName(lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___lam__1___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParams(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -288,14 +297,11 @@ LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at__ LEAN_EXPORT lean_object* l_Lean_Elab_mkInhabitedInstanceHandler___lam__0(uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__2_spec__2___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__16; -static lean_object* l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; LEAN_EXPORT lean_object* l_Lean_RBNode_findCore___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__0___redArg___boxed(lean_object*, lean_object*); static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_implicitBinderF___closed__0() { _start: @@ -714,13 +720,13 @@ block_21: if (x_17 == 0) { lean_object* x_18; lean_object* x_19; -lean_dec_ref(x_15); +lean_dec_ref(x_16); x_18 = lean_unsigned_to_nat(1u); x_19 = lean_nat_add(x_3, x_18); lean_dec(x_3); x_2 = x_14; x_3 = x_19; -x_11 = x_16; +x_11 = x_15; goto _start; } else @@ -735,7 +741,7 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -return x_15; +return x_16; } } block_27: @@ -747,16 +753,16 @@ if (x_25 == 0) uint8_t x_26; x_26 = l_Lean_Exception_isRuntime(x_23); lean_dec_ref(x_23); -x_15 = x_22; -x_16 = x_24; +x_15 = x_24; +x_16 = x_22; x_17 = x_26; goto block_21; } else { lean_dec_ref(x_23); -x_15 = x_22; -x_16 = x_24; +x_15 = x_24; +x_16 = x_22; x_17 = x_25; goto block_21; } @@ -2633,7 +2639,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("anonymousCtor", 13, 13); +x_1 = lean_mk_string_unchecked("instance", 8, 8); return x_1; } } @@ -2641,7 +2647,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("⟨", 3, 1); +x_1 = lean_mk_string_unchecked("attrKind", 8, 8); return x_1; } } @@ -2649,7 +2655,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("⟩", 3, 1); +x_1 = lean_mk_string_unchecked("declSig", 7, 7); return x_1; } } @@ -2657,7 +2663,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Command", 7, 7); +x_1 = lean_mk_string_unchecked("typeSpec", 8, 8); return x_1; } } @@ -2665,7 +2671,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("declaration", 11, 11); +x_1 = lean_mk_string_unchecked(":", 1, 1); return x_1; } } @@ -2673,7 +2679,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("declModifiers", 13, 13); +x_1 = lean_mk_string_unchecked("declValSimple", 13, 13); return x_1; } } @@ -2681,7 +2687,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("instance", 8, 8); +x_1 = lean_mk_string_unchecked(":=", 2, 2); return x_1; } } @@ -2689,7 +2695,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("attrKind", 8, 8); +x_1 = lean_mk_string_unchecked("Termination", 11, 11); return x_1; } } @@ -2697,7 +2703,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("declSig", 7, 7); +x_1 = lean_mk_string_unchecked("suffix", 6, 6); return x_1; } } @@ -2705,7 +2711,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("typeSpec", 8, 8); +x_1 = lean_mk_string_unchecked("Command", 7, 7); return x_1; } } @@ -2713,7 +2719,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked(":", 1, 1); +x_1 = lean_mk_string_unchecked("declaration", 11, 11); return x_1; } } @@ -2721,7 +2727,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("declValSimple", 13, 13); +x_1 = lean_mk_string_unchecked("declModifiers", 13, 13); return x_1; } } @@ -2729,7 +2735,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked(":=", 2, 2); +x_1 = l_Array_empty(lean_box(0)); return x_1; } } @@ -2737,7 +2743,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Termination", 11, 11); +x_1 = lean_mk_string_unchecked("private", 7, 7); return x_1; } } @@ -2745,52 +2751,50 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("suffix", 6, 6); +x_1 = lean_mk_string_unchecked("anonymousCtor", 13, 13); return x_1; } } static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__15() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("⟨", 3, 1); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__16() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("⟩", 3, 1); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__17() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__18() { +_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___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__16() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("paren", 5, 5); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__17() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__16; -x_2 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__2; -x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__1; -x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__18() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("(", 1, 1); -return x_1; -} -} static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__19() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("explicit", 8, 8); +x_1 = lean_mk_string_unchecked("paren", 5, 5); return x_1; } } @@ -2810,7 +2814,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("@", 1, 1); +x_1 = lean_mk_string_unchecked("(", 1, 1); return x_1; } } @@ -2818,15 +2822,43 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked(")", 1, 1); +x_1 = lean_mk_string_unchecked("explicit", 8, 8); return x_1; } } static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__23() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__22; +x_2 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__2; +x_3 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__1; +x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__24() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("@", 1, 1); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__25() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(")", 1, 1); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__26() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__15; +x_1 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__18; x_2 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_2, 0, x_1); lean_ctor_set(x_2, 1, x_1); @@ -2836,1309 +2868,923 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_11; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_61; lean_inc_ref(x_4); lean_inc(x_1); -x_11 = l_Lean_getConstInfoInduct___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__1(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_11) == 0) +x_61 = l_Lean_getConstInfoInduct___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__1(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_61) == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec_ref(x_11); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec_ref(x_61); lean_inc_ref(x_4); lean_inc(x_2); -x_14 = l_Lean_getConstInfoCtor___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__2(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_13); -if (lean_obj_tag(x_14) == 0) +x_64 = l_Lean_getConstInfoCtor___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__2(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_63); +if (lean_obj_tag(x_64) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 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; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; uint8_t x_444; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec_ref(x_14); -x_17 = lean_ctor_get(x_12, 1); -lean_inc(x_17); -x_18 = lean_ctor_get(x_12, 2); -lean_inc(x_18); -lean_dec(x_12); -x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___lam__0___boxed), 7, 0); -x_324 = lean_nat_add(x_17, x_18); -lean_dec(x_18); -lean_dec(x_17); -x_325 = lean_unsigned_to_nat(0u); -x_348 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__15; -x_444 = lean_nat_dec_lt(x_325, x_324); -if (x_444 == 0) +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; uint8_t x_78; lean_object* x_79; lean_object* x_80; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_315; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec_ref(x_64); +x_67 = lean_ctor_get(x_62, 1); +lean_inc(x_67); +x_68 = lean_ctor_get(x_62, 2); +lean_inc(x_68); +lean_dec(x_62); +x_69 = lean_alloc_closure((void*)(l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___lam__0___boxed), 7, 0); +x_195 = lean_nat_add(x_67, x_68); +lean_dec(x_68); +lean_dec(x_67); +x_196 = lean_unsigned_to_nat(0u); +x_219 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__18; +x_315 = lean_nat_dec_lt(x_196, x_195); +if (x_315 == 0) { -lean_dec(x_324); -x_349 = x_348; -x_350 = x_348; -x_351 = x_16; -goto block_443; +lean_dec(x_195); +x_220 = x_219; +x_221 = x_219; +x_222 = x_66; +goto block_314; } else { -lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; -x_445 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__23; +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; +x_316 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__26; lean_inc_ref(x_8); -x_446 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg(x_3, x_324, x_445, x_325, x_8, x_9, x_16); -lean_dec(x_324); -x_447 = lean_ctor_get(x_446, 0); -lean_inc(x_447); -x_448 = lean_ctor_get(x_446, 1); -lean_inc(x_448); -lean_dec_ref(x_446); -x_449 = lean_ctor_get(x_447, 0); -lean_inc(x_449); -x_450 = lean_ctor_get(x_447, 1); -lean_inc(x_450); -lean_dec(x_447); -x_349 = x_449; -x_350 = x_450; -x_351 = x_448; -goto block_443; +x_317 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg(x_3, x_195, x_316, x_196, x_8, x_9, x_66); +lean_dec(x_195); +x_318 = lean_ctor_get(x_317, 0); +lean_inc(x_318); +x_319 = lean_ctor_get(x_317, 1); +lean_inc(x_319); +lean_dec_ref(x_317); +x_320 = lean_ctor_get(x_318, 0); +lean_inc(x_320); +x_321 = lean_ctor_get(x_318, 1); +lean_inc(x_321); +lean_dec(x_318); +x_220 = x_320; +x_221 = x_321; +x_222 = x_319; +goto block_314; } -block_323: +block_116: { -lean_object* x_32; uint8_t x_33; -x_32 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___lam__0(x_4, x_5, x_6, x_7, x_8, x_9, x_31); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_34 = lean_ctor_get(x_32, 0); -x_35 = lean_ctor_get(x_32, 1); -x_36 = lean_st_ref_get(x_9, x_35); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_38 = lean_ctor_get(x_36, 1); -x_39 = lean_ctor_get(x_36, 0); -lean_dec(x_39); -x_40 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___lam__0(x_4, x_5, x_6, x_7, x_8, x_9, x_38); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_81 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___lam__0(x_4, x_5, x_6, x_7, x_8, x_9, x_77); lean_dec_ref(x_8); lean_dec(x_7); lean_dec_ref(x_6); lean_dec(x_5); lean_dec_ref(x_4); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_42 = lean_ctor_get(x_40, 0); -x_43 = lean_ctor_get(x_40, 1); -x_44 = lean_st_ref_get(x_9, x_43); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec_ref(x_81); +x_84 = lean_st_ref_get(x_9, x_83); lean_dec(x_9); -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) +x_85 = !lean_is_exclusive(x_84); +if (x_85 == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 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; size_t x_73; size_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_46 = lean_ctor_get(x_44, 0); -lean_dec(x_46); -x_47 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__0; -lean_inc_ref(x_27); -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_48 = l_Lean_Name_mkStr4(x_23, x_22, x_27, x_47); -x_49 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__1; -lean_inc(x_34); -lean_ctor_set_tag(x_40, 2); -lean_ctor_set(x_40, 1, x_49); -lean_ctor_set(x_40, 0, x_34); -lean_inc(x_34); -lean_ctor_set_tag(x_36, 2); -lean_ctor_set(x_36, 1, x_20); -lean_ctor_set(x_36, 0, x_34); -x_50 = lean_mk_syntax_ident(x_2); -lean_inc(x_34); -x_51 = l_Lean_Syntax_node2(x_34, x_21, x_36, x_50); -lean_inc_ref(x_24); -x_52 = l_Array_append___redArg(x_24, x_30); -lean_dec_ref(x_30); -lean_inc(x_29); -lean_inc(x_34); -x_53 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_53, 0, x_34); -lean_ctor_set(x_53, 1, x_29); -lean_ctor_set(x_53, 2, x_52); -lean_inc(x_34); -x_54 = l_Lean_Syntax_node2(x_34, x_26, x_51, x_53); -lean_inc(x_29); -lean_inc(x_34); -x_55 = l_Lean_Syntax_node1(x_34, x_29, x_54); -x_56 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__2; -lean_inc(x_34); -lean_ctor_set_tag(x_32, 2); -lean_ctor_set(x_32, 1, x_56); -x_57 = l_Lean_Syntax_node3(x_34, x_48, x_40, x_55, x_32); -x_58 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__3; -x_59 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__4; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_60 = l_Lean_Name_mkStr4(x_23, x_22, x_58, x_59); -x_61 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__5; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_62 = l_Lean_Name_mkStr4(x_23, x_22, x_58, x_61); -lean_inc_ref(x_24); -lean_inc(x_29); -lean_inc(x_42); -x_63 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_63, 0, x_42); -lean_ctor_set(x_63, 1, x_29); -lean_ctor_set(x_63, 2, x_24); -lean_inc_ref_n(x_63, 6); -lean_inc(x_42); -x_64 = l_Lean_Syntax_node6(x_42, x_62, x_63, x_63, x_63, x_63, x_63, x_63); -x_65 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__6; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_66 = l_Lean_Name_mkStr4(x_23, x_22, x_58, x_65); -x_67 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__7; -lean_inc_ref(x_27); -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_68 = l_Lean_Name_mkStr4(x_23, x_22, x_27, x_67); -lean_inc_ref(x_63); -lean_inc(x_42); -x_69 = l_Lean_Syntax_node1(x_42, x_68, x_63); -lean_inc(x_42); -x_70 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_70, 0, x_42); -lean_ctor_set(x_70, 1, x_65); -x_71 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__8; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_72 = l_Lean_Name_mkStr4(x_23, x_22, x_58, x_71); -x_73 = lean_array_size(x_28); -x_74 = 0; -x_75 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_73, x_74, x_28); -x_76 = l_Array_append___redArg(x_24, x_75); -lean_dec_ref(x_75); -lean_inc(x_42); -x_77 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_77, 0, x_42); -lean_ctor_set(x_77, 1, x_29); -lean_ctor_set(x_77, 2, x_76); -x_78 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__9; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_79 = l_Lean_Name_mkStr4(x_23, x_22, x_27, x_78); -x_80 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__10; -lean_inc(x_42); -x_81 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_81, 0, x_42); -lean_ctor_set(x_81, 1, x_80); -lean_inc(x_42); -x_82 = l_Lean_Syntax_node2(x_42, x_79, x_81, x_25); -lean_inc(x_42); -x_83 = l_Lean_Syntax_node2(x_42, x_72, x_77, x_82); -x_84 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__11; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_85 = l_Lean_Name_mkStr4(x_23, x_22, x_58, x_84); -x_86 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__12; -lean_inc(x_42); -x_87 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_87, 0, x_42); -lean_ctor_set(x_87, 1, x_86); -x_88 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__13; -x_89 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__14; -x_90 = l_Lean_Name_mkStr4(x_23, x_22, x_88, x_89); -lean_inc_ref_n(x_63, 2); -lean_inc(x_42); -x_91 = l_Lean_Syntax_node2(x_42, x_90, x_63, x_63); -lean_inc_ref(x_63); -lean_inc(x_42); -x_92 = l_Lean_Syntax_node4(x_42, x_85, x_87, x_57, x_91, x_63); -lean_inc_ref(x_63); -lean_inc(x_42); -x_93 = l_Lean_Syntax_node6(x_42, x_66, x_69, x_70, x_63, x_63, x_83, x_92); -x_94 = l_Lean_Syntax_node2(x_42, x_60, x_64, x_93); -lean_ctor_set(x_44, 0, x_94); -return x_44; +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_86 = lean_ctor_get(x_84, 1); +x_87 = lean_ctor_get(x_84, 0); +lean_dec(x_87); +x_88 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__9; +x_89 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__10; +lean_inc_ref(x_75); +lean_inc_ref(x_76); +x_90 = l_Lean_Name_mkStr4(x_76, x_75, x_88, x_89); +x_91 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__11; +lean_inc_ref(x_75); +lean_inc_ref(x_76); +x_92 = l_Lean_Name_mkStr4(x_76, x_75, x_88, x_91); +lean_inc_ref(x_72); +lean_inc(x_73); +lean_inc(x_82); +x_93 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_93, 0, x_82); +lean_ctor_set(x_93, 1, x_73); +lean_ctor_set(x_93, 2, x_72); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_94; +lean_free_object(x_84); +x_94 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__12; +x_11 = x_71; +x_12 = x_93; +x_13 = x_73; +x_14 = x_76; +x_15 = x_86; +x_16 = x_70; +x_17 = x_72; +x_18 = x_92; +x_19 = x_75; +x_20 = x_74; +x_21 = x_88; +x_22 = x_90; +x_23 = x_82; +x_24 = x_79; +x_25 = x_94; +goto block_60; } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; size_t x_122; size_t x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_95 = lean_ctor_get(x_44, 1); +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_95 = lean_ctor_get(x_80, 0); lean_inc(x_95); -lean_dec(x_44); -x_96 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__0; -lean_inc_ref(x_27); -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_97 = l_Lean_Name_mkStr4(x_23, x_22, x_27, x_96); -x_98 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__1; -lean_inc(x_34); -lean_ctor_set_tag(x_40, 2); -lean_ctor_set(x_40, 1, x_98); -lean_ctor_set(x_40, 0, x_34); -lean_inc(x_34); -lean_ctor_set_tag(x_36, 2); -lean_ctor_set(x_36, 1, x_20); -lean_ctor_set(x_36, 0, x_34); -x_99 = lean_mk_syntax_ident(x_2); -lean_inc(x_34); -x_100 = l_Lean_Syntax_node2(x_34, x_21, x_36, x_99); -lean_inc_ref(x_24); -x_101 = l_Array_append___redArg(x_24, x_30); -lean_dec_ref(x_30); -lean_inc(x_29); -lean_inc(x_34); -x_102 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_102, 0, x_34); -lean_ctor_set(x_102, 1, x_29); -lean_ctor_set(x_102, 2, x_101); -lean_inc(x_34); -x_103 = l_Lean_Syntax_node2(x_34, x_26, x_100, x_102); -lean_inc(x_29); -lean_inc(x_34); -x_104 = l_Lean_Syntax_node1(x_34, x_29, x_103); -x_105 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__2; -lean_inc(x_34); -lean_ctor_set_tag(x_32, 2); -lean_ctor_set(x_32, 1, x_105); -x_106 = l_Lean_Syntax_node3(x_34, x_97, x_40, x_104, x_32); -x_107 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__3; -x_108 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__4; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_109 = l_Lean_Name_mkStr4(x_23, x_22, x_107, x_108); -x_110 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__5; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_111 = l_Lean_Name_mkStr4(x_23, x_22, x_107, x_110); -lean_inc_ref(x_24); -lean_inc(x_29); -lean_inc(x_42); -x_112 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_112, 0, x_42); -lean_ctor_set(x_112, 1, x_29); -lean_ctor_set(x_112, 2, x_24); -lean_inc_ref_n(x_112, 6); -lean_inc(x_42); -x_113 = l_Lean_Syntax_node6(x_42, x_111, x_112, x_112, x_112, x_112, x_112, x_112); -x_114 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__6; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_115 = l_Lean_Name_mkStr4(x_23, x_22, x_107, x_114); -x_116 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__7; -lean_inc_ref(x_27); -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_117 = l_Lean_Name_mkStr4(x_23, x_22, x_27, x_116); -lean_inc_ref(x_112); -lean_inc(x_42); -x_118 = l_Lean_Syntax_node1(x_42, x_117, x_112); -lean_inc(x_42); -x_119 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_119, 0, x_42); -lean_ctor_set(x_119, 1, x_114); -x_120 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__8; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_121 = l_Lean_Name_mkStr4(x_23, x_22, x_107, x_120); -x_122 = lean_array_size(x_28); -x_123 = 0; -x_124 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_122, x_123, x_28); -x_125 = l_Array_append___redArg(x_24, x_124); -lean_dec_ref(x_124); -lean_inc(x_42); -x_126 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_126, 0, x_42); -lean_ctor_set(x_126, 1, x_29); -lean_ctor_set(x_126, 2, x_125); -x_127 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__9; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_128 = l_Lean_Name_mkStr4(x_23, x_22, x_27, x_127); -x_129 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__10; -lean_inc(x_42); -x_130 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_130, 0, x_42); -lean_ctor_set(x_130, 1, x_129); -lean_inc(x_42); -x_131 = l_Lean_Syntax_node2(x_42, x_128, x_130, x_25); -lean_inc(x_42); -x_132 = l_Lean_Syntax_node2(x_42, x_121, x_126, x_131); -x_133 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__11; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_134 = l_Lean_Name_mkStr4(x_23, x_22, x_107, x_133); -x_135 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__12; -lean_inc(x_42); -x_136 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_136, 0, x_42); -lean_ctor_set(x_136, 1, x_135); -x_137 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__13; -x_138 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__14; -x_139 = l_Lean_Name_mkStr4(x_23, x_22, x_137, x_138); -lean_inc_ref_n(x_112, 2); -lean_inc(x_42); -x_140 = l_Lean_Syntax_node2(x_42, x_139, x_112, x_112); -lean_inc_ref(x_112); -lean_inc(x_42); -x_141 = l_Lean_Syntax_node4(x_42, x_134, x_136, x_106, x_140, x_112); -lean_inc_ref(x_112); -lean_inc(x_42); -x_142 = l_Lean_Syntax_node6(x_42, x_115, x_118, x_119, x_112, x_112, x_132, x_141); -x_143 = l_Lean_Syntax_node2(x_42, x_109, x_113, x_142); -x_144 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_95); -return x_144; +lean_dec(x_80); +x_96 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__13; +lean_inc_ref(x_75); +lean_inc_ref(x_76); +x_97 = l_Lean_Name_mkStr4(x_76, x_75, x_88, x_96); +x_98 = l_Lean_SourceInfo_fromRef(x_95, x_78); +lean_dec(x_95); +lean_ctor_set_tag(x_84, 2); +lean_ctor_set(x_84, 1, x_96); +lean_ctor_set(x_84, 0, x_98); +lean_inc(x_82); +x_99 = l_Lean_Syntax_node1(x_82, x_97, x_84); +x_100 = l_Array_mkArray1___redArg(x_99); +x_11 = x_71; +x_12 = x_93; +x_13 = x_73; +x_14 = x_76; +x_15 = x_86; +x_16 = x_70; +x_17 = x_72; +x_18 = x_92; +x_19 = x_75; +x_20 = x_74; +x_21 = x_88; +x_22 = x_90; +x_23 = x_82; +x_24 = x_79; +x_25 = x_100; +goto block_60; } } else { -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; size_t x_177; size_t x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; -x_145 = lean_ctor_get(x_40, 0); -x_146 = lean_ctor_get(x_40, 1); -lean_inc(x_146); -lean_inc(x_145); -lean_dec(x_40); -x_147 = lean_st_ref_get(x_9, x_146); +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_101 = lean_ctor_get(x_84, 1); +lean_inc(x_101); +lean_dec(x_84); +x_102 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__9; +x_103 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__10; +lean_inc_ref(x_75); +lean_inc_ref(x_76); +x_104 = l_Lean_Name_mkStr4(x_76, x_75, x_102, x_103); +x_105 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__11; +lean_inc_ref(x_75); +lean_inc_ref(x_76); +x_106 = l_Lean_Name_mkStr4(x_76, x_75, x_102, x_105); +lean_inc_ref(x_72); +lean_inc(x_73); +lean_inc(x_82); +x_107 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_107, 0, x_82); +lean_ctor_set(x_107, 1, x_73); +lean_ctor_set(x_107, 2, x_72); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_108; +x_108 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__12; +x_11 = x_71; +x_12 = x_107; +x_13 = x_73; +x_14 = x_76; +x_15 = x_101; +x_16 = x_70; +x_17 = x_72; +x_18 = x_106; +x_19 = x_75; +x_20 = x_74; +x_21 = x_102; +x_22 = x_104; +x_23 = x_82; +x_24 = x_79; +x_25 = x_108; +goto block_60; +} +else +{ +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 = lean_ctor_get(x_80, 0); +lean_inc(x_109); +lean_dec(x_80); +x_110 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__13; +lean_inc_ref(x_75); +lean_inc_ref(x_76); +x_111 = l_Lean_Name_mkStr4(x_76, x_75, x_102, x_110); +x_112 = l_Lean_SourceInfo_fromRef(x_109, x_78); +lean_dec(x_109); +x_113 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_110); +lean_inc(x_82); +x_114 = l_Lean_Syntax_node1(x_82, x_111, x_113); +x_115 = l_Array_mkArray1___redArg(x_114); +x_11 = x_71; +x_12 = x_107; +x_13 = x_73; +x_14 = x_76; +x_15 = x_101; +x_16 = x_70; +x_17 = x_72; +x_18 = x_106; +x_19 = x_75; +x_20 = x_74; +x_21 = x_102; +x_22 = x_104; +x_23 = x_82; +x_24 = x_79; +x_25 = x_115; +goto block_60; +} +} +} +block_194: +{ +lean_object* x_129; uint8_t x_130; +x_129 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___lam__0(x_4, x_5, x_6, x_7, x_8, x_9, x_128); +x_130 = !lean_is_exclusive(x_129); +if (x_130 == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; +x_131 = lean_ctor_get(x_129, 0); +x_132 = lean_ctor_get(x_129, 1); +x_133 = lean_st_ref_get(x_9, x_132); +x_134 = !lean_is_exclusive(x_133); +if (x_134 == 0) +{ +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; uint8_t x_149; uint8_t x_150; +x_135 = lean_ctor_get(x_133, 1); +x_136 = lean_ctor_get(x_133, 0); +lean_dec(x_136); +x_137 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__14; +lean_inc_ref(x_118); +lean_inc_ref(x_124); +lean_inc_ref(x_125); +x_138 = l_Lean_Name_mkStr4(x_125, x_124, x_118, x_137); +x_139 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__15; +lean_inc(x_131); +lean_ctor_set_tag(x_133, 2); +lean_ctor_set(x_133, 1, x_139); +lean_ctor_set(x_133, 0, x_131); +lean_inc(x_131); +lean_ctor_set_tag(x_129, 2); +lean_ctor_set(x_129, 1, x_121); +x_140 = lean_mk_syntax_ident(x_2); +lean_inc(x_131); +x_141 = l_Lean_Syntax_node2(x_131, x_126, x_129, x_140); +lean_inc_ref(x_120); +x_142 = l_Array_append___redArg(x_120, x_127); +lean_dec_ref(x_127); +lean_inc(x_122); +lean_inc(x_131); +x_143 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_143, 0, x_131); +lean_ctor_set(x_143, 1, x_122); +lean_ctor_set(x_143, 2, x_142); +lean_inc(x_131); +x_144 = l_Lean_Syntax_node2(x_131, x_119, x_141, x_143); +lean_inc(x_122); +lean_inc(x_131); +x_145 = l_Lean_Syntax_node1(x_131, x_122, x_144); +x_146 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__16; +lean_inc(x_131); +x_147 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_147, 0, x_131); +lean_ctor_set(x_147, 1, x_146); +x_148 = l_Lean_Syntax_node3(x_131, x_138, x_133, x_145, x_147); +x_149 = l_Lean_isPrivateName(x_1); +lean_dec(x_1); +x_150 = 1; +if (x_149 == 0) +{ +lean_object* x_151; +x_151 = lean_box(0); +x_70 = x_117; +x_71 = x_118; +x_72 = x_120; +x_73 = x_122; +x_74 = x_123; +x_75 = x_124; +x_76 = x_125; +x_77 = x_135; +x_78 = x_150; +x_79 = x_148; +x_80 = x_151; +goto block_116; +} +else +{ +lean_object* x_152; +x_152 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__17; +x_70 = x_117; +x_71 = x_118; +x_72 = x_120; +x_73 = x_122; +x_74 = x_123; +x_75 = x_124; +x_76 = x_125; +x_77 = x_135; +x_78 = x_150; +x_79 = x_148; +x_80 = x_152; +goto block_116; +} +} +else +{ +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; uint8_t x_167; uint8_t x_168; +x_153 = lean_ctor_get(x_133, 1); +lean_inc(x_153); +lean_dec(x_133); +x_154 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__14; +lean_inc_ref(x_118); +lean_inc_ref(x_124); +lean_inc_ref(x_125); +x_155 = l_Lean_Name_mkStr4(x_125, x_124, x_118, x_154); +x_156 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__15; +lean_inc(x_131); +x_157 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_157, 0, x_131); +lean_ctor_set(x_157, 1, x_156); +lean_inc(x_131); +lean_ctor_set_tag(x_129, 2); +lean_ctor_set(x_129, 1, x_121); +x_158 = lean_mk_syntax_ident(x_2); +lean_inc(x_131); +x_159 = l_Lean_Syntax_node2(x_131, x_126, x_129, x_158); +lean_inc_ref(x_120); +x_160 = l_Array_append___redArg(x_120, x_127); +lean_dec_ref(x_127); +lean_inc(x_122); +lean_inc(x_131); +x_161 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_161, 0, x_131); +lean_ctor_set(x_161, 1, x_122); +lean_ctor_set(x_161, 2, x_160); +lean_inc(x_131); +x_162 = l_Lean_Syntax_node2(x_131, x_119, x_159, x_161); +lean_inc(x_122); +lean_inc(x_131); +x_163 = l_Lean_Syntax_node1(x_131, x_122, x_162); +x_164 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__16; +lean_inc(x_131); +x_165 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_165, 0, x_131); +lean_ctor_set(x_165, 1, x_164); +x_166 = l_Lean_Syntax_node3(x_131, x_155, x_157, x_163, x_165); +x_167 = l_Lean_isPrivateName(x_1); +lean_dec(x_1); +x_168 = 1; +if (x_167 == 0) +{ +lean_object* x_169; +x_169 = lean_box(0); +x_70 = x_117; +x_71 = x_118; +x_72 = x_120; +x_73 = x_122; +x_74 = x_123; +x_75 = x_124; +x_76 = x_125; +x_77 = x_153; +x_78 = x_168; +x_79 = x_166; +x_80 = x_169; +goto block_116; +} +else +{ +lean_object* x_170; +x_170 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__17; +x_70 = x_117; +x_71 = x_118; +x_72 = x_120; +x_73 = x_122; +x_74 = x_123; +x_75 = x_124; +x_76 = x_125; +x_77 = x_153; +x_78 = x_168; +x_79 = x_166; +x_80 = x_170; +goto block_116; +} +} +} +else +{ +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; uint8_t x_190; uint8_t x_191; +x_171 = lean_ctor_get(x_129, 0); +x_172 = lean_ctor_get(x_129, 1); +lean_inc(x_172); +lean_inc(x_171); +lean_dec(x_129); +x_173 = lean_st_ref_get(x_9, x_172); +x_174 = lean_ctor_get(x_173, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_173)) { + lean_ctor_release(x_173, 0); + lean_ctor_release(x_173, 1); + x_175 = x_173; +} else { + lean_dec_ref(x_173); + x_175 = lean_box(0); +} +x_176 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__14; +lean_inc_ref(x_118); +lean_inc_ref(x_124); +lean_inc_ref(x_125); +x_177 = l_Lean_Name_mkStr4(x_125, x_124, x_118, x_176); +x_178 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__15; +lean_inc(x_171); +if (lean_is_scalar(x_175)) { + x_179 = lean_alloc_ctor(2, 2, 0); +} else { + x_179 = x_175; + lean_ctor_set_tag(x_179, 2); +} +lean_ctor_set(x_179, 0, x_171); +lean_ctor_set(x_179, 1, x_178); +lean_inc(x_171); +x_180 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_180, 0, x_171); +lean_ctor_set(x_180, 1, x_121); +x_181 = lean_mk_syntax_ident(x_2); +lean_inc(x_171); +x_182 = l_Lean_Syntax_node2(x_171, x_126, x_180, x_181); +lean_inc_ref(x_120); +x_183 = l_Array_append___redArg(x_120, x_127); +lean_dec_ref(x_127); +lean_inc(x_122); +lean_inc(x_171); +x_184 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_184, 0, x_171); +lean_ctor_set(x_184, 1, x_122); +lean_ctor_set(x_184, 2, x_183); +lean_inc(x_171); +x_185 = l_Lean_Syntax_node2(x_171, x_119, x_182, x_184); +lean_inc(x_122); +lean_inc(x_171); +x_186 = l_Lean_Syntax_node1(x_171, x_122, x_185); +x_187 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__16; +lean_inc(x_171); +x_188 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_188, 0, x_171); +lean_ctor_set(x_188, 1, x_187); +x_189 = l_Lean_Syntax_node3(x_171, x_177, x_179, x_186, x_188); +x_190 = l_Lean_isPrivateName(x_1); +lean_dec(x_1); +x_191 = 1; +if (x_190 == 0) +{ +lean_object* x_192; +x_192 = lean_box(0); +x_70 = x_117; +x_71 = x_118; +x_72 = x_120; +x_73 = x_122; +x_74 = x_123; +x_75 = x_124; +x_76 = x_125; +x_77 = x_174; +x_78 = x_191; +x_79 = x_189; +x_80 = x_192; +goto block_116; +} +else +{ +lean_object* x_193; +x_193 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__17; +x_70 = x_117; +x_71 = x_118; +x_72 = x_120; +x_73 = x_122; +x_74 = x_123; +x_75 = x_124; +x_76 = x_125; +x_77 = x_174; +x_78 = x_191; +x_79 = x_189; +x_80 = x_193; +goto block_116; +} +} +} +block_218: +{ +uint8_t x_210; +x_210 = lean_nat_dec_lt(x_196, x_207); +if (x_210 == 0) +{ +lean_dec(x_207); +lean_dec_ref(x_69); +x_117 = x_198; +x_118 = x_197; +x_119 = x_199; +x_120 = x_201; +x_121 = x_200; +x_122 = x_202; +x_123 = x_204; +x_124 = x_203; +x_125 = x_205; +x_126 = x_206; +x_127 = x_208; +x_128 = x_209; +goto block_194; +} +else +{ +lean_object* x_211; +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +lean_inc_ref(x_6); +lean_inc(x_5); +lean_inc_ref(x_4); +x_211 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__3___redArg(x_69, x_207, x_208, x_196, x_4, x_5, x_6, x_7, x_8, x_9, x_209); +lean_dec(x_207); +if (lean_obj_tag(x_211) == 0) +{ +lean_object* x_212; lean_object* x_213; +x_212 = lean_ctor_get(x_211, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_211, 1); +lean_inc(x_213); +lean_dec_ref(x_211); +x_117 = x_198; +x_118 = x_197; +x_119 = x_199; +x_120 = x_201; +x_121 = x_200; +x_122 = x_202; +x_123 = x_204; +x_124 = x_203; +x_125 = x_205; +x_126 = x_206; +x_127 = x_212; +x_128 = x_213; +goto block_194; +} +else +{ +uint8_t x_214; +lean_dec(x_206); +lean_dec_ref(x_205); +lean_dec_ref(x_204); +lean_dec_ref(x_203); +lean_dec(x_202); +lean_dec_ref(x_201); +lean_dec_ref(x_200); +lean_dec(x_199); +lean_dec(x_198); +lean_dec_ref(x_197); lean_dec(x_9); -x_148 = lean_ctor_get(x_147, 1); -lean_inc(x_148); -if (lean_is_exclusive(x_147)) { - lean_ctor_release(x_147, 0); - lean_ctor_release(x_147, 1); - x_149 = x_147; -} else { - lean_dec_ref(x_147); - x_149 = lean_box(0); -} -x_150 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__0; -lean_inc_ref(x_27); -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_151 = l_Lean_Name_mkStr4(x_23, x_22, x_27, x_150); -x_152 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__1; -lean_inc(x_34); -x_153 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_153, 0, x_34); -lean_ctor_set(x_153, 1, x_152); -lean_inc(x_34); -lean_ctor_set_tag(x_36, 2); -lean_ctor_set(x_36, 1, x_20); -lean_ctor_set(x_36, 0, x_34); -x_154 = lean_mk_syntax_ident(x_2); -lean_inc(x_34); -x_155 = l_Lean_Syntax_node2(x_34, x_21, x_36, x_154); -lean_inc_ref(x_24); -x_156 = l_Array_append___redArg(x_24, x_30); -lean_dec_ref(x_30); -lean_inc(x_29); -lean_inc(x_34); -x_157 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_157, 0, x_34); -lean_ctor_set(x_157, 1, x_29); -lean_ctor_set(x_157, 2, x_156); -lean_inc(x_34); -x_158 = l_Lean_Syntax_node2(x_34, x_26, x_155, x_157); -lean_inc(x_29); -lean_inc(x_34); -x_159 = l_Lean_Syntax_node1(x_34, x_29, x_158); -x_160 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__2; -lean_inc(x_34); -lean_ctor_set_tag(x_32, 2); -lean_ctor_set(x_32, 1, x_160); -x_161 = l_Lean_Syntax_node3(x_34, x_151, x_153, x_159, x_32); -x_162 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__3; -x_163 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__4; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_164 = l_Lean_Name_mkStr4(x_23, x_22, x_162, x_163); -x_165 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__5; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_166 = l_Lean_Name_mkStr4(x_23, x_22, x_162, x_165); -lean_inc_ref(x_24); -lean_inc(x_29); -lean_inc(x_145); -x_167 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_167, 0, x_145); -lean_ctor_set(x_167, 1, x_29); -lean_ctor_set(x_167, 2, x_24); -lean_inc_ref_n(x_167, 6); -lean_inc(x_145); -x_168 = l_Lean_Syntax_node6(x_145, x_166, x_167, x_167, x_167, x_167, x_167, x_167); -x_169 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__6; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_170 = l_Lean_Name_mkStr4(x_23, x_22, x_162, x_169); -x_171 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__7; -lean_inc_ref(x_27); -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_172 = l_Lean_Name_mkStr4(x_23, x_22, x_27, x_171); -lean_inc_ref(x_167); -lean_inc(x_145); -x_173 = l_Lean_Syntax_node1(x_145, x_172, x_167); -lean_inc(x_145); -x_174 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_174, 0, x_145); -lean_ctor_set(x_174, 1, x_169); -x_175 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__8; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_176 = l_Lean_Name_mkStr4(x_23, x_22, x_162, x_175); -x_177 = lean_array_size(x_28); -x_178 = 0; -x_179 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_177, x_178, x_28); -x_180 = l_Array_append___redArg(x_24, x_179); -lean_dec_ref(x_179); -lean_inc(x_145); -x_181 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_181, 0, x_145); -lean_ctor_set(x_181, 1, x_29); -lean_ctor_set(x_181, 2, x_180); -x_182 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__9; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_183 = l_Lean_Name_mkStr4(x_23, x_22, x_27, x_182); -x_184 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__10; -lean_inc(x_145); -x_185 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_185, 0, x_145); -lean_ctor_set(x_185, 1, x_184); -lean_inc(x_145); -x_186 = l_Lean_Syntax_node2(x_145, x_183, x_185, x_25); -lean_inc(x_145); -x_187 = l_Lean_Syntax_node2(x_145, x_176, x_181, x_186); -x_188 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__11; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_189 = l_Lean_Name_mkStr4(x_23, x_22, x_162, x_188); -x_190 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__12; -lean_inc(x_145); -x_191 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_191, 0, x_145); -lean_ctor_set(x_191, 1, x_190); -x_192 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__13; -x_193 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__14; -x_194 = l_Lean_Name_mkStr4(x_23, x_22, x_192, x_193); -lean_inc_ref_n(x_167, 2); -lean_inc(x_145); -x_195 = l_Lean_Syntax_node2(x_145, x_194, x_167, x_167); -lean_inc_ref(x_167); -lean_inc(x_145); -x_196 = l_Lean_Syntax_node4(x_145, x_189, x_191, x_161, x_195, x_167); -lean_inc_ref(x_167); -lean_inc(x_145); -x_197 = l_Lean_Syntax_node6(x_145, x_170, x_173, x_174, x_167, x_167, x_187, x_196); -x_198 = l_Lean_Syntax_node2(x_145, x_164, x_168, x_197); -if (lean_is_scalar(x_149)) { - x_199 = lean_alloc_ctor(0, 2, 0); -} else { - x_199 = x_149; -} -lean_ctor_set(x_199, 0, x_198); -lean_ctor_set(x_199, 1, x_148); -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_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; size_t x_236; size_t x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; -x_200 = lean_ctor_get(x_36, 1); -lean_inc(x_200); -lean_dec(x_36); -x_201 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___lam__0(x_4, x_5, x_6, x_7, x_8, x_9, x_200); lean_dec_ref(x_8); lean_dec(x_7); lean_dec_ref(x_6); lean_dec(x_5); lean_dec_ref(x_4); -x_202 = lean_ctor_get(x_201, 0); -lean_inc(x_202); -x_203 = lean_ctor_get(x_201, 1); -lean_inc(x_203); -if (lean_is_exclusive(x_201)) { - lean_ctor_release(x_201, 0); - lean_ctor_release(x_201, 1); - x_204 = x_201; -} else { - lean_dec_ref(x_201); - x_204 = lean_box(0); -} -x_205 = lean_st_ref_get(x_9, x_203); -lean_dec(x_9); -x_206 = lean_ctor_get(x_205, 1); -lean_inc(x_206); -if (lean_is_exclusive(x_205)) { - lean_ctor_release(x_205, 0); - lean_ctor_release(x_205, 1); - x_207 = x_205; -} else { - lean_dec_ref(x_205); - x_207 = lean_box(0); -} -x_208 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__0; -lean_inc_ref(x_27); -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_209 = l_Lean_Name_mkStr4(x_23, x_22, x_27, x_208); -x_210 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__1; -lean_inc(x_34); -if (lean_is_scalar(x_204)) { - x_211 = lean_alloc_ctor(2, 2, 0); -} else { - x_211 = x_204; - lean_ctor_set_tag(x_211, 2); -} -lean_ctor_set(x_211, 0, x_34); -lean_ctor_set(x_211, 1, x_210); -lean_inc(x_34); -x_212 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_212, 0, x_34); -lean_ctor_set(x_212, 1, x_20); -x_213 = lean_mk_syntax_ident(x_2); -lean_inc(x_34); -x_214 = l_Lean_Syntax_node2(x_34, x_21, x_212, x_213); -lean_inc_ref(x_24); -x_215 = l_Array_append___redArg(x_24, x_30); -lean_dec_ref(x_30); -lean_inc(x_29); -lean_inc(x_34); -x_216 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_216, 0, x_34); -lean_ctor_set(x_216, 1, x_29); -lean_ctor_set(x_216, 2, x_215); -lean_inc(x_34); -x_217 = l_Lean_Syntax_node2(x_34, x_26, x_214, x_216); -lean_inc(x_29); -lean_inc(x_34); -x_218 = l_Lean_Syntax_node1(x_34, x_29, x_217); -x_219 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__2; -lean_inc(x_34); -lean_ctor_set_tag(x_32, 2); -lean_ctor_set(x_32, 1, x_219); -x_220 = l_Lean_Syntax_node3(x_34, x_209, x_211, x_218, x_32); -x_221 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__3; -x_222 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__4; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_223 = l_Lean_Name_mkStr4(x_23, x_22, x_221, x_222); -x_224 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__5; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_225 = l_Lean_Name_mkStr4(x_23, x_22, x_221, x_224); -lean_inc_ref(x_24); -lean_inc(x_29); -lean_inc(x_202); -x_226 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_226, 0, x_202); -lean_ctor_set(x_226, 1, x_29); -lean_ctor_set(x_226, 2, x_24); -lean_inc_ref_n(x_226, 6); -lean_inc(x_202); -x_227 = l_Lean_Syntax_node6(x_202, x_225, x_226, x_226, x_226, x_226, x_226, x_226); -x_228 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__6; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_229 = l_Lean_Name_mkStr4(x_23, x_22, x_221, x_228); -x_230 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__7; -lean_inc_ref(x_27); -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_231 = l_Lean_Name_mkStr4(x_23, x_22, x_27, x_230); -lean_inc_ref(x_226); -lean_inc(x_202); -x_232 = l_Lean_Syntax_node1(x_202, x_231, x_226); -lean_inc(x_202); -x_233 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_233, 0, x_202); -lean_ctor_set(x_233, 1, x_228); -x_234 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__8; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_235 = l_Lean_Name_mkStr4(x_23, x_22, x_221, x_234); -x_236 = lean_array_size(x_28); -x_237 = 0; -x_238 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_236, x_237, x_28); -x_239 = l_Array_append___redArg(x_24, x_238); -lean_dec_ref(x_238); -lean_inc(x_202); -x_240 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_240, 0, x_202); -lean_ctor_set(x_240, 1, x_29); -lean_ctor_set(x_240, 2, x_239); -x_241 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__9; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_242 = l_Lean_Name_mkStr4(x_23, x_22, x_27, x_241); -x_243 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__10; -lean_inc(x_202); -x_244 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_244, 0, x_202); -lean_ctor_set(x_244, 1, x_243); -lean_inc(x_202); -x_245 = l_Lean_Syntax_node2(x_202, x_242, x_244, x_25); -lean_inc(x_202); -x_246 = l_Lean_Syntax_node2(x_202, x_235, x_240, x_245); -x_247 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__11; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_248 = l_Lean_Name_mkStr4(x_23, x_22, x_221, x_247); -x_249 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__12; -lean_inc(x_202); -x_250 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_250, 0, x_202); -lean_ctor_set(x_250, 1, x_249); -x_251 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__13; -x_252 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__14; -x_253 = l_Lean_Name_mkStr4(x_23, x_22, x_251, x_252); -lean_inc_ref_n(x_226, 2); -lean_inc(x_202); -x_254 = l_Lean_Syntax_node2(x_202, x_253, x_226, x_226); -lean_inc_ref(x_226); -lean_inc(x_202); -x_255 = l_Lean_Syntax_node4(x_202, x_248, x_250, x_220, x_254, x_226); -lean_inc_ref(x_226); -lean_inc(x_202); -x_256 = l_Lean_Syntax_node6(x_202, x_229, x_232, x_233, x_226, x_226, x_246, x_255); -x_257 = l_Lean_Syntax_node2(x_202, x_223, x_227, x_256); -if (lean_is_scalar(x_207)) { - x_258 = lean_alloc_ctor(0, 2, 0); -} else { - x_258 = x_207; -} -lean_ctor_set(x_258, 0, x_257); -lean_ctor_set(x_258, 1, x_206); -return x_258; -} +lean_dec(x_2); +lean_dec(x_1); +x_214 = !lean_is_exclusive(x_211); +if (x_214 == 0) +{ +return x_211; } else { -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; size_t x_300; size_t x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; 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_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; -x_259 = lean_ctor_get(x_32, 0); -x_260 = lean_ctor_get(x_32, 1); -lean_inc(x_260); -lean_inc(x_259); -lean_dec(x_32); -x_261 = lean_st_ref_get(x_9, x_260); -x_262 = lean_ctor_get(x_261, 1); -lean_inc(x_262); -if (lean_is_exclusive(x_261)) { - lean_ctor_release(x_261, 0); - lean_ctor_release(x_261, 1); - x_263 = x_261; -} else { - lean_dec_ref(x_261); - x_263 = lean_box(0); +lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_215 = lean_ctor_get(x_211, 0); +x_216 = lean_ctor_get(x_211, 1); +lean_inc(x_216); +lean_inc(x_215); +lean_dec(x_211); +x_217 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_217, 0, x_215); +lean_ctor_set(x_217, 1, x_216); +return x_217; } -x_264 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___lam__0(x_4, x_5, x_6, x_7, x_8, x_9, x_262); +} +} +} +block_314: +{ +lean_object* x_223; uint8_t x_224; +x_223 = lean_st_ref_get(x_9, x_222); +x_224 = !lean_is_exclusive(x_223); +if (x_224 == 0) +{ +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; uint8_t x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; +x_225 = lean_ctor_get(x_223, 0); +x_226 = lean_ctor_get(x_223, 1); +x_227 = lean_ctor_get(x_65, 3); +lean_inc(x_227); +x_228 = lean_ctor_get(x_65, 4); +lean_inc(x_228); +lean_dec(x_65); +x_229 = lean_ctor_get(x_8, 5); +lean_inc(x_229); +x_230 = lean_ctor_get(x_8, 10); +lean_inc(x_230); +x_231 = lean_ctor_get(x_225, 0); +lean_inc_ref(x_231); +lean_dec(x_225); +x_232 = 0; +x_233 = l_Lean_SourceInfo_fromRef(x_229, x_232); +lean_dec(x_229); +x_234 = l_Lean_Environment_mainModule(x_231); +lean_dec_ref(x_231); +x_235 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__0; +x_236 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__1; +x_237 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__2; +x_238 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__13; +x_239 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__14; +x_240 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___closed__1; +x_241 = l_Lean_addMacroScope(x_234, x_240, x_230); +x_242 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__18; +lean_inc(x_233); +x_243 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_243, 0, x_233); +lean_ctor_set(x_243, 1, x_239); +lean_ctor_set(x_243, 2, x_241); +lean_ctor_set(x_243, 3, x_242); +x_244 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__6; +x_245 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__20; +x_246 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__21; +lean_inc(x_233); +lean_ctor_set_tag(x_223, 2); +lean_ctor_set(x_223, 1, x_246); +lean_ctor_set(x_223, 0, x_233); +x_247 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__23; +x_248 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__24; +lean_inc(x_233); +x_249 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_249, 0, x_233); +lean_ctor_set(x_249, 1, x_248); +lean_inc(x_1); +x_250 = lean_mk_syntax_ident(x_1); +lean_inc(x_233); +x_251 = l_Lean_Syntax_node2(x_233, x_247, x_249, x_250); +x_252 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__7; +x_253 = l_Array_append___redArg(x_252, x_221); +lean_dec_ref(x_221); +lean_inc(x_233); +x_254 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_254, 0, x_233); +lean_ctor_set(x_254, 1, x_244); +lean_ctor_set(x_254, 2, x_253); +lean_inc(x_233); +x_255 = l_Lean_Syntax_node2(x_233, x_238, x_251, x_254); +x_256 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__25; +lean_inc(x_233); +x_257 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_257, 0, x_233); +lean_ctor_set(x_257, 1, x_256); +lean_inc(x_233); +x_258 = l_Lean_Syntax_node3(x_233, x_245, x_223, x_255, x_257); +lean_inc(x_233); +x_259 = l_Lean_Syntax_node1(x_233, x_244, x_258); +x_260 = l_Lean_Syntax_node2(x_233, x_238, x_243, x_259); +x_261 = lean_nat_dec_lt(x_196, x_227); +if (x_261 == 0) +{ +lean_dec(x_227); +x_197 = x_237; +x_198 = x_260; +x_199 = x_238; +x_200 = x_248; +x_201 = x_252; +x_202 = x_244; +x_203 = x_236; +x_204 = x_220; +x_205 = x_235; +x_206 = x_247; +x_207 = x_228; +x_208 = x_219; +x_209 = x_226; +goto block_218; +} +else +{ +lean_object* x_262; +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +lean_inc_ref(x_6); +lean_inc(x_5); +lean_inc_ref(x_4); +lean_inc_ref(x_69); +x_262 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg(x_69, x_227, x_219, x_196, x_4, x_5, x_6, x_7, x_8, x_9, x_226); +lean_dec(x_227); +if (lean_obj_tag(x_262) == 0) +{ +lean_object* x_263; lean_object* x_264; +x_263 = lean_ctor_get(x_262, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_262, 1); +lean_inc(x_264); +lean_dec_ref(x_262); +x_197 = x_237; +x_198 = x_260; +x_199 = x_238; +x_200 = x_248; +x_201 = x_252; +x_202 = x_244; +x_203 = x_236; +x_204 = x_220; +x_205 = x_235; +x_206 = x_247; +x_207 = x_228; +x_208 = x_263; +x_209 = x_264; +goto block_218; +} +else +{ +uint8_t x_265; +lean_dec(x_260); +lean_dec(x_228); +lean_dec_ref(x_220); +lean_dec_ref(x_69); +lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_7); lean_dec_ref(x_6); lean_dec(x_5); lean_dec_ref(x_4); -x_265 = lean_ctor_get(x_264, 0); -lean_inc(x_265); -x_266 = lean_ctor_get(x_264, 1); +lean_dec(x_2); +lean_dec(x_1); +x_265 = !lean_is_exclusive(x_262); +if (x_265 == 0) +{ +return x_262; +} +else +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; +x_266 = lean_ctor_get(x_262, 0); +x_267 = lean_ctor_get(x_262, 1); +lean_inc(x_267); lean_inc(x_266); -if (lean_is_exclusive(x_264)) { - lean_ctor_release(x_264, 0); - lean_ctor_release(x_264, 1); - x_267 = x_264; -} else { - lean_dec_ref(x_264); - x_267 = lean_box(0); +lean_dec(x_262); +x_268 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_268, 0, x_266); +lean_ctor_set(x_268, 1, x_267); +return x_268; } -x_268 = lean_st_ref_get(x_9, x_266); -lean_dec(x_9); -x_269 = lean_ctor_get(x_268, 1); +} +} +} +else +{ +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; uint8_t 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; uint8_t x_306; +x_269 = lean_ctor_get(x_223, 0); +x_270 = lean_ctor_get(x_223, 1); +lean_inc(x_270); lean_inc(x_269); -if (lean_is_exclusive(x_268)) { - lean_ctor_release(x_268, 0); - lean_ctor_release(x_268, 1); - x_270 = x_268; -} else { - lean_dec_ref(x_268); - x_270 = lean_box(0); -} -x_271 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__0; -lean_inc_ref(x_27); -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_272 = l_Lean_Name_mkStr4(x_23, x_22, x_27, x_271); -x_273 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__1; -lean_inc(x_259); -if (lean_is_scalar(x_267)) { - x_274 = lean_alloc_ctor(2, 2, 0); -} else { - x_274 = x_267; - lean_ctor_set_tag(x_274, 2); -} -lean_ctor_set(x_274, 0, x_259); -lean_ctor_set(x_274, 1, x_273); -lean_inc(x_259); -if (lean_is_scalar(x_263)) { - x_275 = lean_alloc_ctor(2, 2, 0); -} else { - x_275 = x_263; - lean_ctor_set_tag(x_275, 2); -} -lean_ctor_set(x_275, 0, x_259); -lean_ctor_set(x_275, 1, x_20); -x_276 = lean_mk_syntax_ident(x_2); -lean_inc(x_259); -x_277 = l_Lean_Syntax_node2(x_259, x_21, x_275, x_276); -lean_inc_ref(x_24); -x_278 = l_Array_append___redArg(x_24, x_30); -lean_dec_ref(x_30); -lean_inc(x_29); -lean_inc(x_259); -x_279 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_279, 0, x_259); -lean_ctor_set(x_279, 1, x_29); -lean_ctor_set(x_279, 2, x_278); -lean_inc(x_259); -x_280 = l_Lean_Syntax_node2(x_259, x_26, x_277, x_279); -lean_inc(x_29); -lean_inc(x_259); -x_281 = l_Lean_Syntax_node1(x_259, x_29, x_280); -x_282 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__2; -lean_inc(x_259); -x_283 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_283, 0, x_259); -lean_ctor_set(x_283, 1, x_282); -x_284 = l_Lean_Syntax_node3(x_259, x_272, x_274, x_281, x_283); -x_285 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__3; -x_286 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__4; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_287 = l_Lean_Name_mkStr4(x_23, x_22, x_285, x_286); -x_288 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__5; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_289 = l_Lean_Name_mkStr4(x_23, x_22, x_285, x_288); -lean_inc_ref(x_24); -lean_inc(x_29); -lean_inc(x_265); -x_290 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_290, 0, x_265); -lean_ctor_set(x_290, 1, x_29); -lean_ctor_set(x_290, 2, x_24); -lean_inc_ref_n(x_290, 6); -lean_inc(x_265); -x_291 = l_Lean_Syntax_node6(x_265, x_289, x_290, x_290, x_290, x_290, x_290, x_290); -x_292 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__6; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_293 = l_Lean_Name_mkStr4(x_23, x_22, x_285, x_292); -x_294 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__7; -lean_inc_ref(x_27); -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_295 = l_Lean_Name_mkStr4(x_23, x_22, x_27, x_294); -lean_inc_ref(x_290); -lean_inc(x_265); -x_296 = l_Lean_Syntax_node1(x_265, x_295, x_290); -lean_inc(x_265); -x_297 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_297, 0, x_265); -lean_ctor_set(x_297, 1, x_292); -x_298 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__8; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_299 = l_Lean_Name_mkStr4(x_23, x_22, x_285, x_298); -x_300 = lean_array_size(x_28); -x_301 = 0; -x_302 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_300, x_301, x_28); -x_303 = l_Array_append___redArg(x_24, x_302); -lean_dec_ref(x_302); -lean_inc(x_265); -x_304 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_304, 0, x_265); -lean_ctor_set(x_304, 1, x_29); -lean_ctor_set(x_304, 2, x_303); -x_305 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__9; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_306 = l_Lean_Name_mkStr4(x_23, x_22, x_27, x_305); -x_307 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__10; -lean_inc(x_265); -x_308 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_308, 0, x_265); -lean_ctor_set(x_308, 1, x_307); -lean_inc(x_265); -x_309 = l_Lean_Syntax_node2(x_265, x_306, x_308, x_25); -lean_inc(x_265); -x_310 = l_Lean_Syntax_node2(x_265, x_299, x_304, x_309); -x_311 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__11; -lean_inc_ref(x_22); -lean_inc_ref(x_23); -x_312 = l_Lean_Name_mkStr4(x_23, x_22, x_285, x_311); -x_313 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__12; -lean_inc(x_265); -x_314 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_314, 0, x_265); -lean_ctor_set(x_314, 1, x_313); -x_315 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__13; -x_316 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__14; -x_317 = l_Lean_Name_mkStr4(x_23, x_22, x_315, x_316); -lean_inc_ref_n(x_290, 2); -lean_inc(x_265); -x_318 = l_Lean_Syntax_node2(x_265, x_317, x_290, x_290); -lean_inc_ref(x_290); -lean_inc(x_265); -x_319 = l_Lean_Syntax_node4(x_265, x_312, x_314, x_284, x_318, x_290); -lean_inc_ref(x_290); -lean_inc(x_265); -x_320 = l_Lean_Syntax_node6(x_265, x_293, x_296, x_297, x_290, x_290, x_310, x_319); -x_321 = l_Lean_Syntax_node2(x_265, x_287, x_291, x_320); -if (lean_is_scalar(x_270)) { - x_322 = lean_alloc_ctor(0, 2, 0); -} else { - x_322 = x_270; -} -lean_ctor_set(x_322, 0, x_321); -lean_ctor_set(x_322, 1, x_269); -return x_322; -} -} -block_347: +lean_dec(x_223); +x_271 = lean_ctor_get(x_65, 3); +lean_inc(x_271); +x_272 = lean_ctor_get(x_65, 4); +lean_inc(x_272); +lean_dec(x_65); +x_273 = lean_ctor_get(x_8, 5); +lean_inc(x_273); +x_274 = lean_ctor_get(x_8, 10); +lean_inc(x_274); +x_275 = lean_ctor_get(x_269, 0); +lean_inc_ref(x_275); +lean_dec(x_269); +x_276 = 0; +x_277 = l_Lean_SourceInfo_fromRef(x_273, x_276); +lean_dec(x_273); +x_278 = l_Lean_Environment_mainModule(x_275); +lean_dec_ref(x_275); +x_279 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__0; +x_280 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__1; +x_281 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__2; +x_282 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__13; +x_283 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__14; +x_284 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___closed__1; +x_285 = l_Lean_addMacroScope(x_278, x_284, x_274); +x_286 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__18; +lean_inc(x_277); +x_287 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_287, 0, x_277); +lean_ctor_set(x_287, 1, x_283); +lean_ctor_set(x_287, 2, x_285); +lean_ctor_set(x_287, 3, x_286); +x_288 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__6; +x_289 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__20; +x_290 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__21; +lean_inc(x_277); +x_291 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_291, 0, x_277); +lean_ctor_set(x_291, 1, x_290); +x_292 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__23; +x_293 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__24; +lean_inc(x_277); +x_294 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_294, 0, x_277); +lean_ctor_set(x_294, 1, x_293); +lean_inc(x_1); +x_295 = lean_mk_syntax_ident(x_1); +lean_inc(x_277); +x_296 = l_Lean_Syntax_node2(x_277, x_292, x_294, x_295); +x_297 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__7; +x_298 = l_Array_append___redArg(x_297, x_221); +lean_dec_ref(x_221); +lean_inc(x_277); +x_299 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_299, 0, x_277); +lean_ctor_set(x_299, 1, x_288); +lean_ctor_set(x_299, 2, x_298); +lean_inc(x_277); +x_300 = l_Lean_Syntax_node2(x_277, x_282, x_296, x_299); +x_301 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__25; +lean_inc(x_277); +x_302 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_302, 0, x_277); +lean_ctor_set(x_302, 1, x_301); +lean_inc(x_277); +x_303 = l_Lean_Syntax_node3(x_277, x_289, x_291, x_300, x_302); +lean_inc(x_277); +x_304 = l_Lean_Syntax_node1(x_277, x_288, x_303); +x_305 = l_Lean_Syntax_node2(x_277, x_282, x_287, x_304); +x_306 = lean_nat_dec_lt(x_196, x_271); +if (x_306 == 0) { -uint8_t x_339; -x_339 = lean_nat_dec_lt(x_325, x_333); -if (x_339 == 0) -{ -lean_dec(x_333); -lean_dec_ref(x_19); -x_20 = x_326; -x_21 = x_329; -x_22 = x_328; -x_23 = x_327; -x_24 = x_330; -x_25 = x_331; -x_26 = x_332; -x_27 = x_334; -x_28 = x_335; -x_29 = x_336; -x_30 = x_337; -x_31 = x_338; -goto block_323; +lean_dec(x_271); +x_197 = x_281; +x_198 = x_305; +x_199 = x_282; +x_200 = x_293; +x_201 = x_297; +x_202 = x_288; +x_203 = x_280; +x_204 = x_220; +x_205 = x_279; +x_206 = x_292; +x_207 = x_272; +x_208 = x_219; +x_209 = x_270; +goto block_218; } else { -lean_object* x_340; +lean_object* x_307; lean_inc(x_9); lean_inc_ref(x_8); lean_inc(x_7); lean_inc_ref(x_6); lean_inc(x_5); lean_inc_ref(x_4); -x_340 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__3___redArg(x_19, x_333, x_337, x_325, x_4, x_5, x_6, x_7, x_8, x_9, x_338); -lean_dec(x_333); -if (lean_obj_tag(x_340) == 0) +lean_inc_ref(x_69); +x_307 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg(x_69, x_271, x_219, x_196, x_4, x_5, x_6, x_7, x_8, x_9, x_270); +lean_dec(x_271); +if (lean_obj_tag(x_307) == 0) { -lean_object* x_341; lean_object* x_342; -x_341 = lean_ctor_get(x_340, 0); -lean_inc(x_341); -x_342 = lean_ctor_get(x_340, 1); -lean_inc(x_342); -lean_dec_ref(x_340); -x_20 = x_326; -x_21 = x_329; -x_22 = x_328; -x_23 = x_327; -x_24 = x_330; -x_25 = x_331; -x_26 = x_332; -x_27 = x_334; -x_28 = x_335; -x_29 = x_336; -x_30 = x_341; -x_31 = x_342; -goto block_323; +lean_object* x_308; lean_object* x_309; +x_308 = lean_ctor_get(x_307, 0); +lean_inc(x_308); +x_309 = lean_ctor_get(x_307, 1); +lean_inc(x_309); +lean_dec_ref(x_307); +x_197 = x_281; +x_198 = x_305; +x_199 = x_282; +x_200 = x_293; +x_201 = x_297; +x_202 = x_288; +x_203 = x_280; +x_204 = x_220; +x_205 = x_279; +x_206 = x_292; +x_207 = x_272; +x_208 = x_308; +x_209 = x_309; +goto block_218; } else { -uint8_t x_343; -lean_dec(x_336); -lean_dec_ref(x_335); -lean_dec_ref(x_334); -lean_dec(x_332); -lean_dec(x_331); -lean_dec_ref(x_330); -lean_dec(x_329); -lean_dec_ref(x_328); -lean_dec_ref(x_327); -lean_dec_ref(x_326); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_2); -x_343 = !lean_is_exclusive(x_340); -if (x_343 == 0) -{ -return x_340; -} -else -{ -lean_object* x_344; lean_object* x_345; lean_object* x_346; -x_344 = lean_ctor_get(x_340, 0); -x_345 = lean_ctor_get(x_340, 1); -lean_inc(x_345); -lean_inc(x_344); -lean_dec(x_340); -x_346 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_346, 0, x_344); -lean_ctor_set(x_346, 1, x_345); -return x_346; -} -} -} -} -block_443: -{ -lean_object* x_352; uint8_t x_353; -x_352 = lean_st_ref_get(x_9, x_351); -x_353 = !lean_is_exclusive(x_352); -if (x_353 == 0) -{ -lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; uint8_t x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; uint8_t x_390; -x_354 = lean_ctor_get(x_352, 0); -x_355 = lean_ctor_get(x_352, 1); -x_356 = lean_ctor_get(x_15, 3); -lean_inc(x_356); -x_357 = lean_ctor_get(x_15, 4); -lean_inc(x_357); -lean_dec(x_15); -x_358 = lean_ctor_get(x_8, 5); -lean_inc(x_358); -x_359 = lean_ctor_get(x_8, 10); -lean_inc(x_359); -x_360 = lean_ctor_get(x_354, 0); -lean_inc_ref(x_360); -lean_dec(x_354); -x_361 = 0; -x_362 = l_Lean_SourceInfo_fromRef(x_358, x_361); -lean_dec(x_358); -x_363 = l_Lean_Environment_mainModule(x_360); -lean_dec_ref(x_360); -x_364 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__0; -x_365 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__1; -x_366 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__2; -x_367 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__13; -x_368 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__14; -x_369 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___closed__1; -x_370 = l_Lean_addMacroScope(x_363, x_369, x_359); -x_371 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__18; -lean_inc(x_362); -x_372 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_372, 0, x_362); -lean_ctor_set(x_372, 1, x_368); -lean_ctor_set(x_372, 2, x_370); -lean_ctor_set(x_372, 3, x_371); -x_373 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__6; -x_374 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__17; -x_375 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__18; -lean_inc(x_362); -lean_ctor_set_tag(x_352, 2); -lean_ctor_set(x_352, 1, x_375); -lean_ctor_set(x_352, 0, x_362); -x_376 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__20; -x_377 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__21; -lean_inc(x_362); -x_378 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_378, 0, x_362); -lean_ctor_set(x_378, 1, x_377); -x_379 = lean_mk_syntax_ident(x_1); -lean_inc(x_362); -x_380 = l_Lean_Syntax_node2(x_362, x_376, x_378, x_379); -x_381 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__7; -x_382 = l_Array_append___redArg(x_381, x_350); -lean_dec_ref(x_350); -lean_inc(x_362); -x_383 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_383, 0, x_362); -lean_ctor_set(x_383, 1, x_373); -lean_ctor_set(x_383, 2, x_382); -lean_inc(x_362); -x_384 = l_Lean_Syntax_node2(x_362, x_367, x_380, x_383); -x_385 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__22; -lean_inc(x_362); -x_386 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_386, 0, x_362); -lean_ctor_set(x_386, 1, x_385); -lean_inc(x_362); -x_387 = l_Lean_Syntax_node3(x_362, x_374, x_352, x_384, x_386); -lean_inc(x_362); -x_388 = l_Lean_Syntax_node1(x_362, x_373, x_387); -x_389 = l_Lean_Syntax_node2(x_362, x_367, x_372, x_388); -x_390 = lean_nat_dec_lt(x_325, x_356); -if (x_390 == 0) -{ -lean_dec(x_356); -x_326 = x_377; -x_327 = x_364; -x_328 = x_365; -x_329 = x_376; -x_330 = x_381; -x_331 = x_389; -x_332 = x_367; -x_333 = x_357; -x_334 = x_366; -x_335 = x_349; -x_336 = x_373; -x_337 = x_348; -x_338 = x_355; -goto block_347; -} -else -{ -lean_object* x_391; -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -lean_inc_ref(x_6); -lean_inc(x_5); -lean_inc_ref(x_4); -lean_inc_ref(x_19); -x_391 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg(x_19, x_356, x_348, x_325, x_4, x_5, x_6, x_7, x_8, x_9, x_355); -lean_dec(x_356); -if (lean_obj_tag(x_391) == 0) -{ -lean_object* x_392; lean_object* x_393; -x_392 = lean_ctor_get(x_391, 0); -lean_inc(x_392); -x_393 = lean_ctor_get(x_391, 1); -lean_inc(x_393); -lean_dec_ref(x_391); -x_326 = x_377; -x_327 = x_364; -x_328 = x_365; -x_329 = x_376; -x_330 = x_381; -x_331 = x_389; -x_332 = x_367; -x_333 = x_357; -x_334 = x_366; -x_335 = x_349; -x_336 = x_373; -x_337 = x_392; -x_338 = x_393; -goto block_347; -} -else -{ -uint8_t x_394; -lean_dec(x_389); -lean_dec(x_357); -lean_dec_ref(x_349); -lean_dec_ref(x_19); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_2); -x_394 = !lean_is_exclusive(x_391); -if (x_394 == 0) -{ -return x_391; -} -else -{ -lean_object* x_395; lean_object* x_396; lean_object* x_397; -x_395 = lean_ctor_get(x_391, 0); -x_396 = lean_ctor_get(x_391, 1); -lean_inc(x_396); -lean_inc(x_395); -lean_dec(x_391); -x_397 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_397, 0, x_395); -lean_ctor_set(x_397, 1, x_396); -return x_397; -} -} -} -} -else -{ -lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; uint8_t x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; uint8_t x_435; -x_398 = lean_ctor_get(x_352, 0); -x_399 = lean_ctor_get(x_352, 1); -lean_inc(x_399); -lean_inc(x_398); -lean_dec(x_352); -x_400 = lean_ctor_get(x_15, 3); -lean_inc(x_400); -x_401 = lean_ctor_get(x_15, 4); -lean_inc(x_401); -lean_dec(x_15); -x_402 = lean_ctor_get(x_8, 5); -lean_inc(x_402); -x_403 = lean_ctor_get(x_8, 10); -lean_inc(x_403); -x_404 = lean_ctor_get(x_398, 0); -lean_inc_ref(x_404); -lean_dec(x_398); -x_405 = 0; -x_406 = l_Lean_SourceInfo_fromRef(x_402, x_405); -lean_dec(x_402); -x_407 = l_Lean_Environment_mainModule(x_404); -lean_dec_ref(x_404); -x_408 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__0; -x_409 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__1; -x_410 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__2; -x_411 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__13; -x_412 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__14; -x_413 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___closed__1; -x_414 = l_Lean_addMacroScope(x_407, x_413, x_403); -x_415 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__18; -lean_inc(x_406); -x_416 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_416, 0, x_406); -lean_ctor_set(x_416, 1, x_412); -lean_ctor_set(x_416, 2, x_414); -lean_ctor_set(x_416, 3, x_415); -x_417 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__6; -x_418 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__17; -x_419 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__18; -lean_inc(x_406); -x_420 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_420, 0, x_406); -lean_ctor_set(x_420, 1, x_419); -x_421 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__20; -x_422 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__21; -lean_inc(x_406); -x_423 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_423, 0, x_406); -lean_ctor_set(x_423, 1, x_422); -x_424 = lean_mk_syntax_ident(x_1); -lean_inc(x_406); -x_425 = l_Lean_Syntax_node2(x_406, x_421, x_423, x_424); -x_426 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__5___redArg___closed__7; -x_427 = l_Array_append___redArg(x_426, x_350); -lean_dec_ref(x_350); -lean_inc(x_406); -x_428 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_428, 0, x_406); -lean_ctor_set(x_428, 1, x_417); -lean_ctor_set(x_428, 2, x_427); -lean_inc(x_406); -x_429 = l_Lean_Syntax_node2(x_406, x_411, x_425, x_428); -x_430 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__22; -lean_inc(x_406); -x_431 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_431, 0, x_406); -lean_ctor_set(x_431, 1, x_430); -lean_inc(x_406); -x_432 = l_Lean_Syntax_node3(x_406, x_418, x_420, x_429, x_431); -lean_inc(x_406); -x_433 = l_Lean_Syntax_node1(x_406, x_417, x_432); -x_434 = l_Lean_Syntax_node2(x_406, x_411, x_416, x_433); -x_435 = lean_nat_dec_lt(x_325, x_400); -if (x_435 == 0) -{ -lean_dec(x_400); -x_326 = x_422; -x_327 = x_408; -x_328 = x_409; -x_329 = x_421; -x_330 = x_426; -x_331 = x_434; -x_332 = x_411; -x_333 = x_401; -x_334 = x_410; -x_335 = x_349; -x_336 = x_417; -x_337 = x_348; -x_338 = x_399; -goto block_347; -} -else -{ -lean_object* x_436; -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -lean_inc_ref(x_6); -lean_inc(x_5); -lean_inc_ref(x_4); -lean_inc_ref(x_19); -x_436 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg(x_19, x_400, x_348, x_325, x_4, x_5, x_6, x_7, x_8, x_9, x_399); -lean_dec(x_400); -if (lean_obj_tag(x_436) == 0) -{ -lean_object* x_437; lean_object* x_438; -x_437 = lean_ctor_get(x_436, 0); -lean_inc(x_437); -x_438 = lean_ctor_get(x_436, 1); -lean_inc(x_438); -lean_dec_ref(x_436); -x_326 = x_422; -x_327 = x_408; -x_328 = x_409; -x_329 = x_421; -x_330 = x_426; -x_331 = x_434; -x_332 = x_411; -x_333 = x_401; -x_334 = x_410; -x_335 = x_349; -x_336 = x_417; -x_337 = x_437; -x_338 = x_438; -goto block_347; -} -else -{ -lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; -lean_dec(x_434); -lean_dec(x_401); -lean_dec_ref(x_349); -lean_dec_ref(x_19); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_2); -x_439 = lean_ctor_get(x_436, 0); -lean_inc(x_439); -x_440 = lean_ctor_get(x_436, 1); -lean_inc(x_440); -if (lean_is_exclusive(x_436)) { - lean_ctor_release(x_436, 0); - lean_ctor_release(x_436, 1); - x_441 = x_436; -} else { - lean_dec_ref(x_436); - x_441 = lean_box(0); -} -if (lean_is_scalar(x_441)) { - x_442 = lean_alloc_ctor(1, 2, 0); -} else { - x_442 = x_441; -} -lean_ctor_set(x_442, 0, x_439); -lean_ctor_set(x_442, 1, x_440); -return x_442; -} -} -} -} -} -else -{ -uint8_t x_451; -lean_dec(x_12); +lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; +lean_dec(x_305); +lean_dec(x_272); +lean_dec_ref(x_220); +lean_dec_ref(x_69); lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_7); @@ -4147,29 +3793,35 @@ lean_dec(x_5); lean_dec_ref(x_4); lean_dec(x_2); lean_dec(x_1); -x_451 = !lean_is_exclusive(x_14); -if (x_451 == 0) -{ -return x_14; +x_310 = lean_ctor_get(x_307, 0); +lean_inc(x_310); +x_311 = lean_ctor_get(x_307, 1); +lean_inc(x_311); +if (lean_is_exclusive(x_307)) { + lean_ctor_release(x_307, 0); + lean_ctor_release(x_307, 1); + x_312 = x_307; +} else { + lean_dec_ref(x_307); + x_312 = lean_box(0); +} +if (lean_is_scalar(x_312)) { + x_313 = lean_alloc_ctor(1, 2, 0); +} else { + x_313 = x_312; +} +lean_ctor_set(x_313, 0, x_310); +lean_ctor_set(x_313, 1, x_311); +return x_313; +} } -else -{ -lean_object* x_452; lean_object* x_453; lean_object* x_454; -x_452 = lean_ctor_get(x_14, 0); -x_453 = lean_ctor_get(x_14, 1); -lean_inc(x_453); -lean_inc(x_452); -lean_dec(x_14); -x_454 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_454, 0, x_452); -lean_ctor_set(x_454, 1, x_453); -return x_454; } } } else { -uint8_t x_455; +uint8_t x_322; +lean_dec(x_62); lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_7); @@ -4178,26 +3830,144 @@ lean_dec(x_5); lean_dec_ref(x_4); lean_dec(x_2); lean_dec(x_1); -x_455 = !lean_is_exclusive(x_11); -if (x_455 == 0) +x_322 = !lean_is_exclusive(x_64); +if (x_322 == 0) { -return x_11; +return x_64; } else { -lean_object* x_456; lean_object* x_457; lean_object* x_458; -x_456 = lean_ctor_get(x_11, 0); -x_457 = lean_ctor_get(x_11, 1); -lean_inc(x_457); -lean_inc(x_456); -lean_dec(x_11); -x_458 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_458, 0, x_456); -lean_ctor_set(x_458, 1, x_457); -return x_458; +lean_object* x_323; lean_object* x_324; lean_object* x_325; +x_323 = lean_ctor_get(x_64, 0); +x_324 = lean_ctor_get(x_64, 1); +lean_inc(x_324); +lean_inc(x_323); +lean_dec(x_64); +x_325 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_325, 0, x_323); +lean_ctor_set(x_325, 1, x_324); +return x_325; } } } +else +{ +uint8_t x_326; +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_326 = !lean_is_exclusive(x_61); +if (x_326 == 0) +{ +return x_61; +} +else +{ +lean_object* x_327; lean_object* x_328; lean_object* x_329; +x_327 = lean_ctor_get(x_61, 0); +x_328 = lean_ctor_get(x_61, 1); +lean_inc(x_328); +lean_inc(x_327); +lean_dec(x_61); +x_329 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_329, 0, x_327); +lean_ctor_set(x_329, 1, x_328); +return x_329; +} +} +block_60: +{ +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; size_t x_37; size_t 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_inc_ref(x_17); +x_26 = l_Array_append___redArg(x_17, x_25); +lean_dec_ref(x_25); +lean_inc(x_13); +lean_inc(x_23); +x_27 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_27, 0, x_23); +lean_ctor_set(x_27, 1, x_13); +lean_ctor_set(x_27, 2, x_26); +lean_inc_n(x_12, 5); +lean_inc(x_23); +x_28 = l_Lean_Syntax_node6(x_23, x_18, x_12, x_12, x_27, x_12, x_12, x_12); +x_29 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__0; +lean_inc_ref(x_21); +lean_inc_ref(x_19); +lean_inc_ref(x_14); +x_30 = l_Lean_Name_mkStr4(x_14, x_19, x_21, x_29); +x_31 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__1; +lean_inc_ref(x_11); +lean_inc_ref(x_19); +lean_inc_ref(x_14); +x_32 = l_Lean_Name_mkStr4(x_14, x_19, x_11, x_31); +lean_inc(x_12); +lean_inc(x_23); +x_33 = l_Lean_Syntax_node1(x_23, x_32, x_12); +lean_inc(x_23); +x_34 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_34, 0, x_23); +lean_ctor_set(x_34, 1, x_29); +x_35 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__2; +lean_inc_ref(x_21); +lean_inc_ref(x_19); +lean_inc_ref(x_14); +x_36 = l_Lean_Name_mkStr4(x_14, x_19, x_21, x_35); +x_37 = lean_array_size(x_20); +x_38 = 0; +x_39 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_37, x_38, x_20); +x_40 = l_Array_append___redArg(x_17, x_39); +lean_dec_ref(x_39); +lean_inc(x_23); +x_41 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_41, 0, x_23); +lean_ctor_set(x_41, 1, x_13); +lean_ctor_set(x_41, 2, x_40); +x_42 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__3; +lean_inc_ref(x_19); +lean_inc_ref(x_14); +x_43 = l_Lean_Name_mkStr4(x_14, x_19, x_11, x_42); +x_44 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__4; +lean_inc(x_23); +x_45 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_45, 0, x_23); +lean_ctor_set(x_45, 1, x_44); +lean_inc(x_23); +x_46 = l_Lean_Syntax_node2(x_23, x_43, x_45, x_16); +lean_inc(x_23); +x_47 = l_Lean_Syntax_node2(x_23, x_36, x_41, x_46); +x_48 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__5; +lean_inc_ref(x_19); +lean_inc_ref(x_14); +x_49 = l_Lean_Name_mkStr4(x_14, x_19, x_21, x_48); +x_50 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__6; +lean_inc(x_23); +x_51 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_51, 0, x_23); +lean_ctor_set(x_51, 1, x_50); +x_52 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__7; +x_53 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__8; +x_54 = l_Lean_Name_mkStr4(x_14, x_19, x_52, x_53); +lean_inc_n(x_12, 2); +lean_inc(x_23); +x_55 = l_Lean_Syntax_node2(x_23, x_54, x_12, x_12); +lean_inc(x_12); +lean_inc(x_23); +x_56 = l_Lean_Syntax_node4(x_23, x_49, x_51, x_24, x_55, x_12); +lean_inc(x_12); +lean_inc(x_23); +x_57 = l_Lean_Syntax_node6(x_23, x_30, x_33, x_34, x_12, x_12, x_47, x_56); +x_58 = l_Lean_Syntax_node2(x_23, x_22, x_28, x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_15); +return x_59; +} +} } LEAN_EXPORT lean_object* l_Lean_RBNode_findCore___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2) { _start: @@ -5985,8 +5755,8 @@ lean_inc(x_14); lean_inc_ref(x_13); lean_inc(x_12); lean_inc_ref(x_11); -x_24 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith(x_1, x_2, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_23); -lean_dec(x_22); +x_24 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith(x_1, x_2, x_21, x_9, x_10, x_11, x_12, x_13, x_14, x_23); +lean_dec(x_21); if (lean_obj_tag(x_24) == 0) { lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; @@ -5995,8 +5765,8 @@ lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); lean_dec_ref(x_24); -lean_inc(x_21); -x_27 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_21, x_13, x_26); +lean_inc(x_22); +x_27 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_22, x_13, x_26); x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); x_29 = lean_unbox(x_28); @@ -6004,7 +5774,7 @@ lean_dec(x_28); if (x_29 == 0) { lean_object* x_30; -lean_dec(x_21); +lean_dec(x_22); lean_dec(x_14); lean_dec_ref(x_13); lean_dec(x_12); @@ -6036,7 +5806,7 @@ x_36 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance x_37 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_37, 0, x_27); lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_21, x_37, x_11, x_12, x_13, x_14, x_32); +x_38 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_22, x_37, x_11, x_12, x_13, x_14, x_32); lean_dec(x_14); lean_dec_ref(x_13); lean_dec(x_12); @@ -6064,7 +5834,7 @@ x_44 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance x_45 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_45, 0, x_43); lean_ctor_set(x_45, 1, x_44); -x_46 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_21, x_45, x_11, x_12, x_13, x_14, x_40); +x_46 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_22, x_45, x_11, x_12, x_13, x_14, x_40); lean_dec(x_14); lean_dec_ref(x_13); lean_dec(x_12); @@ -6081,7 +5851,7 @@ goto block_20; else { uint8_t x_48; -lean_dec(x_21); +lean_dec(x_22); lean_dec(x_14); lean_dec_ref(x_13); lean_dec(x_12); @@ -6112,13 +5882,13 @@ lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean x_58 = l_Lean_stringToMessageData(x_57); lean_dec_ref(x_57); x_59 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_59, 0, x_55); +lean_ctor_set(x_59, 0, x_54); lean_ctor_set(x_59, 1, x_58); x_60 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___lam__0___closed__3; x_61 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_61, 0, x_59); lean_ctor_set(x_61, 1, x_60); -x_62 = l_Lean_RBTree_toList___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__0(x_56); +x_62 = l_Lean_RBTree_toList___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__0(x_55); x_63 = lean_box(0); x_64 = l_List_mapTR_loop___at_____private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder_spec__13(x_62, x_63); x_65 = l_Lean_MessageData_ofList(x_64); @@ -6129,12 +5899,12 @@ x_67 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance x_68 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_68, 0, x_66); lean_ctor_set(x_68, 1, x_67); -lean_inc(x_54); -x_69 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_54, x_68, x_11, x_12, x_13, x_14, x_53); +lean_inc(x_56); +x_69 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_56, x_68, x_11, x_12, x_13, x_14, x_53); x_70 = lean_ctor_get(x_69, 1); lean_inc(x_70); lean_dec_ref(x_69); -x_21 = x_54; +x_21 = x_55; x_22 = x_56; x_23 = x_70; goto block_52; @@ -6154,8 +5924,8 @@ lean_object* x_78; x_78 = lean_ctor_get(x_75, 1); lean_inc(x_78); lean_dec_ref(x_75); -x_21 = x_74; -x_22 = x_72; +x_21 = x_72; +x_22 = x_74; x_23 = x_78; goto block_52; } @@ -6184,9 +5954,9 @@ if (x_3 == 0) lean_object* x_86; x_86 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___lam__0___closed__6; x_53 = x_80; -x_54 = x_74; -x_55 = x_85; -x_56 = x_72; +x_54 = x_85; +x_55 = x_72; +x_56 = x_74; x_57 = x_86; goto block_71; } @@ -6195,9 +5965,9 @@ else lean_object* x_87; x_87 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__2_spec__2___redArg___lam__0___closed__6; x_53 = x_80; -x_54 = x_74; -x_55 = x_85; -x_56 = x_72; +x_54 = x_85; +x_55 = x_72; +x_56 = x_74; x_57 = x_87; goto block_71; } @@ -6223,9 +5993,9 @@ if (x_3 == 0) lean_object* x_94; x_94 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___lam__0___closed__6; x_53 = x_88; -x_54 = x_74; -x_55 = x_93; -x_56 = x_72; +x_54 = x_93; +x_55 = x_72; +x_56 = x_74; x_57 = x_94; goto block_71; } @@ -6234,9 +6004,9 @@ else lean_object* x_95; x_95 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__2_spec__2___redArg___lam__0___closed__6; x_53 = x_88; -x_54 = x_74; -x_55 = x_93; -x_56 = x_72; +x_54 = x_93; +x_55 = x_72; +x_56 = x_74; x_57 = x_95; goto block_71; } @@ -7883,7 +7653,7 @@ lean_dec_ref(x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_() { _start: { lean_object* x_1; @@ -7891,7 +7661,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_mkInhabitedInstanceHandler___boxed) return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -7901,17 +7671,17 @@ x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___lam__0___closed__0; -x_2 = l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; +x_2 = l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_() { _start: { lean_object* x_1; @@ -7919,17 +7689,17 @@ x_1 = lean_mk_string_unchecked("initFn", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; -x_2 = l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; +x_1 = l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; +x_2 = l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_() { _start: { lean_object* x_1; @@ -7937,57 +7707,57 @@ x_1 = lean_mk_string_unchecked("_@", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; -x_2 = l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; +x_1 = l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; +x_2 = l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_spec__4___redArg___closed__0; -x_2 = l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; +x_2 = l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___lam__0___closed__0; -x_2 = l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; +x_2 = l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___lam__0___closed__1; -x_2 = l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; +x_2 = l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___closed__0; -x_2 = l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; +x_2 = l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_() { _start: { lean_object* x_1; @@ -7995,32 +7765,32 @@ x_1 = lean_mk_string_unchecked("_hyg", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; -x_2 = l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; +x_1 = l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; +x_2 = l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(2632u); -x_2 = l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; +x_1 = lean_unsigned_to_nat(2680u); +x_2 = l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; x_3 = l_Lean_Name_num___override(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___closed__1; -x_3 = l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; +x_3 = l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; x_4 = l_Lean_Elab_registerDerivingHandler(x_2, x_3, x_1); if (lean_obj_tag(x_4) == 0) { @@ -8030,7 +7800,7 @@ lean_inc(x_5); lean_dec_ref(x_4); x_6 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___redArg___lam__0___closed__3; x_7 = 0; -x_8 = l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_; +x_8 = l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_; x_9 = l_Lean_registerTraceClass(x_6, x_7, x_8, x_5); return x_9; } @@ -8221,6 +7991,12 @@ l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_m lean_mark_persistent(l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__22); l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__23 = _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__23(); lean_mark_persistent(l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__23); +l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__24 = _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__24(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__24); +l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__25 = _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__25(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__25); +l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__26 = _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__26(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__26); l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__2_spec__2___redArg___lam__0___closed__0 = _init_l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__2_spec__2___redArg___lam__0___closed__0(); lean_mark_persistent(l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__2_spec__2___redArg___lam__0___closed__0); l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__2_spec__2___redArg___lam__0___closed__1 = _init_l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_spec__2_spec__2___redArg___lam__0___closed__1(); @@ -8265,35 +8041,35 @@ l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___clos lean_mark_persistent(l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__0); l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__1 = _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__1); -l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_ = _init_l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_); -l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_ = _init_l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_); -l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_ = _init_l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_); -l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_ = _init_l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_); -l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_ = _init_l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_); -l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_ = _init_l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_); -l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_ = _init_l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_); -l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_ = _init_l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_); -l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_ = _init_l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_); -l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_ = _init_l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_); -l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_ = _init_l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_); -l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_ = _init_l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_); -l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_ = _init_l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_); -l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_ = _init_l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_); -if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2632_(lean_io_mk_world()); +l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_ = _init_l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_); +l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_ = _init_l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_); +l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_ = _init_l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_); +l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_ = _init_l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_); +l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_ = _init_l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_); +l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_ = _init_l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_); +l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_ = _init_l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_); +l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_ = _init_l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_); +l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_ = _init_l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_); +l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_ = _init_l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_); +l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_ = _init_l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_); +l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_ = _init_l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_); +l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_ = _init_l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_); +l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_ = _init_l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_); +if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2680_(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)); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Nonempty.c b/stage0/stdlib/Lean/Elab/Deriving/Nonempty.c index 958900df99..2ab1460b9f 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Nonempty.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Nonempty.c @@ -21,7 +21,6 @@ static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonem static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__12; static lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__3___closed__1; static lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__5; -static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__40; lean_object* lean_mk_empty_array_with_capacity(lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__27; static lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__14; @@ -30,7 +29,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriv static lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__3; lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__7; -static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__34; static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_mkNonemptyInstanceHandler(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); @@ -42,13 +40,14 @@ static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonem static lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__9; lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Array_mkArray0(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Nonempty___hyg_1041_(lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__28; static lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__17; static lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__2; LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); +lean_object* l_Array_mkArray1___redArg(lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__1; -static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__38; static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__6; lean_object* l_Lean_Elab_registerDerivingHandler(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__4; @@ -58,7 +57,7 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_mkNonemptyInsta static lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__12; 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*); -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Nonempty___hyg_996_(lean_object*); +lean_object* l_Array_empty(lean_object*); LEAN_EXPORT lean_object* l_Lean_isInductive___at___Lean_Elab_mkNonemptyInstanceHandler_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__11; static lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__14; @@ -85,8 +84,8 @@ static lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_N lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__17; static lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__3___closed__0; +static lean_object* l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Nonempty___hyg_1041_; static lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__8; -static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__37; lean_object* lean_mk_syntax_ident(lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__32; static lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; @@ -100,12 +99,10 @@ static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonem LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_mkNonemptyInstanceHandler_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__7; lean_object* l_Lean_FVarId_getUserName___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Nonempty___hyg_996_; lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___at___Lean_Elab_Term_processDefDeriving_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__15; static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__9; -static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__39; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__8; static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__29; @@ -126,21 +123,18 @@ static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonem static lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__13; static lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__11; lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__41; static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__25; static lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__6; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_mkNonemptyInstanceHandler_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(size_t, size_t, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__15; -static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__42; lean_object* l_Array_append___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__35; +uint8_t l_Lean_isPrivateName(lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__20; static lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__13; LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__36; lean_object* lean_erase_macro_scopes(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_mk(lean_object*); @@ -2179,7 +2173,7 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_m _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Command", 7, 7); +x_1 = lean_mk_string_unchecked("instance", 8, 8); return x_1; } } @@ -2187,123 +2181,11 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_m _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("in", 2, 2); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__3; -x_2 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__2; -x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; -x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("variable", 8, 8); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___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___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__5; -x_2 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__2; -x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; -x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("declaration", 11, 11); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__7; -x_2 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__2; -x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; -x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__9() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("declModifiers", 13, 13); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__9; -x_2 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__2; -x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; -x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__11() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("instance", 8, 8); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__11; -x_2 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__2; -x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; -x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__13() { -_start: -{ -lean_object* x_1; x_1 = lean_mk_string_unchecked("attrKind", 8, 8); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__14() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__13; -x_2 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__2; -x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; -x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__15() { +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__4() { _start: { lean_object* x_1; @@ -2311,19 +2193,7 @@ x_1 = lean_mk_string_unchecked("declSig", 7, 7); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__16() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__15; -x_2 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__2; -x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; -x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__17() { +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__5() { _start: { lean_object* x_1; @@ -2331,19 +2201,7 @@ x_1 = lean_mk_string_unchecked("typeSpec", 8, 8); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__18() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__17; -x_2 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__2; -x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; -x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__19() { +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__6() { _start: { lean_object* x_1; @@ -2351,7 +2209,7 @@ x_1 = lean_mk_string_unchecked(":", 1, 1); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__20() { +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__7() { _start: { lean_object* x_1; @@ -2359,19 +2217,7 @@ x_1 = lean_mk_string_unchecked("paren", 5, 5); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__21() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__20; -x_2 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__2; -x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; -x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__22() { +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__8() { _start: { lean_object* x_1; @@ -2379,7 +2225,7 @@ x_1 = lean_mk_string_unchecked("(", 1, 1); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__23() { +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__9() { _start: { lean_object* x_1; @@ -2387,7 +2233,7 @@ x_1 = lean_mk_string_unchecked(")", 1, 1); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__24() { +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__10() { _start: { lean_object* x_1; @@ -2395,12 +2241,128 @@ x_1 = lean_mk_string_unchecked("declValSimple", 13, 13); return x_1; } } +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(":=", 2, 2); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__12() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("byTactic", 8, 8); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__13() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("by", 2, 2); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__14() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("tacticSeq", 9, 9); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__15() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("tacticSeq1Indented", 18, 18); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__16() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("constructor", 11, 11); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__17() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(";", 1, 1); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__18() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("first", 5, 5); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__19() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Termination", 11, 11); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__20() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("suffix", 6, 6); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__21() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Command", 7, 7); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__22() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("in", 2, 2); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__23() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__22; +x_2 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__21; +x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; +x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__24() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("variable", 8, 8); +return x_1; +} +} static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__24; -x_2 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__2; +x_2 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__21; x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); @@ -2411,160 +2373,78 @@ static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_m _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked(":=", 2, 2); +x_1 = lean_mk_string_unchecked("declaration", 11, 11); return x_1; } } static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__27() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("anonymousCtor", 13, 13); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__28() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__27; -x_2 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__2; +x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__26; +x_2 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__21; x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__29() { +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__28() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("⟨", 3, 1); +x_1 = lean_mk_string_unchecked("declModifiers", 13, 13); return x_1; } } +static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___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___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__28; +x_2 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__21; +x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; +x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__30() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("byTactic", 8, 8); +x_1 = l_Array_empty(lean_box(0)); return x_1; } } static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__31() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__30; -x_2 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__2; -x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; -x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("private", 7, 7); +return x_1; } } static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__32() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("by", 2, 2); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__31; +x_2 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__21; +x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; +x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; } } static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__33() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("tacticSeq", 9, 9); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__34() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__33; -x_2 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__0; -x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; -x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__35() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("tacticSeq1Indented", 18, 18); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__36() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__35; -x_2 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__0; -x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; -x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__37() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("first", 5, 5); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__38() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__37; -x_2 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__0; -x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; -x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__39() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("⟩", 3, 1); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__40() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Termination", 11, 11); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__41() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("suffix", 6, 6); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__42() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__41; -x_2 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__40; -x_3 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; -x_4 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0(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) { @@ -2579,905 +2459,536 @@ lean_inc_ref(x_9); x_15 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg(x_3, x_13, x_14, x_12, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_15) == 0) { -lean_object* x_16; lean_object* x_17; uint8_t x_18; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; size_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; uint8_t x_129; uint8_t x_130; lean_object* x_131; x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec_ref(x_15); -x_18 = !lean_is_exclusive(x_16); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; size_t x_22; lean_object* x_23; uint8_t x_24; -x_19 = lean_ctor_get(x_16, 0); -x_20 = lean_ctor_get(x_16, 1); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + lean_ctor_release(x_16, 1); + x_20 = x_16; +} else { + lean_dec_ref(x_16); + x_20 = lean_box(0); +} x_21 = lean_array_mk(x_1); x_22 = lean_array_size(x_21); lean_inc_ref(x_9); x_23 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg(x_22, x_14, x_21, x_9, x_10, x_17); -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_26 = x_23; +} else { + lean_dec_ref(x_23); + x_26 = lean_box(0); +} +x_129 = l_Lean_isPrivateName(x_2); +x_130 = 1; +if (x_129 == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_25 = lean_ctor_get(x_23, 0); -x_26 = lean_ctor_get(x_23, 1); -x_27 = lean_st_ref_get(x_10, x_26); -lean_dec(x_10); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) +lean_object* x_206; +x_206 = lean_box(0); +x_131 = x_206; +goto block_205; +} +else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t 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; size_t 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; size_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_29 = lean_ctor_get(x_27, 0); -x_30 = lean_ctor_get(x_9, 5); -lean_inc(x_30); -x_31 = lean_ctor_get(x_9, 10); -lean_inc(x_31); -lean_dec_ref(x_9); -x_32 = lean_ctor_get(x_29, 0); -lean_inc_ref(x_32); -lean_dec(x_29); -x_33 = 0; -x_34 = l_Lean_SourceInfo_fromRef(x_30, x_33); -lean_dec(x_30); -x_35 = l_Lean_Environment_mainModule(x_32); -lean_dec_ref(x_32); -x_36 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__3; -x_37 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__4; -x_38 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__5; -x_39 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__6; -lean_inc(x_34); -lean_ctor_set_tag(x_23, 2); -lean_ctor_set(x_23, 1, x_38); -lean_ctor_set(x_23, 0, x_34); -x_40 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__7; -x_41 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__8; -x_42 = lean_array_size(x_19); -x_43 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_42, x_14, x_19); -x_44 = l_Array_append___redArg(x_41, x_43); +lean_object* x_207; +x_207 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__33; +x_131 = x_207; +goto block_205; +} +block_128: +{ +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; size_t x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; size_t x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_inc_ref(x_36); +x_44 = l_Array_append___redArg(x_36, x_43); lean_dec_ref(x_43); -lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_27); x_45 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_45, 0, x_34); -lean_ctor_set(x_45, 1, x_40); +lean_ctor_set(x_45, 0, x_27); +lean_ctor_set(x_45, 1, x_33); lean_ctor_set(x_45, 2, x_44); -lean_inc(x_34); -x_46 = l_Lean_Syntax_node2(x_34, x_39, x_23, x_45); -lean_inc(x_34); -lean_ctor_set_tag(x_16, 2); -lean_ctor_set(x_16, 1, x_36); -lean_ctor_set(x_16, 0, x_34); -x_47 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__8; -x_48 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__10; -lean_inc(x_34); -x_49 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_49, 0, x_34); -lean_ctor_set(x_49, 1, x_40); -lean_ctor_set(x_49, 2, x_41); -lean_inc_ref_n(x_49, 6); -lean_inc(x_34); -x_50 = l_Lean_Syntax_node6(x_34, x_48, x_49, x_49, x_49, x_49, x_49, x_49); -x_51 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__11; -x_52 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__12; -x_53 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__14; -lean_inc_ref(x_49); -lean_inc(x_34); -x_54 = l_Lean_Syntax_node1(x_34, x_53, x_49); -lean_inc(x_34); -x_55 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_55, 0, x_34); -lean_ctor_set(x_55, 1, x_51); -x_56 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__16; -x_57 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__18; -x_58 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__19; -lean_inc(x_34); -x_59 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_59, 0, x_34); -lean_ctor_set(x_59, 1, x_58); -x_60 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__14; +lean_inc_n(x_38, 5); +lean_inc(x_27); +x_46 = l_Lean_Syntax_node6(x_27, x_40, x_38, x_38, x_45, x_38, x_38, x_38); +x_47 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__2; +lean_inc_ref(x_34); +lean_inc_ref(x_41); +lean_inc_ref(x_28); +x_48 = l_Lean_Name_mkStr4(x_28, x_41, x_34, x_47); +x_49 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__3; +lean_inc_ref(x_30); +lean_inc_ref(x_41); +lean_inc_ref(x_28); +x_50 = l_Lean_Name_mkStr4(x_28, x_41, x_30, x_49); +lean_inc(x_38); +lean_inc(x_27); +x_51 = l_Lean_Syntax_node1(x_27, x_50, x_38); +lean_inc(x_27); +if (lean_is_scalar(x_20)) { + x_52 = lean_alloc_ctor(2, 2, 0); +} else { + x_52 = x_20; + lean_ctor_set_tag(x_52, 2); +} +lean_ctor_set(x_52, 0, x_27); +lean_ctor_set(x_52, 1, x_47); +x_53 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__4; +lean_inc_ref(x_34); +lean_inc_ref(x_41); +lean_inc_ref(x_28); +x_54 = l_Lean_Name_mkStr4(x_28, x_41, x_34, x_53); +x_55 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__5; +lean_inc_ref(x_30); +lean_inc_ref(x_41); +lean_inc_ref(x_28); +x_56 = l_Lean_Name_mkStr4(x_28, x_41, x_30, x_55); +x_57 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__6; +lean_inc(x_27); +x_58 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_58, 0, x_27); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__13; +lean_inc_ref(x_30); +lean_inc_ref(x_41); +lean_inc_ref(x_28); +x_60 = l_Lean_Name_mkStr4(x_28, x_41, x_30, x_59); x_61 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__16; x_62 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__17; -x_63 = l_Lean_addMacroScope(x_35, x_62, x_31); +x_63 = l_Lean_addMacroScope(x_31, x_62, x_37); x_64 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__21; -lean_inc(x_34); +lean_inc(x_27); x_65 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_65, 0, x_34); +lean_ctor_set(x_65, 0, x_27); lean_ctor_set(x_65, 1, x_61); lean_ctor_set(x_65, 2, x_63); lean_ctor_set(x_65, 3, x_64); -x_66 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__21; -x_67 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__22; -lean_inc(x_34); -x_68 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_68, 0, x_34); -lean_ctor_set(x_68, 1, x_67); -x_69 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__6; -x_70 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__7; -lean_inc(x_34); -x_71 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_71, 0, x_34); -lean_ctor_set(x_71, 1, x_70); -x_72 = l_Lean_mkCIdent(x_2); -lean_inc(x_34); -x_73 = l_Lean_Syntax_node2(x_34, x_69, x_71, x_72); -x_74 = lean_array_size(x_20); -x_75 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_74, x_14, x_20); -x_76 = l_Array_append___redArg(x_41, x_75); -lean_dec_ref(x_75); -lean_inc(x_34); -x_77 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_77, 0, x_34); -lean_ctor_set(x_77, 1, x_40); -lean_ctor_set(x_77, 2, x_76); -lean_inc(x_34); -x_78 = l_Lean_Syntax_node2(x_34, x_60, x_73, x_77); -x_79 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__23; -lean_inc(x_34); -x_80 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_80, 0, x_34); -lean_ctor_set(x_80, 1, x_79); -lean_inc(x_34); -x_81 = l_Lean_Syntax_node3(x_34, x_66, x_68, x_78, x_80); -lean_inc(x_34); -x_82 = l_Lean_Syntax_node1(x_34, x_40, x_81); -lean_inc(x_34); -x_83 = l_Lean_Syntax_node2(x_34, x_60, x_65, x_82); -lean_inc(x_34); -x_84 = l_Lean_Syntax_node2(x_34, x_57, x_59, x_83); -lean_inc_ref(x_49); -lean_inc(x_34); -x_85 = l_Lean_Syntax_node2(x_34, x_56, x_49, x_84); -x_86 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__25; -x_87 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__26; -lean_inc(x_34); -x_88 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_88, 0, x_34); -lean_ctor_set(x_88, 1, x_87); -x_89 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__28; -x_90 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__29; -lean_inc(x_34); +x_66 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__7; +lean_inc_ref(x_30); +lean_inc_ref(x_41); +lean_inc_ref(x_28); +x_67 = l_Lean_Name_mkStr4(x_28, x_41, x_30, x_66); +x_68 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__8; +lean_inc(x_27); +x_69 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_69, 0, x_27); +lean_ctor_set(x_69, 1, x_68); +x_70 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__5; +lean_inc_ref(x_30); +lean_inc_ref(x_41); +lean_inc_ref(x_28); +x_71 = l_Lean_Name_mkStr4(x_28, x_41, x_30, x_70); +x_72 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__7; +lean_inc(x_27); +x_73 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_73, 0, x_27); +lean_ctor_set(x_73, 1, x_72); +x_74 = l_Lean_mkCIdent(x_2); +lean_inc(x_27); +x_75 = l_Lean_Syntax_node2(x_27, x_71, x_73, x_74); +x_76 = lean_array_size(x_19); +x_77 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_76, x_14, x_19); +lean_inc_ref(x_36); +x_78 = l_Array_append___redArg(x_36, x_77); +lean_dec_ref(x_77); +lean_inc(x_33); +lean_inc(x_27); +x_79 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_79, 0, x_27); +lean_ctor_set(x_79, 1, x_33); +lean_ctor_set(x_79, 2, x_78); +lean_inc(x_60); +lean_inc(x_27); +x_80 = l_Lean_Syntax_node2(x_27, x_60, x_75, x_79); +x_81 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__9; +lean_inc(x_27); +x_82 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_82, 0, x_27); +lean_ctor_set(x_82, 1, x_81); +lean_inc(x_27); +x_83 = l_Lean_Syntax_node3(x_27, x_67, x_69, x_80, x_82); +lean_inc(x_33); +lean_inc(x_27); +x_84 = l_Lean_Syntax_node1(x_27, x_33, x_83); +lean_inc(x_27); +x_85 = l_Lean_Syntax_node2(x_27, x_60, x_65, x_84); +lean_inc(x_27); +x_86 = l_Lean_Syntax_node2(x_27, x_56, x_58, x_85); +lean_inc(x_38); +lean_inc(x_27); +x_87 = l_Lean_Syntax_node2(x_27, x_54, x_38, x_86); +x_88 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__10; +lean_inc_ref(x_41); +lean_inc_ref(x_28); +x_89 = l_Lean_Name_mkStr4(x_28, x_41, x_34, x_88); +x_90 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__11; +lean_inc(x_27); x_91 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_91, 0, x_34); +lean_ctor_set(x_91, 0, x_27); lean_ctor_set(x_91, 1, x_90); -x_92 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__31; -x_93 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__32; -lean_inc(x_34); -x_94 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_94, 0, x_34); -lean_ctor_set(x_94, 1, x_93); -x_95 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__34; -x_96 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__36; -x_97 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__37; -x_98 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__38; -lean_inc(x_34); -x_99 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_99, 0, x_34); -lean_ctor_set(x_99, 1, x_97); -x_100 = lean_array_size(x_25); -lean_inc(x_34); -x_101 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__3(x_34, x_40, x_96, x_95, x_100, x_14, x_25); -x_102 = l_Array_append___redArg(x_41, x_101); -lean_dec_ref(x_101); -lean_inc(x_34); -x_103 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_103, 0, x_34); -lean_ctor_set(x_103, 1, x_40); -lean_ctor_set(x_103, 2, x_102); -lean_inc(x_34); -x_104 = l_Lean_Syntax_node2(x_34, x_98, x_99, x_103); -lean_inc(x_34); -x_105 = l_Lean_Syntax_node1(x_34, x_40, x_104); -lean_inc(x_34); -x_106 = l_Lean_Syntax_node1(x_34, x_96, x_105); -lean_inc(x_34); -x_107 = l_Lean_Syntax_node1(x_34, x_95, x_106); -lean_inc(x_34); -x_108 = l_Lean_Syntax_node2(x_34, x_92, x_94, x_107); -lean_inc(x_34); -x_109 = l_Lean_Syntax_node1(x_34, x_40, x_108); -x_110 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__39; -lean_inc(x_34); -x_111 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_111, 0, x_34); -lean_ctor_set(x_111, 1, x_110); -lean_inc(x_34); -x_112 = l_Lean_Syntax_node3(x_34, x_89, x_91, x_109, x_111); -x_113 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__42; -lean_inc_ref_n(x_49, 2); -lean_inc(x_34); -x_114 = l_Lean_Syntax_node2(x_34, x_113, x_49, x_49); -lean_inc_ref(x_49); -lean_inc(x_34); -x_115 = l_Lean_Syntax_node4(x_34, x_86, x_88, x_112, x_114, x_49); -lean_inc_ref(x_49); -lean_inc(x_34); -x_116 = l_Lean_Syntax_node6(x_34, x_52, x_54, x_55, x_49, x_49, x_85, x_115); -lean_inc(x_34); -x_117 = l_Lean_Syntax_node2(x_34, x_47, x_50, x_116); -x_118 = l_Lean_Syntax_node3(x_34, x_37, x_46, x_16, x_117); -lean_ctor_set(x_27, 0, x_118); -return x_27; +x_92 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__12; +lean_inc_ref(x_41); +lean_inc_ref(x_28); +x_93 = l_Lean_Name_mkStr4(x_28, x_41, x_30, x_92); +x_94 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__13; +lean_inc(x_27); +x_95 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_95, 0, x_27); +lean_ctor_set(x_95, 1, x_94); +x_96 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__0; +x_97 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__14; +lean_inc_ref(x_41); +lean_inc_ref(x_28); +x_98 = l_Lean_Name_mkStr4(x_28, x_41, x_96, x_97); +x_99 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__15; +lean_inc_ref(x_41); +lean_inc_ref(x_28); +x_100 = l_Lean_Name_mkStr4(x_28, x_41, x_96, x_99); +x_101 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__16; +lean_inc_ref(x_41); +lean_inc_ref(x_28); +x_102 = l_Lean_Name_mkStr4(x_28, x_41, x_96, x_101); +lean_inc(x_27); +x_103 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_103, 0, x_27); +lean_ctor_set(x_103, 1, x_101); +lean_inc(x_27); +x_104 = l_Lean_Syntax_node1(x_27, x_102, x_103); +x_105 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__17; +lean_inc(x_27); +x_106 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_106, 0, x_27); +lean_ctor_set(x_106, 1, x_105); +x_107 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__18; +lean_inc_ref(x_41); +lean_inc_ref(x_28); +x_108 = l_Lean_Name_mkStr4(x_28, x_41, x_96, x_107); +lean_inc(x_27); +x_109 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_109, 0, x_27); +lean_ctor_set(x_109, 1, x_107); +x_110 = lean_array_size(x_24); +lean_inc(x_98); +lean_inc(x_100); +lean_inc(x_33); +lean_inc(x_27); +x_111 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__3(x_27, x_33, x_100, x_98, x_110, x_14, x_24); +x_112 = l_Array_append___redArg(x_36, x_111); +lean_dec_ref(x_111); +lean_inc(x_33); +lean_inc(x_27); +x_113 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_113, 0, x_27); +lean_ctor_set(x_113, 1, x_33); +lean_ctor_set(x_113, 2, x_112); +lean_inc(x_27); +x_114 = l_Lean_Syntax_node2(x_27, x_108, x_109, x_113); +lean_inc(x_27); +x_115 = l_Lean_Syntax_node3(x_27, x_33, x_104, x_106, x_114); +lean_inc(x_27); +x_116 = l_Lean_Syntax_node1(x_27, x_100, x_115); +lean_inc(x_27); +x_117 = l_Lean_Syntax_node1(x_27, x_98, x_116); +lean_inc(x_27); +x_118 = l_Lean_Syntax_node2(x_27, x_93, x_95, x_117); +x_119 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__19; +x_120 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__20; +x_121 = l_Lean_Name_mkStr4(x_28, x_41, x_119, x_120); +lean_inc_n(x_38, 2); +lean_inc(x_27); +x_122 = l_Lean_Syntax_node2(x_27, x_121, x_38, x_38); +lean_inc(x_38); +lean_inc(x_27); +x_123 = l_Lean_Syntax_node4(x_27, x_89, x_91, x_118, x_122, x_38); +lean_inc(x_38); +lean_inc(x_27); +x_124 = l_Lean_Syntax_node6(x_27, x_48, x_51, x_52, x_38, x_38, x_87, x_123); +lean_inc(x_27); +x_125 = l_Lean_Syntax_node2(x_27, x_35, x_46, x_124); +x_126 = l_Lean_Syntax_node3(x_27, x_39, x_42, x_29, x_125); +if (lean_is_scalar(x_26)) { + x_127 = lean_alloc_ctor(0, 2, 0); +} else { + x_127 = x_26; +} +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_32); +return x_127; +} +block_205: +{ +lean_object* x_132; uint8_t x_133; +x_132 = lean_st_ref_get(x_10, x_25); +lean_dec(x_10); +x_133 = !lean_is_exclusive(x_132); +if (x_133 == 0) +{ +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t 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; size_t 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; +x_134 = lean_ctor_get(x_132, 0); +x_135 = lean_ctor_get(x_132, 1); +x_136 = lean_ctor_get(x_9, 5); +lean_inc(x_136); +x_137 = lean_ctor_get(x_9, 10); +lean_inc(x_137); +lean_dec_ref(x_9); +x_138 = lean_ctor_get(x_134, 0); +lean_inc_ref(x_138); +lean_dec(x_134); +x_139 = 0; +x_140 = l_Lean_SourceInfo_fromRef(x_136, x_139); +lean_dec(x_136); +x_141 = l_Lean_Environment_mainModule(x_138); +lean_dec_ref(x_138); +x_142 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; +x_143 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; +x_144 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__21; +x_145 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__22; +x_146 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__23; +x_147 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__24; +x_148 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__25; +lean_inc(x_140); +lean_ctor_set_tag(x_132, 2); +lean_ctor_set(x_132, 1, x_147); +lean_ctor_set(x_132, 0, x_140); +x_149 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__7; +x_150 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__8; +x_151 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__2; +x_152 = lean_array_size(x_18); +x_153 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_152, x_14, x_18); +x_154 = l_Array_append___redArg(x_150, x_153); +lean_dec_ref(x_153); +lean_inc(x_140); +x_155 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_155, 0, x_140); +lean_ctor_set(x_155, 1, x_149); +lean_ctor_set(x_155, 2, x_154); +lean_inc(x_140); +x_156 = l_Lean_Syntax_node2(x_140, x_148, x_132, x_155); +lean_inc(x_140); +x_157 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_157, 0, x_140); +lean_ctor_set(x_157, 1, x_145); +x_158 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__27; +x_159 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__29; +lean_inc(x_140); +x_160 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_160, 0, x_140); +lean_ctor_set(x_160, 1, x_149); +lean_ctor_set(x_160, 2, x_150); +if (lean_obj_tag(x_131) == 0) +{ +lean_object* x_161; +x_161 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__30; +x_27 = x_140; +x_28 = x_142; +x_29 = x_157; +x_30 = x_151; +x_31 = x_141; +x_32 = x_135; +x_33 = x_149; +x_34 = x_144; +x_35 = x_158; +x_36 = x_150; +x_37 = x_137; +x_38 = x_160; +x_39 = x_146; +x_40 = x_159; +x_41 = x_143; +x_42 = x_156; +x_43 = x_161; +goto block_128; } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; size_t 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; size_t x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; size_t x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; -x_119 = lean_ctor_get(x_27, 0); -x_120 = lean_ctor_get(x_27, 1); -lean_inc(x_120); -lean_inc(x_119); -lean_dec(x_27); -x_121 = lean_ctor_get(x_9, 5); -lean_inc(x_121); -x_122 = lean_ctor_get(x_9, 10); -lean_inc(x_122); +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_162 = lean_ctor_get(x_131, 0); +lean_inc(x_162); +lean_dec(x_131); +x_163 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__31; +x_164 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__32; +x_165 = l_Lean_SourceInfo_fromRef(x_162, x_130); +lean_dec(x_162); +x_166 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_166, 0, x_165); +lean_ctor_set(x_166, 1, x_163); +lean_inc(x_140); +x_167 = l_Lean_Syntax_node1(x_140, x_164, x_166); +x_168 = l_Array_mkArray1___redArg(x_167); +x_27 = x_140; +x_28 = x_142; +x_29 = x_157; +x_30 = x_151; +x_31 = x_141; +x_32 = x_135; +x_33 = x_149; +x_34 = x_144; +x_35 = x_158; +x_36 = x_150; +x_37 = x_137; +x_38 = x_160; +x_39 = x_146; +x_40 = x_159; +x_41 = x_143; +x_42 = x_156; +x_43 = x_168; +goto block_128; +} +} +else +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t 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; size_t x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; +x_169 = lean_ctor_get(x_132, 0); +x_170 = lean_ctor_get(x_132, 1); +lean_inc(x_170); +lean_inc(x_169); +lean_dec(x_132); +x_171 = lean_ctor_get(x_9, 5); +lean_inc(x_171); +x_172 = lean_ctor_get(x_9, 10); +lean_inc(x_172); lean_dec_ref(x_9); -x_123 = lean_ctor_get(x_119, 0); -lean_inc_ref(x_123); -lean_dec(x_119); -x_124 = 0; -x_125 = l_Lean_SourceInfo_fromRef(x_121, x_124); -lean_dec(x_121); -x_126 = l_Lean_Environment_mainModule(x_123); -lean_dec_ref(x_123); -x_127 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__3; -x_128 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__4; -x_129 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__5; -x_130 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__6; -lean_inc(x_125); -lean_ctor_set_tag(x_23, 2); -lean_ctor_set(x_23, 1, x_129); -lean_ctor_set(x_23, 0, x_125); -x_131 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__7; -x_132 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__8; -x_133 = lean_array_size(x_19); -x_134 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_133, x_14, x_19); -x_135 = l_Array_append___redArg(x_132, x_134); -lean_dec_ref(x_134); -lean_inc(x_125); -x_136 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_136, 0, x_125); -lean_ctor_set(x_136, 1, x_131); -lean_ctor_set(x_136, 2, x_135); -lean_inc(x_125); -x_137 = l_Lean_Syntax_node2(x_125, x_130, x_23, x_136); -lean_inc(x_125); -lean_ctor_set_tag(x_16, 2); -lean_ctor_set(x_16, 1, x_127); -lean_ctor_set(x_16, 0, x_125); -x_138 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__8; -x_139 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__10; -lean_inc(x_125); -x_140 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_140, 0, x_125); -lean_ctor_set(x_140, 1, x_131); -lean_ctor_set(x_140, 2, x_132); -lean_inc_ref_n(x_140, 6); -lean_inc(x_125); -x_141 = l_Lean_Syntax_node6(x_125, x_139, x_140, x_140, x_140, x_140, x_140, x_140); -x_142 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__11; -x_143 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__12; -x_144 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__14; -lean_inc_ref(x_140); -lean_inc(x_125); -x_145 = l_Lean_Syntax_node1(x_125, x_144, x_140); -lean_inc(x_125); -x_146 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_146, 0, x_125); -lean_ctor_set(x_146, 1, x_142); -x_147 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__16; -x_148 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__18; -x_149 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__19; -lean_inc(x_125); -x_150 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_150, 0, x_125); -lean_ctor_set(x_150, 1, x_149); -x_151 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__14; -x_152 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__16; -x_153 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__17; -x_154 = l_Lean_addMacroScope(x_126, x_153, x_122); -x_155 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__21; -lean_inc(x_125); -x_156 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_156, 0, x_125); -lean_ctor_set(x_156, 1, x_152); -lean_ctor_set(x_156, 2, x_154); -lean_ctor_set(x_156, 3, x_155); -x_157 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__21; -x_158 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__22; -lean_inc(x_125); -x_159 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_159, 0, x_125); -lean_ctor_set(x_159, 1, x_158); -x_160 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__6; -x_161 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__7; -lean_inc(x_125); -x_162 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_162, 0, x_125); -lean_ctor_set(x_162, 1, x_161); -x_163 = l_Lean_mkCIdent(x_2); -lean_inc(x_125); -x_164 = l_Lean_Syntax_node2(x_125, x_160, x_162, x_163); -x_165 = lean_array_size(x_20); -x_166 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_165, x_14, x_20); -x_167 = l_Array_append___redArg(x_132, x_166); -lean_dec_ref(x_166); -lean_inc(x_125); -x_168 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_168, 0, x_125); -lean_ctor_set(x_168, 1, x_131); -lean_ctor_set(x_168, 2, x_167); -lean_inc(x_125); -x_169 = l_Lean_Syntax_node2(x_125, x_151, x_164, x_168); -x_170 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__23; -lean_inc(x_125); -x_171 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_171, 0, x_125); -lean_ctor_set(x_171, 1, x_170); -lean_inc(x_125); -x_172 = l_Lean_Syntax_node3(x_125, x_157, x_159, x_169, x_171); -lean_inc(x_125); -x_173 = l_Lean_Syntax_node1(x_125, x_131, x_172); -lean_inc(x_125); -x_174 = l_Lean_Syntax_node2(x_125, x_151, x_156, x_173); -lean_inc(x_125); -x_175 = l_Lean_Syntax_node2(x_125, x_148, x_150, x_174); -lean_inc_ref(x_140); -lean_inc(x_125); -x_176 = l_Lean_Syntax_node2(x_125, x_147, x_140, x_175); -x_177 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__25; -x_178 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__26; -lean_inc(x_125); -x_179 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_179, 0, x_125); -lean_ctor_set(x_179, 1, x_178); -x_180 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__28; -x_181 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__29; -lean_inc(x_125); -x_182 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_182, 0, x_125); -lean_ctor_set(x_182, 1, x_181); -x_183 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__31; -x_184 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__32; -lean_inc(x_125); -x_185 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_185, 0, x_125); -lean_ctor_set(x_185, 1, x_184); -x_186 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__34; -x_187 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__36; -x_188 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__37; -x_189 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__38; -lean_inc(x_125); -x_190 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_190, 0, x_125); -lean_ctor_set(x_190, 1, x_188); -x_191 = lean_array_size(x_25); -lean_inc(x_125); -x_192 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__3(x_125, x_131, x_187, x_186, x_191, x_14, x_25); -x_193 = l_Array_append___redArg(x_132, x_192); -lean_dec_ref(x_192); -lean_inc(x_125); -x_194 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_194, 0, x_125); -lean_ctor_set(x_194, 1, x_131); -lean_ctor_set(x_194, 2, x_193); -lean_inc(x_125); -x_195 = l_Lean_Syntax_node2(x_125, x_189, x_190, x_194); -lean_inc(x_125); -x_196 = l_Lean_Syntax_node1(x_125, x_131, x_195); -lean_inc(x_125); -x_197 = l_Lean_Syntax_node1(x_125, x_187, x_196); -lean_inc(x_125); -x_198 = l_Lean_Syntax_node1(x_125, x_186, x_197); -lean_inc(x_125); -x_199 = l_Lean_Syntax_node2(x_125, x_183, x_185, x_198); -lean_inc(x_125); -x_200 = l_Lean_Syntax_node1(x_125, x_131, x_199); -x_201 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__39; -lean_inc(x_125); +x_173 = lean_ctor_get(x_169, 0); +lean_inc_ref(x_173); +lean_dec(x_169); +x_174 = 0; +x_175 = l_Lean_SourceInfo_fromRef(x_171, x_174); +lean_dec(x_171); +x_176 = l_Lean_Environment_mainModule(x_173); +lean_dec_ref(x_173); +x_177 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__0; +x_178 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__1; +x_179 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__21; +x_180 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__22; +x_181 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__23; +x_182 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__24; +x_183 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__25; +lean_inc(x_175); +x_184 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_184, 0, x_175); +lean_ctor_set(x_184, 1, x_182); +x_185 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__7; +x_186 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__8; +x_187 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__2; +x_188 = lean_array_size(x_18); +x_189 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_188, x_14, x_18); +x_190 = l_Array_append___redArg(x_186, x_189); +lean_dec_ref(x_189); +lean_inc(x_175); +x_191 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_191, 0, x_175); +lean_ctor_set(x_191, 1, x_185); +lean_ctor_set(x_191, 2, x_190); +lean_inc(x_175); +x_192 = l_Lean_Syntax_node2(x_175, x_183, x_184, x_191); +lean_inc(x_175); +x_193 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_193, 0, x_175); +lean_ctor_set(x_193, 1, x_180); +x_194 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__27; +x_195 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__29; +lean_inc(x_175); +x_196 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_196, 0, x_175); +lean_ctor_set(x_196, 1, x_185); +lean_ctor_set(x_196, 2, x_186); +if (lean_obj_tag(x_131) == 0) +{ +lean_object* x_197; +x_197 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__30; +x_27 = x_175; +x_28 = x_177; +x_29 = x_193; +x_30 = x_187; +x_31 = x_176; +x_32 = x_170; +x_33 = x_185; +x_34 = x_179; +x_35 = x_194; +x_36 = x_186; +x_37 = x_172; +x_38 = x_196; +x_39 = x_181; +x_40 = x_195; +x_41 = x_178; +x_42 = x_192; +x_43 = x_197; +goto block_128; +} +else +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_198 = lean_ctor_get(x_131, 0); +lean_inc(x_198); +lean_dec(x_131); +x_199 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__31; +x_200 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__32; +x_201 = l_Lean_SourceInfo_fromRef(x_198, x_130); +lean_dec(x_198); x_202 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_202, 0, x_125); -lean_ctor_set(x_202, 1, x_201); -lean_inc(x_125); -x_203 = l_Lean_Syntax_node3(x_125, x_180, x_182, x_200, x_202); -x_204 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__42; -lean_inc_ref_n(x_140, 2); -lean_inc(x_125); -x_205 = l_Lean_Syntax_node2(x_125, x_204, x_140, x_140); -lean_inc_ref(x_140); -lean_inc(x_125); -x_206 = l_Lean_Syntax_node4(x_125, x_177, x_179, x_203, x_205, x_140); -lean_inc_ref(x_140); -lean_inc(x_125); -x_207 = l_Lean_Syntax_node6(x_125, x_143, x_145, x_146, x_140, x_140, x_176, x_206); -lean_inc(x_125); -x_208 = l_Lean_Syntax_node2(x_125, x_138, x_141, x_207); -x_209 = l_Lean_Syntax_node3(x_125, x_128, x_137, x_16, x_208); -x_210 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_210, 0, x_209); -lean_ctor_set(x_210, 1, x_120); -return x_210; +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_199); +lean_inc(x_175); +x_203 = l_Lean_Syntax_node1(x_175, x_200, x_202); +x_204 = l_Array_mkArray1___redArg(x_203); +x_27 = x_175; +x_28 = x_177; +x_29 = x_193; +x_30 = x_187; +x_31 = x_176; +x_32 = x_170; +x_33 = x_185; +x_34 = x_179; +x_35 = x_194; +x_36 = x_186; +x_37 = x_172; +x_38 = x_196; +x_39 = x_181; +x_40 = x_195; +x_41 = x_178; +x_42 = x_192; +x_43 = x_204; +goto block_128; +} +} } } else { -lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; uint8_t x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; size_t x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; size_t 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; size_t 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; -x_211 = lean_ctor_get(x_23, 0); -x_212 = lean_ctor_get(x_23, 1); -lean_inc(x_212); -lean_inc(x_211); -lean_dec(x_23); -x_213 = lean_st_ref_get(x_10, x_212); -lean_dec(x_10); -x_214 = lean_ctor_get(x_213, 0); -lean_inc(x_214); -x_215 = lean_ctor_get(x_213, 1); -lean_inc(x_215); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_216 = x_213; -} else { - lean_dec_ref(x_213); - x_216 = lean_box(0); -} -x_217 = lean_ctor_get(x_9, 5); -lean_inc(x_217); -x_218 = lean_ctor_get(x_9, 10); -lean_inc(x_218); -lean_dec_ref(x_9); -x_219 = lean_ctor_get(x_214, 0); -lean_inc_ref(x_219); -lean_dec(x_214); -x_220 = 0; -x_221 = l_Lean_SourceInfo_fromRef(x_217, x_220); -lean_dec(x_217); -x_222 = l_Lean_Environment_mainModule(x_219); -lean_dec_ref(x_219); -x_223 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__3; -x_224 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__4; -x_225 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__5; -x_226 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__6; -lean_inc(x_221); -x_227 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_227, 0, x_221); -lean_ctor_set(x_227, 1, x_225); -x_228 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__7; -x_229 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__8; -x_230 = lean_array_size(x_19); -x_231 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_230, x_14, x_19); -x_232 = l_Array_append___redArg(x_229, x_231); -lean_dec_ref(x_231); -lean_inc(x_221); -x_233 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_233, 0, x_221); -lean_ctor_set(x_233, 1, x_228); -lean_ctor_set(x_233, 2, x_232); -lean_inc(x_221); -x_234 = l_Lean_Syntax_node2(x_221, x_226, x_227, x_233); -lean_inc(x_221); -lean_ctor_set_tag(x_16, 2); -lean_ctor_set(x_16, 1, x_223); -lean_ctor_set(x_16, 0, x_221); -x_235 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__8; -x_236 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__10; -lean_inc(x_221); -x_237 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_237, 0, x_221); -lean_ctor_set(x_237, 1, x_228); -lean_ctor_set(x_237, 2, x_229); -lean_inc_ref_n(x_237, 6); -lean_inc(x_221); -x_238 = l_Lean_Syntax_node6(x_221, x_236, x_237, x_237, x_237, x_237, x_237, x_237); -x_239 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__11; -x_240 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__12; -x_241 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__14; -lean_inc_ref(x_237); -lean_inc(x_221); -x_242 = l_Lean_Syntax_node1(x_221, x_241, x_237); -lean_inc(x_221); -x_243 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_243, 0, x_221); -lean_ctor_set(x_243, 1, x_239); -x_244 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__16; -x_245 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__18; -x_246 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__19; -lean_inc(x_221); -x_247 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_247, 0, x_221); -lean_ctor_set(x_247, 1, x_246); -x_248 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__14; -x_249 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__16; -x_250 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__17; -x_251 = l_Lean_addMacroScope(x_222, x_250, x_218); -x_252 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__21; -lean_inc(x_221); -x_253 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_253, 0, x_221); -lean_ctor_set(x_253, 1, x_249); -lean_ctor_set(x_253, 2, x_251); -lean_ctor_set(x_253, 3, x_252); -x_254 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__21; -x_255 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__22; -lean_inc(x_221); -x_256 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_256, 0, x_221); -lean_ctor_set(x_256, 1, x_255); -x_257 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__6; -x_258 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__7; -lean_inc(x_221); -x_259 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_259, 0, x_221); -lean_ctor_set(x_259, 1, x_258); -x_260 = l_Lean_mkCIdent(x_2); -lean_inc(x_221); -x_261 = l_Lean_Syntax_node2(x_221, x_257, x_259, x_260); -x_262 = lean_array_size(x_20); -x_263 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_262, x_14, x_20); -x_264 = l_Array_append___redArg(x_229, x_263); -lean_dec_ref(x_263); -lean_inc(x_221); -x_265 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_265, 0, x_221); -lean_ctor_set(x_265, 1, x_228); -lean_ctor_set(x_265, 2, x_264); -lean_inc(x_221); -x_266 = l_Lean_Syntax_node2(x_221, x_248, x_261, x_265); -x_267 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__23; -lean_inc(x_221); -x_268 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_268, 0, x_221); -lean_ctor_set(x_268, 1, x_267); -lean_inc(x_221); -x_269 = l_Lean_Syntax_node3(x_221, x_254, x_256, x_266, x_268); -lean_inc(x_221); -x_270 = l_Lean_Syntax_node1(x_221, x_228, x_269); -lean_inc(x_221); -x_271 = l_Lean_Syntax_node2(x_221, x_248, x_253, x_270); -lean_inc(x_221); -x_272 = l_Lean_Syntax_node2(x_221, x_245, x_247, x_271); -lean_inc_ref(x_237); -lean_inc(x_221); -x_273 = l_Lean_Syntax_node2(x_221, x_244, x_237, x_272); -x_274 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__25; -x_275 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__26; -lean_inc(x_221); -x_276 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_276, 0, x_221); -lean_ctor_set(x_276, 1, x_275); -x_277 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__28; -x_278 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__29; -lean_inc(x_221); -x_279 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_279, 0, x_221); -lean_ctor_set(x_279, 1, x_278); -x_280 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__31; -x_281 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__32; -lean_inc(x_221); -x_282 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_282, 0, x_221); -lean_ctor_set(x_282, 1, x_281); -x_283 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__34; -x_284 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__36; -x_285 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__37; -x_286 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__38; -lean_inc(x_221); -x_287 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_287, 0, x_221); -lean_ctor_set(x_287, 1, x_285); -x_288 = lean_array_size(x_211); -lean_inc(x_221); -x_289 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__3(x_221, x_228, x_284, x_283, x_288, x_14, x_211); -x_290 = l_Array_append___redArg(x_229, x_289); -lean_dec_ref(x_289); -lean_inc(x_221); -x_291 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_291, 0, x_221); -lean_ctor_set(x_291, 1, x_228); -lean_ctor_set(x_291, 2, x_290); -lean_inc(x_221); -x_292 = l_Lean_Syntax_node2(x_221, x_286, x_287, x_291); -lean_inc(x_221); -x_293 = l_Lean_Syntax_node1(x_221, x_228, x_292); -lean_inc(x_221); -x_294 = l_Lean_Syntax_node1(x_221, x_284, x_293); -lean_inc(x_221); -x_295 = l_Lean_Syntax_node1(x_221, x_283, x_294); -lean_inc(x_221); -x_296 = l_Lean_Syntax_node2(x_221, x_280, x_282, x_295); -lean_inc(x_221); -x_297 = l_Lean_Syntax_node1(x_221, x_228, x_296); -x_298 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__39; -lean_inc(x_221); -x_299 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_299, 0, x_221); -lean_ctor_set(x_299, 1, x_298); -lean_inc(x_221); -x_300 = l_Lean_Syntax_node3(x_221, x_277, x_279, x_297, x_299); -x_301 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__42; -lean_inc_ref_n(x_237, 2); -lean_inc(x_221); -x_302 = l_Lean_Syntax_node2(x_221, x_301, x_237, x_237); -lean_inc_ref(x_237); -lean_inc(x_221); -x_303 = l_Lean_Syntax_node4(x_221, x_274, x_276, x_300, x_302, x_237); -lean_inc_ref(x_237); -lean_inc(x_221); -x_304 = l_Lean_Syntax_node6(x_221, x_240, x_242, x_243, x_237, x_237, x_273, x_303); -lean_inc(x_221); -x_305 = l_Lean_Syntax_node2(x_221, x_235, x_238, x_304); -x_306 = l_Lean_Syntax_node3(x_221, x_224, x_234, x_16, x_305); -if (lean_is_scalar(x_216)) { - x_307 = lean_alloc_ctor(0, 2, 0); -} else { - x_307 = x_216; -} -lean_ctor_set(x_307, 0, x_306); -lean_ctor_set(x_307, 1, x_215); -return x_307; -} -} -else -{ -lean_object* x_308; lean_object* x_309; lean_object* x_310; size_t x_311; lean_object* x_312; 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_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; uint8_t x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; size_t x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; size_t x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; size_t x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; -x_308 = lean_ctor_get(x_16, 0); -x_309 = lean_ctor_get(x_16, 1); -lean_inc(x_309); -lean_inc(x_308); -lean_dec(x_16); -x_310 = lean_array_mk(x_1); -x_311 = lean_array_size(x_310); -lean_inc_ref(x_9); -x_312 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg(x_311, x_14, x_310, x_9, x_10, x_17); -x_313 = lean_ctor_get(x_312, 0); -lean_inc(x_313); -x_314 = lean_ctor_get(x_312, 1); -lean_inc(x_314); -if (lean_is_exclusive(x_312)) { - lean_ctor_release(x_312, 0); - lean_ctor_release(x_312, 1); - x_315 = x_312; -} else { - lean_dec_ref(x_312); - x_315 = lean_box(0); -} -x_316 = lean_st_ref_get(x_10, x_314); -lean_dec(x_10); -x_317 = lean_ctor_get(x_316, 0); -lean_inc(x_317); -x_318 = lean_ctor_get(x_316, 1); -lean_inc(x_318); -if (lean_is_exclusive(x_316)) { - lean_ctor_release(x_316, 0); - lean_ctor_release(x_316, 1); - x_319 = x_316; -} else { - lean_dec_ref(x_316); - x_319 = lean_box(0); -} -x_320 = lean_ctor_get(x_9, 5); -lean_inc(x_320); -x_321 = lean_ctor_get(x_9, 10); -lean_inc(x_321); -lean_dec_ref(x_9); -x_322 = lean_ctor_get(x_317, 0); -lean_inc_ref(x_322); -lean_dec(x_317); -x_323 = 0; -x_324 = l_Lean_SourceInfo_fromRef(x_320, x_323); -lean_dec(x_320); -x_325 = l_Lean_Environment_mainModule(x_322); -lean_dec_ref(x_322); -x_326 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__3; -x_327 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__4; -x_328 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__5; -x_329 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__6; -lean_inc(x_324); -if (lean_is_scalar(x_315)) { - x_330 = lean_alloc_ctor(2, 2, 0); -} else { - x_330 = x_315; - lean_ctor_set_tag(x_330, 2); -} -lean_ctor_set(x_330, 0, x_324); -lean_ctor_set(x_330, 1, x_328); -x_331 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__7; -x_332 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__8; -x_333 = lean_array_size(x_308); -x_334 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_333, x_14, x_308); -x_335 = l_Array_append___redArg(x_332, x_334); -lean_dec_ref(x_334); -lean_inc(x_324); -x_336 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_336, 0, x_324); -lean_ctor_set(x_336, 1, x_331); -lean_ctor_set(x_336, 2, x_335); -lean_inc(x_324); -x_337 = l_Lean_Syntax_node2(x_324, x_329, x_330, x_336); -lean_inc(x_324); -x_338 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_338, 0, x_324); -lean_ctor_set(x_338, 1, x_326); -x_339 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__8; -x_340 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__10; -lean_inc(x_324); -x_341 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_341, 0, x_324); -lean_ctor_set(x_341, 1, x_331); -lean_ctor_set(x_341, 2, x_332); -lean_inc_ref_n(x_341, 6); -lean_inc(x_324); -x_342 = l_Lean_Syntax_node6(x_324, x_340, x_341, x_341, x_341, x_341, x_341, x_341); -x_343 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__11; -x_344 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__12; -x_345 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__14; -lean_inc_ref(x_341); -lean_inc(x_324); -x_346 = l_Lean_Syntax_node1(x_324, x_345, x_341); -lean_inc(x_324); -x_347 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_347, 0, x_324); -lean_ctor_set(x_347, 1, x_343); -x_348 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__16; -x_349 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__18; -x_350 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__19; -lean_inc(x_324); -x_351 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_351, 0, x_324); -lean_ctor_set(x_351, 1, x_350); -x_352 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__14; -x_353 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__16; -x_354 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__17; -x_355 = l_Lean_addMacroScope(x_325, x_354, x_321); -x_356 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__21; -lean_inc(x_324); -x_357 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_357, 0, x_324); -lean_ctor_set(x_357, 1, x_353); -lean_ctor_set(x_357, 2, x_355); -lean_ctor_set(x_357, 3, x_356); -x_358 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__21; -x_359 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__22; -lean_inc(x_324); -x_360 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_360, 0, x_324); -lean_ctor_set(x_360, 1, x_359); -x_361 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__6; -x_362 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__2___redArg___closed__7; -lean_inc(x_324); -x_363 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_363, 0, x_324); -lean_ctor_set(x_363, 1, x_362); -x_364 = l_Lean_mkCIdent(x_2); -lean_inc(x_324); -x_365 = l_Lean_Syntax_node2(x_324, x_361, x_363, x_364); -x_366 = lean_array_size(x_309); -x_367 = l_Array_mapMUnsafe_map___at___Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1_spec__4___redArg(x_366, x_14, x_309); -x_368 = l_Array_append___redArg(x_332, x_367); -lean_dec_ref(x_367); -lean_inc(x_324); -x_369 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_369, 0, x_324); -lean_ctor_set(x_369, 1, x_331); -lean_ctor_set(x_369, 2, x_368); -lean_inc(x_324); -x_370 = l_Lean_Syntax_node2(x_324, x_352, x_365, x_369); -x_371 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__23; -lean_inc(x_324); -x_372 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_372, 0, x_324); -lean_ctor_set(x_372, 1, x_371); -lean_inc(x_324); -x_373 = l_Lean_Syntax_node3(x_324, x_358, x_360, x_370, x_372); -lean_inc(x_324); -x_374 = l_Lean_Syntax_node1(x_324, x_331, x_373); -lean_inc(x_324); -x_375 = l_Lean_Syntax_node2(x_324, x_352, x_357, x_374); -lean_inc(x_324); -x_376 = l_Lean_Syntax_node2(x_324, x_349, x_351, x_375); -lean_inc_ref(x_341); -lean_inc(x_324); -x_377 = l_Lean_Syntax_node2(x_324, x_348, x_341, x_376); -x_378 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__25; -x_379 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__26; -lean_inc(x_324); -x_380 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_380, 0, x_324); -lean_ctor_set(x_380, 1, x_379); -x_381 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__28; -x_382 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__29; -lean_inc(x_324); -x_383 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_383, 0, x_324); -lean_ctor_set(x_383, 1, x_382); -x_384 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__31; -x_385 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__32; -lean_inc(x_324); -x_386 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_386, 0, x_324); -lean_ctor_set(x_386, 1, x_385); -x_387 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__34; -x_388 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__36; -x_389 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__37; -x_390 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__38; -lean_inc(x_324); -x_391 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_391, 0, x_324); -lean_ctor_set(x_391, 1, x_389); -x_392 = lean_array_size(x_313); -lean_inc(x_324); -x_393 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__3(x_324, x_331, x_388, x_387, x_392, x_14, x_313); -x_394 = l_Array_append___redArg(x_332, x_393); -lean_dec_ref(x_393); -lean_inc(x_324); -x_395 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_395, 0, x_324); -lean_ctor_set(x_395, 1, x_331); -lean_ctor_set(x_395, 2, x_394); -lean_inc(x_324); -x_396 = l_Lean_Syntax_node2(x_324, x_390, x_391, x_395); -lean_inc(x_324); -x_397 = l_Lean_Syntax_node1(x_324, x_331, x_396); -lean_inc(x_324); -x_398 = l_Lean_Syntax_node1(x_324, x_388, x_397); -lean_inc(x_324); -x_399 = l_Lean_Syntax_node1(x_324, x_387, x_398); -lean_inc(x_324); -x_400 = l_Lean_Syntax_node2(x_324, x_384, x_386, x_399); -lean_inc(x_324); -x_401 = l_Lean_Syntax_node1(x_324, x_331, x_400); -x_402 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__39; -lean_inc(x_324); -x_403 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_403, 0, x_324); -lean_ctor_set(x_403, 1, x_402); -lean_inc(x_324); -x_404 = l_Lean_Syntax_node3(x_324, x_381, x_383, x_401, x_403); -x_405 = l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__42; -lean_inc_ref_n(x_341, 2); -lean_inc(x_324); -x_406 = l_Lean_Syntax_node2(x_324, x_405, x_341, x_341); -lean_inc_ref(x_341); -lean_inc(x_324); -x_407 = l_Lean_Syntax_node4(x_324, x_378, x_380, x_404, x_406, x_341); -lean_inc_ref(x_341); -lean_inc(x_324); -x_408 = l_Lean_Syntax_node6(x_324, x_344, x_346, x_347, x_341, x_341, x_377, x_407); -lean_inc(x_324); -x_409 = l_Lean_Syntax_node2(x_324, x_339, x_342, x_408); -x_410 = l_Lean_Syntax_node3(x_324, x_327, x_337, x_338, x_409); -if (lean_is_scalar(x_319)) { - x_411 = lean_alloc_ctor(0, 2, 0); -} else { - x_411 = x_319; -} -lean_ctor_set(x_411, 0, x_410); -lean_ctor_set(x_411, 1, x_318); -return x_411; -} -} -else -{ -uint8_t x_412; +uint8_t x_208; lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_2); lean_dec(x_1); -x_412 = !lean_is_exclusive(x_15); -if (x_412 == 0) +x_208 = !lean_is_exclusive(x_15); +if (x_208 == 0) { return x_15; } else { -lean_object* x_413; lean_object* x_414; lean_object* x_415; -x_413 = lean_ctor_get(x_15, 0); -x_414 = lean_ctor_get(x_15, 1); -lean_inc(x_414); -lean_inc(x_413); +lean_object* x_209; lean_object* x_210; lean_object* x_211; +x_209 = lean_ctor_get(x_15, 0); +x_210 = lean_ctor_get(x_15, 1); +lean_inc(x_210); +lean_inc(x_209); lean_dec(x_15); -x_415 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_415, 0, x_413); -lean_ctor_set(x_415, 1, x_414); -return x_415; +x_211 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_211, 0, x_209); +lean_ctor_set(x_211, 1, x_210); +return x_211; } } } @@ -4071,7 +3582,7 @@ lean_dec_ref(x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Nonempty___hyg_996_() { +static lean_object* _init_l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Nonempty___hyg_1041_() { _start: { lean_object* x_1; @@ -4079,12 +3590,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_mkNonemptyInstanceHandler___boxed), return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Nonempty___hyg_996_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Nonempty___hyg_1041_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance_spec__1___redArg___closed__17; -x_3 = l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Nonempty___hyg_996_; +x_3 = l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Nonempty___hyg_1041_; x_4 = l_Lean_Elab_registerDerivingHandler(x_2, x_3, x_1); return x_4; } @@ -4262,27 +3773,9 @@ l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0 lean_mark_persistent(l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__32); l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__33 = _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__33(); lean_mark_persistent(l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__33); -l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__34 = _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__34(); -lean_mark_persistent(l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__34); -l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__35 = _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__35(); -lean_mark_persistent(l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__35); -l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__36 = _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__36(); -lean_mark_persistent(l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__36); -l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__37 = _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__37(); -lean_mark_persistent(l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__37); -l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__38 = _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__38(); -lean_mark_persistent(l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__38); -l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__39 = _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__39(); -lean_mark_persistent(l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__39); -l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__40 = _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__40(); -lean_mark_persistent(l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__40); -l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__41 = _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__41(); -lean_mark_persistent(l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__41); -l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__42 = _init_l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__42(); -lean_mark_persistent(l___private_Lean_Elab_Deriving_Nonempty_0__Lean_Elab_mkNonemptyInstance___lam__0___closed__42); -l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Nonempty___hyg_996_ = _init_l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Nonempty___hyg_996_(); -lean_mark_persistent(l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Nonempty___hyg_996_); -if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Nonempty___hyg_996_(lean_io_mk_world()); +l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Nonempty___hyg_1041_ = _init_l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Nonempty___hyg_1041_(); +lean_mark_persistent(l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Nonempty___hyg_1041_); +if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Nonempty___hyg_1041_(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)); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Repr.c b/stage0/stdlib/Lean/Elab/Deriving/Repr.c index 686e068679..30c4945a53 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Repr.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Repr.c @@ -18,13 +18,11 @@ static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__2___closed__16; static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__11; LEAN_EXPORT lean_object* l_Lean_isInductive___at___Lean_Elab_Deriving_Repr_mkReprInstanceHandler_spec__0___redArg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__9____x40_Lean_Elab_Deriving_Repr___hyg_3589_; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___boxed(lean_object**); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__0___redArg___closed__2; static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__2___closed__12; static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__2___closed__8; static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__15; -static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__2____x40_Lean_Elab_Deriving_Repr___hyg_3589_; static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__9; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__15; @@ -35,6 +33,7 @@ static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__19; lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__30; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__27; static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__16; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__20; @@ -44,10 +43,13 @@ static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__0___redArg___closed__4; static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__29; +static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__13____x40_Lean_Elab_Deriving_Repr___hyg_3667_; +static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__34; static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForInduct___closed__2; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__16; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___boxed(lean_object**); -LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_initFn____x40_Lean_Elab_Deriving_Repr___hyg_3589_(lean_object*); +static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__14____x40_Lean_Elab_Deriving_Repr___hyg_3667_; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_mkReprInstanceHandler(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__2; lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); @@ -62,6 +64,7 @@ uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__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*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_mkInstanceCmds(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_mkDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__38; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkMutualBlock_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__10; static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__0; @@ -80,13 +83,12 @@ uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__6; lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__1; +static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__10____x40_Lean_Elab_Deriving_Repr___hyg_3667_; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__3; -static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__7____x40_Lean_Elab_Deriving_Repr___hyg_3589_; lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__3; static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__2; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__29; -static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__4____x40_Lean_Elab_Deriving_Repr___hyg_3589_; static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__22; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__1; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2___redArg___boxed(lean_object**); @@ -94,6 +96,7 @@ static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__6; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mkArray0(lean_object*); +static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__15____x40_Lean_Elab_Deriving_Repr___hyg_3667_; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__0___boxed(lean_object**); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__0___redArg___closed__0; static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__2___closed__14; @@ -104,14 +107,15 @@ static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__8; lean_object* l_Lean_getStructureFields(lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___closed__5; static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts___closed__2; +static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__32; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__26; LEAN_EXPORT uint8_t l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__0(lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__11; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___boxed(lean_object**); +static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__9____x40_Lean_Elab_Deriving_Repr___hyg_3667_; lean_object* l_Nat_reprFast(lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__35; -static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__13____x40_Lean_Elab_Deriving_Repr___hyg_3589_; static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__2___closed__6; size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(lean_object*, lean_object*, lean_object*); @@ -152,23 +156,23 @@ static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__24; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___boxed(lean_object**); static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__2___closed__9; static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__21; +static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__39; static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__4; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_Deriving_Repr_mkReprInstanceHandler_spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkMutualBlock_spec__0___boxed(lean_object**); lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__9; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_mkReprInstanceHandler___lam__0(uint8_t, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__36; static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__17; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__4(size_t, size_t, lean_object*); -static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__11____x40_Lean_Elab_Deriving_Repr___hyg_3589_; lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__2___closed__0; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_mkMutualBlock(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkMutualBlock_spec__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__25; -static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__3____x40_Lean_Elab_Deriving_Repr___hyg_3589_; lean_object* l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__23; static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__2___closed__7; @@ -177,16 +181,17 @@ static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___closed__8; lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__12; +static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__5____x40_Lean_Elab_Deriving_Repr___hyg_3667_; lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__34; lean_object* l_Lean_Elab_Deriving_mkHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__1____x40_Lean_Elab_Deriving_Repr___hyg_3589_; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__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*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__35; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__0; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__21; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__23; LEAN_EXPORT lean_object* l_Lean_isInductive___at___Lean_Elab_Deriving_Repr_mkReprInstanceHandler_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__11____x40_Lean_Elab_Deriving_Repr___hyg_3667_; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__0___redArg___lam__0___closed__0; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___closed__9; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__0___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -203,16 +208,18 @@ static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__7; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___closed__4; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_mkContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__42; static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForInduct___closed__0; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__31; lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__14; -static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__6____x40_Lean_Elab_Deriving_Repr___hyg_3589_; +static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__31; static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__2___closed__3; lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__17; +static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__8____x40_Lean_Elab_Deriving_Repr___hyg_3667_; static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__12; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__0___redArg___lam__0___closed__6; static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__6; @@ -224,8 +231,8 @@ LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at__ LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__10; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_mkReprInstanceHandler___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_initFn____x40_Lean_Elab_Deriving_Repr___hyg_3667_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__0____x40_Lean_Elab_Deriving_Repr___hyg_3589_; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__21; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__22; static lean_object* l_Lean_Elab_Deriving_Repr_mkMutualBlock___closed__2; @@ -241,19 +248,21 @@ static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__4; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__32; lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__10____x40_Lean_Elab_Deriving_Repr___hyg_3589_; lean_object* l_List_head_x21___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__2___closed__15; static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__23; static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__13; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_mkBody(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__37; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__31; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__2; lean_object* lean_array_fget(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__4____x40_Lean_Elab_Deriving_Repr___hyg_3667_; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__12; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__19; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkMutualBlock_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__2___closed__17; +static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__0____x40_Lean_Elab_Deriving_Repr___hyg_3667_; static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__5; lean_object* lean_string_length(lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__7; @@ -261,24 +270,28 @@ static lean_object* l___private_Lean_Elab_Deriving_Repr_0__Lean_Elab_Deriving_Re uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__24; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__1____x40_Lean_Elab_Deriving_Repr___hyg_3667_; lean_object* l_Lean_Environment_mainModule(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__4___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Repr_0__Lean_Elab_Deriving_Repr_mkReprInstanceCmd___closed__6; +static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__41; static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__20; static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__28; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__5; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__9; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__7; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__12____x40_Lean_Elab_Deriving_Repr___hyg_3667_; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__33; uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__8; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__19; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2_spec__2___redArg___lam__0___closed__34; lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__3____x40_Lean_Elab_Deriving_Repr___hyg_3667_; lean_object* l_Lean_mkSepArray(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__13; -static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__15____x40_Lean_Elab_Deriving_Repr___hyg_3589_; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_Deriving_Repr_mkReprInstanceHandler_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__2___closed__11; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__6; @@ -291,16 +304,17 @@ lean_object* l_Array_append___redArg(lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__10; static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__14; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2___boxed(lean_object**); +static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__2____x40_Lean_Elab_Deriving_Repr___hyg_3667_; static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__2___closed__2; static lean_object* l_Lean_getConstInfoCtor___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__0___closed__3; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__0___redArg___lam__0___closed__1; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__38; -static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__5____x40_Lean_Elab_Deriving_Repr___hyg_3589_; static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__16; static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__18; +static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__7____x40_Lean_Elab_Deriving_Repr___hyg_3667_; +static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__40; lean_object* l_Lean_Elab_Command_liftTermElabM___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__12____x40_Lean_Elab_Deriving_Repr___hyg_3589_; size_t lean_usize_add(size_t, size_t); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__33; static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__2; @@ -324,7 +338,6 @@ static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__2___closed__13; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__37; static lean_object* l___private_Lean_Elab_Deriving_Repr_0__Lean_Elab_Deriving_Repr_mkReprInstanceCmd___closed__7; -static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__14____x40_Lean_Elab_Deriving_Repr___hyg_3589_; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___lam__0___closed__8; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -341,8 +354,9 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_Command_elabCommand_go_spec__13(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__6____x40_Lean_Elab_Deriving_Repr___hyg_3667_; +static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__35; lean_object* lean_nat_add(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_Repr_initFn___closed__8____x40_Lean_Elab_Deriving_Repr___hyg_3589_; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__1___redArg___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lam__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*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at___Lean_Elab_Deriving_Repr_mkBodyForStruct_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -7208,7 +7222,7 @@ static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__5() _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("definition", 10, 10); +x_1 = lean_mk_string_unchecked("attributes", 10, 10); return x_1; } } @@ -7217,7 +7231,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_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__5; -x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__0; +x_2 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__4; x_3 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__3; x_4 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); @@ -7228,7 +7242,7 @@ static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__7() _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("def", 3, 3); +x_1 = lean_mk_string_unchecked("@[", 2, 2); return x_1; } } @@ -7236,7 +7250,7 @@ static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__8() _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("declId", 6, 6); +x_1 = lean_mk_string_unchecked("attrInstance", 12, 12); return x_1; } } @@ -7245,7 +7259,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_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__8; -x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__0; +x_2 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__4; x_3 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__3; x_4 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); @@ -7256,7 +7270,7 @@ static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__10() _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("optDeclSig", 10, 10); +x_1 = lean_mk_string_unchecked("attrKind", 8, 8); return x_1; } } @@ -7265,7 +7279,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_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__10; -x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__0; +x_2 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__4; x_3 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__3; x_4 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); @@ -7276,15 +7290,145 @@ static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__12() _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("typeSpec", 8, 8); +x_1 = lean_mk_string_unchecked("Attr", 4, 4); return x_1; } } static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__13() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("simple", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__14() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__12; +x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__13; +x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__12; +x_3 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__3; +x_4 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__2; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__15() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("no_expose", 9, 9); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__15; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__17() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__15; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__18() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("]", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__19() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("definition", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___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_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__19; +x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__0; +x_3 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__3; +x_4 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__2; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__21() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("def", 3, 3); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__22() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("declId", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__23() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__22; +x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__0; +x_3 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__3; +x_4 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__2; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__24() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("optDeclSig", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__25() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__24; +x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__0; +x_3 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__3; +x_4 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__2; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__26() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("typeSpec", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__27() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__26; x_2 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__4; x_3 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__3; x_4 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__2; @@ -7292,7 +7436,7 @@ x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__14() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__28() { _start: { lean_object* x_1; lean_object* x_2; @@ -7301,7 +7445,7 @@ x_2 = l_String_toSubstring_x27(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__15() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__29() { _start: { lean_object* x_1; lean_object* x_2; @@ -7310,7 +7454,7 @@ x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__16() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__30() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -7320,53 +7464,53 @@ x_3 = l_Lean_Name_mkStr2(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__17() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__31() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__16; +x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__30; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__18() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__32() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__16; +x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__30; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__19() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__33() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__18; +x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__32; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__20() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__34() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__19; -x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__17; +x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__33; +x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__31; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__21() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__35() { _start: { lean_object* x_1; @@ -7374,11 +7518,11 @@ x_1 = lean_mk_string_unchecked("declValSimple", 13, 13); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__22() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__36() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__21; +x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__35; x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__0; x_3 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__3; x_4 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__2; @@ -7386,7 +7530,7 @@ x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__23() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__37() { _start: { lean_object* x_1; @@ -7394,7 +7538,7 @@ x_1 = lean_mk_string_unchecked(":=", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__24() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__38() { _start: { lean_object* x_1; @@ -7402,7 +7546,7 @@ x_1 = lean_mk_string_unchecked("Termination", 11, 11); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__25() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__39() { _start: { lean_object* x_1; @@ -7410,19 +7554,19 @@ x_1 = lean_mk_string_unchecked("suffix", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__26() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__40() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__25; -x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__24; +x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__39; +x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__38; x_3 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__3; x_4 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__27() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__41() { _start: { lean_object* x_1; @@ -7430,11 +7574,11 @@ x_1 = lean_mk_string_unchecked("partial", 7, 7); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__28() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__42() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__27; +x_1 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__41; x_2 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__0; x_3 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__3; x_4 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__2; @@ -7461,7 +7605,7 @@ lean_inc_ref(x_14); x_15 = l_Lean_Elab_Deriving_Repr_mkReprHeader(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_15) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_307; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_421; x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); @@ -7477,74 +7621,74 @@ lean_inc(x_4); lean_inc_ref(x_3); lean_inc(x_19); lean_inc(x_16); -x_307 = l_Lean_Elab_Deriving_Repr_mkBody(x_16, x_14, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_17); -if (lean_obj_tag(x_307) == 0) +x_421 = l_Lean_Elab_Deriving_Repr_mkBody(x_16, x_14, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_17); +if (lean_obj_tag(x_421) == 0) { if (x_12 == 0) { -lean_object* x_308; lean_object* x_309; +lean_object* x_422; lean_object* x_423; lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -x_308 = lean_ctor_get(x_307, 0); -lean_inc(x_308); -x_309 = lean_ctor_get(x_307, 1); -lean_inc(x_309); -lean_dec_ref(x_307); -x_20 = x_308; +x_422 = lean_ctor_get(x_421, 0); +lean_inc(x_422); +x_423 = lean_ctor_get(x_421, 1); +lean_inc(x_423); +lean_dec_ref(x_421); +x_20 = x_422; x_21 = x_7; x_22 = x_8; -x_23 = x_309; -goto block_306; +x_23 = x_423; +goto block_420; } else { -lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; -x_310 = lean_ctor_get(x_307, 0); -lean_inc(x_310); -x_311 = lean_ctor_get(x_307, 1); -lean_inc(x_311); -lean_dec_ref(x_307); -x_312 = lean_ctor_get(x_16, 1); -lean_inc_ref(x_312); -x_313 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__1; +lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; +x_424 = lean_ctor_get(x_421, 0); +lean_inc(x_424); +x_425 = lean_ctor_get(x_421, 1); +lean_inc(x_425); +lean_dec_ref(x_421); +x_426 = lean_ctor_get(x_16, 1); +lean_inc_ref(x_426); +x_427 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__1; lean_inc(x_8); lean_inc_ref(x_7); lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc_ref(x_3); -x_314 = l_Lean_Elab_Deriving_mkLocalInstanceLetDecls(x_1, x_313, x_312, x_3, x_4, x_5, x_6, x_7, x_8, x_311); -if (lean_obj_tag(x_314) == 0) +x_428 = l_Lean_Elab_Deriving_mkLocalInstanceLetDecls(x_1, x_427, x_426, x_3, x_4, x_5, x_6, x_7, x_8, x_425); +if (lean_obj_tag(x_428) == 0) { -lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; -x_315 = lean_ctor_get(x_314, 0); -lean_inc(x_315); -x_316 = lean_ctor_get(x_314, 1); -lean_inc(x_316); -lean_dec_ref(x_314); -x_317 = l_Lean_Elab_Deriving_mkLet(x_315, x_310, x_3, x_4, x_5, x_6, x_7, x_8, x_316); +lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; +x_429 = lean_ctor_get(x_428, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_428, 1); +lean_inc(x_430); +lean_dec_ref(x_428); +x_431 = l_Lean_Elab_Deriving_mkLet(x_429, x_424, x_3, x_4, x_5, x_6, x_7, x_8, x_430); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -lean_dec(x_315); -x_318 = lean_ctor_get(x_317, 0); -lean_inc(x_318); -x_319 = lean_ctor_get(x_317, 1); -lean_inc(x_319); -lean_dec_ref(x_317); -x_20 = x_318; +lean_dec(x_429); +x_432 = lean_ctor_get(x_431, 0); +lean_inc(x_432); +x_433 = lean_ctor_get(x_431, 1); +lean_inc(x_433); +lean_dec_ref(x_431); +x_20 = x_432; x_21 = x_7; x_22 = x_8; -x_23 = x_319; -goto block_306; +x_23 = x_433; +goto block_420; } else { -uint8_t x_320; -lean_dec(x_310); +uint8_t x_434; +lean_dec(x_424); lean_dec(x_19); lean_dec(x_16); lean_dec(x_8); @@ -7553,23 +7697,23 @@ lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -x_320 = !lean_is_exclusive(x_314); -if (x_320 == 0) +x_434 = !lean_is_exclusive(x_428); +if (x_434 == 0) { -return x_314; +return x_428; } else { -lean_object* x_321; lean_object* x_322; lean_object* x_323; -x_321 = lean_ctor_get(x_314, 0); -x_322 = lean_ctor_get(x_314, 1); -lean_inc(x_322); -lean_inc(x_321); -lean_dec(x_314); -x_323 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_323, 0, x_321); -lean_ctor_set(x_323, 1, x_322); -return x_323; +lean_object* x_435; lean_object* x_436; lean_object* x_437; +x_435 = lean_ctor_get(x_428, 0); +x_436 = lean_ctor_get(x_428, 1); +lean_inc(x_436); +lean_inc(x_435); +lean_dec(x_428); +x_437 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_437, 0, x_435); +lean_ctor_set(x_437, 1, x_436); +return x_437; } } } @@ -7584,9 +7728,9 @@ lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -return x_307; +return x_421; } -block_306: +block_420: { if (x_12 == 0) { @@ -7607,7 +7751,7 @@ lean_dec(x_22); x_30 = !lean_is_exclusive(x_29); if (x_30 == 0) { -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_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; x_31 = lean_ctor_get(x_29, 0); x_32 = lean_ctor_get(x_21, 5); lean_inc(x_32); @@ -7630,624 +7774,864 @@ x_41 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_41, 0, x_35); lean_ctor_set(x_41, 1, x_39); lean_ctor_set(x_41, 2, x_40); -lean_inc_ref_n(x_41, 6); +x_42 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__6; +x_43 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__7; lean_inc(x_35); -x_42 = l_Lean_Syntax_node6(x_35, x_38, x_41, x_41, x_41, x_41, x_41, x_41); -x_43 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__6; -x_44 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__7; -lean_inc(x_35); -x_45 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_45, 0, x_35); -lean_ctor_set(x_45, 1, x_44); -x_46 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__9; -x_47 = lean_mk_syntax_ident(x_19); +x_44 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_44, 0, x_35); +lean_ctor_set(x_44, 1, x_43); +x_45 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__9; +x_46 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__11; lean_inc_ref(x_41); lean_inc(x_35); -x_48 = l_Lean_Syntax_node2(x_35, x_46, x_47, x_41); -x_49 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__11; -x_50 = l_Array_append___redArg(x_40, x_25); -lean_dec_ref(x_25); -lean_inc(x_35); -x_51 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_51, 0, x_35); -lean_ctor_set(x_51, 1, x_39); -lean_ctor_set(x_51, 2, x_50); -x_52 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__13; -x_53 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__13; -lean_inc(x_35); -x_54 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_54, 0, x_35); -lean_ctor_set(x_54, 1, x_53); -x_55 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__14; -x_56 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__15; -x_57 = l_Lean_addMacroScope(x_36, x_56, x_33); -x_58 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__20; +x_47 = l_Lean_Syntax_node1(x_35, x_46, x_41); +x_48 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__14; +x_49 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__16; +x_50 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__17; +lean_inc(x_33); +lean_inc(x_36); +x_51 = l_Lean_addMacroScope(x_36, x_50, x_33); +x_52 = lean_box(0); lean_inc(x_35); lean_ctor_set_tag(x_16, 3); -lean_ctor_set(x_16, 3, x_58); -lean_ctor_set(x_16, 2, x_57); -lean_ctor_set(x_16, 1, x_55); +lean_ctor_set(x_16, 3, x_52); +lean_ctor_set(x_16, 2, x_51); +lean_ctor_set(x_16, 1, x_49); lean_ctor_set(x_16, 0, x_35); -lean_inc(x_35); -x_59 = l_Lean_Syntax_node2(x_35, x_52, x_54, x_16); -lean_inc(x_35); -x_60 = l_Lean_Syntax_node1(x_35, x_39, x_59); -lean_inc(x_35); -x_61 = l_Lean_Syntax_node2(x_35, x_49, x_51, x_60); -x_62 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__22; -x_63 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__23; -lean_inc(x_35); -x_64 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_64, 0, x_35); -lean_ctor_set(x_64, 1, x_63); -x_65 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__26; -lean_inc_ref_n(x_41, 2); -lean_inc(x_35); -x_66 = l_Lean_Syntax_node2(x_35, x_65, x_41, x_41); lean_inc_ref(x_41); lean_inc(x_35); -x_67 = l_Lean_Syntax_node4(x_35, x_62, x_64, x_20, x_66, x_41); +x_53 = l_Lean_Syntax_node2(x_35, x_48, x_16, x_41); lean_inc(x_35); -x_68 = l_Lean_Syntax_node5(x_35, x_43, x_45, x_48, x_61, x_67, x_41); -x_69 = l_Lean_Syntax_node2(x_35, x_37, x_42, x_68); -lean_ctor_set(x_29, 0, x_69); +x_54 = l_Lean_Syntax_node2(x_35, x_45, x_47, x_53); +lean_inc(x_35); +x_55 = l_Lean_Syntax_node1(x_35, x_39, x_54); +x_56 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__18; +lean_inc(x_35); +x_57 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_57, 0, x_35); +lean_ctor_set(x_57, 1, x_56); +lean_inc(x_35); +x_58 = l_Lean_Syntax_node3(x_35, x_42, x_44, x_55, x_57); +lean_inc(x_35); +x_59 = l_Lean_Syntax_node1(x_35, x_39, x_58); +lean_inc_ref_n(x_41, 5); +lean_inc(x_35); +x_60 = l_Lean_Syntax_node6(x_35, x_38, x_41, x_59, x_41, x_41, x_41, x_41); +x_61 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__20; +x_62 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__21; +lean_inc(x_35); +x_63 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_63, 0, x_35); +lean_ctor_set(x_63, 1, x_62); +x_64 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__23; +x_65 = lean_mk_syntax_ident(x_19); +lean_inc_ref(x_41); +lean_inc(x_35); +x_66 = l_Lean_Syntax_node2(x_35, x_64, x_65, x_41); +x_67 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__25; +x_68 = l_Array_append___redArg(x_40, x_25); +lean_dec_ref(x_25); +lean_inc(x_35); +x_69 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_69, 0, x_35); +lean_ctor_set(x_69, 1, x_39); +lean_ctor_set(x_69, 2, x_68); +x_70 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__27; +x_71 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__13; +lean_inc(x_35); +x_72 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_72, 0, x_35); +lean_ctor_set(x_72, 1, x_71); +x_73 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__28; +x_74 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__29; +x_75 = l_Lean_addMacroScope(x_36, x_74, x_33); +x_76 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__34; +lean_inc(x_35); +x_77 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_77, 0, x_35); +lean_ctor_set(x_77, 1, x_73); +lean_ctor_set(x_77, 2, x_75); +lean_ctor_set(x_77, 3, x_76); +lean_inc(x_35); +x_78 = l_Lean_Syntax_node2(x_35, x_70, x_72, x_77); +lean_inc(x_35); +x_79 = l_Lean_Syntax_node1(x_35, x_39, x_78); +lean_inc(x_35); +x_80 = l_Lean_Syntax_node2(x_35, x_67, x_69, x_79); +x_81 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__36; +x_82 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__37; +lean_inc(x_35); +x_83 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_83, 0, x_35); +lean_ctor_set(x_83, 1, x_82); +x_84 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__40; +lean_inc_ref_n(x_41, 2); +lean_inc(x_35); +x_85 = l_Lean_Syntax_node2(x_35, x_84, x_41, x_41); +lean_inc_ref(x_41); +lean_inc(x_35); +x_86 = l_Lean_Syntax_node4(x_35, x_81, x_83, x_20, x_85, x_41); +lean_inc(x_35); +x_87 = l_Lean_Syntax_node5(x_35, x_61, x_63, x_66, x_80, x_86, x_41); +x_88 = l_Lean_Syntax_node2(x_35, x_37, x_60, x_87); +lean_ctor_set(x_29, 0, x_88); return x_29; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_70 = lean_ctor_get(x_29, 0); -x_71 = lean_ctor_get(x_29, 1); -lean_inc(x_71); -lean_inc(x_70); +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_89 = lean_ctor_get(x_29, 0); +x_90 = lean_ctor_get(x_29, 1); +lean_inc(x_90); +lean_inc(x_89); lean_dec(x_29); -x_72 = lean_ctor_get(x_21, 5); -lean_inc(x_72); -x_73 = lean_ctor_get(x_21, 10); -lean_inc(x_73); +x_91 = lean_ctor_get(x_21, 5); +lean_inc(x_91); +x_92 = lean_ctor_get(x_21, 10); +lean_inc(x_92); lean_dec_ref(x_21); -x_74 = lean_ctor_get(x_70, 0); -lean_inc_ref(x_74); -lean_dec(x_70); -x_75 = l_Lean_SourceInfo_fromRef(x_72, x_12); -lean_dec(x_72); -x_76 = l_Lean_Environment_mainModule(x_74); -lean_dec_ref(x_74); -x_77 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__2; -x_78 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__4; -x_79 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__9; -x_80 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__22; -lean_inc(x_75); -x_81 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_81, 0, x_75); -lean_ctor_set(x_81, 1, x_79); -lean_ctor_set(x_81, 2, x_80); -lean_inc_ref_n(x_81, 6); -lean_inc(x_75); -x_82 = l_Lean_Syntax_node6(x_75, x_78, x_81, x_81, x_81, x_81, x_81, x_81); -x_83 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__6; -x_84 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__7; -lean_inc(x_75); -x_85 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_85, 0, x_75); -lean_ctor_set(x_85, 1, x_84); -x_86 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__9; -x_87 = lean_mk_syntax_ident(x_19); -lean_inc_ref(x_81); -lean_inc(x_75); -x_88 = l_Lean_Syntax_node2(x_75, x_86, x_87, x_81); -x_89 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__11; -x_90 = l_Array_append___redArg(x_80, x_25); +x_93 = lean_ctor_get(x_89, 0); +lean_inc_ref(x_93); +lean_dec(x_89); +x_94 = l_Lean_SourceInfo_fromRef(x_91, x_12); +lean_dec(x_91); +x_95 = l_Lean_Environment_mainModule(x_93); +lean_dec_ref(x_93); +x_96 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__2; +x_97 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__4; +x_98 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__9; +x_99 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__22; +lean_inc(x_94); +x_100 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_100, 0, x_94); +lean_ctor_set(x_100, 1, x_98); +lean_ctor_set(x_100, 2, x_99); +x_101 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__6; +x_102 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__7; +lean_inc(x_94); +x_103 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_103, 0, x_94); +lean_ctor_set(x_103, 1, x_102); +x_104 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__9; +x_105 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__11; +lean_inc_ref(x_100); +lean_inc(x_94); +x_106 = l_Lean_Syntax_node1(x_94, x_105, x_100); +x_107 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__14; +x_108 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__16; +x_109 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__17; +lean_inc(x_92); +lean_inc(x_95); +x_110 = l_Lean_addMacroScope(x_95, x_109, x_92); +x_111 = lean_box(0); +lean_inc(x_94); +lean_ctor_set_tag(x_16, 3); +lean_ctor_set(x_16, 3, x_111); +lean_ctor_set(x_16, 2, x_110); +lean_ctor_set(x_16, 1, x_108); +lean_ctor_set(x_16, 0, x_94); +lean_inc_ref(x_100); +lean_inc(x_94); +x_112 = l_Lean_Syntax_node2(x_94, x_107, x_16, x_100); +lean_inc(x_94); +x_113 = l_Lean_Syntax_node2(x_94, x_104, x_106, x_112); +lean_inc(x_94); +x_114 = l_Lean_Syntax_node1(x_94, x_98, x_113); +x_115 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__18; +lean_inc(x_94); +x_116 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_116, 0, x_94); +lean_ctor_set(x_116, 1, x_115); +lean_inc(x_94); +x_117 = l_Lean_Syntax_node3(x_94, x_101, x_103, x_114, x_116); +lean_inc(x_94); +x_118 = l_Lean_Syntax_node1(x_94, x_98, x_117); +lean_inc_ref_n(x_100, 5); +lean_inc(x_94); +x_119 = l_Lean_Syntax_node6(x_94, x_97, x_100, x_118, x_100, x_100, x_100, x_100); +x_120 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__20; +x_121 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__21; +lean_inc(x_94); +x_122 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_122, 0, x_94); +lean_ctor_set(x_122, 1, x_121); +x_123 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__23; +x_124 = lean_mk_syntax_ident(x_19); +lean_inc_ref(x_100); +lean_inc(x_94); +x_125 = l_Lean_Syntax_node2(x_94, x_123, x_124, x_100); +x_126 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__25; +x_127 = l_Array_append___redArg(x_99, x_25); lean_dec_ref(x_25); -lean_inc(x_75); -x_91 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_91, 0, x_75); -lean_ctor_set(x_91, 1, x_79); -lean_ctor_set(x_91, 2, x_90); -x_92 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__13; -x_93 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__13; -lean_inc(x_75); -x_94 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_94, 0, x_75); -lean_ctor_set(x_94, 1, x_93); -x_95 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__14; -x_96 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__15; -x_97 = l_Lean_addMacroScope(x_76, x_96, x_73); -x_98 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__20; -lean_inc(x_75); -lean_ctor_set_tag(x_16, 3); -lean_ctor_set(x_16, 3, x_98); -lean_ctor_set(x_16, 2, x_97); -lean_ctor_set(x_16, 1, x_95); -lean_ctor_set(x_16, 0, x_75); -lean_inc(x_75); -x_99 = l_Lean_Syntax_node2(x_75, x_92, x_94, x_16); -lean_inc(x_75); -x_100 = l_Lean_Syntax_node1(x_75, x_79, x_99); -lean_inc(x_75); -x_101 = l_Lean_Syntax_node2(x_75, x_89, x_91, x_100); -x_102 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__22; -x_103 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__23; -lean_inc(x_75); -x_104 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_104, 0, x_75); -lean_ctor_set(x_104, 1, x_103); -x_105 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__26; -lean_inc_ref_n(x_81, 2); -lean_inc(x_75); -x_106 = l_Lean_Syntax_node2(x_75, x_105, x_81, x_81); -lean_inc_ref(x_81); -lean_inc(x_75); -x_107 = l_Lean_Syntax_node4(x_75, x_102, x_104, x_20, x_106, x_81); -lean_inc(x_75); -x_108 = l_Lean_Syntax_node5(x_75, x_83, x_85, x_88, x_101, x_107, x_81); -x_109 = l_Lean_Syntax_node2(x_75, x_77, x_82, x_108); -x_110 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_71); -return x_110; +lean_inc(x_94); +x_128 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_128, 0, x_94); +lean_ctor_set(x_128, 1, x_98); +lean_ctor_set(x_128, 2, x_127); +x_129 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__27; +x_130 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__13; +lean_inc(x_94); +x_131 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_131, 0, x_94); +lean_ctor_set(x_131, 1, x_130); +x_132 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__28; +x_133 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__29; +x_134 = l_Lean_addMacroScope(x_95, x_133, x_92); +x_135 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__34; +lean_inc(x_94); +x_136 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_136, 0, x_94); +lean_ctor_set(x_136, 1, x_132); +lean_ctor_set(x_136, 2, x_134); +lean_ctor_set(x_136, 3, x_135); +lean_inc(x_94); +x_137 = l_Lean_Syntax_node2(x_94, x_129, x_131, x_136); +lean_inc(x_94); +x_138 = l_Lean_Syntax_node1(x_94, x_98, x_137); +lean_inc(x_94); +x_139 = l_Lean_Syntax_node2(x_94, x_126, x_128, x_138); +x_140 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__36; +x_141 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__37; +lean_inc(x_94); +x_142 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_142, 0, x_94); +lean_ctor_set(x_142, 1, x_141); +x_143 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__40; +lean_inc_ref_n(x_100, 2); +lean_inc(x_94); +x_144 = l_Lean_Syntax_node2(x_94, x_143, x_100, x_100); +lean_inc_ref(x_100); +lean_inc(x_94); +x_145 = l_Lean_Syntax_node4(x_94, x_140, x_142, x_20, x_144, x_100); +lean_inc(x_94); +x_146 = l_Lean_Syntax_node5(x_94, x_120, x_122, x_125, x_139, x_145, x_100); +x_147 = l_Lean_Syntax_node2(x_94, x_96, x_119, x_146); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_90); +return x_148; } } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_111 = lean_ctor_get(x_16, 0); -lean_inc(x_111); +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; +x_149 = lean_ctor_get(x_16, 0); +lean_inc(x_149); lean_dec(x_16); -x_112 = lean_st_ref_get(x_22, x_23); +x_150 = lean_st_ref_get(x_22, x_23); lean_dec(x_22); -x_113 = lean_ctor_get(x_112, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_115 = x_112; +x_151 = lean_ctor_get(x_150, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_150, 1); +lean_inc(x_152); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_153 = x_150; } else { - lean_dec_ref(x_112); - x_115 = lean_box(0); + lean_dec_ref(x_150); + x_153 = lean_box(0); } -x_116 = lean_ctor_get(x_21, 5); -lean_inc(x_116); -x_117 = lean_ctor_get(x_21, 10); -lean_inc(x_117); +x_154 = lean_ctor_get(x_21, 5); +lean_inc(x_154); +x_155 = lean_ctor_get(x_21, 10); +lean_inc(x_155); lean_dec_ref(x_21); -x_118 = lean_ctor_get(x_113, 0); -lean_inc_ref(x_118); -lean_dec(x_113); -x_119 = l_Lean_SourceInfo_fromRef(x_116, x_12); -lean_dec(x_116); -x_120 = l_Lean_Environment_mainModule(x_118); -lean_dec_ref(x_118); -x_121 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__2; -x_122 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__4; -x_123 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__9; -x_124 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__22; -lean_inc(x_119); -x_125 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_125, 0, x_119); -lean_ctor_set(x_125, 1, x_123); -lean_ctor_set(x_125, 2, x_124); -lean_inc_ref_n(x_125, 6); -lean_inc(x_119); -x_126 = l_Lean_Syntax_node6(x_119, x_122, x_125, x_125, x_125, x_125, x_125, x_125); -x_127 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__6; -x_128 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__7; -lean_inc(x_119); -x_129 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_129, 0, x_119); -lean_ctor_set(x_129, 1, x_128); -x_130 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__9; -x_131 = lean_mk_syntax_ident(x_19); -lean_inc_ref(x_125); -lean_inc(x_119); -x_132 = l_Lean_Syntax_node2(x_119, x_130, x_131, x_125); -x_133 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__11; -x_134 = l_Array_append___redArg(x_124, x_111); -lean_dec_ref(x_111); -lean_inc(x_119); -x_135 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_135, 0, x_119); -lean_ctor_set(x_135, 1, x_123); -lean_ctor_set(x_135, 2, x_134); -x_136 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__13; -x_137 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__13; -lean_inc(x_119); -x_138 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_138, 0, x_119); -lean_ctor_set(x_138, 1, x_137); -x_139 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__14; -x_140 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__15; -x_141 = l_Lean_addMacroScope(x_120, x_140, x_117); -x_142 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__20; -lean_inc(x_119); -x_143 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_143, 0, x_119); -lean_ctor_set(x_143, 1, x_139); -lean_ctor_set(x_143, 2, x_141); -lean_ctor_set(x_143, 3, x_142); -lean_inc(x_119); -x_144 = l_Lean_Syntax_node2(x_119, x_136, x_138, x_143); -lean_inc(x_119); -x_145 = l_Lean_Syntax_node1(x_119, x_123, x_144); -lean_inc(x_119); -x_146 = l_Lean_Syntax_node2(x_119, x_133, x_135, x_145); -x_147 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__22; -x_148 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__23; -lean_inc(x_119); -x_149 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_149, 0, x_119); -lean_ctor_set(x_149, 1, x_148); -x_150 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__26; -lean_inc_ref_n(x_125, 2); -lean_inc(x_119); -x_151 = l_Lean_Syntax_node2(x_119, x_150, x_125, x_125); -lean_inc_ref(x_125); -lean_inc(x_119); -x_152 = l_Lean_Syntax_node4(x_119, x_147, x_149, x_20, x_151, x_125); -lean_inc(x_119); -x_153 = l_Lean_Syntax_node5(x_119, x_127, x_129, x_132, x_146, x_152, x_125); -x_154 = l_Lean_Syntax_node2(x_119, x_121, x_126, x_153); -if (lean_is_scalar(x_115)) { - x_155 = lean_alloc_ctor(0, 2, 0); +x_156 = lean_ctor_get(x_151, 0); +lean_inc_ref(x_156); +lean_dec(x_151); +x_157 = l_Lean_SourceInfo_fromRef(x_154, x_12); +lean_dec(x_154); +x_158 = l_Lean_Environment_mainModule(x_156); +lean_dec_ref(x_156); +x_159 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__2; +x_160 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__4; +x_161 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__9; +x_162 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__22; +lean_inc(x_157); +x_163 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_163, 0, x_157); +lean_ctor_set(x_163, 1, x_161); +lean_ctor_set(x_163, 2, x_162); +x_164 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__6; +x_165 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__7; +lean_inc(x_157); +x_166 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_166, 0, x_157); +lean_ctor_set(x_166, 1, x_165); +x_167 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__9; +x_168 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__11; +lean_inc_ref(x_163); +lean_inc(x_157); +x_169 = l_Lean_Syntax_node1(x_157, x_168, x_163); +x_170 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__14; +x_171 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__16; +x_172 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__17; +lean_inc(x_155); +lean_inc(x_158); +x_173 = l_Lean_addMacroScope(x_158, x_172, x_155); +x_174 = lean_box(0); +lean_inc(x_157); +x_175 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_175, 0, x_157); +lean_ctor_set(x_175, 1, x_171); +lean_ctor_set(x_175, 2, x_173); +lean_ctor_set(x_175, 3, x_174); +lean_inc_ref(x_163); +lean_inc(x_157); +x_176 = l_Lean_Syntax_node2(x_157, x_170, x_175, x_163); +lean_inc(x_157); +x_177 = l_Lean_Syntax_node2(x_157, x_167, x_169, x_176); +lean_inc(x_157); +x_178 = l_Lean_Syntax_node1(x_157, x_161, x_177); +x_179 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__18; +lean_inc(x_157); +x_180 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_180, 0, x_157); +lean_ctor_set(x_180, 1, x_179); +lean_inc(x_157); +x_181 = l_Lean_Syntax_node3(x_157, x_164, x_166, x_178, x_180); +lean_inc(x_157); +x_182 = l_Lean_Syntax_node1(x_157, x_161, x_181); +lean_inc_ref_n(x_163, 5); +lean_inc(x_157); +x_183 = l_Lean_Syntax_node6(x_157, x_160, x_163, x_182, x_163, x_163, x_163, x_163); +x_184 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__20; +x_185 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__21; +lean_inc(x_157); +x_186 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_186, 0, x_157); +lean_ctor_set(x_186, 1, x_185); +x_187 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__23; +x_188 = lean_mk_syntax_ident(x_19); +lean_inc_ref(x_163); +lean_inc(x_157); +x_189 = l_Lean_Syntax_node2(x_157, x_187, x_188, x_163); +x_190 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__25; +x_191 = l_Array_append___redArg(x_162, x_149); +lean_dec_ref(x_149); +lean_inc(x_157); +x_192 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_192, 0, x_157); +lean_ctor_set(x_192, 1, x_161); +lean_ctor_set(x_192, 2, x_191); +x_193 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__27; +x_194 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__13; +lean_inc(x_157); +x_195 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_195, 0, x_157); +lean_ctor_set(x_195, 1, x_194); +x_196 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__28; +x_197 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__29; +x_198 = l_Lean_addMacroScope(x_158, x_197, x_155); +x_199 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__34; +lean_inc(x_157); +x_200 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_200, 0, x_157); +lean_ctor_set(x_200, 1, x_196); +lean_ctor_set(x_200, 2, x_198); +lean_ctor_set(x_200, 3, x_199); +lean_inc(x_157); +x_201 = l_Lean_Syntax_node2(x_157, x_193, x_195, x_200); +lean_inc(x_157); +x_202 = l_Lean_Syntax_node1(x_157, x_161, x_201); +lean_inc(x_157); +x_203 = l_Lean_Syntax_node2(x_157, x_190, x_192, x_202); +x_204 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__36; +x_205 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__37; +lean_inc(x_157); +x_206 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_206, 0, x_157); +lean_ctor_set(x_206, 1, x_205); +x_207 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__40; +lean_inc_ref_n(x_163, 2); +lean_inc(x_157); +x_208 = l_Lean_Syntax_node2(x_157, x_207, x_163, x_163); +lean_inc_ref(x_163); +lean_inc(x_157); +x_209 = l_Lean_Syntax_node4(x_157, x_204, x_206, x_20, x_208, x_163); +lean_inc(x_157); +x_210 = l_Lean_Syntax_node5(x_157, x_184, x_186, x_189, x_203, x_209, x_163); +x_211 = l_Lean_Syntax_node2(x_157, x_159, x_183, x_210); +if (lean_is_scalar(x_153)) { + x_212 = lean_alloc_ctor(0, 2, 0); } else { - x_155 = x_115; + x_212 = x_153; } -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_114); -return x_155; +lean_ctor_set(x_212, 0, x_211); +lean_ctor_set(x_212, 1, x_152); +return x_212; } } else { -uint8_t x_156; -x_156 = !lean_is_exclusive(x_16); -if (x_156 == 0) +uint8_t x_213; +x_213 = !lean_is_exclusive(x_16); +if (x_213 == 0) { -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; -x_157 = lean_ctor_get(x_16, 0); -x_158 = lean_ctor_get(x_16, 3); -lean_dec(x_158); -x_159 = lean_ctor_get(x_16, 2); -lean_dec(x_159); -x_160 = lean_ctor_get(x_16, 1); -lean_dec(x_160); -x_161 = lean_st_ref_get(x_22, x_23); +lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; uint8_t x_219; +x_214 = lean_ctor_get(x_16, 0); +x_215 = lean_ctor_get(x_16, 3); +lean_dec(x_215); +x_216 = lean_ctor_get(x_16, 2); +lean_dec(x_216); +x_217 = lean_ctor_get(x_16, 1); +lean_dec(x_217); +x_218 = lean_st_ref_get(x_22, x_23); lean_dec(x_22); -x_162 = !lean_is_exclusive(x_161); -if (x_162 == 0) +x_219 = !lean_is_exclusive(x_218); +if (x_219 == 0) { -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; uint8_t x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_163 = lean_ctor_get(x_161, 0); -x_164 = lean_ctor_get(x_21, 5); -lean_inc(x_164); -x_165 = lean_ctor_get(x_21, 10); -lean_inc(x_165); +lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; 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; +x_220 = lean_ctor_get(x_218, 0); +x_221 = lean_ctor_get(x_21, 5); +lean_inc(x_221); +x_222 = lean_ctor_get(x_21, 10); +lean_inc(x_222); lean_dec_ref(x_21); -x_166 = lean_ctor_get(x_163, 0); -lean_inc_ref(x_166); -lean_dec(x_163); -x_167 = 0; -x_168 = l_Lean_SourceInfo_fromRef(x_164, x_167); -lean_dec(x_164); -x_169 = l_Lean_Environment_mainModule(x_166); -lean_dec_ref(x_166); -x_170 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__2; -x_171 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__4; -x_172 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__9; -x_173 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__22; -lean_inc(x_168); -x_174 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_174, 0, x_168); -lean_ctor_set(x_174, 1, x_172); -lean_ctor_set(x_174, 2, x_173); -x_175 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__27; -x_176 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__28; -lean_inc(x_168); -x_177 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_177, 0, x_168); -lean_ctor_set(x_177, 1, x_175); -lean_inc(x_168); -x_178 = l_Lean_Syntax_node1(x_168, x_176, x_177); -lean_inc(x_168); -x_179 = l_Lean_Syntax_node1(x_168, x_172, x_178); -lean_inc_ref_n(x_174, 5); -lean_inc(x_168); -x_180 = l_Lean_Syntax_node6(x_168, x_171, x_174, x_174, x_174, x_174, x_174, x_179); -x_181 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__6; -x_182 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__7; -lean_inc(x_168); -x_183 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_183, 0, x_168); -lean_ctor_set(x_183, 1, x_182); -x_184 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__9; -x_185 = lean_mk_syntax_ident(x_19); -lean_inc_ref(x_174); -lean_inc(x_168); -x_186 = l_Lean_Syntax_node2(x_168, x_184, x_185, x_174); -x_187 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__11; -x_188 = l_Array_append___redArg(x_173, x_157); -lean_dec_ref(x_157); -lean_inc(x_168); -x_189 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_189, 0, x_168); -lean_ctor_set(x_189, 1, x_172); -lean_ctor_set(x_189, 2, x_188); -x_190 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__13; -x_191 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__13; -lean_inc(x_168); -x_192 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_192, 0, x_168); -lean_ctor_set(x_192, 1, x_191); -x_193 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__14; -x_194 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__15; -x_195 = l_Lean_addMacroScope(x_169, x_194, x_165); -x_196 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__20; -lean_inc(x_168); -lean_ctor_set_tag(x_16, 3); -lean_ctor_set(x_16, 3, x_196); -lean_ctor_set(x_16, 2, x_195); -lean_ctor_set(x_16, 1, x_193); -lean_ctor_set(x_16, 0, x_168); -lean_inc(x_168); -x_197 = l_Lean_Syntax_node2(x_168, x_190, x_192, x_16); -lean_inc(x_168); -x_198 = l_Lean_Syntax_node1(x_168, x_172, x_197); -lean_inc(x_168); -x_199 = l_Lean_Syntax_node2(x_168, x_187, x_189, x_198); -x_200 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__22; -x_201 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__23; -lean_inc(x_168); -x_202 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_202, 0, x_168); -lean_ctor_set(x_202, 1, x_201); -x_203 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__26; -lean_inc_ref_n(x_174, 2); -lean_inc(x_168); -x_204 = l_Lean_Syntax_node2(x_168, x_203, x_174, x_174); -lean_inc_ref(x_174); -lean_inc(x_168); -x_205 = l_Lean_Syntax_node4(x_168, x_200, x_202, x_20, x_204, x_174); -lean_inc(x_168); -x_206 = l_Lean_Syntax_node5(x_168, x_181, x_183, x_186, x_199, x_205, x_174); -x_207 = l_Lean_Syntax_node2(x_168, x_170, x_180, x_206); -lean_ctor_set(x_161, 0, x_207); -return x_161; -} -else -{ -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; -x_208 = lean_ctor_get(x_161, 0); -x_209 = lean_ctor_get(x_161, 1); -lean_inc(x_209); -lean_inc(x_208); -lean_dec(x_161); -x_210 = lean_ctor_get(x_21, 5); -lean_inc(x_210); -x_211 = lean_ctor_get(x_21, 10); -lean_inc(x_211); -lean_dec_ref(x_21); -x_212 = lean_ctor_get(x_208, 0); -lean_inc_ref(x_212); -lean_dec(x_208); -x_213 = 0; -x_214 = l_Lean_SourceInfo_fromRef(x_210, x_213); -lean_dec(x_210); -x_215 = l_Lean_Environment_mainModule(x_212); -lean_dec_ref(x_212); -x_216 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__2; -x_217 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__4; -x_218 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__9; -x_219 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__22; -lean_inc(x_214); -x_220 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_220, 0, x_214); -lean_ctor_set(x_220, 1, x_218); -lean_ctor_set(x_220, 2, x_219); -x_221 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__27; -x_222 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__28; -lean_inc(x_214); -x_223 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_223, 0, x_214); -lean_ctor_set(x_223, 1, x_221); -lean_inc(x_214); -x_224 = l_Lean_Syntax_node1(x_214, x_222, x_223); -lean_inc(x_214); -x_225 = l_Lean_Syntax_node1(x_214, x_218, x_224); -lean_inc_ref_n(x_220, 5); -lean_inc(x_214); -x_226 = l_Lean_Syntax_node6(x_214, x_217, x_220, x_220, x_220, x_220, x_220, x_225); -x_227 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__6; -x_228 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__7; -lean_inc(x_214); -x_229 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_229, 0, x_214); -lean_ctor_set(x_229, 1, x_228); -x_230 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__9; -x_231 = lean_mk_syntax_ident(x_19); -lean_inc_ref(x_220); -lean_inc(x_214); -x_232 = l_Lean_Syntax_node2(x_214, x_230, x_231, x_220); -x_233 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__11; -x_234 = l_Array_append___redArg(x_219, x_157); -lean_dec_ref(x_157); -lean_inc(x_214); -x_235 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_235, 0, x_214); -lean_ctor_set(x_235, 1, x_218); -lean_ctor_set(x_235, 2, x_234); -x_236 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__13; -x_237 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__13; -lean_inc(x_214); -x_238 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_238, 0, x_214); -lean_ctor_set(x_238, 1, x_237); -x_239 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__14; -x_240 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__15; -x_241 = l_Lean_addMacroScope(x_215, x_240, x_211); -x_242 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__20; -lean_inc(x_214); +x_223 = lean_ctor_get(x_220, 0); +lean_inc_ref(x_223); +lean_dec(x_220); +x_224 = 0; +x_225 = l_Lean_SourceInfo_fromRef(x_221, x_224); +lean_dec(x_221); +x_226 = l_Lean_Environment_mainModule(x_223); +lean_dec_ref(x_223); +x_227 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__2; +x_228 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__4; +x_229 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__9; +x_230 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__22; +lean_inc(x_225); +x_231 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_231, 0, x_225); +lean_ctor_set(x_231, 1, x_229); +lean_ctor_set(x_231, 2, x_230); +x_232 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__6; +x_233 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__7; +lean_inc(x_225); +x_234 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_234, 0, x_225); +lean_ctor_set(x_234, 1, x_233); +x_235 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__9; +x_236 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__11; +lean_inc_ref(x_231); +lean_inc(x_225); +x_237 = l_Lean_Syntax_node1(x_225, x_236, x_231); +x_238 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__14; +x_239 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__16; +x_240 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__17; +lean_inc(x_222); +lean_inc(x_226); +x_241 = l_Lean_addMacroScope(x_226, x_240, x_222); +x_242 = lean_box(0); +lean_inc(x_225); lean_ctor_set_tag(x_16, 3); lean_ctor_set(x_16, 3, x_242); lean_ctor_set(x_16, 2, x_241); lean_ctor_set(x_16, 1, x_239); -lean_ctor_set(x_16, 0, x_214); -lean_inc(x_214); -x_243 = l_Lean_Syntax_node2(x_214, x_236, x_238, x_16); -lean_inc(x_214); -x_244 = l_Lean_Syntax_node1(x_214, x_218, x_243); -lean_inc(x_214); -x_245 = l_Lean_Syntax_node2(x_214, x_233, x_235, x_244); -x_246 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__22; -x_247 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__23; -lean_inc(x_214); -x_248 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_248, 0, x_214); -lean_ctor_set(x_248, 1, x_247); -x_249 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__26; -lean_inc_ref_n(x_220, 2); -lean_inc(x_214); -x_250 = l_Lean_Syntax_node2(x_214, x_249, x_220, x_220); -lean_inc_ref(x_220); -lean_inc(x_214); -x_251 = l_Lean_Syntax_node4(x_214, x_246, x_248, x_20, x_250, x_220); -lean_inc(x_214); -x_252 = l_Lean_Syntax_node5(x_214, x_227, x_229, x_232, x_245, x_251, x_220); -x_253 = l_Lean_Syntax_node2(x_214, x_216, x_226, x_252); -x_254 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_254, 0, x_253); -lean_ctor_set(x_254, 1, x_209); -return x_254; -} +lean_ctor_set(x_16, 0, x_225); +lean_inc_ref(x_231); +lean_inc(x_225); +x_243 = l_Lean_Syntax_node2(x_225, x_238, x_16, x_231); +lean_inc(x_225); +x_244 = l_Lean_Syntax_node2(x_225, x_235, x_237, x_243); +lean_inc(x_225); +x_245 = l_Lean_Syntax_node1(x_225, x_229, x_244); +x_246 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__18; +lean_inc(x_225); +x_247 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_247, 0, x_225); +lean_ctor_set(x_247, 1, x_246); +lean_inc(x_225); +x_248 = l_Lean_Syntax_node3(x_225, x_232, x_234, x_245, x_247); +lean_inc(x_225); +x_249 = l_Lean_Syntax_node1(x_225, x_229, x_248); +x_250 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__41; +x_251 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__42; +lean_inc(x_225); +x_252 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_252, 0, x_225); +lean_ctor_set(x_252, 1, x_250); +lean_inc(x_225); +x_253 = l_Lean_Syntax_node1(x_225, x_251, x_252); +lean_inc(x_225); +x_254 = l_Lean_Syntax_node1(x_225, x_229, x_253); +lean_inc_ref_n(x_231, 4); +lean_inc(x_225); +x_255 = l_Lean_Syntax_node6(x_225, x_228, x_231, x_249, x_231, x_231, x_231, x_254); +x_256 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__20; +x_257 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__21; +lean_inc(x_225); +x_258 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_258, 0, x_225); +lean_ctor_set(x_258, 1, x_257); +x_259 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__23; +x_260 = lean_mk_syntax_ident(x_19); +lean_inc_ref(x_231); +lean_inc(x_225); +x_261 = l_Lean_Syntax_node2(x_225, x_259, x_260, x_231); +x_262 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__25; +x_263 = l_Array_append___redArg(x_230, x_214); +lean_dec_ref(x_214); +lean_inc(x_225); +x_264 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_264, 0, x_225); +lean_ctor_set(x_264, 1, x_229); +lean_ctor_set(x_264, 2, x_263); +x_265 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__27; +x_266 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__13; +lean_inc(x_225); +x_267 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_267, 0, x_225); +lean_ctor_set(x_267, 1, x_266); +x_268 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__28; +x_269 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__29; +x_270 = l_Lean_addMacroScope(x_226, x_269, x_222); +x_271 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__34; +lean_inc(x_225); +x_272 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_272, 0, x_225); +lean_ctor_set(x_272, 1, x_268); +lean_ctor_set(x_272, 2, x_270); +lean_ctor_set(x_272, 3, x_271); +lean_inc(x_225); +x_273 = l_Lean_Syntax_node2(x_225, x_265, x_267, x_272); +lean_inc(x_225); +x_274 = l_Lean_Syntax_node1(x_225, x_229, x_273); +lean_inc(x_225); +x_275 = l_Lean_Syntax_node2(x_225, x_262, x_264, x_274); +x_276 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__36; +x_277 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__37; +lean_inc(x_225); +x_278 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_278, 0, x_225); +lean_ctor_set(x_278, 1, x_277); +x_279 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__40; +lean_inc_ref_n(x_231, 2); +lean_inc(x_225); +x_280 = l_Lean_Syntax_node2(x_225, x_279, x_231, x_231); +lean_inc_ref(x_231); +lean_inc(x_225); +x_281 = l_Lean_Syntax_node4(x_225, x_276, x_278, x_20, x_280, x_231); +lean_inc(x_225); +x_282 = l_Lean_Syntax_node5(x_225, x_256, x_258, x_261, x_275, x_281, x_231); +x_283 = l_Lean_Syntax_node2(x_225, x_227, x_255, x_282); +lean_ctor_set(x_218, 0, x_283); +return x_218; } else { -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; uint8_t 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; -x_255 = lean_ctor_get(x_16, 0); -lean_inc(x_255); -lean_dec(x_16); -x_256 = lean_st_ref_get(x_22, x_23); -lean_dec(x_22); -x_257 = lean_ctor_get(x_256, 0); -lean_inc(x_257); -x_258 = lean_ctor_get(x_256, 1); -lean_inc(x_258); -if (lean_is_exclusive(x_256)) { - lean_ctor_release(x_256, 0); - lean_ctor_release(x_256, 1); - x_259 = x_256; -} else { - lean_dec_ref(x_256); - x_259 = lean_box(0); -} -x_260 = lean_ctor_get(x_21, 5); -lean_inc(x_260); -x_261 = lean_ctor_get(x_21, 10); -lean_inc(x_261); +lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; uint8_t x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; 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_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_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; +x_284 = lean_ctor_get(x_218, 0); +x_285 = lean_ctor_get(x_218, 1); +lean_inc(x_285); +lean_inc(x_284); +lean_dec(x_218); +x_286 = lean_ctor_get(x_21, 5); +lean_inc(x_286); +x_287 = lean_ctor_get(x_21, 10); +lean_inc(x_287); lean_dec_ref(x_21); -x_262 = lean_ctor_get(x_257, 0); -lean_inc_ref(x_262); -lean_dec(x_257); -x_263 = 0; -x_264 = l_Lean_SourceInfo_fromRef(x_260, x_263); -lean_dec(x_260); -x_265 = l_Lean_Environment_mainModule(x_262); -lean_dec_ref(x_262); -x_266 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__2; -x_267 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__4; -x_268 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__9; -x_269 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__22; -lean_inc(x_264); -x_270 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_270, 0, x_264); -lean_ctor_set(x_270, 1, x_268); -lean_ctor_set(x_270, 2, x_269); -x_271 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__27; -x_272 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__28; -lean_inc(x_264); -x_273 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_273, 0, x_264); -lean_ctor_set(x_273, 1, x_271); -lean_inc(x_264); -x_274 = l_Lean_Syntax_node1(x_264, x_272, x_273); -lean_inc(x_264); -x_275 = l_Lean_Syntax_node1(x_264, x_268, x_274); -lean_inc_ref_n(x_270, 5); -lean_inc(x_264); -x_276 = l_Lean_Syntax_node6(x_264, x_267, x_270, x_270, x_270, x_270, x_270, x_275); -x_277 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__6; -x_278 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__7; -lean_inc(x_264); -x_279 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_279, 0, x_264); -lean_ctor_set(x_279, 1, x_278); -x_280 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__9; -x_281 = lean_mk_syntax_ident(x_19); -lean_inc_ref(x_270); -lean_inc(x_264); -x_282 = l_Lean_Syntax_node2(x_264, x_280, x_281, x_270); -x_283 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__11; -x_284 = l_Array_append___redArg(x_269, x_255); -lean_dec_ref(x_255); -lean_inc(x_264); -x_285 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_285, 0, x_264); -lean_ctor_set(x_285, 1, x_268); -lean_ctor_set(x_285, 2, x_284); -x_286 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__13; -x_287 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__13; -lean_inc(x_264); -x_288 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_288, 0, x_264); -lean_ctor_set(x_288, 1, x_287); -x_289 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__14; -x_290 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__15; -x_291 = l_Lean_addMacroScope(x_265, x_290, x_261); -x_292 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__20; -lean_inc(x_264); -x_293 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_293, 0, x_264); -lean_ctor_set(x_293, 1, x_289); -lean_ctor_set(x_293, 2, x_291); -lean_ctor_set(x_293, 3, x_292); -lean_inc(x_264); -x_294 = l_Lean_Syntax_node2(x_264, x_286, x_288, x_293); -lean_inc(x_264); -x_295 = l_Lean_Syntax_node1(x_264, x_268, x_294); -lean_inc(x_264); -x_296 = l_Lean_Syntax_node2(x_264, x_283, x_285, x_295); -x_297 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__22; -x_298 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__23; -lean_inc(x_264); +x_288 = lean_ctor_get(x_284, 0); +lean_inc_ref(x_288); +lean_dec(x_284); +x_289 = 0; +x_290 = l_Lean_SourceInfo_fromRef(x_286, x_289); +lean_dec(x_286); +x_291 = l_Lean_Environment_mainModule(x_288); +lean_dec_ref(x_288); +x_292 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__2; +x_293 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__4; +x_294 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__9; +x_295 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__22; +lean_inc(x_290); +x_296 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_296, 0, x_290); +lean_ctor_set(x_296, 1, x_294); +lean_ctor_set(x_296, 2, x_295); +x_297 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__6; +x_298 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__7; +lean_inc(x_290); x_299 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_299, 0, x_264); +lean_ctor_set(x_299, 0, x_290); lean_ctor_set(x_299, 1, x_298); -x_300 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__26; -lean_inc_ref_n(x_270, 2); -lean_inc(x_264); -x_301 = l_Lean_Syntax_node2(x_264, x_300, x_270, x_270); -lean_inc_ref(x_270); -lean_inc(x_264); -x_302 = l_Lean_Syntax_node4(x_264, x_297, x_299, x_20, x_301, x_270); -lean_inc(x_264); -x_303 = l_Lean_Syntax_node5(x_264, x_277, x_279, x_282, x_296, x_302, x_270); -x_304 = l_Lean_Syntax_node2(x_264, x_266, x_276, x_303); -if (lean_is_scalar(x_259)) { - x_305 = lean_alloc_ctor(0, 2, 0); -} else { - x_305 = x_259; +x_300 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__9; +x_301 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__11; +lean_inc_ref(x_296); +lean_inc(x_290); +x_302 = l_Lean_Syntax_node1(x_290, x_301, x_296); +x_303 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__14; +x_304 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__16; +x_305 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__17; +lean_inc(x_287); +lean_inc(x_291); +x_306 = l_Lean_addMacroScope(x_291, x_305, x_287); +x_307 = lean_box(0); +lean_inc(x_290); +lean_ctor_set_tag(x_16, 3); +lean_ctor_set(x_16, 3, x_307); +lean_ctor_set(x_16, 2, x_306); +lean_ctor_set(x_16, 1, x_304); +lean_ctor_set(x_16, 0, x_290); +lean_inc_ref(x_296); +lean_inc(x_290); +x_308 = l_Lean_Syntax_node2(x_290, x_303, x_16, x_296); +lean_inc(x_290); +x_309 = l_Lean_Syntax_node2(x_290, x_300, x_302, x_308); +lean_inc(x_290); +x_310 = l_Lean_Syntax_node1(x_290, x_294, x_309); +x_311 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__18; +lean_inc(x_290); +x_312 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_312, 0, x_290); +lean_ctor_set(x_312, 1, x_311); +lean_inc(x_290); +x_313 = l_Lean_Syntax_node3(x_290, x_297, x_299, x_310, x_312); +lean_inc(x_290); +x_314 = l_Lean_Syntax_node1(x_290, x_294, x_313); +x_315 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__41; +x_316 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__42; +lean_inc(x_290); +x_317 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_317, 0, x_290); +lean_ctor_set(x_317, 1, x_315); +lean_inc(x_290); +x_318 = l_Lean_Syntax_node1(x_290, x_316, x_317); +lean_inc(x_290); +x_319 = l_Lean_Syntax_node1(x_290, x_294, x_318); +lean_inc_ref_n(x_296, 4); +lean_inc(x_290); +x_320 = l_Lean_Syntax_node6(x_290, x_293, x_296, x_314, x_296, x_296, x_296, x_319); +x_321 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__20; +x_322 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__21; +lean_inc(x_290); +x_323 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_323, 0, x_290); +lean_ctor_set(x_323, 1, x_322); +x_324 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__23; +x_325 = lean_mk_syntax_ident(x_19); +lean_inc_ref(x_296); +lean_inc(x_290); +x_326 = l_Lean_Syntax_node2(x_290, x_324, x_325, x_296); +x_327 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__25; +x_328 = l_Array_append___redArg(x_295, x_214); +lean_dec_ref(x_214); +lean_inc(x_290); +x_329 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_329, 0, x_290); +lean_ctor_set(x_329, 1, x_294); +lean_ctor_set(x_329, 2, x_328); +x_330 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__27; +x_331 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__13; +lean_inc(x_290); +x_332 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_332, 0, x_290); +lean_ctor_set(x_332, 1, x_331); +x_333 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__28; +x_334 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__29; +x_335 = l_Lean_addMacroScope(x_291, x_334, x_287); +x_336 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__34; +lean_inc(x_290); +x_337 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_337, 0, x_290); +lean_ctor_set(x_337, 1, x_333); +lean_ctor_set(x_337, 2, x_335); +lean_ctor_set(x_337, 3, x_336); +lean_inc(x_290); +x_338 = l_Lean_Syntax_node2(x_290, x_330, x_332, x_337); +lean_inc(x_290); +x_339 = l_Lean_Syntax_node1(x_290, x_294, x_338); +lean_inc(x_290); +x_340 = l_Lean_Syntax_node2(x_290, x_327, x_329, x_339); +x_341 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__36; +x_342 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__37; +lean_inc(x_290); +x_343 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_343, 0, x_290); +lean_ctor_set(x_343, 1, x_342); +x_344 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__40; +lean_inc_ref_n(x_296, 2); +lean_inc(x_290); +x_345 = l_Lean_Syntax_node2(x_290, x_344, x_296, x_296); +lean_inc_ref(x_296); +lean_inc(x_290); +x_346 = l_Lean_Syntax_node4(x_290, x_341, x_343, x_20, x_345, x_296); +lean_inc(x_290); +x_347 = l_Lean_Syntax_node5(x_290, x_321, x_323, x_326, x_340, x_346, x_296); +x_348 = l_Lean_Syntax_node2(x_290, x_292, x_320, x_347); +x_349 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_349, 0, x_348); +lean_ctor_set(x_349, 1, x_285); +return x_349; } -lean_ctor_set(x_305, 0, x_304); -lean_ctor_set(x_305, 1, x_258); -return x_305; +} +else +{ +lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; uint8_t x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; +x_350 = lean_ctor_get(x_16, 0); +lean_inc(x_350); +lean_dec(x_16); +x_351 = lean_st_ref_get(x_22, x_23); +lean_dec(x_22); +x_352 = lean_ctor_get(x_351, 0); +lean_inc(x_352); +x_353 = lean_ctor_get(x_351, 1); +lean_inc(x_353); +if (lean_is_exclusive(x_351)) { + lean_ctor_release(x_351, 0); + lean_ctor_release(x_351, 1); + x_354 = x_351; +} else { + lean_dec_ref(x_351); + x_354 = lean_box(0); +} +x_355 = lean_ctor_get(x_21, 5); +lean_inc(x_355); +x_356 = lean_ctor_get(x_21, 10); +lean_inc(x_356); +lean_dec_ref(x_21); +x_357 = lean_ctor_get(x_352, 0); +lean_inc_ref(x_357); +lean_dec(x_352); +x_358 = 0; +x_359 = l_Lean_SourceInfo_fromRef(x_355, x_358); +lean_dec(x_355); +x_360 = l_Lean_Environment_mainModule(x_357); +lean_dec_ref(x_357); +x_361 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__2; +x_362 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__4; +x_363 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__9; +x_364 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__22; +lean_inc(x_359); +x_365 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_365, 0, x_359); +lean_ctor_set(x_365, 1, x_363); +lean_ctor_set(x_365, 2, x_364); +x_366 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__6; +x_367 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__7; +lean_inc(x_359); +x_368 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_368, 0, x_359); +lean_ctor_set(x_368, 1, x_367); +x_369 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__9; +x_370 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__11; +lean_inc_ref(x_365); +lean_inc(x_359); +x_371 = l_Lean_Syntax_node1(x_359, x_370, x_365); +x_372 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__14; +x_373 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__16; +x_374 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__17; +lean_inc(x_356); +lean_inc(x_360); +x_375 = l_Lean_addMacroScope(x_360, x_374, x_356); +x_376 = lean_box(0); +lean_inc(x_359); +x_377 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_377, 0, x_359); +lean_ctor_set(x_377, 1, x_373); +lean_ctor_set(x_377, 2, x_375); +lean_ctor_set(x_377, 3, x_376); +lean_inc_ref(x_365); +lean_inc(x_359); +x_378 = l_Lean_Syntax_node2(x_359, x_372, x_377, x_365); +lean_inc(x_359); +x_379 = l_Lean_Syntax_node2(x_359, x_369, x_371, x_378); +lean_inc(x_359); +x_380 = l_Lean_Syntax_node1(x_359, x_363, x_379); +x_381 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__18; +lean_inc(x_359); +x_382 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_382, 0, x_359); +lean_ctor_set(x_382, 1, x_381); +lean_inc(x_359); +x_383 = l_Lean_Syntax_node3(x_359, x_366, x_368, x_380, x_382); +lean_inc(x_359); +x_384 = l_Lean_Syntax_node1(x_359, x_363, x_383); +x_385 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__41; +x_386 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__42; +lean_inc(x_359); +x_387 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_387, 0, x_359); +lean_ctor_set(x_387, 1, x_385); +lean_inc(x_359); +x_388 = l_Lean_Syntax_node1(x_359, x_386, x_387); +lean_inc(x_359); +x_389 = l_Lean_Syntax_node1(x_359, x_363, x_388); +lean_inc_ref_n(x_365, 4); +lean_inc(x_359); +x_390 = l_Lean_Syntax_node6(x_359, x_362, x_365, x_384, x_365, x_365, x_365, x_389); +x_391 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__20; +x_392 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__21; +lean_inc(x_359); +x_393 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_393, 0, x_359); +lean_ctor_set(x_393, 1, x_392); +x_394 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__23; +x_395 = lean_mk_syntax_ident(x_19); +lean_inc_ref(x_365); +lean_inc(x_359); +x_396 = l_Lean_Syntax_node2(x_359, x_394, x_395, x_365); +x_397 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__25; +x_398 = l_Array_append___redArg(x_364, x_350); +lean_dec_ref(x_350); +lean_inc(x_359); +x_399 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_399, 0, x_359); +lean_ctor_set(x_399, 1, x_363); +lean_ctor_set(x_399, 2, x_398); +x_400 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__27; +x_401 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__13; +lean_inc(x_359); +x_402 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_402, 0, x_359); +lean_ctor_set(x_402, 1, x_401); +x_403 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__28; +x_404 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__29; +x_405 = l_Lean_addMacroScope(x_360, x_404, x_356); +x_406 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__34; +lean_inc(x_359); +x_407 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_407, 0, x_359); +lean_ctor_set(x_407, 1, x_403); +lean_ctor_set(x_407, 2, x_405); +lean_ctor_set(x_407, 3, x_406); +lean_inc(x_359); +x_408 = l_Lean_Syntax_node2(x_359, x_400, x_402, x_407); +lean_inc(x_359); +x_409 = l_Lean_Syntax_node1(x_359, x_363, x_408); +lean_inc(x_359); +x_410 = l_Lean_Syntax_node2(x_359, x_397, x_399, x_409); +x_411 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__36; +x_412 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__37; +lean_inc(x_359); +x_413 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_413, 0, x_359); +lean_ctor_set(x_413, 1, x_412); +x_414 = l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__40; +lean_inc_ref_n(x_365, 2); +lean_inc(x_359); +x_415 = l_Lean_Syntax_node2(x_359, x_414, x_365, x_365); +lean_inc_ref(x_365); +lean_inc(x_359); +x_416 = l_Lean_Syntax_node4(x_359, x_411, x_413, x_20, x_415, x_365); +lean_inc(x_359); +x_417 = l_Lean_Syntax_node5(x_359, x_391, x_393, x_396, x_410, x_416, x_365); +x_418 = l_Lean_Syntax_node2(x_359, x_361, x_390, x_417); +if (lean_is_scalar(x_354)) { + x_419 = lean_alloc_ctor(0, 2, 0); +} else { + x_419 = x_354; +} +lean_ctor_set(x_419, 0, x_418); +lean_ctor_set(x_419, 1, x_353); +return x_419; } } } } else { -uint8_t x_324; +uint8_t x_438; lean_dec_ref(x_14); lean_dec(x_8); lean_dec_ref(x_7); @@ -8255,23 +8639,23 @@ lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -x_324 = !lean_is_exclusive(x_15); -if (x_324 == 0) +x_438 = !lean_is_exclusive(x_15); +if (x_438 == 0) { return x_15; } else { -lean_object* x_325; lean_object* x_326; lean_object* x_327; -x_325 = lean_ctor_get(x_15, 0); -x_326 = lean_ctor_get(x_15, 1); -lean_inc(x_326); -lean_inc(x_325); +lean_object* x_439; lean_object* x_440; lean_object* x_441; +x_439 = lean_ctor_get(x_15, 0); +x_440 = lean_ctor_get(x_15, 1); +lean_inc(x_440); +lean_inc(x_439); lean_dec(x_15); -x_327 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_327, 0, x_325); -lean_ctor_set(x_327, 1, x_326); -return x_327; +x_441 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_441, 0, x_439); +lean_ctor_set(x_441, 1, x_440); +return x_441; } } } @@ -9443,7 +9827,7 @@ lean_dec_ref(x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__0____x40_Lean_Elab_Deriving_Repr___hyg_3589_() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__0____x40_Lean_Elab_Deriving_Repr___hyg_3667_() { _start: { lean_object* x_1; @@ -9451,7 +9835,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_Repr_mkReprInstanceHandler return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__1____x40_Lean_Elab_Deriving_Repr___hyg_3589_() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__1____x40_Lean_Elab_Deriving_Repr___hyg_3667_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -9461,37 +9845,37 @@ x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__2____x40_Lean_Elab_Deriving_Repr___hyg_3589_() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__2____x40_Lean_Elab_Deriving_Repr___hyg_3667_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Deriving_Repr_0__Lean_Elab_Deriving_Repr_mkReprInstanceCmd___closed__1; -x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__1____x40_Lean_Elab_Deriving_Repr___hyg_3589_; +x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__1____x40_Lean_Elab_Deriving_Repr___hyg_3667_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__3____x40_Lean_Elab_Deriving_Repr___hyg_3589_() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__3____x40_Lean_Elab_Deriving_Repr___hyg_3667_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Deriving_Repr_0__Lean_Elab_Deriving_Repr_mkReprInstanceCmd___closed__2; -x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__2____x40_Lean_Elab_Deriving_Repr___hyg_3589_; +x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__2____x40_Lean_Elab_Deriving_Repr___hyg_3667_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__4____x40_Lean_Elab_Deriving_Repr___hyg_3589_() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__4____x40_Lean_Elab_Deriving_Repr___hyg_3667_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__0; -x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__3____x40_Lean_Elab_Deriving_Repr___hyg_3589_; +x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__3____x40_Lean_Elab_Deriving_Repr___hyg_3667_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__5____x40_Lean_Elab_Deriving_Repr___hyg_3589_() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__5____x40_Lean_Elab_Deriving_Repr___hyg_3667_() { _start: { lean_object* x_1; @@ -9499,17 +9883,17 @@ x_1 = lean_mk_string_unchecked("initFn", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__6____x40_Lean_Elab_Deriving_Repr___hyg_3589_() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__6____x40_Lean_Elab_Deriving_Repr___hyg_3667_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_Repr_initFn___closed__5____x40_Lean_Elab_Deriving_Repr___hyg_3589_; -x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__4____x40_Lean_Elab_Deriving_Repr___hyg_3589_; +x_1 = l_Lean_Elab_Deriving_Repr_initFn___closed__5____x40_Lean_Elab_Deriving_Repr___hyg_3667_; +x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__4____x40_Lean_Elab_Deriving_Repr___hyg_3667_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__7____x40_Lean_Elab_Deriving_Repr___hyg_3589_() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__7____x40_Lean_Elab_Deriving_Repr___hyg_3667_() { _start: { lean_object* x_1; @@ -9517,57 +9901,57 @@ x_1 = lean_mk_string_unchecked("_@", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__8____x40_Lean_Elab_Deriving_Repr___hyg_3589_() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__8____x40_Lean_Elab_Deriving_Repr___hyg_3667_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_Repr_initFn___closed__7____x40_Lean_Elab_Deriving_Repr___hyg_3589_; -x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__6____x40_Lean_Elab_Deriving_Repr___hyg_3589_; +x_1 = l_Lean_Elab_Deriving_Repr_initFn___closed__7____x40_Lean_Elab_Deriving_Repr___hyg_3667_; +x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__6____x40_Lean_Elab_Deriving_Repr___hyg_3667_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__9____x40_Lean_Elab_Deriving_Repr___hyg_3589_() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__9____x40_Lean_Elab_Deriving_Repr___hyg_3667_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__2; -x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__8____x40_Lean_Elab_Deriving_Repr___hyg_3589_; +x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__8____x40_Lean_Elab_Deriving_Repr___hyg_3667_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__10____x40_Lean_Elab_Deriving_Repr___hyg_3589_() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__10____x40_Lean_Elab_Deriving_Repr___hyg_3667_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Deriving_Repr_0__Lean_Elab_Deriving_Repr_mkReprInstanceCmd___closed__1; -x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__9____x40_Lean_Elab_Deriving_Repr___hyg_3589_; +x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__9____x40_Lean_Elab_Deriving_Repr___hyg_3667_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__11____x40_Lean_Elab_Deriving_Repr___hyg_3589_() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__11____x40_Lean_Elab_Deriving_Repr___hyg_3667_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Deriving_Repr_0__Lean_Elab_Deriving_Repr_mkReprInstanceCmd___closed__2; -x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__10____x40_Lean_Elab_Deriving_Repr___hyg_3589_; +x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__10____x40_Lean_Elab_Deriving_Repr___hyg_3667_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__12____x40_Lean_Elab_Deriving_Repr___hyg_3589_() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__12____x40_Lean_Elab_Deriving_Repr___hyg_3667_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__0; -x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__11____x40_Lean_Elab_Deriving_Repr___hyg_3589_; +x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__11____x40_Lean_Elab_Deriving_Repr___hyg_3667_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__13____x40_Lean_Elab_Deriving_Repr___hyg_3589_() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__13____x40_Lean_Elab_Deriving_Repr___hyg_3667_() { _start: { lean_object* x_1; @@ -9575,32 +9959,32 @@ x_1 = lean_mk_string_unchecked("_hyg", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__14____x40_Lean_Elab_Deriving_Repr___hyg_3589_() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__14____x40_Lean_Elab_Deriving_Repr___hyg_3667_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_Repr_initFn___closed__13____x40_Lean_Elab_Deriving_Repr___hyg_3589_; -x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__12____x40_Lean_Elab_Deriving_Repr___hyg_3589_; +x_1 = l_Lean_Elab_Deriving_Repr_initFn___closed__13____x40_Lean_Elab_Deriving_Repr___hyg_3667_; +x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__12____x40_Lean_Elab_Deriving_Repr___hyg_3667_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__15____x40_Lean_Elab_Deriving_Repr___hyg_3589_() { +static lean_object* _init_l_Lean_Elab_Deriving_Repr_initFn___closed__15____x40_Lean_Elab_Deriving_Repr___hyg_3667_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(3589u); -x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__14____x40_Lean_Elab_Deriving_Repr___hyg_3589_; +x_1 = lean_unsigned_to_nat(3667u); +x_2 = l_Lean_Elab_Deriving_Repr_initFn___closed__14____x40_Lean_Elab_Deriving_Repr___hyg_3667_; x_3 = l_Lean_Name_num___override(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_initFn____x40_Lean_Elab_Deriving_Repr___hyg_3589_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_initFn____x40_Lean_Elab_Deriving_Repr___hyg_3667_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__1; -x_3 = l_Lean_Elab_Deriving_Repr_initFn___closed__0____x40_Lean_Elab_Deriving_Repr___hyg_3589_; +x_3 = l_Lean_Elab_Deriving_Repr_initFn___closed__0____x40_Lean_Elab_Deriving_Repr___hyg_3667_; x_4 = l_Lean_Elab_registerDerivingHandler(x_2, x_3, x_1); if (lean_obj_tag(x_4) == 0) { @@ -9610,7 +9994,7 @@ lean_inc(x_5); lean_dec_ref(x_4); x_6 = l___private_Lean_Elab_Deriving_Repr_0__Lean_Elab_Deriving_Repr_mkReprInstanceCmd___closed__3; x_7 = 0; -x_8 = l_Lean_Elab_Deriving_Repr_initFn___closed__15____x40_Lean_Elab_Deriving_Repr___hyg_3589_; +x_8 = l_Lean_Elab_Deriving_Repr_initFn___closed__15____x40_Lean_Elab_Deriving_Repr___hyg_3667_; x_9 = l_Lean_registerTraceClass(x_6, x_7, x_8, x_5); return x_9; } @@ -10007,6 +10391,34 @@ l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__27 = _init_l_Lean_Elab_Derivin lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__27); l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__28 = _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__28(); lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__28); +l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__29 = _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__29(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__29); +l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__30 = _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__30(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__30); +l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__31 = _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__31(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__31); +l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__32 = _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__32(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__32); +l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__33 = _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__33(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__33); +l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__34 = _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__34(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__34); +l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__35 = _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__35(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__35); +l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__36 = _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__36(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__36); +l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__37 = _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__37(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__37); +l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__38 = _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__38(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__38); +l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__39 = _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__39(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__39); +l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__40 = _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__40(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__40); +l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__41 = _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__41(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__41); +l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__42 = _init_l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__42(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkAuxFunction___closed__42); l_Lean_Elab_Deriving_Repr_mkMutualBlock___closed__0 = _init_l_Lean_Elab_Deriving_Repr_mkMutualBlock___closed__0(); lean_mark_persistent(l_Lean_Elab_Deriving_Repr_mkMutualBlock___closed__0); l_Lean_Elab_Deriving_Repr_mkMutualBlock___closed__1 = _init_l_Lean_Elab_Deriving_Repr_mkMutualBlock___closed__1(); @@ -10029,39 +10441,39 @@ l___private_Lean_Elab_Deriving_Repr_0__Lean_Elab_Deriving_Repr_mkReprInstanceCmd lean_mark_persistent(l___private_Lean_Elab_Deriving_Repr_0__Lean_Elab_Deriving_Repr_mkReprInstanceCmd___closed__6); l___private_Lean_Elab_Deriving_Repr_0__Lean_Elab_Deriving_Repr_mkReprInstanceCmd___closed__7 = _init_l___private_Lean_Elab_Deriving_Repr_0__Lean_Elab_Deriving_Repr_mkReprInstanceCmd___closed__7(); lean_mark_persistent(l___private_Lean_Elab_Deriving_Repr_0__Lean_Elab_Deriving_Repr_mkReprInstanceCmd___closed__7); -l_Lean_Elab_Deriving_Repr_initFn___closed__0____x40_Lean_Elab_Deriving_Repr___hyg_3589_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__0____x40_Lean_Elab_Deriving_Repr___hyg_3589_(); -lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__0____x40_Lean_Elab_Deriving_Repr___hyg_3589_); -l_Lean_Elab_Deriving_Repr_initFn___closed__1____x40_Lean_Elab_Deriving_Repr___hyg_3589_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__1____x40_Lean_Elab_Deriving_Repr___hyg_3589_(); -lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__1____x40_Lean_Elab_Deriving_Repr___hyg_3589_); -l_Lean_Elab_Deriving_Repr_initFn___closed__2____x40_Lean_Elab_Deriving_Repr___hyg_3589_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__2____x40_Lean_Elab_Deriving_Repr___hyg_3589_(); -lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__2____x40_Lean_Elab_Deriving_Repr___hyg_3589_); -l_Lean_Elab_Deriving_Repr_initFn___closed__3____x40_Lean_Elab_Deriving_Repr___hyg_3589_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__3____x40_Lean_Elab_Deriving_Repr___hyg_3589_(); -lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__3____x40_Lean_Elab_Deriving_Repr___hyg_3589_); -l_Lean_Elab_Deriving_Repr_initFn___closed__4____x40_Lean_Elab_Deriving_Repr___hyg_3589_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__4____x40_Lean_Elab_Deriving_Repr___hyg_3589_(); -lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__4____x40_Lean_Elab_Deriving_Repr___hyg_3589_); -l_Lean_Elab_Deriving_Repr_initFn___closed__5____x40_Lean_Elab_Deriving_Repr___hyg_3589_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__5____x40_Lean_Elab_Deriving_Repr___hyg_3589_(); -lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__5____x40_Lean_Elab_Deriving_Repr___hyg_3589_); -l_Lean_Elab_Deriving_Repr_initFn___closed__6____x40_Lean_Elab_Deriving_Repr___hyg_3589_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__6____x40_Lean_Elab_Deriving_Repr___hyg_3589_(); -lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__6____x40_Lean_Elab_Deriving_Repr___hyg_3589_); -l_Lean_Elab_Deriving_Repr_initFn___closed__7____x40_Lean_Elab_Deriving_Repr___hyg_3589_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__7____x40_Lean_Elab_Deriving_Repr___hyg_3589_(); -lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__7____x40_Lean_Elab_Deriving_Repr___hyg_3589_); -l_Lean_Elab_Deriving_Repr_initFn___closed__8____x40_Lean_Elab_Deriving_Repr___hyg_3589_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__8____x40_Lean_Elab_Deriving_Repr___hyg_3589_(); -lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__8____x40_Lean_Elab_Deriving_Repr___hyg_3589_); -l_Lean_Elab_Deriving_Repr_initFn___closed__9____x40_Lean_Elab_Deriving_Repr___hyg_3589_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__9____x40_Lean_Elab_Deriving_Repr___hyg_3589_(); -lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__9____x40_Lean_Elab_Deriving_Repr___hyg_3589_); -l_Lean_Elab_Deriving_Repr_initFn___closed__10____x40_Lean_Elab_Deriving_Repr___hyg_3589_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__10____x40_Lean_Elab_Deriving_Repr___hyg_3589_(); -lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__10____x40_Lean_Elab_Deriving_Repr___hyg_3589_); -l_Lean_Elab_Deriving_Repr_initFn___closed__11____x40_Lean_Elab_Deriving_Repr___hyg_3589_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__11____x40_Lean_Elab_Deriving_Repr___hyg_3589_(); -lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__11____x40_Lean_Elab_Deriving_Repr___hyg_3589_); -l_Lean_Elab_Deriving_Repr_initFn___closed__12____x40_Lean_Elab_Deriving_Repr___hyg_3589_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__12____x40_Lean_Elab_Deriving_Repr___hyg_3589_(); -lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__12____x40_Lean_Elab_Deriving_Repr___hyg_3589_); -l_Lean_Elab_Deriving_Repr_initFn___closed__13____x40_Lean_Elab_Deriving_Repr___hyg_3589_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__13____x40_Lean_Elab_Deriving_Repr___hyg_3589_(); -lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__13____x40_Lean_Elab_Deriving_Repr___hyg_3589_); -l_Lean_Elab_Deriving_Repr_initFn___closed__14____x40_Lean_Elab_Deriving_Repr___hyg_3589_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__14____x40_Lean_Elab_Deriving_Repr___hyg_3589_(); -lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__14____x40_Lean_Elab_Deriving_Repr___hyg_3589_); -l_Lean_Elab_Deriving_Repr_initFn___closed__15____x40_Lean_Elab_Deriving_Repr___hyg_3589_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__15____x40_Lean_Elab_Deriving_Repr___hyg_3589_(); -lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__15____x40_Lean_Elab_Deriving_Repr___hyg_3589_); -if (builtin) {res = l_Lean_Elab_Deriving_Repr_initFn____x40_Lean_Elab_Deriving_Repr___hyg_3589_(lean_io_mk_world()); +l_Lean_Elab_Deriving_Repr_initFn___closed__0____x40_Lean_Elab_Deriving_Repr___hyg_3667_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__0____x40_Lean_Elab_Deriving_Repr___hyg_3667_(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__0____x40_Lean_Elab_Deriving_Repr___hyg_3667_); +l_Lean_Elab_Deriving_Repr_initFn___closed__1____x40_Lean_Elab_Deriving_Repr___hyg_3667_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__1____x40_Lean_Elab_Deriving_Repr___hyg_3667_(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__1____x40_Lean_Elab_Deriving_Repr___hyg_3667_); +l_Lean_Elab_Deriving_Repr_initFn___closed__2____x40_Lean_Elab_Deriving_Repr___hyg_3667_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__2____x40_Lean_Elab_Deriving_Repr___hyg_3667_(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__2____x40_Lean_Elab_Deriving_Repr___hyg_3667_); +l_Lean_Elab_Deriving_Repr_initFn___closed__3____x40_Lean_Elab_Deriving_Repr___hyg_3667_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__3____x40_Lean_Elab_Deriving_Repr___hyg_3667_(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__3____x40_Lean_Elab_Deriving_Repr___hyg_3667_); +l_Lean_Elab_Deriving_Repr_initFn___closed__4____x40_Lean_Elab_Deriving_Repr___hyg_3667_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__4____x40_Lean_Elab_Deriving_Repr___hyg_3667_(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__4____x40_Lean_Elab_Deriving_Repr___hyg_3667_); +l_Lean_Elab_Deriving_Repr_initFn___closed__5____x40_Lean_Elab_Deriving_Repr___hyg_3667_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__5____x40_Lean_Elab_Deriving_Repr___hyg_3667_(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__5____x40_Lean_Elab_Deriving_Repr___hyg_3667_); +l_Lean_Elab_Deriving_Repr_initFn___closed__6____x40_Lean_Elab_Deriving_Repr___hyg_3667_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__6____x40_Lean_Elab_Deriving_Repr___hyg_3667_(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__6____x40_Lean_Elab_Deriving_Repr___hyg_3667_); +l_Lean_Elab_Deriving_Repr_initFn___closed__7____x40_Lean_Elab_Deriving_Repr___hyg_3667_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__7____x40_Lean_Elab_Deriving_Repr___hyg_3667_(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__7____x40_Lean_Elab_Deriving_Repr___hyg_3667_); +l_Lean_Elab_Deriving_Repr_initFn___closed__8____x40_Lean_Elab_Deriving_Repr___hyg_3667_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__8____x40_Lean_Elab_Deriving_Repr___hyg_3667_(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__8____x40_Lean_Elab_Deriving_Repr___hyg_3667_); +l_Lean_Elab_Deriving_Repr_initFn___closed__9____x40_Lean_Elab_Deriving_Repr___hyg_3667_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__9____x40_Lean_Elab_Deriving_Repr___hyg_3667_(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__9____x40_Lean_Elab_Deriving_Repr___hyg_3667_); +l_Lean_Elab_Deriving_Repr_initFn___closed__10____x40_Lean_Elab_Deriving_Repr___hyg_3667_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__10____x40_Lean_Elab_Deriving_Repr___hyg_3667_(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__10____x40_Lean_Elab_Deriving_Repr___hyg_3667_); +l_Lean_Elab_Deriving_Repr_initFn___closed__11____x40_Lean_Elab_Deriving_Repr___hyg_3667_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__11____x40_Lean_Elab_Deriving_Repr___hyg_3667_(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__11____x40_Lean_Elab_Deriving_Repr___hyg_3667_); +l_Lean_Elab_Deriving_Repr_initFn___closed__12____x40_Lean_Elab_Deriving_Repr___hyg_3667_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__12____x40_Lean_Elab_Deriving_Repr___hyg_3667_(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__12____x40_Lean_Elab_Deriving_Repr___hyg_3667_); +l_Lean_Elab_Deriving_Repr_initFn___closed__13____x40_Lean_Elab_Deriving_Repr___hyg_3667_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__13____x40_Lean_Elab_Deriving_Repr___hyg_3667_(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__13____x40_Lean_Elab_Deriving_Repr___hyg_3667_); +l_Lean_Elab_Deriving_Repr_initFn___closed__14____x40_Lean_Elab_Deriving_Repr___hyg_3667_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__14____x40_Lean_Elab_Deriving_Repr___hyg_3667_(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__14____x40_Lean_Elab_Deriving_Repr___hyg_3667_); +l_Lean_Elab_Deriving_Repr_initFn___closed__15____x40_Lean_Elab_Deriving_Repr___hyg_3667_ = _init_l_Lean_Elab_Deriving_Repr_initFn___closed__15____x40_Lean_Elab_Deriving_Repr___hyg_3667_(); +lean_mark_persistent(l_Lean_Elab_Deriving_Repr_initFn___closed__15____x40_Lean_Elab_Deriving_Repr___hyg_3667_); +if (builtin) {res = l_Lean_Elab_Deriving_Repr_initFn____x40_Lean_Elab_Deriving_Repr___hyg_3667_(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)); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Util.c b/stage0/stdlib/Lean/Elab/Deriving/Util.c index d5cf54ae86..140beaec40 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Util.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Util.c @@ -34,6 +34,7 @@ LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at__ static lean_object* l_Array_foldrMUnsafe_fold___at___Lean_Elab_Deriving_mkLet_spec__0___redArg___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___Lean_Elab_Deriving_mkInductArgNames_spec__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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_mkHeader_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__9; static lean_object* l_Lean_Elab_Deriving_mkContext___closed__4; uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_Elab_Deriving_mkDiscrs___closed__13; @@ -58,6 +59,7 @@ static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_mkImplicitB LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_Deriving_mkInductArgNames_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___Lean_Elab_Deriving_mkInductArgNames_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_mkImplicitBinders_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f___closed__0; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___Lean_Elab_Deriving_mkLet_spec__0___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); static lean_object* l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__8; @@ -97,6 +99,7 @@ static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkHeader_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at___Lean_Elab_Deriving_mkContext_spec__3___redArg___closed__1; static lean_object* l_Lean_Elab_Deriving_mkContext___closed__0; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f___boxed(lean_object*); static lean_object* l_Lean_Elab_Deriving_mkDiscrs___closed__7; lean_object* l_Std_Iterators_instIteratorMap___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -104,8 +107,10 @@ lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_Deriving_mkInductArgNames_spec__0___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mkArray1___redArg(lean_object*); LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_toArrayMapped_go___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_mkDiscrs_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f_spec__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__5; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstImplicitBinders_spec__0___boxed(lean_object**); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__14; @@ -118,6 +123,7 @@ static lean_object* l_Lean_Elab_Deriving_mkInstanceCmds___closed__0; static lean_object* l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__6; 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_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_mkImplicitBinders_spec__0___redArg___closed__2; +lean_object* l_Array_empty(lean_object*); lean_object* l_Std_Iterators_Types_Attach_instIterator___redArg(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_implicitBinder(uint8_t); static lean_object* l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__9; @@ -159,7 +165,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_mkInductArgNames(lean_object*, lea lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); lean_object* l_Id_instMonad___lam__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___boxed(lean_object**); -LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_mkDiscrs___closed__8; @@ -217,6 +223,7 @@ LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at__ LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_Deriving_mkContext_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_mkInstanceCmds___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__0; +uint8_t l_Lean_isPrivateName(lean_object*); static lean_object* l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_mkLocalInstanceLetDecls___lam__1(lean_object*, lean_object*); static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__3; @@ -238,6 +245,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_mkDisc static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__2; lean_object* l_Lean_FVarId_getDecl___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); +static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__10; size_t lean_array_size(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_mkImplicitBinders_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldrMUnsafe_fold___at___Lean_Elab_Deriving_mkLet_spec__0___redArg___closed__4; @@ -278,11 +286,13 @@ static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_mkHeader_sp lean_object* l_Id_instMonad___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_toArrayMapped_go___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_mkDiscr___redArg___closed__1; +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f_spec__0(lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_Deriving_mkContext_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_mkHeader_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_mkLocalInstanceLetDecls___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_mkInductArgNames___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f(lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Deriving_mkImplicitBinders_spec__0___redArg___closed__3; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__15; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstImplicitBinders_spec__0___redArg___closed__3; @@ -1582,6 +1592,124 @@ lean_dec_ref(x_2); return x_12; } } +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f_spec__0(lean_object* x_1, size_t x_2, size_t x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_usize_dec_eq(x_2, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_5 = lean_array_uget(x_1, x_2); +x_6 = lean_ctor_get(x_5, 0); +lean_inc_ref(x_6); +lean_dec_ref(x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +lean_dec_ref(x_6); +x_8 = l_Lean_isPrivateName(x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = lean_usize_add(x_2, x_9); +x_2 = x_10; +goto _start; +} +else +{ +return x_8; +} +} +else +{ +uint8_t x_12; +x_12 = 0; +return x_12; +} +} +} +static lean_object* _init_l_Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f___closed__0() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_2 = lean_ctor_get(x_1, 0); +x_3 = lean_unsigned_to_nat(0u); +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_4); +x_6 = lean_box(0); +return x_6; +} +else +{ +if (x_5 == 0) +{ +lean_object* x_7; +lean_dec(x_4); +x_7 = lean_box(0); +return x_7; +} +else +{ +size_t x_8; size_t x_9; uint8_t x_10; +x_8 = 0; +x_9 = lean_usize_of_nat(x_4); +lean_dec(x_4); +x_10 = l_Array_anyMUnsafe_any___at___Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f_spec__0(x_2, x_8, x_9); +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = lean_box(0); +return x_11; +} +else +{ +lean_object* x_12; +x_12 = l_Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f___closed__0; +return x_12; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; uint8_t x_6; lean_object* x_7; +x_4 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_5 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_6 = l_Array_anyMUnsafe_any___at___Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f_spec__0(x_1, x_4, x_5); +lean_dec_ref(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f(x_1); +lean_dec_ref(x_1); +return x_2; +} +} static lean_object* _init_l_Lean_getConstInfo___at___Lean_getConstInfoInduct___at___Lean_Elab_Deriving_mkContext_spec__0_spec__0___closed__0() { _start: { @@ -2699,7 +2827,7 @@ lean_dec_ref(x_41); x_47 = lean_array_get_size(x_46); x_48 = l_Array_toSubarray___redArg(x_46, x_36, x_47); x_49 = l_Array_ofSubarray___redArg(x_48); -x_50 = l_Lean_Elab_Deriving_mkInductiveApp___redArg(x_17, x_49, x_14, x_15, x_26); +x_50 = l_Lean_Elab_Deriving_mkInductiveApp___redArg(x_17, x_49, x_14, x_15, x_24); x_51 = !lean_is_exclusive(x_50); if (x_51 == 0) { @@ -2804,8 +2932,8 @@ x_94 = lean_mk_syntax_ident(x_68); lean_inc(x_71); x_95 = l_Lean_Syntax_node1(x_71, x_93, x_94); x_96 = l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__10; -x_97 = l_Array_append___redArg(x_96, x_24); -lean_dec_ref(x_24); +x_97 = l_Array_append___redArg(x_96, x_26); +lean_dec_ref(x_26); lean_inc(x_71); lean_ctor_set_tag(x_25, 1); lean_ctor_set(x_25, 2, x_97); @@ -2899,8 +3027,8 @@ x_128 = lean_mk_syntax_ident(x_68); lean_inc(x_71); x_129 = l_Lean_Syntax_node1(x_71, x_127, x_128); x_130 = l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__10; -x_131 = l_Array_append___redArg(x_130, x_24); -lean_dec_ref(x_24); +x_131 = l_Array_append___redArg(x_130, x_26); +lean_dec_ref(x_26); lean_inc(x_71); lean_ctor_set_tag(x_25, 1); lean_ctor_set(x_25, 2, x_131); @@ -2968,7 +3096,7 @@ lean_free_object(x_54); lean_free_object(x_50); lean_dec(x_52); lean_free_object(x_25); -lean_dec_ref(x_24); +lean_dec_ref(x_26); lean_dec(x_23); lean_dec(x_15); lean_dec_ref(x_14); @@ -3071,8 +3199,8 @@ x_175 = lean_mk_syntax_ident(x_149); lean_inc(x_152); x_176 = l_Lean_Syntax_node1(x_152, x_174, x_175); x_177 = l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__10; -x_178 = l_Array_append___redArg(x_177, x_24); -lean_dec_ref(x_24); +x_178 = l_Array_append___redArg(x_177, x_26); +lean_dec_ref(x_26); lean_inc(x_152); lean_ctor_set_tag(x_25, 1); lean_ctor_set(x_25, 2, x_178); @@ -3143,7 +3271,7 @@ lean_free_object(x_54); lean_free_object(x_50); lean_dec(x_52); lean_free_object(x_25); -lean_dec_ref(x_24); +lean_dec_ref(x_26); lean_dec(x_23); lean_dec(x_15); lean_dec_ref(x_14); @@ -3266,8 +3394,8 @@ x_227 = lean_mk_syntax_ident(x_199); lean_inc(x_203); x_228 = l_Lean_Syntax_node1(x_203, x_226, x_227); x_229 = l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__10; -x_230 = l_Array_append___redArg(x_229, x_24); -lean_dec_ref(x_24); +x_230 = l_Array_append___redArg(x_229, x_26); +lean_dec_ref(x_26); lean_inc(x_203); lean_ctor_set_tag(x_25, 1); lean_ctor_set(x_25, 2, x_230); @@ -3338,7 +3466,7 @@ lean_free_object(x_54); lean_free_object(x_50); lean_dec(x_52); lean_free_object(x_25); -lean_dec_ref(x_24); +lean_dec_ref(x_26); lean_dec(x_23); lean_dec(x_15); lean_dec_ref(x_14); @@ -3382,7 +3510,7 @@ lean_free_object(x_54); lean_free_object(x_50); lean_dec(x_52); lean_free_object(x_25); -lean_dec_ref(x_24); +lean_dec_ref(x_26); lean_dec(x_23); lean_dec(x_15); lean_dec_ref(x_14); @@ -3534,8 +3662,8 @@ x_289 = lean_mk_syntax_ident(x_261); lean_inc(x_265); x_290 = l_Lean_Syntax_node1(x_265, x_288, x_289); x_291 = l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__10; -x_292 = l_Array_append___redArg(x_291, x_24); -lean_dec_ref(x_24); +x_292 = l_Array_append___redArg(x_291, x_26); +lean_dec_ref(x_26); lean_inc(x_265); lean_ctor_set_tag(x_25, 1); lean_ctor_set(x_25, 2, x_292); @@ -3606,7 +3734,7 @@ lean_dec(x_254); lean_free_object(x_50); lean_dec(x_52); lean_free_object(x_25); -lean_dec_ref(x_24); +lean_dec_ref(x_26); lean_dec(x_23); lean_dec(x_15); lean_dec_ref(x_14); @@ -3648,7 +3776,7 @@ lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_free_object(x_50); lean_dec(x_52); lean_free_object(x_25); -lean_dec_ref(x_24); +lean_dec_ref(x_26); lean_dec(x_23); lean_dec(x_15); lean_dec_ref(x_14); @@ -3816,8 +3944,8 @@ x_356 = lean_mk_syntax_ident(x_328); lean_inc(x_332); x_357 = l_Lean_Syntax_node1(x_332, x_355, x_356); x_358 = l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__10; -x_359 = l_Array_append___redArg(x_358, x_24); -lean_dec_ref(x_24); +x_359 = l_Array_append___redArg(x_358, x_26); +lean_dec_ref(x_26); lean_inc(x_332); lean_ctor_set_tag(x_25, 1); lean_ctor_set(x_25, 2, x_359); @@ -3893,7 +4021,7 @@ lean_dec(x_321); lean_dec(x_319); lean_dec(x_315); lean_free_object(x_25); -lean_dec_ref(x_24); +lean_dec_ref(x_26); lean_dec(x_23); lean_dec(x_15); lean_dec_ref(x_14); @@ -3935,7 +4063,7 @@ lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_dec(x_319); lean_dec(x_315); lean_free_object(x_25); -lean_dec_ref(x_24); +lean_dec_ref(x_26); lean_dec(x_23); lean_dec(x_15); lean_dec_ref(x_14); @@ -3981,7 +4109,7 @@ lean_dec_ref(x_41); x_384 = lean_array_get_size(x_383); x_385 = l_Array_toSubarray___redArg(x_383, x_36, x_384); x_386 = l_Array_ofSubarray___redArg(x_385); -x_387 = l_Lean_Elab_Deriving_mkInductiveApp___redArg(x_17, x_386, x_14, x_15, x_26); +x_387 = l_Lean_Elab_Deriving_mkInductiveApp___redArg(x_17, x_386, x_14, x_15, x_24); x_388 = lean_ctor_get(x_387, 0); lean_inc(x_388); x_389 = lean_ctor_get(x_387, 1); @@ -4117,8 +4245,8 @@ x_430 = lean_mk_syntax_ident(x_402); lean_inc(x_406); x_431 = l_Lean_Syntax_node1(x_406, x_429, x_430); x_432 = l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__10; -x_433 = l_Array_append___redArg(x_432, x_24); -lean_dec_ref(x_24); +x_433 = l_Array_append___redArg(x_432, x_26); +lean_dec_ref(x_26); lean_inc(x_406); x_434 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_434, 0, x_406); @@ -4199,7 +4327,7 @@ lean_dec(x_395); lean_dec(x_393); lean_dec(x_390); lean_dec(x_388); -lean_dec_ref(x_24); +lean_dec_ref(x_26); lean_dec(x_23); lean_dec(x_15); lean_dec_ref(x_14); @@ -4241,7 +4369,7 @@ lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_dec(x_393); lean_dec(x_390); lean_dec(x_388); -lean_dec_ref(x_24); +lean_dec_ref(x_26); lean_dec(x_23); lean_dec(x_15); lean_dec_ref(x_14); @@ -4296,9 +4424,9 @@ x_468 = lean_nat_dec_le(x_22, x_467); if (x_468 == 0) { lean_dec(x_22); -x_24 = x_464; +x_24 = x_465; x_25 = x_461; -x_26 = x_465; +x_26 = x_464; x_27 = x_466; x_28 = x_467; goto block_458; @@ -4306,9 +4434,9 @@ goto block_458; else { lean_dec(x_467); -x_24 = x_464; +x_24 = x_465; x_25 = x_461; -x_26 = x_465; +x_26 = x_464; x_27 = x_466; x_28 = x_22; goto block_458; @@ -4411,9 +4539,9 @@ x_36 = lean_ctor_get(x_35, 1); lean_inc(x_36); x_37 = lean_ctor_get(x_35, 2); lean_inc(x_37); -x_38 = lean_ctor_get(x_32, 1); +x_38 = lean_ctor_get(x_30, 1); lean_inc(x_38); -x_39 = lean_ctor_get(x_32, 2); +x_39 = lean_ctor_get(x_30, 2); lean_inc(x_39); x_40 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_40, 0, x_36); @@ -4429,23 +4557,23 @@ lean_ctor_set(x_45, 0, x_38); x_46 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_46, 0, x_45); lean_ctor_set(x_46, 1, x_39); -x_47 = l_Std_Iterators_IterM_DefaultConsumers_toArrayMapped_go___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__0___redArg(x_32, x_46, x_43); -x_48 = !lean_is_exclusive(x_32); +x_47 = l_Std_Iterators_IterM_DefaultConsumers_toArrayMapped_go___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__0___redArg(x_30, x_46, x_43); +x_48 = !lean_is_exclusive(x_30); if (x_48 == 0) { 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; uint8_t x_57; -x_49 = lean_ctor_get(x_32, 2); +x_49 = lean_ctor_get(x_30, 2); lean_dec(x_49); -x_50 = lean_ctor_get(x_32, 1); +x_50 = lean_ctor_get(x_30, 1); lean_dec(x_50); -x_51 = lean_ctor_get(x_32, 0); +x_51 = lean_ctor_get(x_30, 0); lean_dec(x_51); x_52 = l_Array_append___redArg(x_44, x_47); lean_dec_ref(x_47); x_53 = lean_array_get_size(x_52); x_54 = l_Array_toSubarray___redArg(x_52, x_42, x_53); x_55 = l_Array_ofSubarray___redArg(x_54); -x_56 = l_Lean_Elab_Deriving_mkInductiveApp___redArg(x_23, x_55, x_20, x_21, x_30); +x_56 = l_Lean_Elab_Deriving_mkInductiveApp___redArg(x_23, x_55, x_20, x_21, x_32); x_57 = !lean_is_exclusive(x_56); if (x_57 == 0) { @@ -4553,10 +4681,10 @@ x_102 = l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__10; x_103 = l_Array_append___redArg(x_102, x_31); lean_dec_ref(x_31); lean_inc(x_77); -lean_ctor_set_tag(x_32, 1); -lean_ctor_set(x_32, 2, x_103); -lean_ctor_set(x_32, 1, x_88); -lean_ctor_set(x_32, 0, x_77); +lean_ctor_set_tag(x_30, 1); +lean_ctor_set(x_30, 2, x_103); +lean_ctor_set(x_30, 1, x_88); +lean_ctor_set(x_30, 0, x_77); x_104 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__13; x_105 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__14; lean_inc(x_77); @@ -4573,7 +4701,7 @@ lean_ctor_set_tag(x_56, 2); lean_ctor_set(x_56, 1, x_108); lean_ctor_set(x_56, 0, x_77); lean_inc(x_77); -x_109 = l_Lean_Syntax_node5(x_77, x_98, x_101, x_32, x_107, x_56, x_96); +x_109 = l_Lean_Syntax_node5(x_77, x_98, x_101, x_30, x_107, x_56, x_96); x_110 = l_Lean_Syntax_node1(x_77, x_97, x_109); x_111 = lean_array_push(x_14, x_110); x_112 = lean_unsigned_to_nat(1u); @@ -4646,10 +4774,10 @@ x_136 = l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__10; x_137 = l_Array_append___redArg(x_136, x_31); lean_dec_ref(x_31); lean_inc(x_77); -lean_ctor_set_tag(x_32, 1); -lean_ctor_set(x_32, 2, x_137); -lean_ctor_set(x_32, 1, x_122); -lean_ctor_set(x_32, 0, x_77); +lean_ctor_set_tag(x_30, 1); +lean_ctor_set(x_30, 2, x_137); +lean_ctor_set(x_30, 1, x_122); +lean_ctor_set(x_30, 0, x_77); x_138 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__13; x_139 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__14; lean_inc(x_77); @@ -4666,7 +4794,7 @@ lean_ctor_set_tag(x_56, 2); lean_ctor_set(x_56, 1, x_142); lean_ctor_set(x_56, 0, x_77); lean_inc(x_77); -x_143 = l_Lean_Syntax_node5(x_77, x_132, x_135, x_32, x_141, x_56, x_130); +x_143 = l_Lean_Syntax_node5(x_77, x_132, x_135, x_30, x_141, x_56, x_130); x_144 = l_Lean_Syntax_node1(x_77, x_131, x_143); x_145 = lean_array_push(x_14, x_144); x_146 = lean_unsigned_to_nat(1u); @@ -4709,7 +4837,7 @@ lean_dec(x_65); lean_free_object(x_60); lean_free_object(x_56); lean_dec(x_58); -lean_free_object(x_32); +lean_free_object(x_30); lean_dec_ref(x_31); lean_dec(x_29); lean_dec(x_21); @@ -4815,10 +4943,10 @@ x_183 = l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__10; x_184 = l_Array_append___redArg(x_183, x_31); lean_dec_ref(x_31); lean_inc(x_158); -lean_ctor_set_tag(x_32, 1); -lean_ctor_set(x_32, 2, x_184); -lean_ctor_set(x_32, 1, x_168); -lean_ctor_set(x_32, 0, x_158); +lean_ctor_set_tag(x_30, 1); +lean_ctor_set(x_30, 2, x_184); +lean_ctor_set(x_30, 1, x_168); +lean_ctor_set(x_30, 0, x_158); x_185 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__13; x_186 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__14; lean_inc(x_158); @@ -4835,7 +4963,7 @@ lean_ctor_set_tag(x_56, 2); lean_ctor_set(x_56, 1, x_189); lean_ctor_set(x_56, 0, x_158); lean_inc(x_158); -x_190 = l_Lean_Syntax_node5(x_158, x_179, x_182, x_32, x_188, x_56, x_177); +x_190 = l_Lean_Syntax_node5(x_158, x_179, x_182, x_30, x_188, x_56, x_177); x_191 = l_Lean_Syntax_node1(x_158, x_178, x_190); x_192 = lean_array_push(x_14, x_191); x_193 = lean_unsigned_to_nat(1u); @@ -4881,7 +5009,7 @@ lean_dec(x_65); lean_free_object(x_60); lean_free_object(x_56); lean_dec(x_58); -lean_free_object(x_32); +lean_free_object(x_30); lean_dec_ref(x_31); lean_dec(x_29); lean_dec(x_21); @@ -5007,10 +5135,10 @@ x_235 = l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__10; x_236 = l_Array_append___redArg(x_235, x_31); lean_dec_ref(x_31); lean_inc(x_209); -lean_ctor_set_tag(x_32, 1); -lean_ctor_set(x_32, 2, x_236); -lean_ctor_set(x_32, 1, x_219); -lean_ctor_set(x_32, 0, x_209); +lean_ctor_set_tag(x_30, 1); +lean_ctor_set(x_30, 2, x_236); +lean_ctor_set(x_30, 1, x_219); +lean_ctor_set(x_30, 0, x_209); x_237 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__13; x_238 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__14; lean_inc(x_209); @@ -5027,7 +5155,7 @@ lean_ctor_set_tag(x_56, 2); lean_ctor_set(x_56, 1, x_241); lean_ctor_set(x_56, 0, x_209); lean_inc(x_209); -x_242 = l_Lean_Syntax_node5(x_209, x_231, x_234, x_32, x_240, x_56, x_229); +x_242 = l_Lean_Syntax_node5(x_209, x_231, x_234, x_30, x_240, x_56, x_229); x_243 = l_Lean_Syntax_node1(x_209, x_230, x_242); x_244 = lean_array_push(x_14, x_243); x_245 = lean_unsigned_to_nat(1u); @@ -5073,7 +5201,7 @@ lean_dec(x_65); lean_free_object(x_60); lean_free_object(x_56); lean_dec(x_58); -lean_free_object(x_32); +lean_free_object(x_30); lean_dec_ref(x_31); lean_dec(x_29); lean_dec(x_21); @@ -5116,7 +5244,7 @@ uint8_t x_254; lean_free_object(x_60); lean_free_object(x_56); lean_dec(x_58); -lean_free_object(x_32); +lean_free_object(x_30); lean_dec_ref(x_31); lean_dec(x_29); lean_dec(x_21); @@ -5271,10 +5399,10 @@ x_297 = l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__10; x_298 = l_Array_append___redArg(x_297, x_31); lean_dec_ref(x_31); lean_inc(x_271); -lean_ctor_set_tag(x_32, 1); -lean_ctor_set(x_32, 2, x_298); -lean_ctor_set(x_32, 1, x_281); -lean_ctor_set(x_32, 0, x_271); +lean_ctor_set_tag(x_30, 1); +lean_ctor_set(x_30, 2, x_298); +lean_ctor_set(x_30, 1, x_281); +lean_ctor_set(x_30, 0, x_271); x_299 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__13; x_300 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__14; lean_inc(x_271); @@ -5291,7 +5419,7 @@ lean_ctor_set_tag(x_56, 2); lean_ctor_set(x_56, 1, x_304); lean_ctor_set(x_56, 0, x_271); lean_inc(x_271); -x_305 = l_Lean_Syntax_node5(x_271, x_293, x_296, x_32, x_303, x_56, x_291); +x_305 = l_Lean_Syntax_node5(x_271, x_293, x_296, x_30, x_303, x_56, x_291); x_306 = l_Lean_Syntax_node1(x_271, x_292, x_305); x_307 = lean_array_push(x_14, x_306); x_308 = lean_unsigned_to_nat(1u); @@ -5337,7 +5465,7 @@ lean_dec(x_264); lean_dec(x_260); lean_free_object(x_56); lean_dec(x_58); -lean_free_object(x_32); +lean_free_object(x_30); lean_dec_ref(x_31); lean_dec(x_29); lean_dec(x_21); @@ -5378,7 +5506,7 @@ else lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_free_object(x_56); lean_dec(x_58); -lean_free_object(x_32); +lean_free_object(x_30); lean_dec_ref(x_31); lean_dec(x_29); lean_dec(x_21); @@ -5549,10 +5677,10 @@ x_364 = l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__10; x_365 = l_Array_append___redArg(x_364, x_31); lean_dec_ref(x_31); lean_inc(x_338); -lean_ctor_set_tag(x_32, 1); -lean_ctor_set(x_32, 2, x_365); -lean_ctor_set(x_32, 1, x_348); -lean_ctor_set(x_32, 0, x_338); +lean_ctor_set_tag(x_30, 1); +lean_ctor_set(x_30, 2, x_365); +lean_ctor_set(x_30, 1, x_348); +lean_ctor_set(x_30, 0, x_338); x_366 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__13; x_367 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__14; lean_inc(x_338); @@ -5574,7 +5702,7 @@ x_372 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_372, 0, x_338); lean_ctor_set(x_372, 1, x_371); lean_inc(x_338); -x_373 = l_Lean_Syntax_node5(x_338, x_360, x_363, x_32, x_370, x_372, x_358); +x_373 = l_Lean_Syntax_node5(x_338, x_360, x_363, x_30, x_370, x_372, x_358); x_374 = l_Lean_Syntax_node1(x_338, x_359, x_373); x_375 = lean_array_push(x_14, x_374); x_376 = lean_unsigned_to_nat(1u); @@ -5620,7 +5748,7 @@ lean_dec(x_331); lean_dec(x_327); lean_dec(x_325); lean_dec(x_321); -lean_free_object(x_32); +lean_free_object(x_30); lean_dec_ref(x_31); lean_dec(x_29); lean_dec(x_21); @@ -5661,7 +5789,7 @@ else lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_dec(x_325); lean_dec(x_321); -lean_free_object(x_32); +lean_free_object(x_30); lean_dec_ref(x_31); lean_dec(x_29); lean_dec(x_21); @@ -5701,13 +5829,13 @@ return x_388; else { lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; -lean_dec(x_32); +lean_dec(x_30); x_389 = l_Array_append___redArg(x_44, x_47); lean_dec_ref(x_47); x_390 = lean_array_get_size(x_389); x_391 = l_Array_toSubarray___redArg(x_389, x_42, x_390); x_392 = l_Array_ofSubarray___redArg(x_391); -x_393 = l_Lean_Elab_Deriving_mkInductiveApp___redArg(x_23, x_392, x_20, x_21, x_30); +x_393 = l_Lean_Elab_Deriving_mkInductiveApp___redArg(x_23, x_392, x_20, x_21, x_32); x_394 = lean_ctor_get(x_393, 0); lean_inc(x_394); x_395 = lean_ctor_get(x_393, 1); @@ -6018,9 +6146,9 @@ x_474 = lean_nat_dec_le(x_28, x_473); if (x_474 == 0) { lean_dec(x_28); -x_30 = x_471; +x_30 = x_467; x_31 = x_470; -x_32 = x_467; +x_32 = x_471; x_33 = x_472; x_34 = x_473; goto block_464; @@ -6028,9 +6156,9 @@ goto block_464; else { lean_dec(x_473); -x_30 = x_471; +x_30 = x_467; x_31 = x_470; -x_32 = x_467; +x_32 = x_471; x_33 = x_472; x_34 = x_28; goto block_464; @@ -6636,237 +6764,209 @@ x_1 = lean_mk_string_unchecked("suffix", 6, 6); return x_1; } } -LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +static lean_object* _init_l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__9() { _start: { -lean_object* x_18; -lean_inc(x_16); -x_18 = lean_apply_7(x_1, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec_ref(x_18); -x_21 = lean_st_ref_get(x_16, x_20); -lean_dec(x_16); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_23 = lean_ctor_get(x_21, 0); -lean_dec(x_23); -x_24 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__0; -x_25 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__1; -lean_inc_ref(x_3); -lean_inc_ref(x_2); -x_26 = l_Lean_Name_mkStr4(x_2, x_3, x_24, x_25); -x_27 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__2; -lean_inc_ref(x_3); -lean_inc_ref(x_2); -x_28 = l_Lean_Name_mkStr4(x_2, x_3, x_24, x_27); -x_29 = l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__10; -lean_inc(x_4); -lean_inc(x_19); -x_30 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_30, 0, x_19); -lean_ctor_set(x_30, 1, x_4); -lean_ctor_set(x_30, 2, x_29); -lean_inc_ref_n(x_30, 6); -lean_inc(x_19); -x_31 = l_Lean_Syntax_node6(x_19, x_28, x_30, x_30, x_30, x_30, x_30, x_30); -x_32 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__3; -lean_inc_ref(x_3); -lean_inc_ref(x_2); -x_33 = l_Lean_Name_mkStr4(x_2, x_3, x_24, x_32); -x_34 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__4; -lean_inc_ref(x_5); -lean_inc_ref(x_3); -lean_inc_ref(x_2); -x_35 = l_Lean_Name_mkStr4(x_2, x_3, x_5, x_34); -lean_inc_ref(x_30); -lean_inc(x_19); -x_36 = l_Lean_Syntax_node1(x_19, x_35, x_30); -lean_inc(x_19); -x_37 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_37, 0, x_19); -lean_ctor_set(x_37, 1, x_32); -x_38 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__5; -lean_inc_ref(x_3); -lean_inc_ref(x_2); -x_39 = l_Lean_Name_mkStr4(x_2, x_3, x_24, x_38); -x_40 = l_Array_append___redArg(x_29, x_6); -lean_inc(x_19); -x_41 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_41, 0, x_19); -lean_ctor_set(x_41, 1, x_4); -lean_ctor_set(x_41, 2, x_40); -x_42 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__12; -lean_inc_ref(x_3); -lean_inc_ref(x_2); -x_43 = l_Lean_Name_mkStr4(x_2, x_3, x_5, x_42); -x_44 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__14; -lean_inc(x_19); -x_45 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_45, 0, x_19); -lean_ctor_set(x_45, 1, x_44); -lean_inc(x_19); -x_46 = l_Lean_Syntax_node2(x_19, x_43, x_45, x_7); -lean_inc(x_19); -x_47 = l_Lean_Syntax_node2(x_19, x_39, x_41, x_46); -x_48 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__6; -lean_inc_ref(x_3); -lean_inc_ref(x_2); -x_49 = l_Lean_Name_mkStr4(x_2, x_3, x_24, x_48); -x_50 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__15; -lean_inc(x_19); -x_51 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_51, 0, x_19); -lean_ctor_set(x_51, 1, x_50); -x_52 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__7; -x_53 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__8; -x_54 = l_Lean_Name_mkStr4(x_2, x_3, x_52, x_53); -lean_inc_ref_n(x_30, 2); -lean_inc(x_19); -x_55 = l_Lean_Syntax_node2(x_19, x_54, x_30, x_30); -lean_inc_ref(x_30); -lean_inc(x_19); -x_56 = l_Lean_Syntax_node4(x_19, x_49, x_51, x_9, x_55, x_30); -lean_inc_ref(x_30); -lean_inc(x_19); -x_57 = l_Lean_Syntax_node6(x_19, x_33, x_36, x_37, x_30, x_30, x_47, x_56); -x_58 = l_Lean_Syntax_node2(x_19, x_26, x_31, x_57); -x_59 = lean_array_push(x_8, x_58); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_21, 0, x_60); -return x_21; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_61 = lean_ctor_get(x_21, 1); -lean_inc(x_61); -lean_dec(x_21); -x_62 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__0; -x_63 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__1; -lean_inc_ref(x_3); -lean_inc_ref(x_2); -x_64 = l_Lean_Name_mkStr4(x_2, x_3, x_62, x_63); -x_65 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__2; -lean_inc_ref(x_3); -lean_inc_ref(x_2); -x_66 = l_Lean_Name_mkStr4(x_2, x_3, x_62, x_65); -x_67 = l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__10; -lean_inc(x_4); -lean_inc(x_19); -x_68 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_68, 0, x_19); -lean_ctor_set(x_68, 1, x_4); -lean_ctor_set(x_68, 2, x_67); -lean_inc_ref_n(x_68, 6); -lean_inc(x_19); -x_69 = l_Lean_Syntax_node6(x_19, x_66, x_68, x_68, x_68, x_68, x_68, x_68); -x_70 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__3; -lean_inc_ref(x_3); -lean_inc_ref(x_2); -x_71 = l_Lean_Name_mkStr4(x_2, x_3, x_62, x_70); -x_72 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__4; -lean_inc_ref(x_5); -lean_inc_ref(x_3); -lean_inc_ref(x_2); -x_73 = l_Lean_Name_mkStr4(x_2, x_3, x_5, x_72); -lean_inc_ref(x_68); -lean_inc(x_19); -x_74 = l_Lean_Syntax_node1(x_19, x_73, x_68); -lean_inc(x_19); -x_75 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_75, 0, x_19); -lean_ctor_set(x_75, 1, x_70); -x_76 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__5; -lean_inc_ref(x_3); -lean_inc_ref(x_2); -x_77 = l_Lean_Name_mkStr4(x_2, x_3, x_62, x_76); -x_78 = l_Array_append___redArg(x_67, x_6); -lean_inc(x_19); -x_79 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_79, 0, x_19); -lean_ctor_set(x_79, 1, x_4); -lean_ctor_set(x_79, 2, x_78); -x_80 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__12; -lean_inc_ref(x_3); -lean_inc_ref(x_2); -x_81 = l_Lean_Name_mkStr4(x_2, x_3, x_5, x_80); -x_82 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__14; -lean_inc(x_19); -x_83 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_83, 0, x_19); -lean_ctor_set(x_83, 1, x_82); -lean_inc(x_19); -x_84 = l_Lean_Syntax_node2(x_19, x_81, x_83, x_7); -lean_inc(x_19); -x_85 = l_Lean_Syntax_node2(x_19, x_77, x_79, x_84); -x_86 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__6; -lean_inc_ref(x_3); -lean_inc_ref(x_2); -x_87 = l_Lean_Name_mkStr4(x_2, x_3, x_62, x_86); -x_88 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__15; -lean_inc(x_19); -x_89 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_89, 0, x_19); -lean_ctor_set(x_89, 1, x_88); -x_90 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__7; -x_91 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__8; -x_92 = l_Lean_Name_mkStr4(x_2, x_3, x_90, x_91); -lean_inc_ref_n(x_68, 2); -lean_inc(x_19); -x_93 = l_Lean_Syntax_node2(x_19, x_92, x_68, x_68); -lean_inc_ref(x_68); -lean_inc(x_19); -x_94 = l_Lean_Syntax_node4(x_19, x_87, x_89, x_9, x_93, x_68); -lean_inc_ref(x_68); -lean_inc(x_19); -x_95 = l_Lean_Syntax_node6(x_19, x_71, x_74, x_75, x_68, x_68, x_85, x_94); -x_96 = l_Lean_Syntax_node2(x_19, x_64, x_69, x_95); -x_97 = lean_array_push(x_8, x_96); -x_98 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_98, 0, x_97); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_61); -return x_99; +lean_object* x_1; +x_1 = l_Array_empty(lean_box(0)); +return x_1; } } -else +static lean_object* _init_l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__10() { +_start: { -uint8_t x_100; -lean_dec(x_16); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -x_100 = !lean_is_exclusive(x_18); -if (x_100 == 0) -{ -return x_18; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("private", 7, 7); +return x_1; } -else +} +LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0(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, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { +_start: { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_18, 0); -x_102 = lean_ctor_get(x_18, 1); -lean_inc(x_102); -lean_inc(x_101); +lean_object* x_20; +lean_inc(x_18); +x_20 = lean_apply_7(x_1, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec_ref(x_20); +x_23 = lean_st_ref_get(x_18, x_22); lean_dec(x_18); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -return x_103; +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_25 = x_23; +} else { + lean_dec_ref(x_23); + x_25 = lean_box(0); +} +x_26 = l_Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f(x_2); +x_27 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__0; +x_28 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__1; +lean_inc_ref(x_4); +lean_inc_ref(x_3); +x_29 = l_Lean_Name_mkStr4(x_3, x_4, x_27, x_28); +x_30 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__2; +lean_inc_ref(x_4); +lean_inc_ref(x_3); +x_31 = l_Lean_Name_mkStr4(x_3, x_4, x_27, x_30); +x_32 = l_Lean_Elab_Deriving_mkInductiveApp___redArg___closed__10; +lean_inc(x_5); +lean_inc(x_21); +x_33 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_33, 0, x_21); +lean_ctor_set(x_33, 1, x_5); +lean_ctor_set(x_33, 2, x_32); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_69; +x_69 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__9; +x_34 = x_69; +goto block_68; +} +else +{ +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; +x_70 = lean_ctor_get(x_26, 0); +lean_inc(x_70); +lean_dec(x_26); +x_71 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__10; +lean_inc_ref(x_4); +lean_inc_ref(x_3); +x_72 = l_Lean_Name_mkStr4(x_3, x_4, x_27, x_71); +x_73 = l_Lean_SourceInfo_fromRef(x_70, x_9); +lean_dec(x_70); +x_74 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_71); +lean_inc(x_21); +x_75 = l_Lean_Syntax_node1(x_21, x_72, x_74); +x_76 = l_Array_mkArray1___redArg(x_75); +x_34 = x_76; +goto block_68; +} +block_68: +{ +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; +x_35 = l_Array_append___redArg(x_32, x_34); +lean_dec_ref(x_34); +lean_inc(x_5); +lean_inc(x_21); +x_36 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_36, 0, x_21); +lean_ctor_set(x_36, 1, x_5); +lean_ctor_set(x_36, 2, x_35); +lean_inc_ref_n(x_33, 5); +lean_inc(x_21); +x_37 = l_Lean_Syntax_node6(x_21, x_31, x_33, x_33, x_36, x_33, x_33, x_33); +x_38 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__3; +lean_inc_ref(x_4); +lean_inc_ref(x_3); +x_39 = l_Lean_Name_mkStr4(x_3, x_4, x_27, x_38); +x_40 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__4; +lean_inc_ref(x_6); +lean_inc_ref(x_4); +lean_inc_ref(x_3); +x_41 = l_Lean_Name_mkStr4(x_3, x_4, x_6, x_40); +lean_inc_ref(x_33); +lean_inc(x_21); +x_42 = l_Lean_Syntax_node1(x_21, x_41, x_33); +lean_inc(x_21); +x_43 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_43, 0, x_21); +lean_ctor_set(x_43, 1, x_38); +x_44 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__5; +lean_inc_ref(x_4); +lean_inc_ref(x_3); +x_45 = l_Lean_Name_mkStr4(x_3, x_4, x_27, x_44); +x_46 = l_Array_append___redArg(x_32, x_7); +lean_inc(x_21); +x_47 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_47, 0, x_21); +lean_ctor_set(x_47, 1, x_5); +lean_ctor_set(x_47, 2, x_46); +x_48 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__12; +lean_inc_ref(x_4); +lean_inc_ref(x_3); +x_49 = l_Lean_Name_mkStr4(x_3, x_4, x_6, x_48); +x_50 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__14; +lean_inc(x_21); +x_51 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_51, 0, x_21); +lean_ctor_set(x_51, 1, x_50); +lean_inc(x_21); +x_52 = l_Lean_Syntax_node2(x_21, x_49, x_51, x_8); +lean_inc(x_21); +x_53 = l_Lean_Syntax_node2(x_21, x_45, x_47, x_52); +x_54 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__6; +lean_inc_ref(x_4); +lean_inc_ref(x_3); +x_55 = l_Lean_Name_mkStr4(x_3, x_4, x_27, x_54); +x_56 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkLocalInstanceLetDecls_spec__1_spec__1___redArg___closed__15; +lean_inc(x_21); +x_57 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_57, 0, x_21); +lean_ctor_set(x_57, 1, x_56); +x_58 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__7; +x_59 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__8; +x_60 = l_Lean_Name_mkStr4(x_3, x_4, x_58, x_59); +lean_inc_ref_n(x_33, 2); +lean_inc(x_21); +x_61 = l_Lean_Syntax_node2(x_21, x_60, x_33, x_33); +lean_inc_ref(x_33); +lean_inc(x_21); +x_62 = l_Lean_Syntax_node4(x_21, x_55, x_57, x_11, x_61, x_33); +lean_inc_ref(x_33); +lean_inc(x_21); +x_63 = l_Lean_Syntax_node6(x_21, x_39, x_42, x_43, x_33, x_33, x_53, x_62); +x_64 = l_Lean_Syntax_node2(x_21, x_29, x_37, x_63); +x_65 = lean_array_push(x_10, x_64); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +if (lean_is_scalar(x_25)) { + x_67 = lean_alloc_ctor(0, 2, 0); +} else { + x_67 = x_25; +} +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_24); +return x_67; +} +} +else +{ +uint8_t x_77; +lean_dec(x_18); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_8); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +x_77 = !lean_is_exclusive(x_20); +if (x_77 == 0) +{ +return x_20; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_20, 0); +x_79 = lean_ctor_get(x_20, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_20); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; } } } @@ -6981,7 +7081,7 @@ lean_inc_ref(x_14); lean_inc(x_13); lean_inc_ref(x_12); lean_inc(x_6); -x_78 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0(x_6, x_66, x_67, x_74, x_68, x_69, x_76, x_10, x_77, x_8, x_12, x_13, x_14, x_15, x_16, x_17, x_60); +x_78 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0(x_6, x_5, x_66, x_67, x_74, x_68, x_69, x_76, x_45, x_10, x_77, x_8, x_12, x_13, x_14, x_15, x_16, x_17, x_60); lean_dec_ref(x_69); x_27 = x_78; goto block_41; @@ -7034,7 +7134,7 @@ lean_inc_ref(x_14); lean_inc(x_13); lean_inc_ref(x_12); lean_inc(x_6); -x_91 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0(x_6, x_66, x_67, x_74, x_68, x_69, x_76, x_10, x_90, x_8, x_12, x_13, x_14, x_15, x_16, x_17, x_84); +x_91 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0(x_6, x_5, x_66, x_67, x_74, x_68, x_69, x_76, x_45, x_10, x_90, x_8, x_12, x_13, x_14, x_15, x_16, x_17, x_84); lean_dec_ref(x_69); x_27 = x_91; goto block_41; @@ -7066,7 +7166,7 @@ lean_inc_ref(x_14); lean_inc(x_13); lean_inc_ref(x_12); lean_inc(x_6); -x_99 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0(x_6, x_66, x_67, x_74, x_68, x_69, x_76, x_10, x_98, x_8, x_12, x_13, x_14, x_15, x_16, x_17, x_92); +x_99 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0(x_6, x_5, x_66, x_67, x_74, x_68, x_69, x_76, x_45, x_10, x_98, x_8, x_12, x_13, x_14, x_15, x_16, x_17, x_92); lean_dec_ref(x_69); x_27 = x_99; goto block_41; @@ -7148,7 +7248,7 @@ lean_inc_ref(x_14); lean_inc(x_13); lean_inc_ref(x_12); lean_inc(x_6); -x_121 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0(x_6, x_109, x_110, x_117, x_111, x_112, x_119, x_10, x_120, x_8, x_12, x_13, x_14, x_15, x_16, x_17, x_104); +x_121 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0(x_6, x_5, x_109, x_110, x_117, x_111, x_112, x_119, x_45, x_10, x_120, x_8, x_12, x_13, x_14, x_15, x_16, x_17, x_104); lean_dec_ref(x_112); x_27 = x_121; goto block_41; @@ -7209,7 +7309,7 @@ lean_inc_ref(x_14); lean_inc(x_13); lean_inc_ref(x_12); lean_inc(x_6); -x_135 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0(x_6, x_109, x_110, x_117, x_111, x_112, x_119, x_10, x_134, x_8, x_12, x_13, x_14, x_15, x_16, x_17, x_126); +x_135 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0(x_6, x_5, x_109, x_110, x_117, x_111, x_112, x_119, x_45, x_10, x_134, x_8, x_12, x_13, x_14, x_15, x_16, x_17, x_126); lean_dec_ref(x_112); x_27 = x_135; goto block_41; @@ -7527,12 +7627,16 @@ lean_object* x_14 = _args[13]; lean_object* x_15 = _args[14]; lean_object* x_16 = _args[15]; lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; _start: { -lean_object* x_18; -x_18 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -lean_dec_ref(x_6); -return x_18; +uint8_t x_20; lean_object* x_21; +x_20 = lean_unbox(x_9); +x_21 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_20, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +lean_dec_ref(x_7); +lean_dec_ref(x_2); +return x_21; } } LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___boxed(lean_object** _args) { @@ -8743,6 +8847,8 @@ l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkIns lean_mark_persistent(l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstImplicitBinders_spec__0___redArg___closed__4); l_Lean_Elab_Deriving_mkInstImplicitBinders___lam__0___closed__0 = _init_l_Lean_Elab_Deriving_mkInstImplicitBinders___lam__0___closed__0(); lean_mark_persistent(l_Lean_Elab_Deriving_mkInstImplicitBinders___lam__0___closed__0); +l_Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f___closed__0 = _init_l_Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f___closed__0(); +lean_mark_persistent(l_Lean_Elab_Deriving_Context_mkPrivateTokenFromTypes_x3f___closed__0); l_Lean_getConstInfo___at___Lean_getConstInfoInduct___at___Lean_Elab_Deriving_mkContext_spec__0_spec__0___closed__0 = _init_l_Lean_getConstInfo___at___Lean_getConstInfoInduct___at___Lean_Elab_Deriving_mkContext_spec__0_spec__0___closed__0(); lean_mark_persistent(l_Lean_getConstInfo___at___Lean_getConstInfoInduct___at___Lean_Elab_Deriving_mkContext_spec__0_spec__0___closed__0); l_Lean_getConstInfo___at___Lean_getConstInfoInduct___at___Lean_Elab_Deriving_mkContext_spec__0_spec__0___closed__1 = _init_l_Lean_getConstInfo___at___Lean_getConstInfoInduct___at___Lean_Elab_Deriving_mkContext_spec__0_spec__0___closed__1(); @@ -8833,6 +8939,10 @@ l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkIns lean_mark_persistent(l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__7); l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__8 = _init_l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__8(); lean_mark_persistent(l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__8); +l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__9 = _init_l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__9(); +lean_mark_persistent(l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__9); +l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__10 = _init_l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__10(); +lean_mark_persistent(l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Elab_Deriving_mkInstanceCmds_spec__0___redArg___lam__0___closed__10); l_Lean_Elab_Deriving_mkInstanceCmds___closed__0 = _init_l_Lean_Elab_Deriving_mkInstanceCmds___closed__0(); lean_mark_persistent(l_Lean_Elab_Deriving_mkInstanceCmds___closed__0); l_Lean_Elab_Deriving_mkDiscr___redArg___closed__0 = _init_l_Lean_Elab_Deriving_mkDiscr___redArg___closed__0(); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/PartialFixpoint/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/PartialFixpoint/Main.c index a7a9bc198e..50e4d02274 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/PartialFixpoint/Main.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/PartialFixpoint/Main.c @@ -14,25 +14,22 @@ extern "C" { #endif lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__9(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSorry(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_partialFixpoint___lam__4(lean_object*); lean_object* l_Lean_Elab_Mutual_cleanPreDef(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_partialFixpoint___closed__3; extern lean_object* l_Lean_Elab_instInhabitedPreDefinition; +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___lam__0(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkAppOptM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4___redArg___lam__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_replaceRecApps___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); lean_object* l_Lean_withEnv___at___Lean_Meta_evalExprCore_spec__3___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__0; -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15___boxed(lean_object**); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__10(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_withEnv___at___Lean_Elab_Term_evalTerm_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_initFn___closed__5____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; -static lean_object* l_initFn___closed__11____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__9; lean_object* l_Lean_Elab_Mutual_addPreDefAttributes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps_spec__2___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); @@ -41,51 +38,45 @@ lean_object* l_Array_reverse___redArg(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_partialFixpoint_spec__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_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___lam__0(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1___closed__3; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__10___boxed(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___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__12; -LEAN_EXPORT lean_object* l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__19___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_partialFixpoint___lam__3___closed__2; +LEAN_EXPORT lean_object* l_initFn____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(lean_object*); lean_object* l_Lean_indentD(lean_object*); uint8_t l_Array_isEmpty___redArg(lean_object*); uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at_____private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps_spec__0_spec__0___redArg___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_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__7___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Elab_partialFixpoint_spec__0_spec__0(lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__3; -static lean_object* l_initFn___closed__0____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; +static lean_object* l_initFn___closed__4____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; lean_object* l_Lean_Expr_sort___override(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_partialFixpoint_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13___redArg___boxed(lean_object**); lean_object* l_Lean_Meta_PProdN_genMk___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__8___redArg___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_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___Lean_Elab_partialFixpoint_spec__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12___redArg___boxed(lean_object**); lean_object* l_Lean_getRecAppSyntax_x3f(lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__14; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__12; -static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__7; -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_partialFixpoint___closed__1; +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, 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_Meta_PProdN_pack(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__6; lean_object* lean_mk_array(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_initFn____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(lean_object*); +static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__2; static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__9; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_toPartialOrder(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15___redArg___lam__0___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Elab_partialFixpoint___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_addAndCompilePartialRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___Lean_Elab_partialFixpoint_spec__3___redArg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__13; -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1___closed__12; static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_replaceRecApps___lam__0___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -94,32 +85,27 @@ lean_object* l_Lean_Expr_cleanupAnnotations(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_partialFixpoint_spec__2___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__4; -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15___redArg___boxed(lean_object**); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1___closed__14; LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___Lean_Elab_partialFixpoint_spec__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_EXPORT lean_object* l_Array_mapFinIdxM_map___at_____private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps_spec__0___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___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__8; static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__20; -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_PartialFixpoint_registerEqnsInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_____private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15___boxed(lean_object**); lean_object* l_Lean_Level_ofNat(lean_object*); -static lean_object* l_initFn___closed__6____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4___redArg___lam__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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__16___redArg(uint8_t, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__11; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermEnsuringType___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_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg(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_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___closed__1; +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14___redArg___boxed(lean_object**); static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__11; static lean_object* l_Lean_Elab_partialFixpoint___closed__0; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__10(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__16___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__5; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17(uint8_t, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17(size_t, size_t, lean_object*); lean_object* l_Lean_Elab_FixedParamPerm_instantiateLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(lean_object*, lean_object*, lean_object*); @@ -127,18 +113,17 @@ LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint static lean_object* l_Lean_Elab_partialFixpoint___lam__3___closed__3; lean_object* l_Lean_Environment_unlockAsync(lean_object*); lean_object* l_Array_finIdxOf_x3f___at___Array_erase___at___Lean_getAllParentStructures___at___Lean_Server_Completion_getDotCompletionTypeNames_visit_spec__0_spec__27_spec__27(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__9(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1___closed__9; lean_object* l_Lean_Meta_mkPackedPPRodInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1___closed__13; +static lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___closed__1; lean_object* lean_replace_expr(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__5; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___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_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1___closed__8; static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_partialFixpoint___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__7; +LEAN_EXPORT lean_object* l_Lean_Elab_partialFixpoint___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__13; uint8_t lean_expr_eqv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_partialFixpoint___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -149,9 +134,11 @@ static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__ static lean_object* l_Lean_Elab_partialFixpoint___lam__3___closed__1; static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1___closed__11; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_replaceRecApps___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___boxed(lean_object**); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps_spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_PProdN_proj(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofSyntax(lean_object*); +static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__3; lean_object* l_Array_empty(lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__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* l_Lean_throwError___at___Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -160,11 +147,14 @@ lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___lam__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*); lean_object* l_panic___at___Lean_Elab_Term_reportStuckSyntheticMVar_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1___closed__2; -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_initFn___closed__7____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; lean_object* l_Lean_Meta_withLocalDeclD___at___Lean_Elab_Term_ToDepElimPattern_main_unpack_go_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_initFn___closed__12____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__3; +static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__5; lean_object* l_Lean_MessageData_andList(lean_object*); +static lean_object* l_initFn___closed__1____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__7; static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__20; @@ -172,11 +162,12 @@ static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__18; static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_replaceRecApps___closed__1; lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1___closed__5; -static lean_object* l_initFn___closed__12____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_replaceRecApps___closed__0; lean_object* l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15___redArg___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14___redArg___lam__0___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at_____private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps_spec__0_spec__0___redArg___lam__0(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1___closed__6; lean_object* lean_array_to_list(lean_object*); @@ -190,64 +181,69 @@ LEAN_EXPORT lean_object* l_Lean_Elab_partialFixpoint(lean_object*, lean_object*, lean_object* l_Lean_Name_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__8___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___boxed(lean_object**); -static lean_object* l_initFn___closed__14____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___Lean_Elab_partialFixpoint_spec__3___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFixOfMonFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_initFn___closed__14____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; +static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__4; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_idxOf_x3f___at_____private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_replaceRecApps_spec__0___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_FixedParamPerm_instantiateForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_replaceRecApps___lam__0___closed__0; -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_constName_x21(lean_object*); extern lean_object* l_Lean_instInhabitedExpr; +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at_____private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, 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___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__2; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__18___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___closed__0; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__0; static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__0; lean_object* l_Lean_Meta_mapErrorImp___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Mutual_addPreDefsFromUnary(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_filterMapM___at___Lean_Elab_partialFixpoint_spec__0(lean_object*, lean_object*, lean_object*); -static lean_object* l_initFn___closed__7____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; +static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__6; static lean_object* l_Lean_Elab_partialFixpoint___lam__3___closed__4; lean_object* l_Lean_Meta_forallBoundedTelescope___at___Lean_Elab_Term_addAutoBoundImplicits_x27_spec__1___redArg(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_mapTR_loop___at___Lean_Elab_partialFixpoint_spec__6___closed__1; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__7___redArg___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_initFn___closed__13____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; static lean_object* l_Lean_Elab_partialFixpoint___lam__3___closed__0; extern lean_object* l_Lean_Elab_instInhabitedPartialFixpoint; static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_partialFixpoint___lam__4___boxed(lean_object*); +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__19(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___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_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__1; LEAN_EXPORT lean_object* l_List_mapTR_loop___at___Lean_Elab_partialFixpoint_spec__6(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__5; lean_object* l_Lean_Meta_mkInstPiOfInstForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___closed__0; +static lean_object* l_initFn___closed__3____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__16; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___boxed(lean_object**); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at_____private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps_spec__0_spec__0___redArg___lam__0___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* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_partialFixpoint___lam__3___closed__7; static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__6; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17___redArg(uint8_t, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, 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_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__19; static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__10; +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14___boxed(lean_object**); lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t); -static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__2; +lean_object* l_StateRefT_x27_lift___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_replaceRecApps___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_initFn___closed__2____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; lean_object* l_Lean_MessageData_ofExpr(lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__12; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___lam__0(lean_object*, lean_object*); lean_object* l_Lean_Core_betaReduce(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__9___boxed(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___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__7; lean_object* l_Lean_hasRecAppSyntax___boxed(lean_object*); static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__19; static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__10; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__9___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__10___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgs(lean_object*); lean_object* l_Lean_Meta_lambdaBoundedTelescope___at___Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_245__spec__0___redArg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_partialFixpoint___closed__2; @@ -255,84 +251,86 @@ static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__ lean_object* l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__16___boxed(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_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1___closed__1; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_FixedParamPerm_pickVarying___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Elab_FixedParamPerm_buildArgs___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__19___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appFnCleanup___redArg(lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__10; -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__0; lean_object* l_Lean_Elab_mkInhabitantFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_initFn___closed__8____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_mapTR_loop___at___Lean_Elab_partialFixpoint_spec__6___closed__0; static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__17; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +static lean_object* l_initFn___closed__8____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__3; static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -static lean_object* l_initFn___closed__4____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; lean_object* l_Lean_Elab_getFixedParamPerms(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, 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_panic___at___Lean_Meta_PProdN_packLambdas_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__5; static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__1; static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__14; -static lean_object* l_initFn___closed__9____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); +static lean_object* l_initFn___closed__11____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; uint8_t l_Lean_Elab_FixedParamPerms_fixedArePrefix(lean_object*); lean_object* l_Lean_indentExpr(lean_object*); -static lean_object* l_initFn___closed__1____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4___redArg___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_initFn___closed__9____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_PartialFixpoint_registerEqnsInfo_spec__0(size_t, size_t, lean_object*); +static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__1; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_initFn___closed__3____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__18___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instInhabitedMetaM___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__8; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4___redArg(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_Meta_PProdN_reduceProjs(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_initFn___closed__6____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; lean_object* l_List_reverse___redArg(lean_object*); lean_object* l_List_mapTR_loop___at___Lean_mkConstWithLevelParams___at___Lean_Meta_mkSimpCongrTheorem_spec__1_spec__2(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -static lean_object* l_initFn___closed__13____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_____private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps_spec__0___redArg___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_Expr_getAppFn(lean_object*); uint8_t l_Lean_Expr_isProp(lean_object*); lean_object* l_Lean_Meta_PProdN_mk(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_replaceRecApps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_partialFixpoint___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___redArg(lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_initFn___closed__2____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; LEAN_EXPORT lean_object* l_Lean_Elab_partialFixpoint___boxed__const__1; +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_filterMapM___at___Lean_Elab_partialFixpoint_spec__0___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_initFn___closed__10____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, 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_initFn___closed__0____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__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*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__15; -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__20(lean_object*, lean_object*, size_t, size_t); +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__20(lean_object*, uint8_t, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_____private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at_____private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__9___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_FixedParams_0__Lean_Elab_FixedParamPerm_forallTelescopeImpl___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__8; lean_object* l_Lean_Elab_FixedParamPerm_pickFixed___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14___boxed(lean_object**); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_addAsAxiom___redArg(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* l_Lean_Meta_getMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__21(lean_object*, uint8_t, lean_object*, size_t, size_t); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1___closed__15; +static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__0; static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__1; static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Elab_partialFixpoint_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -341,10 +339,9 @@ size_t lean_array_size(lean_object*); LEAN_EXPORT lean_object* l_Array_idxOf_x3f___at_____private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_replaceRecApps_spec__0(lean_object*, lean_object*); static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__8; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, 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_initFn___closed__10____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; lean_object* l_Lean_Name_mkStr1(lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -358,38 +355,40 @@ lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_obje lean_object* lean_find_expr(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__0; -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__18___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12___boxed(lean_object**); uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_partialFixpoint___lam__3___boxed(lean_object**); lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__18(size_t, size_t, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1___closed__0; -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___boxed(lean_object**); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___boxed(lean_object**); uint8_t l_Lean_Expr_isConst(lean_object*); uint8_t l_Lean_Exception_isRuntime(lean_object*); static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__16; +static lean_object* l_Lean_Elab_partialFixpoint___lam__3___closed__6; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__16(uint8_t, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14___redArg___boxed(lean_object**); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___lam__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*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__2; static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__11; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_partialFixpoint___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_partialFixpoint___lam__1___closed__6; +lean_object* l_ReaderT_instMonadLift___lam__0___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofName(lean_object*); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__17; static lean_object* l_Array_filterMapM___at___Lean_Elab_partialFixpoint_spec__0___closed__0; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__10___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_partialFixpoint___lam__3___closed__5; static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__18; lean_object* lean_mk_empty_array_with_capacity(lean_object*); -static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__3; -static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__8; static lean_object* l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_replaceRecApps___closed__3; static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__7; -static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__6; +static lean_object* l_initFn___closed__5____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_isLatticeTheoretic(uint8_t); static lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__9; @@ -3180,558 +3179,6 @@ block_78: if (x_49 == 0) { lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -lean_dec_ref(x_47); -x_50 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__10; -x_51 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_50, x_10, x_48); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_unbox(x_52); -lean_dec(x_52); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; -lean_dec(x_18); -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -lean_dec_ref(x_51); -x_55 = lean_box(0); -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); -x_56 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1(x_13, x_14, x_4, x_45, x_46, x_55, x_6, x_7, x_8, x_9, x_10, x_11, x_54); -x_40 = x_56; -goto block_44; -} -else -{ -uint8_t x_57; -x_57 = !lean_is_exclusive(x_51); -if (x_57 == 0) -{ -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; -x_58 = lean_ctor_get(x_51, 1); -x_59 = lean_ctor_get(x_51, 0); -lean_dec(x_59); -x_60 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__12; -lean_inc(x_13); -x_61 = l_Lean_MessageData_ofName(x_13); -lean_ctor_set_tag(x_51, 7); -lean_ctor_set(x_51, 1, x_61); -lean_ctor_set(x_51, 0, x_60); -x_62 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__14; -if (lean_is_scalar(x_18)) { - x_63 = lean_alloc_ctor(7, 2, 0); -} else { - x_63 = x_18; - lean_ctor_set_tag(x_63, 7); -} -lean_ctor_set(x_63, 0, x_51); -lean_ctor_set(x_63, 1, x_62); -x_64 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_50, x_63, x_8, x_9, x_10, x_11, x_58); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec_ref(x_64); -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); -x_67 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1(x_13, x_14, x_4, x_45, x_46, x_65, x_6, x_7, x_8, x_9, x_10, x_11, x_66); -lean_dec(x_65); -x_40 = x_67; -goto block_44; -} -else -{ -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; -x_68 = lean_ctor_get(x_51, 1); -lean_inc(x_68); -lean_dec(x_51); -x_69 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__12; -lean_inc(x_13); -x_70 = l_Lean_MessageData_ofName(x_13); -x_71 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -x_72 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__14; -if (lean_is_scalar(x_18)) { - x_73 = lean_alloc_ctor(7, 2, 0); -} else { - x_73 = x_18; - lean_ctor_set_tag(x_73, 7); -} -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -x_74 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_50, x_73, x_8, x_9, x_10, x_11, x_68); -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); -lean_dec_ref(x_74); -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); -x_77 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1(x_13, x_14, x_4, x_45, x_46, x_75, x_6, x_7, x_8, x_9, x_10, x_11, x_76); -lean_dec(x_75); -x_40 = x_77; -goto block_44; -} -} -} -else -{ -lean_dec(x_18); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_6); -lean_dec_ref(x_4); -return x_47; -} -} -block_87: -{ -if (lean_obj_tag(x_79) == 0) -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; -lean_dec(x_18); -lean_dec_ref(x_14); -lean_dec(x_13); -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 1); -lean_inc(x_81); -lean_dec_ref(x_79); -x_82 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__0(x_4, x_3, x_80, x_6, x_7, x_8, x_9, x_10, x_11, x_81); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_6); -return x_82; -} -else -{ -lean_object* x_83; lean_object* x_84; uint8_t x_85; -x_83 = lean_ctor_get(x_79, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_79, 1); -lean_inc(x_84); -x_85 = l_Lean_Exception_isInterrupt(x_83); -if (x_85 == 0) -{ -uint8_t x_86; -x_86 = l_Lean_Exception_isRuntime(x_83); -lean_dec(x_83); -x_47 = x_79; -x_48 = x_84; -x_49 = x_86; -goto block_78; -} -else -{ -lean_dec(x_83); -x_47 = x_79; -x_48 = x_84; -x_49 = x_85; -goto block_78; -} -} -} -} -case 1: -{ -uint8_t x_96; -lean_dec(x_18); -lean_dec_ref(x_14); -lean_dec(x_13); -x_96 = l_Lean_Expr_isProp(x_16); -lean_dec(x_16); -if (x_96 == 0) -{ -lean_object* x_97; lean_object* x_98; uint8_t x_99; -lean_dec_ref(x_4); -x_97 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__18; -x_98 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_97, x_6, x_7, x_8, x_9, x_10, x_11, x_17); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -x_99 = !lean_is_exclusive(x_98); -if (x_99 == 0) -{ -return x_98; -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_98, 0); -x_101 = lean_ctor_get(x_98, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_98); -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -return x_102; -} -} -else -{ -x_30 = x_6; -x_31 = x_7; -x_32 = x_8; -x_33 = x_9; -x_34 = x_10; -x_35 = x_11; -x_36 = x_17; -goto block_39; -} -} -default: -{ -uint8_t x_103; -lean_dec(x_18); -lean_dec_ref(x_14); -lean_dec(x_13); -x_103 = l_Lean_Expr_isProp(x_16); -lean_dec(x_16); -if (x_103 == 0) -{ -lean_object* x_104; lean_object* x_105; uint8_t x_106; -lean_dec_ref(x_4); -x_104 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__20; -x_105 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_104, x_6, x_7, x_8, x_9, x_10, x_11, x_17); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -x_106 = !lean_is_exclusive(x_105); -if (x_106 == 0) -{ -return x_105; -} -else -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_105, 0); -x_108 = lean_ctor_get(x_105, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_105); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_107); -lean_ctor_set(x_109, 1, x_108); -return x_109; -} -} -else -{ -x_20 = x_6; -x_21 = x_7; -x_22 = x_8; -x_23 = x_9; -x_24 = x_10; -x_25 = x_11; -x_26 = x_17; -goto block_29; -} -} -} -block_29: -{ -lean_object* x_27; lean_object* x_28; -x_27 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__3; -x_28 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__0(x_4, x_3, x_27, x_20, x_21, x_22, x_23, x_24, x_25, x_26); -lean_dec(x_25); -lean_dec_ref(x_24); -lean_dec(x_23); -lean_dec_ref(x_22); -lean_dec_ref(x_20); -return x_28; -} -block_39: -{ -lean_object* x_37; lean_object* x_38; -x_37 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__6; -x_38 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__0(x_4, x_3, x_37, x_30, x_31, x_32, x_33, x_34, x_35, x_36); -lean_dec(x_35); -lean_dec_ref(x_34); -lean_dec(x_33); -lean_dec_ref(x_32); -lean_dec_ref(x_30); -return x_38; -} -block_44: -{ -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec_ref(x_40); -x_43 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__0(x_4, x_3, x_41, x_6, x_7, x_8, x_9, x_10, x_11, x_42); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_6); -return x_43; -} -else -{ -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_6); -lean_dec_ref(x_4); -return x_40; -} -} -} -else -{ -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_6); -lean_dec_ref(x_4); -return x_15; -} -} -} -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg(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 = lean_unsigned_to_nat(0u); -x_14 = lean_nat_dec_eq(x_3, x_13); -if (x_14 == 1) -{ -lean_object* x_15; -lean_dec(x_11); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_4); -lean_dec(x_3); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_5); -lean_ctor_set(x_15, 1, x_12); -return x_15; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; uint8_t 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; -x_16 = l_Lean_Elab_instInhabitedPartialFixpoint; -x_17 = lean_array_get(x_16, x_1, x_4); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_array_fget(x_2, x_4); -x_20 = lean_ctor_get(x_19, 5); -lean_inc_ref(x_20); -x_21 = lean_ctor_get(x_10, 0); -x_22 = lean_ctor_get(x_10, 1); -x_23 = lean_ctor_get(x_10, 2); -x_24 = lean_ctor_get(x_10, 3); -x_25 = lean_ctor_get(x_10, 4); -x_26 = lean_ctor_get(x_10, 5); -x_27 = lean_ctor_get(x_10, 6); -x_28 = lean_ctor_get(x_10, 7); -x_29 = lean_ctor_get(x_10, 8); -x_30 = lean_ctor_get(x_10, 9); -x_31 = lean_ctor_get(x_10, 10); -x_32 = lean_ctor_get_uint8(x_10, sizeof(void*)*13); -x_33 = lean_ctor_get(x_10, 11); -x_34 = lean_ctor_get_uint8(x_10, sizeof(void*)*13 + 1); -x_35 = lean_ctor_get(x_10, 12); -x_36 = lean_box(x_14); -x_37 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___boxed), 12, 3); -lean_closure_set(x_37, 0, x_19); -lean_closure_set(x_37, 1, x_17); -lean_closure_set(x_37, 2, x_36); -x_38 = l_Lean_replaceRef(x_18, x_26); -lean_dec(x_18); -lean_inc_ref(x_35); -lean_inc(x_33); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_inc_ref(x_22); -lean_inc_ref(x_21); -x_39 = lean_alloc_ctor(0, 13, 2); -lean_ctor_set(x_39, 0, x_21); -lean_ctor_set(x_39, 1, x_22); -lean_ctor_set(x_39, 2, x_23); -lean_ctor_set(x_39, 3, x_24); -lean_ctor_set(x_39, 4, x_25); -lean_ctor_set(x_39, 5, x_38); -lean_ctor_set(x_39, 6, x_27); -lean_ctor_set(x_39, 7, x_28); -lean_ctor_set(x_39, 8, x_29); -lean_ctor_set(x_39, 9, x_30); -lean_ctor_set(x_39, 10, x_31); -lean_ctor_set(x_39, 11, x_33); -lean_ctor_set(x_39, 12, x_35); -lean_ctor_set_uint8(x_39, sizeof(void*)*13, x_32); -lean_ctor_set_uint8(x_39, sizeof(void*)*13 + 1, x_34); -lean_inc(x_11); -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -lean_inc_ref(x_6); -x_40 = l_Lean_Meta_lambdaTelescope___at___Lean_Elab_partialFixpoint_spec__3___redArg(x_20, x_37, x_14, x_6, x_7, x_8, x_9, x_39, x_11, x_12); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec_ref(x_40); -x_43 = lean_unsigned_to_nat(1u); -x_44 = lean_nat_sub(x_3, x_43); -lean_dec(x_3); -x_45 = lean_nat_add(x_4, x_43); -lean_dec(x_4); -x_46 = lean_array_push(x_5, x_41); -x_3 = x_44; -x_4 = x_45; -x_5 = x_46; -x_12 = x_42; -goto _start; -} -else -{ -uint8_t x_48; -lean_dec(x_11); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_48 = !lean_is_exclusive(x_40); -if (x_48 == 0) -{ -return x_40; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_40, 0); -x_50 = lean_ctor_get(x_40, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_40); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; -x_14 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg(x_1, x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4___redArg___lam__2(lean_object* x_1, lean_object* x_2, uint8_t 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; -x_13 = lean_ctor_get(x_1, 3); -lean_inc(x_13); -x_14 = lean_ctor_get(x_1, 4); -lean_inc_ref(x_14); -lean_dec_ref(x_1); -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc_ref(x_14); -x_15 = l_Lean_Meta_instantiateForall(x_14, x_4, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t 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_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_40; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -if (lean_is_exclusive(x_15)) { - lean_ctor_release(x_15, 0); - lean_ctor_release(x_15, 1); - x_18 = x_15; -} else { - lean_dec_ref(x_15); - x_18 = lean_box(0); -} -x_19 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); -switch (x_19) { -case 0: -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_79; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_45 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__2; -x_46 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__3; -x_88 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__16; -x_89 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__1___closed__8; -x_90 = lean_array_push(x_89, x_16); -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); -x_91 = l_Lean_Meta_mkAppM(x_88, x_90, x_8, x_9, x_10, x_11, x_17); -if (lean_obj_tag(x_91) == 0) -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -lean_dec_ref(x_91); -x_94 = lean_box(0); -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); -x_95 = l_Lean_Meta_synthInstance(x_92, x_94, x_8, x_9, x_10, x_11, x_93); -x_79 = x_95; -goto block_87; -} -else -{ -x_79 = x_91; -goto block_87; -} -block_78: -{ -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; lean_dec_ref(x_48); x_50 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__10; x_51 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_50, x_10, x_47); @@ -4064,6 +3511,154 @@ return x_15; } } } +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg(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 = lean_unsigned_to_nat(0u); +x_14 = lean_nat_dec_eq(x_3, x_13); +if (x_14 == 1) +{ +lean_object* x_15; +lean_dec(x_11); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_4); +lean_dec(x_3); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_5); +lean_ctor_set(x_15, 1, x_12); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; uint8_t 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; +x_16 = l_Lean_Elab_instInhabitedPartialFixpoint; +x_17 = lean_array_get(x_16, x_1, x_4); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_array_fget(x_2, x_4); +x_20 = lean_ctor_get(x_19, 5); +lean_inc_ref(x_20); +x_21 = lean_ctor_get(x_10, 0); +x_22 = lean_ctor_get(x_10, 1); +x_23 = lean_ctor_get(x_10, 2); +x_24 = lean_ctor_get(x_10, 3); +x_25 = lean_ctor_get(x_10, 4); +x_26 = lean_ctor_get(x_10, 5); +x_27 = lean_ctor_get(x_10, 6); +x_28 = lean_ctor_get(x_10, 7); +x_29 = lean_ctor_get(x_10, 8); +x_30 = lean_ctor_get(x_10, 9); +x_31 = lean_ctor_get(x_10, 10); +x_32 = lean_ctor_get_uint8(x_10, sizeof(void*)*13); +x_33 = lean_ctor_get(x_10, 11); +x_34 = lean_ctor_get_uint8(x_10, sizeof(void*)*13 + 1); +x_35 = lean_ctor_get(x_10, 12); +x_36 = lean_box(x_14); +x_37 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___boxed), 12, 3); +lean_closure_set(x_37, 0, x_19); +lean_closure_set(x_37, 1, x_17); +lean_closure_set(x_37, 2, x_36); +x_38 = l_Lean_replaceRef(x_18, x_26); +lean_dec(x_18); +lean_inc_ref(x_35); +lean_inc(x_33); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc_ref(x_22); +lean_inc_ref(x_21); +x_39 = lean_alloc_ctor(0, 13, 2); +lean_ctor_set(x_39, 0, x_21); +lean_ctor_set(x_39, 1, x_22); +lean_ctor_set(x_39, 2, x_23); +lean_ctor_set(x_39, 3, x_24); +lean_ctor_set(x_39, 4, x_25); +lean_ctor_set(x_39, 5, x_38); +lean_ctor_set(x_39, 6, x_27); +lean_ctor_set(x_39, 7, x_28); +lean_ctor_set(x_39, 8, x_29); +lean_ctor_set(x_39, 9, x_30); +lean_ctor_set(x_39, 10, x_31); +lean_ctor_set(x_39, 11, x_33); +lean_ctor_set(x_39, 12, x_35); +lean_ctor_set_uint8(x_39, sizeof(void*)*13, x_32); +lean_ctor_set_uint8(x_39, sizeof(void*)*13 + 1, x_34); +lean_inc(x_11); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +lean_inc_ref(x_6); +x_40 = l_Lean_Meta_lambdaTelescope___at___Lean_Elab_partialFixpoint_spec__3___redArg(x_20, x_37, x_14, x_6, x_7, x_8, x_9, x_39, x_11, x_12); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec_ref(x_40); +x_43 = lean_unsigned_to_nat(1u); +x_44 = lean_nat_sub(x_3, x_43); +lean_dec(x_3); +x_45 = lean_nat_add(x_4, x_43); +lean_dec(x_4); +x_46 = lean_array_push(x_5, x_41); +x_3 = x_44; +x_4 = x_45; +x_5 = x_46; +x_12 = x_42; +goto _start; +} +else +{ +uint8_t x_48; +lean_dec(x_11); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_48 = !lean_is_exclusive(x_40); +if (x_48 == 0) +{ +return x_40; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_40, 0); +x_50 = lean_ctor_get(x_40, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_40); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg(x_1, x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_14; +} +} LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4___redArg(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: { @@ -4109,7 +3704,7 @@ x_33 = lean_ctor_get(x_10, 11); x_34 = lean_ctor_get_uint8(x_10, sizeof(void*)*13 + 1); x_35 = lean_ctor_get(x_10, 12); x_36 = lean_box(x_14); -x_37 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4___redArg___lam__2___boxed), 12, 3); +x_37 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___boxed), 12, 3); lean_closure_set(x_37, 0, x_19); lean_closure_set(x_37, 1, x_17); lean_closure_set(x_37, 2, x_36); @@ -4479,62 +4074,7 @@ x_16 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__8___redArg( return x_16; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__9___redArg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; -x_8 = lean_usize_dec_eq(x_2, x_3); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_array_uget(x_1, x_2); -lean_inc(x_6); -lean_inc_ref(x_5); -x_10 = l_Lean_Elab_addAsAxiom___redArg(x_9, x_5, x_6, x_7); -lean_dec_ref(x_9); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; size_t x_13; size_t x_14; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec_ref(x_10); -x_13 = 1; -x_14 = lean_usize_add(x_2, x_13); -x_2 = x_14; -x_4 = x_11; -x_7 = x_12; -goto _start; -} -else -{ -lean_dec(x_6); -lean_dec_ref(x_5); -return x_10; -} -} -else -{ -lean_object* x_16; -lean_dec(x_6); -lean_dec_ref(x_5); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_4); -lean_ctor_set(x_16, 1, x_7); -return x_16; -} -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__9(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__9___redArg(x_1, x_2, x_3, x_4, x_9, x_10, x_11); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__10(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__9(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; @@ -4618,7 +4158,62 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__10___redArg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; +x_8 = lean_usize_dec_eq(x_2, x_3); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_array_uget(x_1, x_2); +lean_inc(x_6); +lean_inc_ref(x_5); +x_10 = l_Lean_Elab_addAsAxiom___redArg(x_9, x_5, x_6, x_7); +lean_dec_ref(x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; size_t x_13; size_t x_14; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec_ref(x_10); +x_13 = 1; +x_14 = lean_usize_add(x_2, x_13); +x_2 = x_14; +x_4 = x_11; +x_7 = x_12; +goto _start; +} +else +{ +lean_dec(x_6); +lean_dec_ref(x_5); +return x_10; +} +} +else +{ +lean_object* x_16; +lean_dec(x_6); +lean_dec_ref(x_5); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_4); +lean_ctor_set(x_16, 1, x_7); +return x_16; +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__10(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__10___redArg(x_1, x_2, x_3, x_4, x_9, x_10, x_11); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { uint8_t x_15; @@ -4649,7 +4244,7 @@ x_21 = 0; x_22 = lean_usize_of_nat(x_2); lean_inc(x_13); lean_inc_ref(x_12); -x_23 = l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__9___redArg(x_7, x_21, x_22, x_20, x_12, x_13, x_14); +x_23 = l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__10___redArg(x_7, x_21, x_22, x_20, x_12, x_13, x_14); if (lean_obj_tag(x_23) == 0) { lean_object* x_24; lean_object* x_25; @@ -4692,7 +4287,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___lam__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, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___lam__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, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; @@ -4706,7 +4301,7 @@ x_19 = lean_ctor_get(x_17, 0); lean_inc_ref(x_19); lean_dec(x_17); lean_inc_ref(x_8); -x_20 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___lam__0___boxed), 14, 7); +x_20 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___lam__0___boxed), 14, 7); lean_closure_set(x_20, 0, x_1); lean_closure_set(x_20, 1, x_2); lean_closure_set(x_20, 2, x_3); @@ -4750,7 +4345,7 @@ return x_22; } } } -static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___closed__0() { +static lean_object* _init_l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___closed__0() { _start: { lean_object* x_1; @@ -4758,16 +4353,16 @@ x_1 = lean_mk_string_unchecked("f", 1, 1); return x_1; } } -static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___closed__1() { +static lean_object* _init_l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___closed__0; +x_1 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___closed__0; x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { _start: { lean_object* x_21; uint8_t x_22; @@ -4823,7 +4418,7 @@ lean_inc(x_41); x_42 = lean_ctor_get(x_40, 1); lean_inc(x_42); lean_dec_ref(x_40); -x_43 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___closed__1; +x_43 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___closed__1; x_44 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp___redArg(x_43, x_19, x_42); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); @@ -4836,7 +4431,7 @@ lean_inc_ref(x_7); lean_inc_ref(x_6); lean_inc(x_5); lean_inc(x_4); -x_48 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___lam__1___boxed), 15, 7); +x_48 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___lam__1___boxed), 15, 7); lean_closure_set(x_48, 0, x_4); lean_closure_set(x_48, 1, x_5); lean_closure_set(x_48, 2, x_6); @@ -4922,170 +4517,15 @@ return x_37; } } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21) { _start: { lean_object* x_22; -x_22 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg(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_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +x_22 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg(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_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); return x_22; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { -_start: -{ -lean_object* x_21; uint8_t x_22; -x_21 = lean_unsigned_to_nat(0u); -x_22 = lean_nat_dec_eq(x_11, x_21); -if (x_22 == 1) -{ -lean_object* x_23; -lean_dec(x_19); -lean_dec_ref(x_18); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec_ref(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -lean_dec_ref(x_1); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_13); -lean_ctor_set(x_23, 1, x_20); -return x_23; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_39; lean_object* x_40; -x_24 = lean_array_fget(x_10, x_12); -x_25 = lean_ctor_get(x_24, 5); -lean_inc_ref(x_25); -lean_dec_ref(x_24); -x_26 = lean_unsigned_to_nat(1u); -x_27 = lean_nat_sub(x_11, x_26); -lean_inc_ref(x_1); -x_39 = lean_array_get(x_1, x_2, x_12); -lean_inc(x_19); -lean_inc_ref(x_18); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc_ref(x_3); -x_40 = l_Lean_Elab_FixedParamPerm_instantiateLambda(x_39, x_25, x_3, x_16, x_17, x_18, x_19, x_20); -if (lean_obj_tag(x_40) == 0) -{ -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; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec_ref(x_40); -x_43 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___closed__1; -x_44 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp___redArg(x_43, x_19, x_42); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec_ref(x_44); -x_47 = lean_box(x_22); -lean_inc_ref(x_8); -lean_inc_ref(x_7); -lean_inc_ref(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_48 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___lam__1___boxed), 15, 7); -lean_closure_set(x_48, 0, x_4); -lean_closure_set(x_48, 1, x_5); -lean_closure_set(x_48, 2, x_6); -lean_closure_set(x_48, 3, x_7); -lean_closure_set(x_48, 4, x_41); -lean_closure_set(x_48, 5, x_8); -lean_closure_set(x_48, 6, x_47); -lean_inc(x_19); -lean_inc_ref(x_18); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc_ref(x_9); -x_49 = l_Lean_Meta_withLocalDeclD___at___Lean_Elab_Term_ToDepElimPattern_main_unpack_go_spec__0___redArg(x_45, x_9, x_48, x_14, x_15, x_16, x_17, x_18, x_19, x_46); -x_28 = x_49; -goto block_38; -} -else -{ -x_28 = x_40; -goto block_38; -} -block_38: -{ -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec_ref(x_28); -x_31 = lean_nat_add(x_12, x_26); -x_32 = lean_array_push(x_13, x_29); -x_33 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_27, x_31, x_32, x_14, x_15, x_16, x_17, x_18, x_19, x_30); -return x_33; -} -else -{ -uint8_t x_34; -lean_dec(x_27); -lean_dec(x_19); -lean_dec_ref(x_18); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -lean_dec_ref(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -lean_dec_ref(x_1); -x_34 = !lean_is_exclusive(x_28); -if (x_34 == 0) -{ -return x_28; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_28, 0); -x_36 = lean_ctor_get(x_28, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_28); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21, lean_object* x_22, lean_object* x_23) { -_start: -{ -lean_object* x_24; -x_24 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_11, x_12, x_13, x_14, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23); -return x_24; -} -} -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___lam__0(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___lam__0(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; @@ -5106,7 +4546,7 @@ lean_ctor_set(x_8, 1, x_3); return x_8; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___lam__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_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; @@ -5114,7 +4554,7 @@ x_8 = l_Lean_Meta_Monotonicity_solveMono(x_1, x_2, x_3, x_4, x_5, x_6, x_7); return x_8; } } -static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__0() { +static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__0() { _start: { lean_object* x_1; lean_object* x_2; @@ -5123,7 +4563,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__1() { +static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__1() { _start: { lean_object* x_1; @@ -5131,16 +4571,16 @@ x_1 = lean_mk_string_unchecked("Could not prove '", 17, 17); return x_1; } } -static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__2() { +static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__1; +x_1 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__3() { +static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__3() { _start: { lean_object* x_1; @@ -5148,16 +4588,16 @@ x_1 = lean_mk_string_unchecked("' to be monotone in its recursive calls:", 40, 4 return x_1; } } -static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__4() { +static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__3; +x_1 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__5() { +static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__5() { _start: { lean_object* x_1; @@ -5165,16 +4605,16 @@ x_1 = lean_mk_string_unchecked("monotonicity proof for ", 23, 23); return x_1; } } -static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__6() { +static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__5; +x_1 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__5; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__7() { +static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__7() { _start: { lean_object* x_1; @@ -5182,589 +4622,588 @@ x_1 = lean_mk_string_unchecked(": ", 2, 2); return x_1; } } -static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__8() { +static lean_object* _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__7; +x_1 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__7; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg(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, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { _start: { -lean_object* x_19; uint8_t x_20; -x_19 = lean_unsigned_to_nat(0u); -x_20 = lean_nat_dec_eq(x_9, x_19); -if (x_20 == 1) +lean_object* x_20; uint8_t x_21; +x_20 = lean_unsigned_to_nat(0u); +x_21 = lean_nat_dec_eq(x_10, x_20); +if (x_21 == 1) { -lean_object* x_21; -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec_ref(x_12); +lean_object* x_22; +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_11); -lean_ctor_set(x_21, 1, x_18); -return x_21; +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_12); +lean_ctor_set(x_22, 1, x_19); +return x_22; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_22 = l_Lean_instInhabitedExpr; -x_23 = lean_array_get(x_22, x_1, x_10); -x_24 = lean_array_get(x_22, x_2, x_10); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_23); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc_ref(x_25); -x_26 = l_Lean_Meta_toPartialOrder(x_24, x_25, x_14, x_15, x_16, x_17, x_18); -if (lean_obj_tag(x_26) == 0) +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = l_Lean_instInhabitedExpr; +x_24 = lean_array_get(x_23, x_1, x_11); +x_25 = lean_array_get(x_23, x_2, x_11); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_24); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_26); +x_27 = l_Lean_Meta_toPartialOrder(x_25, x_26, x_15, x_16, x_17, x_18, x_19); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); +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; +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec_ref(x_26); -x_29 = lean_array_get(x_22, x_3, x_10); -x_30 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__5; +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec_ref(x_27); +x_30 = lean_array_get(x_23, x_3, x_11); +x_31 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__5; lean_inc_ref(x_4); -x_31 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_31, 0, x_4); -lean_inc_ref(x_5); x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_5); +lean_ctor_set(x_32, 0, x_4); +lean_inc_ref(x_5); x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_27); +lean_ctor_set(x_33, 0, x_5); x_34 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_34, 0, x_29); -x_35 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__0; -x_36 = lean_array_push(x_35, x_31); +lean_ctor_set(x_34, 0, x_28); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_30); +x_36 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__0; x_37 = lean_array_push(x_36, x_32); -x_38 = lean_array_push(x_37, x_25); -x_39 = lean_array_push(x_38, x_33); +x_38 = lean_array_push(x_37, x_33); +x_39 = lean_array_push(x_38, x_26); x_40 = lean_array_push(x_39, x_34); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -x_41 = l_Lean_Meta_mkAppOptM(x_30, x_40, x_14, x_15, x_16, x_17, x_28); -if (lean_obj_tag(x_41) == 0) +x_41 = lean_array_push(x_40, x_35); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +x_42 = l_Lean_Meta_mkAppOptM(x_31, x_41, x_15, x_16, x_17, x_18, x_29); +if (lean_obj_tag(x_42) == 0) { -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; -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); +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; +x_43 = lean_ctor_get(x_42, 0); lean_inc(x_43); -lean_dec_ref(x_41); -x_44 = l_Lean_Elab_instInhabitedPartialFixpoint; -x_45 = lean_array_get(x_44, x_6, x_10); -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -lean_dec_ref(x_45); -x_47 = lean_unsigned_to_nat(1u); -x_48 = lean_nat_sub(x_9, x_47); -lean_dec(x_9); -if (lean_obj_tag(x_46) == 0) +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec_ref(x_42); +x_45 = l_Lean_Elab_instInhabitedPartialFixpoint; +x_46 = lean_array_get(x_45, x_6, x_11); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec_ref(x_46); +x_48 = lean_unsigned_to_nat(1u); +x_49 = lean_nat_sub(x_10, x_48); +lean_dec(x_10); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_box(0); -lean_inc_ref(x_14); -lean_inc(x_42); -x_56 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_42, x_55, x_14, x_15, x_16, x_17, x_43); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_box(0); +lean_inc_ref(x_15); +lean_inc(x_43); +x_57 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_43, x_56, x_15, x_16, x_17, x_18, x_44); +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; 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; -x_58 = lean_ctor_get(x_56, 0); -x_59 = lean_ctor_get(x_56, 1); -x_70 = lean_array_fget(x_8, x_10); -x_71 = lean_ctor_get(x_70, 3); -lean_inc(x_71); -lean_dec_ref(x_70); -x_72 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__2; -x_73 = l_Lean_MessageData_ofName(x_71); -lean_inc_ref(x_73); -lean_ctor_set_tag(x_56, 7); -lean_ctor_set(x_56, 1, x_73); -lean_ctor_set(x_56, 0, x_72); -x_74 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__4; -x_75 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_75, 0, x_56); -lean_ctor_set(x_75, 1, x_74); -x_76 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___lam__0), 2, 1); -lean_closure_set(x_76, 0, x_75); -x_77 = l_Lean_Expr_mvarId_x21(x_58); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 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; +x_59 = lean_ctor_get(x_57, 0); +x_60 = lean_ctor_get(x_57, 1); +x_71 = lean_array_fget(x_9, x_11); +x_72 = lean_ctor_get(x_71, 3); +lean_inc(x_72); +lean_dec_ref(x_71); +x_73 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__2; +x_74 = l_Lean_MessageData_ofName(x_72); +lean_inc_ref(x_74); +lean_ctor_set_tag(x_57, 7); +lean_ctor_set(x_57, 1, x_74); +lean_ctor_set(x_57, 0, x_73); +x_75 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__4; +x_76 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_76, 0, x_57); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___lam__0), 2, 1); +lean_closure_set(x_77, 0, x_76); +x_78 = l_Lean_Expr_mvarId_x21(x_59); lean_inc(x_7); -x_78 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___lam__1), 7, 2); -lean_closure_set(x_78, 0, x_7); -lean_closure_set(x_78, 1, x_77); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -x_79 = l_Lean_Meta_mapErrorImp___redArg(x_78, x_76, x_14, x_15, x_16, x_17, x_59); -if (lean_obj_tag(x_79) == 0) +x_79 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___lam__1), 7, 2); +lean_closure_set(x_79, 0, x_7); +lean_closure_set(x_79, 1, x_78); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +x_80 = l_Lean_Meta_mapErrorImp___redArg(x_79, x_77, x_15, x_16, x_17, x_18, x_60); +if (lean_obj_tag(x_80) == 0) { -if (lean_obj_tag(x_79) == 0) +if (lean_obj_tag(x_80) == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_80 = lean_ctor_get(x_79, 1); -lean_inc(x_80); -lean_dec_ref(x_79); -x_81 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__10; -x_82 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_81, x_16, x_80); -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_unbox(x_83); -lean_dec(x_83); -if (x_84 == 0) +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +lean_dec_ref(x_80); +x_82 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__10; +x_83 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_82, x_17, x_81); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_unbox(x_84); +lean_dec(x_84); +if (x_85 == 0) { -lean_object* x_85; -lean_dec_ref(x_73); -x_85 = lean_ctor_get(x_82, 1); -lean_inc(x_85); -lean_dec_ref(x_82); -lean_inc(x_15); -x_60 = x_15; -x_61 = x_85; -goto block_69; +lean_object* x_86; +lean_dec_ref(x_74); +x_86 = lean_ctor_get(x_83, 1); +lean_inc(x_86); +lean_dec_ref(x_83); +lean_inc(x_16); +x_61 = x_16; +x_62 = x_86; +goto block_70; } else { -uint8_t x_86; -x_86 = !lean_is_exclusive(x_82); -if (x_86 == 0) +uint8_t x_87; +x_87 = !lean_is_exclusive(x_83); +if (x_87 == 0) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_87 = lean_ctor_get(x_82, 1); -x_88 = lean_ctor_get(x_82, 0); -lean_dec(x_88); -x_89 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__6; -lean_ctor_set_tag(x_82, 7); -lean_ctor_set(x_82, 1, x_73); -lean_ctor_set(x_82, 0, x_89); -x_90 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__8; -x_91 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_91, 0, x_82); -lean_ctor_set(x_91, 1, x_90); -lean_inc(x_58); -x_92 = l_Lean_MessageData_ofExpr(x_58); -x_93 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -x_94 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; -x_95 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_94); -x_96 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_81, x_95, x_14, x_15, x_16, x_17, x_87); -x_97 = lean_ctor_get(x_96, 1); -lean_inc(x_97); -lean_dec_ref(x_96); -lean_inc(x_15); -x_60 = x_15; -x_61 = x_97; -goto block_69; -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_98 = lean_ctor_get(x_82, 1); +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_88 = lean_ctor_get(x_83, 1); +x_89 = lean_ctor_get(x_83, 0); +lean_dec(x_89); +x_90 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__6; +lean_ctor_set_tag(x_83, 7); +lean_ctor_set(x_83, 1, x_74); +lean_ctor_set(x_83, 0, x_90); +x_91 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__8; +x_92 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_92, 0, x_83); +lean_ctor_set(x_92, 1, x_91); +lean_inc(x_59); +x_93 = l_Lean_MessageData_ofExpr(x_59); +x_94 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +x_95 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; +x_96 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +x_97 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_82, x_96, x_15, x_16, x_17, x_18, x_88); +x_98 = lean_ctor_get(x_97, 1); lean_inc(x_98); -lean_dec(x_82); -x_99 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__6; -x_100 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_73); -x_101 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__8; -x_102 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -lean_inc(x_58); -x_103 = l_Lean_MessageData_ofExpr(x_58); -x_104 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -x_105 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; -x_106 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -x_107 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_81, x_106, x_14, x_15, x_16, x_17, x_98); -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); -lean_dec_ref(x_107); -lean_inc(x_15); -x_60 = x_15; -x_61 = x_108; -goto block_69; +lean_dec_ref(x_97); +lean_inc(x_16); +x_61 = x_16; +x_62 = x_98; +goto block_70; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_99 = lean_ctor_get(x_83, 1); +lean_inc(x_99); +lean_dec(x_83); +x_100 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__6; +x_101 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_74); +x_102 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__8; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_101); +lean_ctor_set(x_103, 1, x_102); +lean_inc(x_59); +x_104 = l_Lean_MessageData_ofExpr(x_59); +x_105 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +x_106 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; +x_107 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +x_108 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_82, x_107, x_15, x_16, x_17, x_18, x_99); +x_109 = lean_ctor_get(x_108, 1); +lean_inc(x_109); +lean_dec_ref(x_108); +lean_inc(x_16); +x_61 = x_16; +x_62 = x_109; +goto block_70; } } } else { -uint8_t x_109; -lean_dec_ref(x_73); -lean_dec(x_58); -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +uint8_t x_110; +lean_dec_ref(x_74); +lean_dec(x_59); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); +lean_dec(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_109 = !lean_is_exclusive(x_79); -if (x_109 == 0) +x_110 = !lean_is_exclusive(x_80); +if (x_110 == 0) { -lean_ctor_set_tag(x_79, 1); -return x_79; +lean_ctor_set_tag(x_80, 1); +return x_80; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_79, 0); -x_111 = lean_ctor_get(x_79, 1); +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_80, 0); +x_112 = lean_ctor_get(x_80, 1); +lean_inc(x_112); lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_79); -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_111); -return x_112; +lean_dec(x_80); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +return x_113; } } } else { -uint8_t x_113; -lean_dec_ref(x_73); -lean_dec(x_58); -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +uint8_t x_114; +lean_dec_ref(x_74); +lean_dec(x_59); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); +lean_dec(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_113 = !lean_is_exclusive(x_79); -if (x_113 == 0) +x_114 = !lean_is_exclusive(x_80); +if (x_114 == 0) { -return x_79; +return x_80; } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_79, 0); -x_115 = lean_ctor_get(x_79, 1); +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_80, 0); +x_116 = lean_ctor_get(x_80, 1); +lean_inc(x_116); lean_inc(x_115); -lean_inc(x_114); -lean_dec(x_79); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -return x_116; +lean_dec(x_80); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +return x_117; } } -block_69: +block_70: { -lean_object* x_62; uint8_t x_63; -x_62 = l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(x_58, x_60, x_61); -lean_dec(x_60); -x_63 = !lean_is_exclusive(x_62); -if (x_63 == 0) +lean_object* x_63; uint8_t x_64; +x_63 = l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(x_59, x_61, x_62); +lean_dec(x_61); +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) { -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_62, 0); -x_65 = lean_ctor_get(x_62, 1); -lean_ctor_set(x_62, 1, x_64); -lean_ctor_set(x_62, 0, x_42); -x_49 = x_62; -x_50 = x_65; -goto block_54; +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_63, 0); +x_66 = lean_ctor_get(x_63, 1); +lean_ctor_set(x_63, 1, x_65); +lean_ctor_set(x_63, 0, x_43); +x_50 = x_63; +x_51 = x_66; +goto block_55; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_62, 0); -x_67 = lean_ctor_get(x_62, 1); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_63, 0); +x_68 = lean_ctor_get(x_63, 1); +lean_inc(x_68); lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_62); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_42); -lean_ctor_set(x_68, 1, x_66); -x_49 = x_68; -x_50 = x_67; -goto block_54; +lean_dec(x_63); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_43); +lean_ctor_set(x_69, 1, x_67); +x_50 = x_69; +x_51 = x_68; +goto block_55; } } } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_117 = lean_ctor_get(x_56, 0); -x_118 = lean_ctor_get(x_56, 1); +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; 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; +x_118 = lean_ctor_get(x_57, 0); +x_119 = lean_ctor_get(x_57, 1); +lean_inc(x_119); lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_56); -x_127 = lean_array_fget(x_8, x_10); -x_128 = lean_ctor_get(x_127, 3); -lean_inc(x_128); -lean_dec_ref(x_127); -x_129 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__2; -x_130 = l_Lean_MessageData_ofName(x_128); -lean_inc_ref(x_130); -x_131 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_131, 0, x_129); -lean_ctor_set(x_131, 1, x_130); -x_132 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__4; -x_133 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_133, 0, x_131); -lean_ctor_set(x_133, 1, x_132); -x_134 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___lam__0), 2, 1); -lean_closure_set(x_134, 0, x_133); -x_135 = l_Lean_Expr_mvarId_x21(x_117); +lean_dec(x_57); +x_128 = lean_array_fget(x_9, x_11); +x_129 = lean_ctor_get(x_128, 3); +lean_inc(x_129); +lean_dec_ref(x_128); +x_130 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__2; +x_131 = l_Lean_MessageData_ofName(x_129); +lean_inc_ref(x_131); +x_132 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_131); +x_133 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__4; +x_134 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set(x_134, 1, x_133); +x_135 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___lam__0), 2, 1); +lean_closure_set(x_135, 0, x_134); +x_136 = l_Lean_Expr_mvarId_x21(x_118); lean_inc(x_7); -x_136 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___lam__1), 7, 2); -lean_closure_set(x_136, 0, x_7); -lean_closure_set(x_136, 1, x_135); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -x_137 = l_Lean_Meta_mapErrorImp___redArg(x_136, x_134, x_14, x_15, x_16, x_17, x_118); -if (lean_obj_tag(x_137) == 0) +x_137 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___lam__1), 7, 2); +lean_closure_set(x_137, 0, x_7); +lean_closure_set(x_137, 1, x_136); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +x_138 = l_Lean_Meta_mapErrorImp___redArg(x_137, x_135, x_15, x_16, x_17, x_18, x_119); +if (lean_obj_tag(x_138) == 0) { -if (lean_obj_tag(x_137) == 0) +if (lean_obj_tag(x_138) == 0) { -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; -x_138 = lean_ctor_get(x_137, 1); -lean_inc(x_138); -lean_dec_ref(x_137); -x_139 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__10; -x_140 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_139, x_16, x_138); -x_141 = lean_ctor_get(x_140, 0); -lean_inc(x_141); -x_142 = lean_unbox(x_141); -lean_dec(x_141); -if (x_142 == 0) +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +lean_dec_ref(x_138); +x_140 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__10; +x_141 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_140, x_17, x_139); +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +x_143 = lean_unbox(x_142); +lean_dec(x_142); +if (x_143 == 0) { -lean_object* x_143; -lean_dec_ref(x_130); -x_143 = lean_ctor_get(x_140, 1); -lean_inc(x_143); -lean_dec_ref(x_140); -lean_inc(x_15); -x_119 = x_15; -x_120 = x_143; -goto block_126; -} -else -{ -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; -x_144 = lean_ctor_get(x_140, 1); +lean_object* x_144; +lean_dec_ref(x_131); +x_144 = lean_ctor_get(x_141, 1); lean_inc(x_144); -if (lean_is_exclusive(x_140)) { - lean_ctor_release(x_140, 0); - lean_ctor_release(x_140, 1); - x_145 = x_140; -} else { - lean_dec_ref(x_140); - x_145 = lean_box(0); -} -x_146 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__6; -if (lean_is_scalar(x_145)) { - x_147 = lean_alloc_ctor(7, 2, 0); -} else { - x_147 = x_145; - lean_ctor_set_tag(x_147, 7); -} -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_130); -x_148 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__8; -x_149 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_149, 0, x_147); -lean_ctor_set(x_149, 1, x_148); -lean_inc(x_117); -x_150 = l_Lean_MessageData_ofExpr(x_117); -x_151 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_151, 0, x_149); -lean_ctor_set(x_151, 1, x_150); -x_152 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; -x_153 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_153, 0, x_151); -lean_ctor_set(x_153, 1, x_152); -x_154 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_139, x_153, x_14, x_15, x_16, x_17, x_144); -x_155 = lean_ctor_get(x_154, 1); -lean_inc(x_155); -lean_dec_ref(x_154); -lean_inc(x_15); -x_119 = x_15; -x_120 = x_155; -goto block_126; -} +lean_dec_ref(x_141); +lean_inc(x_16); +x_120 = x_16; +x_121 = x_144; +goto block_127; } else { -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -lean_dec_ref(x_130); -lean_dec(x_117); -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_7); -lean_dec_ref(x_5); -lean_dec_ref(x_4); -x_156 = lean_ctor_get(x_137, 0); +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; +x_145 = lean_ctor_get(x_141, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_146 = x_141; +} else { + lean_dec_ref(x_141); + x_146 = lean_box(0); +} +x_147 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__6; +if (lean_is_scalar(x_146)) { + x_148 = lean_alloc_ctor(7, 2, 0); +} else { + x_148 = x_146; + lean_ctor_set_tag(x_148, 7); +} +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_131); +x_149 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__8; +x_150 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_149); +lean_inc(x_118); +x_151 = l_Lean_MessageData_ofExpr(x_118); +x_152 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_152, 0, x_150); +lean_ctor_set(x_152, 1, x_151); +x_153 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; +x_154 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_154, 0, x_152); +lean_ctor_set(x_154, 1, x_153); +x_155 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_140, x_154, x_15, x_16, x_17, x_18, x_145); +x_156 = lean_ctor_get(x_155, 1); lean_inc(x_156); -x_157 = lean_ctor_get(x_137, 1); -lean_inc(x_157); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_158 = x_137; -} else { - lean_dec_ref(x_137); - x_158 = lean_box(0); -} -if (lean_is_scalar(x_158)) { - x_159 = lean_alloc_ctor(1, 2, 0); -} else { - x_159 = x_158; - lean_ctor_set_tag(x_159, 1); -} -lean_ctor_set(x_159, 0, x_156); -lean_ctor_set(x_159, 1, x_157); -return x_159; +lean_dec_ref(x_155); +lean_inc(x_16); +x_120 = x_16; +x_121 = x_156; +goto block_127; } } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; -lean_dec_ref(x_130); -lean_dec(x_117); -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_dec_ref(x_131); +lean_dec(x_118); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); +lean_dec(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_160 = lean_ctor_get(x_137, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_137, 1); -lean_inc(x_161); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_162 = x_137; +x_157 = lean_ctor_get(x_138, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_138, 1); +lean_inc(x_158); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_159 = x_138; } else { - lean_dec_ref(x_137); - x_162 = lean_box(0); + lean_dec_ref(x_138); + x_159 = lean_box(0); } -if (lean_is_scalar(x_162)) { - x_163 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_159)) { + x_160 = lean_alloc_ctor(1, 2, 0); } else { - x_163 = x_162; + x_160 = x_159; + lean_ctor_set_tag(x_160, 1); } -lean_ctor_set(x_163, 0, x_160); -lean_ctor_set(x_163, 1, x_161); -return x_163; +lean_ctor_set(x_160, 0, x_157); +lean_ctor_set(x_160, 1, x_158); +return x_160; } -block_126: +} +else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_121 = l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(x_117, x_119, x_120); -lean_dec(x_119); -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_dec_ref(x_131); +lean_dec(x_118); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_7); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +x_161 = lean_ctor_get(x_138, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_138, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_163 = x_138; +} else { + lean_dec_ref(x_138); + x_163 = lean_box(0); +} +if (lean_is_scalar(x_163)) { + x_164 = lean_alloc_ctor(1, 2, 0); +} else { + x_164 = x_163; +} +lean_ctor_set(x_164, 0, x_161); +lean_ctor_set(x_164, 1, x_162); +return x_164; +} +block_127: +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_122 = l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(x_118, x_120, x_121); +lean_dec(x_120); +x_123 = lean_ctor_get(x_122, 0); lean_inc(x_123); -if (lean_is_exclusive(x_121)) { - lean_ctor_release(x_121, 0); - lean_ctor_release(x_121, 1); - x_124 = x_121; +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_125 = x_122; } else { - lean_dec_ref(x_121); - x_124 = lean_box(0); + lean_dec_ref(x_122); + x_125 = lean_box(0); } -if (lean_is_scalar(x_124)) { - x_125 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_125)) { + x_126 = lean_alloc_ctor(0, 2, 0); } else { - x_125 = x_124; + x_126 = x_125; } -lean_ctor_set(x_125, 0, x_42); -lean_ctor_set(x_125, 1, x_122); -x_49 = x_125; -x_50 = x_123; -goto block_54; +lean_ctor_set(x_126, 0, x_43); +lean_ctor_set(x_126, 1, x_123); +x_50 = x_126; +x_51 = x_124; +goto block_55; } } } else { -uint8_t x_164; -x_164 = !lean_is_exclusive(x_46); -if (x_164 == 0) +uint8_t x_165; +x_165 = !lean_is_exclusive(x_47); +if (x_165 == 0) { -lean_object* x_165; uint8_t x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; -x_165 = lean_ctor_get(x_46, 0); -lean_inc(x_42); -lean_ctor_set(x_46, 0, x_42); -x_166 = 1; +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; +x_166 = lean_ctor_get(x_47, 0); +lean_inc(x_43); +lean_ctor_set(x_47, 0, x_43); x_167 = lean_box(0); -x_168 = lean_box(x_166); -x_169 = lean_box(x_166); +x_168 = lean_box(x_8); +x_169 = lean_box(x_8); x_170 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_170, 0, x_165); -lean_closure_set(x_170, 1, x_46); +lean_closure_set(x_170, 0, x_166); +lean_closure_set(x_170, 1, x_47); lean_closure_set(x_170, 2, x_168); lean_closure_set(x_170, 3, x_169); lean_closure_set(x_170, 4, x_167); x_171 = 1; -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_13); -lean_inc_ref(x_12); -x_172 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___redArg(x_170, x_171, x_12, x_13, x_14, x_15, x_16, x_17, x_43); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_14); +lean_inc_ref(x_13); +x_172 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___redArg(x_170, x_171, x_13, x_14, x_15, x_16, x_17, x_18, x_44); if (lean_obj_tag(x_172) == 0) { lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; @@ -5773,14 +5212,14 @@ lean_inc(x_173); x_174 = lean_ctor_get(x_172, 1); lean_inc(x_174); lean_dec_ref(x_172); -x_175 = l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(x_173, x_15, x_174); +x_175 = l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(x_173, x_16, x_174); x_176 = lean_ctor_get(x_175, 0); lean_inc(x_176); x_177 = lean_ctor_get(x_175, 1); lean_inc(x_177); lean_dec_ref(x_175); lean_inc(x_176); -x_178 = l_Lean_Meta_getMVars(x_176, x_14, x_15, x_16, x_17, x_177); +x_178 = l_Lean_Meta_getMVars(x_176, x_15, x_16, x_17, x_18, x_177); x_179 = !lean_is_exclusive(x_178); if (x_179 == 0) { @@ -5793,13 +5232,13 @@ if (x_182 == 0) lean_object* x_183; lean_object* x_184; lean_dec(x_176); x_183 = lean_box(0); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_13); -lean_inc_ref(x_12); -x_184 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_180, x_183, x_12, x_13, x_14, x_15, x_16, x_17, x_181); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_14); +lean_inc_ref(x_13); +x_184 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_180, x_183, x_13, x_14, x_15, x_16, x_17, x_18, x_181); lean_dec(x_180); if (lean_obj_tag(x_184) == 0) { @@ -5807,12 +5246,12 @@ lean_object* x_185; lean_object* x_186; x_185 = lean_ctor_get(x_184, 1); lean_inc(x_185); lean_dec_ref(x_184); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_42); -x_186 = l_Lean_Meta_mkSorry(x_42, x_166, x_14, x_15, x_16, x_17, x_185); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_43); +x_186 = l_Lean_Meta_mkSorry(x_43, x_8, x_15, x_16, x_17, x_18, x_185); if (lean_obj_tag(x_186) == 0) { lean_object* x_187; lean_object* x_188; @@ -5822,25 +5261,25 @@ x_188 = lean_ctor_get(x_186, 1); lean_inc(x_188); lean_dec_ref(x_186); lean_ctor_set(x_178, 1, x_187); -lean_ctor_set(x_178, 0, x_42); -x_49 = x_178; -x_50 = x_188; -goto block_54; +lean_ctor_set(x_178, 0, x_43); +x_50 = x_178; +x_51 = x_188; +goto block_55; } else { uint8_t x_189; lean_free_object(x_178); -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); +lean_dec(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); @@ -5868,16 +5307,16 @@ else { uint8_t x_193; lean_free_object(x_178); -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); +lean_dec(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); @@ -5905,10 +5344,10 @@ else { lean_dec(x_180); lean_ctor_set(x_178, 1, x_176); -lean_ctor_set(x_178, 0, x_42); -x_49 = x_178; -x_50 = x_181; -goto block_54; +lean_ctor_set(x_178, 0, x_43); +x_50 = x_178; +x_51 = x_181; +goto block_55; } } else @@ -5925,13 +5364,13 @@ if (x_199 == 0) lean_object* x_200; lean_object* x_201; lean_dec(x_176); x_200 = lean_box(0); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_13); -lean_inc_ref(x_12); -x_201 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_197, x_200, x_12, x_13, x_14, x_15, x_16, x_17, x_198); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_14); +lean_inc_ref(x_13); +x_201 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_197, x_200, x_13, x_14, x_15, x_16, x_17, x_18, x_198); lean_dec(x_197); if (lean_obj_tag(x_201) == 0) { @@ -5939,12 +5378,12 @@ lean_object* x_202; lean_object* x_203; x_202 = lean_ctor_get(x_201, 1); lean_inc(x_202); lean_dec_ref(x_201); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_42); -x_203 = l_Lean_Meta_mkSorry(x_42, x_166, x_14, x_15, x_16, x_17, x_202); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_43); +x_203 = l_Lean_Meta_mkSorry(x_43, x_8, x_15, x_16, x_17, x_18, x_202); if (lean_obj_tag(x_203) == 0) { lean_object* x_204; lean_object* x_205; lean_object* x_206; @@ -5954,25 +5393,25 @@ x_205 = lean_ctor_get(x_203, 1); lean_inc(x_205); lean_dec_ref(x_203); x_206 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_206, 0, x_42); +lean_ctor_set(x_206, 0, x_43); lean_ctor_set(x_206, 1, x_204); -x_49 = x_206; -x_50 = x_205; -goto block_54; +x_50 = x_206; +x_51 = x_205; +goto block_55; } else { lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); +lean_dec(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); @@ -6001,16 +5440,16 @@ return x_210; else { lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); +lean_dec(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); @@ -6041,27 +5480,27 @@ else lean_object* x_215; lean_dec(x_197); x_215 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_215, 0, x_42); +lean_ctor_set(x_215, 0, x_43); lean_ctor_set(x_215, 1, x_176); -x_49 = x_215; -x_50 = x_198; -goto block_54; +x_50 = x_215; +x_51 = x_198; +goto block_55; } } } else { uint8_t x_216; -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); +lean_dec(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); @@ -6087,898 +5526,896 @@ return x_219; } else { -lean_object* x_220; lean_object* x_221; uint8_t x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; uint8_t x_227; lean_object* x_228; -x_220 = lean_ctor_get(x_46, 0); +lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; uint8_t x_226; lean_object* x_227; +x_220 = lean_ctor_get(x_47, 0); lean_inc(x_220); -lean_dec(x_46); -lean_inc(x_42); +lean_dec(x_47); +lean_inc(x_43); x_221 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_221, 0, x_42); -x_222 = 1; -x_223 = lean_box(0); -x_224 = lean_box(x_222); -x_225 = lean_box(x_222); -x_226 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_226, 0, x_220); -lean_closure_set(x_226, 1, x_221); -lean_closure_set(x_226, 2, x_224); -lean_closure_set(x_226, 3, x_225); -lean_closure_set(x_226, 4, x_223); -x_227 = 1; -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_13); -lean_inc_ref(x_12); -x_228 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___redArg(x_226, x_227, x_12, x_13, x_14, x_15, x_16, x_17, x_43); -if (lean_obj_tag(x_228) == 0) +lean_ctor_set(x_221, 0, x_43); +x_222 = lean_box(0); +x_223 = lean_box(x_8); +x_224 = lean_box(x_8); +x_225 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); +lean_closure_set(x_225, 0, x_220); +lean_closure_set(x_225, 1, x_221); +lean_closure_set(x_225, 2, x_223); +lean_closure_set(x_225, 3, x_224); +lean_closure_set(x_225, 4, x_222); +x_226 = 1; +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_14); +lean_inc_ref(x_13); +x_227 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___redArg(x_225, x_226, x_13, x_14, x_15, x_16, x_17, x_18, x_44); +if (lean_obj_tag(x_227) == 0) { -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; uint8_t x_238; -x_229 = lean_ctor_get(x_228, 0); +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; uint8_t x_237; +x_228 = lean_ctor_get(x_227, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_227, 1); lean_inc(x_229); -x_230 = lean_ctor_get(x_228, 1); -lean_inc(x_230); -lean_dec_ref(x_228); -x_231 = l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(x_229, x_15, x_230); -x_232 = lean_ctor_get(x_231, 0); +lean_dec_ref(x_227); +x_230 = l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(x_228, x_16, x_229); +x_231 = lean_ctor_get(x_230, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_230, 1); lean_inc(x_232); -x_233 = lean_ctor_get(x_231, 1); -lean_inc(x_233); -lean_dec_ref(x_231); -lean_inc(x_232); -x_234 = l_Lean_Meta_getMVars(x_232, x_14, x_15, x_16, x_17, x_233); -x_235 = lean_ctor_get(x_234, 0); +lean_dec_ref(x_230); +lean_inc(x_231); +x_233 = l_Lean_Meta_getMVars(x_231, x_15, x_16, x_17, x_18, x_232); +x_234 = lean_ctor_get(x_233, 0); +lean_inc(x_234); +x_235 = lean_ctor_get(x_233, 1); lean_inc(x_235); -x_236 = lean_ctor_get(x_234, 1); -lean_inc(x_236); -if (lean_is_exclusive(x_234)) { - lean_ctor_release(x_234, 0); - lean_ctor_release(x_234, 1); - x_237 = x_234; +if (lean_is_exclusive(x_233)) { + lean_ctor_release(x_233, 0); + lean_ctor_release(x_233, 1); + x_236 = x_233; } else { - lean_dec_ref(x_234); - x_237 = lean_box(0); + lean_dec_ref(x_233); + x_236 = lean_box(0); } -x_238 = l_Array_isEmpty___redArg(x_235); -if (x_238 == 0) +x_237 = l_Array_isEmpty___redArg(x_234); +if (x_237 == 0) { -lean_object* x_239; lean_object* x_240; -lean_dec(x_232); -x_239 = lean_box(0); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_13); -lean_inc_ref(x_12); -x_240 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_235, x_239, x_12, x_13, x_14, x_15, x_16, x_17, x_236); -lean_dec(x_235); -if (lean_obj_tag(x_240) == 0) +lean_object* x_238; lean_object* x_239; +lean_dec(x_231); +x_238 = lean_box(0); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_14); +lean_inc_ref(x_13); +x_239 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_234, x_238, x_13, x_14, x_15, x_16, x_17, x_18, x_235); +lean_dec(x_234); +if (lean_obj_tag(x_239) == 0) { -lean_object* x_241; lean_object* x_242; -x_241 = lean_ctor_get(x_240, 1); -lean_inc(x_241); -lean_dec_ref(x_240); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_42); -x_242 = l_Lean_Meta_mkSorry(x_42, x_222, x_14, x_15, x_16, x_17, x_241); -if (lean_obj_tag(x_242) == 0) +lean_object* x_240; lean_object* x_241; +x_240 = lean_ctor_get(x_239, 1); +lean_inc(x_240); +lean_dec_ref(x_239); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_43); +x_241 = l_Lean_Meta_mkSorry(x_43, x_8, x_15, x_16, x_17, x_18, x_240); +if (lean_obj_tag(x_241) == 0) { -lean_object* x_243; lean_object* x_244; lean_object* x_245; -x_243 = lean_ctor_get(x_242, 0); +lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_242 = lean_ctor_get(x_241, 0); +lean_inc(x_242); +x_243 = lean_ctor_get(x_241, 1); lean_inc(x_243); -x_244 = lean_ctor_get(x_242, 1); -lean_inc(x_244); -lean_dec_ref(x_242); -if (lean_is_scalar(x_237)) { - x_245 = lean_alloc_ctor(0, 2, 0); +lean_dec_ref(x_241); +if (lean_is_scalar(x_236)) { + x_244 = lean_alloc_ctor(0, 2, 0); } else { - x_245 = x_237; + x_244 = x_236; } -lean_ctor_set(x_245, 0, x_42); -lean_ctor_set(x_245, 1, x_243); -x_49 = x_245; +lean_ctor_set(x_244, 0, x_43); +lean_ctor_set(x_244, 1, x_242); x_50 = x_244; -goto block_54; +x_51 = x_243; +goto block_55; } else { -lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; -lean_dec(x_237); -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +lean_dec(x_236); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); +lean_dec(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_246 = lean_ctor_get(x_242, 0); +x_245 = lean_ctor_get(x_241, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_241, 1); lean_inc(x_246); -x_247 = lean_ctor_get(x_242, 1); -lean_inc(x_247); -if (lean_is_exclusive(x_242)) { - lean_ctor_release(x_242, 0); - lean_ctor_release(x_242, 1); - x_248 = x_242; +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_247 = x_241; } else { - lean_dec_ref(x_242); - x_248 = lean_box(0); + lean_dec_ref(x_241); + x_247 = lean_box(0); } -if (lean_is_scalar(x_248)) { - x_249 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_247)) { + x_248 = lean_alloc_ctor(1, 2, 0); } else { - x_249 = x_248; + x_248 = x_247; } -lean_ctor_set(x_249, 0, x_246); -lean_ctor_set(x_249, 1, x_247); -return x_249; +lean_ctor_set(x_248, 0, x_245); +lean_ctor_set(x_248, 1, x_246); +return x_248; } } else { -lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; -lean_dec(x_237); -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; +lean_dec(x_236); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); +lean_dec(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_250 = lean_ctor_get(x_240, 0); +x_249 = lean_ctor_get(x_239, 0); +lean_inc(x_249); +x_250 = lean_ctor_get(x_239, 1); lean_inc(x_250); -x_251 = lean_ctor_get(x_240, 1); -lean_inc(x_251); -if (lean_is_exclusive(x_240)) { - lean_ctor_release(x_240, 0); - lean_ctor_release(x_240, 1); - x_252 = x_240; +if (lean_is_exclusive(x_239)) { + lean_ctor_release(x_239, 0); + lean_ctor_release(x_239, 1); + x_251 = x_239; } else { - lean_dec_ref(x_240); - x_252 = lean_box(0); + lean_dec_ref(x_239); + x_251 = lean_box(0); } -if (lean_is_scalar(x_252)) { - x_253 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_251)) { + x_252 = lean_alloc_ctor(1, 2, 0); } else { - x_253 = x_252; + x_252 = x_251; } -lean_ctor_set(x_253, 0, x_250); -lean_ctor_set(x_253, 1, x_251); -return x_253; +lean_ctor_set(x_252, 0, x_249); +lean_ctor_set(x_252, 1, x_250); +return x_252; } } else { -lean_object* x_254; -lean_dec(x_235); -if (lean_is_scalar(x_237)) { - x_254 = lean_alloc_ctor(0, 2, 0); +lean_object* x_253; +lean_dec(x_234); +if (lean_is_scalar(x_236)) { + x_253 = lean_alloc_ctor(0, 2, 0); } else { - x_254 = x_237; + x_253 = x_236; } -lean_ctor_set(x_254, 0, x_42); -lean_ctor_set(x_254, 1, x_232); -x_49 = x_254; -x_50 = x_236; -goto block_54; +lean_ctor_set(x_253, 0, x_43); +lean_ctor_set(x_253, 1, x_231); +x_50 = x_253; +x_51 = x_235; +goto block_55; } } else { -lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); +lean_dec(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_255 = lean_ctor_get(x_228, 0); +x_254 = lean_ctor_get(x_227, 0); +lean_inc(x_254); +x_255 = lean_ctor_get(x_227, 1); lean_inc(x_255); -x_256 = lean_ctor_get(x_228, 1); -lean_inc(x_256); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - x_257 = x_228; +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + x_256 = x_227; } else { - lean_dec_ref(x_228); - x_257 = lean_box(0); + lean_dec_ref(x_227); + x_256 = lean_box(0); } -if (lean_is_scalar(x_257)) { - x_258 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_256)) { + x_257 = lean_alloc_ctor(1, 2, 0); } else { - x_258 = x_257; + x_257 = x_256; } -lean_ctor_set(x_258, 0, x_255); -lean_ctor_set(x_258, 1, x_256); -return x_258; +lean_ctor_set(x_257, 0, x_254); +lean_ctor_set(x_257, 1, x_255); +return x_257; } } } -block_54: +block_55: { -lean_object* x_51; lean_object* x_52; -x_51 = lean_nat_add(x_10, x_47); -lean_dec(x_10); -x_52 = lean_array_push(x_11, x_49); -x_9 = x_48; -x_10 = x_51; +lean_object* x_52; lean_object* x_53; +x_52 = lean_nat_add(x_11, x_48); +lean_dec(x_11); +x_53 = lean_array_push(x_12, x_50); +x_10 = x_49; x_11 = x_52; -x_18 = x_50; +x_12 = x_53; +x_19 = x_51; goto _start; } } else { -uint8_t x_259; -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +uint8_t x_258; +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); +lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_259 = !lean_is_exclusive(x_41); -if (x_259 == 0) +x_258 = !lean_is_exclusive(x_42); +if (x_258 == 0) { -return x_41; +return x_42; } else { -lean_object* x_260; lean_object* x_261; lean_object* x_262; -x_260 = lean_ctor_get(x_41, 0); -x_261 = lean_ctor_get(x_41, 1); -lean_inc(x_261); +lean_object* x_259; lean_object* x_260; lean_object* x_261; +x_259 = lean_ctor_get(x_42, 0); +x_260 = lean_ctor_get(x_42, 1); lean_inc(x_260); -lean_dec(x_41); -x_262 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_262, 0, x_260); -lean_ctor_set(x_262, 1, x_261); -return x_262; +lean_inc(x_259); +lean_dec(x_42); +x_261 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_261, 0, x_259); +lean_ctor_set(x_261, 1, x_260); +return x_261; } } } else { -uint8_t x_263; -lean_dec_ref(x_25); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +uint8_t x_262; +lean_dec_ref(x_26); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); +lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_263 = !lean_is_exclusive(x_26); -if (x_263 == 0) +x_262 = !lean_is_exclusive(x_27); +if (x_262 == 0) { -return x_26; +return x_27; } else { -lean_object* x_264; lean_object* x_265; lean_object* x_266; -x_264 = lean_ctor_get(x_26, 0); -x_265 = lean_ctor_get(x_26, 1); -lean_inc(x_265); +lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_263 = lean_ctor_get(x_27, 0); +x_264 = lean_ctor_get(x_27, 1); lean_inc(x_264); -lean_dec(x_26); -x_266 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_266, 0, x_264); -lean_ctor_set(x_266, 1, x_265); -return x_266; +lean_inc(x_263); +lean_dec(x_27); +x_265 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_265, 0, x_263); +lean_ctor_set(x_265, 1, x_264); +return x_265; } } } } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12(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, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { _start: { -lean_object* x_20; -x_20 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); -return x_20; -} -} -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { -_start: -{ -lean_object* x_19; uint8_t x_20; -x_19 = lean_unsigned_to_nat(0u); -x_20 = lean_nat_dec_eq(x_9, x_19); -if (x_20 == 1) -{ lean_object* x_21; -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_7); -lean_dec_ref(x_5); -lean_dec_ref(x_4); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_11); -lean_ctor_set(x_21, 1, x_18); +x_21 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); return x_21; } +} +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12___redArg(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, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { +_start: +{ +lean_object* x_20; uint8_t x_21; +x_20 = lean_unsigned_to_nat(0u); +x_21 = lean_nat_dec_eq(x_10, x_20); +if (x_21 == 1) +{ +lean_object* x_22; +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_7); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_12); +lean_ctor_set(x_22, 1, x_19); +return x_22; +} else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_22 = l_Lean_instInhabitedExpr; -x_23 = lean_array_get(x_22, x_1, x_10); -x_24 = lean_array_get(x_22, x_2, x_10); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_23); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc_ref(x_25); -x_26 = l_Lean_Meta_toPartialOrder(x_24, x_25, x_14, x_15, x_16, x_17, x_18); -if (lean_obj_tag(x_26) == 0) +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = l_Lean_instInhabitedExpr; +x_24 = lean_array_get(x_23, x_1, x_11); +x_25 = lean_array_get(x_23, x_2, x_11); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_24); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_26); +x_27 = l_Lean_Meta_toPartialOrder(x_25, x_26, x_15, x_16, x_17, x_18, x_19); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); +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; +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec_ref(x_26); -x_29 = lean_array_get(x_22, x_3, x_10); -x_30 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__5; +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec_ref(x_27); +x_30 = lean_array_get(x_23, x_3, x_11); +x_31 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__5; lean_inc_ref(x_4); -x_31 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_31, 0, x_4); -lean_inc_ref(x_5); x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_5); +lean_ctor_set(x_32, 0, x_4); +lean_inc_ref(x_5); x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_27); +lean_ctor_set(x_33, 0, x_5); x_34 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_34, 0, x_29); -x_35 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__0; -x_36 = lean_array_push(x_35, x_31); +lean_ctor_set(x_34, 0, x_28); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_30); +x_36 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__0; x_37 = lean_array_push(x_36, x_32); -x_38 = lean_array_push(x_37, x_25); -x_39 = lean_array_push(x_38, x_33); +x_38 = lean_array_push(x_37, x_33); +x_39 = lean_array_push(x_38, x_26); x_40 = lean_array_push(x_39, x_34); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -x_41 = l_Lean_Meta_mkAppOptM(x_30, x_40, x_14, x_15, x_16, x_17, x_28); -if (lean_obj_tag(x_41) == 0) +x_41 = lean_array_push(x_40, x_35); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +x_42 = l_Lean_Meta_mkAppOptM(x_31, x_41, x_15, x_16, x_17, x_18, x_29); +if (lean_obj_tag(x_42) == 0) { -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; -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); +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; +x_43 = lean_ctor_get(x_42, 0); lean_inc(x_43); -lean_dec_ref(x_41); -x_44 = l_Lean_Elab_instInhabitedPartialFixpoint; -x_45 = lean_array_get(x_44, x_6, x_10); -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -lean_dec_ref(x_45); -x_47 = lean_unsigned_to_nat(1u); -x_48 = lean_nat_sub(x_9, x_47); -if (lean_obj_tag(x_46) == 0) +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec_ref(x_42); +x_45 = l_Lean_Elab_instInhabitedPartialFixpoint; +x_46 = lean_array_get(x_45, x_6, x_11); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec_ref(x_46); +x_48 = lean_unsigned_to_nat(1u); +x_49 = lean_nat_sub(x_10, x_48); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_box(0); -lean_inc_ref(x_14); -lean_inc(x_42); -x_56 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_42, x_55, x_14, x_15, x_16, x_17, x_43); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_box(0); +lean_inc_ref(x_15); +lean_inc(x_43); +x_57 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_43, x_56, x_15, x_16, x_17, x_18, x_44); +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; 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; -x_58 = lean_ctor_get(x_56, 0); -x_59 = lean_ctor_get(x_56, 1); -x_70 = lean_array_fget(x_8, x_10); -x_71 = lean_ctor_get(x_70, 3); -lean_inc(x_71); -lean_dec_ref(x_70); -x_72 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__2; -x_73 = l_Lean_MessageData_ofName(x_71); -lean_inc_ref(x_73); -lean_ctor_set_tag(x_56, 7); -lean_ctor_set(x_56, 1, x_73); -lean_ctor_set(x_56, 0, x_72); -x_74 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__4; -x_75 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_75, 0, x_56); -lean_ctor_set(x_75, 1, x_74); -x_76 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___lam__0), 2, 1); -lean_closure_set(x_76, 0, x_75); -x_77 = l_Lean_Expr_mvarId_x21(x_58); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 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; +x_59 = lean_ctor_get(x_57, 0); +x_60 = lean_ctor_get(x_57, 1); +x_71 = lean_array_fget(x_9, x_11); +x_72 = lean_ctor_get(x_71, 3); +lean_inc(x_72); +lean_dec_ref(x_71); +x_73 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__2; +x_74 = l_Lean_MessageData_ofName(x_72); +lean_inc_ref(x_74); +lean_ctor_set_tag(x_57, 7); +lean_ctor_set(x_57, 1, x_74); +lean_ctor_set(x_57, 0, x_73); +x_75 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__4; +x_76 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_76, 0, x_57); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___lam__0), 2, 1); +lean_closure_set(x_77, 0, x_76); +x_78 = l_Lean_Expr_mvarId_x21(x_59); lean_inc(x_7); -x_78 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___lam__1), 7, 2); -lean_closure_set(x_78, 0, x_7); -lean_closure_set(x_78, 1, x_77); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -x_79 = l_Lean_Meta_mapErrorImp___redArg(x_78, x_76, x_14, x_15, x_16, x_17, x_59); -if (lean_obj_tag(x_79) == 0) +x_79 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___lam__1), 7, 2); +lean_closure_set(x_79, 0, x_7); +lean_closure_set(x_79, 1, x_78); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +x_80 = l_Lean_Meta_mapErrorImp___redArg(x_79, x_77, x_15, x_16, x_17, x_18, x_60); +if (lean_obj_tag(x_80) == 0) { -if (lean_obj_tag(x_79) == 0) +if (lean_obj_tag(x_80) == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_80 = lean_ctor_get(x_79, 1); -lean_inc(x_80); -lean_dec_ref(x_79); -x_81 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__10; -x_82 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_81, x_16, x_80); -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_unbox(x_83); -lean_dec(x_83); -if (x_84 == 0) +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +lean_dec_ref(x_80); +x_82 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__10; +x_83 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_82, x_17, x_81); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_unbox(x_84); +lean_dec(x_84); +if (x_85 == 0) { -lean_object* x_85; -lean_dec_ref(x_73); -x_85 = lean_ctor_get(x_82, 1); -lean_inc(x_85); -lean_dec_ref(x_82); -lean_inc(x_15); -x_60 = x_15; -x_61 = x_85; -goto block_69; +lean_object* x_86; +lean_dec_ref(x_74); +x_86 = lean_ctor_get(x_83, 1); +lean_inc(x_86); +lean_dec_ref(x_83); +lean_inc(x_16); +x_61 = x_16; +x_62 = x_86; +goto block_70; } else { -uint8_t x_86; -x_86 = !lean_is_exclusive(x_82); -if (x_86 == 0) +uint8_t x_87; +x_87 = !lean_is_exclusive(x_83); +if (x_87 == 0) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_87 = lean_ctor_get(x_82, 1); -x_88 = lean_ctor_get(x_82, 0); -lean_dec(x_88); -x_89 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__6; -lean_ctor_set_tag(x_82, 7); -lean_ctor_set(x_82, 1, x_73); -lean_ctor_set(x_82, 0, x_89); -x_90 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__8; -x_91 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_91, 0, x_82); -lean_ctor_set(x_91, 1, x_90); -lean_inc(x_58); -x_92 = l_Lean_MessageData_ofExpr(x_58); -x_93 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -x_94 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; -x_95 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_94); -x_96 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_81, x_95, x_14, x_15, x_16, x_17, x_87); -x_97 = lean_ctor_get(x_96, 1); -lean_inc(x_97); -lean_dec_ref(x_96); -lean_inc(x_15); -x_60 = x_15; -x_61 = x_97; -goto block_69; -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_98 = lean_ctor_get(x_82, 1); +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_88 = lean_ctor_get(x_83, 1); +x_89 = lean_ctor_get(x_83, 0); +lean_dec(x_89); +x_90 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__6; +lean_ctor_set_tag(x_83, 7); +lean_ctor_set(x_83, 1, x_74); +lean_ctor_set(x_83, 0, x_90); +x_91 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__8; +x_92 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_92, 0, x_83); +lean_ctor_set(x_92, 1, x_91); +lean_inc(x_59); +x_93 = l_Lean_MessageData_ofExpr(x_59); +x_94 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +x_95 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; +x_96 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +x_97 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_82, x_96, x_15, x_16, x_17, x_18, x_88); +x_98 = lean_ctor_get(x_97, 1); lean_inc(x_98); -lean_dec(x_82); -x_99 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__6; -x_100 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_73); -x_101 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__8; -x_102 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -lean_inc(x_58); -x_103 = l_Lean_MessageData_ofExpr(x_58); -x_104 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -x_105 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; -x_106 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -x_107 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_81, x_106, x_14, x_15, x_16, x_17, x_98); -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); -lean_dec_ref(x_107); -lean_inc(x_15); -x_60 = x_15; -x_61 = x_108; -goto block_69; +lean_dec_ref(x_97); +lean_inc(x_16); +x_61 = x_16; +x_62 = x_98; +goto block_70; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_99 = lean_ctor_get(x_83, 1); +lean_inc(x_99); +lean_dec(x_83); +x_100 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__6; +x_101 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_74); +x_102 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__8; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_101); +lean_ctor_set(x_103, 1, x_102); +lean_inc(x_59); +x_104 = l_Lean_MessageData_ofExpr(x_59); +x_105 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +x_106 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; +x_107 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +x_108 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_82, x_107, x_15, x_16, x_17, x_18, x_99); +x_109 = lean_ctor_get(x_108, 1); +lean_inc(x_109); +lean_dec_ref(x_108); +lean_inc(x_16); +x_61 = x_16; +x_62 = x_109; +goto block_70; } } } else { -uint8_t x_109; -lean_dec_ref(x_73); -lean_dec(x_58); -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +uint8_t x_110; +lean_dec_ref(x_74); +lean_dec(x_59); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_109 = !lean_is_exclusive(x_79); -if (x_109 == 0) +x_110 = !lean_is_exclusive(x_80); +if (x_110 == 0) { -lean_ctor_set_tag(x_79, 1); -return x_79; +lean_ctor_set_tag(x_80, 1); +return x_80; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_79, 0); -x_111 = lean_ctor_get(x_79, 1); +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_80, 0); +x_112 = lean_ctor_get(x_80, 1); +lean_inc(x_112); lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_79); -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_111); -return x_112; +lean_dec(x_80); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +return x_113; } } } else { -uint8_t x_113; -lean_dec_ref(x_73); -lean_dec(x_58); -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +uint8_t x_114; +lean_dec_ref(x_74); +lean_dec(x_59); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_113 = !lean_is_exclusive(x_79); -if (x_113 == 0) +x_114 = !lean_is_exclusive(x_80); +if (x_114 == 0) { -return x_79; +return x_80; } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_79, 0); -x_115 = lean_ctor_get(x_79, 1); +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_80, 0); +x_116 = lean_ctor_get(x_80, 1); +lean_inc(x_116); lean_inc(x_115); -lean_inc(x_114); -lean_dec(x_79); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -return x_116; +lean_dec(x_80); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +return x_117; } } -block_69: +block_70: { -lean_object* x_62; uint8_t x_63; -x_62 = l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(x_58, x_60, x_61); -lean_dec(x_60); -x_63 = !lean_is_exclusive(x_62); -if (x_63 == 0) +lean_object* x_63; uint8_t x_64; +x_63 = l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(x_59, x_61, x_62); +lean_dec(x_61); +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) { -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_62, 0); -x_65 = lean_ctor_get(x_62, 1); -lean_ctor_set(x_62, 1, x_64); -lean_ctor_set(x_62, 0, x_42); -x_49 = x_62; -x_50 = x_65; -goto block_54; +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_63, 0); +x_66 = lean_ctor_get(x_63, 1); +lean_ctor_set(x_63, 1, x_65); +lean_ctor_set(x_63, 0, x_43); +x_50 = x_63; +x_51 = x_66; +goto block_55; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_62, 0); -x_67 = lean_ctor_get(x_62, 1); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_63, 0); +x_68 = lean_ctor_get(x_63, 1); +lean_inc(x_68); lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_62); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_42); -lean_ctor_set(x_68, 1, x_66); -x_49 = x_68; -x_50 = x_67; -goto block_54; +lean_dec(x_63); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_43); +lean_ctor_set(x_69, 1, x_67); +x_50 = x_69; +x_51 = x_68; +goto block_55; } } } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_117 = lean_ctor_get(x_56, 0); -x_118 = lean_ctor_get(x_56, 1); +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; 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; +x_118 = lean_ctor_get(x_57, 0); +x_119 = lean_ctor_get(x_57, 1); +lean_inc(x_119); lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_56); -x_127 = lean_array_fget(x_8, x_10); -x_128 = lean_ctor_get(x_127, 3); -lean_inc(x_128); -lean_dec_ref(x_127); -x_129 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__2; -x_130 = l_Lean_MessageData_ofName(x_128); -lean_inc_ref(x_130); -x_131 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_131, 0, x_129); -lean_ctor_set(x_131, 1, x_130); -x_132 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__4; -x_133 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_133, 0, x_131); -lean_ctor_set(x_133, 1, x_132); -x_134 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___lam__0), 2, 1); -lean_closure_set(x_134, 0, x_133); -x_135 = l_Lean_Expr_mvarId_x21(x_117); +lean_dec(x_57); +x_128 = lean_array_fget(x_9, x_11); +x_129 = lean_ctor_get(x_128, 3); +lean_inc(x_129); +lean_dec_ref(x_128); +x_130 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__2; +x_131 = l_Lean_MessageData_ofName(x_129); +lean_inc_ref(x_131); +x_132 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_131); +x_133 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__4; +x_134 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set(x_134, 1, x_133); +x_135 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___lam__0), 2, 1); +lean_closure_set(x_135, 0, x_134); +x_136 = l_Lean_Expr_mvarId_x21(x_118); lean_inc(x_7); -x_136 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___lam__1), 7, 2); -lean_closure_set(x_136, 0, x_7); -lean_closure_set(x_136, 1, x_135); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -x_137 = l_Lean_Meta_mapErrorImp___redArg(x_136, x_134, x_14, x_15, x_16, x_17, x_118); -if (lean_obj_tag(x_137) == 0) +x_137 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___lam__1), 7, 2); +lean_closure_set(x_137, 0, x_7); +lean_closure_set(x_137, 1, x_136); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +x_138 = l_Lean_Meta_mapErrorImp___redArg(x_137, x_135, x_15, x_16, x_17, x_18, x_119); +if (lean_obj_tag(x_138) == 0) { -if (lean_obj_tag(x_137) == 0) +if (lean_obj_tag(x_138) == 0) { -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; -x_138 = lean_ctor_get(x_137, 1); -lean_inc(x_138); -lean_dec_ref(x_137); -x_139 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__10; -x_140 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_139, x_16, x_138); -x_141 = lean_ctor_get(x_140, 0); -lean_inc(x_141); -x_142 = lean_unbox(x_141); -lean_dec(x_141); -if (x_142 == 0) +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +lean_dec_ref(x_138); +x_140 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__10; +x_141 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_140, x_17, x_139); +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +x_143 = lean_unbox(x_142); +lean_dec(x_142); +if (x_143 == 0) { -lean_object* x_143; -lean_dec_ref(x_130); -x_143 = lean_ctor_get(x_140, 1); -lean_inc(x_143); -lean_dec_ref(x_140); -lean_inc(x_15); -x_119 = x_15; -x_120 = x_143; -goto block_126; -} -else -{ -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; -x_144 = lean_ctor_get(x_140, 1); +lean_object* x_144; +lean_dec_ref(x_131); +x_144 = lean_ctor_get(x_141, 1); lean_inc(x_144); -if (lean_is_exclusive(x_140)) { - lean_ctor_release(x_140, 0); - lean_ctor_release(x_140, 1); - x_145 = x_140; -} else { - lean_dec_ref(x_140); - x_145 = lean_box(0); -} -x_146 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__6; -if (lean_is_scalar(x_145)) { - x_147 = lean_alloc_ctor(7, 2, 0); -} else { - x_147 = x_145; - lean_ctor_set_tag(x_147, 7); -} -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_130); -x_148 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__8; -x_149 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_149, 0, x_147); -lean_ctor_set(x_149, 1, x_148); -lean_inc(x_117); -x_150 = l_Lean_MessageData_ofExpr(x_117); -x_151 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_151, 0, x_149); -lean_ctor_set(x_151, 1, x_150); -x_152 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; -x_153 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_153, 0, x_151); -lean_ctor_set(x_153, 1, x_152); -x_154 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_139, x_153, x_14, x_15, x_16, x_17, x_144); -x_155 = lean_ctor_get(x_154, 1); -lean_inc(x_155); -lean_dec_ref(x_154); -lean_inc(x_15); -x_119 = x_15; -x_120 = x_155; -goto block_126; -} +lean_dec_ref(x_141); +lean_inc(x_16); +x_120 = x_16; +x_121 = x_144; +goto block_127; } else { -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -lean_dec_ref(x_130); -lean_dec(x_117); -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec(x_7); -lean_dec_ref(x_5); -lean_dec_ref(x_4); -x_156 = lean_ctor_get(x_137, 0); +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; +x_145 = lean_ctor_get(x_141, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_146 = x_141; +} else { + lean_dec_ref(x_141); + x_146 = lean_box(0); +} +x_147 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__6; +if (lean_is_scalar(x_146)) { + x_148 = lean_alloc_ctor(7, 2, 0); +} else { + x_148 = x_146; + lean_ctor_set_tag(x_148, 7); +} +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_131); +x_149 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__8; +x_150 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_149); +lean_inc(x_118); +x_151 = l_Lean_MessageData_ofExpr(x_118); +x_152 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_152, 0, x_150); +lean_ctor_set(x_152, 1, x_151); +x_153 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; +x_154 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_154, 0, x_152); +lean_ctor_set(x_154, 1, x_153); +x_155 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_140, x_154, x_15, x_16, x_17, x_18, x_145); +x_156 = lean_ctor_get(x_155, 1); lean_inc(x_156); -x_157 = lean_ctor_get(x_137, 1); -lean_inc(x_157); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_158 = x_137; -} else { - lean_dec_ref(x_137); - x_158 = lean_box(0); -} -if (lean_is_scalar(x_158)) { - x_159 = lean_alloc_ctor(1, 2, 0); -} else { - x_159 = x_158; - lean_ctor_set_tag(x_159, 1); -} -lean_ctor_set(x_159, 0, x_156); -lean_ctor_set(x_159, 1, x_157); -return x_159; +lean_dec_ref(x_155); +lean_inc(x_16); +x_120 = x_16; +x_121 = x_156; +goto block_127; } } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; -lean_dec_ref(x_130); -lean_dec(x_117); -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_dec_ref(x_131); +lean_dec(x_118); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_160 = lean_ctor_get(x_137, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_137, 1); -lean_inc(x_161); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_162 = x_137; +x_157 = lean_ctor_get(x_138, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_138, 1); +lean_inc(x_158); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_159 = x_138; } else { - lean_dec_ref(x_137); - x_162 = lean_box(0); + lean_dec_ref(x_138); + x_159 = lean_box(0); } -if (lean_is_scalar(x_162)) { - x_163 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_159)) { + x_160 = lean_alloc_ctor(1, 2, 0); } else { - x_163 = x_162; + x_160 = x_159; + lean_ctor_set_tag(x_160, 1); } -lean_ctor_set(x_163, 0, x_160); -lean_ctor_set(x_163, 1, x_161); -return x_163; +lean_ctor_set(x_160, 0, x_157); +lean_ctor_set(x_160, 1, x_158); +return x_160; } -block_126: +} +else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_121 = l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(x_117, x_119, x_120); -lean_dec(x_119); -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_dec_ref(x_131); +lean_dec(x_118); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec_ref(x_12); +lean_dec(x_7); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +x_161 = lean_ctor_get(x_138, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_138, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_163 = x_138; +} else { + lean_dec_ref(x_138); + x_163 = lean_box(0); +} +if (lean_is_scalar(x_163)) { + x_164 = lean_alloc_ctor(1, 2, 0); +} else { + x_164 = x_163; +} +lean_ctor_set(x_164, 0, x_161); +lean_ctor_set(x_164, 1, x_162); +return x_164; +} +block_127: +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_122 = l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(x_118, x_120, x_121); +lean_dec(x_120); +x_123 = lean_ctor_get(x_122, 0); lean_inc(x_123); -if (lean_is_exclusive(x_121)) { - lean_ctor_release(x_121, 0); - lean_ctor_release(x_121, 1); - x_124 = x_121; +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_125 = x_122; } else { - lean_dec_ref(x_121); - x_124 = lean_box(0); + lean_dec_ref(x_122); + x_125 = lean_box(0); } -if (lean_is_scalar(x_124)) { - x_125 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_125)) { + x_126 = lean_alloc_ctor(0, 2, 0); } else { - x_125 = x_124; + x_126 = x_125; } -lean_ctor_set(x_125, 0, x_42); -lean_ctor_set(x_125, 1, x_122); -x_49 = x_125; -x_50 = x_123; -goto block_54; +lean_ctor_set(x_126, 0, x_43); +lean_ctor_set(x_126, 1, x_123); +x_50 = x_126; +x_51 = x_124; +goto block_55; } } } else { -uint8_t x_164; -x_164 = !lean_is_exclusive(x_46); -if (x_164 == 0) +uint8_t x_165; +x_165 = !lean_is_exclusive(x_47); +if (x_165 == 0) { -lean_object* x_165; uint8_t x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; -x_165 = lean_ctor_get(x_46, 0); -lean_inc(x_42); -lean_ctor_set(x_46, 0, x_42); -x_166 = 1; +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; +x_166 = lean_ctor_get(x_47, 0); +lean_inc(x_43); +lean_ctor_set(x_47, 0, x_43); x_167 = lean_box(0); -x_168 = lean_box(x_166); -x_169 = lean_box(x_166); +x_168 = lean_box(x_8); +x_169 = lean_box(x_8); x_170 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_170, 0, x_165); -lean_closure_set(x_170, 1, x_46); +lean_closure_set(x_170, 0, x_166); +lean_closure_set(x_170, 1, x_47); lean_closure_set(x_170, 2, x_168); lean_closure_set(x_170, 3, x_169); lean_closure_set(x_170, 4, x_167); x_171 = 1; -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_13); -lean_inc_ref(x_12); -x_172 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___redArg(x_170, x_171, x_12, x_13, x_14, x_15, x_16, x_17, x_43); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_14); +lean_inc_ref(x_13); +x_172 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___redArg(x_170, x_171, x_13, x_14, x_15, x_16, x_17, x_18, x_44); if (lean_obj_tag(x_172) == 0) { lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; @@ -6987,14 +6424,14 @@ lean_inc(x_173); x_174 = lean_ctor_get(x_172, 1); lean_inc(x_174); lean_dec_ref(x_172); -x_175 = l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(x_173, x_15, x_174); +x_175 = l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(x_173, x_16, x_174); x_176 = lean_ctor_get(x_175, 0); lean_inc(x_176); x_177 = lean_ctor_get(x_175, 1); lean_inc(x_177); lean_dec_ref(x_175); lean_inc(x_176); -x_178 = l_Lean_Meta_getMVars(x_176, x_14, x_15, x_16, x_17, x_177); +x_178 = l_Lean_Meta_getMVars(x_176, x_15, x_16, x_17, x_18, x_177); x_179 = !lean_is_exclusive(x_178); if (x_179 == 0) { @@ -7007,13 +6444,13 @@ if (x_182 == 0) lean_object* x_183; lean_object* x_184; lean_dec(x_176); x_183 = lean_box(0); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_13); -lean_inc_ref(x_12); -x_184 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_180, x_183, x_12, x_13, x_14, x_15, x_16, x_17, x_181); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_14); +lean_inc_ref(x_13); +x_184 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_180, x_183, x_13, x_14, x_15, x_16, x_17, x_18, x_181); lean_dec(x_180); if (lean_obj_tag(x_184) == 0) { @@ -7021,12 +6458,12 @@ lean_object* x_185; lean_object* x_186; x_185 = lean_ctor_get(x_184, 1); lean_inc(x_185); lean_dec_ref(x_184); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_42); -x_186 = l_Lean_Meta_mkSorry(x_42, x_166, x_14, x_15, x_16, x_17, x_185); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_43); +x_186 = l_Lean_Meta_mkSorry(x_43, x_8, x_15, x_16, x_17, x_18, x_185); if (lean_obj_tag(x_186) == 0) { lean_object* x_187; lean_object* x_188; @@ -7036,24 +6473,24 @@ x_188 = lean_ctor_get(x_186, 1); lean_inc(x_188); lean_dec_ref(x_186); lean_ctor_set(x_178, 1, x_187); -lean_ctor_set(x_178, 0, x_42); -x_49 = x_178; -x_50 = x_188; -goto block_54; +lean_ctor_set(x_178, 0, x_43); +x_50 = x_178; +x_51 = x_188; +goto block_55; } else { uint8_t x_189; lean_free_object(x_178); -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); @@ -7081,15 +6518,15 @@ else { uint8_t x_193; lean_free_object(x_178); -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); @@ -7117,10 +6554,10 @@ else { lean_dec(x_180); lean_ctor_set(x_178, 1, x_176); -lean_ctor_set(x_178, 0, x_42); -x_49 = x_178; -x_50 = x_181; -goto block_54; +lean_ctor_set(x_178, 0, x_43); +x_50 = x_178; +x_51 = x_181; +goto block_55; } } else @@ -7137,13 +6574,13 @@ if (x_199 == 0) lean_object* x_200; lean_object* x_201; lean_dec(x_176); x_200 = lean_box(0); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_13); -lean_inc_ref(x_12); -x_201 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_197, x_200, x_12, x_13, x_14, x_15, x_16, x_17, x_198); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_14); +lean_inc_ref(x_13); +x_201 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_197, x_200, x_13, x_14, x_15, x_16, x_17, x_18, x_198); lean_dec(x_197); if (lean_obj_tag(x_201) == 0) { @@ -7151,12 +6588,12 @@ lean_object* x_202; lean_object* x_203; x_202 = lean_ctor_get(x_201, 1); lean_inc(x_202); lean_dec_ref(x_201); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_42); -x_203 = l_Lean_Meta_mkSorry(x_42, x_166, x_14, x_15, x_16, x_17, x_202); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_43); +x_203 = l_Lean_Meta_mkSorry(x_43, x_8, x_15, x_16, x_17, x_18, x_202); if (lean_obj_tag(x_203) == 0) { lean_object* x_204; lean_object* x_205; lean_object* x_206; @@ -7166,24 +6603,24 @@ x_205 = lean_ctor_get(x_203, 1); lean_inc(x_205); lean_dec_ref(x_203); x_206 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_206, 0, x_42); +lean_ctor_set(x_206, 0, x_43); lean_ctor_set(x_206, 1, x_204); -x_49 = x_206; -x_50 = x_205; -goto block_54; +x_50 = x_206; +x_51 = x_205; +goto block_55; } else { lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); @@ -7212,15 +6649,15 @@ return x_210; else { lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); @@ -7251,26 +6688,26 @@ else lean_object* x_215; lean_dec(x_197); x_215 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_215, 0, x_42); +lean_ctor_set(x_215, 0, x_43); lean_ctor_set(x_215, 1, x_176); -x_49 = x_215; -x_50 = x_198; -goto block_54; +x_50 = x_215; +x_51 = x_198; +goto block_55; } } } else { uint8_t x_216; -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); @@ -7296,321 +6733,320 @@ return x_219; } else { -lean_object* x_220; lean_object* x_221; uint8_t x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; uint8_t x_227; lean_object* x_228; -x_220 = lean_ctor_get(x_46, 0); +lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; uint8_t x_226; lean_object* x_227; +x_220 = lean_ctor_get(x_47, 0); lean_inc(x_220); -lean_dec(x_46); -lean_inc(x_42); +lean_dec(x_47); +lean_inc(x_43); x_221 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_221, 0, x_42); -x_222 = 1; -x_223 = lean_box(0); -x_224 = lean_box(x_222); -x_225 = lean_box(x_222); -x_226 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_226, 0, x_220); -lean_closure_set(x_226, 1, x_221); -lean_closure_set(x_226, 2, x_224); -lean_closure_set(x_226, 3, x_225); -lean_closure_set(x_226, 4, x_223); -x_227 = 1; -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_13); -lean_inc_ref(x_12); -x_228 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___redArg(x_226, x_227, x_12, x_13, x_14, x_15, x_16, x_17, x_43); -if (lean_obj_tag(x_228) == 0) +lean_ctor_set(x_221, 0, x_43); +x_222 = lean_box(0); +x_223 = lean_box(x_8); +x_224 = lean_box(x_8); +x_225 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); +lean_closure_set(x_225, 0, x_220); +lean_closure_set(x_225, 1, x_221); +lean_closure_set(x_225, 2, x_223); +lean_closure_set(x_225, 3, x_224); +lean_closure_set(x_225, 4, x_222); +x_226 = 1; +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_14); +lean_inc_ref(x_13); +x_227 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___redArg(x_225, x_226, x_13, x_14, x_15, x_16, x_17, x_18, x_44); +if (lean_obj_tag(x_227) == 0) { -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; uint8_t x_238; -x_229 = lean_ctor_get(x_228, 0); +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; uint8_t x_237; +x_228 = lean_ctor_get(x_227, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_227, 1); lean_inc(x_229); -x_230 = lean_ctor_get(x_228, 1); -lean_inc(x_230); -lean_dec_ref(x_228); -x_231 = l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(x_229, x_15, x_230); -x_232 = lean_ctor_get(x_231, 0); +lean_dec_ref(x_227); +x_230 = l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(x_228, x_16, x_229); +x_231 = lean_ctor_get(x_230, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_230, 1); lean_inc(x_232); -x_233 = lean_ctor_get(x_231, 1); -lean_inc(x_233); -lean_dec_ref(x_231); -lean_inc(x_232); -x_234 = l_Lean_Meta_getMVars(x_232, x_14, x_15, x_16, x_17, x_233); -x_235 = lean_ctor_get(x_234, 0); +lean_dec_ref(x_230); +lean_inc(x_231); +x_233 = l_Lean_Meta_getMVars(x_231, x_15, x_16, x_17, x_18, x_232); +x_234 = lean_ctor_get(x_233, 0); +lean_inc(x_234); +x_235 = lean_ctor_get(x_233, 1); lean_inc(x_235); -x_236 = lean_ctor_get(x_234, 1); -lean_inc(x_236); -if (lean_is_exclusive(x_234)) { - lean_ctor_release(x_234, 0); - lean_ctor_release(x_234, 1); - x_237 = x_234; +if (lean_is_exclusive(x_233)) { + lean_ctor_release(x_233, 0); + lean_ctor_release(x_233, 1); + x_236 = x_233; } else { - lean_dec_ref(x_234); - x_237 = lean_box(0); + lean_dec_ref(x_233); + x_236 = lean_box(0); } -x_238 = l_Array_isEmpty___redArg(x_235); -if (x_238 == 0) +x_237 = l_Array_isEmpty___redArg(x_234); +if (x_237 == 0) { -lean_object* x_239; lean_object* x_240; -lean_dec(x_232); -x_239 = lean_box(0); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_13); -lean_inc_ref(x_12); -x_240 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_235, x_239, x_12, x_13, x_14, x_15, x_16, x_17, x_236); -lean_dec(x_235); -if (lean_obj_tag(x_240) == 0) +lean_object* x_238; lean_object* x_239; +lean_dec(x_231); +x_238 = lean_box(0); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_14); +lean_inc_ref(x_13); +x_239 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_234, x_238, x_13, x_14, x_15, x_16, x_17, x_18, x_235); +lean_dec(x_234); +if (lean_obj_tag(x_239) == 0) { -lean_object* x_241; lean_object* x_242; -x_241 = lean_ctor_get(x_240, 1); -lean_inc(x_241); -lean_dec_ref(x_240); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_42); -x_242 = l_Lean_Meta_mkSorry(x_42, x_222, x_14, x_15, x_16, x_17, x_241); -if (lean_obj_tag(x_242) == 0) +lean_object* x_240; lean_object* x_241; +x_240 = lean_ctor_get(x_239, 1); +lean_inc(x_240); +lean_dec_ref(x_239); +lean_inc(x_18); +lean_inc_ref(x_17); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_43); +x_241 = l_Lean_Meta_mkSorry(x_43, x_8, x_15, x_16, x_17, x_18, x_240); +if (lean_obj_tag(x_241) == 0) { -lean_object* x_243; lean_object* x_244; lean_object* x_245; -x_243 = lean_ctor_get(x_242, 0); +lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_242 = lean_ctor_get(x_241, 0); +lean_inc(x_242); +x_243 = lean_ctor_get(x_241, 1); lean_inc(x_243); -x_244 = lean_ctor_get(x_242, 1); -lean_inc(x_244); -lean_dec_ref(x_242); -if (lean_is_scalar(x_237)) { - x_245 = lean_alloc_ctor(0, 2, 0); +lean_dec_ref(x_241); +if (lean_is_scalar(x_236)) { + x_244 = lean_alloc_ctor(0, 2, 0); } else { - x_245 = x_237; + x_244 = x_236; } -lean_ctor_set(x_245, 0, x_42); -lean_ctor_set(x_245, 1, x_243); -x_49 = x_245; +lean_ctor_set(x_244, 0, x_43); +lean_ctor_set(x_244, 1, x_242); x_50 = x_244; -goto block_54; +x_51 = x_243; +goto block_55; } else { -lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; -lean_dec(x_237); -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +lean_dec(x_236); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_246 = lean_ctor_get(x_242, 0); +x_245 = lean_ctor_get(x_241, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_241, 1); lean_inc(x_246); -x_247 = lean_ctor_get(x_242, 1); -lean_inc(x_247); -if (lean_is_exclusive(x_242)) { - lean_ctor_release(x_242, 0); - lean_ctor_release(x_242, 1); - x_248 = x_242; +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_247 = x_241; } else { - lean_dec_ref(x_242); - x_248 = lean_box(0); + lean_dec_ref(x_241); + x_247 = lean_box(0); } -if (lean_is_scalar(x_248)) { - x_249 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_247)) { + x_248 = lean_alloc_ctor(1, 2, 0); } else { - x_249 = x_248; + x_248 = x_247; } -lean_ctor_set(x_249, 0, x_246); -lean_ctor_set(x_249, 1, x_247); -return x_249; +lean_ctor_set(x_248, 0, x_245); +lean_ctor_set(x_248, 1, x_246); +return x_248; } } else { -lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; -lean_dec(x_237); -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; +lean_dec(x_236); +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_250 = lean_ctor_get(x_240, 0); +x_249 = lean_ctor_get(x_239, 0); +lean_inc(x_249); +x_250 = lean_ctor_get(x_239, 1); lean_inc(x_250); -x_251 = lean_ctor_get(x_240, 1); -lean_inc(x_251); -if (lean_is_exclusive(x_240)) { - lean_ctor_release(x_240, 0); - lean_ctor_release(x_240, 1); - x_252 = x_240; +if (lean_is_exclusive(x_239)) { + lean_ctor_release(x_239, 0); + lean_ctor_release(x_239, 1); + x_251 = x_239; } else { - lean_dec_ref(x_240); - x_252 = lean_box(0); + lean_dec_ref(x_239); + x_251 = lean_box(0); } -if (lean_is_scalar(x_252)) { - x_253 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_251)) { + x_252 = lean_alloc_ctor(1, 2, 0); } else { - x_253 = x_252; + x_252 = x_251; } -lean_ctor_set(x_253, 0, x_250); -lean_ctor_set(x_253, 1, x_251); -return x_253; +lean_ctor_set(x_252, 0, x_249); +lean_ctor_set(x_252, 1, x_250); +return x_252; } } else { -lean_object* x_254; -lean_dec(x_235); -if (lean_is_scalar(x_237)) { - x_254 = lean_alloc_ctor(0, 2, 0); +lean_object* x_253; +lean_dec(x_234); +if (lean_is_scalar(x_236)) { + x_253 = lean_alloc_ctor(0, 2, 0); } else { - x_254 = x_237; + x_253 = x_236; } -lean_ctor_set(x_254, 0, x_42); -lean_ctor_set(x_254, 1, x_232); -x_49 = x_254; -x_50 = x_236; -goto block_54; +lean_ctor_set(x_253, 0, x_43); +lean_ctor_set(x_253, 1, x_231); +x_50 = x_253; +x_51 = x_235; +goto block_55; } } else { -lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; -lean_dec(x_48); -lean_dec(x_42); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; +lean_dec(x_49); +lean_dec(x_43); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_255 = lean_ctor_get(x_228, 0); +x_254 = lean_ctor_get(x_227, 0); +lean_inc(x_254); +x_255 = lean_ctor_get(x_227, 1); lean_inc(x_255); -x_256 = lean_ctor_get(x_228, 1); -lean_inc(x_256); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - x_257 = x_228; +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + x_256 = x_227; } else { - lean_dec_ref(x_228); - x_257 = lean_box(0); + lean_dec_ref(x_227); + x_256 = lean_box(0); } -if (lean_is_scalar(x_257)) { - x_258 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_256)) { + x_257 = lean_alloc_ctor(1, 2, 0); } else { - x_258 = x_257; + x_257 = x_256; } -lean_ctor_set(x_258, 0, x_255); -lean_ctor_set(x_258, 1, x_256); -return x_258; +lean_ctor_set(x_257, 0, x_254); +lean_ctor_set(x_257, 1, x_255); +return x_257; } } } -block_54: +block_55: { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_nat_add(x_10, x_47); -x_52 = lean_array_push(x_11, x_49); -x_53 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_48, x_51, x_52, x_12, x_13, x_14, x_15, x_16, x_17, x_50); -return x_53; +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_nat_add(x_11, x_48); +x_53 = lean_array_push(x_12, x_50); +x_54 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_49, x_52, x_53, x_13, x_14, x_15, x_16, x_17, x_18, x_51); +return x_54; } } else { -uint8_t x_259; -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +uint8_t x_258; +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_259 = !lean_is_exclusive(x_41); -if (x_259 == 0) +x_258 = !lean_is_exclusive(x_42); +if (x_258 == 0) { -return x_41; +return x_42; } else { -lean_object* x_260; lean_object* x_261; lean_object* x_262; -x_260 = lean_ctor_get(x_41, 0); -x_261 = lean_ctor_get(x_41, 1); -lean_inc(x_261); +lean_object* x_259; lean_object* x_260; lean_object* x_261; +x_259 = lean_ctor_get(x_42, 0); +x_260 = lean_ctor_get(x_42, 1); lean_inc(x_260); -lean_dec(x_41); -x_262 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_262, 0, x_260); -lean_ctor_set(x_262, 1, x_261); -return x_262; +lean_inc(x_259); +lean_dec(x_42); +x_261 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_261, 0, x_259); +lean_ctor_set(x_261, 1, x_260); +return x_261; } } } else { -uint8_t x_263; -lean_dec_ref(x_25); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); +uint8_t x_262; +lean_dec_ref(x_26); +lean_dec(x_18); +lean_dec_ref(x_17); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec_ref(x_12); -lean_dec_ref(x_11); lean_dec(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); -x_263 = !lean_is_exclusive(x_26); -if (x_263 == 0) +x_262 = !lean_is_exclusive(x_27); +if (x_262 == 0) { -return x_26; +return x_27; } else { -lean_object* x_264; lean_object* x_265; lean_object* x_266; -x_264 = lean_ctor_get(x_26, 0); -x_265 = lean_ctor_get(x_26, 1); -lean_inc(x_265); +lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_263 = lean_ctor_get(x_27, 0); +x_264 = lean_ctor_get(x_27, 1); lean_inc(x_264); -lean_dec(x_26); -x_266 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_266, 0, x_264); -lean_ctor_set(x_266, 1, x_265); -return x_266; +lean_inc(x_263); +lean_dec(x_27); +x_265 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_265, 0, x_263); +lean_ctor_set(x_265, 1, x_264); +return x_265; } } } } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12(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, uint8_t x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21, lean_object* x_22, lean_object* x_23, lean_object* x_24) { _start: { -lean_object* x_22; -x_22 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); -return x_22; +lean_object* x_25; +x_25 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_9, x_12, x_13, x_14, x_15, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24); +return x_25; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, uint8_t x_8, uint8_t x_9, lean_object* x_10, uint8_t x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21, lean_object* x_22, lean_object* x_23, lean_object* x_24, lean_object* x_25) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, uint8_t x_8, uint8_t x_9, lean_object* x_10, uint8_t x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21, lean_object* x_22, lean_object* x_23, lean_object* x_24, lean_object* x_25) { _start: { 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; @@ -7698,7 +7134,7 @@ return x_45; } } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, uint8_t x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, uint8_t x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { _start: { lean_object* x_21; uint8_t x_22; @@ -7756,7 +7192,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc_ref(x_32); -x_37 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15___redArg___lam__0___boxed), 25, 16); +x_37 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14___redArg___lam__0___boxed), 25, 16); lean_closure_set(x_37, 0, x_32); lean_closure_set(x_37, 1, x_3); lean_closure_set(x_37, 2, x_4); @@ -7843,15 +7279,15 @@ return x_51; } } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, uint8_t x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, uint8_t x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21) { _start: { lean_object* x_22; -x_22 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15___redArg(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_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +x_22 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14___redArg(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_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); return x_22; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, uint8_t x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, uint8_t x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { _start: { lean_object* x_21; uint8_t x_22; @@ -7908,7 +7344,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc_ref(x_32); -x_37 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15___redArg___lam__0___boxed), 25, 16); +x_37 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14___redArg___lam__0___boxed), 25, 16); lean_closure_set(x_37, 0, x_32); lean_closure_set(x_37, 1, x_3); lean_closure_set(x_37, 2, x_4); @@ -7949,7 +7385,7 @@ x_44 = lean_nat_sub(x_11, x_43); x_45 = lean_nat_add(x_12, x_43); lean_dec(x_12); x_46 = lean_array_push(x_13, x_41); -x_47 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_44, x_45, x_46, x_14, x_15, x_16, x_17, x_18, x_19, x_42); +x_47 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_44, x_45, x_46, x_14, x_15, x_16, x_17, x_18, x_19, x_42); return x_47; } else @@ -7990,15 +7426,15 @@ return x_51; } } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, uint8_t x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, uint8_t x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21) { _start: { lean_object* x_22; -x_22 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15___redArg(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_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +x_22 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14___redArg(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_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); return x_22; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17___redArg(uint8_t x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__16___redArg(uint8_t x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { uint8_t x_10; @@ -8072,15 +7508,15 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17(uint8_t x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__16(uint8_t x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17___redArg(x_1, x_2, x_3, x_4, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__16___redArg(x_1, x_2, x_3, x_4, x_7, x_8, x_9, x_10, x_11); return x_12; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__18(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -8107,7 +7543,7 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__19___redArg___lam__0(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_EXPORT lean_object* l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__18___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; @@ -8115,11 +7551,11 @@ x_10 = lean_apply_8(x_1, x_4, x_2, x_3, x_5, x_6, x_7, x_8, x_9); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__19___redArg(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_EXPORT lean_object* l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__18___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; -x_11 = lean_alloc_closure((void*)(l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__19___redArg___lam__0), 9, 3); +x_11 = lean_alloc_closure((void*)(l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__18___redArg___lam__0), 9, 3); lean_closure_set(x_11, 0, x_3); lean_closure_set(x_11, 1, x_4); lean_closure_set(x_11, 2, x_5); @@ -8152,15 +7588,15 @@ return x_16; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__19(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_EXPORT lean_object* l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__18(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) { _start: { lean_object* x_12; -x_12 = l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__19___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__18___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_12; } } -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__20(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__19(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { _start: { uint8_t x_5; @@ -8197,7 +7633,7 @@ return x_13; } } } -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__21(lean_object* x_1, uint8_t x_2, lean_object* x_3, size_t x_4, size_t x_5) { +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__20(lean_object* x_1, uint8_t x_2, lean_object* x_3, size_t x_4, size_t x_5) { _start: { uint8_t x_6; @@ -8679,6 +8115,25 @@ return x_13; static lean_object* _init_l_Lean_Elab_partialFixpoint___lam__3___closed__0() { _start: { +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_ReaderT_instMonadLift___lam__0___boxed), 3, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_partialFixpoint___lam__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___boxed), 6, 3); +lean_closure_set(x_1, 0, lean_box(0)); +lean_closure_set(x_1, 1, lean_box(0)); +lean_closure_set(x_1, 2, lean_box(0)); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_partialFixpoint___lam__3___closed__2() { +_start: +{ lean_object* x_1; lean_object* x_2; x_1 = l_Lean_instInhabitedExpr; x_2 = lean_alloc_ctor(0, 2, 0); @@ -8687,7 +8142,7 @@ lean_ctor_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_partialFixpoint___lam__3___closed__1() { +static lean_object* _init_l_Lean_Elab_partialFixpoint___lam__3___closed__3() { _start: { lean_object* x_1; @@ -8695,28 +8150,11 @@ x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_PartialFixp return x_1; } } -static lean_object* _init_l_Lean_Elab_partialFixpoint___lam__3___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("mutual", 6, 6); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_partialFixpoint___lam__3___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_partialFixpoint___lam__3___closed__2; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; -} -} static lean_object* _init_l_Lean_Elab_partialFixpoint___lam__3___closed__4() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("packedValue: ", 13, 13); +x_1 = lean_mk_string_unchecked("mutual", 6, 6); return x_1; } } @@ -8725,1807 +8163,1802 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Elab_partialFixpoint___lam__3___closed__4; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_partialFixpoint___lam__3___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("packedValue: ", 13, 13); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_partialFixpoint___lam__3___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_partialFixpoint___lam__3___closed__6; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Elab_partialFixpoint___lam__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, size_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, size_t x_14, uint8_t x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21, lean_object* x_22, lean_object* x_23) { +LEAN_EXPORT lean_object* l_Lean_Elab_partialFixpoint___lam__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, size_t x_9, lean_object* x_10, lean_object* x_11, uint8_t x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, size_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) { _start: { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_array_get_size(x_1); -x_25 = lean_mk_empty_array_with_capacity(x_24); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_array_get_size(x_1); +x_27 = lean_mk_empty_array_with_capacity(x_26); +lean_inc(x_24); +lean_inc_ref(x_23); lean_inc(x_22); lean_inc_ref(x_21); -lean_inc(x_20); -lean_inc_ref(x_19); lean_inc(x_4); -lean_inc_ref(x_16); +lean_inc_ref(x_18); lean_inc_ref(x_2); -x_26 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__7___redArg(x_2, x_3, x_16, x_1, x_24, x_4, x_25, x_19, x_20, x_21, x_22, x_23); -if (lean_obj_tag(x_26) == 0) +x_28 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__7___redArg(x_2, x_3, x_18, x_1, x_26, x_4, x_27, x_21, x_22, x_23, x_24, x_25); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec_ref(x_26); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec_ref(x_28); +lean_inc(x_24); +lean_inc_ref(x_23); lean_inc(x_22); lean_inc_ref(x_21); -lean_inc(x_20); -lean_inc_ref(x_19); lean_inc_ref(x_7); lean_inc(x_4); lean_inc(x_6); -lean_inc_ref(x_16); +lean_inc_ref(x_18); lean_inc_ref(x_2); -x_29 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__8___redArg(x_2, x_3, x_16, x_5, x_6, x_4, x_7, x_19, x_20, x_21, x_22, x_28); -if (lean_obj_tag(x_29) == 0) +x_31 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__8___redArg(x_2, x_3, x_18, x_5, x_6, x_4, x_7, x_21, x_22, x_23, x_24, x_30); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec_ref(x_29); -x_32 = l_Lean_Level_ofNat(x_4); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec_ref(x_31); +x_34 = l_Lean_Level_ofNat(x_4); +lean_inc(x_24); +lean_inc_ref(x_23); +lean_inc(x_22); +lean_inc_ref(x_21); +lean_inc(x_32); +x_35 = l_Lean_Meta_PProdN_pack(x_34, x_32, x_21, x_22, x_23, x_24, x_33); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; size_t x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec_ref(x_35); +x_38 = lean_array_size(x_29); +lean_inc(x_24); +lean_inc_ref(x_23); lean_inc(x_22); lean_inc_ref(x_21); lean_inc(x_20); lean_inc_ref(x_19); -lean_inc(x_30); -x_33 = l_Lean_Meta_PProdN_pack(x_32, x_30, x_19, x_20, x_21, x_22, x_31); -if (lean_obj_tag(x_33) == 0) +x_39 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__9(x_8, x_38, x_9, x_29, x_19, x_20, x_21, x_22, x_23, x_24, x_37); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_34; lean_object* x_35; size_t x_36; lean_object* x_37; -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec_ref(x_33); -x_36 = lean_array_size(x_27); -lean_inc(x_22); -lean_inc_ref(x_21); -lean_inc(x_20); -lean_inc_ref(x_19); -lean_inc(x_18); -lean_inc_ref(x_17); -x_37 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__10(x_8, x_36, x_9, x_27, x_17, x_18, x_19, x_20, x_21, x_22, x_35); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec_ref(x_37); -lean_inc(x_22); -lean_inc_ref(x_21); -lean_inc(x_20); -lean_inc_ref(x_19); -lean_inc(x_38); -x_40 = l_Lean_Meta_mkPackedPPRodInstance(x_38, x_19, x_20, x_21, x_22, x_39); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_41 = lean_ctor_get(x_40, 0); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec_ref(x_40); -x_43 = lean_box(0); +lean_dec_ref(x_39); +lean_inc(x_24); +lean_inc_ref(x_23); lean_inc(x_22); lean_inc_ref(x_21); -lean_inc(x_20); -lean_inc_ref(x_19); -lean_inc(x_41); -x_44 = l_Lean_Meta_toPartialOrder(x_41, x_43, x_19, x_20, x_21, x_22, x_42); -if (lean_obj_tag(x_44) == 0) +lean_inc(x_40); +x_42 = l_Lean_Meta_mkPackedPPRodInstance(x_40, x_21, x_22, x_23, x_24, x_41); +if (lean_obj_tag(x_42) == 0) { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec_ref(x_44); +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec_ref(x_42); +x_45 = lean_box(0); +lean_inc(x_24); +lean_inc_ref(x_23); lean_inc(x_22); lean_inc_ref(x_21); -lean_inc(x_20); -lean_inc_ref(x_19); -lean_inc(x_18); -lean_inc_ref(x_17); -lean_inc(x_34); -lean_inc_ref(x_5); -lean_inc_ref(x_11); -lean_inc(x_6); -lean_inc(x_4); -lean_inc_ref(x_16); -lean_inc_ref(x_2); -x_47 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg(x_2, x_3, x_16, x_4, x_6, x_10, x_11, x_5, x_34, x_5, x_6, x_4, x_7, x_17, x_18, x_19, x_20, x_21, x_22, x_46); -if (lean_obj_tag(x_47) == 0) +lean_inc(x_43); +x_46 = l_Lean_Meta_toPartialOrder(x_43, x_45, x_21, x_22, x_23, x_24, x_44); +if (lean_obj_tag(x_46) == 0) { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_48 = lean_ctor_get(x_47, 0); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); -lean_inc(x_49); -lean_dec_ref(x_47); -lean_inc_ref(x_16); +lean_dec_ref(x_46); +lean_inc(x_36); +lean_inc_ref_n(x_5, 2); +lean_inc_ref(x_11); +lean_inc_n(x_6, 2); +lean_inc_n(x_4, 2); +lean_inc_ref(x_18); +lean_inc_ref(x_3); +lean_inc_ref(x_2); +x_49 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___boxed), 21, 14); +lean_closure_set(x_49, 0, x_2); +lean_closure_set(x_49, 1, x_3); +lean_closure_set(x_49, 2, x_18); +lean_closure_set(x_49, 3, x_4); +lean_closure_set(x_49, 4, x_6); +lean_closure_set(x_49, 5, x_10); +lean_closure_set(x_49, 6, x_11); +lean_closure_set(x_49, 7, x_5); +lean_closure_set(x_49, 8, x_36); +lean_closure_set(x_49, 9, x_5); +lean_closure_set(x_49, 10, x_6); +lean_closure_set(x_49, 11, x_4); +lean_closure_set(x_49, 12, lean_box(0)); +lean_closure_set(x_49, 13, x_7); +lean_inc(x_24); +lean_inc_ref(x_23); +lean_inc(x_22); +lean_inc_ref(x_21); +lean_inc(x_20); +lean_inc_ref(x_19); +x_50 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(x_49, x_12, x_19, x_20, x_21, x_22, x_23, x_24, x_48); +if (lean_obj_tag(x_50) == 0) +{ +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; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec_ref(x_50); +lean_inc_ref(x_18); lean_inc_ref(x_11); lean_inc_ref(x_5); -x_50 = lean_alloc_closure((void*)(l_Lean_Elab_partialFixpoint___lam__2), 11, 3); -lean_closure_set(x_50, 0, x_5); -lean_closure_set(x_50, 1, x_11); -lean_closure_set(x_50, 2, x_16); -x_51 = lean_mk_empty_array_with_capacity(x_6); -lean_inc(x_22); -lean_inc_ref(x_21); -lean_inc(x_20); -lean_inc_ref(x_19); -lean_inc(x_18); -lean_inc_ref(x_17); -lean_inc_ref(x_51); -lean_inc(x_34); -x_52 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13___redArg(x_30, x_38, x_48, x_34, x_45, x_12, x_50, x_5, x_6, x_4, x_51, x_17, x_18, x_19, x_20, x_21, x_22, x_49); -lean_dec(x_48); -lean_dec(x_38); -lean_dec(x_30); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec_ref(x_52); -x_55 = l_Lean_Elab_partialFixpoint___lam__3___closed__0; -x_56 = l_Lean_Elab_partialFixpoint___lam__3___closed__1; -lean_inc(x_22); -lean_inc_ref(x_21); -lean_inc(x_20); -lean_inc_ref(x_19); -x_57 = l_Lean_Meta_PProdN_genMk___redArg(x_55, x_56, x_53, x_19, x_20, x_21, x_22, x_54); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec_ref(x_57); -x_60 = !lean_is_exclusive(x_58); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_58, 1); -x_62 = lean_ctor_get(x_58, 0); -lean_dec(x_62); -lean_inc(x_22); -lean_inc_ref(x_21); -lean_inc(x_20); -lean_inc_ref(x_19); -lean_inc(x_34); -x_63 = l_Lean_Meta_mkFixOfMonFun(x_34, x_41, x_61, x_19, x_20, x_21, x_22, x_59); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; 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; uint8_t x_159; 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_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec_ref(x_63); -x_176 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__10; -x_177 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_176, x_21, x_65); -x_178 = lean_ctor_get(x_177, 0); -lean_inc(x_178); -x_179 = lean_unbox(x_178); -lean_dec(x_178); -if (x_179 == 0) -{ -lean_object* x_180; -lean_free_object(x_58); -x_180 = lean_ctor_get(x_177, 1); -lean_inc(x_180); -lean_dec_ref(x_177); -x_165 = x_17; -x_166 = x_18; -x_167 = x_19; -x_168 = x_20; -x_169 = x_21; -x_170 = x_22; -x_171 = x_180; -goto block_175; -} -else -{ -uint8_t x_181; -x_181 = !lean_is_exclusive(x_177); -if (x_181 == 0) -{ -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; -x_182 = lean_ctor_get(x_177, 1); -x_183 = lean_ctor_get(x_177, 0); -lean_dec(x_183); -x_184 = l_Lean_Elab_partialFixpoint___lam__3___closed__5; -lean_inc(x_64); -x_185 = l_Lean_MessageData_ofExpr(x_64); -lean_ctor_set_tag(x_177, 7); -lean_ctor_set(x_177, 1, x_185); -lean_ctor_set(x_177, 0, x_184); -x_186 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; -lean_ctor_set_tag(x_58, 7); -lean_ctor_set(x_58, 1, x_186); -lean_ctor_set(x_58, 0, x_177); -x_187 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_176, x_58, x_19, x_20, x_21, x_22, x_182); -x_188 = lean_ctor_get(x_187, 1); -lean_inc(x_188); -lean_dec_ref(x_187); -x_165 = x_17; -x_166 = x_18; -x_167 = x_19; -x_168 = x_20; -x_169 = x_21; -x_170 = x_22; -x_171 = x_188; -goto block_175; -} -else -{ -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; -x_189 = lean_ctor_get(x_177, 1); -lean_inc(x_189); -lean_dec(x_177); -x_190 = l_Lean_Elab_partialFixpoint___lam__3___closed__5; -lean_inc(x_64); -x_191 = l_Lean_MessageData_ofExpr(x_64); -x_192 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_192, 0, x_190); -lean_ctor_set(x_192, 1, x_191); -x_193 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; -lean_ctor_set_tag(x_58, 7); -lean_ctor_set(x_58, 1, x_193); -lean_ctor_set(x_58, 0, x_192); -x_194 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_176, x_58, x_19, x_20, x_21, x_22, x_189); -x_195 = lean_ctor_get(x_194, 1); -lean_inc(x_195); -lean_dec_ref(x_194); -x_165 = x_17; -x_166 = x_18; -x_167 = x_19; -x_168 = x_20; -x_169 = x_21; -x_170 = x_22; -x_171 = x_195; -goto block_175; -} -} -block_151: -{ -uint8_t x_75; uint8_t x_76; lean_object* x_77; -x_75 = 0; -x_76 = 1; -lean_inc(x_34); -lean_inc_ref(x_16); -x_77 = l_Lean_Meta_mkForallFVars(x_16, x_34, x_75, x_70, x_70, x_76, x_69, x_71, x_66, x_68, x_72); -if (lean_obj_tag(x_77) == 0) -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec_ref(x_77); -x_80 = l_Lean_Meta_mkLambdaFVars(x_16, x_64, x_75, x_70, x_75, x_70, x_76, x_69, x_71, x_66, x_68, x_79); -if (lean_obj_tag(x_80) == 0) -{ -lean_object* x_81; lean_object* x_82; uint8_t x_83; -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -lean_dec_ref(x_80); -x_83 = !lean_is_exclusive(x_13); -if (x_83 == 0) -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_84 = lean_ctor_get(x_13, 0); -x_85 = lean_ctor_get(x_13, 1); -x_86 = lean_ctor_get(x_13, 2); -x_87 = lean_ctor_get(x_13, 6); -x_88 = lean_ctor_get(x_13, 5); -lean_dec(x_88); -x_89 = lean_ctor_get(x_13, 4); -lean_dec(x_89); -x_90 = lean_ctor_get(x_13, 3); -lean_dec(x_90); -lean_inc(x_68); -lean_inc_ref(x_66); -lean_inc(x_71); -lean_inc_ref(x_69); -lean_inc(x_67); -lean_inc_ref(x_73); +x_53 = lean_alloc_closure((void*)(l_Lean_Elab_partialFixpoint___lam__2), 11, 3); +lean_closure_set(x_53, 0, x_5); +lean_closure_set(x_53, 1, x_11); +lean_closure_set(x_53, 2, x_18); +x_54 = l_Lean_Elab_partialFixpoint___lam__3___closed__0; +x_55 = l_Lean_Elab_partialFixpoint___lam__3___closed__1; +x_56 = lean_mk_empty_array_with_capacity(x_6); +x_57 = lean_box(x_12); +lean_inc_ref(x_56); +lean_inc(x_4); lean_inc(x_6); -lean_inc(x_74); +lean_inc_ref(x_5); +lean_inc_ref(x_13); +lean_inc(x_36); +x_58 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12___boxed), 24, 17); +lean_closure_set(x_58, 0, x_32); +lean_closure_set(x_58, 1, x_40); +lean_closure_set(x_58, 2, x_51); +lean_closure_set(x_58, 3, x_36); +lean_closure_set(x_58, 4, x_47); +lean_closure_set(x_58, 5, x_13); +lean_closure_set(x_58, 6, x_14); +lean_closure_set(x_58, 7, x_15); +lean_closure_set(x_58, 8, x_53); +lean_closure_set(x_58, 9, x_55); +lean_closure_set(x_58, 10, x_54); +lean_closure_set(x_58, 11, x_57); +lean_closure_set(x_58, 12, x_5); +lean_closure_set(x_58, 13, x_6); +lean_closure_set(x_58, 14, x_4); +lean_closure_set(x_58, 15, lean_box(0)); +lean_closure_set(x_58, 16, x_56); +lean_inc(x_24); +lean_inc_ref(x_23); +lean_inc(x_22); +lean_inc_ref(x_21); +lean_inc(x_20); +lean_inc_ref(x_19); +x_59 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(x_58, x_12, x_19, x_20, x_21, x_22, x_23, x_24, x_52); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec_ref(x_59); +x_62 = l_Lean_Elab_partialFixpoint___lam__3___closed__2; +x_63 = l_Lean_Elab_partialFixpoint___lam__3___closed__3; +lean_inc(x_24); +lean_inc_ref(x_23); +lean_inc(x_22); +lean_inc_ref(x_21); +x_64 = l_Lean_Meta_PProdN_genMk___redArg(x_62, x_63, x_60, x_21, x_22, x_23, x_24, x_61); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec_ref(x_64); +x_67 = !lean_is_exclusive(x_65); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_65, 1); +x_69 = lean_ctor_get(x_65, 0); +lean_dec(x_69); +lean_inc(x_24); +lean_inc_ref(x_23); +lean_inc(x_22); +lean_inc_ref(x_21); +lean_inc(x_36); +x_70 = l_Lean_Meta_mkFixOfMonFun(x_36, x_43, x_68, x_21, x_22, x_23, x_24, x_66); +if (lean_obj_tag(x_70) == 0) +{ +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_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; uint8_t x_165; 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_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec_ref(x_70); +x_182 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__10; +x_183 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_182, x_23, x_72); +x_184 = lean_ctor_get(x_183, 0); +lean_inc(x_184); +x_185 = lean_unbox(x_184); +lean_dec(x_184); +if (x_185 == 0) +{ +lean_object* x_186; +lean_free_object(x_65); +x_186 = lean_ctor_get(x_183, 1); +lean_inc(x_186); +lean_dec_ref(x_183); +x_171 = x_19; +x_172 = x_20; +x_173 = x_21; +x_174 = x_22; +x_175 = x_23; +x_176 = x_24; +x_177 = x_186; +goto block_181; +} +else +{ +uint8_t x_187; +x_187 = !lean_is_exclusive(x_183); +if (x_187 == 0) +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_188 = lean_ctor_get(x_183, 1); +x_189 = lean_ctor_get(x_183, 0); +lean_dec(x_189); +x_190 = l_Lean_Elab_partialFixpoint___lam__3___closed__7; +lean_inc(x_71); +x_191 = l_Lean_MessageData_ofExpr(x_71); +lean_ctor_set_tag(x_183, 7); +lean_ctor_set(x_183, 1, x_191); +lean_ctor_set(x_183, 0, x_190); +x_192 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; +lean_ctor_set_tag(x_65, 7); +lean_ctor_set(x_65, 1, x_192); +lean_ctor_set(x_65, 0, x_183); +x_193 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_182, x_65, x_21, x_22, x_23, x_24, x_188); +x_194 = lean_ctor_get(x_193, 1); +lean_inc(x_194); +lean_dec_ref(x_193); +x_171 = x_19; +x_172 = x_20; +x_173 = x_21; +x_174 = x_22; +x_175 = x_23; +x_176 = x_24; +x_177 = x_194; +goto block_181; +} +else +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_195 = lean_ctor_get(x_183, 1); +lean_inc(x_195); +lean_dec(x_183); +x_196 = l_Lean_Elab_partialFixpoint___lam__3___closed__7; +lean_inc(x_71); +x_197 = l_Lean_MessageData_ofExpr(x_71); +x_198 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_197); +x_199 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; +lean_ctor_set_tag(x_65, 7); +lean_ctor_set(x_65, 1, x_199); +lean_ctor_set(x_65, 0, x_198); +x_200 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_182, x_65, x_21, x_22, x_23, x_24, x_195); +x_201 = lean_ctor_get(x_200, 1); +lean_inc(x_201); +lean_dec_ref(x_200); +x_171 = x_19; +x_172 = x_20; +x_173 = x_21; +x_174 = x_22; +x_175 = x_23; +x_176 = x_24; +x_177 = x_201; +goto block_181; +} +} +block_157: +{ +uint8_t x_81; uint8_t x_82; lean_object* x_83; +x_81 = 0; +x_82 = 1; +lean_inc(x_36); +lean_inc_ref(x_18); +x_83 = l_Lean_Meta_mkForallFVars(x_18, x_36, x_81, x_12, x_12, x_82, x_75, x_73, x_74, x_77, x_76); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); lean_inc(x_85); -x_91 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15___redArg(x_2, x_3, x_85, x_74, x_6, x_34, x_75, x_70, x_76, x_5, x_6, x_4, x_51, x_73, x_67, x_69, x_71, x_66, x_68, x_82); +lean_dec_ref(x_83); +x_86 = l_Lean_Meta_mkLambdaFVars(x_18, x_71, x_81, x_12, x_81, x_12, x_82, x_75, x_73, x_74, x_77, x_85); +if (lean_obj_tag(x_86) == 0) +{ +lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +lean_dec_ref(x_86); +x_89 = !lean_is_exclusive(x_16); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_90 = lean_ctor_get(x_16, 0); +x_91 = lean_ctor_get(x_16, 1); +x_92 = lean_ctor_get(x_16, 2); +x_93 = lean_ctor_get(x_16, 6); +x_94 = lean_ctor_get(x_16, 5); +lean_dec(x_94); +x_95 = lean_ctor_get(x_16, 4); +lean_dec(x_95); +x_96 = lean_ctor_get(x_16, 3); +lean_dec(x_96); +lean_inc(x_77); +lean_inc_ref(x_74); +lean_inc(x_73); +lean_inc_ref(x_75); +lean_inc(x_78); +lean_inc_ref(x_79); +lean_inc(x_6); +lean_inc(x_80); +lean_inc(x_91); +x_97 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14___redArg(x_2, x_3, x_91, x_80, x_6, x_36, x_81, x_12, x_82, x_5, x_6, x_4, x_56, x_79, x_78, x_75, x_73, x_74, x_77, x_88); lean_dec(x_6); -if (lean_obj_tag(x_91) == 0) +lean_dec_ref(x_3); +if (lean_obj_tag(x_97) == 0) { -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -lean_dec_ref(x_91); -lean_inc(x_74); -lean_ctor_set(x_13, 5, x_81); -lean_ctor_set(x_13, 4, x_78); -lean_ctor_set(x_13, 3, x_74); -lean_inc(x_68); -lean_inc_ref(x_66); -lean_inc(x_71); -lean_inc_ref(x_69); -lean_inc(x_67); -lean_inc_ref(x_73); -lean_inc_ref(x_5); -x_94 = l_Lean_Elab_Mutual_addPreDefsFromUnary(x_5, x_92, x_13, x_70, x_73, x_67, x_69, x_71, x_66, x_68, x_93); -lean_dec(x_92); -if (lean_obj_tag(x_94) == 0) -{ -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_94, 1); -lean_inc(x_95); -lean_dec_ref(x_94); -lean_inc(x_68); -lean_inc_ref(x_66); -lean_inc(x_71); -lean_inc_ref(x_69); -lean_inc(x_67); -lean_inc_ref(x_73); -lean_inc_ref(x_5); -x_96 = l_Lean_Elab_addAndCompilePartialRec(x_5, x_73, x_67, x_69, x_71, x_66, x_68, x_95); -if (lean_obj_tag(x_96) == 0) -{ -lean_object* x_97; lean_object* x_98; -x_97 = lean_ctor_get(x_96, 1); -lean_inc(x_97); -lean_dec_ref(x_96); -lean_inc(x_68); -lean_inc_ref(x_66); -lean_inc(x_71); -lean_inc_ref(x_69); -x_98 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17___redArg(x_70, x_14, x_9, x_5, x_69, x_71, x_66, x_68, x_97); -if (lean_obj_tag(x_98) == 0) -{ -lean_object* x_99; lean_object* x_100; size_t x_101; lean_object* x_102; lean_object* x_103; -x_99 = lean_ctor_get(x_98, 0); +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -lean_dec_ref(x_98); -x_101 = lean_array_size(x_12); -x_102 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__18(x_101, x_9, x_12); -lean_inc(x_68); -lean_inc_ref(x_66); -lean_inc(x_71); -lean_inc_ref(x_69); -lean_inc(x_99); -x_103 = l_Lean_Elab_PartialFixpoint_registerEqnsInfo(x_99, x_74, x_11, x_102, x_69, x_71, x_66, x_68, x_100); -if (lean_obj_tag(x_103) == 0) -{ -lean_object* x_104; lean_object* x_105; -x_104 = lean_ctor_get(x_103, 1); -lean_inc(x_104); -lean_dec_ref(x_103); -x_105 = l_Lean_Elab_Mutual_addPreDefAttributes(x_99, x_73, x_67, x_69, x_71, x_66, x_68, x_104); -return x_105; -} -else -{ -lean_dec(x_99); -lean_dec_ref(x_73); -lean_dec(x_71); -lean_dec_ref(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec_ref(x_66); -return x_103; -} -} -else -{ -uint8_t x_106; -lean_dec(x_74); -lean_dec_ref(x_73); -lean_dec(x_71); -lean_dec_ref(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec_ref(x_66); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -x_106 = !lean_is_exclusive(x_98); -if (x_106 == 0) -{ -return x_98; -} -else -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_98, 0); -x_108 = lean_ctor_get(x_98, 1); -lean_inc(x_108); -lean_inc(x_107); +lean_dec_ref(x_97); +lean_inc(x_80); +lean_ctor_set(x_16, 5, x_87); +lean_ctor_set(x_16, 4, x_84); +lean_ctor_set(x_16, 3, x_80); +lean_inc(x_77); +lean_inc_ref(x_74); +lean_inc(x_73); +lean_inc_ref(x_75); +lean_inc(x_78); +lean_inc_ref(x_79); +lean_inc_ref(x_5); +x_100 = l_Lean_Elab_Mutual_addPreDefsFromUnary(x_5, x_98, x_16, x_12, x_79, x_78, x_75, x_73, x_74, x_77, x_99); lean_dec(x_98); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_107); -lean_ctor_set(x_109, 1, x_108); +if (lean_obj_tag(x_100) == 0) +{ +lean_object* x_101; lean_object* x_102; +x_101 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +lean_dec_ref(x_100); +lean_inc(x_77); +lean_inc_ref(x_74); +lean_inc(x_73); +lean_inc_ref(x_75); +lean_inc(x_78); +lean_inc_ref(x_79); +lean_inc_ref(x_5); +x_102 = l_Lean_Elab_addAndCompilePartialRec(x_5, x_79, x_78, x_75, x_73, x_74, x_77, x_101); +if (lean_obj_tag(x_102) == 0) +{ +lean_object* x_103; lean_object* x_104; +x_103 = lean_ctor_get(x_102, 1); +lean_inc(x_103); +lean_dec_ref(x_102); +lean_inc(x_77); +lean_inc_ref(x_74); +lean_inc(x_73); +lean_inc_ref(x_75); +x_104 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__16___redArg(x_12, x_17, x_9, x_5, x_75, x_73, x_74, x_77, x_103); +if (lean_obj_tag(x_104) == 0) +{ +lean_object* x_105; lean_object* x_106; size_t x_107; lean_object* x_108; lean_object* x_109; +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec_ref(x_104); +x_107 = lean_array_size(x_13); +x_108 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17(x_107, x_9, x_13); +lean_inc(x_77); +lean_inc_ref(x_74); +lean_inc(x_73); +lean_inc_ref(x_75); +lean_inc(x_105); +x_109 = l_Lean_Elab_PartialFixpoint_registerEqnsInfo(x_105, x_80, x_11, x_108, x_75, x_73, x_74, x_77, x_106); +if (lean_obj_tag(x_109) == 0) +{ +lean_object* x_110; lean_object* x_111; +x_110 = lean_ctor_get(x_109, 1); +lean_inc(x_110); +lean_dec_ref(x_109); +x_111 = l_Lean_Elab_Mutual_addPreDefAttributes(x_105, x_79, x_78, x_75, x_73, x_74, x_77, x_110); +return x_111; +} +else +{ +lean_dec(x_105); +lean_dec_ref(x_79); +lean_dec(x_78); +lean_dec(x_77); +lean_dec_ref(x_75); +lean_dec_ref(x_74); +lean_dec(x_73); return x_109; } } -} else { -lean_dec(x_74); -lean_dec_ref(x_73); -lean_dec(x_71); -lean_dec_ref(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec_ref(x_66); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_5); -return x_96; -} -} -else -{ -lean_dec(x_74); -lean_dec_ref(x_73); -lean_dec(x_71); -lean_dec_ref(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec_ref(x_66); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_5); -return x_94; -} -} -else -{ -uint8_t x_110; -lean_free_object(x_13); -lean_dec_ref(x_87); -lean_dec_ref(x_86); -lean_dec(x_85); -lean_dec(x_84); -lean_dec(x_81); +uint8_t x_112; +lean_dec(x_80); +lean_dec_ref(x_79); lean_dec(x_78); -lean_dec(x_74); -lean_dec_ref(x_73); -lean_dec(x_71); -lean_dec_ref(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec_ref(x_66); -lean_dec_ref(x_12); +lean_dec(x_77); +lean_dec_ref(x_75); +lean_dec_ref(x_74); +lean_dec(x_73); +lean_dec_ref(x_13); +lean_dec_ref(x_11); +x_112 = !lean_is_exclusive(x_104); +if (x_112 == 0) +{ +return x_104; +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_104, 0); +x_114 = lean_ctor_get(x_104, 1); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_104); +x_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_114); +return x_115; +} +} +} +else +{ +lean_dec(x_80); +lean_dec_ref(x_79); +lean_dec(x_78); +lean_dec(x_77); +lean_dec_ref(x_75); +lean_dec_ref(x_74); +lean_dec(x_73); +lean_dec_ref(x_13); lean_dec_ref(x_11); lean_dec_ref(x_5); -x_110 = !lean_is_exclusive(x_91); -if (x_110 == 0) -{ -return x_91; +return x_102; +} } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_91, 0); -x_112 = lean_ctor_get(x_91, 1); -lean_inc(x_112); -lean_inc(x_111); +lean_dec(x_80); +lean_dec_ref(x_79); +lean_dec(x_78); +lean_dec(x_77); +lean_dec_ref(x_75); +lean_dec_ref(x_74); +lean_dec(x_73); +lean_dec_ref(x_13); +lean_dec_ref(x_11); +lean_dec_ref(x_5); +return x_100; +} +} +else +{ +uint8_t x_116; +lean_free_object(x_16); +lean_dec_ref(x_93); +lean_dec_ref(x_92); lean_dec(x_91); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -return x_113; -} -} +lean_dec(x_90); +lean_dec(x_87); +lean_dec(x_84); +lean_dec(x_80); +lean_dec_ref(x_79); +lean_dec(x_78); +lean_dec(x_77); +lean_dec_ref(x_75); +lean_dec_ref(x_74); +lean_dec(x_73); +lean_dec_ref(x_13); +lean_dec_ref(x_11); +lean_dec_ref(x_5); +x_116 = !lean_is_exclusive(x_97); +if (x_116 == 0) +{ +return x_97; } else { -lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_114 = lean_ctor_get(x_13, 0); -x_115 = lean_ctor_get_uint8(x_13, sizeof(void*)*7); -x_116 = lean_ctor_get(x_13, 1); -x_117 = lean_ctor_get(x_13, 2); -x_118 = lean_ctor_get(x_13, 6); +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_97, 0); +x_118 = lean_ctor_get(x_97, 1); lean_inc(x_118); lean_inc(x_117); -lean_inc(x_116); -lean_inc(x_114); -lean_dec(x_13); -lean_inc(x_68); -lean_inc_ref(x_66); -lean_inc(x_71); -lean_inc_ref(x_69); -lean_inc(x_67); -lean_inc_ref(x_73); -lean_inc(x_6); -lean_inc(x_74); -lean_inc(x_116); -x_119 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15___redArg(x_2, x_3, x_116, x_74, x_6, x_34, x_75, x_70, x_76, x_5, x_6, x_4, x_51, x_73, x_67, x_69, x_71, x_66, x_68, x_82); -lean_dec(x_6); -if (lean_obj_tag(x_119) == 0) +lean_dec(x_97); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +return x_119; +} +} +} +else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); -lean_inc(x_121); -lean_dec_ref(x_119); -lean_inc(x_74); -x_122 = lean_alloc_ctor(0, 7, 1); -lean_ctor_set(x_122, 0, x_114); -lean_ctor_set(x_122, 1, x_116); -lean_ctor_set(x_122, 2, x_117); -lean_ctor_set(x_122, 3, x_74); -lean_ctor_set(x_122, 4, x_78); -lean_ctor_set(x_122, 5, x_81); -lean_ctor_set(x_122, 6, x_118); -lean_ctor_set_uint8(x_122, sizeof(void*)*7, x_115); -lean_inc(x_68); -lean_inc_ref(x_66); -lean_inc(x_71); -lean_inc_ref(x_69); -lean_inc(x_67); -lean_inc_ref(x_73); -lean_inc_ref(x_5); -x_123 = l_Lean_Elab_Mutual_addPreDefsFromUnary(x_5, x_120, x_122, x_70, x_73, x_67, x_69, x_71, x_66, x_68, x_121); -lean_dec(x_120); -if (lean_obj_tag(x_123) == 0) -{ -lean_object* x_124; lean_object* x_125; -x_124 = lean_ctor_get(x_123, 1); +lean_object* x_120; uint8_t x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_120 = lean_ctor_get(x_16, 0); +x_121 = lean_ctor_get_uint8(x_16, sizeof(void*)*7); +x_122 = lean_ctor_get(x_16, 1); +x_123 = lean_ctor_get(x_16, 2); +x_124 = lean_ctor_get(x_16, 6); lean_inc(x_124); -lean_dec_ref(x_123); -lean_inc(x_68); -lean_inc_ref(x_66); -lean_inc(x_71); -lean_inc_ref(x_69); -lean_inc(x_67); -lean_inc_ref(x_73); -lean_inc_ref(x_5); -x_125 = l_Lean_Elab_addAndCompilePartialRec(x_5, x_73, x_67, x_69, x_71, x_66, x_68, x_124); +lean_inc(x_123); +lean_inc(x_122); +lean_inc(x_120); +lean_dec(x_16); +lean_inc(x_77); +lean_inc_ref(x_74); +lean_inc(x_73); +lean_inc_ref(x_75); +lean_inc(x_78); +lean_inc_ref(x_79); +lean_inc(x_6); +lean_inc(x_80); +lean_inc(x_122); +x_125 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14___redArg(x_2, x_3, x_122, x_80, x_6, x_36, x_81, x_12, x_82, x_5, x_6, x_4, x_56, x_79, x_78, x_75, x_73, x_74, x_77, x_88); +lean_dec(x_6); +lean_dec_ref(x_3); if (lean_obj_tag(x_125) == 0) { -lean_object* x_126; lean_object* x_127; -x_126 = lean_ctor_get(x_125, 1); +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_126 = lean_ctor_get(x_125, 0); lean_inc(x_126); +x_127 = lean_ctor_get(x_125, 1); +lean_inc(x_127); lean_dec_ref(x_125); -lean_inc(x_68); -lean_inc_ref(x_66); -lean_inc(x_71); -lean_inc_ref(x_69); -x_127 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17___redArg(x_70, x_14, x_9, x_5, x_69, x_71, x_66, x_68, x_126); -if (lean_obj_tag(x_127) == 0) +lean_inc(x_80); +x_128 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_128, 0, x_120); +lean_ctor_set(x_128, 1, x_122); +lean_ctor_set(x_128, 2, x_123); +lean_ctor_set(x_128, 3, x_80); +lean_ctor_set(x_128, 4, x_84); +lean_ctor_set(x_128, 5, x_87); +lean_ctor_set(x_128, 6, x_124); +lean_ctor_set_uint8(x_128, sizeof(void*)*7, x_121); +lean_inc(x_77); +lean_inc_ref(x_74); +lean_inc(x_73); +lean_inc_ref(x_75); +lean_inc(x_78); +lean_inc_ref(x_79); +lean_inc_ref(x_5); +x_129 = l_Lean_Elab_Mutual_addPreDefsFromUnary(x_5, x_126, x_128, x_12, x_79, x_78, x_75, x_73, x_74, x_77, x_127); +lean_dec(x_126); +if (lean_obj_tag(x_129) == 0) { -lean_object* x_128; lean_object* x_129; size_t x_130; lean_object* x_131; lean_object* x_132; -x_128 = lean_ctor_get(x_127, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_127, 1); -lean_inc(x_129); -lean_dec_ref(x_127); -x_130 = lean_array_size(x_12); -x_131 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__18(x_130, x_9, x_12); -lean_inc(x_68); -lean_inc_ref(x_66); -lean_inc(x_71); -lean_inc_ref(x_69); -lean_inc(x_128); -x_132 = l_Lean_Elab_PartialFixpoint_registerEqnsInfo(x_128, x_74, x_11, x_131, x_69, x_71, x_66, x_68, x_129); -if (lean_obj_tag(x_132) == 0) +lean_object* x_130; lean_object* x_131; +x_130 = lean_ctor_get(x_129, 1); +lean_inc(x_130); +lean_dec_ref(x_129); +lean_inc(x_77); +lean_inc_ref(x_74); +lean_inc(x_73); +lean_inc_ref(x_75); +lean_inc(x_78); +lean_inc_ref(x_79); +lean_inc_ref(x_5); +x_131 = l_Lean_Elab_addAndCompilePartialRec(x_5, x_79, x_78, x_75, x_73, x_74, x_77, x_130); +if (lean_obj_tag(x_131) == 0) { -lean_object* x_133; lean_object* x_134; -x_133 = lean_ctor_get(x_132, 1); -lean_inc(x_133); -lean_dec_ref(x_132); -x_134 = l_Lean_Elab_Mutual_addPreDefAttributes(x_128, x_73, x_67, x_69, x_71, x_66, x_68, x_133); -return x_134; -} -else +lean_object* x_132; lean_object* x_133; +x_132 = lean_ctor_get(x_131, 1); +lean_inc(x_132); +lean_dec_ref(x_131); +lean_inc(x_77); +lean_inc_ref(x_74); +lean_inc(x_73); +lean_inc_ref(x_75); +x_133 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__16___redArg(x_12, x_17, x_9, x_5, x_75, x_73, x_74, x_77, x_132); +if (lean_obj_tag(x_133) == 0) { -lean_dec(x_128); -lean_dec_ref(x_73); -lean_dec(x_71); -lean_dec_ref(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec_ref(x_66); -return x_132; -} -} -else -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -lean_dec(x_74); -lean_dec_ref(x_73); -lean_dec(x_71); -lean_dec_ref(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec_ref(x_66); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -x_135 = lean_ctor_get(x_127, 0); +lean_object* x_134; lean_object* x_135; size_t x_136; lean_object* x_137; lean_object* x_138; +x_134 = lean_ctor_get(x_133, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_133, 1); lean_inc(x_135); -x_136 = lean_ctor_get(x_127, 1); -lean_inc(x_136); -if (lean_is_exclusive(x_127)) { - lean_ctor_release(x_127, 0); - lean_ctor_release(x_127, 1); - x_137 = x_127; -} else { - lean_dec_ref(x_127); - x_137 = lean_box(0); +lean_dec_ref(x_133); +x_136 = lean_array_size(x_13); +x_137 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17(x_136, x_9, x_13); +lean_inc(x_77); +lean_inc_ref(x_74); +lean_inc(x_73); +lean_inc_ref(x_75); +lean_inc(x_134); +x_138 = l_Lean_Elab_PartialFixpoint_registerEqnsInfo(x_134, x_80, x_11, x_137, x_75, x_73, x_74, x_77, x_135); +if (lean_obj_tag(x_138) == 0) +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +lean_dec_ref(x_138); +x_140 = l_Lean_Elab_Mutual_addPreDefAttributes(x_134, x_79, x_78, x_75, x_73, x_74, x_77, x_139); +return x_140; } -if (lean_is_scalar(x_137)) { - x_138 = lean_alloc_ctor(1, 2, 0); -} else { - x_138 = x_137; -} -lean_ctor_set(x_138, 0, x_135); -lean_ctor_set(x_138, 1, x_136); +else +{ +lean_dec(x_134); +lean_dec_ref(x_79); +lean_dec(x_78); +lean_dec(x_77); +lean_dec_ref(x_75); +lean_dec_ref(x_74); +lean_dec(x_73); return x_138; } } else { -lean_dec(x_74); -lean_dec_ref(x_73); -lean_dec(x_71); -lean_dec_ref(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec_ref(x_66); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_5); -return x_125; -} -} -else -{ -lean_dec(x_74); -lean_dec_ref(x_73); -lean_dec(x_71); -lean_dec_ref(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec_ref(x_66); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_5); -return x_123; -} -} -else -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -lean_dec_ref(x_118); -lean_dec_ref(x_117); -lean_dec(x_116); -lean_dec(x_114); -lean_dec(x_81); -lean_dec(x_78); -lean_dec(x_74); -lean_dec_ref(x_73); -lean_dec(x_71); -lean_dec_ref(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec_ref(x_66); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_5); -x_139 = lean_ctor_get(x_119, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_119, 1); -lean_inc(x_140); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_141 = x_119; -} else { - lean_dec_ref(x_119); - x_141 = lean_box(0); -} -if (lean_is_scalar(x_141)) { - x_142 = lean_alloc_ctor(1, 2, 0); -} else { - x_142 = x_141; -} -lean_ctor_set(x_142, 0, x_139); -lean_ctor_set(x_142, 1, x_140); -return x_142; -} -} -} -else -{ -uint8_t x_143; -lean_dec(x_78); -lean_dec(x_74); -lean_dec_ref(x_73); -lean_dec(x_71); -lean_dec_ref(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec_ref(x_66); -lean_dec_ref(x_51); -lean_dec(x_34); -lean_dec_ref(x_13); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_2); -x_143 = !lean_is_exclusive(x_80); -if (x_143 == 0) -{ -return x_80; -} -else -{ -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_ctor_get(x_80, 0); -x_145 = lean_ctor_get(x_80, 1); -lean_inc(x_145); -lean_inc(x_144); +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_dec(x_80); -x_146 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_146, 0, x_144); -lean_ctor_set(x_146, 1, x_145); -return x_146; +lean_dec_ref(x_79); +lean_dec(x_78); +lean_dec(x_77); +lean_dec_ref(x_75); +lean_dec_ref(x_74); +lean_dec(x_73); +lean_dec_ref(x_13); +lean_dec_ref(x_11); +x_141 = lean_ctor_get(x_133, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_133, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + x_143 = x_133; +} else { + lean_dec_ref(x_133); + x_143 = lean_box(0); +} +if (lean_is_scalar(x_143)) { + x_144 = lean_alloc_ctor(1, 2, 0); +} else { + x_144 = x_143; +} +lean_ctor_set(x_144, 0, x_141); +lean_ctor_set(x_144, 1, x_142); +return x_144; +} +} +else +{ +lean_dec(x_80); +lean_dec_ref(x_79); +lean_dec(x_78); +lean_dec(x_77); +lean_dec_ref(x_75); +lean_dec_ref(x_74); +lean_dec(x_73); +lean_dec_ref(x_13); +lean_dec_ref(x_11); +lean_dec_ref(x_5); +return x_131; +} +} +else +{ +lean_dec(x_80); +lean_dec_ref(x_79); +lean_dec(x_78); +lean_dec(x_77); +lean_dec_ref(x_75); +lean_dec_ref(x_74); +lean_dec(x_73); +lean_dec_ref(x_13); +lean_dec_ref(x_11); +lean_dec_ref(x_5); +return x_129; +} +} +else +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_dec_ref(x_124); +lean_dec_ref(x_123); +lean_dec(x_122); +lean_dec(x_120); +lean_dec(x_87); +lean_dec(x_84); +lean_dec(x_80); +lean_dec_ref(x_79); +lean_dec(x_78); +lean_dec(x_77); +lean_dec_ref(x_75); +lean_dec_ref(x_74); +lean_dec(x_73); +lean_dec_ref(x_13); +lean_dec_ref(x_11); +lean_dec_ref(x_5); +x_145 = lean_ctor_get(x_125, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_125, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_147 = x_125; +} else { + lean_dec_ref(x_125); + x_147 = lean_box(0); +} +if (lean_is_scalar(x_147)) { + x_148 = lean_alloc_ctor(1, 2, 0); +} else { + x_148 = x_147; +} +lean_ctor_set(x_148, 0, x_145); +lean_ctor_set(x_148, 1, x_146); +return x_148; } } } else { -uint8_t x_147; -lean_dec(x_74); -lean_dec_ref(x_73); -lean_dec(x_71); -lean_dec_ref(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec_ref(x_66); -lean_dec(x_64); -lean_dec_ref(x_51); -lean_dec(x_34); +uint8_t x_149; +lean_dec(x_84); +lean_dec(x_80); +lean_dec_ref(x_79); +lean_dec(x_78); +lean_dec(x_77); +lean_dec_ref(x_75); +lean_dec_ref(x_74); +lean_dec(x_73); +lean_dec_ref(x_56); +lean_dec(x_36); lean_dec_ref(x_16); lean_dec_ref(x_13); -lean_dec_ref(x_12); lean_dec_ref(x_11); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); +lean_dec_ref(x_3); lean_dec_ref(x_2); -x_147 = !lean_is_exclusive(x_77); -if (x_147 == 0) +x_149 = !lean_is_exclusive(x_86); +if (x_149 == 0) { -return x_77; +return x_86; } else { -lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_148 = lean_ctor_get(x_77, 0); -x_149 = lean_ctor_get(x_77, 1); -lean_inc(x_149); -lean_inc(x_148); +lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_150 = lean_ctor_get(x_86, 0); +x_151 = lean_ctor_get(x_86, 1); +lean_inc(x_151); +lean_inc(x_150); +lean_dec(x_86); +x_152 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_152, 0, x_150); +lean_ctor_set(x_152, 1, x_151); +return x_152; +} +} +} +else +{ +uint8_t x_153; +lean_dec(x_80); +lean_dec_ref(x_79); +lean_dec(x_78); lean_dec(x_77); -x_150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set(x_150, 1, x_149); -return x_150; -} -} -} -block_164: +lean_dec_ref(x_75); +lean_dec_ref(x_74); +lean_dec(x_73); +lean_dec(x_71); +lean_dec_ref(x_56); +lean_dec(x_36); +lean_dec_ref(x_18); +lean_dec_ref(x_16); +lean_dec_ref(x_13); +lean_dec_ref(x_11); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_153 = !lean_is_exclusive(x_83); +if (x_153 == 0) { -if (x_159 == 0) -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_160 = lean_ctor_get(x_13, 3); -lean_inc(x_160); -x_161 = l_Lean_Elab_partialFixpoint___lam__3___closed__3; -x_162 = l_Lean_Name_append(x_160, x_161); -x_66 = x_152; -x_67 = x_153; -x_68 = x_155; -x_69 = x_154; -x_70 = x_15; -x_71 = x_156; -x_72 = x_157; -x_73 = x_158; -x_74 = x_162; -goto block_151; +return x_83; } else { -lean_object* x_163; -x_163 = lean_ctor_get(x_13, 3); -lean_inc(x_163); -x_66 = x_152; -x_67 = x_153; -x_68 = x_155; -x_69 = x_154; -x_70 = x_15; -x_71 = x_156; -x_72 = x_157; +lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_154 = lean_ctor_get(x_83, 0); +x_155 = lean_ctor_get(x_83, 1); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_83); +x_156 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_156, 0, x_154); +lean_ctor_set(x_156, 1, x_155); +return x_156; +} +} +} +block_170: +{ +if (x_165 == 0) +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_166 = lean_ctor_get(x_16, 3); +lean_inc(x_166); +x_167 = l_Lean_Elab_partialFixpoint___lam__3___closed__5; +x_168 = l_Lean_Name_append(x_166, x_167); x_73 = x_158; -x_74 = x_163; -goto block_151; +x_74 = x_160; +x_75 = x_159; +x_76 = x_161; +x_77 = x_162; +x_78 = x_163; +x_79 = x_164; +x_80 = x_168; +goto block_157; +} +else +{ +lean_object* x_169; +x_169 = lean_ctor_get(x_16, 3); +lean_inc(x_169); +x_73 = x_158; +x_74 = x_160; +x_75 = x_159; +x_76 = x_161; +x_77 = x_162; +x_78 = x_163; +x_79 = x_164; +x_80 = x_169; +goto block_157; } } -block_175: +block_181: { -lean_object* x_172; uint8_t x_173; -x_172 = lean_unsigned_to_nat(1u); -x_173 = lean_nat_dec_eq(x_6, x_172); -if (x_173 == 0) +lean_object* x_178; uint8_t x_179; +x_178 = lean_unsigned_to_nat(1u); +x_179 = lean_nat_dec_eq(x_6, x_178); +if (x_179 == 0) { -x_152 = x_169; -x_153 = x_166; -x_154 = x_167; -x_155 = x_170; -x_156 = x_168; -x_157 = x_171; -x_158 = x_165; +x_158 = x_174; x_159 = x_173; -goto block_164; +x_160 = x_175; +x_161 = x_177; +x_162 = x_176; +x_163 = x_172; +x_164 = x_171; +x_165 = x_179; +goto block_170; } else { -uint8_t x_174; +uint8_t x_180; lean_inc_ref(x_11); -x_174 = l_Lean_Elab_FixedParamPerms_fixedArePrefix(x_11); -x_152 = x_169; -x_153 = x_166; -x_154 = x_167; -x_155 = x_170; -x_156 = x_168; -x_157 = x_171; -x_158 = x_165; -x_159 = x_174; -goto block_164; +x_180 = l_Lean_Elab_FixedParamPerms_fixedArePrefix(x_11); +x_158 = x_174; +x_159 = x_173; +x_160 = x_175; +x_161 = x_177; +x_162 = x_176; +x_163 = x_172; +x_164 = x_171; +x_165 = x_180; +goto block_170; } } } else { -uint8_t x_196; -lean_free_object(x_58); -lean_dec_ref(x_51); -lean_dec(x_34); +uint8_t x_202; +lean_free_object(x_65); +lean_dec_ref(x_56); +lean_dec(x_36); +lean_dec(x_24); +lean_dec_ref(x_23); lean_dec(x_22); lean_dec_ref(x_21); lean_dec(x_20); lean_dec_ref(x_19); -lean_dec(x_18); -lean_dec_ref(x_17); +lean_dec_ref(x_18); lean_dec_ref(x_16); lean_dec_ref(x_13); -lean_dec_ref(x_12); lean_dec_ref(x_11); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); +lean_dec_ref(x_3); lean_dec_ref(x_2); -x_196 = !lean_is_exclusive(x_63); -if (x_196 == 0) +x_202 = !lean_is_exclusive(x_70); +if (x_202 == 0) { -return x_63; +return x_70; } else { -lean_object* x_197; lean_object* x_198; lean_object* x_199; -x_197 = lean_ctor_get(x_63, 0); -x_198 = lean_ctor_get(x_63, 1); -lean_inc(x_198); -lean_inc(x_197); -lean_dec(x_63); -x_199 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_199, 0, x_197); -lean_ctor_set(x_199, 1, x_198); -return x_199; +lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_203 = lean_ctor_get(x_70, 0); +x_204 = lean_ctor_get(x_70, 1); +lean_inc(x_204); +lean_inc(x_203); +lean_dec(x_70); +x_205 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_205, 0, x_203); +lean_ctor_set(x_205, 1, x_204); +return x_205; } } } else { -lean_object* x_200; lean_object* x_201; -x_200 = lean_ctor_get(x_58, 1); -lean_inc(x_200); -lean_dec(x_58); +lean_object* x_206; lean_object* x_207; +x_206 = lean_ctor_get(x_65, 1); +lean_inc(x_206); +lean_dec(x_65); +lean_inc(x_24); +lean_inc_ref(x_23); lean_inc(x_22); lean_inc_ref(x_21); -lean_inc(x_20); -lean_inc_ref(x_19); -lean_inc(x_34); -x_201 = l_Lean_Meta_mkFixOfMonFun(x_34, x_41, x_200, x_19, x_20, x_21, x_22, x_59); -if (lean_obj_tag(x_201) == 0) +lean_inc(x_36); +x_207 = l_Lean_Meta_mkFixOfMonFun(x_36, x_43, x_206, x_21, x_22, x_23, x_24, x_66); +if (lean_obj_tag(x_207) == 0) { -lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; 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; uint8_t x_267; 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_284; lean_object* x_285; lean_object* x_286; uint8_t x_287; -x_202 = lean_ctor_get(x_201, 0); -lean_inc(x_202); -x_203 = lean_ctor_get(x_201, 1); -lean_inc(x_203); -lean_dec_ref(x_201); -x_284 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__10; -x_285 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_284, x_21, x_203); -x_286 = lean_ctor_get(x_285, 0); -lean_inc(x_286); -x_287 = lean_unbox(x_286); -lean_dec(x_286); -if (x_287 == 0) +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_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; uint8_t x_272; 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_289; lean_object* x_290; lean_object* x_291; uint8_t x_292; +x_208 = lean_ctor_get(x_207, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_207, 1); +lean_inc(x_209); +lean_dec_ref(x_207); +x_289 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__10; +x_290 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_289, x_23, x_209); +x_291 = lean_ctor_get(x_290, 0); +lean_inc(x_291); +x_292 = lean_unbox(x_291); +lean_dec(x_291); +if (x_292 == 0) { -lean_object* x_288; -x_288 = lean_ctor_get(x_285, 1); -lean_inc(x_288); -lean_dec_ref(x_285); -x_273 = x_17; -x_274 = x_18; -x_275 = x_19; -x_276 = x_20; -x_277 = x_21; -x_278 = x_22; -x_279 = x_288; -goto block_283; +lean_object* x_293; +x_293 = lean_ctor_get(x_290, 1); +lean_inc(x_293); +lean_dec_ref(x_290); +x_278 = x_19; +x_279 = x_20; +x_280 = x_21; +x_281 = x_22; +x_282 = x_23; +x_283 = x_24; +x_284 = x_293; +goto block_288; } else { -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; -x_289 = lean_ctor_get(x_285, 1); -lean_inc(x_289); -if (lean_is_exclusive(x_285)) { - lean_ctor_release(x_285, 0); - lean_ctor_release(x_285, 1); - x_290 = x_285; +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; +x_294 = lean_ctor_get(x_290, 1); +lean_inc(x_294); +if (lean_is_exclusive(x_290)) { + lean_ctor_release(x_290, 0); + lean_ctor_release(x_290, 1); + x_295 = x_290; } else { - lean_dec_ref(x_285); - x_290 = lean_box(0); + lean_dec_ref(x_290); + x_295 = lean_box(0); } -x_291 = l_Lean_Elab_partialFixpoint___lam__3___closed__5; -lean_inc(x_202); -x_292 = l_Lean_MessageData_ofExpr(x_202); -if (lean_is_scalar(x_290)) { - x_293 = lean_alloc_ctor(7, 2, 0); +x_296 = l_Lean_Elab_partialFixpoint___lam__3___closed__7; +lean_inc(x_208); +x_297 = l_Lean_MessageData_ofExpr(x_208); +if (lean_is_scalar(x_295)) { + x_298 = lean_alloc_ctor(7, 2, 0); } else { - x_293 = x_290; - lean_ctor_set_tag(x_293, 7); + x_298 = x_295; + lean_ctor_set_tag(x_298, 7); } -lean_ctor_set(x_293, 0, x_291); -lean_ctor_set(x_293, 1, x_292); -x_294 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; -x_295 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_295, 0, x_293); -lean_ctor_set(x_295, 1, x_294); -x_296 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_284, x_295, x_19, x_20, x_21, x_22, x_289); -x_297 = lean_ctor_get(x_296, 1); -lean_inc(x_297); -lean_dec_ref(x_296); -x_273 = x_17; -x_274 = x_18; -x_275 = x_19; -x_276 = x_20; -x_277 = x_21; -x_278 = x_22; -x_279 = x_297; -goto block_283; +lean_ctor_set(x_298, 0, x_296); +lean_ctor_set(x_298, 1, x_297); +x_299 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_unReplaceRecApps___redArg___closed__3; +x_300 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_300, 0, x_298); +lean_ctor_set(x_300, 1, x_299); +x_301 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_289, x_300, x_21, x_22, x_23, x_24, x_294); +x_302 = lean_ctor_get(x_301, 1); +lean_inc(x_302); +lean_dec_ref(x_301); +x_278 = x_19; +x_279 = x_20; +x_280 = x_21; +x_281 = x_22; +x_282 = x_23; +x_283 = x_24; +x_284 = x_302; +goto block_288; } -block_259: +block_264: { -uint8_t x_213; uint8_t x_214; lean_object* x_215; -x_213 = 0; -x_214 = 1; -lean_inc(x_34); -lean_inc_ref(x_16); -x_215 = l_Lean_Meta_mkForallFVars(x_16, x_34, x_213, x_208, x_208, x_214, x_207, x_209, x_204, x_206, x_210); -if (lean_obj_tag(x_215) == 0) +uint8_t x_218; uint8_t x_219; lean_object* x_220; +x_218 = 0; +x_219 = 1; +lean_inc(x_36); +lean_inc_ref(x_18); +x_220 = l_Lean_Meta_mkForallFVars(x_18, x_36, x_218, x_12, x_12, x_219, x_212, x_210, x_211, x_214, x_213); +if (lean_obj_tag(x_220) == 0) { -lean_object* x_216; lean_object* x_217; lean_object* x_218; -x_216 = lean_ctor_get(x_215, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_215, 1); -lean_inc(x_217); -lean_dec_ref(x_215); -x_218 = l_Lean_Meta_mkLambdaFVars(x_16, x_202, x_213, x_208, x_213, x_208, x_214, x_207, x_209, x_204, x_206, x_217); -if (lean_obj_tag(x_218) == 0) -{ -lean_object* x_219; lean_object* x_220; lean_object* x_221; uint8_t x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; -x_219 = lean_ctor_get(x_218, 0); -lean_inc(x_219); -x_220 = lean_ctor_get(x_218, 1); -lean_inc(x_220); -lean_dec_ref(x_218); -x_221 = lean_ctor_get(x_13, 0); +lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_221 = lean_ctor_get(x_220, 0); lean_inc(x_221); -x_222 = lean_ctor_get_uint8(x_13, sizeof(void*)*7); -x_223 = lean_ctor_get(x_13, 1); -lean_inc(x_223); -x_224 = lean_ctor_get(x_13, 2); -lean_inc_ref(x_224); -x_225 = lean_ctor_get(x_13, 6); -lean_inc_ref(x_225); -if (lean_is_exclusive(x_13)) { - lean_ctor_release(x_13, 0); - lean_ctor_release(x_13, 1); - lean_ctor_release(x_13, 2); - lean_ctor_release(x_13, 3); - lean_ctor_release(x_13, 4); - lean_ctor_release(x_13, 5); - lean_ctor_release(x_13, 6); - x_226 = x_13; -} else { - lean_dec_ref(x_13); - x_226 = lean_box(0); -} -lean_inc(x_206); -lean_inc_ref(x_204); -lean_inc(x_209); -lean_inc_ref(x_207); -lean_inc(x_205); -lean_inc_ref(x_211); -lean_inc(x_6); -lean_inc(x_212); -lean_inc(x_223); -x_227 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15___redArg(x_2, x_3, x_223, x_212, x_6, x_34, x_213, x_208, x_214, x_5, x_6, x_4, x_51, x_211, x_205, x_207, x_209, x_204, x_206, x_220); -lean_dec(x_6); -if (lean_obj_tag(x_227) == 0) +x_222 = lean_ctor_get(x_220, 1); +lean_inc(x_222); +lean_dec_ref(x_220); +x_223 = l_Lean_Meta_mkLambdaFVars(x_18, x_208, x_218, x_12, x_218, x_12, x_219, x_212, x_210, x_211, x_214, x_222); +if (lean_obj_tag(x_223) == 0) { -lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; -x_228 = lean_ctor_get(x_227, 0); +lean_object* x_224; lean_object* x_225; lean_object* x_226; uint8_t x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_223, 1); +lean_inc(x_225); +lean_dec_ref(x_223); +x_226 = lean_ctor_get(x_16, 0); +lean_inc(x_226); +x_227 = lean_ctor_get_uint8(x_16, sizeof(void*)*7); +x_228 = lean_ctor_get(x_16, 1); lean_inc(x_228); -x_229 = lean_ctor_get(x_227, 1); -lean_inc(x_229); -lean_dec_ref(x_227); -lean_inc(x_212); -if (lean_is_scalar(x_226)) { - x_230 = lean_alloc_ctor(0, 7, 1); +x_229 = lean_ctor_get(x_16, 2); +lean_inc_ref(x_229); +x_230 = lean_ctor_get(x_16, 6); +lean_inc_ref(x_230); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + lean_ctor_release(x_16, 1); + lean_ctor_release(x_16, 2); + lean_ctor_release(x_16, 3); + lean_ctor_release(x_16, 4); + lean_ctor_release(x_16, 5); + lean_ctor_release(x_16, 6); + x_231 = x_16; } else { - x_230 = x_226; + lean_dec_ref(x_16); + x_231 = lean_box(0); } -lean_ctor_set(x_230, 0, x_221); -lean_ctor_set(x_230, 1, x_223); -lean_ctor_set(x_230, 2, x_224); -lean_ctor_set(x_230, 3, x_212); -lean_ctor_set(x_230, 4, x_216); -lean_ctor_set(x_230, 5, x_219); -lean_ctor_set(x_230, 6, x_225); -lean_ctor_set_uint8(x_230, sizeof(void*)*7, x_222); -lean_inc(x_206); -lean_inc_ref(x_204); -lean_inc(x_209); -lean_inc_ref(x_207); -lean_inc(x_205); +lean_inc(x_214); lean_inc_ref(x_211); -lean_inc_ref(x_5); -x_231 = l_Lean_Elab_Mutual_addPreDefsFromUnary(x_5, x_228, x_230, x_208, x_211, x_205, x_207, x_209, x_204, x_206, x_229); -lean_dec(x_228); -if (lean_obj_tag(x_231) == 0) +lean_inc(x_210); +lean_inc_ref(x_212); +lean_inc(x_215); +lean_inc_ref(x_216); +lean_inc(x_6); +lean_inc(x_217); +lean_inc(x_228); +x_232 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14___redArg(x_2, x_3, x_228, x_217, x_6, x_36, x_218, x_12, x_219, x_5, x_6, x_4, x_56, x_216, x_215, x_212, x_210, x_211, x_214, x_225); +lean_dec(x_6); +lean_dec_ref(x_3); +if (lean_obj_tag(x_232) == 0) { -lean_object* x_232; lean_object* x_233; -x_232 = lean_ctor_get(x_231, 1); -lean_inc(x_232); -lean_dec_ref(x_231); -lean_inc(x_206); -lean_inc_ref(x_204); -lean_inc(x_209); -lean_inc_ref(x_207); -lean_inc(x_205); -lean_inc_ref(x_211); -lean_inc_ref(x_5); -x_233 = l_Lean_Elab_addAndCompilePartialRec(x_5, x_211, x_205, x_207, x_209, x_204, x_206, x_232); -if (lean_obj_tag(x_233) == 0) -{ -lean_object* x_234; lean_object* x_235; -x_234 = lean_ctor_get(x_233, 1); +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_233 = lean_ctor_get(x_232, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_232, 1); lean_inc(x_234); -lean_dec_ref(x_233); -lean_inc(x_206); -lean_inc_ref(x_204); -lean_inc(x_209); -lean_inc_ref(x_207); -x_235 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17___redArg(x_208, x_14, x_9, x_5, x_207, x_209, x_204, x_206, x_234); -if (lean_obj_tag(x_235) == 0) +lean_dec_ref(x_232); +lean_inc(x_217); +if (lean_is_scalar(x_231)) { + x_235 = lean_alloc_ctor(0, 7, 1); +} else { + x_235 = x_231; +} +lean_ctor_set(x_235, 0, x_226); +lean_ctor_set(x_235, 1, x_228); +lean_ctor_set(x_235, 2, x_229); +lean_ctor_set(x_235, 3, x_217); +lean_ctor_set(x_235, 4, x_221); +lean_ctor_set(x_235, 5, x_224); +lean_ctor_set(x_235, 6, x_230); +lean_ctor_set_uint8(x_235, sizeof(void*)*7, x_227); +lean_inc(x_214); +lean_inc_ref(x_211); +lean_inc(x_210); +lean_inc_ref(x_212); +lean_inc(x_215); +lean_inc_ref(x_216); +lean_inc_ref(x_5); +x_236 = l_Lean_Elab_Mutual_addPreDefsFromUnary(x_5, x_233, x_235, x_12, x_216, x_215, x_212, x_210, x_211, x_214, x_234); +lean_dec(x_233); +if (lean_obj_tag(x_236) == 0) { -lean_object* x_236; lean_object* x_237; size_t x_238; lean_object* x_239; lean_object* x_240; -x_236 = lean_ctor_get(x_235, 0); -lean_inc(x_236); -x_237 = lean_ctor_get(x_235, 1); +lean_object* x_237; lean_object* x_238; +x_237 = lean_ctor_get(x_236, 1); lean_inc(x_237); -lean_dec_ref(x_235); -x_238 = lean_array_size(x_12); -x_239 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__18(x_238, x_9, x_12); -lean_inc(x_206); -lean_inc_ref(x_204); -lean_inc(x_209); -lean_inc_ref(x_207); -lean_inc(x_236); -x_240 = l_Lean_Elab_PartialFixpoint_registerEqnsInfo(x_236, x_212, x_11, x_239, x_207, x_209, x_204, x_206, x_237); +lean_dec_ref(x_236); +lean_inc(x_214); +lean_inc_ref(x_211); +lean_inc(x_210); +lean_inc_ref(x_212); +lean_inc(x_215); +lean_inc_ref(x_216); +lean_inc_ref(x_5); +x_238 = l_Lean_Elab_addAndCompilePartialRec(x_5, x_216, x_215, x_212, x_210, x_211, x_214, x_237); +if (lean_obj_tag(x_238) == 0) +{ +lean_object* x_239; lean_object* x_240; +x_239 = lean_ctor_get(x_238, 1); +lean_inc(x_239); +lean_dec_ref(x_238); +lean_inc(x_214); +lean_inc_ref(x_211); +lean_inc(x_210); +lean_inc_ref(x_212); +x_240 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__16___redArg(x_12, x_17, x_9, x_5, x_212, x_210, x_211, x_214, x_239); if (lean_obj_tag(x_240) == 0) { -lean_object* x_241; lean_object* x_242; -x_241 = lean_ctor_get(x_240, 1); +lean_object* x_241; lean_object* x_242; size_t x_243; lean_object* x_244; lean_object* x_245; +x_241 = lean_ctor_get(x_240, 0); lean_inc(x_241); +x_242 = lean_ctor_get(x_240, 1); +lean_inc(x_242); lean_dec_ref(x_240); -x_242 = l_Lean_Elab_Mutual_addPreDefAttributes(x_236, x_211, x_205, x_207, x_209, x_204, x_206, x_241); -return x_242; +x_243 = lean_array_size(x_13); +x_244 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17(x_243, x_9, x_13); +lean_inc(x_214); +lean_inc_ref(x_211); +lean_inc(x_210); +lean_inc_ref(x_212); +lean_inc(x_241); +x_245 = l_Lean_Elab_PartialFixpoint_registerEqnsInfo(x_241, x_217, x_11, x_244, x_212, x_210, x_211, x_214, x_242); +if (lean_obj_tag(x_245) == 0) +{ +lean_object* x_246; lean_object* x_247; +x_246 = lean_ctor_get(x_245, 1); +lean_inc(x_246); +lean_dec_ref(x_245); +x_247 = l_Lean_Elab_Mutual_addPreDefAttributes(x_241, x_216, x_215, x_212, x_210, x_211, x_214, x_246); +return x_247; } else { -lean_dec(x_236); +lean_dec(x_241); +lean_dec_ref(x_216); +lean_dec(x_215); +lean_dec(x_214); +lean_dec_ref(x_212); lean_dec_ref(x_211); -lean_dec(x_209); -lean_dec_ref(x_207); -lean_dec(x_206); -lean_dec(x_205); -lean_dec_ref(x_204); -return x_240; +lean_dec(x_210); +return x_245; } } else { -lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; -lean_dec(x_212); +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; +lean_dec(x_217); +lean_dec_ref(x_216); +lean_dec(x_215); +lean_dec(x_214); +lean_dec_ref(x_212); lean_dec_ref(x_211); -lean_dec(x_209); -lean_dec_ref(x_207); -lean_dec(x_206); -lean_dec(x_205); -lean_dec_ref(x_204); -lean_dec_ref(x_12); +lean_dec(x_210); +lean_dec_ref(x_13); lean_dec_ref(x_11); -x_243 = lean_ctor_get(x_235, 0); -lean_inc(x_243); -x_244 = lean_ctor_get(x_235, 1); -lean_inc(x_244); -if (lean_is_exclusive(x_235)) { - lean_ctor_release(x_235, 0); - lean_ctor_release(x_235, 1); - x_245 = x_235; -} else { - lean_dec_ref(x_235); - x_245 = lean_box(0); -} -if (lean_is_scalar(x_245)) { - x_246 = lean_alloc_ctor(1, 2, 0); -} else { - x_246 = x_245; -} -lean_ctor_set(x_246, 0, x_243); -lean_ctor_set(x_246, 1, x_244); -return x_246; -} -} -else -{ -lean_dec(x_212); -lean_dec_ref(x_211); -lean_dec(x_209); -lean_dec_ref(x_207); -lean_dec(x_206); -lean_dec(x_205); -lean_dec_ref(x_204); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_5); -return x_233; -} -} -else -{ -lean_dec(x_212); -lean_dec_ref(x_211); -lean_dec(x_209); -lean_dec_ref(x_207); -lean_dec(x_206); -lean_dec(x_205); -lean_dec_ref(x_204); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_5); -return x_231; -} -} -else -{ -lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; -lean_dec(x_226); -lean_dec_ref(x_225); -lean_dec_ref(x_224); -lean_dec(x_223); -lean_dec(x_221); -lean_dec(x_219); -lean_dec(x_216); -lean_dec(x_212); -lean_dec_ref(x_211); -lean_dec(x_209); -lean_dec_ref(x_207); -lean_dec(x_206); -lean_dec(x_205); -lean_dec_ref(x_204); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_5); -x_247 = lean_ctor_get(x_227, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_227, 1); +x_248 = lean_ctor_get(x_240, 0); lean_inc(x_248); -if (lean_is_exclusive(x_227)) { - lean_ctor_release(x_227, 0); - lean_ctor_release(x_227, 1); - x_249 = x_227; +x_249 = lean_ctor_get(x_240, 1); +lean_inc(x_249); +if (lean_is_exclusive(x_240)) { + lean_ctor_release(x_240, 0); + lean_ctor_release(x_240, 1); + x_250 = x_240; } else { - lean_dec_ref(x_227); - x_249 = lean_box(0); + lean_dec_ref(x_240); + x_250 = lean_box(0); } -if (lean_is_scalar(x_249)) { - x_250 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_250)) { + x_251 = lean_alloc_ctor(1, 2, 0); } else { - x_250 = x_249; + x_251 = x_250; } -lean_ctor_set(x_250, 0, x_247); -lean_ctor_set(x_250, 1, x_248); -return x_250; +lean_ctor_set(x_251, 0, x_248); +lean_ctor_set(x_251, 1, x_249); +return x_251; } } else { -lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; -lean_dec(x_216); -lean_dec(x_212); +lean_dec(x_217); +lean_dec_ref(x_216); +lean_dec(x_215); +lean_dec(x_214); +lean_dec_ref(x_212); lean_dec_ref(x_211); -lean_dec(x_209); -lean_dec_ref(x_207); -lean_dec(x_206); -lean_dec(x_205); -lean_dec_ref(x_204); -lean_dec_ref(x_51); -lean_dec(x_34); +lean_dec(x_210); lean_dec_ref(x_13); -lean_dec_ref(x_12); lean_dec_ref(x_11); -lean_dec(x_6); lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_2); -x_251 = lean_ctor_get(x_218, 0); -lean_inc(x_251); -x_252 = lean_ctor_get(x_218, 1); +return x_238; +} +} +else +{ +lean_dec(x_217); +lean_dec_ref(x_216); +lean_dec(x_215); +lean_dec(x_214); +lean_dec_ref(x_212); +lean_dec_ref(x_211); +lean_dec(x_210); +lean_dec_ref(x_13); +lean_dec_ref(x_11); +lean_dec_ref(x_5); +return x_236; +} +} +else +{ +lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_231); +lean_dec_ref(x_230); +lean_dec_ref(x_229); +lean_dec(x_228); +lean_dec(x_226); +lean_dec(x_224); +lean_dec(x_221); +lean_dec(x_217); +lean_dec_ref(x_216); +lean_dec(x_215); +lean_dec(x_214); +lean_dec_ref(x_212); +lean_dec_ref(x_211); +lean_dec(x_210); +lean_dec_ref(x_13); +lean_dec_ref(x_11); +lean_dec_ref(x_5); +x_252 = lean_ctor_get(x_232, 0); lean_inc(x_252); -if (lean_is_exclusive(x_218)) { - lean_ctor_release(x_218, 0); - lean_ctor_release(x_218, 1); - x_253 = x_218; +x_253 = lean_ctor_get(x_232, 1); +lean_inc(x_253); +if (lean_is_exclusive(x_232)) { + lean_ctor_release(x_232, 0); + lean_ctor_release(x_232, 1); + x_254 = x_232; } else { - lean_dec_ref(x_218); - x_253 = lean_box(0); + lean_dec_ref(x_232); + x_254 = lean_box(0); } -if (lean_is_scalar(x_253)) { - x_254 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_254)) { + x_255 = lean_alloc_ctor(1, 2, 0); } else { - x_254 = x_253; + x_255 = x_254; } -lean_ctor_set(x_254, 0, x_251); -lean_ctor_set(x_254, 1, x_252); -return x_254; +lean_ctor_set(x_255, 0, x_252); +lean_ctor_set(x_255, 1, x_253); +return x_255; } } else { -lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; -lean_dec(x_212); +lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; +lean_dec(x_221); +lean_dec(x_217); +lean_dec_ref(x_216); +lean_dec(x_215); +lean_dec(x_214); +lean_dec_ref(x_212); lean_dec_ref(x_211); -lean_dec(x_209); -lean_dec_ref(x_207); -lean_dec(x_206); -lean_dec(x_205); -lean_dec_ref(x_204); -lean_dec(x_202); -lean_dec_ref(x_51); -lean_dec(x_34); +lean_dec(x_210); +lean_dec_ref(x_56); +lean_dec(x_36); lean_dec_ref(x_16); lean_dec_ref(x_13); -lean_dec_ref(x_12); lean_dec_ref(x_11); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); +lean_dec_ref(x_3); lean_dec_ref(x_2); -x_255 = lean_ctor_get(x_215, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_215, 1); +x_256 = lean_ctor_get(x_223, 0); lean_inc(x_256); -if (lean_is_exclusive(x_215)) { - lean_ctor_release(x_215, 0); - lean_ctor_release(x_215, 1); - x_257 = x_215; +x_257 = lean_ctor_get(x_223, 1); +lean_inc(x_257); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_258 = x_223; } else { - lean_dec_ref(x_215); - x_257 = lean_box(0); + lean_dec_ref(x_223); + x_258 = lean_box(0); } -if (lean_is_scalar(x_257)) { - x_258 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_258)) { + x_259 = lean_alloc_ctor(1, 2, 0); } else { - x_258 = x_257; + x_259 = x_258; } -lean_ctor_set(x_258, 0, x_255); -lean_ctor_set(x_258, 1, x_256); -return x_258; +lean_ctor_set(x_259, 0, x_256); +lean_ctor_set(x_259, 1, x_257); +return x_259; } } -block_272: -{ -if (x_267 == 0) -{ -lean_object* x_268; lean_object* x_269; lean_object* x_270; -x_268 = lean_ctor_get(x_13, 3); -lean_inc(x_268); -x_269 = l_Lean_Elab_partialFixpoint___lam__3___closed__3; -x_270 = l_Lean_Name_append(x_268, x_269); -x_204 = x_260; -x_205 = x_261; -x_206 = x_263; -x_207 = x_262; -x_208 = x_15; -x_209 = x_264; -x_210 = x_265; -x_211 = x_266; -x_212 = x_270; -goto block_259; -} else { -lean_object* x_271; -x_271 = lean_ctor_get(x_13, 3); -lean_inc(x_271); -x_204 = x_260; -x_205 = x_261; -x_206 = x_263; -x_207 = x_262; -x_208 = x_15; -x_209 = x_264; +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; +lean_dec(x_217); +lean_dec_ref(x_216); +lean_dec(x_215); +lean_dec(x_214); +lean_dec_ref(x_212); +lean_dec_ref(x_211); +lean_dec(x_210); +lean_dec(x_208); +lean_dec_ref(x_56); +lean_dec(x_36); +lean_dec_ref(x_18); +lean_dec_ref(x_16); +lean_dec_ref(x_13); +lean_dec_ref(x_11); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_260 = lean_ctor_get(x_220, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_220, 1); +lean_inc(x_261); +if (lean_is_exclusive(x_220)) { + lean_ctor_release(x_220, 0); + lean_ctor_release(x_220, 1); + x_262 = x_220; +} else { + lean_dec_ref(x_220); + x_262 = lean_box(0); +} +if (lean_is_scalar(x_262)) { + x_263 = lean_alloc_ctor(1, 2, 0); +} else { + x_263 = x_262; +} +lean_ctor_set(x_263, 0, x_260); +lean_ctor_set(x_263, 1, x_261); +return x_263; +} +} +block_277: +{ +if (x_272 == 0) +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; +x_273 = lean_ctor_get(x_16, 3); +lean_inc(x_273); +x_274 = l_Lean_Elab_partialFixpoint___lam__3___closed__5; +x_275 = l_Lean_Name_append(x_273, x_274); x_210 = x_265; -x_211 = x_266; -x_212 = x_271; -goto block_259; -} -} -block_283: -{ -lean_object* x_280; uint8_t x_281; -x_280 = lean_unsigned_to_nat(1u); -x_281 = lean_nat_dec_eq(x_6, x_280); -if (x_281 == 0) -{ -x_260 = x_277; -x_261 = x_274; -x_262 = x_275; -x_263 = x_278; -x_264 = x_276; -x_265 = x_279; -x_266 = x_273; -x_267 = x_281; -goto block_272; +x_211 = x_267; +x_212 = x_266; +x_213 = x_268; +x_214 = x_269; +x_215 = x_270; +x_216 = x_271; +x_217 = x_275; +goto block_264; } else { -uint8_t x_282; -lean_inc_ref(x_11); -x_282 = l_Lean_Elab_FixedParamPerms_fixedArePrefix(x_11); -x_260 = x_277; -x_261 = x_274; -x_262 = x_275; -x_263 = x_278; -x_264 = x_276; -x_265 = x_279; -x_266 = x_273; +lean_object* x_276; +x_276 = lean_ctor_get(x_16, 3); +lean_inc(x_276); +x_210 = x_265; +x_211 = x_267; +x_212 = x_266; +x_213 = x_268; +x_214 = x_269; +x_215 = x_270; +x_216 = x_271; +x_217 = x_276; +goto block_264; +} +} +block_288: +{ +lean_object* x_285; uint8_t x_286; +x_285 = lean_unsigned_to_nat(1u); +x_286 = lean_nat_dec_eq(x_6, x_285); +if (x_286 == 0) +{ +x_265 = x_281; +x_266 = x_280; x_267 = x_282; -goto block_272; +x_268 = x_284; +x_269 = x_283; +x_270 = x_279; +x_271 = x_278; +x_272 = x_286; +goto block_277; +} +else +{ +uint8_t x_287; +lean_inc_ref(x_11); +x_287 = l_Lean_Elab_FixedParamPerms_fixedArePrefix(x_11); +x_265 = x_281; +x_266 = x_280; +x_267 = x_282; +x_268 = x_284; +x_269 = x_283; +x_270 = x_279; +x_271 = x_278; +x_272 = x_287; +goto block_277; } } } else { -lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; -lean_dec_ref(x_51); -lean_dec(x_34); +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; +lean_dec_ref(x_56); +lean_dec(x_36); +lean_dec(x_24); +lean_dec_ref(x_23); lean_dec(x_22); lean_dec_ref(x_21); lean_dec(x_20); lean_dec_ref(x_19); -lean_dec(x_18); -lean_dec_ref(x_17); +lean_dec_ref(x_18); lean_dec_ref(x_16); lean_dec_ref(x_13); -lean_dec_ref(x_12); lean_dec_ref(x_11); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); +lean_dec_ref(x_3); lean_dec_ref(x_2); -x_298 = lean_ctor_get(x_201, 0); -lean_inc(x_298); -x_299 = lean_ctor_get(x_201, 1); -lean_inc(x_299); -if (lean_is_exclusive(x_201)) { - lean_ctor_release(x_201, 0); - lean_ctor_release(x_201, 1); - x_300 = x_201; -} else { - lean_dec_ref(x_201); - x_300 = lean_box(0); -} -if (lean_is_scalar(x_300)) { - x_301 = lean_alloc_ctor(1, 2, 0); -} else { - x_301 = x_300; -} -lean_ctor_set(x_301, 0, x_298); -lean_ctor_set(x_301, 1, x_299); -return x_301; -} -} -} -else -{ -uint8_t x_302; -lean_dec_ref(x_51); -lean_dec(x_41); -lean_dec(x_34); -lean_dec(x_22); -lean_dec_ref(x_21); -lean_dec(x_20); -lean_dec_ref(x_19); -lean_dec(x_18); -lean_dec_ref(x_17); -lean_dec_ref(x_16); -lean_dec_ref(x_13); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_2); -x_302 = !lean_is_exclusive(x_57); -if (x_302 == 0) -{ -return x_57; -} -else -{ -lean_object* x_303; lean_object* x_304; lean_object* x_305; -x_303 = lean_ctor_get(x_57, 0); -x_304 = lean_ctor_get(x_57, 1); -lean_inc(x_304); +x_303 = lean_ctor_get(x_207, 0); lean_inc(x_303); -lean_dec(x_57); -x_305 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_305, 0, x_303); -lean_ctor_set(x_305, 1, x_304); -return x_305; +x_304 = lean_ctor_get(x_207, 1); +lean_inc(x_304); +if (lean_is_exclusive(x_207)) { + lean_ctor_release(x_207, 0); + lean_ctor_release(x_207, 1); + x_305 = x_207; +} else { + lean_dec_ref(x_207); + x_305 = lean_box(0); +} +if (lean_is_scalar(x_305)) { + x_306 = lean_alloc_ctor(1, 2, 0); +} else { + x_306 = x_305; +} +lean_ctor_set(x_306, 0, x_303); +lean_ctor_set(x_306, 1, x_304); +return x_306; } } } else { -uint8_t x_306; -lean_dec_ref(x_51); -lean_dec(x_41); -lean_dec(x_34); +uint8_t x_307; +lean_dec_ref(x_56); +lean_dec(x_43); +lean_dec(x_36); +lean_dec(x_24); +lean_dec_ref(x_23); lean_dec(x_22); lean_dec_ref(x_21); lean_dec(x_20); lean_dec_ref(x_19); -lean_dec(x_18); -lean_dec_ref(x_17); +lean_dec_ref(x_18); lean_dec_ref(x_16); lean_dec_ref(x_13); -lean_dec_ref(x_12); lean_dec_ref(x_11); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); +lean_dec_ref(x_3); lean_dec_ref(x_2); -x_306 = !lean_is_exclusive(x_52); -if (x_306 == 0) +x_307 = !lean_is_exclusive(x_64); +if (x_307 == 0) { -return x_52; +return x_64; } else { -lean_object* x_307; lean_object* x_308; lean_object* x_309; -x_307 = lean_ctor_get(x_52, 0); -x_308 = lean_ctor_get(x_52, 1); +lean_object* x_308; lean_object* x_309; lean_object* x_310; +x_308 = lean_ctor_get(x_64, 0); +x_309 = lean_ctor_get(x_64, 1); +lean_inc(x_309); lean_inc(x_308); -lean_inc(x_307); -lean_dec(x_52); -x_309 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_309, 0, x_307); -lean_ctor_set(x_309, 1, x_308); -return x_309; +lean_dec(x_64); +x_310 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_310, 0, x_308); +lean_ctor_set(x_310, 1, x_309); +return x_310; } } } else { -uint8_t x_310; -lean_dec(x_45); -lean_dec(x_41); -lean_dec(x_38); -lean_dec(x_34); -lean_dec(x_30); +uint8_t x_311; +lean_dec_ref(x_56); +lean_dec(x_43); +lean_dec(x_36); +lean_dec(x_24); +lean_dec_ref(x_23); lean_dec(x_22); lean_dec_ref(x_21); lean_dec(x_20); lean_dec_ref(x_19); -lean_dec(x_18); -lean_dec_ref(x_17); +lean_dec_ref(x_18); lean_dec_ref(x_16); lean_dec_ref(x_13); -lean_dec_ref(x_12); lean_dec_ref(x_11); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); +lean_dec_ref(x_3); lean_dec_ref(x_2); -x_310 = !lean_is_exclusive(x_47); -if (x_310 == 0) +x_311 = !lean_is_exclusive(x_59); +if (x_311 == 0) { -return x_47; +return x_59; } else { -lean_object* x_311; lean_object* x_312; lean_object* x_313; -x_311 = lean_ctor_get(x_47, 0); -x_312 = lean_ctor_get(x_47, 1); +lean_object* x_312; lean_object* x_313; lean_object* x_314; +x_312 = lean_ctor_get(x_59, 0); +x_313 = lean_ctor_get(x_59, 1); +lean_inc(x_313); lean_inc(x_312); -lean_inc(x_311); +lean_dec(x_59); +x_314 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_314, 0, x_312); +lean_ctor_set(x_314, 1, x_313); +return x_314; +} +} +} +else +{ +uint8_t x_315; lean_dec(x_47); -x_313 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_313, 0, x_311); -lean_ctor_set(x_313, 1, x_312); -return x_313; -} -} -} -else -{ -uint8_t x_314; -lean_dec(x_41); -lean_dec(x_38); -lean_dec(x_34); -lean_dec(x_30); -lean_dec(x_22); -lean_dec_ref(x_21); -lean_dec(x_20); -lean_dec_ref(x_19); -lean_dec(x_18); -lean_dec_ref(x_17); -lean_dec_ref(x_16); -lean_dec_ref(x_13); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_10); -lean_dec_ref(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_2); -x_314 = !lean_is_exclusive(x_44); -if (x_314 == 0) -{ -return x_44; -} -else -{ -lean_object* x_315; lean_object* x_316; lean_object* x_317; -x_315 = lean_ctor_get(x_44, 0); -x_316 = lean_ctor_get(x_44, 1); -lean_inc(x_316); -lean_inc(x_315); -lean_dec(x_44); -x_317 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_317, 0, x_315); -lean_ctor_set(x_317, 1, x_316); -return x_317; -} -} -} -else -{ -uint8_t x_318; -lean_dec(x_38); -lean_dec(x_34); -lean_dec(x_30); -lean_dec(x_22); -lean_dec_ref(x_21); -lean_dec(x_20); -lean_dec_ref(x_19); -lean_dec(x_18); -lean_dec_ref(x_17); -lean_dec_ref(x_16); -lean_dec_ref(x_13); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_10); -lean_dec_ref(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_2); -x_318 = !lean_is_exclusive(x_40); -if (x_318 == 0) -{ -return x_40; -} -else -{ -lean_object* x_319; lean_object* x_320; lean_object* x_321; -x_319 = lean_ctor_get(x_40, 0); -x_320 = lean_ctor_get(x_40, 1); -lean_inc(x_320); -lean_inc(x_319); +lean_dec(x_43); lean_dec(x_40); -x_321 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_321, 0, x_319); -lean_ctor_set(x_321, 1, x_320); -return x_321; +lean_dec(x_36); +lean_dec(x_32); +lean_dec(x_24); +lean_dec_ref(x_23); +lean_dec(x_22); +lean_dec_ref(x_21); +lean_dec(x_20); +lean_dec_ref(x_19); +lean_dec_ref(x_18); +lean_dec_ref(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec_ref(x_11); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_315 = !lean_is_exclusive(x_50); +if (x_315 == 0) +{ +return x_50; +} +else +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; +x_316 = lean_ctor_get(x_50, 0); +x_317 = lean_ctor_get(x_50, 1); +lean_inc(x_317); +lean_inc(x_316); +lean_dec(x_50); +x_318 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_318, 0, x_316); +lean_ctor_set(x_318, 1, x_317); +return x_318; } } } else { -uint8_t x_322; -lean_dec(x_34); -lean_dec(x_30); +uint8_t x_319; +lean_dec(x_43); +lean_dec(x_40); +lean_dec(x_36); +lean_dec(x_32); +lean_dec(x_24); +lean_dec_ref(x_23); lean_dec(x_22); lean_dec_ref(x_21); lean_dec(x_20); lean_dec_ref(x_19); -lean_dec(x_18); -lean_dec_ref(x_17); +lean_dec_ref(x_18); lean_dec_ref(x_16); +lean_dec(x_15); +lean_dec(x_14); lean_dec_ref(x_13); -lean_dec_ref(x_12); lean_dec_ref(x_11); lean_dec_ref(x_10); lean_dec_ref(x_7); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); +lean_dec_ref(x_3); lean_dec_ref(x_2); -x_322 = !lean_is_exclusive(x_37); -if (x_322 == 0) +x_319 = !lean_is_exclusive(x_46); +if (x_319 == 0) { -return x_37; +return x_46; } else { -lean_object* x_323; lean_object* x_324; lean_object* x_325; -x_323 = lean_ctor_get(x_37, 0); -x_324 = lean_ctor_get(x_37, 1); +lean_object* x_320; lean_object* x_321; lean_object* x_322; +x_320 = lean_ctor_get(x_46, 0); +x_321 = lean_ctor_get(x_46, 1); +lean_inc(x_321); +lean_inc(x_320); +lean_dec(x_46); +x_322 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_322, 0, x_320); +lean_ctor_set(x_322, 1, x_321); +return x_322; +} +} +} +else +{ +uint8_t x_323; +lean_dec(x_40); +lean_dec(x_36); +lean_dec(x_32); +lean_dec(x_24); +lean_dec_ref(x_23); +lean_dec(x_22); +lean_dec_ref(x_21); +lean_dec(x_20); +lean_dec_ref(x_19); +lean_dec_ref(x_18); +lean_dec_ref(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec_ref(x_11); +lean_dec_ref(x_10); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_323 = !lean_is_exclusive(x_42); +if (x_323 == 0) +{ +return x_42; +} +else +{ +lean_object* x_324; lean_object* x_325; lean_object* x_326; +x_324 = lean_ctor_get(x_42, 0); +x_325 = lean_ctor_get(x_42, 1); +lean_inc(x_325); lean_inc(x_324); -lean_inc(x_323); -lean_dec(x_37); -x_325 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_325, 0, x_323); -lean_ctor_set(x_325, 1, x_324); -return x_325; +lean_dec(x_42); +x_326 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_326, 0, x_324); +lean_ctor_set(x_326, 1, x_325); +return x_326; } } } else { -uint8_t x_326; -lean_dec(x_30); -lean_dec(x_27); +uint8_t x_327; +lean_dec(x_36); +lean_dec(x_32); +lean_dec(x_24); +lean_dec_ref(x_23); lean_dec(x_22); lean_dec_ref(x_21); lean_dec(x_20); lean_dec_ref(x_19); -lean_dec(x_18); -lean_dec_ref(x_17); +lean_dec_ref(x_18); lean_dec_ref(x_16); +lean_dec(x_15); +lean_dec(x_14); lean_dec_ref(x_13); -lean_dec_ref(x_12); lean_dec_ref(x_11); lean_dec_ref(x_10); -lean_dec(x_8); lean_dec_ref(x_7); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); +lean_dec_ref(x_3); lean_dec_ref(x_2); -x_326 = !lean_is_exclusive(x_33); -if (x_326 == 0) +x_327 = !lean_is_exclusive(x_39); +if (x_327 == 0) { -return x_33; +return x_39; } else { -lean_object* x_327; lean_object* x_328; lean_object* x_329; -x_327 = lean_ctor_get(x_33, 0); -x_328 = lean_ctor_get(x_33, 1); +lean_object* x_328; lean_object* x_329; lean_object* x_330; +x_328 = lean_ctor_get(x_39, 0); +x_329 = lean_ctor_get(x_39, 1); +lean_inc(x_329); lean_inc(x_328); -lean_inc(x_327); -lean_dec(x_33); -x_329 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_329, 0, x_327); -lean_ctor_set(x_329, 1, x_328); -return x_329; +lean_dec(x_39); +x_330 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_330, 0, x_328); +lean_ctor_set(x_330, 1, x_329); +return x_330; } } } else { -uint8_t x_330; -lean_dec(x_27); -lean_dec(x_22); -lean_dec_ref(x_21); -lean_dec(x_20); -lean_dec_ref(x_19); -lean_dec(x_18); -lean_dec_ref(x_17); -lean_dec_ref(x_16); -lean_dec_ref(x_13); -lean_dec_ref(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_10); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_2); -x_330 = !lean_is_exclusive(x_29); -if (x_330 == 0) -{ -return x_29; -} -else -{ -lean_object* x_331; lean_object* x_332; lean_object* x_333; -x_331 = lean_ctor_get(x_29, 0); -x_332 = lean_ctor_get(x_29, 1); -lean_inc(x_332); -lean_inc(x_331); +uint8_t x_331; +lean_dec(x_32); lean_dec(x_29); -x_333 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_333, 0, x_331); -lean_ctor_set(x_333, 1, x_332); -return x_333; -} -} -} -else -{ -uint8_t x_334; +lean_dec(x_24); +lean_dec_ref(x_23); lean_dec(x_22); lean_dec_ref(x_21); lean_dec(x_20); lean_dec_ref(x_19); -lean_dec(x_18); -lean_dec_ref(x_17); +lean_dec_ref(x_18); lean_dec_ref(x_16); +lean_dec(x_15); +lean_dec(x_14); lean_dec_ref(x_13); -lean_dec_ref(x_12); lean_dec_ref(x_11); lean_dec_ref(x_10); lean_dec(x_8); @@ -10533,24 +9966,112 @@ lean_dec_ref(x_7); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); +lean_dec_ref(x_3); lean_dec_ref(x_2); -x_334 = !lean_is_exclusive(x_26); -if (x_334 == 0) +x_331 = !lean_is_exclusive(x_35); +if (x_331 == 0) { -return x_26; +return x_35; } else { -lean_object* x_335; lean_object* x_336; lean_object* x_337; -x_335 = lean_ctor_get(x_26, 0); -x_336 = lean_ctor_get(x_26, 1); +lean_object* x_332; lean_object* x_333; lean_object* x_334; +x_332 = lean_ctor_get(x_35, 0); +x_333 = lean_ctor_get(x_35, 1); +lean_inc(x_333); +lean_inc(x_332); +lean_dec(x_35); +x_334 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_334, 0, x_332); +lean_ctor_set(x_334, 1, x_333); +return x_334; +} +} +} +else +{ +uint8_t x_335; +lean_dec(x_29); +lean_dec(x_24); +lean_dec_ref(x_23); +lean_dec(x_22); +lean_dec_ref(x_21); +lean_dec(x_20); +lean_dec_ref(x_19); +lean_dec_ref(x_18); +lean_dec_ref(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec_ref(x_11); +lean_dec_ref(x_10); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_335 = !lean_is_exclusive(x_31); +if (x_335 == 0) +{ +return x_31; +} +else +{ +lean_object* x_336; lean_object* x_337; lean_object* x_338; +x_336 = lean_ctor_get(x_31, 0); +x_337 = lean_ctor_get(x_31, 1); +lean_inc(x_337); lean_inc(x_336); -lean_inc(x_335); -lean_dec(x_26); -x_337 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_337, 0, x_335); -lean_ctor_set(x_337, 1, x_336); -return x_337; +lean_dec(x_31); +x_338 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_338, 0, x_336); +lean_ctor_set(x_338, 1, x_337); +return x_338; +} +} +} +else +{ +uint8_t x_339; +lean_dec(x_24); +lean_dec_ref(x_23); +lean_dec(x_22); +lean_dec_ref(x_21); +lean_dec(x_20); +lean_dec_ref(x_19); +lean_dec_ref(x_18); +lean_dec_ref(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec_ref(x_11); +lean_dec_ref(x_10); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_339 = !lean_is_exclusive(x_28); +if (x_339 == 0) +{ +return x_28; +} +else +{ +lean_object* x_340; lean_object* x_341; lean_object* x_342; +x_340 = lean_ctor_get(x_28, 0); +x_341 = lean_ctor_get(x_28, 1); +lean_inc(x_341); +lean_inc(x_340); +lean_dec(x_28); +x_342 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_342, 0, x_340); +lean_ctor_set(x_342, 1, x_341); +return x_342; } } } @@ -10637,10 +10158,10 @@ return x_15; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_54; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_56; x_16 = lean_alloc_closure((void*)(l_Lean_Elab_partialFixpoint___lam__0___boxed), 9, 0); -x_54 = lean_nat_dec_lt(x_9, x_12); -if (x_54 == 0) +x_56 = lean_nat_dec_lt(x_9, x_12); +if (x_56 == 0) { lean_dec(x_12); x_17 = x_2; @@ -10650,11 +10171,11 @@ x_20 = x_5; x_21 = x_6; x_22 = x_7; x_23 = x_8; -goto block_53; +goto block_55; } else { -if (x_54 == 0) +if (x_56 == 0) { lean_dec(x_12); x_17 = x_2; @@ -10664,20 +10185,20 @@ x_20 = x_5; x_21 = x_6; x_22 = x_7; x_23 = x_8; -goto block_53; +goto block_55; } else { -lean_object* x_55; size_t x_56; size_t x_57; uint8_t x_58; -x_55 = lean_alloc_closure((void*)(l_Lean_Elab_partialFixpoint___lam__4___boxed), 1, 0); -x_56 = 0; -x_57 = lean_usize_of_nat(x_12); +lean_object* x_57; size_t x_58; size_t x_59; uint8_t x_60; +x_57 = lean_alloc_closure((void*)(l_Lean_Elab_partialFixpoint___lam__4___boxed), 1, 0); +x_58 = 0; +x_59 = lean_usize_of_nat(x_12); lean_dec(x_12); -lean_inc_ref(x_55); -x_58 = l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__20(x_55, x_11, x_56, x_57); -if (x_58 == 0) +lean_inc_ref(x_57); +x_60 = l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__19(x_57, x_11, x_58, x_59); +if (x_60 == 0) { -lean_dec_ref(x_55); +lean_dec_ref(x_57); x_17 = x_2; x_18 = x_3; x_19 = x_4; @@ -10685,13 +10206,13 @@ x_20 = x_5; x_21 = x_6; x_22 = x_7; x_23 = x_8; -goto block_53; +goto block_55; } else { -if (x_54 == 0) +if (x_56 == 0) { -lean_dec_ref(x_55); +lean_dec_ref(x_57); x_17 = x_2; x_18 = x_3; x_19 = x_4; @@ -10699,13 +10220,13 @@ x_20 = x_5; x_21 = x_6; x_22 = x_7; x_23 = x_8; -goto block_53; +goto block_55; } else { -if (x_54 == 0) +if (x_56 == 0) { -lean_dec_ref(x_55); +lean_dec_ref(x_57); x_17 = x_2; x_18 = x_3; x_19 = x_4; @@ -10713,13 +10234,13 @@ x_20 = x_5; x_21 = x_6; x_22 = x_7; x_23 = x_8; -goto block_53; +goto block_55; } else { -uint8_t x_59; -x_59 = l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__21(x_55, x_58, x_11, x_56, x_57); -if (x_59 == 0) +uint8_t x_61; +x_61 = l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__20(x_57, x_60, x_11, x_58, x_59); +if (x_61 == 0) { x_17 = x_2; x_18 = x_3; @@ -10728,25 +10249,25 @@ x_20 = x_5; x_21 = x_6; x_22 = x_7; x_23 = x_8; -goto block_53; +goto block_55; } else { -lean_object* x_60; lean_object* x_61; +lean_object* x_62; lean_object* x_63; lean_dec_ref(x_16); lean_dec_ref(x_11); lean_dec(x_10); lean_dec_ref(x_1); -x_60 = l_Lean_Elab_partialFixpoint___closed__3; -x_61 = l_panic___at___Lean_Elab_Term_reportStuckSyntheticMVar_spec__0(x_60, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_61; +x_62 = l_Lean_Elab_partialFixpoint___closed__3; +x_63 = l_panic___at___Lean_Elab_Term_reportStuckSyntheticMVar_spec__0(x_62, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_63; } } } } } } -block_53: +block_55: { lean_object* x_24; lean_object* x_25; x_24 = lean_mk_empty_array_with_capacity(x_10); @@ -10773,7 +10294,7 @@ lean_inc_ref(x_1); x_28 = l_Lean_Elab_getFixedParamPerms(x_1, x_19, x_20, x_21, x_22, x_27); if (lean_obj_tag(x_28) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; size_t x_35; size_t 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_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; size_t x_37; size_t 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; x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); @@ -10785,37 +10306,41 @@ x_32 = l_Lean_Elab_instInhabitedPreDefinition; x_33 = lean_array_get(x_32, x_1, x_9); x_34 = lean_ctor_get(x_33, 4); lean_inc_ref(x_34); -x_35 = lean_array_size(x_1); -x_36 = 0; +x_35 = l_Lean_Elab_partialFixpoint___lam__3___closed__0; +x_36 = l_Lean_Elab_partialFixpoint___lam__3___closed__1; +x_37 = lean_array_size(x_1); +x_38 = 0; lean_inc_ref(x_1); -x_37 = l_Array_mapMUnsafe_map___at___Lean_Elab_PartialFixpoint_registerEqnsInfo_spec__0(x_35, x_36, x_1); -x_38 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_replaceRecApps___lam__0___closed__1; -x_39 = lean_array_get(x_38, x_31, x_9); -x_40 = l_Lean_Elab_partialFixpoint___boxed__const__1; -x_41 = lean_box_usize(x_35); -x_42 = lean_box(x_13); -x_43 = lean_alloc_closure((void*)(l_Lean_Elab_partialFixpoint___lam__3___boxed), 23, 15); -lean_closure_set(x_43, 0, x_26); -lean_closure_set(x_43, 1, x_38); -lean_closure_set(x_43, 2, x_31); -lean_closure_set(x_43, 3, x_9); -lean_closure_set(x_43, 4, x_1); -lean_closure_set(x_43, 5, x_10); -lean_closure_set(x_43, 6, x_24); -lean_closure_set(x_43, 7, x_16); -lean_closure_set(x_43, 8, x_40); -lean_closure_set(x_43, 9, x_37); -lean_closure_set(x_43, 10, x_29); -lean_closure_set(x_43, 11, x_11); -lean_closure_set(x_43, 12, x_33); -lean_closure_set(x_43, 13, x_41); -lean_closure_set(x_43, 14, x_42); -x_44 = l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__19___redArg(x_39, x_34, x_43, x_17, x_18, x_19, x_20, x_21, x_22, x_30); -return x_44; +x_39 = l_Array_mapMUnsafe_map___at___Lean_Elab_PartialFixpoint_registerEqnsInfo_spec__0(x_37, x_38, x_1); +x_40 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_replaceRecApps___lam__0___closed__1; +x_41 = lean_array_get(x_40, x_31, x_9); +x_42 = l_Lean_Elab_partialFixpoint___boxed__const__1; +x_43 = lean_box(x_13); +x_44 = lean_box_usize(x_37); +x_45 = lean_alloc_closure((void*)(l_Lean_Elab_partialFixpoint___lam__3___boxed), 25, 17); +lean_closure_set(x_45, 0, x_26); +lean_closure_set(x_45, 1, x_40); +lean_closure_set(x_45, 2, x_31); +lean_closure_set(x_45, 3, x_9); +lean_closure_set(x_45, 4, x_1); +lean_closure_set(x_45, 5, x_10); +lean_closure_set(x_45, 6, x_24); +lean_closure_set(x_45, 7, x_16); +lean_closure_set(x_45, 8, x_42); +lean_closure_set(x_45, 9, x_39); +lean_closure_set(x_45, 10, x_29); +lean_closure_set(x_45, 11, x_43); +lean_closure_set(x_45, 12, x_11); +lean_closure_set(x_45, 13, x_36); +lean_closure_set(x_45, 14, x_35); +lean_closure_set(x_45, 15, x_33); +lean_closure_set(x_45, 16, x_44); +x_46 = l_Lean_Elab_FixedParamPerm_forallTelescope___at___Lean_Elab_partialFixpoint_spec__18___redArg(x_41, x_34, x_45, x_17, x_18, x_19, x_20, x_21, x_22, x_30); +return x_46; } else { -uint8_t x_45; +uint8_t x_47; lean_dec(x_26); lean_dec_ref(x_24); lean_dec(x_22); @@ -10828,29 +10353,29 @@ lean_dec_ref(x_16); lean_dec_ref(x_11); lean_dec(x_10); lean_dec_ref(x_1); -x_45 = !lean_is_exclusive(x_28); -if (x_45 == 0) +x_47 = !lean_is_exclusive(x_28); +if (x_47 == 0) { return x_28; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_28, 0); -x_47 = lean_ctor_get(x_28, 1); -lean_inc(x_47); -lean_inc(x_46); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_28, 0); +x_49 = lean_ctor_get(x_28, 1); +lean_inc(x_49); +lean_inc(x_48); lean_dec(x_28); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; } } } else { -uint8_t x_49; +uint8_t x_51; lean_dec_ref(x_24); lean_dec(x_22); lean_dec_ref(x_21); @@ -10862,23 +10387,23 @@ lean_dec_ref(x_16); lean_dec_ref(x_11); lean_dec(x_10); lean_dec_ref(x_1); -x_49 = !lean_is_exclusive(x_25); -if (x_49 == 0) +x_51 = !lean_is_exclusive(x_25); +if (x_51 == 0) { return x_25; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_25, 0); -x_51 = lean_ctor_get(x_25, 1); -lean_inc(x_51); -lean_inc(x_50); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_25, 0); +x_53 = lean_ctor_get(x_25, 1); +lean_inc(x_53); +lean_inc(x_52); lean_dec(x_25); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; } } } @@ -11015,18 +10540,6 @@ lean_dec_ref(x_1); return x_14; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4___redArg___lam__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) { -_start: -{ -uint8_t x_13; lean_object* x_14; -x_13 = lean_unbox(x_3); -x_14 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4___redArg___lam__2(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_7); -lean_dec_ref(x_5); -lean_dec_ref(x_2); -return x_14; -} -} LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4___redArg___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: { @@ -11097,20 +10610,7 @@ lean_dec_ref(x_2); return x_16; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__9___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -size_t x_8; size_t x_9; lean_object* x_10; -x_8 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_9 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_10 = l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__9___redArg(x_1, x_8, x_9, x_4, x_5, x_6, x_7); -lean_dec_ref(x_1); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__9___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__9___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) { _start: { size_t x_12; size_t x_13; lean_object* x_14; @@ -11118,7 +10618,32 @@ x_12 = lean_unbox_usize(x_2); lean_dec(x_2); x_13 = lean_unbox_usize(x_3); lean_dec(x_3); -x_14 = l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__9(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__9(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__10___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_9 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_10 = l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__10___redArg(x_1, x_8, x_9, x_4, x_5, x_6, x_7); +lean_dec_ref(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__10___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) { +_start: +{ +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = l_Array_foldlMUnsafe_fold___at___Lean_Elab_partialFixpoint_spec__10(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_8); lean_dec_ref(x_7); lean_dec(x_6); @@ -11127,23 +10652,11 @@ lean_dec_ref(x_1); return x_14; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__10___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) { -_start: -{ -size_t x_12; size_t x_13; lean_object* x_14; -x_12 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_13 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_14 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__10(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { lean_object* x_15; -x_15 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_15 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); lean_dec(x_9); lean_dec_ref(x_8); lean_dec_ref(x_7); @@ -11153,76 +10666,15 @@ lean_dec(x_1); return x_15; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { uint8_t x_16; lean_object* x_17; x_16 = lean_unbox(x_7); -x_17 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___lam__1(x_1, x_2, x_3, x_4, x_5, x_6, x_16, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_17 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___lam__1(x_1, x_2, x_3, x_4, x_5, x_6, x_16, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); return x_17; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___boxed(lean_object** _args) { -lean_object* x_1 = _args[0]; -lean_object* x_2 = _args[1]; -lean_object* x_3 = _args[2]; -lean_object* x_4 = _args[3]; -lean_object* x_5 = _args[4]; -lean_object* x_6 = _args[5]; -lean_object* x_7 = _args[6]; -lean_object* x_8 = _args[7]; -lean_object* x_9 = _args[8]; -lean_object* x_10 = _args[9]; -lean_object* x_11 = _args[10]; -lean_object* x_12 = _args[11]; -lean_object* x_13 = _args[12]; -lean_object* x_14 = _args[13]; -lean_object* x_15 = _args[14]; -lean_object* x_16 = _args[15]; -lean_object* x_17 = _args[16]; -lean_object* x_18 = _args[17]; -lean_object* x_19 = _args[18]; -lean_object* x_20 = _args[19]; -_start: -{ -lean_object* x_21; -x_21 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); -lean_dec_ref(x_10); -lean_dec_ref(x_2); -return x_21; -} -} -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___boxed(lean_object** _args) { -lean_object* x_1 = _args[0]; -lean_object* x_2 = _args[1]; -lean_object* x_3 = _args[2]; -lean_object* x_4 = _args[3]; -lean_object* x_5 = _args[4]; -lean_object* x_6 = _args[5]; -lean_object* x_7 = _args[6]; -lean_object* x_8 = _args[7]; -lean_object* x_9 = _args[8]; -lean_object* x_10 = _args[9]; -lean_object* x_11 = _args[10]; -lean_object* x_12 = _args[11]; -lean_object* x_13 = _args[12]; -lean_object* x_14 = _args[13]; -lean_object* x_15 = _args[14]; -lean_object* x_16 = _args[15]; -lean_object* x_17 = _args[16]; -lean_object* x_18 = _args[17]; -lean_object* x_19 = _args[18]; -lean_object* x_20 = _args[19]; -lean_object* x_21 = _args[20]; -_start: -{ -lean_object* x_22; -x_22 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); -lean_dec_ref(x_10); -lean_dec_ref(x_2); -return x_22; -} -} LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; @@ -11248,8 +10700,6 @@ _start: { lean_object* x_21; x_21 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); -lean_dec(x_12); -lean_dec(x_11); lean_dec_ref(x_10); lean_dec_ref(x_2); return x_21; @@ -11277,53 +10727,16 @@ lean_object* x_18 = _args[17]; lean_object* x_19 = _args[18]; lean_object* x_20 = _args[19]; lean_object* x_21 = _args[20]; -lean_object* x_22 = _args[21]; -lean_object* x_23 = _args[22]; _start: { -lean_object* x_24; -x_24 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23); -lean_dec(x_14); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_10); -lean_dec(x_9); +lean_object* x_22; +x_22 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +lean_dec_ref(x_10); lean_dec_ref(x_2); -return x_24; +return x_22; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___boxed(lean_object** _args) { -lean_object* x_1 = _args[0]; -lean_object* x_2 = _args[1]; -lean_object* x_3 = _args[2]; -lean_object* x_4 = _args[3]; -lean_object* x_5 = _args[4]; -lean_object* x_6 = _args[5]; -lean_object* x_7 = _args[6]; -lean_object* x_8 = _args[7]; -lean_object* x_9 = _args[8]; -lean_object* x_10 = _args[9]; -lean_object* x_11 = _args[10]; -lean_object* x_12 = _args[11]; -lean_object* x_13 = _args[12]; -lean_object* x_14 = _args[13]; -lean_object* x_15 = _args[14]; -lean_object* x_16 = _args[15]; -lean_object* x_17 = _args[16]; -lean_object* x_18 = _args[17]; -_start: -{ -lean_object* x_19; -x_19 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); -lean_dec_ref(x_8); -lean_dec_ref(x_6); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -return x_19; -} -} -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___boxed(lean_object** _args) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -11345,17 +10758,18 @@ lean_object* x_18 = _args[17]; lean_object* x_19 = _args[18]; _start: { -lean_object* x_20; -x_20 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); -lean_dec_ref(x_8); +uint8_t x_20; lean_object* x_21; +x_20 = lean_unbox(x_8); +x_21 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_20, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +lean_dec_ref(x_9); lean_dec_ref(x_6); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -return x_20; +return x_21; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13___redArg___boxed(lean_object** _args) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -11374,21 +10788,57 @@ lean_object* x_15 = _args[14]; lean_object* x_16 = _args[15]; lean_object* x_17 = _args[16]; lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; _start: { -lean_object* x_19; -x_19 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); +uint8_t x_21; lean_object* x_22; +x_21 = lean_unbox(x_8); +x_22 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_21, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +lean_dec_ref(x_9); lean_dec_ref(x_6); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -return x_19; +return x_22; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13___boxed(lean_object** _args) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12___redArg___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +_start: +{ +uint8_t x_20; lean_object* x_21; +x_20 = lean_unbox(x_8); +x_21 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_20, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +lean_dec(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_6); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +return x_21; +} +} +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -11410,23 +10860,29 @@ lean_object* x_18 = _args[17]; lean_object* x_19 = _args[18]; lean_object* x_20 = _args[19]; lean_object* x_21 = _args[20]; +lean_object* x_22 = _args[21]; +lean_object* x_23 = _args[22]; +lean_object* x_24 = _args[23]; _start: { -lean_object* x_22; -x_22 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); -lean_dec(x_12); +uint8_t x_25; lean_object* x_26; +x_25 = lean_unbox(x_12); +x_26 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_25, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24); +lean_dec(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec(x_11); -lean_dec_ref(x_10); +lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec_ref(x_6); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -return x_22; +return x_26; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15___redArg___lam__0___boxed(lean_object** _args) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14___redArg___lam__0___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -11459,7 +10915,7 @@ x_26 = lean_unbox(x_7); x_27 = lean_unbox(x_8); x_28 = lean_unbox(x_9); x_29 = lean_unbox(x_11); -x_30 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15___redArg___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_26, x_27, x_28, x_10, x_29, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25); +x_30 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14___redArg___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_26, x_27, x_28, x_10, x_29, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25); lean_dec(x_24); lean_dec_ref(x_23); lean_dec(x_22); @@ -11473,7 +10929,7 @@ lean_dec_ref(x_1); return x_30; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15___redArg___boxed(lean_object** _args) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14___redArg___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -11500,13 +10956,13 @@ uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; x_21 = lean_unbox(x_7); x_22 = lean_unbox(x_8); x_23 = lean_unbox(x_9); -x_24 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_21, x_22, x_23, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +x_24 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_21, x_22, x_23, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); lean_dec_ref(x_10); lean_dec_ref(x_2); return x_24; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15___boxed(lean_object** _args) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -11534,13 +10990,13 @@ uint8_t x_22; uint8_t x_23; uint8_t x_24; lean_object* x_25; x_22 = lean_unbox(x_7); x_23 = lean_unbox(x_8); x_24 = lean_unbox(x_9); -x_25 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15_spec__15(x_1, x_2, x_3, x_4, x_5, x_6, x_22, x_23, x_24, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +x_25 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14_spec__14(x_1, x_2, x_3, x_4, x_5, x_6, x_22, x_23, x_24, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); lean_dec_ref(x_10); lean_dec_ref(x_2); return x_25; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15___redArg___boxed(lean_object** _args) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14___redArg___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -11567,14 +11023,14 @@ uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; x_21 = lean_unbox(x_7); x_22 = lean_unbox(x_8); x_23 = lean_unbox(x_9); -x_24 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_21, x_22, x_23, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +x_24 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_21, x_22, x_23, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); lean_dec(x_11); lean_dec_ref(x_10); lean_dec_ref(x_2); return x_24; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15___boxed(lean_object** _args) { +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -11602,14 +11058,14 @@ uint8_t x_22; uint8_t x_23; uint8_t x_24; lean_object* x_25; x_22 = lean_unbox(x_7); x_23 = lean_unbox(x_8); x_24 = lean_unbox(x_9); -x_25 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__15(x_1, x_2, x_3, x_4, x_5, x_6, x_22, x_23, x_24, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +x_25 = l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__14(x_1, x_2, x_3, x_4, x_5, x_6, x_22, x_23, x_24, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); lean_dec(x_11); lean_dec_ref(x_10); lean_dec_ref(x_2); return x_25; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17___redArg___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__16___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { uint8_t x_10; size_t x_11; size_t x_12; lean_object* x_13; @@ -11618,11 +11074,11 @@ x_11 = lean_unbox_usize(x_2); lean_dec(x_2); x_12 = lean_unbox_usize(x_3); lean_dec(x_3); -x_13 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17___redArg(x_10, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9); +x_13 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__16___redArg(x_10, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9); return x_13; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__16___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) { _start: { uint8_t x_12; size_t x_13; size_t x_14; lean_object* x_15; @@ -11631,13 +11087,13 @@ x_13 = lean_unbox_usize(x_2); lean_dec(x_2); x_14 = lean_unbox_usize(x_3); lean_dec(x_3); -x_15 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17(x_12, x_13, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_15 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__16(x_12, x_13, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_6); lean_dec_ref(x_5); return x_15; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__18___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; @@ -11645,11 +11101,11 @@ x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__18(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___Lean_Elab_partialFixpoint_spec__17(x_4, x_5, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__19___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; @@ -11657,13 +11113,13 @@ x_5 = lean_unbox_usize(x_3); lean_dec(x_3); x_6 = lean_unbox_usize(x_4); lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__20(x_1, x_2, x_5, x_6); +x_7 = l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__19(x_1, x_2, x_5, x_6); lean_dec_ref(x_2); x_8 = lean_box(x_7); return x_8; } } -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; size_t x_7; size_t x_8; uint8_t x_9; lean_object* x_10; @@ -11672,7 +11128,7 @@ x_7 = lean_unbox_usize(x_4); lean_dec(x_4); x_8 = lean_unbox_usize(x_5); lean_dec(x_5); -x_9 = l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__21(x_1, x_6, x_3, x_7, x_8); +x_9 = l_Array_anyMUnsafe_any___at___Lean_Elab_partialFixpoint_spec__20(x_1, x_6, x_3, x_7, x_8); lean_dec_ref(x_3); x_10 = lean_box(x_9); return x_10; @@ -11712,18 +11168,19 @@ lean_object* x_20 = _args[19]; lean_object* x_21 = _args[20]; lean_object* x_22 = _args[21]; lean_object* x_23 = _args[22]; +lean_object* x_24 = _args[23]; +lean_object* x_25 = _args[24]; _start: { -size_t x_24; size_t x_25; uint8_t x_26; lean_object* x_27; -x_24 = lean_unbox_usize(x_9); +size_t x_26; uint8_t x_27; size_t x_28; lean_object* x_29; +x_26 = lean_unbox_usize(x_9); lean_dec(x_9); -x_25 = lean_unbox_usize(x_14); -lean_dec(x_14); -x_26 = lean_unbox(x_15); -x_27 = l_Lean_Elab_partialFixpoint___lam__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_24, x_10, x_11, x_12, x_13, x_25, x_26, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23); -lean_dec_ref(x_3); +x_27 = lean_unbox(x_12); +x_28 = lean_unbox_usize(x_17); +lean_dec(x_17); +x_29 = l_Lean_Elab_partialFixpoint___lam__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_26, x_10, x_11, x_27, x_13, x_14, x_15, x_16, x_28, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25); lean_dec_ref(x_1); -return x_27; +return x_29; } } LEAN_EXPORT lean_object* l_Lean_Elab_partialFixpoint___lam__4___boxed(lean_object* x_1) { @@ -11736,7 +11193,7 @@ x_3 = lean_box(x_2); return x_3; } } -static lean_object* _init_l_initFn___closed__0____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_() { +static lean_object* _init_l_initFn___closed__0____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_() { _start: { lean_object* x_1; @@ -11744,17 +11201,17 @@ x_1 = lean_mk_string_unchecked("initFn", 6, 6); return x_1; } } -static lean_object* _init_l_initFn___closed__1____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_() { +static lean_object* _init_l_initFn___closed__1____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_initFn___closed__0____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; +x_1 = l_initFn___closed__0____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; x_2 = lean_box(0); x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_initFn___closed__2____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_() { +static lean_object* _init_l_initFn___closed__2____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_() { _start: { lean_object* x_1; @@ -11762,37 +11219,37 @@ x_1 = lean_mk_string_unchecked("_@", 2, 2); return x_1; } } -static lean_object* _init_l_initFn___closed__3____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_() { +static lean_object* _init_l_initFn___closed__3____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_initFn___closed__2____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; -x_2 = l_initFn___closed__1____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; +x_1 = l_initFn___closed__2____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; +x_2 = l_initFn___closed__1____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_initFn___closed__4____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_() { +static lean_object* _init_l_initFn___closed__4____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_PreDefinition_PartialFixpoint_Main_0__Lean_Elab_mkMonoPProd___closed__2; -x_2 = l_initFn___closed__3____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; +x_2 = l_initFn___closed__3____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_initFn___closed__5____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_() { +static lean_object* _init_l_initFn___closed__5____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__7; -x_2 = l_initFn___closed__4____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; +x_2 = l_initFn___closed__4____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_initFn___closed__6____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_() { +static lean_object* _init_l_initFn___closed__6____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_() { _start: { lean_object* x_1; @@ -11800,17 +11257,17 @@ x_1 = lean_mk_string_unchecked("PreDefinition", 13, 13); return x_1; } } -static lean_object* _init_l_initFn___closed__7____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_() { +static lean_object* _init_l_initFn___closed__7____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_initFn___closed__6____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; -x_2 = l_initFn___closed__5____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; +x_1 = l_initFn___closed__6____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; +x_2 = l_initFn___closed__5____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_initFn___closed__8____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_() { +static lean_object* _init_l_initFn___closed__8____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_() { _start: { lean_object* x_1; @@ -11818,17 +11275,17 @@ x_1 = lean_mk_string_unchecked("PartialFixpoint", 15, 15); return x_1; } } -static lean_object* _init_l_initFn___closed__9____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_() { +static lean_object* _init_l_initFn___closed__9____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_initFn___closed__8____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; -x_2 = l_initFn___closed__7____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; +x_1 = l_initFn___closed__8____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; +x_2 = l_initFn___closed__7____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_initFn___closed__10____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_() { +static lean_object* _init_l_initFn___closed__10____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_() { _start: { lean_object* x_1; @@ -11836,17 +11293,17 @@ x_1 = lean_mk_string_unchecked("Main", 4, 4); return x_1; } } -static lean_object* _init_l_initFn___closed__11____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_() { +static lean_object* _init_l_initFn___closed__11____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_initFn___closed__10____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; -x_2 = l_initFn___closed__9____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; +x_1 = l_initFn___closed__10____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; +x_2 = l_initFn___closed__9____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_initFn___closed__12____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_() { +static lean_object* _init_l_initFn___closed__12____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_() { _start: { lean_object* x_1; @@ -11854,33 +11311,33 @@ x_1 = lean_mk_string_unchecked("_hyg", 4, 4); return x_1; } } -static lean_object* _init_l_initFn___closed__13____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_() { +static lean_object* _init_l_initFn___closed__13____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_initFn___closed__12____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; -x_2 = l_initFn___closed__11____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; +x_1 = l_initFn___closed__12____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; +x_2 = l_initFn___closed__11____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_initFn___closed__14____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_() { +static lean_object* _init_l_initFn___closed__14____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(3265u); -x_2 = l_initFn___closed__13____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; +x_1 = lean_unsigned_to_nat(3281u); +x_2 = l_initFn___closed__13____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; x_3 = l_Lean_Name_num___override(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_initFn____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_initFn____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__4_spec__4___redArg___lam__2___closed__10; x_3 = 0; -x_4 = l_initFn___closed__14____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_; +x_4 = l_initFn___closed__14____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -12044,28 +11501,28 @@ l_List_mapTR_loop___at___Lean_Elab_partialFixpoint_spec__6___closed__0 = _init_l lean_mark_persistent(l_List_mapTR_loop___at___Lean_Elab_partialFixpoint_spec__6___closed__0); l_List_mapTR_loop___at___Lean_Elab_partialFixpoint_spec__6___closed__1 = _init_l_List_mapTR_loop___at___Lean_Elab_partialFixpoint_spec__6___closed__1(); lean_mark_persistent(l_List_mapTR_loop___at___Lean_Elab_partialFixpoint_spec__6___closed__1); -l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___closed__0 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___closed__0(); -lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___closed__0); -l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___closed__1 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___closed__1(); -lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11_spec__11___redArg___closed__1); -l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__0 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__0(); -lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__0); -l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__1 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__1(); -lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__1); -l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__2 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__2(); -lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__2); -l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__3 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__3(); -lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__3); -l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__4 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__4(); -lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__4); -l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__5 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__5(); -lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__5); -l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__6 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__6(); -lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__6); -l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__7 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__7(); -lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__7); -l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__8 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__8(); -lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__13_spec__13___redArg___closed__8); +l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___closed__0 = _init_l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___closed__0(); +lean_mark_persistent(l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___closed__0); +l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___closed__1 = _init_l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___closed__1(); +lean_mark_persistent(l_Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__11___redArg___closed__1); +l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__0 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__0(); +lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__0); +l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__1 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__1(); +lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__1); +l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__2 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__2(); +lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__2); +l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__3 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__3(); +lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__3); +l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__4 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__4(); +lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__4); +l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__5 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__5(); +lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__5); +l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__6 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__6(); +lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__6); +l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__7 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__7(); +lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__7); +l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__8 = _init_l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__8(); +lean_mark_persistent(l_Array_mapFinIdxM_map___at___Array_mapFinIdxM_map___at___Lean_Elab_partialFixpoint_spec__12_spec__12___redArg___closed__8); l_Lean_Elab_partialFixpoint___lam__1___closed__0 = _init_l_Lean_Elab_partialFixpoint___lam__1___closed__0(); lean_mark_persistent(l_Lean_Elab_partialFixpoint___lam__1___closed__0); l_Lean_Elab_partialFixpoint___lam__1___closed__1 = _init_l_Lean_Elab_partialFixpoint___lam__1___closed__1(); @@ -12120,6 +11577,10 @@ l_Lean_Elab_partialFixpoint___lam__3___closed__4 = _init_l_Lean_Elab_partialFixp lean_mark_persistent(l_Lean_Elab_partialFixpoint___lam__3___closed__4); l_Lean_Elab_partialFixpoint___lam__3___closed__5 = _init_l_Lean_Elab_partialFixpoint___lam__3___closed__5(); lean_mark_persistent(l_Lean_Elab_partialFixpoint___lam__3___closed__5); +l_Lean_Elab_partialFixpoint___lam__3___closed__6 = _init_l_Lean_Elab_partialFixpoint___lam__3___closed__6(); +lean_mark_persistent(l_Lean_Elab_partialFixpoint___lam__3___closed__6); +l_Lean_Elab_partialFixpoint___lam__3___closed__7 = _init_l_Lean_Elab_partialFixpoint___lam__3___closed__7(); +lean_mark_persistent(l_Lean_Elab_partialFixpoint___lam__3___closed__7); l_Lean_Elab_partialFixpoint___closed__0 = _init_l_Lean_Elab_partialFixpoint___closed__0(); lean_mark_persistent(l_Lean_Elab_partialFixpoint___closed__0); l_Lean_Elab_partialFixpoint___closed__1 = _init_l_Lean_Elab_partialFixpoint___closed__1(); @@ -12130,37 +11591,37 @@ l_Lean_Elab_partialFixpoint___closed__3 = _init_l_Lean_Elab_partialFixpoint___cl lean_mark_persistent(l_Lean_Elab_partialFixpoint___closed__3); l_Lean_Elab_partialFixpoint___boxed__const__1 = _init_l_Lean_Elab_partialFixpoint___boxed__const__1(); lean_mark_persistent(l_Lean_Elab_partialFixpoint___boxed__const__1); -l_initFn___closed__0____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_ = _init_l_initFn___closed__0____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(); -lean_mark_persistent(l_initFn___closed__0____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_); -l_initFn___closed__1____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_ = _init_l_initFn___closed__1____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(); -lean_mark_persistent(l_initFn___closed__1____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_); -l_initFn___closed__2____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_ = _init_l_initFn___closed__2____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(); -lean_mark_persistent(l_initFn___closed__2____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_); -l_initFn___closed__3____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_ = _init_l_initFn___closed__3____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(); -lean_mark_persistent(l_initFn___closed__3____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_); -l_initFn___closed__4____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_ = _init_l_initFn___closed__4____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(); -lean_mark_persistent(l_initFn___closed__4____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_); -l_initFn___closed__5____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_ = _init_l_initFn___closed__5____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(); -lean_mark_persistent(l_initFn___closed__5____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_); -l_initFn___closed__6____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_ = _init_l_initFn___closed__6____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(); -lean_mark_persistent(l_initFn___closed__6____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_); -l_initFn___closed__7____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_ = _init_l_initFn___closed__7____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(); -lean_mark_persistent(l_initFn___closed__7____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_); -l_initFn___closed__8____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_ = _init_l_initFn___closed__8____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(); -lean_mark_persistent(l_initFn___closed__8____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_); -l_initFn___closed__9____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_ = _init_l_initFn___closed__9____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(); -lean_mark_persistent(l_initFn___closed__9____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_); -l_initFn___closed__10____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_ = _init_l_initFn___closed__10____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(); -lean_mark_persistent(l_initFn___closed__10____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_); -l_initFn___closed__11____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_ = _init_l_initFn___closed__11____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(); -lean_mark_persistent(l_initFn___closed__11____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_); -l_initFn___closed__12____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_ = _init_l_initFn___closed__12____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(); -lean_mark_persistent(l_initFn___closed__12____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_); -l_initFn___closed__13____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_ = _init_l_initFn___closed__13____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(); -lean_mark_persistent(l_initFn___closed__13____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_); -l_initFn___closed__14____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_ = _init_l_initFn___closed__14____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(); -lean_mark_persistent(l_initFn___closed__14____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_); -if (builtin) {res = l_initFn____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3265_(lean_io_mk_world()); +l_initFn___closed__0____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_ = _init_l_initFn___closed__0____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(); +lean_mark_persistent(l_initFn___closed__0____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_); +l_initFn___closed__1____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_ = _init_l_initFn___closed__1____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(); +lean_mark_persistent(l_initFn___closed__1____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_); +l_initFn___closed__2____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_ = _init_l_initFn___closed__2____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(); +lean_mark_persistent(l_initFn___closed__2____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_); +l_initFn___closed__3____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_ = _init_l_initFn___closed__3____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(); +lean_mark_persistent(l_initFn___closed__3____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_); +l_initFn___closed__4____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_ = _init_l_initFn___closed__4____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(); +lean_mark_persistent(l_initFn___closed__4____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_); +l_initFn___closed__5____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_ = _init_l_initFn___closed__5____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(); +lean_mark_persistent(l_initFn___closed__5____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_); +l_initFn___closed__6____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_ = _init_l_initFn___closed__6____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(); +lean_mark_persistent(l_initFn___closed__6____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_); +l_initFn___closed__7____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_ = _init_l_initFn___closed__7____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(); +lean_mark_persistent(l_initFn___closed__7____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_); +l_initFn___closed__8____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_ = _init_l_initFn___closed__8____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(); +lean_mark_persistent(l_initFn___closed__8____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_); +l_initFn___closed__9____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_ = _init_l_initFn___closed__9____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(); +lean_mark_persistent(l_initFn___closed__9____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_); +l_initFn___closed__10____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_ = _init_l_initFn___closed__10____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(); +lean_mark_persistent(l_initFn___closed__10____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_); +l_initFn___closed__11____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_ = _init_l_initFn___closed__11____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(); +lean_mark_persistent(l_initFn___closed__11____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_); +l_initFn___closed__12____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_ = _init_l_initFn___closed__12____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(); +lean_mark_persistent(l_initFn___closed__12____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_); +l_initFn___closed__13____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_ = _init_l_initFn___closed__13____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(); +lean_mark_persistent(l_initFn___closed__13____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_); +l_initFn___closed__14____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_ = _init_l_initFn___closed__14____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(); +lean_mark_persistent(l_initFn___closed__14____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_); +if (builtin) {res = l_initFn____x40_Lean_Elab_PreDefinition_PartialFixpoint_Main___hyg_3281_(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)); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c index ac09a0760f..2f50fbd2a2 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c @@ -264,7 +264,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at_____private_Lean_Elab_ static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lam__0___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_WF_groupGoalsByFunction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps(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_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at___Lean_Elab_WF_solveDecreasingGoals_spec__1_spec__1___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___lam__0___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_mapLetDecl___at_____private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loopGo_spec__9(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -15734,7 +15734,7 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Elab_WF_solveDecreasingGoals(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; x_10 = l_Lean_Elab_WF_solveDecreasingGoals___closed__0; x_11 = l_Lean_Elab_WF_solveDecreasingGoals___closed__1; x_12 = lean_alloc_closure((void*)(l_Lean_Elab_WF_solveDecreasingGoals___lam__0___boxed), 13, 8); @@ -15746,8 +15746,9 @@ lean_closure_set(x_12, 4, x_11); lean_closure_set(x_12, 5, x_10); lean_closure_set(x_12, 6, x_11); lean_closure_set(x_12, 7, x_10); -x_13 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_12, x_5, x_6, x_7, x_8, x_9); -return x_13; +x_13 = 1; +x_14 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_12, x_13, x_5, x_6, x_7, x_8, x_9); +return x_14; } } LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_WF_solveDecreasingGoals_spec__0___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) { diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index b48b89df83..a0e773893d 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -87,7 +87,6 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsa LEAN_EXPORT lean_object* l_Array_zipWithAux___at___Lean_Elab_Term_StructInst_expandStructInstFields_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Structure_0__Lean_setStructureResolutionOrder___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_initializeState_spec__0_spec__0_spec__9___redArg___lam__0(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__2____x40_Lean_Elab_StructInst___hyg_22547_; static lean_object* l_Lean_Elab_Term_StructInst_elabStructInst___closed__1; static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandFields___closed__0; static lean_object* l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_synthOptParamFields_spec__18_spec__18___closed__0; @@ -102,7 +101,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_Stru LEAN_EXPORT lean_object* l_Array_filterMapM___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_synthOptParamFields_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandFields___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_throwUnexpectedExpectedType___closed__0; -static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__6____x40_Lean_Elab_StructInst___hyg_22547_; lean_object* l_Lean_Syntax_getHeadInfo(lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); @@ -140,6 +138,7 @@ static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructIns static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView___closed__0; static lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandFields_spec__1___closed__3; lean_object* l_panic___at___Lean_Meta_congrArg_x3f_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__12____x40_Lean_Elab_StructInst___hyg_22553_; uint8_t l_Lean_Expr_isApp(lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); static lean_object* l_Lean_Elab_Term_StructInst_instToMessageDataExpandedFieldVal___lam__2___closed__14; @@ -149,7 +148,6 @@ lean_object* l_Lean_Syntax_getId(lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_initializeState_spec__0_spec__0_spec__0_spec__1_spec__3_spec__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructInstField___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__4____x40_Lean_Elab_StructInst___hyg_22547_; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandFields_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isLocalIdent_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_processField___redArg___closed__11; @@ -209,7 +207,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_Stru lean_object* lean_mk_array(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_StructInst_elabStructInst___closed__0; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandFields_spec__2_spec__2(uint8_t, lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__1____x40_Lean_Elab_StructInst___hyg_22547_; LEAN_EXPORT lean_object* l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_proj___override(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSources___lam__0(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -225,7 +222,6 @@ lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_____private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit_spec__2___redArg(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_instantiateStructDefaultValueFn_x3f___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldDefaultValue_x3f_spec__0_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_instantiateStructDefaultValueFn_x3f___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldDefaultValue_x3f_spec__0___closed__1; -static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__12____x40_Lean_Elab_StructInst___hyg_22547_; static lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandFields_spec__2_spec__2___closed__0; uint8_t l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_spec__2_spec__2_spec__3_spec__4_spec__5(lean_object*, uint8_t, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_formatStruct_spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -275,6 +271,7 @@ uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transformWithCache_visit_visitLet___at___Lean_Meta_transformWithCache_visit___at___Lean_Meta_transform___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_reduceFieldProjs_spec__2_spec__2_spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_cleanupAnnotations(lean_object*); +static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__3____x40_Lean_Elab_StructInst___hyg_22553_; uint8_t l_List_isEmpty___redArg(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l_Array_filterMapM___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_synthOptParamFields_spec__1___redArg___closed__0; @@ -308,7 +305,9 @@ LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___Lean_mergeStructureResolu LEAN_EXPORT lean_object* l_Lean_Meta_transformWithCache_visit_visitPost___at___Lean_Meta_transformWithCache_visit___at___Lean_Meta_transform___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_reduceFieldProjs_spec__2_spec__2_spec__3(lean_object*, lean_object*, uint8_t, uint8_t, 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___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructInstField___closed__7; LEAN_EXPORT lean_object* l_Lean_getProjectionFnInfo_x3f___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_reduceFieldProjs_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__13____x40_Lean_Elab_StructInst___hyg_22553_; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_initializeState_spec__0_spec__0_spec__0_spec__1_spec__1___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__1____x40_Lean_Elab_StructInst___hyg_22553_; static lean_object* l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___closed__0; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_synthOptParamFields_spec__4___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_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_synthOptParamFields_spec__4_spec__4___closed__8; @@ -378,6 +377,7 @@ LEAN_EXPORT lean_object* l_panic___at_____private_Lean_Elab_StructInst_0__Lean_E LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_initializeState_spec__0_spec__0_spec__0_spec__1_spec__1___boxed(lean_object**); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addParentInstanceFields_spec__6_spec__6___boxed(lean_object**); lean_object* l_Lean_getPathToBaseStructure_x3f(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__11____x40_Lean_Elab_StructInst___hyg_22553_; LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSources_go___lam__0___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___private_Lean_Structure_0__Lean_setStructureResolutionOrder___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_initializeState_spec__0_spec__0_spec__9___redArg___closed__2; static lean_object* l_Lean_Meta_transform___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_reduceFieldProjs_spec__2___closed__4; @@ -386,7 +386,6 @@ size_t lean_usize_of_nat(lean_object*); static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_formatStruct___closed__1; lean_object* l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isSubobjectField_x3f(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__3____x40_Lean_Elab_StructInst___hyg_22547_; static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__23; static lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_synthOptParamFields_spec__16___closed__0; lean_object* l_Array_mkArray1___redArg(lean_object*); @@ -438,6 +437,7 @@ LEAN_EXPORT lean_object* l_Array_filterMapM___at_____private_Lean_Elab_StructIns lean_object* l_Lean_Syntax_isFieldIdx_x3f(lean_object*); LEAN_EXPORT lean_object* l_List_foldl___at___Std_Format_joinSep___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_formatField_spec__0_spec__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transformWithCache_visit_visitForall___at___Lean_Meta_transformWithCache_visit___at___Lean_Meta_transform___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_reduceFieldProjs_spec__2_spec__2_spec__8(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_StructInst_initFn____x40_Lean_Elab_StructInst___hyg_22553_(lean_object*); uint64_t lean_uint64_shift_right(uint64_t, uint64_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_instMonadBacktrackSavedStateStructInstM___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t); @@ -532,6 +532,7 @@ static lean_object* l_Lean_Elab_logException___at_____private_Lean_Elab_StructIn LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___Lean_Meta_transformWithCache_visit_visitLambda___at___Lean_Meta_transformWithCache_visit___at___Lean_Meta_transform___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_reduceFieldProjs_spec__2_spec__2_spec__6_spec__6___redArg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___regBuiltin_Lean_Elab_Term_StructInst_expandStructInstExpectedType__1___closed__5; static lean_object* l_Lean_addTrace___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addStructFieldAux_spec__1___redArg___closed__1; +static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__5____x40_Lean_Elab_StructInst___hyg_22553_; lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp___redArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_insert___at___Lean_assignExp_spec__0___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addParentInstanceFields_spec__6_spec__6___closed__6; @@ -557,6 +558,7 @@ static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructIns LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addStructField_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instInhabitedForall___redArg___lam__0___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__13; +static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__10____x40_Lean_Elab_StructInst___hyg_22553_; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_reduceSelfProjs(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___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addStructFieldAux___closed__1; @@ -622,7 +624,6 @@ LEAN_EXPORT lean_object* l_Lean_logAt___at___Lean_log___at___Lean_logError___at_ LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_reduceSelfProjs___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_spec__0_spec__0___closed__2; uint64_t l_Lean_Expr_hash(lean_object*); -static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__5____x40_Lean_Elab_StructInst___hyg_22547_; static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_synthOptParamFields___lam__0___closed__0; uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_Term_StructInst_expandStructInstFields_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -652,7 +653,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_StructInst_instToMessageDataExpandedFi lean_object* l_Lean_Elab_Term_expandMatchAltsIntoMatch(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_StructInst_instToMessageDataExpandedFieldVal___lam__2___closed__16; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStructInstField_spec__0___redArg(size_t, size_t, lean_object*); -static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__8____x40_Lean_Elab_StructInst___hyg_22547_; LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_saveState___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Structure_0__Lean_setStructureResolutionOrder___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_initializeState_spec__0_spec__0_spec__9___redArg___closed__8; static lean_object* l_Lean_Elab_Term_StructInst_instInhabitedStructInstState___closed__1; @@ -713,6 +713,7 @@ static lean_object* l_Lean_Elab_Term_StructInst_elabStructInst___regBuiltin_Lean static lean_object* l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_synthOptParamFields_spec__18_spec__18___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkSourcesWithSyntax(lean_object*); uint8_t l_Lean_Syntax_isIdent(lean_object*); +static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__7____x40_Lean_Elab_StructInst___hyg_22553_; lean_object* l_Array_mapMUnsafe_map___redArg(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_List_foldl___at___Std_Format_joinSep___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_formatField_spec__0_spec__0___lam__0___boxed(lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_initializeState_spec__0_spec__0_spec__0_spec__1_spec__1_spec__1___boxed(lean_object**); @@ -744,7 +745,6 @@ static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructIns LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_FieldLHS_toSyntax(uint8_t, lean_object*); LEAN_EXPORT uint8_t l_List_foldl___at___Std_Format_joinSep___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_formatField_spec__0_spec__0___lam__0(lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSources_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__11____x40_Lean_Elab_StructInst___hyg_22547_; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_instantiateStructDefaultValueFn_x3f___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldDefaultValue_x3f_spec__0_spec__5___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___Lean_Meta_transformWithCache_visit_visitLambda___at___Lean_Meta_transformWithCache_visit___at___Lean_Meta_transform___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_reduceFieldProjs_spec__2_spec__2_spec__6_spec__6___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getEffectiveDefaultFnForField_x3f(lean_object*, lean_object*, lean_object*); @@ -786,6 +786,7 @@ uint8_t l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_select static lean_object* l_panic___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_reduceFieldProjs_spec__0___closed__6; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_instantiateStructDefaultValueFn_x3f___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldDefaultValue_x3f_spec__0_spec__3___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_StructInst_instToMessageDataExpandedFieldVal___lam__0(lean_object*); +static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__9____x40_Lean_Elab_StructInst___hyg_22553_; LEAN_EXPORT lean_object* l_Lean_addTrace___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addStructFieldAux_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandFields_spec__2_spec__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*); static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__22; @@ -816,7 +817,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_StructInst_instToMessageDataExpandedFi static lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_synthOptParamFields_spec__1_spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_initializeState_spec__0_spec__0_spec__0_spec__6_spec__6___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__9____x40_Lean_Elab_StructInst___hyg_22547_; static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_formatStruct___closed__9; lean_object* l_List_getLast_x3f___redArg(lean_object*); static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructInstField___closed__9; @@ -952,6 +952,7 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___a static lean_object* l_Lean_Elab_Term_StructInst_instToFormatFieldLHS___lam__2___closed__1; lean_object* l_Lean_Meta_instInhabitedMetaM___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_spec__2_spec__2_spec__3_spec__19(lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__0____x40_Lean_Elab_StructInst___hyg_22553_; static lean_object* l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_reduceSelfProjs_replaceParentProj___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_xor(uint64_t, uint64_t); @@ -961,11 +962,13 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___Lean_Meta_withLocalDec LEAN_EXPORT lean_object* l_Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_initializeState_spec__0_spec__0_spec__0___lam__0___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_StructInst_instInhabitedSourcesView; uint8_t l_Lean_Syntax_isNone(lean_object*); +static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__6____x40_Lean_Elab_StructInst___hyg_22553_; lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_StructInst_instToFormatFieldLHS___lam__2___closed__3; static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_normalizeField___closed__7; static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__17; lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_Term_Quotation_withNewLocals_spec__0(lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__2____x40_Lean_Elab_StructInst___hyg_22553_; LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_processField(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transformWithCache_visit_visitLet___at___Lean_Meta_transformWithCache_visit___at___Lean_Meta_transform___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_reduceFieldProjs_spec__2_spec__2_spec__9(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_synthOptParamFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1004,7 +1007,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_Stru static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_finalize___lam__0___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructName_throwUnknownExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static double l_Lean_addTrace___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addStructFieldAux_spec__1___redArg___closed__0; -static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__7____x40_Lean_Elab_StructInst___hyg_22547_; LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStructInstField___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_nextPowerOfTwo(lean_object*); @@ -1124,13 +1126,11 @@ lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean static lean_object* l_Lean_logAt___at___Lean_log___at___Lean_logError___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldDefaultValue_x3f_spec__7_spec__7_spec__7___redArg___lam__0___closed__3; static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__0; lean_object* l_Lean_Core_instMonadCoreM___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__0____x40_Lean_Elab_StructInst___hyg_22547_; LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_zetaDeltaImplDetailsInProps___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_eraseReps___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_spec__2_spec__2_spec__3_spec__16(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___regBuiltin_Lean_Elab_Term_StructInst_expandStructInstExpectedType_docString__3(lean_object*); lean_object* l_Lean_RBNode_insert___at___Lean_FVarIdSet_insert_spec__0___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_synthOptParamFields_spec__18___boxed(lean_object**); -static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__10____x40_Lean_Elab_StructInst___hyg_22547_; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_processField_spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_FieldView_toSyntax(lean_object*); @@ -1208,6 +1208,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_Stru LEAN_EXPORT lean_object* l_List_mapM_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___closed__3; lean_object* l_Lean_Elab_Term_SavedState_restore(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__4____x40_Lean_Elab_StructInst___hyg_22553_; lean_object* l_Lean_Meta_mkConstWithFreshMVarLevels(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_finalize___lam__0___closed__1; static lean_object* l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_synthOptParamFields_spec__18_spec__18___closed__2; @@ -1216,7 +1217,6 @@ lean_object* l_Lean_Expr_mvarId_x21(lean_object*); uint8_t lean_is_class(lean_object*, lean_object*); static lean_object* l_Std_Format_joinSep___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_formatField_spec__0___closed__0; static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_formatStruct___closed__7; -static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__13____x40_Lean_Elab_StructInst___hyg_22547_; LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_reduceFieldProjs___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_reduceFieldProjs___lam__0___closed__0; lean_object* l_String_toSubstring_x27(lean_object*); @@ -1243,7 +1243,6 @@ lean_object* l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Me static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_formatField___closed__0; static lean_object* l_Lean_logAt___at___Lean_log___at___Lean_logError___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldDefaultValue_x3f_spec__7_spec__7_spec__7___redArg___lam__0___closed__1; static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_loop___lam__0___closed__3; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_StructInst_initFn____x40_Lean_Elab_StructInst___hyg_22547_(lean_object*); LEAN_EXPORT lean_object* l_Lean_getProjectionFnInfo_x3f___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_reduceFieldProjs_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___regBuiltin_Lean_Elab_Term_StructInst_expandStructInstExpectedType_declRange__5___closed__5; LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isFieldNotSolved_x3f_spec__0___redArg(lean_object*, lean_object*, lean_object*); @@ -1255,6 +1254,7 @@ static lean_object* l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___c static lean_object* l_Lean_Elab_Term_StructInst_instToMessageDataExpandedFieldVal___lam__2___closed__22; static lean_object* l_List_foldlM___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getParentStructType_x3f_spec__1___closed__1; lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_StructInst_initFn___closed__8____x40_Lean_Elab_StructInst___hyg_22553_; LEAN_EXPORT lean_object* l_Array_finIdxOf_x3f___at___Array_erase___at___Lean_getAllParentStructures___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addParentInstanceFields_spec__1_spec__1_spec__1(lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); static lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_synthOptParamFields_spec__8_spec__8___closed__1; @@ -60771,7 +60771,6 @@ lean_dec(x_66); lean_dec(x_62); lean_ctor_set(x_8, 5, x_71); x_72 = l_Lean_isPrivateNameFromImportedModule(x_67, x_70); -lean_dec_ref(x_67); if (x_72 == 0) { lean_object* x_73; @@ -60847,13 +60846,13 @@ lean_free_object(x_88); x_96 = lean_ctor_get(x_93, 1); lean_inc(x_96); lean_dec_ref(x_93); -x_41 = x_87; -x_42 = x_76; -x_43 = x_90; -x_44 = x_79; -x_45 = x_77; +x_41 = x_79; +x_42 = x_77; +x_43 = x_76; +x_44 = x_78; +x_45 = x_87; x_46 = x_80; -x_47 = x_78; +x_47 = x_90; x_48 = x_4; x_49 = x_5; x_50 = x_6; @@ -60890,13 +60889,13 @@ x_107 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_9 x_108 = lean_ctor_get(x_107, 1); lean_inc(x_108); lean_dec_ref(x_107); -x_41 = x_87; -x_42 = x_76; -x_43 = x_90; -x_44 = x_79; -x_45 = x_77; +x_41 = x_79; +x_42 = x_77; +x_43 = x_76; +x_44 = x_78; +x_45 = x_87; x_46 = x_80; -x_47 = x_78; +x_47 = x_90; x_48 = x_4; x_49 = x_5; x_50 = x_6; @@ -60929,13 +60928,13 @@ x_118 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_9 x_119 = lean_ctor_get(x_118, 1); lean_inc(x_119); lean_dec_ref(x_118); -x_41 = x_87; -x_42 = x_76; -x_43 = x_90; -x_44 = x_79; -x_45 = x_77; +x_41 = x_79; +x_42 = x_77; +x_43 = x_76; +x_44 = x_78; +x_45 = x_87; x_46 = x_80; -x_47 = x_78; +x_47 = x_90; x_48 = x_4; x_49 = x_5; x_50 = x_6; @@ -60967,13 +60966,13 @@ lean_object* x_126; x_126 = lean_ctor_get(x_123, 1); lean_inc(x_126); lean_dec_ref(x_123); -x_41 = x_87; -x_42 = x_76; -x_43 = x_120; -x_44 = x_79; -x_45 = x_77; +x_41 = x_79; +x_42 = x_77; +x_43 = x_76; +x_44 = x_78; +x_45 = x_87; x_46 = x_80; -x_47 = x_78; +x_47 = x_120; x_48 = x_4; x_49 = x_5; x_50 = x_6; @@ -61018,13 +61017,13 @@ x_138 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_1 x_139 = lean_ctor_get(x_138, 1); lean_inc(x_139); lean_dec_ref(x_138); -x_41 = x_87; -x_42 = x_76; -x_43 = x_120; -x_44 = x_79; -x_45 = x_77; +x_41 = x_79; +x_42 = x_77; +x_43 = x_76; +x_44 = x_78; +x_45 = x_87; x_46 = x_80; -x_47 = x_78; +x_47 = x_120; x_48 = x_4; x_49 = x_5; x_50 = x_6; @@ -61108,67 +61107,69 @@ return x_147; } else { -lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; uint8_t x_153; +lean_object* x_148; uint8_t x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; uint8_t x_154; lean_dec_ref(x_68); lean_dec_ref(x_64); lean_dec_ref(x_63); lean_dec(x_3); lean_dec_ref(x_1); x_148 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView___closed__3; -x_149 = l_Lean_MessageData_ofName(x_2); +x_149 = 0; +x_150 = l_Lean_MessageData_ofConstName(x_2, x_149); lean_ctor_set_tag(x_58, 7); -lean_ctor_set(x_58, 1, x_149); +lean_ctor_set(x_58, 1, x_150); lean_ctor_set(x_58, 0, x_148); -x_150 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView___closed__5; -x_151 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_151, 0, x_58); -lean_ctor_set(x_151, 1, x_150); -x_152 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_151, x_4, x_5, x_6, x_7, x_8, x_9, x_61); +x_151 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView___closed__5; +x_152 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_152, 0, x_58); +lean_ctor_set(x_152, 1, x_151); +x_153 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_152, x_4, x_5, x_6, x_7, x_8, x_9, x_61); lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_7); lean_dec_ref(x_6); lean_dec(x_5); -x_153 = !lean_is_exclusive(x_152); -if (x_153 == 0) +x_154 = !lean_is_exclusive(x_153); +if (x_154 == 0) { -return x_152; +return x_153; } else { -lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_154 = lean_ctor_get(x_152, 0); -x_155 = lean_ctor_get(x_152, 1); +lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_155 = lean_ctor_get(x_153, 0); +x_156 = lean_ctor_get(x_153, 1); +lean_inc(x_156); lean_inc(x_155); -lean_inc(x_154); -lean_dec(x_152); -x_156 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_156, 0, x_154); -lean_ctor_set(x_156, 1, x_155); -return x_156; +lean_dec(x_153); +x_157 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_157, 0, x_155); +lean_ctor_set(x_157, 1, x_156); +return x_157; } } } else { -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; uint8_t x_168; lean_object* x_169; uint8_t 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; uint8_t x_178; -x_157 = lean_ctor_get(x_8, 0); -x_158 = lean_ctor_get(x_8, 1); -x_159 = lean_ctor_get(x_8, 2); -x_160 = lean_ctor_get(x_8, 3); -x_161 = lean_ctor_get(x_8, 4); -x_162 = lean_ctor_get(x_8, 5); -x_163 = lean_ctor_get(x_8, 6); -x_164 = lean_ctor_get(x_8, 7); -x_165 = lean_ctor_get(x_8, 8); -x_166 = lean_ctor_get(x_8, 9); -x_167 = lean_ctor_get(x_8, 10); -x_168 = lean_ctor_get_uint8(x_8, sizeof(void*)*13); -x_169 = lean_ctor_get(x_8, 11); -x_170 = lean_ctor_get_uint8(x_8, sizeof(void*)*13 + 1); -x_171 = lean_ctor_get(x_8, 12); -lean_inc(x_171); -lean_inc(x_169); +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; uint8_t x_169; lean_object* x_170; uint8_t 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; uint8_t x_179; +x_158 = lean_ctor_get(x_8, 0); +x_159 = lean_ctor_get(x_8, 1); +x_160 = lean_ctor_get(x_8, 2); +x_161 = lean_ctor_get(x_8, 3); +x_162 = lean_ctor_get(x_8, 4); +x_163 = lean_ctor_get(x_8, 5); +x_164 = lean_ctor_get(x_8, 6); +x_165 = lean_ctor_get(x_8, 7); +x_166 = lean_ctor_get(x_8, 8); +x_167 = lean_ctor_get(x_8, 9); +x_168 = lean_ctor_get(x_8, 10); +x_169 = lean_ctor_get_uint8(x_8, sizeof(void*)*13); +x_170 = lean_ctor_get(x_8, 11); +x_171 = lean_ctor_get_uint8(x_8, sizeof(void*)*13 + 1); +x_172 = lean_ctor_get(x_8, 12); +lean_inc(x_172); +lean_inc(x_170); +lean_inc(x_168); lean_inc(x_167); lean_inc(x_166); lean_inc(x_165); @@ -61179,203 +61180,201 @@ lean_inc(x_161); lean_inc(x_160); lean_inc(x_159); lean_inc(x_158); -lean_inc(x_157); lean_dec(x_8); -x_172 = lean_ctor_get(x_60, 0); -lean_inc_ref(x_172); +x_173 = lean_ctor_get(x_60, 0); +lean_inc_ref(x_173); lean_dec(x_60); lean_inc(x_2); -lean_inc_ref(x_172); -x_173 = l_Lean_getStructureCtor(x_172, x_2); -x_174 = lean_ctor_get(x_173, 0); -lean_inc_ref(x_174); +lean_inc_ref(x_173); +x_174 = l_Lean_getStructureCtor(x_173, x_2); x_175 = lean_ctor_get(x_174, 0); -lean_inc(x_175); -lean_dec_ref(x_174); -x_176 = l_Lean_replaceRef(x_62, x_162); -lean_dec(x_162); +lean_inc_ref(x_175); +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +lean_dec_ref(x_175); +x_177 = l_Lean_replaceRef(x_62, x_163); +lean_dec(x_163); lean_dec(x_62); -x_177 = lean_alloc_ctor(0, 13, 2); -lean_ctor_set(x_177, 0, x_157); -lean_ctor_set(x_177, 1, x_158); -lean_ctor_set(x_177, 2, x_159); -lean_ctor_set(x_177, 3, x_160); -lean_ctor_set(x_177, 4, x_161); -lean_ctor_set(x_177, 5, x_176); -lean_ctor_set(x_177, 6, x_163); -lean_ctor_set(x_177, 7, x_164); -lean_ctor_set(x_177, 8, x_165); -lean_ctor_set(x_177, 9, x_166); -lean_ctor_set(x_177, 10, x_167); -lean_ctor_set(x_177, 11, x_169); -lean_ctor_set(x_177, 12, x_171); -lean_ctor_set_uint8(x_177, sizeof(void*)*13, x_168); -lean_ctor_set_uint8(x_177, sizeof(void*)*13 + 1, x_170); -x_178 = l_Lean_isPrivateNameFromImportedModule(x_172, x_175); -lean_dec_ref(x_172); -if (x_178 == 0) +x_178 = lean_alloc_ctor(0, 13, 2); +lean_ctor_set(x_178, 0, x_158); +lean_ctor_set(x_178, 1, x_159); +lean_ctor_set(x_178, 2, x_160); +lean_ctor_set(x_178, 3, x_161); +lean_ctor_set(x_178, 4, x_162); +lean_ctor_set(x_178, 5, x_177); +lean_ctor_set(x_178, 6, x_164); +lean_ctor_set(x_178, 7, x_165); +lean_ctor_set(x_178, 8, x_166); +lean_ctor_set(x_178, 9, x_167); +lean_ctor_set(x_178, 10, x_168); +lean_ctor_set(x_178, 11, x_170); +lean_ctor_set(x_178, 12, x_172); +lean_ctor_set_uint8(x_178, sizeof(void*)*13, x_169); +lean_ctor_set_uint8(x_178, sizeof(void*)*13 + 1, x_171); +x_179 = l_Lean_isPrivateNameFromImportedModule(x_173, x_176); +if (x_179 == 0) { -lean_object* x_179; +lean_object* x_180; lean_free_object(x_58); lean_inc(x_9); -lean_inc_ref(x_177); +lean_inc_ref(x_178); lean_inc(x_7); lean_inc_ref(x_6); lean_inc_ref(x_4); -x_179 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader(x_173, x_3, x_4, x_5, x_6, x_7, x_177, x_9, x_61); -if (lean_obj_tag(x_179) == 0) +x_180 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader(x_174, x_3, x_4, x_5, x_6, x_7, x_178, x_9, x_61); +if (lean_obj_tag(x_180) == 0) { -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; uint8_t x_187; lean_object* x_188; -x_180 = lean_ctor_get(x_179, 0); -lean_inc(x_180); -x_181 = lean_ctor_get(x_179, 1); +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; uint8_t x_188; lean_object* x_189; +x_181 = lean_ctor_get(x_180, 0); lean_inc(x_181); -lean_dec_ref(x_179); -x_182 = lean_ctor_get(x_180, 0); -lean_inc_ref(x_182); -x_183 = lean_ctor_get(x_180, 1); +x_182 = lean_ctor_get(x_180, 1); +lean_inc(x_182); +lean_dec_ref(x_180); +x_183 = lean_ctor_get(x_181, 0); lean_inc_ref(x_183); -x_184 = lean_ctor_get(x_180, 2); +x_184 = lean_ctor_get(x_181, 1); lean_inc_ref(x_184); -x_185 = lean_ctor_get(x_180, 3); -lean_inc(x_185); -x_186 = lean_ctor_get(x_180, 4); -lean_inc_ref(x_186); -lean_dec(x_180); -x_187 = lean_ctor_get_uint8(x_4, sizeof(void*)*7 + 1); +x_185 = lean_ctor_get(x_181, 2); +lean_inc_ref(x_185); +x_186 = lean_ctor_get(x_181, 3); +lean_inc(x_186); +x_187 = lean_ctor_get(x_181, 4); +lean_inc_ref(x_187); +lean_dec(x_181); +x_188 = lean_ctor_get_uint8(x_4, sizeof(void*)*7 + 1); lean_inc(x_9); -lean_inc_ref(x_177); +lean_inc_ref(x_178); lean_inc(x_7); lean_inc_ref(x_6); lean_inc(x_2); -x_188 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandFields(x_2, x_63, x_187, x_6, x_7, x_177, x_9, x_181); +x_189 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandFields(x_2, x_63, x_188, x_6, x_7, x_178, x_9, x_182); lean_dec_ref(x_63); -if (lean_obj_tag(x_188) == 0) +if (lean_obj_tag(x_189) == 0) { -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; uint8_t x_201; -x_189 = lean_ctor_get(x_188, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_188, 1); +lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; uint8_t x_202; +x_190 = lean_ctor_get(x_189, 0); lean_inc(x_190); -lean_dec_ref(x_188); x_191 = lean_ctor_get(x_189, 1); lean_inc(x_191); -lean_dec(x_189); -x_192 = lean_ctor_get(x_64, 0); -lean_inc_ref(x_192); -x_193 = lean_ctor_get(x_64, 1); -lean_inc(x_193); +lean_dec_ref(x_189); +x_192 = lean_ctor_get(x_190, 1); +lean_inc(x_192); +lean_dec(x_190); +x_193 = lean_ctor_get(x_64, 0); +lean_inc_ref(x_193); +x_194 = lean_ctor_get(x_64, 1); +lean_inc(x_194); lean_dec_ref(x_64); lean_inc(x_2); -x_194 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addSourceFields(x_2, x_192, x_191, x_6, x_7, x_177, x_9, x_190); -lean_dec_ref(x_192); -x_195 = lean_ctor_get(x_194, 0); -lean_inc(x_195); -x_196 = lean_ctor_get(x_194, 1); +x_195 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addSourceFields(x_2, x_193, x_192, x_6, x_7, x_178, x_9, x_191); +lean_dec_ref(x_193); +x_196 = lean_ctor_get(x_195, 0); lean_inc(x_196); -if (lean_is_exclusive(x_194)) { - lean_ctor_release(x_194, 0); - lean_ctor_release(x_194, 1); - x_197 = x_194; +x_197 = lean_ctor_get(x_195, 1); +lean_inc(x_197); +if (lean_is_exclusive(x_195)) { + lean_ctor_release(x_195, 0); + lean_ctor_release(x_195, 1); + x_198 = x_195; } else { - lean_dec_ref(x_194); - x_197 = lean_box(0); + lean_dec_ref(x_195); + x_198 = lean_box(0); } -x_198 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addStructFieldAux___closed__1; -x_199 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_198, x_177, x_196); -x_200 = lean_ctor_get(x_199, 0); -lean_inc(x_200); -x_201 = lean_unbox(x_200); -lean_dec(x_200); -if (x_201 == 0) +x_199 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addStructFieldAux___closed__1; +x_200 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_199, x_178, x_197); +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_unbox(x_201); +lean_dec(x_201); +if (x_202 == 0) { -lean_object* x_202; -lean_dec(x_197); -x_202 = lean_ctor_get(x_199, 1); -lean_inc(x_202); -lean_dec_ref(x_199); -x_41 = x_193; -x_42 = x_182; -x_43 = x_195; -x_44 = x_185; -x_45 = x_183; -x_46 = x_186; -x_47 = x_184; -x_48 = x_4; -x_49 = x_5; -x_50 = x_6; -x_51 = x_7; -x_52 = x_177; -x_53 = x_9; -x_54 = x_202; -goto block_57; -} -else -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_203 = lean_ctor_get(x_199, 1); +lean_object* x_203; +lean_dec(x_198); +x_203 = lean_ctor_get(x_200, 1); lean_inc(x_203); -if (lean_is_exclusive(x_199)) { - lean_ctor_release(x_199, 0); - lean_ctor_release(x_199, 1); - x_204 = x_199; -} else { - lean_dec_ref(x_199); - x_204 = lean_box(0); -} -x_205 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView___closed__1; -x_206 = l_Lean_RBMap_toList___at___Lean_reprLeanOptions____x40_Lean_Util_LeanOptions___hyg_679__spec__0___redArg(x_195); -x_207 = lean_box(0); -x_208 = l_List_mapTR_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView_spec__0(x_206, x_207); -x_209 = l_Lean_Elab_Term_StructInst_instToMessageDataExpandedFieldVal___lam__2___closed__23; -x_210 = l_Lean_MessageData_joinSep(x_208, x_209); -if (lean_is_scalar(x_204)) { - x_211 = lean_alloc_ctor(7, 2, 0); -} else { - x_211 = x_204; - lean_ctor_set_tag(x_211, 7); -} -lean_ctor_set(x_211, 0, x_205); -lean_ctor_set(x_211, 1, x_210); -x_212 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__21; -if (lean_is_scalar(x_197)) { - x_213 = lean_alloc_ctor(7, 2, 0); -} else { - x_213 = x_197; - lean_ctor_set_tag(x_213, 7); -} -lean_ctor_set(x_213, 0, x_211); -lean_ctor_set(x_213, 1, x_212); -x_214 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_198, x_213, x_6, x_7, x_177, x_9, x_203); -x_215 = lean_ctor_get(x_214, 1); -lean_inc(x_215); -lean_dec_ref(x_214); -x_41 = x_193; -x_42 = x_182; -x_43 = x_195; +lean_dec_ref(x_200); +x_41 = x_186; +x_42 = x_184; +x_43 = x_183; x_44 = x_185; -x_45 = x_183; -x_46 = x_186; -x_47 = x_184; +x_45 = x_194; +x_46 = x_187; +x_47 = x_196; x_48 = x_4; x_49 = x_5; x_50 = x_6; x_51 = x_7; -x_52 = x_177; +x_52 = x_178; x_53 = x_9; -x_54 = x_215; +x_54 = x_203; +goto block_57; +} +else +{ +lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_204 = lean_ctor_get(x_200, 1); +lean_inc(x_204); +if (lean_is_exclusive(x_200)) { + lean_ctor_release(x_200, 0); + lean_ctor_release(x_200, 1); + x_205 = x_200; +} else { + lean_dec_ref(x_200); + x_205 = lean_box(0); +} +x_206 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView___closed__1; +x_207 = l_Lean_RBMap_toList___at___Lean_reprLeanOptions____x40_Lean_Util_LeanOptions___hyg_679__spec__0___redArg(x_196); +x_208 = lean_box(0); +x_209 = l_List_mapTR_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView_spec__0(x_207, x_208); +x_210 = l_Lean_Elab_Term_StructInst_instToMessageDataExpandedFieldVal___lam__2___closed__23; +x_211 = l_Lean_MessageData_joinSep(x_209, x_210); +if (lean_is_scalar(x_205)) { + x_212 = lean_alloc_ctor(7, 2, 0); +} else { + x_212 = x_205; + lean_ctor_set_tag(x_212, 7); +} +lean_ctor_set(x_212, 0, x_206); +lean_ctor_set(x_212, 1, x_211); +x_213 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__21; +if (lean_is_scalar(x_198)) { + x_214 = lean_alloc_ctor(7, 2, 0); +} else { + x_214 = x_198; + lean_ctor_set_tag(x_214, 7); +} +lean_ctor_set(x_214, 0, x_212); +lean_ctor_set(x_214, 1, x_213); +x_215 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_199, x_214, x_6, x_7, x_178, x_9, x_204); +x_216 = lean_ctor_get(x_215, 1); +lean_inc(x_216); +lean_dec_ref(x_215); +x_41 = x_186; +x_42 = x_184; +x_43 = x_183; +x_44 = x_185; +x_45 = x_194; +x_46 = x_187; +x_47 = x_196; +x_48 = x_4; +x_49 = x_5; +x_50 = x_6; +x_51 = x_7; +x_52 = x_178; +x_53 = x_9; +x_54 = x_216; goto block_57; } } else { -lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; -lean_dec_ref(x_186); -lean_dec(x_185); +lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; +lean_dec_ref(x_187); +lean_dec(x_186); +lean_dec_ref(x_185); lean_dec_ref(x_184); lean_dec_ref(x_183); -lean_dec_ref(x_182); -lean_dec_ref(x_177); +lean_dec_ref(x_178); lean_dec_ref(x_64); lean_dec(x_9); lean_dec(x_7); @@ -61384,32 +61383,32 @@ lean_dec(x_5); lean_dec_ref(x_4); lean_dec(x_2); lean_dec_ref(x_1); -x_216 = lean_ctor_get(x_188, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_188, 1); +x_217 = lean_ctor_get(x_189, 0); lean_inc(x_217); -if (lean_is_exclusive(x_188)) { - lean_ctor_release(x_188, 0); - lean_ctor_release(x_188, 1); - x_218 = x_188; +x_218 = lean_ctor_get(x_189, 1); +lean_inc(x_218); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_219 = x_189; } else { - lean_dec_ref(x_188); - x_218 = lean_box(0); + lean_dec_ref(x_189); + x_219 = lean_box(0); } -if (lean_is_scalar(x_218)) { - x_219 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_219)) { + x_220 = lean_alloc_ctor(1, 2, 0); } else { - x_219 = x_218; + x_220 = x_219; } -lean_ctor_set(x_219, 0, x_216); -lean_ctor_set(x_219, 1, x_217); -return x_219; +lean_ctor_set(x_220, 0, x_217); +lean_ctor_set(x_220, 1, x_218); +return x_220; } } else { -lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; -lean_dec_ref(x_177); +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; +lean_dec_ref(x_178); lean_dec_ref(x_64); lean_dec_ref(x_63); lean_dec(x_9); @@ -61419,116 +61418,117 @@ lean_dec(x_5); lean_dec_ref(x_4); lean_dec(x_2); lean_dec_ref(x_1); -x_220 = lean_ctor_get(x_179, 0); -lean_inc(x_220); -x_221 = lean_ctor_get(x_179, 1); +x_221 = lean_ctor_get(x_180, 0); lean_inc(x_221); -if (lean_is_exclusive(x_179)) { - lean_ctor_release(x_179, 0); - lean_ctor_release(x_179, 1); - x_222 = x_179; +x_222 = lean_ctor_get(x_180, 1); +lean_inc(x_222); +if (lean_is_exclusive(x_180)) { + lean_ctor_release(x_180, 0); + lean_ctor_release(x_180, 1); + x_223 = x_180; } else { - lean_dec_ref(x_179); - x_222 = lean_box(0); + lean_dec_ref(x_180); + x_223 = lean_box(0); } -if (lean_is_scalar(x_222)) { - x_223 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_223)) { + x_224 = lean_alloc_ctor(1, 2, 0); } else { - x_223 = x_222; + x_224 = x_223; } -lean_ctor_set(x_223, 0, x_220); -lean_ctor_set(x_223, 1, x_221); -return x_223; +lean_ctor_set(x_224, 0, x_221); +lean_ctor_set(x_224, 1, x_222); +return x_224; } } 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_dec_ref(x_173); +lean_object* x_225; uint8_t x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; +lean_dec_ref(x_174); lean_dec_ref(x_64); lean_dec_ref(x_63); lean_dec(x_3); lean_dec_ref(x_1); -x_224 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView___closed__3; -x_225 = l_Lean_MessageData_ofName(x_2); +x_225 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView___closed__3; +x_226 = 0; +x_227 = l_Lean_MessageData_ofConstName(x_2, x_226); lean_ctor_set_tag(x_58, 7); -lean_ctor_set(x_58, 1, x_225); -lean_ctor_set(x_58, 0, x_224); -x_226 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView___closed__5; -x_227 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_227, 0, x_58); -lean_ctor_set(x_227, 1, x_226); -x_228 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_227, x_4, x_5, x_6, x_7, x_177, x_9, x_61); +lean_ctor_set(x_58, 1, x_227); +lean_ctor_set(x_58, 0, x_225); +x_228 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView___closed__5; +x_229 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_229, 0, x_58); +lean_ctor_set(x_229, 1, x_228); +x_230 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_229, x_4, x_5, x_6, x_7, x_178, x_9, x_61); lean_dec(x_9); -lean_dec_ref(x_177); +lean_dec_ref(x_178); lean_dec(x_7); lean_dec_ref(x_6); lean_dec(x_5); -x_229 = lean_ctor_get(x_228, 0); -lean_inc(x_229); -x_230 = lean_ctor_get(x_228, 1); -lean_inc(x_230); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - x_231 = x_228; +x_231 = lean_ctor_get(x_230, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_230, 1); +lean_inc(x_232); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_233 = x_230; } else { - lean_dec_ref(x_228); - x_231 = lean_box(0); + lean_dec_ref(x_230); + x_233 = lean_box(0); } -if (lean_is_scalar(x_231)) { - x_232 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_233)) { + x_234 = lean_alloc_ctor(1, 2, 0); } else { - x_232 = x_231; + x_234 = x_233; } -lean_ctor_set(x_232, 0, x_229); -lean_ctor_set(x_232, 1, x_230); -return x_232; +lean_ctor_set(x_234, 0, x_231); +lean_ctor_set(x_234, 1, x_232); +return x_234; } } } else { -lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; uint8_t x_249; lean_object* x_250; uint8_t 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; uint8_t x_260; -x_233 = lean_ctor_get(x_58, 0); -x_234 = lean_ctor_get(x_58, 1); -lean_inc(x_234); -lean_inc(x_233); -lean_dec(x_58); -x_235 = lean_ctor_get(x_1, 0); +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; uint8_t x_251; lean_object* x_252; uint8_t 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; uint8_t x_262; +x_235 = lean_ctor_get(x_58, 0); +x_236 = lean_ctor_get(x_58, 1); +lean_inc(x_236); lean_inc(x_235); -x_236 = lean_ctor_get(x_1, 1); -lean_inc_ref(x_236); -x_237 = lean_ctor_get(x_1, 2); -lean_inc_ref(x_237); -x_238 = lean_ctor_get(x_8, 0); +lean_dec(x_58); +x_237 = lean_ctor_get(x_1, 0); +lean_inc(x_237); +x_238 = lean_ctor_get(x_1, 1); lean_inc_ref(x_238); -x_239 = lean_ctor_get(x_8, 1); +x_239 = lean_ctor_get(x_1, 2); lean_inc_ref(x_239); -x_240 = lean_ctor_get(x_8, 2); -lean_inc(x_240); -x_241 = lean_ctor_get(x_8, 3); -lean_inc(x_241); -x_242 = lean_ctor_get(x_8, 4); +x_240 = lean_ctor_get(x_8, 0); +lean_inc_ref(x_240); +x_241 = lean_ctor_get(x_8, 1); +lean_inc_ref(x_241); +x_242 = lean_ctor_get(x_8, 2); lean_inc(x_242); -x_243 = lean_ctor_get(x_8, 5); +x_243 = lean_ctor_get(x_8, 3); lean_inc(x_243); -x_244 = lean_ctor_get(x_8, 6); +x_244 = lean_ctor_get(x_8, 4); lean_inc(x_244); -x_245 = lean_ctor_get(x_8, 7); +x_245 = lean_ctor_get(x_8, 5); lean_inc(x_245); -x_246 = lean_ctor_get(x_8, 8); +x_246 = lean_ctor_get(x_8, 6); lean_inc(x_246); -x_247 = lean_ctor_get(x_8, 9); +x_247 = lean_ctor_get(x_8, 7); lean_inc(x_247); -x_248 = lean_ctor_get(x_8, 10); +x_248 = lean_ctor_get(x_8, 8); lean_inc(x_248); -x_249 = lean_ctor_get_uint8(x_8, sizeof(void*)*13); -x_250 = lean_ctor_get(x_8, 11); +x_249 = lean_ctor_get(x_8, 9); +lean_inc(x_249); +x_250 = lean_ctor_get(x_8, 10); lean_inc(x_250); -x_251 = lean_ctor_get_uint8(x_8, sizeof(void*)*13 + 1); -x_252 = lean_ctor_get(x_8, 12); -lean_inc_ref(x_252); +x_251 = lean_ctor_get_uint8(x_8, sizeof(void*)*13); +x_252 = lean_ctor_get(x_8, 11); +lean_inc(x_252); +x_253 = lean_ctor_get_uint8(x_8, sizeof(void*)*13 + 1); +x_254 = lean_ctor_get(x_8, 12); +lean_inc_ref(x_254); if (lean_is_exclusive(x_8)) { lean_ctor_release(x_8, 0); lean_ctor_release(x_8, 1); @@ -61543,210 +61543,209 @@ if (lean_is_exclusive(x_8)) { lean_ctor_release(x_8, 10); lean_ctor_release(x_8, 11); lean_ctor_release(x_8, 12); - x_253 = x_8; + x_255 = x_8; } else { lean_dec_ref(x_8); - x_253 = lean_box(0); + x_255 = lean_box(0); } -x_254 = lean_ctor_get(x_233, 0); -lean_inc_ref(x_254); -lean_dec(x_233); -lean_inc(x_2); -lean_inc_ref(x_254); -x_255 = l_Lean_getStructureCtor(x_254, x_2); -x_256 = lean_ctor_get(x_255, 0); +x_256 = lean_ctor_get(x_235, 0); lean_inc_ref(x_256); -x_257 = lean_ctor_get(x_256, 0); -lean_inc(x_257); -lean_dec_ref(x_256); -x_258 = l_Lean_replaceRef(x_235, x_243); -lean_dec(x_243); lean_dec(x_235); -if (lean_is_scalar(x_253)) { - x_259 = lean_alloc_ctor(0, 13, 2); +lean_inc(x_2); +lean_inc_ref(x_256); +x_257 = l_Lean_getStructureCtor(x_256, x_2); +x_258 = lean_ctor_get(x_257, 0); +lean_inc_ref(x_258); +x_259 = lean_ctor_get(x_258, 0); +lean_inc(x_259); +lean_dec_ref(x_258); +x_260 = l_Lean_replaceRef(x_237, x_245); +lean_dec(x_245); +lean_dec(x_237); +if (lean_is_scalar(x_255)) { + x_261 = lean_alloc_ctor(0, 13, 2); } else { - x_259 = x_253; + x_261 = x_255; } -lean_ctor_set(x_259, 0, x_238); -lean_ctor_set(x_259, 1, x_239); -lean_ctor_set(x_259, 2, x_240); -lean_ctor_set(x_259, 3, x_241); -lean_ctor_set(x_259, 4, x_242); -lean_ctor_set(x_259, 5, x_258); -lean_ctor_set(x_259, 6, x_244); -lean_ctor_set(x_259, 7, x_245); -lean_ctor_set(x_259, 8, x_246); -lean_ctor_set(x_259, 9, x_247); -lean_ctor_set(x_259, 10, x_248); -lean_ctor_set(x_259, 11, x_250); -lean_ctor_set(x_259, 12, x_252); -lean_ctor_set_uint8(x_259, sizeof(void*)*13, x_249); -lean_ctor_set_uint8(x_259, sizeof(void*)*13 + 1, x_251); -x_260 = l_Lean_isPrivateNameFromImportedModule(x_254, x_257); -lean_dec_ref(x_254); -if (x_260 == 0) +lean_ctor_set(x_261, 0, x_240); +lean_ctor_set(x_261, 1, x_241); +lean_ctor_set(x_261, 2, x_242); +lean_ctor_set(x_261, 3, x_243); +lean_ctor_set(x_261, 4, x_244); +lean_ctor_set(x_261, 5, x_260); +lean_ctor_set(x_261, 6, x_246); +lean_ctor_set(x_261, 7, x_247); +lean_ctor_set(x_261, 8, x_248); +lean_ctor_set(x_261, 9, x_249); +lean_ctor_set(x_261, 10, x_250); +lean_ctor_set(x_261, 11, x_252); +lean_ctor_set(x_261, 12, x_254); +lean_ctor_set_uint8(x_261, sizeof(void*)*13, x_251); +lean_ctor_set_uint8(x_261, sizeof(void*)*13 + 1, x_253); +x_262 = l_Lean_isPrivateNameFromImportedModule(x_256, x_259); +if (x_262 == 0) { -lean_object* x_261; +lean_object* x_263; lean_inc(x_9); -lean_inc_ref(x_259); +lean_inc_ref(x_261); lean_inc(x_7); lean_inc_ref(x_6); lean_inc_ref(x_4); -x_261 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader(x_255, x_3, x_4, x_5, x_6, x_7, x_259, x_9, x_234); -if (lean_obj_tag(x_261) == 0) +x_263 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader(x_257, x_3, x_4, x_5, x_6, x_7, x_261, x_9, x_236); +if (lean_obj_tag(x_263) == 0) { -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; uint8_t x_269; lean_object* x_270; -x_262 = lean_ctor_get(x_261, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_261, 1); -lean_inc(x_263); -lean_dec_ref(x_261); -x_264 = lean_ctor_get(x_262, 0); -lean_inc_ref(x_264); -x_265 = lean_ctor_get(x_262, 1); -lean_inc_ref(x_265); -x_266 = lean_ctor_get(x_262, 2); +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; uint8_t x_271; lean_object* x_272; +x_264 = lean_ctor_get(x_263, 0); +lean_inc(x_264); +x_265 = lean_ctor_get(x_263, 1); +lean_inc(x_265); +lean_dec_ref(x_263); +x_266 = lean_ctor_get(x_264, 0); lean_inc_ref(x_266); -x_267 = lean_ctor_get(x_262, 3); -lean_inc(x_267); -x_268 = lean_ctor_get(x_262, 4); +x_267 = lean_ctor_get(x_264, 1); +lean_inc_ref(x_267); +x_268 = lean_ctor_get(x_264, 2); lean_inc_ref(x_268); -lean_dec(x_262); -x_269 = lean_ctor_get_uint8(x_4, sizeof(void*)*7 + 1); +x_269 = lean_ctor_get(x_264, 3); +lean_inc(x_269); +x_270 = lean_ctor_get(x_264, 4); +lean_inc_ref(x_270); +lean_dec(x_264); +x_271 = lean_ctor_get_uint8(x_4, sizeof(void*)*7 + 1); lean_inc(x_9); -lean_inc_ref(x_259); +lean_inc_ref(x_261); lean_inc(x_7); lean_inc_ref(x_6); lean_inc(x_2); -x_270 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandFields(x_2, x_236, x_269, x_6, x_7, x_259, x_9, x_263); -lean_dec_ref(x_236); -if (lean_obj_tag(x_270) == 0) +x_272 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandFields(x_2, x_238, x_271, x_6, x_7, x_261, x_9, x_265); +lean_dec_ref(x_238); +if (lean_obj_tag(x_272) == 0) { -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; uint8_t x_283; -x_271 = lean_ctor_get(x_270, 0); -lean_inc(x_271); -x_272 = lean_ctor_get(x_270, 1); -lean_inc(x_272); -lean_dec_ref(x_270); -x_273 = lean_ctor_get(x_271, 1); +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; uint8_t x_285; +x_273 = lean_ctor_get(x_272, 0); lean_inc(x_273); -lean_dec(x_271); -x_274 = lean_ctor_get(x_237, 0); -lean_inc_ref(x_274); -x_275 = lean_ctor_get(x_237, 1); +x_274 = lean_ctor_get(x_272, 1); +lean_inc(x_274); +lean_dec_ref(x_272); +x_275 = lean_ctor_get(x_273, 1); lean_inc(x_275); -lean_dec_ref(x_237); -lean_inc(x_2); -x_276 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addSourceFields(x_2, x_274, x_273, x_6, x_7, x_259, x_9, x_272); -lean_dec_ref(x_274); -x_277 = lean_ctor_get(x_276, 0); +lean_dec(x_273); +x_276 = lean_ctor_get(x_239, 0); +lean_inc_ref(x_276); +x_277 = lean_ctor_get(x_239, 1); lean_inc(x_277); -x_278 = lean_ctor_get(x_276, 1); -lean_inc(x_278); -if (lean_is_exclusive(x_276)) { - lean_ctor_release(x_276, 0); - lean_ctor_release(x_276, 1); - x_279 = x_276; +lean_dec_ref(x_239); +lean_inc(x_2); +x_278 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addSourceFields(x_2, x_276, x_275, x_6, x_7, x_261, x_9, x_274); +lean_dec_ref(x_276); +x_279 = lean_ctor_get(x_278, 0); +lean_inc(x_279); +x_280 = lean_ctor_get(x_278, 1); +lean_inc(x_280); +if (lean_is_exclusive(x_278)) { + lean_ctor_release(x_278, 0); + lean_ctor_release(x_278, 1); + x_281 = x_278; } else { - lean_dec_ref(x_276); - x_279 = lean_box(0); + lean_dec_ref(x_278); + x_281 = lean_box(0); } -x_280 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addStructFieldAux___closed__1; -x_281 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_280, x_259, x_278); -x_282 = lean_ctor_get(x_281, 0); -lean_inc(x_282); -x_283 = lean_unbox(x_282); -lean_dec(x_282); -if (x_283 == 0) -{ -lean_object* x_284; -lean_dec(x_279); -x_284 = lean_ctor_get(x_281, 1); +x_282 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addStructFieldAux___closed__1; +x_283 = l_Lean_isTracingEnabledFor___at___Lean_Elab_Term_traceAtCmdPos_spec__0___redArg(x_282, x_261, x_280); +x_284 = lean_ctor_get(x_283, 0); lean_inc(x_284); -lean_dec_ref(x_281); -x_41 = x_275; -x_42 = x_264; -x_43 = x_277; -x_44 = x_267; -x_45 = x_265; -x_46 = x_268; -x_47 = x_266; +x_285 = lean_unbox(x_284); +lean_dec(x_284); +if (x_285 == 0) +{ +lean_object* x_286; +lean_dec(x_281); +x_286 = lean_ctor_get(x_283, 1); +lean_inc(x_286); +lean_dec_ref(x_283); +x_41 = x_269; +x_42 = x_267; +x_43 = x_266; +x_44 = x_268; +x_45 = x_277; +x_46 = x_270; +x_47 = x_279; x_48 = x_4; x_49 = x_5; x_50 = x_6; x_51 = x_7; -x_52 = x_259; +x_52 = x_261; x_53 = x_9; -x_54 = x_284; +x_54 = x_286; goto block_57; } else { -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; -x_285 = lean_ctor_get(x_281, 1); -lean_inc(x_285); -if (lean_is_exclusive(x_281)) { - lean_ctor_release(x_281, 0); - lean_ctor_release(x_281, 1); - x_286 = x_281; +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; +x_287 = lean_ctor_get(x_283, 1); +lean_inc(x_287); +if (lean_is_exclusive(x_283)) { + lean_ctor_release(x_283, 0); + lean_ctor_release(x_283, 1); + x_288 = x_283; } else { - lean_dec_ref(x_281); - x_286 = lean_box(0); + lean_dec_ref(x_283); + x_288 = lean_box(0); } -x_287 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView___closed__1; -x_288 = l_Lean_RBMap_toList___at___Lean_reprLeanOptions____x40_Lean_Util_LeanOptions___hyg_679__spec__0___redArg(x_277); -x_289 = lean_box(0); -x_290 = l_List_mapTR_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView_spec__0(x_288, x_289); -x_291 = l_Lean_Elab_Term_StructInst_instToMessageDataExpandedFieldVal___lam__2___closed__23; -x_292 = l_Lean_MessageData_joinSep(x_290, x_291); -if (lean_is_scalar(x_286)) { - x_293 = lean_alloc_ctor(7, 2, 0); -} else { - x_293 = x_286; - lean_ctor_set_tag(x_293, 7); -} -lean_ctor_set(x_293, 0, x_287); -lean_ctor_set(x_293, 1, x_292); -x_294 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__21; -if (lean_is_scalar(x_279)) { +x_289 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView___closed__1; +x_290 = l_Lean_RBMap_toList___at___Lean_reprLeanOptions____x40_Lean_Util_LeanOptions___hyg_679__spec__0___redArg(x_279); +x_291 = lean_box(0); +x_292 = l_List_mapTR_loop___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView_spec__0(x_290, x_291); +x_293 = l_Lean_Elab_Term_StructInst_instToMessageDataExpandedFieldVal___lam__2___closed__23; +x_294 = l_Lean_MessageData_joinSep(x_292, x_293); +if (lean_is_scalar(x_288)) { x_295 = lean_alloc_ctor(7, 2, 0); } else { - x_295 = x_279; + x_295 = x_288; lean_ctor_set_tag(x_295, 7); } -lean_ctor_set(x_295, 0, x_293); +lean_ctor_set(x_295, 0, x_289); lean_ctor_set(x_295, 1, x_294); -x_296 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_280, x_295, x_6, x_7, x_259, x_9, x_285); -x_297 = lean_ctor_get(x_296, 1); -lean_inc(x_297); -lean_dec_ref(x_296); -x_41 = x_275; -x_42 = x_264; -x_43 = x_277; -x_44 = x_267; -x_45 = x_265; -x_46 = x_268; -x_47 = x_266; +x_296 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__21; +if (lean_is_scalar(x_281)) { + x_297 = lean_alloc_ctor(7, 2, 0); +} else { + x_297 = x_281; + lean_ctor_set_tag(x_297, 7); +} +lean_ctor_set(x_297, 0, x_295); +lean_ctor_set(x_297, 1, x_296); +x_298 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_282, x_297, x_6, x_7, x_261, x_9, x_287); +x_299 = lean_ctor_get(x_298, 1); +lean_inc(x_299); +lean_dec_ref(x_298); +x_41 = x_269; +x_42 = x_267; +x_43 = x_266; +x_44 = x_268; +x_45 = x_277; +x_46 = x_270; +x_47 = x_279; x_48 = x_4; x_49 = x_5; x_50 = x_6; x_51 = x_7; -x_52 = x_259; +x_52 = x_261; x_53 = x_9; -x_54 = x_297; +x_54 = x_299; goto block_57; } } else { -lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; +lean_dec_ref(x_270); +lean_dec(x_269); lean_dec_ref(x_268); -lean_dec(x_267); +lean_dec_ref(x_267); lean_dec_ref(x_266); -lean_dec_ref(x_265); -lean_dec_ref(x_264); -lean_dec_ref(x_259); -lean_dec_ref(x_237); +lean_dec_ref(x_261); +lean_dec_ref(x_239); lean_dec(x_9); lean_dec(x_7); lean_dec_ref(x_6); @@ -61754,34 +61753,34 @@ lean_dec(x_5); lean_dec_ref(x_4); lean_dec(x_2); lean_dec_ref(x_1); -x_298 = lean_ctor_get(x_270, 0); -lean_inc(x_298); -x_299 = lean_ctor_get(x_270, 1); -lean_inc(x_299); -if (lean_is_exclusive(x_270)) { - lean_ctor_release(x_270, 0); - lean_ctor_release(x_270, 1); - x_300 = x_270; +x_300 = lean_ctor_get(x_272, 0); +lean_inc(x_300); +x_301 = lean_ctor_get(x_272, 1); +lean_inc(x_301); +if (lean_is_exclusive(x_272)) { + lean_ctor_release(x_272, 0); + lean_ctor_release(x_272, 1); + x_302 = x_272; } else { - lean_dec_ref(x_270); - x_300 = lean_box(0); + lean_dec_ref(x_272); + x_302 = lean_box(0); } -if (lean_is_scalar(x_300)) { - x_301 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_302)) { + x_303 = lean_alloc_ctor(1, 2, 0); } else { - x_301 = x_300; + x_303 = x_302; } -lean_ctor_set(x_301, 0, x_298); -lean_ctor_set(x_301, 1, x_299); -return x_301; +lean_ctor_set(x_303, 0, x_300); +lean_ctor_set(x_303, 1, x_301); +return x_303; } } else { -lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; -lean_dec_ref(x_259); -lean_dec_ref(x_237); -lean_dec_ref(x_236); +lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; +lean_dec_ref(x_261); +lean_dec_ref(x_239); +lean_dec_ref(x_238); lean_dec(x_9); lean_dec(x_7); lean_dec_ref(x_6); @@ -61789,71 +61788,72 @@ lean_dec(x_5); lean_dec_ref(x_4); lean_dec(x_2); lean_dec_ref(x_1); -x_302 = lean_ctor_get(x_261, 0); -lean_inc(x_302); -x_303 = lean_ctor_get(x_261, 1); -lean_inc(x_303); -if (lean_is_exclusive(x_261)) { - lean_ctor_release(x_261, 0); - lean_ctor_release(x_261, 1); - x_304 = x_261; +x_304 = lean_ctor_get(x_263, 0); +lean_inc(x_304); +x_305 = lean_ctor_get(x_263, 1); +lean_inc(x_305); +if (lean_is_exclusive(x_263)) { + lean_ctor_release(x_263, 0); + lean_ctor_release(x_263, 1); + x_306 = x_263; } else { - lean_dec_ref(x_261); - x_304 = lean_box(0); + lean_dec_ref(x_263); + x_306 = lean_box(0); } -if (lean_is_scalar(x_304)) { - x_305 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_306)) { + x_307 = lean_alloc_ctor(1, 2, 0); } else { - x_305 = x_304; + x_307 = x_306; } -lean_ctor_set(x_305, 0, x_302); -lean_ctor_set(x_305, 1, x_303); -return x_305; +lean_ctor_set(x_307, 0, x_304); +lean_ctor_set(x_307, 1, x_305); +return x_307; } } else { -lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; -lean_dec_ref(x_255); -lean_dec_ref(x_237); -lean_dec_ref(x_236); +lean_object* x_308; uint8_t x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; 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_dec_ref(x_257); +lean_dec_ref(x_239); +lean_dec_ref(x_238); lean_dec(x_3); lean_dec_ref(x_1); -x_306 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView___closed__3; -x_307 = l_Lean_MessageData_ofName(x_2); -x_308 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_308, 0, x_306); -lean_ctor_set(x_308, 1, x_307); -x_309 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView___closed__5; -x_310 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_310, 0, x_308); -lean_ctor_set(x_310, 1, x_309); -x_311 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_310, x_4, x_5, x_6, x_7, x_259, x_9, x_234); +x_308 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView___closed__3; +x_309 = 0; +x_310 = l_Lean_MessageData_ofConstName(x_2, x_309); +x_311 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_311, 0, x_308); +lean_ctor_set(x_311, 1, x_310); +x_312 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstView___closed__5; +x_313 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_313, 0, x_311); +lean_ctor_set(x_313, 1, x_312); +x_314 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_313, x_4, x_5, x_6, x_7, x_261, x_9, x_236); lean_dec(x_9); -lean_dec_ref(x_259); +lean_dec_ref(x_261); lean_dec(x_7); lean_dec_ref(x_6); lean_dec(x_5); -x_312 = lean_ctor_get(x_311, 0); -lean_inc(x_312); -x_313 = lean_ctor_get(x_311, 1); -lean_inc(x_313); -if (lean_is_exclusive(x_311)) { - lean_ctor_release(x_311, 0); - lean_ctor_release(x_311, 1); - x_314 = x_311; +x_315 = lean_ctor_get(x_314, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_314, 1); +lean_inc(x_316); +if (lean_is_exclusive(x_314)) { + lean_ctor_release(x_314, 0); + lean_ctor_release(x_314, 1); + x_317 = x_314; } else { - lean_dec_ref(x_311); - x_314 = lean_box(0); + lean_dec_ref(x_314); + x_317 = lean_box(0); } -if (lean_is_scalar(x_314)) { - x_315 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_317)) { + x_318 = lean_alloc_ctor(1, 2, 0); } else { - x_315 = x_314; + x_318 = x_317; } -lean_ctor_set(x_315, 0, x_312); -lean_ctor_set(x_315, 1, x_313); -return x_315; +lean_ctor_set(x_318, 0, x_315); +lean_ctor_set(x_318, 1, x_316); +return x_318; } } block_40: @@ -61862,7 +61862,7 @@ lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean x_25 = lean_box(0); x_26 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeader___closed__0; x_27 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_27, 0, x_23); +lean_ctor_set(x_27, 0, x_16); lean_ctor_set(x_27, 1, x_25); lean_ctor_set(x_27, 2, x_25); lean_ctor_set(x_27, 3, x_26); @@ -61870,7 +61870,7 @@ lean_ctor_set(x_27, 4, x_26); lean_ctor_set(x_27, 5, x_26); lean_ctor_set(x_27, 6, x_25); lean_ctor_set(x_27, 7, x_26); -x_28 = lean_st_mk_ref(x_27, x_20); +x_28 = lean_st_mk_ref(x_27, x_21); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); @@ -61880,13 +61880,13 @@ x_31 = lean_alloc_ctor(0, 7, 1); lean_ctor_set(x_31, 0, x_1); lean_ctor_set(x_31, 1, x_2); lean_ctor_set(x_31, 2, x_17); -lean_ctor_set(x_31, 3, x_15); -lean_ctor_set(x_31, 4, x_16); -lean_ctor_set(x_31, 5, x_18); -lean_ctor_set(x_31, 6, x_14); +lean_ctor_set(x_31, 3, x_11); +lean_ctor_set(x_31, 4, x_18); +lean_ctor_set(x_31, 5, x_12); +lean_ctor_set(x_31, 6, x_13); lean_ctor_set_uint8(x_31, sizeof(void*)*7, x_24); lean_inc(x_29); -x_32 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_main(x_31, x_29, x_11, x_22, x_12, x_13, x_19, x_21, x_30); +x_32 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_main(x_31, x_29, x_22, x_14, x_19, x_20, x_23, x_15, x_30); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; @@ -61926,44 +61926,44 @@ return x_32; } block_57: { -if (lean_obj_tag(x_41) == 0) +if (lean_obj_tag(x_45) == 0) { uint8_t x_55; x_55 = 0; -x_11 = x_48; -x_12 = x_50; -x_13 = x_51; -x_14 = x_43; -x_15 = x_44; -x_16 = x_46; -x_17 = x_47; -x_18 = x_42; -x_19 = x_52; -x_20 = x_54; -x_21 = x_53; -x_22 = x_49; -x_23 = x_45; +x_11 = x_41; +x_12 = x_43; +x_13 = x_47; +x_14 = x_49; +x_15 = x_53; +x_16 = x_42; +x_17 = x_44; +x_18 = x_46; +x_19 = x_50; +x_20 = x_51; +x_21 = x_54; +x_22 = x_48; +x_23 = x_52; x_24 = x_55; goto block_40; } else { uint8_t x_56; -lean_dec(x_41); +lean_dec(x_45); x_56 = 1; -x_11 = x_48; -x_12 = x_50; -x_13 = x_51; -x_14 = x_43; -x_15 = x_44; -x_16 = x_46; -x_17 = x_47; -x_18 = x_42; -x_19 = x_52; -x_20 = x_54; -x_21 = x_53; -x_22 = x_49; -x_23 = x_45; +x_11 = x_41; +x_12 = x_43; +x_13 = x_47; +x_14 = x_49; +x_15 = x_53; +x_16 = x_42; +x_17 = x_44; +x_18 = x_46; +x_19 = x_50; +x_20 = x_51; +x_21 = x_54; +x_22 = x_48; +x_23 = x_52; x_24 = x_56; goto block_40; } @@ -63004,14 +63004,14 @@ if (x_67 == 0) { lean_object* x_68; x_68 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSources___lam__0(x_15, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -x_40 = x_65; -x_41 = x_2; -x_42 = x_4; -x_43 = x_3; -x_44 = x_7; +x_40 = x_4; +x_41 = x_6; +x_42 = x_7; +x_43 = x_66; +x_44 = x_3; x_45 = x_5; -x_46 = x_6; -x_47 = x_66; +x_46 = x_65; +x_47 = x_2; x_48 = x_68; goto block_62; } @@ -63047,14 +63047,14 @@ lean_dec_ref(x_71); x_74 = lean_unbox(x_72); lean_dec(x_72); x_75 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSources___lam__0(x_15, x_74, x_2, x_3, x_4, x_5, x_6, x_7, x_73); -x_40 = x_65; -x_41 = x_2; -x_42 = x_4; -x_43 = x_3; -x_44 = x_7; +x_40 = x_4; +x_41 = x_6; +x_42 = x_7; +x_43 = x_66; +x_44 = x_3; x_45 = x_5; -x_46 = x_6; -x_47 = x_66; +x_46 = x_65; +x_47 = x_2; x_48 = x_75; goto block_62; } @@ -63162,17 +63162,17 @@ lean_object* x_51; uint8_t x_52; x_51 = lean_ctor_get(x_48, 1); lean_inc(x_51); lean_dec_ref(x_48); -x_52 = lean_nat_dec_lt(x_16, x_47); +x_52 = lean_nat_dec_lt(x_16, x_43); if (x_52 == 0) { -lean_dec(x_47); -x_17 = x_40; -x_18 = x_41; -x_19 = x_43; -x_20 = x_42; +lean_dec(x_43); +x_17 = x_46; +x_18 = x_47; +x_19 = x_44; +x_20 = x_40; x_21 = x_45; -x_22 = x_46; -x_23 = x_44; +x_22 = x_41; +x_23 = x_42; x_24 = x_51; goto block_39; } @@ -63180,14 +63180,14 @@ else { if (x_52 == 0) { -lean_dec(x_47); -x_17 = x_40; -x_18 = x_41; -x_19 = x_43; -x_20 = x_42; +lean_dec(x_43); +x_17 = x_46; +x_18 = x_47; +x_19 = x_44; +x_20 = x_40; x_21 = x_45; -x_22 = x_46; -x_23 = x_44; +x_22 = x_41; +x_23 = x_42; x_24 = x_51; goto block_39; } @@ -63195,29 +63195,29 @@ else { size_t x_53; size_t x_54; uint8_t x_55; x_53 = 0; -x_54 = lean_usize_of_nat(x_47); -lean_dec(x_47); -x_55 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSources_spec__0(x_40, x_53, x_54); +x_54 = lean_usize_of_nat(x_43); +lean_dec(x_43); +x_55 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSources_spec__0(x_46, x_53, x_54); if (x_55 == 0) { -x_17 = x_40; -x_18 = x_41; -x_19 = x_43; -x_20 = x_42; +x_17 = x_46; +x_18 = x_47; +x_19 = x_44; +x_20 = x_40; x_21 = x_45; -x_22 = x_46; -x_23 = x_44; +x_22 = x_41; +x_23 = x_42; x_24 = x_51; goto block_39; } else { lean_object* x_56; uint8_t x_57; +lean_dec_ref(x_47); lean_dec_ref(x_46); lean_dec(x_45); lean_dec(x_44); -lean_dec(x_43); -lean_dec_ref(x_42); +lean_dec(x_42); lean_dec_ref(x_41); lean_dec_ref(x_40); lean_dec(x_1); @@ -63247,12 +63247,12 @@ return x_60; else { lean_object* x_61; -lean_dec(x_47); +lean_dec_ref(x_47); lean_dec_ref(x_46); lean_dec(x_45); lean_dec(x_44); lean_dec(x_43); -lean_dec_ref(x_42); +lean_dec(x_42); lean_dec_ref(x_41); lean_dec_ref(x_40); lean_dec(x_1); @@ -64808,7 +64808,7 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__0____x40_Lean_Elab_StructInst___hyg_22547_() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__0____x40_Lean_Elab_StructInst___hyg_22553_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -64818,37 +64818,37 @@ x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__1____x40_Lean_Elab_StructInst___hyg_22547_() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__1____x40_Lean_Elab_StructInst___hyg_22553_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___regBuiltin_Lean_Elab_Term_StructInst_expandStructInstExpectedType__1___closed__3; -x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__0____x40_Lean_Elab_StructInst___hyg_22547_; +x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__0____x40_Lean_Elab_StructInst___hyg_22553_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__2____x40_Lean_Elab_StructInst___hyg_22547_() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__2____x40_Lean_Elab_StructInst___hyg_22553_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___closed__6; -x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__1____x40_Lean_Elab_StructInst___hyg_22547_; +x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__1____x40_Lean_Elab_StructInst___hyg_22553_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__3____x40_Lean_Elab_StructInst___hyg_22547_() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__3____x40_Lean_Elab_StructInst___hyg_22553_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___regBuiltin_Lean_Elab_Term_StructInst_expandStructInstExpectedType__1___closed__4; -x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__2____x40_Lean_Elab_StructInst___hyg_22547_; +x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__2____x40_Lean_Elab_StructInst___hyg_22553_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__4____x40_Lean_Elab_StructInst___hyg_22547_() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__4____x40_Lean_Elab_StructInst___hyg_22553_() { _start: { lean_object* x_1; @@ -64856,17 +64856,17 @@ x_1 = lean_mk_string_unchecked("initFn", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__5____x40_Lean_Elab_StructInst___hyg_22547_() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__5____x40_Lean_Elab_StructInst___hyg_22553_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_StructInst_initFn___closed__4____x40_Lean_Elab_StructInst___hyg_22547_; -x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__3____x40_Lean_Elab_StructInst___hyg_22547_; +x_1 = l_Lean_Elab_Term_StructInst_initFn___closed__4____x40_Lean_Elab_StructInst___hyg_22553_; +x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__3____x40_Lean_Elab_StructInst___hyg_22553_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__6____x40_Lean_Elab_StructInst___hyg_22547_() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__6____x40_Lean_Elab_StructInst___hyg_22553_() { _start: { lean_object* x_1; @@ -64874,47 +64874,47 @@ x_1 = lean_mk_string_unchecked("_@", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__7____x40_Lean_Elab_StructInst___hyg_22547_() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__7____x40_Lean_Elab_StructInst___hyg_22553_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_StructInst_initFn___closed__6____x40_Lean_Elab_StructInst___hyg_22547_; -x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__5____x40_Lean_Elab_StructInst___hyg_22547_; +x_1 = l_Lean_Elab_Term_StructInst_initFn___closed__6____x40_Lean_Elab_StructInst___hyg_22553_; +x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__5____x40_Lean_Elab_StructInst___hyg_22553_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__8____x40_Lean_Elab_StructInst___hyg_22547_() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__8____x40_Lean_Elab_StructInst___hyg_22553_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___closed__4; -x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__7____x40_Lean_Elab_StructInst___hyg_22547_; +x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__7____x40_Lean_Elab_StructInst___hyg_22553_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__9____x40_Lean_Elab_StructInst___hyg_22547_() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__9____x40_Lean_Elab_StructInst___hyg_22553_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___regBuiltin_Lean_Elab_Term_StructInst_expandStructInstExpectedType__1___closed__3; -x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__8____x40_Lean_Elab_StructInst___hyg_22547_; +x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__8____x40_Lean_Elab_StructInst___hyg_22553_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__10____x40_Lean_Elab_StructInst___hyg_22547_() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__10____x40_Lean_Elab_StructInst___hyg_22553_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___regBuiltin_Lean_Elab_Term_StructInst_expandStructInstExpectedType__1___closed__4; -x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__9____x40_Lean_Elab_StructInst___hyg_22547_; +x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__9____x40_Lean_Elab_StructInst___hyg_22553_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__11____x40_Lean_Elab_StructInst___hyg_22547_() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__11____x40_Lean_Elab_StructInst___hyg_22553_() { _start: { lean_object* x_1; @@ -64922,33 +64922,33 @@ x_1 = lean_mk_string_unchecked("_hyg", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__12____x40_Lean_Elab_StructInst___hyg_22547_() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__12____x40_Lean_Elab_StructInst___hyg_22553_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_StructInst_initFn___closed__11____x40_Lean_Elab_StructInst___hyg_22547_; -x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__10____x40_Lean_Elab_StructInst___hyg_22547_; +x_1 = l_Lean_Elab_Term_StructInst_initFn___closed__11____x40_Lean_Elab_StructInst___hyg_22553_; +x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__10____x40_Lean_Elab_StructInst___hyg_22553_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__13____x40_Lean_Elab_StructInst___hyg_22547_() { +static lean_object* _init_l_Lean_Elab_Term_StructInst_initFn___closed__13____x40_Lean_Elab_StructInst___hyg_22553_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(22547u); -x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__12____x40_Lean_Elab_StructInst___hyg_22547_; +x_1 = lean_unsigned_to_nat(22553u); +x_2 = l_Lean_Elab_Term_StructInst_initFn___closed__12____x40_Lean_Elab_StructInst___hyg_22553_; x_3 = l_Lean_Name_num___override(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_StructInst_initFn____x40_Lean_Elab_StructInst___hyg_22547_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_StructInst_initFn____x40_Lean_Elab_StructInst___hyg_22553_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; x_2 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addStructFieldAux___closed__1; x_3 = 0; -x_4 = l_Lean_Elab_Term_StructInst_initFn___closed__13____x40_Lean_Elab_StructInst___hyg_22547_; +x_4 = l_Lean_Elab_Term_StructInst_initFn___closed__13____x40_Lean_Elab_StructInst___hyg_22553_; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); if (lean_obj_tag(x_5) == 0) { @@ -65899,35 +65899,35 @@ lean_mark_persistent(l_Lean_Elab_Term_StructInst_elabStructInst___regBuiltin_Lea if (builtin) {res = l_Lean_Elab_Term_StructInst_elabStructInst___regBuiltin_Lean_Elab_Term_StructInst_elabStructInst_declRange__3(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_Elab_Term_StructInst_initFn___closed__0____x40_Lean_Elab_StructInst___hyg_22547_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__0____x40_Lean_Elab_StructInst___hyg_22547_(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__0____x40_Lean_Elab_StructInst___hyg_22547_); -l_Lean_Elab_Term_StructInst_initFn___closed__1____x40_Lean_Elab_StructInst___hyg_22547_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__1____x40_Lean_Elab_StructInst___hyg_22547_(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__1____x40_Lean_Elab_StructInst___hyg_22547_); -l_Lean_Elab_Term_StructInst_initFn___closed__2____x40_Lean_Elab_StructInst___hyg_22547_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__2____x40_Lean_Elab_StructInst___hyg_22547_(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__2____x40_Lean_Elab_StructInst___hyg_22547_); -l_Lean_Elab_Term_StructInst_initFn___closed__3____x40_Lean_Elab_StructInst___hyg_22547_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__3____x40_Lean_Elab_StructInst___hyg_22547_(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__3____x40_Lean_Elab_StructInst___hyg_22547_); -l_Lean_Elab_Term_StructInst_initFn___closed__4____x40_Lean_Elab_StructInst___hyg_22547_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__4____x40_Lean_Elab_StructInst___hyg_22547_(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__4____x40_Lean_Elab_StructInst___hyg_22547_); -l_Lean_Elab_Term_StructInst_initFn___closed__5____x40_Lean_Elab_StructInst___hyg_22547_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__5____x40_Lean_Elab_StructInst___hyg_22547_(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__5____x40_Lean_Elab_StructInst___hyg_22547_); -l_Lean_Elab_Term_StructInst_initFn___closed__6____x40_Lean_Elab_StructInst___hyg_22547_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__6____x40_Lean_Elab_StructInst___hyg_22547_(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__6____x40_Lean_Elab_StructInst___hyg_22547_); -l_Lean_Elab_Term_StructInst_initFn___closed__7____x40_Lean_Elab_StructInst___hyg_22547_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__7____x40_Lean_Elab_StructInst___hyg_22547_(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__7____x40_Lean_Elab_StructInst___hyg_22547_); -l_Lean_Elab_Term_StructInst_initFn___closed__8____x40_Lean_Elab_StructInst___hyg_22547_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__8____x40_Lean_Elab_StructInst___hyg_22547_(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__8____x40_Lean_Elab_StructInst___hyg_22547_); -l_Lean_Elab_Term_StructInst_initFn___closed__9____x40_Lean_Elab_StructInst___hyg_22547_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__9____x40_Lean_Elab_StructInst___hyg_22547_(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__9____x40_Lean_Elab_StructInst___hyg_22547_); -l_Lean_Elab_Term_StructInst_initFn___closed__10____x40_Lean_Elab_StructInst___hyg_22547_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__10____x40_Lean_Elab_StructInst___hyg_22547_(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__10____x40_Lean_Elab_StructInst___hyg_22547_); -l_Lean_Elab_Term_StructInst_initFn___closed__11____x40_Lean_Elab_StructInst___hyg_22547_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__11____x40_Lean_Elab_StructInst___hyg_22547_(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__11____x40_Lean_Elab_StructInst___hyg_22547_); -l_Lean_Elab_Term_StructInst_initFn___closed__12____x40_Lean_Elab_StructInst___hyg_22547_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__12____x40_Lean_Elab_StructInst___hyg_22547_(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__12____x40_Lean_Elab_StructInst___hyg_22547_); -l_Lean_Elab_Term_StructInst_initFn___closed__13____x40_Lean_Elab_StructInst___hyg_22547_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__13____x40_Lean_Elab_StructInst___hyg_22547_(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__13____x40_Lean_Elab_StructInst___hyg_22547_); -if (builtin) {res = l_Lean_Elab_Term_StructInst_initFn____x40_Lean_Elab_StructInst___hyg_22547_(lean_io_mk_world()); +}l_Lean_Elab_Term_StructInst_initFn___closed__0____x40_Lean_Elab_StructInst___hyg_22553_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__0____x40_Lean_Elab_StructInst___hyg_22553_(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__0____x40_Lean_Elab_StructInst___hyg_22553_); +l_Lean_Elab_Term_StructInst_initFn___closed__1____x40_Lean_Elab_StructInst___hyg_22553_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__1____x40_Lean_Elab_StructInst___hyg_22553_(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__1____x40_Lean_Elab_StructInst___hyg_22553_); +l_Lean_Elab_Term_StructInst_initFn___closed__2____x40_Lean_Elab_StructInst___hyg_22553_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__2____x40_Lean_Elab_StructInst___hyg_22553_(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__2____x40_Lean_Elab_StructInst___hyg_22553_); +l_Lean_Elab_Term_StructInst_initFn___closed__3____x40_Lean_Elab_StructInst___hyg_22553_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__3____x40_Lean_Elab_StructInst___hyg_22553_(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__3____x40_Lean_Elab_StructInst___hyg_22553_); +l_Lean_Elab_Term_StructInst_initFn___closed__4____x40_Lean_Elab_StructInst___hyg_22553_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__4____x40_Lean_Elab_StructInst___hyg_22553_(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__4____x40_Lean_Elab_StructInst___hyg_22553_); +l_Lean_Elab_Term_StructInst_initFn___closed__5____x40_Lean_Elab_StructInst___hyg_22553_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__5____x40_Lean_Elab_StructInst___hyg_22553_(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__5____x40_Lean_Elab_StructInst___hyg_22553_); +l_Lean_Elab_Term_StructInst_initFn___closed__6____x40_Lean_Elab_StructInst___hyg_22553_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__6____x40_Lean_Elab_StructInst___hyg_22553_(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__6____x40_Lean_Elab_StructInst___hyg_22553_); +l_Lean_Elab_Term_StructInst_initFn___closed__7____x40_Lean_Elab_StructInst___hyg_22553_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__7____x40_Lean_Elab_StructInst___hyg_22553_(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__7____x40_Lean_Elab_StructInst___hyg_22553_); +l_Lean_Elab_Term_StructInst_initFn___closed__8____x40_Lean_Elab_StructInst___hyg_22553_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__8____x40_Lean_Elab_StructInst___hyg_22553_(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__8____x40_Lean_Elab_StructInst___hyg_22553_); +l_Lean_Elab_Term_StructInst_initFn___closed__9____x40_Lean_Elab_StructInst___hyg_22553_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__9____x40_Lean_Elab_StructInst___hyg_22553_(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__9____x40_Lean_Elab_StructInst___hyg_22553_); +l_Lean_Elab_Term_StructInst_initFn___closed__10____x40_Lean_Elab_StructInst___hyg_22553_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__10____x40_Lean_Elab_StructInst___hyg_22553_(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__10____x40_Lean_Elab_StructInst___hyg_22553_); +l_Lean_Elab_Term_StructInst_initFn___closed__11____x40_Lean_Elab_StructInst___hyg_22553_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__11____x40_Lean_Elab_StructInst___hyg_22553_(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__11____x40_Lean_Elab_StructInst___hyg_22553_); +l_Lean_Elab_Term_StructInst_initFn___closed__12____x40_Lean_Elab_StructInst___hyg_22553_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__12____x40_Lean_Elab_StructInst___hyg_22553_(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__12____x40_Lean_Elab_StructInst___hyg_22553_); +l_Lean_Elab_Term_StructInst_initFn___closed__13____x40_Lean_Elab_StructInst___hyg_22553_ = _init_l_Lean_Elab_Term_StructInst_initFn___closed__13____x40_Lean_Elab_StructInst___hyg_22553_(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_initFn___closed__13____x40_Lean_Elab_StructInst___hyg_22553_); +if (builtin) {res = l_Lean_Elab_Term_StructInst_initFn____x40_Lean_Elab_StructInst___hyg_22553_(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)); diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index 1c64ef8210..1df7fffbbe 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -123,7 +123,6 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab static lean_object* l_Lean_addDocStringCore___at___Lean_addDocStringCore_x27___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructField_spec__2_spec__2___closed__1; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__8_spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_toVisibility(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___closed__1; lean_object* l_StateT_instMonad___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__33_spec__33___redArg___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_applyVisibility___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructField_spec__1___lam__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -151,6 +150,7 @@ lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, l LEAN_EXPORT lean_object* l_Lean_Elab_applyVisibility___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructField_spec__1___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_Structure_elabStructureCommand___lam__7(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkDefaults___closed__0; +lean_object* l_Lean_Environment_header(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_hasFieldName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct___redArg___boxed(lean_object**); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -171,6 +171,7 @@ lean_object* l_Lean_Option_register___at___Lean_Elab_initFn____x40_Lean_Elab_Aut static lean_object* l_Lean_Elab_elabAttr___at___Lean_Elab_elabAttrs___at___Lean_Elab_elabDeclAttrs___at___Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0_spec__0_spec__0_spec__0___lam__0___closed__1; uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__5___closed__1; +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__3___closed__0; lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_insertionSort_swapLoop___at___Array_insertionSort_traverse___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__26_spec__26(lean_object*, lean_object*, lean_object*, lean_object*); @@ -208,7 +209,6 @@ static lean_object* l_Lean_Meta_transform___at_____private_Lean_Elab_Structure_0 uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_85_(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabParamInfoUpdates_spec__0(uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__11___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabParamInfoUpdates_spec__4___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_findDocString_x3f(lean_object*, lean_object*, uint8_t, lean_object*); @@ -217,6 +217,7 @@ static lean_object* l_Lean_Elab_Command_Structure_checkValidFieldModifier___clos static lean_object* l_Lean_Elab_Command_Structure_reprStructFieldKind___closed__11____x40_Lean_Elab_Structure___hyg_1069_; lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__5___lam__0___closed__0; +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__3___closed__1; LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___Array_Array_repr___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__29_spec__30___lam__0(lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__10_spec__10___redArg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -234,6 +235,7 @@ static lean_object* l_Lean_Elab_Command_Structure_instInhabitedStructElabM___clo LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__35___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkFlatCtorExpr_spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_addDocStringCore___at___Lean_addDocStringCore_x27___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructField_spec__2_spec__2___lam__1(uint8_t, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); @@ -324,6 +326,7 @@ lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_____private_Lean_Meta LEAN_EXPORT lean_object* l_Lean_Elab_applyVisibility___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructField_spec__1___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addParentInstances_spec__0_spec__0_spec__0_spec__1_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transformWithCache_visit___at___Lean_Meta_transform___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs_spec__3_spec__3___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_has_loose_bvar(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkRemainingProjections_spec__1_spec__1___redArg___lam__0(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabParamInfoUpdates___closed__0; @@ -362,11 +365,13 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_elabAttrs LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkCtor___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go___redArg___closed__8; +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Elab_Command_Structure_structureSyntaxToView_spec__2(lean_object*, size_t, size_t); lean_object* l_Lean_LocalDecl_setType(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addParentInstances_spec__0_spec__0_spec__0_spec__6_spec__6___lam__0___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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addParentInstances_spec__0_spec__0_spec__0_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_Structure_instInhabitedStructView; +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__4___boxed(lean_object**); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields___closed__2; static lean_object* l_Lean_Elab_Command_Structure_instInhabitedStructFieldInfo___closed__1; static lean_object* l_Prod_repr___at___Array_Array_repr___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__29_spec__29___redArg___closed__0; @@ -389,7 +394,7 @@ LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_____private_Lean_Elab_Structur LEAN_EXPORT lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_replaceFieldInfo___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addProjections_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addProjections_spec__8___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___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go___redArg___closed__29; @@ -499,7 +504,6 @@ static lean_object* l_Array_foldrMUnsafe_fold___at_____private_Lean_Elab_Structu LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkRemainingProjections_spec__1_spec__1___redArg___lam__0___boxed(lean_object*, lean_object*); uint8_t l_Lean_Kernel_isDiagnosticsEnabled(lean_object*); lean_object* l_Lean_PersistentHashMap_insert___at___Lean_LocalContext_mkLocalDecl_spec__0___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__0___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getDefaultFnForField_x3f(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRangesFromSyntax___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructField_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -607,6 +611,7 @@ LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at_____private_Lean_Elab_Structu static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_typelessBinder_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Linter_logLintIf___at___Lean_Elab_Term_elabLetFunDecl_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_findFieldInfo_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_Structure_structureSyntaxToView___closed__4; @@ -634,6 +639,7 @@ LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_____private_Lean_Elab_St lean_object* lean_nat_to_int(lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go___redArg___closed__18; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructField___redArg___closed__9; +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__10___redArg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandParents_spec__0___redArg(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addFieldInheritedDefault___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -693,7 +699,7 @@ lean_object* l_Lean_Elab_Term_elabTerm___boxed(lean_object*, lean_object*, lean_ LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addParentInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__5___lam__0___closed__1; lean_object* l_Lean_Elab_toAttributeKind___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1___redArg___boxed(lean_object**); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go___redArg___closed__12; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabParamInfoUpdates_spec__0_spec__0(uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -785,6 +791,7 @@ LEAN_EXPORT lean_object* l_Lean_addTrace___at_____private_Lean_Elab_Structure_0_ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkFlatCtorExpr_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferDefaultValue___redArg___closed__1; +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_Structure_instInhabitedStructElabM___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields___closed__0; uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*); @@ -819,6 +826,7 @@ lean_object* l_Lean_Elab_expandDeclSig(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_elabAttrs___at___Lean_Elab_elabDeclAttrs___at___Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0_spec__0_spec__0_spec__1___boxed(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___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs___lam__2___closed__3; LEAN_EXPORT lean_object* l_Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__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*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_privateToUserName(lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldrM___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go_spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_insertionSort_swapLoop___at___Array_insertionSort_traverse___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__26_spec__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -832,6 +840,7 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structu LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addParentInstances_spec__15_spec__15(lean_object*, lean_object*, size_t, size_t); static lean_object* l_Lean_Elab_Command_initFn___closed__17____x40_Lean_Elab_Structure___hyg_3_; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__23_spec__23(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_Command_Structure_structureSyntaxToView_spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_isAssigned___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_solveParentMVars_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResultingUniversesForFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_getFieldDefaultValue_x3f___closed__0; @@ -880,6 +889,7 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structu LEAN_EXPORT lean_object* l_Lean_logAt___at___Lean_log___at___Lean_logWarning___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_getFieldDefaultValue_x3f_spec__6_spec__6_spec__6___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Elab_Command_Structure_structureSyntaxToView_spec__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_Meta_mkLetFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkFlatCtorExpr_spec__0___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferFieldType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -972,8 +982,10 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_____private_Lean_Elab_Stru LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParents_go_spec__1(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addParentInstances_spec__0_spec__0_spec__0_spec__1_spec__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, 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*); uint8_t l_Lean_Environment_hasUnsafe(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__5; static lean_object* l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0___closed__1; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go___redArg___closed__24; +lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_setStructureParents___at___Lean_Elab_Command_Structure_elabStructureCommand_spec__0___closed__2; extern lean_object* l_Lean_instInhabitedStructureState; static lean_object* l_Lean_Elab_Command_Structure_reprStructFieldKind___closed__9____x40_Lean_Elab_Structure___hyg_1069_; @@ -1083,6 +1095,7 @@ LEAN_EXPORT lean_object* l_Lean_MVarId_isAssigned___at_____private_Lean_Elab_Str static lean_object* l_panic___at___Lean_Meta_instantiateStructDefaultValueFn_x3f___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_getFieldDefaultValue_x3f_spec__0_spec__1___closed__4; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__33_spec__33(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addTermInfo_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__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*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_replaceFieldInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_getFieldDefault_x3f___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1108,7 +1121,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_Structure_runStructElabM(lean_objec LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParents_go_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___closed__0; lean_object* lean_array_fget(lean_object*, lean_object*); static lean_object* l_Lean_setStructureParents___at___Lean_Elab_Command_Structure_elabStructureCommand_spec__0___closed__5; lean_object* l_Lean_getFieldInfo_x3f(lean_object*, lean_object*, lean_object*); @@ -1132,7 +1144,6 @@ LEAN_EXPORT lean_object* l_Lean_logError___at_____private_Lean_Elab_Structure_0_ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go___redArg___closed__23; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addProjections_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkCtorLCtx_spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1___redArg___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Structure_0__Lean_setStructureResolutionOrder___at___Lean_computeStructureResolutionOrder___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__1_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_initFn___closed__11____x40_Lean_Elab_Structure___hyg_3_; lean_object* l_Lean_Meta_instMonadMetaM___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1272,6 +1283,7 @@ lean_object* l_Repr_addAppParen(lean_object*, lean_object*); lean_object* l_Array_toSubarray___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__1_spec__1___closed__18; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addDefaults___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___lam__0(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkCtorLCtx_spec__8_spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__0(lean_object*, lean_object*); @@ -1292,6 +1304,7 @@ static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at_____private_ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct___redArg___closed__16; lean_object* l_Lean_Elab_logException___at___Lean_Elab_withLogging___at_____private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore_spec__2_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__0; +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___lam__0___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*); uint8_t l_Lean_PersistentHashMap_contains___at___Lean_MVarId_isDelayedAssigned___at___Lean_Meta_getMVarsNoDelayed_spec__0_spec__0___redArg(lean_object*, lean_object*); lean_object* l_List_mapTR_loop___at___Lean_mkConstWithLevelParams___at___Lean_Meta_mkSimpCongrTheorem_spec__1_spec__2(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); @@ -1340,6 +1353,7 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsa LEAN_EXPORT lean_object* l_panic___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerStructure_spec__0_spec__0(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__4; extern lean_object* l_Lean_Linter_linter_deprecated; lean_object* l_Lean_Name_getString_x21(lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); @@ -1415,6 +1429,7 @@ static lean_object* l_Lean_Elab_Command_initFn___closed__1____x40_Lean_Elab_Stru uint8_t l_Lean_Expr_hasFVar(lean_object*); lean_object* l_Lean_FVarId_getDecl___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Modifiers_isNoncomputable(lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkRemainingProjections_spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandParents(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); @@ -1452,6 +1467,7 @@ lean_object* l_Lean_Elab_Term_getLevelNames___redArg(lean_object*, lean_object*) LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___Lean_Meta_transformWithCache_visit_visitLet___at___Lean_Meta_transformWithCache_visit___at___Lean_Meta_transform___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs_spec__3_spec__3_spec__10_spec__10___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at___Lean_Elab_checkNotAlreadyDeclared___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__0_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5___closed__0; +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct___redArg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_applyVisibility___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructField_spec__1___lam__1___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructFields_goFields___boxed(lean_object**); @@ -1578,7 +1594,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_transform___at_____private_Lean_Elab_Struct static lean_object* l_Lean_Elab_Command_Structure_structureSyntaxToView___closed__3; lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1___closed__0; -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x21___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkRemainingProjections_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerStructure_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1595,7 +1611,7 @@ lean_object* l_Lean_Expr_lam___override(lean_object*, lean_object*, lean_object* LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__6(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_Structure_reprStructFieldKind___closed__2____x40_Lean_Elab_Structure___hyg_1069_; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_solveParentMVars_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1(uint8_t, 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___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct___redArg___closed__2; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkFlatCtorExpr_spec__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*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addParentInstances_spec__19(lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -1605,6 +1621,7 @@ LEAN_EXPORT lean_object* l_Lean_getConstVal___at___Lean_mkConstWithLevelParams__ lean_object* lean_get_projection_info(lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabAttr___at___Lean_Elab_elabAttrs___at___Lean_Elab_elabDeclAttrs___at___Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0_spec__0_spec__0_spec__0___closed__0; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_fieldFromMsg___closed__1; +lean_object* l_Lean_Environment_setExporting(lean_object*, uint8_t); static lean_object* l_Lean_Elab_Command_Structure_instInhabitedState___closed__0; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__3___redArg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_normalize(lean_object*); @@ -3995,7 +4012,7 @@ return x_5; LEAN_EXPORT lean_object* l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; uint8_t x_42; lean_object* x_43; uint8_t x_44; uint8_t x_51; lean_object* x_65; lean_object* x_66; uint8_t x_67; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; lean_object* x_42; uint8_t x_43; uint8_t x_44; uint8_t x_51; lean_object* x_65; lean_object* x_66; uint8_t x_67; x_9 = lean_unsigned_to_nat(0u); x_10 = l_Lean_Syntax_getArg(x_1, x_9); x_11 = lean_unsigned_to_nat(1u); @@ -4046,9 +4063,9 @@ if (lean_obj_tag(x_19) == 0) { uint8_t x_20; lean_object* x_21; x_20 = 0; -x_21 = l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0___lam__1(x_1, x_18, x_15, x_16, x_17, x_12, x_9, x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_21 = l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0___lam__1(x_1, x_18, x_17, x_16, x_15, x_12, x_9, x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_12); -lean_dec(x_17); +lean_dec(x_15); return x_21; } else @@ -4076,7 +4093,7 @@ if (x_28 == 0) { lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_dec(x_18); -lean_dec(x_17); +lean_dec(x_15); lean_dec(x_12); lean_dec(x_1); x_29 = l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0___closed__7; @@ -4106,9 +4123,9 @@ else uint8_t x_35; lean_object* x_36; lean_dec(x_22); x_35 = 3; -x_36 = l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0___lam__1(x_1, x_18, x_15, x_16, x_17, x_12, x_9, x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_36 = l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0___lam__1(x_1, x_18, x_17, x_16, x_15, x_12, x_9, x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_12); -lean_dec(x_17); +lean_dec(x_15); return x_36; } } @@ -4117,9 +4134,9 @@ else uint8_t x_37; lean_object* x_38; lean_dec(x_22); x_37 = 1; -x_38 = l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0___lam__1(x_1, x_18, x_15, x_16, x_17, x_12, x_9, x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_38 = l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0___lam__1(x_1, x_18, x_17, x_16, x_15, x_12, x_9, x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_12); -lean_dec(x_17); +lean_dec(x_15); return x_38; } } @@ -4128,9 +4145,9 @@ else uint8_t x_39; lean_object* x_40; lean_dec(x_22); x_39 = 2; -x_40 = l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0___lam__1(x_1, x_18, x_15, x_16, x_17, x_12, x_9, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_40 = l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0___lam__1(x_1, x_18, x_17, x_16, x_15, x_12, x_9, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_12); -lean_dec(x_17); +lean_dec(x_15); return x_40; } } @@ -4199,8 +4216,8 @@ if (x_60 == 0) { uint8_t x_61; x_61 = 1; -x_42 = x_51; -x_43 = x_53; +x_42 = x_53; +x_43 = x_51; x_44 = x_61; goto block_50; } @@ -4208,8 +4225,8 @@ else { uint8_t x_62; x_62 = 0; -x_42 = x_51; -x_43 = x_53; +x_42 = x_53; +x_43 = x_51; x_44 = x_62; goto block_50; } @@ -4219,8 +4236,8 @@ else uint8_t x_63; lean_dec(x_55); x_63 = 2; -x_42 = x_51; -x_43 = x_53; +x_42 = x_53; +x_43 = x_51; x_44 = x_63; goto block_50; } @@ -4417,7 +4434,7 @@ static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_S _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("invalid 'protected' constructor in a 'private' structure", 56, 56); +x_1 = lean_mk_string_unchecked("invalid constructor visibility, must be private in presence of private fields", 77, 77); return x_1; } } @@ -4434,7 +4451,7 @@ static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_S _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("invalid 'private' constructor in a 'private' structure", 54, 54); +x_1 = lean_mk_string_unchecked("invalid 'protected' constructor in a 'private' structure", 56, 56); return x_1; } } @@ -4447,873 +4464,866 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor(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) { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__4() { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_11 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_defaultCtorName; -lean_inc(x_3); -x_12 = l_Lean_Name_append(x_3, x_11); -x_13 = lean_unsigned_to_nat(1u); -x_14 = l_Lean_Syntax_getArg(x_1, x_13); -x_15 = l_Lean_Syntax_mkSynthetic(x_14); -x_16 = lean_box(0); -x_36 = lean_unsigned_to_nat(4u); -x_37 = l_Lean_Syntax_getArg(x_1, x_36); -x_38 = l_Lean_Syntax_isNone(x_37); -if (x_38 == 0) +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid 'private' constructor in a 'private' structure", 54, 54); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__5() { +_start: { -lean_object* x_39; uint8_t x_40; -x_39 = l_Lean_Syntax_getArg(x_37, x_13); -lean_dec(x_37); -x_40 = l_Lean_Syntax_isNone(x_39); -if (x_40 == 0) +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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) { +_start: { -uint8_t x_41; +lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 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_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; uint8_t x_118; uint8_t x_119; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; uint8_t x_134; uint8_t x_144; +if (x_4 == 0) +{ +uint8_t x_210; +x_210 = 0; +x_144 = x_210; +goto block_209; +} +else +{ +uint8_t x_211; +x_211 = 2; +x_144 = x_211; +goto block_209; +} +block_51: +{ +lean_object* x_21; +lean_inc(x_19); +lean_inc_ref(x_18); +lean_inc(x_17); +lean_inc_ref(x_16); +lean_inc(x_15); +lean_inc_ref(x_14); +x_21 = l_Lean_Elab_applyVisibility___at___Lean_Elab_mkDeclName___at___Lean_Elab_expandDeclId___at___Lean_Elab_Term_expandDeclId_spec__0_spec__1_spec__3(x_13, x_12, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec_ref(x_21); +x_24 = lean_unsigned_to_nat(1u); +x_25 = l_Lean_Syntax_getArg(x_1, x_24); +x_26 = l_Lean_Syntax_mkSynthetic(x_25); +x_27 = lean_box(0); +lean_inc(x_22); +x_28 = l_Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1(x_22, x_26, x_27, x_14, x_15, x_16, x_17, x_18, x_19, x_23); +lean_dec(x_19); +lean_dec(x_17); +lean_dec_ref(x_16); lean_dec(x_15); -lean_dec(x_12); -x_41 = !lean_is_exclusive(x_8); -if (x_41 == 0) +lean_dec_ref(x_14); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_42 = lean_ctor_get(x_8, 5); -x_43 = lean_unsigned_to_nat(0u); -x_44 = l_Lean_Syntax_getArg(x_39, x_43); -lean_dec(x_39); -x_45 = l_Lean_Syntax_getArg(x_44, x_43); -x_46 = l_Lean_replaceRef(x_44, x_42); -lean_dec(x_42); -lean_ctor_set(x_8, 5, x_46); -lean_inc_ref(x_8); -lean_inc_ref(x_4); -x_47 = l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0(x_45, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_47) == 0) +lean_object* x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_30 = lean_ctor_get(x_28, 0); +lean_dec(x_30); +x_31 = lean_box(0); +x_32 = 0; +x_33 = 0; +x_34 = 0; +x_35 = l_Lean_Elab_Command_Structure_instInhabitedStructView___closed__0; +x_36 = lean_alloc_ctor(0, 3, 4); +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_31); +lean_ctor_set(x_36, 2, x_35); +lean_ctor_set_uint8(x_36, sizeof(void*)*3, x_13); +lean_ctor_set_uint8(x_36, sizeof(void*)*3 + 1, x_32); +lean_ctor_set_uint8(x_36, sizeof(void*)*3 + 2, x_33); +lean_ctor_set_uint8(x_36, sizeof(void*)*3 + 3, x_34); +lean_inc(x_26); +x_37 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_37, 0, x_26); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_37, 2, x_22); +lean_ctor_set(x_37, 3, x_26); +lean_ctor_set(x_37, 4, x_27); +lean_ctor_set(x_37, 5, x_31); +lean_ctor_set(x_28, 0, x_37); +return x_28; +} +else { -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; uint8_t x_57; lean_object* x_92; -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); +lean_object* x_38; lean_object* x_39; uint8_t x_40; uint8_t x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_38 = lean_ctor_get(x_28, 1); +lean_inc(x_38); +lean_dec(x_28); +x_39 = lean_box(0); +x_40 = 0; +x_41 = 0; +x_42 = 0; +x_43 = l_Lean_Elab_Command_Structure_instInhabitedStructView___closed__0; +x_44 = lean_alloc_ctor(0, 3, 4); +lean_ctor_set(x_44, 0, x_27); +lean_ctor_set(x_44, 1, x_39); +lean_ctor_set(x_44, 2, x_43); +lean_ctor_set_uint8(x_44, sizeof(void*)*3, x_13); +lean_ctor_set_uint8(x_44, sizeof(void*)*3 + 1, x_40); +lean_ctor_set_uint8(x_44, sizeof(void*)*3 + 2, x_41); +lean_ctor_set_uint8(x_44, sizeof(void*)*3 + 3, x_42); +lean_inc(x_26); +x_45 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_45, 0, x_26); +lean_ctor_set(x_45, 1, x_44); +lean_ctor_set(x_45, 2, x_22); +lean_ctor_set(x_45, 3, x_26); +lean_ctor_set(x_45, 4, x_27); +lean_ctor_set(x_45, 5, x_39); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_38); +return x_46; +} +} +else +{ +uint8_t x_47; +lean_dec(x_19); +lean_dec_ref(x_18); +lean_dec(x_17); +lean_dec_ref(x_16); +lean_dec(x_15); +lean_dec_ref(x_14); +x_47 = !lean_is_exclusive(x_21); +if (x_47 == 0) +{ +return x_21; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_21, 0); +x_49 = lean_ctor_get(x_21, 1); lean_inc(x_49); -lean_dec_ref(x_47); -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -lean_inc_ref(x_6); -lean_inc(x_5); -lean_inc_ref(x_4); lean_inc(x_48); -x_92 = l_Lean_Elab_Command_checkValidCtorModifier___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__5(x_48, x_4, x_5, x_6, x_7, x_8, x_9, x_49); -if (lean_obj_tag(x_92) == 0) -{ -lean_object* x_93; uint8_t x_94; uint8_t x_104; -x_93 = lean_ctor_get(x_92, 1); -lean_inc(x_93); -lean_dec_ref(x_92); -x_104 = l_Lean_Elab_Modifiers_isPrivate(x_48); -if (x_104 == 0) -{ -x_94 = x_104; -goto block_103; -} -else -{ -uint8_t x_105; -x_105 = l_Lean_Elab_Modifiers_isPrivate(x_2); -x_94 = x_105; -goto block_103; -} -block_103: -{ -if (x_94 == 0) -{ -uint8_t x_95; -x_95 = l_Lean_Elab_Modifiers_isProtected(x_48); -if (x_95 == 0) -{ -x_50 = x_93; -x_51 = x_8; -x_52 = x_9; -x_53 = x_4; -x_54 = x_5; -x_55 = x_7; -x_56 = x_6; -x_57 = x_95; -goto block_91; -} -else -{ -uint8_t x_96; -x_96 = l_Lean_Elab_Modifiers_isPrivate(x_2); -x_50 = x_93; -x_51 = x_8; -x_52 = x_9; -x_53 = x_4; -x_54 = x_5; -x_55 = x_7; -x_56 = x_6; -x_57 = x_96; -goto block_91; -} -} -else -{ -lean_object* x_97; lean_object* x_98; uint8_t x_99; -lean_dec(x_48); -lean_dec(x_44); -lean_dec(x_3); -x_97 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__3; -x_98 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_97, x_4, x_5, x_6, x_7, x_8, x_9, x_93); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_5); -x_99 = !lean_is_exclusive(x_98); -if (x_99 == 0) -{ -return x_98; -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_98, 0); -x_101 = lean_ctor_get(x_98, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_98); -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -return x_102; +lean_dec(x_21); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; } } } -} -else +block_90: { -uint8_t x_106; -lean_dec(x_48); -lean_dec_ref(x_8); -lean_dec(x_44); -lean_dec(x_9); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_3); -x_106 = !lean_is_exclusive(x_92); -if (x_106 == 0) -{ -return x_92; -} -else -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_92, 0); -x_108 = lean_ctor_get(x_92, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_92); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_107); -lean_ctor_set(x_109, 1, x_108); -return x_109; -} -} -block_91: -{ -if (x_57 == 0) -{ -lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_58 = lean_ctor_get(x_48, 1); -lean_inc(x_58); -x_59 = lean_ctor_get_uint8(x_48, sizeof(void*)*3); -x_60 = l_Lean_Syntax_getArg(x_44, x_13); -lean_dec(x_44); -x_61 = l_Lean_Syntax_getId(x_60); -x_62 = l_Lean_Name_append(x_3, x_61); -lean_inc(x_52); -lean_inc_ref(x_51); -lean_inc(x_55); -lean_inc_ref(x_56); -lean_inc(x_54); -lean_inc_ref(x_53); -x_63 = l_Lean_Elab_applyVisibility___at___Lean_Elab_mkDeclName___at___Lean_Elab_expandDeclId___at___Lean_Elab_Term_expandDeclId_spec__0_spec__1_spec__3(x_59, x_62, x_53, x_54, x_56, x_55, x_51, x_52, x_50); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec_ref(x_63); -lean_inc_ref(x_51); -lean_inc_ref(x_53); -lean_inc(x_64); -x_66 = l_Lean_addDocString_x27___at___Lean_Elab_expandDeclId___at___Lean_Elab_Term_expandDeclId_spec__0_spec__7(x_64, x_58, x_53, x_54, x_56, x_55, x_51, x_52, x_65); -lean_dec(x_58); -if (lean_obj_tag(x_66) == 0) -{ -lean_object* x_67; lean_object* x_68; uint8_t x_69; -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -lean_dec_ref(x_66); -lean_inc(x_64); -x_68 = l_Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1(x_64, x_60, x_16, x_53, x_54, x_56, x_55, x_51, x_52, x_67); +lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_62 = lean_ctor_get(x_54, 1); +lean_inc(x_62); +x_63 = lean_ctor_get_uint8(x_54, sizeof(void*)*3); +x_64 = l_Lean_Syntax_getArg(x_52, x_53); lean_dec(x_52); -lean_dec(x_55); -lean_dec_ref(x_56); -lean_dec(x_54); -lean_dec_ref(x_53); -x_69 = !lean_is_exclusive(x_68); -if (x_69 == 0) -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_68, 0); -lean_dec(x_70); -x_71 = lean_box(0); +x_65 = l_Lean_Syntax_getId(x_64); +x_66 = l_Lean_Name_append(x_3, x_65); lean_inc(x_60); -x_72 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_72, 0, x_60); -lean_ctor_set(x_72, 1, x_48); -lean_ctor_set(x_72, 2, x_64); -lean_ctor_set(x_72, 3, x_60); -lean_ctor_set(x_72, 4, x_16); -lean_ctor_set(x_72, 5, x_71); -lean_ctor_set(x_68, 0, x_72); -return x_68; +lean_inc_ref(x_59); +lean_inc(x_58); +lean_inc_ref(x_57); +lean_inc(x_56); +lean_inc_ref(x_55); +x_67 = l_Lean_Elab_applyVisibility___at___Lean_Elab_mkDeclName___at___Lean_Elab_expandDeclId___at___Lean_Elab_Term_expandDeclId_spec__0_spec__1_spec__3(x_63, x_66, x_55, x_56, x_57, x_58, x_59, x_60, x_61); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec_ref(x_67); +lean_inc_ref(x_59); +lean_inc_ref(x_55); +lean_inc(x_68); +x_70 = l_Lean_addDocString_x27___at___Lean_Elab_expandDeclId___at___Lean_Elab_Term_expandDeclId_spec__0_spec__7(x_68, x_62, x_55, x_56, x_57, x_58, x_59, x_60, x_69); +lean_dec(x_62); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec_ref(x_70); +x_72 = lean_box(0); +lean_inc(x_68); +x_73 = l_Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1(x_68, x_64, x_72, x_55, x_56, x_57, x_58, x_59, x_60, x_71); +lean_dec(x_60); +lean_dec(x_58); +lean_dec_ref(x_57); +lean_dec(x_56); +lean_dec_ref(x_55); +x_74 = !lean_is_exclusive(x_73); +if (x_74 == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_73, 0); +lean_dec(x_75); +x_76 = lean_box(0); +lean_inc(x_64); +x_77 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_77, 0, x_64); +lean_ctor_set(x_77, 1, x_54); +lean_ctor_set(x_77, 2, x_68); +lean_ctor_set(x_77, 3, x_64); +lean_ctor_set(x_77, 4, x_72); +lean_ctor_set(x_77, 5, x_76); +lean_ctor_set(x_73, 0, x_77); +return x_73; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_73 = lean_ctor_get(x_68, 1); -lean_inc(x_73); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_78 = lean_ctor_get(x_73, 1); +lean_inc(x_78); +lean_dec(x_73); +x_79 = lean_box(0); +lean_inc(x_64); +x_80 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_80, 0, x_64); +lean_ctor_set(x_80, 1, x_54); +lean_ctor_set(x_80, 2, x_68); +lean_ctor_set(x_80, 3, x_64); +lean_ctor_set(x_80, 4, x_72); +lean_ctor_set(x_80, 5, x_79); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_78); +return x_81; +} +} +else +{ +uint8_t x_82; lean_dec(x_68); -x_74 = lean_box(0); -lean_inc(x_60); -x_75 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_75, 0, x_60); -lean_ctor_set(x_75, 1, x_48); -lean_ctor_set(x_75, 2, x_64); -lean_ctor_set(x_75, 3, x_60); -lean_ctor_set(x_75, 4, x_16); -lean_ctor_set(x_75, 5, x_74); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_73); -return x_76; -} -} -else -{ -uint8_t x_77; lean_dec(x_64); lean_dec(x_60); -lean_dec_ref(x_56); -lean_dec(x_55); -lean_dec(x_54); -lean_dec_ref(x_53); -lean_dec(x_52); -lean_dec_ref(x_51); -lean_dec(x_48); -x_77 = !lean_is_exclusive(x_66); -if (x_77 == 0) -{ -return x_66; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_66, 0); -x_79 = lean_ctor_get(x_66, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_66); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; -} -} -} -else -{ -uint8_t x_81; -lean_dec(x_60); +lean_dec_ref(x_59); lean_dec(x_58); -lean_dec_ref(x_56); -lean_dec(x_55); -lean_dec(x_54); -lean_dec_ref(x_53); -lean_dec(x_52); -lean_dec_ref(x_51); -lean_dec(x_48); -x_81 = !lean_is_exclusive(x_63); -if (x_81 == 0) +lean_dec_ref(x_57); +lean_dec(x_56); +lean_dec_ref(x_55); +lean_dec_ref(x_54); +x_82 = !lean_is_exclusive(x_70); +if (x_82 == 0) { -return x_63; +return x_70; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_63, 0); -x_83 = lean_ctor_get(x_63, 1); +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_70, 0); +x_84 = lean_ctor_get(x_70, 1); +lean_inc(x_84); lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_63); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; +lean_dec(x_70); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +return x_85; } } } else { -lean_object* x_85; lean_object* x_86; uint8_t x_87; -lean_dec(x_48); -lean_dec(x_44); -lean_dec(x_3); -x_85 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__1; -x_86 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_85, x_53, x_54, x_56, x_55, x_51, x_52, x_50); -lean_dec(x_52); -lean_dec_ref(x_51); -lean_dec(x_55); -lean_dec_ref(x_56); -lean_dec(x_54); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +uint8_t x_86; +lean_dec(x_64); +lean_dec(x_62); +lean_dec(x_60); +lean_dec_ref(x_59); +lean_dec(x_58); +lean_dec_ref(x_57); +lean_dec(x_56); +lean_dec_ref(x_55); +lean_dec_ref(x_54); +x_86 = !lean_is_exclusive(x_67); +if (x_86 == 0) { -return x_86; +return x_67; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_86, 0); -x_89 = lean_ctor_get(x_86, 1); -lean_inc(x_89); +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_67, 0); +x_88 = lean_ctor_get(x_67, 1); lean_inc(x_88); -lean_dec(x_86); -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -return x_90; +lean_inc(x_87); +lean_dec(x_67); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; } } } +block_107: +{ +if (x_4 == 0) +{ +x_52 = x_91; +x_53 = x_94; +x_54 = x_96; +x_55 = x_99; +x_56 = x_98; +x_57 = x_95; +x_58 = x_97; +x_59 = x_92; +x_60 = x_93; +x_61 = x_100; +goto block_90; } else { -uint8_t x_110; -lean_dec_ref(x_8); -lean_dec(x_44); -lean_dec(x_9); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); +lean_object* x_101; lean_object* x_102; uint8_t x_103; +lean_dec_ref(x_96); +lean_dec(x_91); lean_dec(x_3); -x_110 = !lean_is_exclusive(x_47); -if (x_110 == 0) +x_101 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__1; +x_102 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_101, x_99, x_98, x_95, x_97, x_92, x_93, x_100); +lean_dec(x_93); +lean_dec_ref(x_92); +lean_dec(x_97); +lean_dec_ref(x_95); +lean_dec(x_98); +x_103 = !lean_is_exclusive(x_102); +if (x_103 == 0) { -return x_47; +return x_102; } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_47, 0); -x_112 = lean_ctor_get(x_47, 1); -lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_47); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -return x_113; +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_102, 0); +x_105 = lean_ctor_get(x_102, 1); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_102); +x_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set(x_106, 1, x_105); +return x_106; +} +} +} +block_127: +{ +if (x_119 == 0) +{ +uint8_t x_120; +x_120 = l_Lean_Elab_Modifiers_isPrivate(x_114); +if (x_120 == 0) +{ +x_91 = x_108; +x_92 = x_117; +x_93 = x_110; +x_94 = x_112; +x_95 = x_113; +x_96 = x_114; +x_97 = x_111; +x_98 = x_116; +x_99 = x_109; +x_100 = x_115; +goto block_107; +} +else +{ +if (x_118 == 0) +{ +x_52 = x_108; +x_53 = x_112; +x_54 = x_114; +x_55 = x_109; +x_56 = x_116; +x_57 = x_113; +x_58 = x_111; +x_59 = x_117; +x_60 = x_110; +x_61 = x_115; +goto block_90; +} +else +{ +x_91 = x_108; +x_92 = x_117; +x_93 = x_110; +x_94 = x_112; +x_95 = x_113; +x_96 = x_114; +x_97 = x_111; +x_98 = x_116; +x_99 = x_109; +x_100 = x_115; +goto block_107; } } } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t 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; -x_114 = lean_ctor_get(x_8, 0); -x_115 = lean_ctor_get(x_8, 1); -x_116 = lean_ctor_get(x_8, 2); -x_117 = lean_ctor_get(x_8, 3); -x_118 = lean_ctor_get(x_8, 4); -x_119 = lean_ctor_get(x_8, 5); -x_120 = lean_ctor_get(x_8, 6); -x_121 = lean_ctor_get(x_8, 7); -x_122 = lean_ctor_get(x_8, 8); -x_123 = lean_ctor_get(x_8, 9); -x_124 = lean_ctor_get(x_8, 10); -x_125 = lean_ctor_get_uint8(x_8, sizeof(void*)*13); -x_126 = lean_ctor_get(x_8, 11); -x_127 = lean_ctor_get_uint8(x_8, sizeof(void*)*13 + 1); -x_128 = lean_ctor_get(x_8, 12); -lean_inc(x_128); -lean_inc(x_126); +lean_object* x_121; lean_object* x_122; uint8_t x_123; +lean_dec_ref(x_114); +lean_dec(x_108); +lean_dec(x_3); +x_121 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__3; +x_122 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_121, x_109, x_116, x_113, x_111, x_117, x_110, x_115); +lean_dec(x_110); +lean_dec_ref(x_117); +lean_dec(x_111); +lean_dec_ref(x_113); +lean_dec(x_116); +x_123 = !lean_is_exclusive(x_122); +if (x_123 == 0) +{ +return x_122; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_122, 0); +x_125 = lean_ctor_get(x_122, 1); +lean_inc(x_125); lean_inc(x_124); -lean_inc(x_123); -lean_inc(x_122); -lean_inc(x_121); -lean_inc(x_120); -lean_inc(x_119); -lean_inc(x_118); -lean_inc(x_117); -lean_inc(x_116); -lean_inc(x_115); -lean_inc(x_114); +lean_dec(x_122); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +} +block_143: +{ +if (x_134 == 0) +{ +uint8_t x_135; +x_135 = l_Lean_Elab_Modifiers_isProtected(x_132); +if (x_135 == 0) +{ +x_108 = x_128; +x_109 = x_5; +x_110 = x_10; +x_111 = x_8; +x_112 = x_131; +x_113 = x_7; +x_114 = x_132; +x_115 = x_129; +x_116 = x_6; +x_117 = x_130; +x_118 = x_133; +x_119 = x_135; +goto block_127; +} +else +{ +uint8_t x_136; +x_136 = l_Lean_Elab_Modifiers_isPrivate(x_2); +x_108 = x_128; +x_109 = x_5; +x_110 = x_10; +x_111 = x_8; +x_112 = x_131; +x_113 = x_7; +x_114 = x_132; +x_115 = x_129; +x_116 = x_6; +x_117 = x_130; +x_118 = x_133; +x_119 = x_136; +goto block_127; +} +} +else +{ +lean_object* x_137; lean_object* x_138; uint8_t x_139; +lean_dec_ref(x_132); +lean_dec(x_128); +lean_dec(x_3); +x_137 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__5; +x_138 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_137, x_5, x_6, x_7, x_8, x_130, x_10, x_129); +lean_dec(x_10); +lean_dec_ref(x_130); lean_dec(x_8); -x_129 = lean_unsigned_to_nat(0u); -x_130 = l_Lean_Syntax_getArg(x_39, x_129); -lean_dec(x_39); -x_131 = l_Lean_Syntax_getArg(x_130, x_129); -x_132 = l_Lean_replaceRef(x_130, x_119); -lean_dec(x_119); -x_133 = lean_alloc_ctor(0, 13, 2); -lean_ctor_set(x_133, 0, x_114); -lean_ctor_set(x_133, 1, x_115); -lean_ctor_set(x_133, 2, x_116); -lean_ctor_set(x_133, 3, x_117); -lean_ctor_set(x_133, 4, x_118); -lean_ctor_set(x_133, 5, x_132); -lean_ctor_set(x_133, 6, x_120); -lean_ctor_set(x_133, 7, x_121); -lean_ctor_set(x_133, 8, x_122); -lean_ctor_set(x_133, 9, x_123); -lean_ctor_set(x_133, 10, x_124); -lean_ctor_set(x_133, 11, x_126); -lean_ctor_set(x_133, 12, x_128); -lean_ctor_set_uint8(x_133, sizeof(void*)*13, x_125); -lean_ctor_set_uint8(x_133, sizeof(void*)*13 + 1, x_127); -lean_inc_ref(x_133); -lean_inc_ref(x_4); -x_134 = l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0(x_131, x_4, x_5, x_6, x_7, x_133, x_9, x_10); -if (lean_obj_tag(x_134) == 0) +lean_dec_ref(x_7); +lean_dec(x_6); +x_139 = !lean_is_exclusive(x_138); +if (x_139 == 0) { -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; uint8_t x_144; lean_object* x_176; -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_134, 1); -lean_inc(x_136); -lean_dec_ref(x_134); -lean_inc(x_9); -lean_inc_ref(x_133); -lean_inc(x_7); -lean_inc_ref(x_6); -lean_inc(x_5); -lean_inc_ref(x_4); -lean_inc(x_135); -x_176 = l_Lean_Elab_Command_checkValidCtorModifier___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__5(x_135, x_4, x_5, x_6, x_7, x_133, x_9, x_136); -if (lean_obj_tag(x_176) == 0) -{ -lean_object* x_177; uint8_t x_178; uint8_t x_188; -x_177 = lean_ctor_get(x_176, 1); -lean_inc(x_177); -lean_dec_ref(x_176); -x_188 = l_Lean_Elab_Modifiers_isPrivate(x_135); -if (x_188 == 0) -{ -x_178 = x_188; -goto block_187; +return x_138; } else { -uint8_t x_189; -x_189 = l_Lean_Elab_Modifiers_isPrivate(x_2); -x_178 = x_189; -goto block_187; -} -block_187: -{ -if (x_178 == 0) -{ -uint8_t x_179; -x_179 = l_Lean_Elab_Modifiers_isProtected(x_135); -if (x_179 == 0) -{ -x_137 = x_177; -x_138 = x_133; -x_139 = x_9; -x_140 = x_4; -x_141 = x_5; -x_142 = x_7; -x_143 = x_6; -x_144 = x_179; -goto block_175; -} -else -{ -uint8_t x_180; -x_180 = l_Lean_Elab_Modifiers_isPrivate(x_2); -x_137 = x_177; -x_138 = x_133; -x_139 = x_9; -x_140 = x_4; -x_141 = x_5; -x_142 = x_7; -x_143 = x_6; -x_144 = x_180; -goto block_175; -} -} -else -{ -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_dec(x_135); -lean_dec(x_130); -lean_dec(x_3); -x_181 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__3; -x_182 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_181, x_4, x_5, x_6, x_7, x_133, x_9, x_177); -lean_dec(x_9); -lean_dec_ref(x_133); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_5); -x_183 = lean_ctor_get(x_182, 0); -lean_inc(x_183); -x_184 = lean_ctor_get(x_182, 1); -lean_inc(x_184); -if (lean_is_exclusive(x_182)) { - lean_ctor_release(x_182, 0); - lean_ctor_release(x_182, 1); - x_185 = x_182; -} else { - lean_dec_ref(x_182); - x_185 = lean_box(0); -} -if (lean_is_scalar(x_185)) { - x_186 = lean_alloc_ctor(1, 2, 0); -} else { - x_186 = x_185; -} -lean_ctor_set(x_186, 0, x_183); -lean_ctor_set(x_186, 1, x_184); -return x_186; -} -} -} -else -{ -lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; -lean_dec(x_135); -lean_dec_ref(x_133); -lean_dec(x_130); -lean_dec(x_9); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_3); -x_190 = lean_ctor_get(x_176, 0); -lean_inc(x_190); -x_191 = lean_ctor_get(x_176, 1); -lean_inc(x_191); -if (lean_is_exclusive(x_176)) { - lean_ctor_release(x_176, 0); - lean_ctor_release(x_176, 1); - x_192 = x_176; -} else { - lean_dec_ref(x_176); - x_192 = lean_box(0); -} -if (lean_is_scalar(x_192)) { - x_193 = lean_alloc_ctor(1, 2, 0); -} else { - x_193 = x_192; -} -lean_ctor_set(x_193, 0, x_190); -lean_ctor_set(x_193, 1, x_191); -return x_193; -} -block_175: -{ -if (x_144 == 0) -{ -lean_object* x_145; uint8_t x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_145 = lean_ctor_get(x_135, 1); -lean_inc(x_145); -x_146 = lean_ctor_get_uint8(x_135, sizeof(void*)*3); -x_147 = l_Lean_Syntax_getArg(x_130, x_13); -lean_dec(x_130); -x_148 = l_Lean_Syntax_getId(x_147); -x_149 = l_Lean_Name_append(x_3, x_148); -lean_inc(x_139); -lean_inc_ref(x_138); -lean_inc(x_142); -lean_inc_ref(x_143); +lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_140 = lean_ctor_get(x_138, 0); +x_141 = lean_ctor_get(x_138, 1); lean_inc(x_141); -lean_inc_ref(x_140); -x_150 = l_Lean_Elab_applyVisibility___at___Lean_Elab_mkDeclName___at___Lean_Elab_expandDeclId___at___Lean_Elab_Term_expandDeclId_spec__0_spec__1_spec__3(x_146, x_149, x_140, x_141, x_143, x_142, x_138, x_139, x_137); -if (lean_obj_tag(x_150) == 0) -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 1); -lean_inc(x_152); -lean_dec_ref(x_150); -lean_inc_ref(x_138); -lean_inc_ref(x_140); -lean_inc(x_151); -x_153 = l_Lean_addDocString_x27___at___Lean_Elab_expandDeclId___at___Lean_Elab_Term_expandDeclId_spec__0_spec__7(x_151, x_145, x_140, x_141, x_143, x_142, x_138, x_139, x_152); -lean_dec(x_145); -if (lean_obj_tag(x_153) == 0) -{ -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; -x_154 = lean_ctor_get(x_153, 1); -lean_inc(x_154); -lean_dec_ref(x_153); -lean_inc(x_151); -x_155 = l_Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1(x_151, x_147, x_16, x_140, x_141, x_143, x_142, x_138, x_139, x_154); -lean_dec(x_139); -lean_dec(x_142); -lean_dec_ref(x_143); -lean_dec(x_141); -lean_dec_ref(x_140); -x_156 = lean_ctor_get(x_155, 1); -lean_inc(x_156); -if (lean_is_exclusive(x_155)) { - lean_ctor_release(x_155, 0); - lean_ctor_release(x_155, 1); - x_157 = x_155; -} else { - lean_dec_ref(x_155); - x_157 = lean_box(0); +lean_inc(x_140); +lean_dec(x_138); +x_142 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_142, 0, x_140); +lean_ctor_set(x_142, 1, x_141); +return x_142; } -x_158 = lean_box(0); -lean_inc(x_147); -x_159 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_159, 0, x_147); -lean_ctor_set(x_159, 1, x_135); -lean_ctor_set(x_159, 2, x_151); -lean_ctor_set(x_159, 3, x_147); -lean_ctor_set(x_159, 4, x_16); -lean_ctor_set(x_159, 5, x_158); -if (lean_is_scalar(x_157)) { - x_160 = lean_alloc_ctor(0, 2, 0); -} else { - x_160 = x_157; } -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_156); -return x_160; } -else +block_209: { -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; +x_145 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_defaultCtorName; +lean_inc(x_3); +x_146 = l_Lean_Name_append(x_3, x_145); +x_147 = lean_unsigned_to_nat(4u); +x_148 = l_Lean_Syntax_getArg(x_1, x_147); +x_149 = l_Lean_Syntax_isNone(x_148); +if (x_149 == 0) +{ +lean_object* x_150; lean_object* x_151; uint8_t x_152; +x_150 = lean_unsigned_to_nat(1u); +x_151 = l_Lean_Syntax_getArg(x_148, x_150); +lean_dec(x_148); +x_152 = l_Lean_Syntax_isNone(x_151); +if (x_152 == 0) +{ +uint8_t x_153; +lean_dec(x_146); +x_153 = !lean_is_exclusive(x_9); +if (x_153 == 0) +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_154 = lean_ctor_get(x_9, 5); +x_155 = lean_unsigned_to_nat(0u); +x_156 = l_Lean_Syntax_getArg(x_151, x_155); lean_dec(x_151); -lean_dec(x_147); -lean_dec_ref(x_143); -lean_dec(x_142); -lean_dec(x_141); -lean_dec_ref(x_140); -lean_dec(x_139); -lean_dec_ref(x_138); -lean_dec(x_135); -x_161 = lean_ctor_get(x_153, 0); +x_157 = l_Lean_Syntax_getArg(x_156, x_155); +x_158 = l_Lean_replaceRef(x_156, x_154); +lean_dec(x_154); +lean_ctor_set(x_9, 5, x_158); +lean_inc_ref(x_9); +lean_inc_ref(x_5); +x_159 = l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0(x_157, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_159) == 0) +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_160 = lean_ctor_get(x_159, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_159, 1); lean_inc(x_161); -x_162 = lean_ctor_get(x_153, 1); -lean_inc(x_162); -if (lean_is_exclusive(x_153)) { - lean_ctor_release(x_153, 0); - lean_ctor_release(x_153, 1); - x_163 = x_153; -} else { - lean_dec_ref(x_153); - x_163 = lean_box(0); +lean_dec_ref(x_159); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_160); +x_162 = l_Lean_Elab_Command_checkValidCtorModifier___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__5(x_160, x_5, x_6, x_7, x_8, x_9, x_10, x_161); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; uint8_t x_164; +x_163 = lean_ctor_get(x_162, 1); +lean_inc(x_163); +lean_dec_ref(x_162); +x_164 = l_Lean_Elab_Modifiers_isPrivate(x_160); +if (x_164 == 0) +{ +x_128 = x_156; +x_129 = x_163; +x_130 = x_9; +x_131 = x_150; +x_132 = x_160; +x_133 = x_152; +x_134 = x_164; +goto block_143; } -if (lean_is_scalar(x_163)) { - x_164 = lean_alloc_ctor(1, 2, 0); -} else { - x_164 = x_163; -} -lean_ctor_set(x_164, 0, x_161); -lean_ctor_set(x_164, 1, x_162); -return x_164; +else +{ +uint8_t x_165; +x_165 = l_Lean_Elab_Modifiers_isPrivate(x_2); +x_128 = x_156; +x_129 = x_163; +x_130 = x_9; +x_131 = x_150; +x_132 = x_160; +x_133 = x_152; +x_134 = x_165; +goto block_143; } } else { -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -lean_dec(x_147); -lean_dec(x_145); -lean_dec_ref(x_143); -lean_dec(x_142); -lean_dec(x_141); -lean_dec_ref(x_140); -lean_dec(x_139); -lean_dec_ref(x_138); -lean_dec(x_135); -x_165 = lean_ctor_get(x_150, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_150, 1); -lean_inc(x_166); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_167 = x_150; -} else { - lean_dec_ref(x_150); - x_167 = lean_box(0); -} -if (lean_is_scalar(x_167)) { - x_168 = lean_alloc_ctor(1, 2, 0); -} else { - x_168 = x_167; -} -lean_ctor_set(x_168, 0, x_165); -lean_ctor_set(x_168, 1, x_166); -return x_168; -} -} -else -{ -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_dec(x_135); -lean_dec(x_130); +uint8_t x_166; +lean_dec(x_160); +lean_dec_ref(x_9); +lean_dec(x_156); +lean_dec(x_10); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); lean_dec(x_3); -x_169 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__1; -x_170 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_169, x_140, x_141, x_143, x_142, x_138, x_139, x_137); -lean_dec(x_139); -lean_dec_ref(x_138); -lean_dec(x_142); -lean_dec_ref(x_143); -lean_dec(x_141); -x_171 = lean_ctor_get(x_170, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_170, 1); +x_166 = !lean_is_exclusive(x_162); +if (x_166 == 0) +{ +return x_162; +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_167 = lean_ctor_get(x_162, 0); +x_168 = lean_ctor_get(x_162, 1); +lean_inc(x_168); +lean_inc(x_167); +lean_dec(x_162); +x_169 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_169, 0, x_167); +lean_ctor_set(x_169, 1, x_168); +return x_169; +} +} +} +else +{ +uint8_t x_170; +lean_dec_ref(x_9); +lean_dec(x_156); +lean_dec(x_10); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_3); +x_170 = !lean_is_exclusive(x_159); +if (x_170 == 0) +{ +return x_159; +} +else +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; +x_171 = lean_ctor_get(x_159, 0); +x_172 = lean_ctor_get(x_159, 1); lean_inc(x_172); -if (lean_is_exclusive(x_170)) { - lean_ctor_release(x_170, 0); - lean_ctor_release(x_170, 1); - x_173 = x_170; -} else { - lean_dec_ref(x_170); - x_173 = lean_box(0); -} -if (lean_is_scalar(x_173)) { - x_174 = lean_alloc_ctor(1, 2, 0); -} else { - x_174 = x_173; -} -lean_ctor_set(x_174, 0, x_171); -lean_ctor_set(x_174, 1, x_172); -return x_174; +lean_inc(x_171); +lean_dec(x_159); +x_173 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_173, 0, x_171); +lean_ctor_set(x_173, 1, x_172); +return x_173; } } } else { -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; -lean_dec_ref(x_133); -lean_dec(x_130); +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; uint8_t x_185; lean_object* x_186; uint8_t x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_174 = lean_ctor_get(x_9, 0); +x_175 = lean_ctor_get(x_9, 1); +x_176 = lean_ctor_get(x_9, 2); +x_177 = lean_ctor_get(x_9, 3); +x_178 = lean_ctor_get(x_9, 4); +x_179 = lean_ctor_get(x_9, 5); +x_180 = lean_ctor_get(x_9, 6); +x_181 = lean_ctor_get(x_9, 7); +x_182 = lean_ctor_get(x_9, 8); +x_183 = lean_ctor_get(x_9, 9); +x_184 = lean_ctor_get(x_9, 10); +x_185 = lean_ctor_get_uint8(x_9, sizeof(void*)*13); +x_186 = lean_ctor_get(x_9, 11); +x_187 = lean_ctor_get_uint8(x_9, sizeof(void*)*13 + 1); +x_188 = lean_ctor_get(x_9, 12); +lean_inc(x_188); +lean_inc(x_186); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); +lean_inc(x_181); +lean_inc(x_180); +lean_inc(x_179); +lean_inc(x_178); +lean_inc(x_177); +lean_inc(x_176); +lean_inc(x_175); +lean_inc(x_174); lean_dec(x_9); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_3); -x_194 = lean_ctor_get(x_134, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_134, 1); +x_189 = lean_unsigned_to_nat(0u); +x_190 = l_Lean_Syntax_getArg(x_151, x_189); +lean_dec(x_151); +x_191 = l_Lean_Syntax_getArg(x_190, x_189); +x_192 = l_Lean_replaceRef(x_190, x_179); +lean_dec(x_179); +x_193 = lean_alloc_ctor(0, 13, 2); +lean_ctor_set(x_193, 0, x_174); +lean_ctor_set(x_193, 1, x_175); +lean_ctor_set(x_193, 2, x_176); +lean_ctor_set(x_193, 3, x_177); +lean_ctor_set(x_193, 4, x_178); +lean_ctor_set(x_193, 5, x_192); +lean_ctor_set(x_193, 6, x_180); +lean_ctor_set(x_193, 7, x_181); +lean_ctor_set(x_193, 8, x_182); +lean_ctor_set(x_193, 9, x_183); +lean_ctor_set(x_193, 10, x_184); +lean_ctor_set(x_193, 11, x_186); +lean_ctor_set(x_193, 12, x_188); +lean_ctor_set_uint8(x_193, sizeof(void*)*13, x_185); +lean_ctor_set_uint8(x_193, sizeof(void*)*13 + 1, x_187); +lean_inc_ref(x_193); +lean_inc_ref(x_5); +x_194 = l_Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0(x_191, x_5, x_6, x_7, x_8, x_193, x_10, x_11); +if (lean_obj_tag(x_194) == 0) +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_195 = lean_ctor_get(x_194, 0); lean_inc(x_195); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_196 = x_134; -} else { - lean_dec_ref(x_134); - x_196 = lean_box(0); -} -if (lean_is_scalar(x_196)) { - x_197 = lean_alloc_ctor(1, 2, 0); -} else { - x_197 = x_196; -} -lean_ctor_set(x_197, 0, x_194); -lean_ctor_set(x_197, 1, x_195); -return x_197; +x_196 = lean_ctor_get(x_194, 1); +lean_inc(x_196); +lean_dec_ref(x_194); +lean_inc(x_10); +lean_inc_ref(x_193); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_195); +x_197 = l_Lean_Elab_Command_checkValidCtorModifier___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__5(x_195, x_5, x_6, x_7, x_8, x_193, x_10, x_196); +if (lean_obj_tag(x_197) == 0) +{ +lean_object* x_198; uint8_t x_199; +x_198 = lean_ctor_get(x_197, 1); +lean_inc(x_198); +lean_dec_ref(x_197); +x_199 = l_Lean_Elab_Modifiers_isPrivate(x_195); +if (x_199 == 0) +{ +x_128 = x_190; +x_129 = x_198; +x_130 = x_193; +x_131 = x_150; +x_132 = x_195; +x_133 = x_152; +x_134 = x_199; +goto block_143; } +else +{ +uint8_t x_200; +x_200 = l_Lean_Elab_Modifiers_isPrivate(x_2); +x_128 = x_190; +x_129 = x_198; +x_130 = x_193; +x_131 = x_150; +x_132 = x_195; +x_133 = x_152; +x_134 = x_200; +goto block_143; } } else { -lean_dec(x_39); +lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; +lean_dec(x_195); +lean_dec_ref(x_193); +lean_dec(x_190); +lean_dec(x_10); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); lean_dec(x_3); -x_17 = x_4; -x_18 = x_5; -x_19 = x_6; -x_20 = x_7; -x_21 = x_8; -x_22 = x_9; -x_23 = x_10; -goto block_35; +x_201 = lean_ctor_get(x_197, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_197, 1); +lean_inc(x_202); +if (lean_is_exclusive(x_197)) { + lean_ctor_release(x_197, 0); + lean_ctor_release(x_197, 1); + x_203 = x_197; +} else { + lean_dec_ref(x_197); + x_203 = lean_box(0); +} +if (lean_is_scalar(x_203)) { + x_204 = lean_alloc_ctor(1, 2, 0); +} else { + x_204 = x_203; +} +lean_ctor_set(x_204, 0, x_201); +lean_ctor_set(x_204, 1, x_202); +return x_204; } } else { -lean_dec(x_37); +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +lean_dec_ref(x_193); +lean_dec(x_190); +lean_dec(x_10); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); lean_dec(x_3); -x_17 = x_4; -x_18 = x_5; -x_19 = x_6; -x_20 = x_7; -x_21 = x_8; -x_22 = x_9; -x_23 = x_10; -goto block_35; +x_205 = lean_ctor_get(x_194, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_194, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + x_207 = x_194; +} else { + lean_dec_ref(x_194); + x_207 = lean_box(0); +} +if (lean_is_scalar(x_207)) { + x_208 = lean_alloc_ctor(1, 2, 0); +} else { + x_208 = x_207; +} +lean_ctor_set(x_208, 0, x_205); +lean_ctor_set(x_208, 1, x_206); +return x_208; +} } -block_35: -{ -lean_object* x_24; uint8_t x_25; -lean_inc(x_12); -x_24 = l_Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1(x_12, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23); -lean_dec(x_22); -lean_dec(x_20); -lean_dec_ref(x_19); -lean_dec(x_18); -lean_dec_ref(x_17); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_26 = lean_ctor_get(x_24, 0); -lean_dec(x_26); -x_27 = lean_box(0); -x_28 = l_Lean_Elab_Command_Structure_instInhabitedStructView___closed__1; -lean_inc(x_15); -x_29 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_29, 0, x_15); -lean_ctor_set(x_29, 1, x_28); -lean_ctor_set(x_29, 2, x_12); -lean_ctor_set(x_29, 3, x_15); -lean_ctor_set(x_29, 4, x_16); -lean_ctor_set(x_29, 5, x_27); -lean_ctor_set(x_24, 0, x_29); -return x_24; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_30 = lean_ctor_get(x_24, 1); -lean_inc(x_30); -lean_dec(x_24); -x_31 = lean_box(0); -x_32 = l_Lean_Elab_Command_Structure_instInhabitedStructView___closed__1; -lean_inc(x_15); -x_33 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_33, 0, x_15); -lean_ctor_set(x_33, 1, x_32); -lean_ctor_set(x_33, 2, x_12); -lean_ctor_set(x_33, 3, x_15); -lean_ctor_set(x_33, 4, x_16); -lean_ctor_set(x_33, 5, x_31); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_30); -return x_34; +lean_dec(x_151); +lean_dec(x_3); +x_12 = x_146; +x_13 = x_144; +x_14 = x_5; +x_15 = x_6; +x_16 = x_7; +x_17 = x_8; +x_18 = x_9; +x_19 = x_10; +x_20 = x_11; +goto block_51; +} +} +else +{ +lean_dec(x_148); +lean_dec(x_3); +x_12 = x_146; +x_13 = x_144; +x_14 = x_5; +x_15 = x_6; +x_16 = x_7; +x_17 = x_8; +x_18 = x_9; +x_19 = x_10; +x_20 = x_11; +goto block_51; } } } @@ -5478,14 +5488,15 @@ lean_dec_ref(x_1); return x_11; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___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_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___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) { _start: { -lean_object* x_11; -x_11 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_4); +x_13 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor(x_1, x_2, x_3, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec_ref(x_2); lean_dec(x_1); -return x_11; +return x_13; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_mapMUnsafe_map___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandParents_spec__0_spec__0___lam__0(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) { @@ -6663,7 +6674,7 @@ return x_2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__1_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_15; lean_object* x_16; uint8_t x_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; lean_object* x_32; lean_object* x_33; lean_object* x_34; 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; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; uint8_t 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_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; uint8_t 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_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; uint8_t x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_166; uint8_t 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_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_220; +lean_object* x_15; lean_object* x_16; uint8_t 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; lean_object* x_32; lean_object* x_33; lean_object* x_34; 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; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t 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_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_129; uint8_t 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_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; uint8_t x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_166; uint8_t 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_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_220; x_220 = lean_usize_dec_eq(x_5, x_6); if (x_220 == 0) { @@ -6817,12 +6828,12 @@ block_46: { lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; x_35 = lean_unsigned_to_nat(2u); -x_36 = l_Lean_Syntax_getArg(x_22, x_35); -lean_dec(x_22); +x_36 = l_Lean_Syntax_getArg(x_23, x_35); +lean_dec(x_23); x_37 = l_Lean_Syntax_getArgs(x_36); lean_dec(x_36); x_38 = lean_array_get_size(x_37); -x_39 = lean_nat_dec_lt(x_23, x_38); +x_39 = lean_nat_dec_lt(x_24, x_38); if (x_39 == 0) { lean_dec(x_38); @@ -6836,7 +6847,7 @@ lean_dec_ref(x_28); lean_dec(x_27); lean_dec(x_26); lean_dec(x_25); -lean_dec_ref(x_24); +lean_dec_ref(x_22); x_15 = x_7; x_16 = x_34; goto block_20; @@ -6858,7 +6869,7 @@ lean_dec_ref(x_28); lean_dec(x_27); lean_dec(x_26); lean_dec(x_25); -lean_dec_ref(x_24); +lean_dec_ref(x_22); x_15 = x_7; x_16 = x_34; goto block_20; @@ -6870,7 +6881,7 @@ x_41 = 0; x_42 = lean_usize_of_nat(x_38); lean_dec(x_38); lean_inc(x_1); -x_43 = l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__0(x_1, x_24, x_21, x_25, x_26, x_27, x_37, x_41, x_42, x_7, x_28, x_29, x_30, x_31, x_32, x_33, x_34); +x_43 = l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__0(x_1, x_22, x_21, x_25, x_26, x_27, x_37, x_41, x_42, x_7, x_28, x_29, x_30, x_31, x_32, x_33, x_34); lean_dec_ref(x_32); lean_dec_ref(x_37); if (lean_obj_tag(x_43) == 0) @@ -6904,52 +6915,52 @@ if (x_61 == 0) { lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; x_62 = lean_unsigned_to_nat(2u); -x_63 = l_Lean_Syntax_getArg(x_50, x_62); -lean_dec(x_50); +x_63 = l_Lean_Syntax_getArg(x_53, x_62); +lean_dec(x_53); x_64 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_64, 0, x_63); x_65 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_65, 0, x_64); x_21 = x_56; -x_22 = x_59; -x_23 = x_53; -x_24 = x_55; -x_25 = x_51; -x_26 = x_60; +x_22 = x_57; +x_23 = x_49; +x_24 = x_60; +x_25 = x_50; +x_26 = x_59; x_27 = x_65; -x_28 = x_58; +x_28 = x_52; x_29 = x_54; x_30 = x_47; -x_31 = x_57; -x_32 = x_52; -x_33 = x_49; -x_34 = x_48; +x_31 = x_51; +x_32 = x_55; +x_33 = x_48; +x_34 = x_58; goto block_46; } else { lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; x_66 = lean_unsigned_to_nat(1u); -x_67 = l_Lean_Syntax_getArg(x_50, x_66); -lean_dec(x_50); +x_67 = l_Lean_Syntax_getArg(x_53, x_66); +lean_dec(x_53); x_68 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_68, 0, x_67); x_69 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_69, 0, x_68); x_21 = x_56; -x_22 = x_59; -x_23 = x_53; -x_24 = x_55; -x_25 = x_51; -x_26 = x_60; +x_22 = x_57; +x_23 = x_49; +x_24 = x_60; +x_25 = x_50; +x_26 = x_59; x_27 = x_69; -x_28 = x_58; +x_28 = x_52; x_29 = x_54; x_30 = x_47; -x_31 = x_57; -x_32 = x_52; -x_33 = x_49; -x_34 = x_48; +x_31 = x_51; +x_32 = x_55; +x_33 = x_48; +x_34 = x_58; goto block_46; } } @@ -6957,14 +6968,14 @@ block_107: { uint8_t x_84; uint8_t x_85; x_84 = 0; -x_85 = l_Lean_beqBinderInfo____x40_Lean_Expr___hyg_413_(x_71, x_84); +x_85 = l_Lean_beqBinderInfo____x40_Lean_Expr___hyg_413_(x_74, x_84); if (x_85 == 0) { lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -lean_dec_ref(x_75); lean_dec_ref(x_72); +lean_dec_ref(x_71); x_86 = lean_unsigned_to_nat(3u); -x_87 = l_Lean_Syntax_getArg(x_73, x_86); +x_87 = l_Lean_Syntax_getArg(x_75, x_86); x_88 = l_Lean_Elab_expandDeclSig(x_87); lean_dec(x_87); x_89 = lean_ctor_get(x_88, 0); @@ -6975,9 +6986,9 @@ lean_dec_ref(x_88); x_91 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_91, 0, x_90); x_92 = lean_box(0); -x_21 = x_71; +x_21 = x_74; x_22 = x_73; -x_23 = x_74; +x_23 = x_75; x_24 = x_76; x_25 = x_89; x_26 = x_91; @@ -6995,7 +7006,7 @@ else { lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; x_93 = lean_unsigned_to_nat(3u); -x_94 = l_Lean_Syntax_getArg(x_73, x_93); +x_94 = l_Lean_Syntax_getArg(x_75, x_93); x_95 = l_Lean_Elab_expandOptDeclSig(x_94); lean_dec(x_94); x_96 = lean_ctor_get(x_95, 0); @@ -7003,56 +7014,56 @@ lean_inc(x_96); x_97 = lean_ctor_get(x_95, 1); lean_inc(x_97); lean_dec_ref(x_95); -x_98 = l_Lean_Syntax_getArg(x_73, x_2); +x_98 = l_Lean_Syntax_getArg(x_75, x_2); x_99 = l_Lean_Syntax_isNone(x_98); if (x_99 == 0) { lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_100 = l_Lean_Syntax_getArg(x_98, x_74); +x_100 = l_Lean_Syntax_getArg(x_98, x_76); lean_dec(x_98); lean_inc(x_100); x_101 = l_Lean_Syntax_getKind(x_100); x_102 = l_Lean_Elab_elabAttr___at___Lean_Elab_elabAttrs___at___Lean_Elab_elabDeclAttrs___at___Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0_spec__0_spec__0_spec__0___lam__0___closed__1; x_103 = l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__1_spec__1___closed__0; -x_104 = l_Lean_Name_mkStr4(x_72, x_75, x_102, x_103); +x_104 = l_Lean_Name_mkStr4(x_71, x_72, x_102, x_103); x_105 = lean_name_eq(x_101, x_104); lean_dec(x_104); lean_dec(x_101); if (x_105 == 0) { x_47 = x_79; -x_48 = x_83; -x_49 = x_82; -x_50 = x_100; -x_51 = x_96; -x_52 = x_81; -x_53 = x_74; +x_48 = x_82; +x_49 = x_75; +x_50 = x_96; +x_51 = x_80; +x_52 = x_77; +x_53 = x_100; x_54 = x_78; -x_55 = x_76; -x_56 = x_71; -x_57 = x_80; -x_58 = x_77; -x_59 = x_73; -x_60 = x_97; +x_55 = x_81; +x_56 = x_74; +x_57 = x_73; +x_58 = x_83; +x_59 = x_97; +x_60 = x_76; x_61 = x_85; goto block_70; } else { x_47 = x_79; -x_48 = x_83; -x_49 = x_82; -x_50 = x_100; -x_51 = x_96; -x_52 = x_81; -x_53 = x_74; +x_48 = x_82; +x_49 = x_75; +x_50 = x_96; +x_51 = x_80; +x_52 = x_77; +x_53 = x_100; x_54 = x_78; -x_55 = x_76; -x_56 = x_71; -x_57 = x_80; -x_58 = x_77; -x_59 = x_73; -x_60 = x_97; +x_55 = x_81; +x_56 = x_74; +x_57 = x_73; +x_58 = x_83; +x_59 = x_97; +x_60 = x_76; x_61 = x_99; goto block_70; } @@ -7061,12 +7072,12 @@ else { lean_object* x_106; lean_dec(x_98); -lean_dec_ref(x_75); lean_dec_ref(x_72); +lean_dec_ref(x_71); x_106 = lean_box(0); -x_21 = x_71; +x_21 = x_74; x_22 = x_73; -x_23 = x_74; +x_23 = x_75; x_24 = x_76; x_25 = x_96; x_26 = x_97; @@ -7086,27 +7097,27 @@ block_128: { if (x_121 == 0) { -x_71 = x_115; -x_72 = x_108; -x_73 = x_118; -x_74 = x_113; -x_75 = x_120; -x_76 = x_114; -x_77 = x_116; -x_78 = x_109; -x_79 = x_111; -x_80 = x_119; -x_81 = x_110; -x_82 = x_117; -x_83 = x_112; +x_71 = x_108; +x_72 = x_109; +x_73 = x_113; +x_74 = x_114; +x_75 = x_111; +x_76 = x_117; +x_77 = x_118; +x_78 = x_120; +x_79 = x_116; +x_80 = x_110; +x_81 = x_112; +x_82 = x_115; +x_83 = x_119; goto block_107; } else { lean_object* x_122; lean_object* x_123; uint8_t x_124; -lean_dec_ref(x_120); -lean_dec(x_118); -lean_dec_ref(x_114); +lean_dec_ref(x_113); +lean_dec(x_111); +lean_dec_ref(x_109); lean_dec_ref(x_108); lean_dec(x_13); lean_dec(x_11); @@ -7116,12 +7127,12 @@ lean_dec_ref(x_8); lean_dec_ref(x_7); lean_dec(x_1); x_122 = l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__1_spec__1___closed__2; -x_123 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_122, x_116, x_109, x_111, x_119, x_110, x_117, x_112); -lean_dec(x_117); -lean_dec_ref(x_110); -lean_dec(x_119); -lean_dec_ref(x_111); -lean_dec(x_109); +x_123 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_122, x_118, x_120, x_116, x_110, x_112, x_115, x_119); +lean_dec(x_115); +lean_dec_ref(x_112); +lean_dec(x_110); +lean_dec_ref(x_116); +lean_dec(x_120); x_124 = !lean_is_exclusive(x_123); if (x_124 == 0) { @@ -7145,22 +7156,22 @@ return x_127; block_144: { uint8_t x_142; -x_142 = l_Lean_Elab_Modifiers_isProtected(x_134); +x_142 = l_Lean_Elab_Modifiers_isProtected(x_131); if (x_142 == 0) { -x_108 = x_130; -x_109 = x_136; -x_110 = x_139; -x_111 = x_137; -x_112 = x_141; -x_113 = x_132; -x_114 = x_134; -x_115 = x_129; -x_116 = x_135; -x_117 = x_140; -x_118 = x_131; -x_119 = x_138; -x_120 = x_133; +x_108 = x_129; +x_109 = x_132; +x_110 = x_138; +x_111 = x_133; +x_112 = x_139; +x_113 = x_131; +x_114 = x_130; +x_115 = x_140; +x_116 = x_137; +x_117 = x_134; +x_118 = x_135; +x_119 = x_141; +x_120 = x_136; x_121 = x_142; goto block_128; } @@ -7168,19 +7179,19 @@ else { uint8_t x_143; x_143 = l_Lean_Elab_Modifiers_isPrivate(x_3); -x_108 = x_130; -x_109 = x_136; -x_110 = x_139; -x_111 = x_137; -x_112 = x_141; -x_113 = x_132; -x_114 = x_134; -x_115 = x_129; -x_116 = x_135; -x_117 = x_140; -x_118 = x_131; -x_119 = x_138; -x_120 = x_133; +x_108 = x_129; +x_109 = x_132; +x_110 = x_138; +x_111 = x_133; +x_112 = x_139; +x_113 = x_131; +x_114 = x_130; +x_115 = x_140; +x_116 = x_137; +x_117 = x_134; +x_118 = x_135; +x_119 = x_141; +x_120 = x_136; x_121 = x_143; goto block_128; } @@ -7189,28 +7200,28 @@ block_165: { if (x_158 == 0) { -x_129 = x_153; -x_130 = x_146; +x_129 = x_145; +x_130 = x_153; x_131 = x_154; -x_132 = x_150; -x_133 = x_156; -x_134 = x_151; -x_135 = x_148; -x_136 = x_155; +x_132 = x_147; +x_133 = x_149; +x_134 = x_157; +x_135 = x_146; +x_136 = x_156; x_137 = x_152; -x_138 = x_157; -x_139 = x_149; -x_140 = x_145; -x_141 = x_147; +x_138 = x_155; +x_139 = x_150; +x_140 = x_151; +x_141 = x_148; goto block_144; } else { lean_object* x_159; lean_object* x_160; uint8_t x_161; -lean_dec_ref(x_156); -lean_dec(x_154); -lean_dec_ref(x_151); -lean_dec_ref(x_146); +lean_dec_ref(x_154); +lean_dec(x_149); +lean_dec_ref(x_147); +lean_dec_ref(x_145); lean_dec(x_13); lean_dec(x_11); lean_dec_ref(x_10); @@ -7219,12 +7230,12 @@ lean_dec_ref(x_8); lean_dec_ref(x_7); lean_dec(x_1); x_159 = l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__1_spec__1___closed__4; -x_160 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_159, x_148, x_155, x_152, x_157, x_149, x_145, x_147); -lean_dec(x_145); -lean_dec_ref(x_149); -lean_dec(x_157); -lean_dec_ref(x_152); +x_160 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_159, x_146, x_156, x_152, x_155, x_150, x_151, x_148); +lean_dec(x_151); +lean_dec_ref(x_150); lean_dec(x_155); +lean_dec_ref(x_152); +lean_dec(x_156); x_161 = !lean_is_exclusive(x_160); if (x_161 == 0) { @@ -7274,19 +7285,19 @@ x_183 = l_Lean_Elab_elabAttr___at___Lean_Elab_elabAttrs___at___Lean_Elab_elabDec x_184 = l_Lean_Elab_Modifiers_isPrivate(x_178); if (x_184 == 0) { -x_145 = x_173; -x_146 = x_182; -x_147 = x_181; -x_148 = x_168; -x_149 = x_172; -x_150 = x_175; -x_151 = x_178; +x_145 = x_182; +x_146 = x_168; +x_147 = x_183; +x_148 = x_181; +x_149 = x_166; +x_150 = x_172; +x_151 = x_173; x_152 = x_170; x_153 = x_167; -x_154 = x_166; -x_155 = x_169; -x_156 = x_183; -x_157 = x_171; +x_154 = x_178; +x_155 = x_171; +x_156 = x_169; +x_157 = x_175; x_158 = x_184; goto block_165; } @@ -7294,19 +7305,19 @@ else { uint8_t x_185; x_185 = l_Lean_Elab_Modifiers_isPrivate(x_3); -x_145 = x_173; -x_146 = x_182; -x_147 = x_181; -x_148 = x_168; -x_149 = x_172; -x_150 = x_175; -x_151 = x_178; +x_145 = x_182; +x_146 = x_168; +x_147 = x_183; +x_148 = x_181; +x_149 = x_166; +x_150 = x_172; +x_151 = x_173; x_152 = x_170; x_153 = x_167; -x_154 = x_166; -x_155 = x_169; -x_156 = x_183; -x_157 = x_171; +x_154 = x_178; +x_155 = x_171; +x_156 = x_169; +x_157 = x_175; x_158 = x_185; goto block_165; } @@ -7496,7 +7507,7 @@ goto block_194; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_15; lean_object* x_16; uint8_t x_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; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t 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; uint8_t x_61; uint8_t 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_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; uint8_t 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_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t 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; uint8_t x_158; lean_object* x_166; uint8_t 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_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_220; +lean_object* x_15; lean_object* x_16; uint8_t 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; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_47; uint8_t 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; uint8_t x_61; lean_object* x_71; uint8_t 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_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; uint8_t 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_145; lean_object* x_146; uint8_t 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; uint8_t x_158; lean_object* x_166; uint8_t 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_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_220; x_220 = lean_usize_dec_eq(x_5, x_6); if (x_220 == 0) { @@ -7648,8 +7659,8 @@ block_46: { lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; x_35 = lean_unsigned_to_nat(2u); -x_36 = l_Lean_Syntax_getArg(x_24, x_35); -lean_dec(x_24); +x_36 = l_Lean_Syntax_getArg(x_23, x_35); +lean_dec(x_23); x_37 = l_Lean_Syntax_getArgs(x_36); lean_dec(x_36); x_38 = lean_array_get_size(x_37); @@ -7667,7 +7678,7 @@ lean_dec_ref(x_28); lean_dec(x_27); lean_dec(x_26); lean_dec(x_25); -lean_dec_ref(x_23); +lean_dec_ref(x_24); x_15 = x_7; x_16 = x_34; goto block_20; @@ -7689,7 +7700,7 @@ lean_dec_ref(x_28); lean_dec(x_27); lean_dec(x_26); lean_dec(x_25); -lean_dec_ref(x_23); +lean_dec_ref(x_24); x_15 = x_7; x_16 = x_34; goto block_20; @@ -7701,7 +7712,7 @@ x_41 = 0; x_42 = lean_usize_of_nat(x_38); lean_dec(x_38); lean_inc(x_1); -x_43 = l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__0(x_1, x_23, x_21, x_25, x_26, x_27, x_37, x_41, x_42, x_7, x_28, x_29, x_30, x_31, x_32, x_33, x_34); +x_43 = l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__0(x_1, x_24, x_21, x_25, x_26, x_27, x_37, x_41, x_42, x_7, x_28, x_29, x_30, x_31, x_32, x_33, x_34); lean_dec_ref(x_32); lean_dec_ref(x_37); if (lean_obj_tag(x_43) == 0) @@ -7735,52 +7746,52 @@ if (x_61 == 0) { lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; x_62 = lean_unsigned_to_nat(2u); -x_63 = l_Lean_Syntax_getArg(x_49, x_62); -lean_dec(x_49); +x_63 = l_Lean_Syntax_getArg(x_53, x_62); +lean_dec(x_53); x_64 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_64, 0, x_63); x_65 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_65, 0, x_64); -x_21 = x_53; -x_22 = x_54; -x_23 = x_55; -x_24 = x_58; -x_25 = x_48; -x_26 = x_51; +x_21 = x_48; +x_22 = x_49; +x_23 = x_50; +x_24 = x_60; +x_25 = x_55; +x_26 = x_58; x_27 = x_65; -x_28 = x_50; -x_29 = x_59; -x_30 = x_52; +x_28 = x_57; +x_29 = x_56; +x_30 = x_54; x_31 = x_47; -x_32 = x_56; -x_33 = x_60; -x_34 = x_57; +x_32 = x_59; +x_33 = x_51; +x_34 = x_52; goto block_46; } else { lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; x_66 = lean_unsigned_to_nat(1u); -x_67 = l_Lean_Syntax_getArg(x_49, x_66); -lean_dec(x_49); +x_67 = l_Lean_Syntax_getArg(x_53, x_66); +lean_dec(x_53); x_68 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_68, 0, x_67); x_69 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_69, 0, x_68); -x_21 = x_53; -x_22 = x_54; -x_23 = x_55; -x_24 = x_58; -x_25 = x_48; -x_26 = x_51; +x_21 = x_48; +x_22 = x_49; +x_23 = x_50; +x_24 = x_60; +x_25 = x_55; +x_26 = x_58; x_27 = x_69; -x_28 = x_50; -x_29 = x_59; -x_30 = x_52; +x_28 = x_57; +x_29 = x_56; +x_30 = x_54; x_31 = x_47; -x_32 = x_56; -x_33 = x_60; -x_34 = x_57; +x_32 = x_59; +x_33 = x_51; +x_34 = x_52; goto block_46; } } @@ -7788,14 +7799,14 @@ block_107: { uint8_t x_84; uint8_t x_85; x_84 = 0; -x_85 = l_Lean_beqBinderInfo____x40_Lean_Expr___hyg_413_(x_71, x_84); +x_85 = l_Lean_beqBinderInfo____x40_Lean_Expr___hyg_413_(x_72, x_84); if (x_85 == 0) { lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -lean_dec_ref(x_74); +lean_dec_ref(x_75); lean_dec_ref(x_73); x_86 = lean_unsigned_to_nat(3u); -x_87 = l_Lean_Syntax_getArg(x_76, x_86); +x_87 = l_Lean_Syntax_getArg(x_74, x_86); x_88 = l_Lean_Elab_expandDeclSig(x_87); lean_dec(x_87); x_89 = lean_ctor_get(x_88, 0); @@ -7806,9 +7817,9 @@ lean_dec_ref(x_88); x_91 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_91, 0, x_90); x_92 = lean_box(0); -x_21 = x_71; -x_22 = x_72; -x_23 = x_75; +x_21 = x_72; +x_22 = x_71; +x_23 = x_74; x_24 = x_76; x_25 = x_89; x_26 = x_91; @@ -7826,7 +7837,7 @@ else { lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; x_93 = lean_unsigned_to_nat(3u); -x_94 = l_Lean_Syntax_getArg(x_76, x_93); +x_94 = l_Lean_Syntax_getArg(x_74, x_93); x_95 = l_Lean_Elab_expandOptDeclSig(x_94); lean_dec(x_94); x_96 = lean_ctor_get(x_95, 0); @@ -7834,56 +7845,56 @@ lean_inc(x_96); x_97 = lean_ctor_get(x_95, 1); lean_inc(x_97); lean_dec_ref(x_95); -x_98 = l_Lean_Syntax_getArg(x_76, x_2); +x_98 = l_Lean_Syntax_getArg(x_74, x_2); x_99 = l_Lean_Syntax_isNone(x_98); if (x_99 == 0) { lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_100 = l_Lean_Syntax_getArg(x_98, x_72); +x_100 = l_Lean_Syntax_getArg(x_98, x_71); lean_dec(x_98); lean_inc(x_100); x_101 = l_Lean_Syntax_getKind(x_100); x_102 = l_Lean_Elab_elabAttr___at___Lean_Elab_elabAttrs___at___Lean_Elab_elabDeclAttrs___at___Lean_Elab_elabModifiers___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor_spec__0_spec__0_spec__0_spec__0___lam__0___closed__1; x_103 = l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__1_spec__1___closed__0; -x_104 = l_Lean_Name_mkStr4(x_74, x_73, x_102, x_103); +x_104 = l_Lean_Name_mkStr4(x_75, x_73, x_102, x_103); x_105 = lean_name_eq(x_101, x_104); lean_dec(x_104); lean_dec(x_101); if (x_105 == 0) { x_47 = x_80; -x_48 = x_96; -x_49 = x_100; -x_50 = x_77; -x_51 = x_97; -x_52 = x_79; -x_53 = x_71; -x_54 = x_72; -x_55 = x_75; -x_56 = x_81; -x_57 = x_83; -x_58 = x_76; -x_59 = x_78; -x_60 = x_82; +x_48 = x_72; +x_49 = x_71; +x_50 = x_74; +x_51 = x_82; +x_52 = x_83; +x_53 = x_100; +x_54 = x_79; +x_55 = x_96; +x_56 = x_78; +x_57 = x_77; +x_58 = x_97; +x_59 = x_81; +x_60 = x_76; x_61 = x_85; goto block_70; } else { x_47 = x_80; -x_48 = x_96; -x_49 = x_100; -x_50 = x_77; -x_51 = x_97; -x_52 = x_79; -x_53 = x_71; -x_54 = x_72; -x_55 = x_75; -x_56 = x_81; -x_57 = x_83; -x_58 = x_76; -x_59 = x_78; -x_60 = x_82; +x_48 = x_72; +x_49 = x_71; +x_50 = x_74; +x_51 = x_82; +x_52 = x_83; +x_53 = x_100; +x_54 = x_79; +x_55 = x_96; +x_56 = x_78; +x_57 = x_77; +x_58 = x_97; +x_59 = x_81; +x_60 = x_76; x_61 = x_99; goto block_70; } @@ -7892,12 +7903,12 @@ else { lean_object* x_106; lean_dec(x_98); -lean_dec_ref(x_74); +lean_dec_ref(x_75); lean_dec_ref(x_73); x_106 = lean_box(0); -x_21 = x_71; -x_22 = x_72; -x_23 = x_75; +x_21 = x_72; +x_22 = x_71; +x_23 = x_74; x_24 = x_76; x_25 = x_96; x_26 = x_97; @@ -7917,28 +7928,28 @@ block_128: { if (x_121 == 0) { -x_71 = x_111; -x_72 = x_113; -x_73 = x_117; -x_74 = x_109; -x_75 = x_119; +x_71 = x_108; +x_72 = x_109; +x_73 = x_110; +x_74 = x_111; +x_75 = x_118; x_76 = x_120; -x_77 = x_108; -x_78 = x_118; -x_79 = x_114; -x_80 = x_116; -x_81 = x_110; +x_77 = x_116; +x_78 = x_119; +x_79 = x_112; +x_80 = x_114; +x_81 = x_117; x_82 = x_115; -x_83 = x_112; +x_83 = x_113; goto block_107; } else { lean_object* x_122; lean_object* x_123; uint8_t x_124; -lean_dec(x_120); -lean_dec_ref(x_119); -lean_dec_ref(x_117); -lean_dec_ref(x_109); +lean_dec_ref(x_120); +lean_dec_ref(x_118); +lean_dec(x_111); +lean_dec_ref(x_110); lean_dec(x_13); lean_dec(x_11); lean_dec_ref(x_10); @@ -7947,12 +7958,12 @@ lean_dec_ref(x_8); lean_dec_ref(x_7); lean_dec(x_1); x_122 = l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__1_spec__1___closed__2; -x_123 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_122, x_108, x_118, x_114, x_116, x_110, x_115, x_112); +x_123 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_122, x_116, x_119, x_112, x_114, x_117, x_115, x_113); lean_dec(x_115); -lean_dec_ref(x_110); -lean_dec(x_116); -lean_dec_ref(x_114); -lean_dec(x_118); +lean_dec_ref(x_117); +lean_dec(x_114); +lean_dec_ref(x_112); +lean_dec(x_119); x_124 = !lean_is_exclusive(x_123); if (x_124 == 0) { @@ -7976,21 +7987,21 @@ return x_127; block_144: { uint8_t x_142; -x_142 = l_Lean_Elab_Modifiers_isProtected(x_133); +x_142 = l_Lean_Elab_Modifiers_isProtected(x_134); if (x_142 == 0) { -x_108 = x_135; -x_109 = x_132; -x_110 = x_139; -x_111 = x_129; -x_112 = x_141; -x_113 = x_130; -x_114 = x_137; +x_108 = x_130; +x_109 = x_129; +x_110 = x_132; +x_111 = x_131; +x_112 = x_137; +x_113 = x_141; +x_114 = x_138; x_115 = x_140; -x_116 = x_138; -x_117 = x_131; -x_118 = x_136; -x_119 = x_133; +x_116 = x_135; +x_117 = x_139; +x_118 = x_133; +x_119 = x_136; x_120 = x_134; x_121 = x_142; goto block_128; @@ -7999,18 +8010,18 @@ else { uint8_t x_143; x_143 = l_Lean_Elab_Modifiers_isPrivate(x_3); -x_108 = x_135; -x_109 = x_132; -x_110 = x_139; -x_111 = x_129; -x_112 = x_141; -x_113 = x_130; -x_114 = x_137; +x_108 = x_130; +x_109 = x_129; +x_110 = x_132; +x_111 = x_131; +x_112 = x_137; +x_113 = x_141; +x_114 = x_138; x_115 = x_140; -x_116 = x_138; -x_117 = x_131; -x_118 = x_136; -x_119 = x_133; +x_116 = x_135; +x_117 = x_139; +x_118 = x_133; +x_119 = x_136; x_120 = x_134; x_121 = x_143; goto block_128; @@ -8020,28 +8031,28 @@ block_165: { if (x_158 == 0) { -x_129 = x_149; -x_130 = x_150; -x_131 = x_151; -x_132 = x_145; +x_129 = x_147; +x_130 = x_148; +x_131 = x_149; +x_132 = x_150; x_133 = x_154; -x_134 = x_155; -x_135 = x_146; -x_136 = x_147; +x_134 = x_157; +x_135 = x_145; +x_136 = x_146; x_137 = x_156; -x_138 = x_148; -x_139 = x_157; +x_138 = x_151; +x_139 = x_153; x_140 = x_152; -x_141 = x_153; +x_141 = x_155; goto block_144; } else { lean_object* x_159; lean_object* x_160; uint8_t x_161; -lean_dec(x_155); +lean_dec_ref(x_157); lean_dec_ref(x_154); -lean_dec_ref(x_151); -lean_dec_ref(x_145); +lean_dec_ref(x_150); +lean_dec(x_149); lean_dec(x_13); lean_dec(x_11); lean_dec_ref(x_10); @@ -8050,12 +8061,12 @@ lean_dec_ref(x_8); lean_dec_ref(x_7); lean_dec(x_1); x_159 = l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__1_spec__1___closed__4; -x_160 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_159, x_146, x_147, x_156, x_148, x_157, x_152, x_153); +x_160 = l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(x_159, x_145, x_146, x_156, x_151, x_153, x_152, x_155); lean_dec(x_152); -lean_dec_ref(x_157); -lean_dec(x_148); +lean_dec_ref(x_153); +lean_dec(x_151); lean_dec_ref(x_156); -lean_dec(x_147); +lean_dec(x_146); x_161 = !lean_is_exclusive(x_160); if (x_161 == 0) { @@ -8105,19 +8116,19 @@ x_183 = l_Lean_Elab_elabAttr___at___Lean_Elab_elabAttrs___at___Lean_Elab_elabDec x_184 = l_Lean_Elab_Modifiers_isPrivate(x_178); if (x_184 == 0) { -x_145 = x_182; -x_146 = x_168; -x_147 = x_169; -x_148 = x_171; -x_149 = x_167; -x_150 = x_175; -x_151 = x_183; +x_145 = x_168; +x_146 = x_169; +x_147 = x_167; +x_148 = x_175; +x_149 = x_166; +x_150 = x_183; +x_151 = x_171; x_152 = x_173; -x_153 = x_181; -x_154 = x_178; -x_155 = x_166; +x_153 = x_172; +x_154 = x_182; +x_155 = x_181; x_156 = x_170; -x_157 = x_172; +x_157 = x_178; x_158 = x_184; goto block_165; } @@ -8125,19 +8136,19 @@ else { uint8_t x_185; x_185 = l_Lean_Elab_Modifiers_isPrivate(x_3); -x_145 = x_182; -x_146 = x_168; -x_147 = x_169; -x_148 = x_171; -x_149 = x_167; -x_150 = x_175; -x_151 = x_183; +x_145 = x_168; +x_146 = x_169; +x_147 = x_167; +x_148 = x_175; +x_149 = x_166; +x_150 = x_183; +x_151 = x_171; x_152 = x_173; -x_153 = x_181; -x_154 = x_178; -x_155 = x_166; +x_153 = x_172; +x_154 = x_182; +x_155 = x_181; x_156 = x_170; -x_157 = x_172; +x_157 = x_178; x_158 = x_185; goto block_165; } @@ -8525,9 +8536,9 @@ if (x_23 == 0) lean_object* x_24; lean_dec(x_22); lean_dec_ref(x_19); -lean_dec_ref(x_17); -lean_dec(x_15); -lean_dec(x_14); +lean_dec_ref(x_18); +lean_dec(x_17); +lean_dec(x_13); lean_dec_ref(x_12); lean_dec(x_11); lean_dec(x_3); @@ -8545,9 +8556,9 @@ if (x_25 == 0) lean_object* x_26; lean_dec(x_22); lean_dec_ref(x_19); -lean_dec_ref(x_17); -lean_dec(x_15); -lean_dec(x_14); +lean_dec_ref(x_18); +lean_dec(x_17); +lean_dec(x_13); lean_dec_ref(x_12); lean_dec(x_11); lean_dec(x_3); @@ -8562,7 +8573,7 @@ size_t x_27; size_t x_28; lean_object* x_29; x_27 = 0; x_28 = lean_usize_of_nat(x_22); lean_dec(x_22); -x_29 = l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__1(x_3, x_13, x_2, x_19, x_27, x_28, x_21, x_12, x_14, x_17, x_15, x_18, x_11, x_16); +x_29 = l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__1(x_3, x_15, x_2, x_19, x_27, x_28, x_21, x_18, x_11, x_12, x_17, x_14, x_13, x_16); lean_dec_ref(x_19); return x_29; } @@ -8585,14 +8596,14 @@ x_44 = l_Lean_Syntax_getArg(x_42, x_43); lean_dec(x_42); x_45 = l_Lean_Syntax_getArgs(x_44); lean_dec(x_44); -x_11 = x_36; -x_12 = x_31; -x_13 = x_38; -x_14 = x_32; -x_15 = x_34; +x_11 = x_32; +x_12 = x_33; +x_13 = x_36; +x_14 = x_35; +x_15 = x_38; x_16 = x_37; -x_17 = x_33; -x_18 = x_35; +x_17 = x_34; +x_18 = x_31; x_19 = x_45; goto block_30; } @@ -8601,14 +8612,14 @@ else lean_object* x_46; lean_dec(x_39); x_46 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandParents___closed__0; -x_11 = x_36; -x_12 = x_31; -x_13 = x_38; -x_14 = x_32; -x_15 = x_34; +x_11 = x_32; +x_12 = x_33; +x_13 = x_36; +x_14 = x_35; +x_15 = x_38; x_16 = x_37; -x_17 = x_33; -x_18 = x_35; +x_17 = x_34; +x_18 = x_31; x_19 = x_46; goto block_30; } @@ -8884,6 +8895,41 @@ return x_13; } } } +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Elab_Command_Structure_structureSyntaxToView_spec__2(lean_object* x_1, size_t x_2, size_t x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_usize_dec_eq(x_2, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_array_uget(x_1, x_2); +x_6 = lean_ctor_get(x_5, 1); +lean_inc_ref(x_6); +lean_dec_ref(x_5); +x_7 = l_Lean_Elab_Modifiers_isPrivate(x_6); +lean_dec_ref(x_6); +if (x_7 == 0) +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = lean_usize_add(x_2, x_8); +x_2 = x_9; +goto _start; +} +else +{ +return x_7; +} +} +else +{ +uint8_t x_11; +x_11 = 0; +return x_11; +} +} +} LEAN_EXPORT uint8_t l_Lean_Elab_Command_Structure_structureSyntaxToView___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -9001,7 +9047,7 @@ lean_inc_ref(x_3); x_10 = l_Lean_Elab_Command_checkValidInductiveModifier___at___Lean_Elab_Command_elabInductives_spec__0(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_10) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* 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_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_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_135; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* 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_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; uint8_t x_57; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_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_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; uint8_t x_163; lean_object* x_166; x_11 = lean_ctor_get(x_10, 1); lean_inc(x_11); if (lean_is_exclusive(x_10)) { @@ -9020,16 +9066,16 @@ x_17 = lean_name_eq(x_15, x_16); lean_dec(x_15); if (x_17 == 0) { -x_135 = x_1; -goto block_176; +x_166 = x_1; +goto block_207; } else { -lean_object* x_177; lean_object* x_178; -x_177 = l_Lean_Elab_Command_Structure_structureSyntaxToView___closed__8; -x_178 = l_Lean_Elab_Modifiers_addAttr(x_1, x_177); -x_135 = x_178; -goto block_176; +lean_object* x_208; lean_object* x_209; +x_208 = l_Lean_Elab_Command_Structure_structureSyntaxToView___closed__8; +x_209 = l_Lean_Elab_Modifiers_addAttr(x_1, x_208); +x_166 = x_209; +goto block_207; } block_38: { @@ -9040,23 +9086,23 @@ x_33 = lean_array_push(x_32, x_24); x_34 = l_Lean_Elab_Command_Structure_structureSyntaxToView___closed__0; x_35 = lean_alloc_ctor(0, 11, 3); lean_ctor_set(x_35, 0, x_2); -lean_ctor_set(x_35, 1, x_29); -lean_ctor_set(x_35, 2, x_20); -lean_ctor_set(x_35, 3, x_21); +lean_ctor_set(x_35, 1, x_22); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_28); lean_ctor_set(x_35, 4, x_23); -lean_ctor_set(x_35, 5, x_22); +lean_ctor_set(x_35, 5, x_27); lean_ctor_set(x_35, 6, x_19); -lean_ctor_set(x_35, 7, x_28); +lean_ctor_set(x_35, 7, x_26); lean_ctor_set(x_35, 8, x_33); lean_ctor_set(x_35, 9, x_34); -lean_ctor_set(x_35, 10, x_18); +lean_ctor_set(x_35, 10, x_21); lean_ctor_set_uint8(x_35, sizeof(void*)*11, x_17); lean_ctor_set_uint8(x_35, sizeof(void*)*11 + 1, x_31); lean_ctor_set_uint8(x_35, sizeof(void*)*11 + 2, x_31); x_36 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_26); -lean_ctor_set(x_36, 2, x_27); +lean_ctor_set(x_36, 1, x_18); +lean_ctor_set(x_36, 2, x_20); if (lean_is_scalar(x_12)) { x_37 = lean_alloc_ctor(0, 2, 0); } else { @@ -9066,184 +9112,145 @@ lean_ctor_set(x_37, 0, x_36); lean_ctor_set(x_37, 1, x_30); return x_37; } -block_97: +block_77: { -lean_object* x_55; -lean_inc_ref(x_48); -x_55 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandParents(x_45, x_48, x_49, x_50, x_51, x_52, x_53, x_54); -lean_dec(x_45); -if (lean_obj_tag(x_55) == 0) +lean_object* x_58; +lean_inc(x_39); +lean_inc_ref(x_56); +lean_inc(x_44); +lean_inc_ref(x_55); +lean_inc(x_47); +lean_inc_ref(x_43); +lean_inc(x_51); +x_58 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor(x_2, x_54, x_51, x_57, x_43, x_47, x_55, x_44, x_56, x_39, x_40); +if (lean_obj_tag(x_58) == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec_ref(x_58); +x_61 = lean_array_get_size(x_49); +x_62 = lean_nat_dec_lt(x_13, x_61); +if (x_62 == 0) +{ +lean_dec(x_61); +lean_dec_ref(x_56); lean_dec_ref(x_55); -x_58 = lean_unsigned_to_nat(5u); -x_59 = l_Lean_Syntax_getArg(x_2, x_58); -lean_inc(x_53); -lean_inc_ref(x_52); -x_60 = l_Lean_Elab_getOptDerivingClasses(x_59, x_52, x_53, x_57); -if (lean_obj_tag(x_60) == 0) +lean_dec(x_47); +lean_dec(x_44); +lean_dec_ref(x_43); +lean_dec(x_39); +x_18 = x_41; +x_19 = x_42; +x_20 = x_49; +x_21 = x_50; +x_22 = x_48; +x_23 = x_51; +x_24 = x_59; +x_25 = x_45; +x_26 = x_52; +x_27 = x_46; +x_28 = x_53; +x_29 = x_54; +x_30 = x_60; +goto block_38; +} +else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec_ref(x_60); -lean_inc(x_53); -lean_inc_ref(x_52); -lean_inc(x_51); -lean_inc_ref(x_50); -lean_inc(x_49); -lean_inc_ref(x_48); -lean_inc(x_43); -x_63 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor(x_2, x_40, x_43, x_48, x_49, x_50, x_51, x_52, x_53, x_62); -if (lean_obj_tag(x_63) == 0) +uint8_t x_63; +x_63 = lean_nat_dec_le(x_61, x_61); +if (x_63 == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec_ref(x_63); -lean_inc(x_53); -lean_inc(x_51); -lean_inc_ref(x_50); -lean_inc(x_49); -lean_inc_ref(x_48); -lean_inc(x_43); -x_66 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields(x_2, x_40, x_43, x_48, x_49, x_50, x_51, x_52, x_53, x_65); -if (lean_obj_tag(x_66) == 0) +lean_dec(x_61); +lean_dec_ref(x_56); +lean_dec_ref(x_55); +lean_dec(x_47); +lean_dec(x_44); +lean_dec_ref(x_43); +lean_dec(x_39); +x_18 = x_41; +x_19 = x_42; +x_20 = x_49; +x_21 = x_50; +x_22 = x_48; +x_23 = x_51; +x_24 = x_59; +x_25 = x_45; +x_26 = x_52; +x_27 = x_46; +x_28 = x_53; +x_29 = x_54; +x_30 = x_60; +goto block_38; +} +else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); +lean_object* x_64; size_t x_65; size_t x_66; lean_object* x_67; +x_64 = lean_box(0); +x_65 = 0; +x_66 = lean_usize_of_nat(x_61); +lean_dec(x_61); +x_67 = l_Array_foldlMUnsafe_fold___at___Lean_Elab_Command_Structure_structureSyntaxToView_spec__1(x_59, x_49, x_65, x_66, x_64, x_43, x_47, x_55, x_44, x_56, x_39, x_60); +lean_dec(x_39); +lean_dec(x_44); +lean_dec_ref(x_55); +lean_dec(x_47); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; +x_68 = lean_ctor_get(x_67, 1); lean_inc(x_68); -lean_dec_ref(x_66); -x_69 = lean_array_get_size(x_67); -x_70 = lean_nat_dec_lt(x_13, x_69); -if (x_70 == 0) -{ -lean_dec(x_69); -lean_dec(x_53); -lean_dec_ref(x_52); -lean_dec(x_51); -lean_dec_ref(x_50); -lean_dec(x_49); -lean_dec_ref(x_48); -x_18 = x_61; -x_19 = x_39; -x_20 = x_40; -x_21 = x_41; -x_22 = x_42; -x_23 = x_43; -x_24 = x_64; -x_25 = x_44; -x_26 = x_56; -x_27 = x_67; -x_28 = x_47; -x_29 = x_46; +lean_dec_ref(x_67); +x_18 = x_41; +x_19 = x_42; +x_20 = x_49; +x_21 = x_50; +x_22 = x_48; +x_23 = x_51; +x_24 = x_59; +x_25 = x_45; +x_26 = x_52; +x_27 = x_46; +x_28 = x_53; +x_29 = x_54; x_30 = x_68; goto block_38; } else { -uint8_t x_71; -x_71 = lean_nat_dec_le(x_69, x_69); -if (x_71 == 0) -{ -lean_dec(x_69); +uint8_t x_69; +lean_dec(x_59); +lean_dec_ref(x_54); lean_dec(x_53); -lean_dec_ref(x_52); +lean_dec(x_52); lean_dec(x_51); lean_dec_ref(x_50); -lean_dec(x_49); -lean_dec_ref(x_48); -x_18 = x_61; -x_19 = x_39; -x_20 = x_40; -x_21 = x_41; -x_22 = x_42; -x_23 = x_43; -x_24 = x_64; -x_25 = x_44; -x_26 = x_56; -x_27 = x_67; -x_28 = x_47; -x_29 = x_46; -x_30 = x_68; -goto block_38; +lean_dec_ref(x_49); +lean_dec(x_48); +lean_dec(x_46); +lean_dec(x_42); +lean_dec_ref(x_41); +lean_dec(x_12); +lean_dec(x_2); +x_69 = !lean_is_exclusive(x_67); +if (x_69 == 0) +{ +return x_67; } else { -lean_object* x_72; size_t x_73; size_t x_74; lean_object* x_75; -x_72 = lean_box(0); -x_73 = 0; -x_74 = lean_usize_of_nat(x_69); -lean_dec(x_69); -x_75 = l_Array_foldlMUnsafe_fold___at___Lean_Elab_Command_Structure_structureSyntaxToView_spec__1(x_64, x_67, x_73, x_74, x_72, x_48, x_49, x_50, x_51, x_52, x_53, x_68); -lean_dec(x_53); -lean_dec(x_51); -lean_dec_ref(x_50); -lean_dec(x_49); -if (lean_obj_tag(x_75) == 0) -{ -lean_object* x_76; -x_76 = lean_ctor_get(x_75, 1); -lean_inc(x_76); -lean_dec_ref(x_75); -x_18 = x_61; -x_19 = x_39; -x_20 = x_40; -x_21 = x_41; -x_22 = x_42; -x_23 = x_43; -x_24 = x_64; -x_25 = x_44; -x_26 = x_56; -x_27 = x_67; -x_28 = x_47; -x_29 = x_46; -x_30 = x_76; -goto block_38; -} -else -{ -uint8_t x_77; +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_67, 0); +x_71 = lean_ctor_get(x_67, 1); +lean_inc(x_71); +lean_inc(x_70); lean_dec(x_67); -lean_dec(x_64); -lean_dec(x_61); -lean_dec(x_56); -lean_dec(x_47); -lean_dec(x_46); -lean_dec(x_43); -lean_dec(x_42); -lean_dec(x_41); -lean_dec_ref(x_40); -lean_dec(x_39); -lean_dec(x_12); -lean_dec(x_2); -x_77 = !lean_is_exclusive(x_75); -if (x_77 == 0) -{ -return x_75; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_75, 0); -x_79 = lean_ctor_get(x_75, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_75); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; } } } @@ -9251,455 +9258,619 @@ return x_80; } else { -uint8_t x_81; -lean_dec(x_64); -lean_dec(x_61); -lean_dec(x_56); +uint8_t x_73; +lean_dec_ref(x_56); +lean_dec_ref(x_55); +lean_dec_ref(x_54); lean_dec(x_53); -lean_dec_ref(x_52); +lean_dec(x_52); lean_dec(x_51); lean_dec_ref(x_50); -lean_dec(x_49); -lean_dec_ref(x_48); +lean_dec_ref(x_49); +lean_dec(x_48); lean_dec(x_47); lean_dec(x_46); -lean_dec(x_43); +lean_dec(x_44); +lean_dec_ref(x_43); lean_dec(x_42); -lean_dec(x_41); -lean_dec_ref(x_40); +lean_dec_ref(x_41); lean_dec(x_39); lean_dec(x_12); lean_dec(x_2); -x_81 = !lean_is_exclusive(x_66); -if (x_81 == 0) +x_73 = !lean_is_exclusive(x_58); +if (x_73 == 0) { -return x_66; +return x_58; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_66, 0); -x_83 = lean_ctor_get(x_66, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_66); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_58, 0); +x_75 = lean_ctor_get(x_58, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_58); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } } -else +block_128: { -uint8_t x_85; -lean_dec(x_61); -lean_dec(x_56); -lean_dec(x_53); -lean_dec_ref(x_52); -lean_dec(x_51); -lean_dec_ref(x_50); -lean_dec(x_49); -lean_dec_ref(x_48); -lean_dec(x_47); -lean_dec(x_46); -lean_dec(x_43); -lean_dec(x_42); -lean_dec(x_41); -lean_dec_ref(x_40); -lean_dec(x_39); -lean_dec(x_12); -lean_dec(x_2); -x_85 = !lean_is_exclusive(x_63); -if (x_85 == 0) +lean_object* x_94; +lean_inc_ref(x_87); +x_94 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandParents(x_84, x_87, x_88, x_89, x_90, x_91, x_92, x_93); +lean_dec(x_84); +if (lean_obj_tag(x_94) == 0) { -return x_63; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_63, 0); -x_87 = lean_ctor_get(x_63, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_63); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -return x_88; -} -} -} -else -{ -uint8_t x_89; -lean_dec(x_56); -lean_dec(x_53); -lean_dec_ref(x_52); -lean_dec(x_51); -lean_dec_ref(x_50); -lean_dec(x_49); -lean_dec_ref(x_48); -lean_dec(x_47); -lean_dec(x_46); -lean_dec(x_43); -lean_dec(x_42); -lean_dec(x_41); -lean_dec_ref(x_40); -lean_dec(x_39); -lean_dec(x_12); -lean_dec(x_2); -x_89 = !lean_is_exclusive(x_60); -if (x_89 == 0) -{ -return x_60; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_60, 0); -x_91 = lean_ctor_get(x_60, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_60); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; -} -} -} -else -{ -uint8_t x_93; -lean_dec(x_53); -lean_dec_ref(x_52); -lean_dec(x_51); -lean_dec_ref(x_50); -lean_dec(x_49); -lean_dec_ref(x_48); -lean_dec(x_47); -lean_dec(x_46); -lean_dec(x_43); -lean_dec(x_42); -lean_dec(x_41); -lean_dec_ref(x_40); -lean_dec(x_39); -lean_dec(x_12); -lean_dec(x_2); -x_93 = !lean_is_exclusive(x_55); -if (x_93 == 0) -{ -return x_55; -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_55, 0); -x_95 = lean_ctor_get(x_55, 1); +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_95 = lean_ctor_get(x_94, 0); lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_55); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -return x_96; -} -} -} -block_119: +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec_ref(x_94); +x_97 = lean_unsigned_to_nat(5u); +x_98 = l_Lean_Syntax_getArg(x_2, x_97); +lean_inc(x_92); +lean_inc_ref(x_91); +x_99 = l_Lean_Elab_getOptDerivingClasses(x_98, x_91, x_92, x_96); +if (lean_obj_tag(x_99) == 0) { -lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_110 = lean_box(0); -x_111 = lean_apply_1(x_103, x_110); -x_112 = lean_unbox(x_111); +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec_ref(x_99); +lean_inc(x_92); +lean_inc(x_90); +lean_inc_ref(x_89); +lean_inc(x_88); +lean_inc_ref(x_87); +lean_inc(x_80); +x_102 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields(x_2, x_85, x_80, x_87, x_88, x_89, x_90, x_91, x_92, x_101); +if (lean_obj_tag(x_102) == 0) +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +lean_dec_ref(x_102); +x_105 = lean_st_ref_get(x_92, x_104); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +lean_dec_ref(x_105); +x_108 = lean_ctor_get(x_106, 0); +lean_inc_ref(x_108); +lean_dec(x_106); +x_109 = l_Lean_Environment_header(x_108); +lean_dec_ref(x_108); +x_110 = lean_ctor_get_uint8(x_109, sizeof(void*)*5 + 4); +lean_dec_ref(x_109); +if (x_110 == 0) +{ +x_39 = x_92; +x_40 = x_107; +x_41 = x_95; +x_42 = x_78; +x_43 = x_87; +x_44 = x_90; +x_45 = x_81; +x_46 = x_82; +x_47 = x_88; +x_48 = x_79; +x_49 = x_103; +x_50 = x_100; +x_51 = x_80; +x_52 = x_86; +x_53 = x_83; +x_54 = x_85; +x_55 = x_89; +x_56 = x_91; +x_57 = x_110; +goto block_77; +} +else +{ +lean_object* x_111; uint8_t x_112; +x_111 = lean_array_get_size(x_103); +x_112 = lean_nat_dec_lt(x_13, x_111); if (x_112 == 0) { -lean_dec(x_98); -x_39 = x_100; -x_40 = x_99; -x_41 = x_101; -x_42 = x_102; -x_43 = x_104; -x_44 = x_105; -x_45 = x_107; -x_46 = x_109; -x_47 = x_108; -x_48 = x_3; -x_49 = x_4; -x_50 = x_5; -x_51 = x_6; -x_52 = x_7; -x_53 = x_8; -x_54 = x_106; -goto block_97; +lean_dec(x_111); +x_39 = x_92; +x_40 = x_107; +x_41 = x_95; +x_42 = x_78; +x_43 = x_87; +x_44 = x_90; +x_45 = x_81; +x_46 = x_82; +x_47 = x_88; +x_48 = x_79; +x_49 = x_103; +x_50 = x_100; +x_51 = x_80; +x_52 = x_86; +x_53 = x_83; +x_54 = x_85; +x_55 = x_89; +x_56 = x_91; +x_57 = x_112; +goto block_77; } else { -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_113 = l_Lean_Syntax_getArg(x_107, x_13); -x_114 = l_Lean_Syntax_getArg(x_113, x_98); -lean_dec(x_98); -lean_dec(x_113); -x_115 = l_Lean_Syntax_getArg(x_114, x_13); -lean_dec(x_114); -x_116 = l_Lean_Elab_Command_Structure_structureSyntaxToView___closed__3; -lean_inc_ref(x_7); -x_117 = l_Lean_logErrorAt___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__1(x_115, x_116, x_3, x_4, x_5, x_6, x_7, x_8, x_106); -lean_dec(x_115); -x_118 = lean_ctor_get(x_117, 1); +if (x_112 == 0) +{ +lean_dec(x_111); +x_39 = x_92; +x_40 = x_107; +x_41 = x_95; +x_42 = x_78; +x_43 = x_87; +x_44 = x_90; +x_45 = x_81; +x_46 = x_82; +x_47 = x_88; +x_48 = x_79; +x_49 = x_103; +x_50 = x_100; +x_51 = x_80; +x_52 = x_86; +x_53 = x_83; +x_54 = x_85; +x_55 = x_89; +x_56 = x_91; +x_57 = x_112; +goto block_77; +} +else +{ +size_t x_113; size_t x_114; uint8_t x_115; +x_113 = 0; +x_114 = lean_usize_of_nat(x_111); +lean_dec(x_111); +x_115 = l_Array_anyMUnsafe_any___at___Lean_Elab_Command_Structure_structureSyntaxToView_spec__2(x_103, x_113, x_114); +x_39 = x_92; +x_40 = x_107; +x_41 = x_95; +x_42 = x_78; +x_43 = x_87; +x_44 = x_90; +x_45 = x_81; +x_46 = x_82; +x_47 = x_88; +x_48 = x_79; +x_49 = x_103; +x_50 = x_100; +x_51 = x_80; +x_52 = x_86; +x_53 = x_83; +x_54 = x_85; +x_55 = x_89; +x_56 = x_91; +x_57 = x_115; +goto block_77; +} +} +} +} +else +{ +uint8_t x_116; +lean_dec(x_100); +lean_dec(x_95); +lean_dec(x_92); +lean_dec_ref(x_91); +lean_dec(x_90); +lean_dec_ref(x_89); +lean_dec(x_88); +lean_dec_ref(x_87); +lean_dec(x_86); +lean_dec_ref(x_85); +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_80); +lean_dec(x_79); +lean_dec(x_78); +lean_dec(x_12); +lean_dec(x_2); +x_116 = !lean_is_exclusive(x_102); +if (x_116 == 0) +{ +return x_102; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_102, 0); +x_118 = lean_ctor_get(x_102, 1); lean_inc(x_118); -lean_dec_ref(x_117); -x_39 = x_100; -x_40 = x_99; -x_41 = x_101; -x_42 = x_102; -x_43 = x_104; -x_44 = x_105; -x_45 = x_107; -x_46 = x_109; -x_47 = x_108; -x_48 = x_3; -x_49 = x_4; -x_50 = x_5; -x_51 = x_6; -x_52 = x_7; -x_53 = x_8; -x_54 = x_118; -goto block_97; +lean_inc(x_117); +lean_dec(x_102); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +return x_119; } } -block_134: -{ -uint8_t x_133; -x_133 = l_Lean_Syntax_isNone(x_130); -if (x_133 == 0) -{ -x_98 = x_120; -x_99 = x_122; -x_100 = x_121; -x_101 = x_123; -x_102 = x_124; -x_103 = x_125; -x_104 = x_126; -x_105 = x_128; -x_106 = x_127; -x_107 = x_130; -x_108 = x_129; -x_109 = x_131; -goto block_119; } else { -if (x_132 == 0) +uint8_t x_120; +lean_dec(x_95); +lean_dec(x_92); +lean_dec_ref(x_91); +lean_dec(x_90); +lean_dec_ref(x_89); +lean_dec(x_88); +lean_dec_ref(x_87); +lean_dec(x_86); +lean_dec_ref(x_85); +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_80); +lean_dec(x_79); +lean_dec(x_78); +lean_dec(x_12); +lean_dec(x_2); +x_120 = !lean_is_exclusive(x_99); +if (x_120 == 0) { -lean_dec(x_125); -lean_dec(x_120); -x_39 = x_121; -x_40 = x_122; -x_41 = x_123; -x_42 = x_124; -x_43 = x_126; -x_44 = x_128; -x_45 = x_130; -x_46 = x_131; -x_47 = x_129; -x_48 = x_3; -x_49 = x_4; -x_50 = x_5; -x_51 = x_6; -x_52 = x_7; -x_53 = x_8; -x_54 = x_127; -goto block_97; +return x_99; } else { -x_98 = x_120; -x_99 = x_122; -x_100 = x_121; -x_101 = x_123; -x_102 = x_124; -x_103 = x_125; -x_104 = x_126; -x_105 = x_128; -x_106 = x_127; -x_107 = x_130; -x_108 = x_129; -x_109 = x_131; -goto block_119; +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_99, 0); +x_122 = lean_ctor_get(x_99, 1); +lean_inc(x_122); +lean_inc(x_121); +lean_dec(x_99); +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +return x_123; } } } -block_176: +else { -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; -x_136 = l_Lean_Elab_Term_getLevelNames___redArg(x_4, x_11); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_136, 1); -lean_inc(x_138); -lean_dec_ref(x_136); -x_139 = lean_ctor_get(x_7, 6); -lean_inc(x_139); -x_140 = lean_unsigned_to_nat(1u); -x_141 = l_Lean_Syntax_getArg(x_2, x_140); +uint8_t x_124; +lean_dec(x_92); +lean_dec_ref(x_91); +lean_dec(x_90); +lean_dec_ref(x_89); +lean_dec(x_88); +lean_dec_ref(x_87); +lean_dec(x_86); +lean_dec_ref(x_85); +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_80); +lean_dec(x_79); +lean_dec(x_78); +lean_dec(x_12); +lean_dec(x_2); +x_124 = !lean_is_exclusive(x_94); +if (x_124 == 0) +{ +return x_94; +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_94, 0); +x_126 = lean_ctor_get(x_94, 1); +lean_inc(x_126); +lean_inc(x_125); +lean_dec(x_94); +x_127 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_126); +return x_127; +} +} +} +block_150: +{ +lean_object* x_141; lean_object* x_142; uint8_t x_143; +x_141 = lean_box(0); +x_142 = lean_apply_1(x_136, x_141); +x_143 = lean_unbox(x_142); +if (x_143 == 0) +{ +lean_dec(x_130); +x_78 = x_129; +x_79 = x_131; +x_80 = x_132; +x_81 = x_133; +x_82 = x_134; +x_83 = x_135; +x_84 = x_137; +x_85 = x_138; +x_86 = x_140; +x_87 = x_3; +x_88 = x_4; +x_89 = x_5; +x_90 = x_6; +x_91 = x_7; +x_92 = x_8; +x_93 = x_139; +goto block_128; +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_144 = l_Lean_Syntax_getArg(x_137, x_13); +x_145 = l_Lean_Syntax_getArg(x_144, x_130); +lean_dec(x_130); +lean_dec(x_144); +x_146 = l_Lean_Syntax_getArg(x_145, x_13); +lean_dec(x_145); +x_147 = l_Lean_Elab_Command_Structure_structureSyntaxToView___closed__3; +lean_inc_ref(x_7); +x_148 = l_Lean_logErrorAt___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__1(x_146, x_147, x_3, x_4, x_5, x_6, x_7, x_8, x_139); +lean_dec(x_146); +x_149 = lean_ctor_get(x_148, 1); +lean_inc(x_149); +lean_dec_ref(x_148); +x_78 = x_129; +x_79 = x_131; +x_80 = x_132; +x_81 = x_133; +x_82 = x_134; +x_83 = x_135; +x_84 = x_137; +x_85 = x_138; +x_86 = x_140; +x_87 = x_3; +x_88 = x_4; +x_89 = x_5; +x_90 = x_6; +x_91 = x_7; +x_92 = x_8; +x_93 = x_149; +goto block_128; +} +} +block_165: +{ +uint8_t x_164; +x_164 = l_Lean_Syntax_isNone(x_159); +if (x_164 == 0) +{ +x_129 = x_151; +x_130 = x_153; +x_131 = x_152; +x_132 = x_154; +x_133 = x_155; +x_134 = x_156; +x_135 = x_158; +x_136 = x_157; +x_137 = x_159; +x_138 = x_160; +x_139 = x_162; +x_140 = x_161; +goto block_150; +} +else +{ +if (x_163 == 0) +{ +lean_dec(x_157); +lean_dec(x_153); +x_78 = x_151; +x_79 = x_152; +x_80 = x_154; +x_81 = x_155; +x_82 = x_156; +x_83 = x_158; +x_84 = x_159; +x_85 = x_160; +x_86 = x_161; +x_87 = x_3; +x_88 = x_4; +x_89 = x_5; +x_90 = x_6; +x_91 = x_7; +x_92 = x_8; +x_93 = x_162; +goto block_128; +} +else +{ +x_129 = x_151; +x_130 = x_153; +x_131 = x_152; +x_132 = x_154; +x_133 = x_155; +x_134 = x_156; +x_135 = x_158; +x_136 = x_157; +x_137 = x_159; +x_138 = x_160; +x_139 = x_162; +x_140 = x_161; +goto block_150; +} +} +} +block_207: +{ +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; +x_167 = l_Lean_Elab_Term_getLevelNames___redArg(x_4, x_11); +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_167, 1); +lean_inc(x_169); +lean_dec_ref(x_167); +x_170 = lean_ctor_get(x_7, 6); +lean_inc(x_170); +x_171 = lean_unsigned_to_nat(1u); +x_172 = l_Lean_Syntax_getArg(x_2, x_171); lean_inc(x_8); lean_inc_ref(x_7); lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc_ref(x_3); -x_142 = l_Lean_Elab_Term_expandDeclId(x_139, x_137, x_141, x_135, x_3, x_4, x_5, x_6, x_7, x_8, x_138); -if (lean_obj_tag(x_142) == 0) +x_173 = l_Lean_Elab_Term_expandDeclId(x_170, x_168, x_172, x_166, x_3, x_4, x_5, x_6, x_7, x_8, x_169); +if (lean_obj_tag(x_173) == 0) { -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; -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -lean_dec_ref(x_142); -x_145 = lean_ctor_get(x_143, 0); -lean_inc(x_145); -x_146 = lean_ctor_get(x_143, 1); -lean_inc(x_146); -x_147 = lean_ctor_get(x_143, 2); -lean_inc(x_147); -lean_dec(x_143); -x_148 = lean_ctor_get(x_135, 0); -lean_inc(x_148); +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_174 = lean_ctor_get(x_173, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_173, 1); +lean_inc(x_175); +lean_dec_ref(x_173); +x_176 = lean_ctor_get(x_174, 0); +lean_inc(x_176); +x_177 = lean_ctor_get(x_174, 1); +lean_inc(x_177); +x_178 = lean_ctor_get(x_174, 2); +lean_inc(x_178); +lean_dec(x_174); +x_179 = lean_ctor_get(x_166, 0); +lean_inc(x_179); lean_inc_ref(x_7); lean_inc(x_2); -lean_inc(x_146); -x_149 = l_Lean_Elab_addDeclarationRangesForBuiltin___at___Lean_Elab_Command_Structure_structureSyntaxToView_spec__0(x_146, x_148, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_144); -x_150 = lean_ctor_get(x_149, 1); -lean_inc(x_150); -lean_dec_ref(x_149); -x_151 = lean_unsigned_to_nat(2u); -x_152 = l_Lean_Syntax_getArg(x_2, x_151); -x_153 = l_Lean_Elab_expandOptDeclSig(x_152); -lean_dec(x_152); -x_154 = lean_ctor_get(x_153, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_153, 1); -lean_inc(x_155); -lean_dec_ref(x_153); -x_156 = lean_unsigned_to_nat(3u); -x_157 = l_Lean_Syntax_getArg(x_2, x_156); -lean_inc(x_157); -x_158 = lean_alloc_closure((void*)(l_Lean_Elab_Command_Structure_structureSyntaxToView___lam__0___boxed), 4, 3); -lean_closure_set(x_158, 0, x_157); -lean_closure_set(x_158, 1, x_13); -lean_closure_set(x_158, 2, x_151); -if (lean_obj_tag(x_155) == 0) +lean_inc(x_177); +x_180 = l_Lean_Elab_addDeclarationRangesForBuiltin___at___Lean_Elab_Command_Structure_structureSyntaxToView_spec__0(x_177, x_179, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_175); +x_181 = lean_ctor_get(x_180, 1); +lean_inc(x_181); +lean_dec_ref(x_180); +x_182 = lean_unsigned_to_nat(2u); +x_183 = l_Lean_Syntax_getArg(x_2, x_182); +x_184 = l_Lean_Elab_expandOptDeclSig(x_183); +lean_dec(x_183); +x_185 = lean_ctor_get(x_184, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_184, 1); +lean_inc(x_186); +lean_dec_ref(x_184); +x_187 = lean_unsigned_to_nat(3u); +x_188 = l_Lean_Syntax_getArg(x_2, x_187); +lean_inc(x_188); +x_189 = lean_alloc_closure((void*)(l_Lean_Elab_Command_Structure_structureSyntaxToView___lam__0___boxed), 4, 3); +lean_closure_set(x_189, 0, x_188); +lean_closure_set(x_189, 1, x_13); +lean_closure_set(x_189, 2, x_182); +if (lean_obj_tag(x_186) == 0) { -uint8_t x_159; -x_159 = l_Lean_Syntax_isNone(x_157); -if (x_159 == 0) +uint8_t x_190; +x_190 = l_Lean_Syntax_isNone(x_188); +if (x_190 == 0) { -lean_object* x_160; uint8_t x_161; -x_160 = lean_box(0); -x_161 = l_Lean_Elab_Command_Structure_structureSyntaxToView___lam__0(x_157, x_13, x_151, x_160); -if (x_161 == 0) +lean_object* x_191; uint8_t x_192; +x_191 = lean_box(0); +x_192 = l_Lean_Elab_Command_Structure_structureSyntaxToView___lam__0(x_188, x_13, x_182, x_191); +if (x_192 == 0) { -x_120 = x_151; -x_121 = x_154; -x_122 = x_135; -x_123 = x_145; -x_124 = x_147; -x_125 = x_158; -x_126 = x_146; -x_127 = x_150; -x_128 = x_140; -x_129 = x_155; -x_130 = x_157; -x_131 = x_141; -x_132 = x_161; -goto block_134; +x_151 = x_185; +x_152 = x_172; +x_153 = x_182; +x_154 = x_177; +x_155 = x_171; +x_156 = x_178; +x_157 = x_189; +x_158 = x_176; +x_159 = x_188; +x_160 = x_166; +x_161 = x_186; +x_162 = x_181; +x_163 = x_192; +goto block_165; } else { -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_dec_ref(x_158); -x_162 = l_Lean_Syntax_getArg(x_157, x_13); -x_163 = l_Lean_Syntax_getArg(x_162, x_151); -lean_dec(x_162); -x_164 = l_Lean_Syntax_getArg(x_163, x_13); -lean_dec(x_163); -x_165 = l_Lean_Elab_Command_Structure_structureSyntaxToView___closed__6; +lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; +lean_dec_ref(x_189); +x_193 = l_Lean_Syntax_getArg(x_188, x_13); +x_194 = l_Lean_Syntax_getArg(x_193, x_182); +lean_dec(x_193); +x_195 = l_Lean_Syntax_getArg(x_194, x_13); +lean_dec(x_194); +x_196 = l_Lean_Elab_Command_Structure_structureSyntaxToView___closed__6; lean_inc_ref(x_7); -x_166 = l_Lean_logWarningAt___at___Lean_Linter_logLint___at___Lean_Linter_logLintIf___at___Lean_Elab_Term_elabLetFunDecl_spec__0_spec__0_spec__0___redArg(x_164, x_165, x_5, x_6, x_7, x_8, x_150); -x_167 = lean_ctor_get(x_166, 1); -lean_inc(x_167); +x_197 = l_Lean_logWarningAt___at___Lean_Linter_logLint___at___Lean_Linter_logLintIf___at___Lean_Elab_Term_elabLetFunDecl_spec__0_spec__0_spec__0___redArg(x_195, x_196, x_5, x_6, x_7, x_8, x_181); +x_198 = lean_ctor_get(x_197, 1); +lean_inc(x_198); +lean_dec_ref(x_197); +x_199 = l_Lean_Syntax_getArg(x_195, x_171); +lean_dec(x_195); +x_200 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_200, 0, x_199); +x_78 = x_185; +x_79 = x_172; +x_80 = x_177; +x_81 = x_171; +x_82 = x_178; +x_83 = x_176; +x_84 = x_188; +x_85 = x_166; +x_86 = x_200; +x_87 = x_3; +x_88 = x_4; +x_89 = x_5; +x_90 = x_6; +x_91 = x_7; +x_92 = x_8; +x_93 = x_198; +goto block_128; +} +} +else +{ +uint8_t x_201; +x_201 = 0; +x_151 = x_185; +x_152 = x_172; +x_153 = x_182; +x_154 = x_177; +x_155 = x_171; +x_156 = x_178; +x_157 = x_189; +x_158 = x_176; +x_159 = x_188; +x_160 = x_166; +x_161 = x_186; +x_162 = x_181; +x_163 = x_201; +goto block_165; +} +} +else +{ +uint8_t x_202; +x_202 = 0; +x_151 = x_185; +x_152 = x_172; +x_153 = x_182; +x_154 = x_177; +x_155 = x_171; +x_156 = x_178; +x_157 = x_189; +x_158 = x_176; +x_159 = x_188; +x_160 = x_166; +x_161 = x_186; +x_162 = x_181; +x_163 = x_202; +goto block_165; +} +} +else +{ +uint8_t x_203; +lean_dec(x_172); lean_dec_ref(x_166); -x_168 = l_Lean_Syntax_getArg(x_164, x_140); -lean_dec(x_164); -x_169 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_169, 0, x_168); -x_39 = x_154; -x_40 = x_135; -x_41 = x_145; -x_42 = x_147; -x_43 = x_146; -x_44 = x_140; -x_45 = x_157; -x_46 = x_141; -x_47 = x_169; -x_48 = x_3; -x_49 = x_4; -x_50 = x_5; -x_51 = x_6; -x_52 = x_7; -x_53 = x_8; -x_54 = x_167; -goto block_97; -} -} -else -{ -uint8_t x_170; -x_170 = 0; -x_120 = x_151; -x_121 = x_154; -x_122 = x_135; -x_123 = x_145; -x_124 = x_147; -x_125 = x_158; -x_126 = x_146; -x_127 = x_150; -x_128 = x_140; -x_129 = x_155; -x_130 = x_157; -x_131 = x_141; -x_132 = x_170; -goto block_134; -} -} -else -{ -uint8_t x_171; -x_171 = 0; -x_120 = x_151; -x_121 = x_154; -x_122 = x_135; -x_123 = x_145; -x_124 = x_147; -x_125 = x_158; -x_126 = x_146; -x_127 = x_150; -x_128 = x_140; -x_129 = x_155; -x_130 = x_157; -x_131 = x_141; -x_132 = x_171; -goto block_134; -} -} -else -{ -uint8_t x_172; -lean_dec(x_141); -lean_dec_ref(x_135); lean_dec(x_12); lean_dec(x_8); lean_dec_ref(x_7); @@ -9708,30 +9879,30 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); lean_dec(x_2); -x_172 = !lean_is_exclusive(x_142); -if (x_172 == 0) +x_203 = !lean_is_exclusive(x_173); +if (x_203 == 0) { -return x_142; +return x_173; } else { -lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_173 = lean_ctor_get(x_142, 0); -x_174 = lean_ctor_get(x_142, 1); -lean_inc(x_174); -lean_inc(x_173); -lean_dec(x_142); -x_175 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_175, 0, x_173); -lean_ctor_set(x_175, 1, x_174); -return x_175; +lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_204 = lean_ctor_get(x_173, 0); +x_205 = lean_ctor_get(x_173, 1); +lean_inc(x_205); +lean_inc(x_204); +lean_dec(x_173); +x_206 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_206, 0, x_204); +lean_ctor_set(x_206, 1, x_205); +return x_206; } } } } else { -uint8_t x_179; +uint8_t x_210; lean_dec(x_8); lean_dec_ref(x_7); lean_dec(x_6); @@ -9740,23 +9911,23 @@ lean_dec(x_4); lean_dec_ref(x_3); lean_dec(x_2); lean_dec_ref(x_1); -x_179 = !lean_is_exclusive(x_10); -if (x_179 == 0) +x_210 = !lean_is_exclusive(x_10); +if (x_210 == 0) { return x_10; } else { -lean_object* x_180; lean_object* x_181; lean_object* x_182; -x_180 = lean_ctor_get(x_10, 0); -x_181 = lean_ctor_get(x_10, 1); -lean_inc(x_181); -lean_inc(x_180); +lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_211 = lean_ctor_get(x_10, 0); +x_212 = lean_ctor_get(x_10, 1); +lean_inc(x_212); +lean_inc(x_211); lean_dec(x_10); -x_182 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_182, 0, x_180); -lean_ctor_set(x_182, 1, x_181); -return x_182; +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_211); +lean_ctor_set(x_213, 1, x_212); +return x_213; } } } @@ -9792,6 +9963,20 @@ lean_dec_ref(x_1); return x_15; } } +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_Command_Structure_structureSyntaxToView_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; uint8_t x_6; lean_object* x_7; +x_4 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_5 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_6 = l_Array_anyMUnsafe_any___at___Lean_Elab_Command_Structure_structureSyntaxToView_spec__2(x_1, x_4, x_5); +lean_dec_ref(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Command_Structure_structureSyntaxToView___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -14767,7 +14952,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs___lam__2___closed__2; x_2 = lean_unsigned_to_nat(79u); -x_3 = lean_unsigned_to_nat(498u); +x_3 = lean_unsigned_to_nat(506u); x_4 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs___lam__2___closed__1; x_5 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs___lam__2___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -19282,7 +19467,7 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_logAt___at___Lean_log___at___Lean_logWarning___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_getFieldDefaultValue_x3f_spec__6_spec__6_spec__6___redArg(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; uint8_t x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; lean_object* x_98; lean_object* x_99; uint8_t x_100; uint8_t x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; lean_object* x_109; lean_object* x_110; uint8_t x_111; lean_object* x_112; uint8_t x_113; lean_object* x_114; uint8_t x_115; uint8_t x_121; lean_object* x_122; uint8_t x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_128; uint8_t x_130; uint8_t x_147; +lean_object* x_11; lean_object* x_12; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; uint8_t x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; lean_object* x_98; lean_object* x_99; uint8_t x_100; uint8_t x_101; lean_object* x_102; uint8_t x_103; lean_object* x_104; lean_object* x_105; lean_object* x_109; lean_object* x_110; uint8_t x_111; uint8_t x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; uint8_t x_121; lean_object* x_122; uint8_t x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_128; uint8_t x_130; uint8_t x_147; x_121 = 2; x_147 = l_Lean_beqMessageSeverity____x40_Lean_Message___hyg_185_(x_3, x_121); if (x_147 == 0) @@ -19335,13 +19520,13 @@ x_34 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_34, 0, x_26); lean_ctor_set(x_34, 1, x_19); x_35 = lean_alloc_ctor(0, 5, 3); -lean_ctor_set(x_35, 0, x_20); -lean_ctor_set(x_35, 1, x_17); +lean_ctor_set(x_35, 0, x_17); +lean_ctor_set(x_35, 1, x_16); lean_ctor_set(x_35, 2, x_22); -lean_ctor_set(x_35, 3, x_16); +lean_ctor_set(x_35, 3, x_20); lean_ctor_set(x_35, 4, x_34); -lean_ctor_set_uint8(x_35, sizeof(void*)*5, x_21); -lean_ctor_set_uint8(x_35, sizeof(void*)*5 + 1, x_18); +lean_ctor_set_uint8(x_35, sizeof(void*)*5, x_18); +lean_ctor_set_uint8(x_35, sizeof(void*)*5 + 1, x_21); lean_ctor_set_uint8(x_35, sizeof(void*)*5 + 2, x_4); x_36 = l_Lean_MessageLog_add(x_35, x_33); lean_ctor_set(x_28, 6, x_36); @@ -19382,13 +19567,13 @@ x_49 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_49, 0, x_26); lean_ctor_set(x_49, 1, x_19); x_50 = lean_alloc_ctor(0, 5, 3); -lean_ctor_set(x_50, 0, x_20); -lean_ctor_set(x_50, 1, x_17); +lean_ctor_set(x_50, 0, x_17); +lean_ctor_set(x_50, 1, x_16); lean_ctor_set(x_50, 2, x_22); -lean_ctor_set(x_50, 3, x_16); +lean_ctor_set(x_50, 3, x_20); lean_ctor_set(x_50, 4, x_49); -lean_ctor_set_uint8(x_50, sizeof(void*)*5, x_21); -lean_ctor_set_uint8(x_50, sizeof(void*)*5 + 1, x_18); +lean_ctor_set_uint8(x_50, sizeof(void*)*5, x_18); +lean_ctor_set_uint8(x_50, sizeof(void*)*5 + 1, x_21); lean_ctor_set_uint8(x_50, sizeof(void*)*5 + 2, x_4); x_51 = l_Lean_MessageLog_add(x_50, x_46); x_52 = lean_alloc_ctor(0, 9, 0); @@ -19464,13 +19649,13 @@ x_71 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_71, 0, x_70); lean_ctor_set(x_71, 1, x_19); x_72 = lean_alloc_ctor(0, 5, 3); -lean_ctor_set(x_72, 0, x_20); -lean_ctor_set(x_72, 1, x_17); +lean_ctor_set(x_72, 0, x_17); +lean_ctor_set(x_72, 1, x_16); lean_ctor_set(x_72, 2, x_22); -lean_ctor_set(x_72, 3, x_16); +lean_ctor_set(x_72, 3, x_20); lean_ctor_set(x_72, 4, x_71); -lean_ctor_set_uint8(x_72, sizeof(void*)*5, x_21); -lean_ctor_set_uint8(x_72, sizeof(void*)*5 + 1, x_18); +lean_ctor_set_uint8(x_72, sizeof(void*)*5, x_18); +lean_ctor_set_uint8(x_72, sizeof(void*)*5 + 1, x_21); lean_ctor_set_uint8(x_72, sizeof(void*)*5 + 2, x_4); x_73 = l_Lean_MessageLog_add(x_72, x_66); if (lean_is_scalar(x_69)) { @@ -19507,10 +19692,10 @@ lean_inc(x_89); x_90 = lean_ctor_get(x_88, 1); lean_inc(x_90); lean_dec_ref(x_88); -lean_inc_ref(x_81); -x_91 = l_Lean_FileMap_toPosition(x_81, x_80); +lean_inc_ref(x_84); +x_91 = l_Lean_FileMap_toPosition(x_84, x_80); lean_dec(x_80); -x_92 = l_Lean_FileMap_toPosition(x_81, x_86); +x_92 = l_Lean_FileMap_toPosition(x_84, x_86); lean_dec(x_86); x_93 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_93, 0, x_92); @@ -19518,11 +19703,11 @@ x_94 = l_Lean_Elab_Command_initFn___closed__2____x40_Lean_Elab_Structure___hyg_8 if (x_82 == 0) { lean_dec(x_79); -x_16 = x_94; -x_17 = x_91; +x_16 = x_91; +x_17 = x_81; x_18 = x_83; x_19 = x_89; -x_20 = x_84; +x_20 = x_94; x_21 = x_85; x_22 = x_93; x_23 = x_8; @@ -19541,7 +19726,7 @@ lean_object* x_96; lean_dec_ref(x_93); lean_dec_ref(x_91); lean_dec(x_89); -lean_dec_ref(x_84); +lean_dec_ref(x_81); lean_dec_ref(x_8); x_96 = lean_box(0); x_11 = x_96; @@ -19550,11 +19735,11 @@ goto block_15; } else { -x_16 = x_94; -x_17 = x_91; +x_16 = x_91; +x_17 = x_81; x_18 = x_83; x_19 = x_89; -x_20 = x_84; +x_20 = x_94; x_21 = x_85; x_22 = x_93; x_23 = x_8; @@ -19567,8 +19752,8 @@ goto block_78; block_108: { lean_object* x_106; -x_106 = l_Lean_Syntax_getTailPos_x3f(x_102, x_104); -lean_dec(x_102); +x_106 = l_Lean_Syntax_getTailPos_x3f(x_104, x_101); +lean_dec(x_104); if (lean_obj_tag(x_106) == 0) { lean_inc(x_105); @@ -19577,8 +19762,8 @@ x_80 = x_105; x_81 = x_99; x_82 = x_100; x_83 = x_101; -x_84 = x_103; -x_85 = x_104; +x_84 = x_102; +x_85 = x_103; x_86 = x_105; goto block_97; } @@ -19593,8 +19778,8 @@ x_80 = x_105; x_81 = x_99; x_82 = x_100; x_83 = x_101; -x_84 = x_103; -x_85 = x_104; +x_84 = x_102; +x_85 = x_103; x_86 = x_107; goto block_97; } @@ -19604,7 +19789,7 @@ block_120: lean_object* x_116; lean_object* x_117; x_116 = l_Lean_replaceRef(x_1, x_114); lean_dec(x_114); -x_117 = l_Lean_Syntax_getPos_x3f(x_116, x_113); +x_117 = l_Lean_Syntax_getPos_x3f(x_116, x_112); if (lean_obj_tag(x_117) == 0) { lean_object* x_118; @@ -19612,10 +19797,10 @@ x_118 = lean_unsigned_to_nat(0u); x_98 = x_109; x_99 = x_110; x_100 = x_111; -x_101 = x_115; -x_102 = x_116; -x_103 = x_112; -x_104 = x_113; +x_101 = x_112; +x_102 = x_113; +x_103 = x_115; +x_104 = x_116; x_105 = x_118; goto block_108; } @@ -19628,10 +19813,10 @@ lean_dec(x_117); x_98 = x_109; x_99 = x_110; x_100 = x_111; -x_101 = x_115; -x_102 = x_116; -x_103 = x_112; -x_104 = x_113; +x_101 = x_112; +x_102 = x_113; +x_103 = x_115; +x_104 = x_116; x_105 = x_119; goto block_108; } @@ -19643,9 +19828,9 @@ if (x_128 == 0) x_109 = x_124; x_110 = x_122; x_111 = x_123; -x_112 = x_125; -x_113 = x_127; -x_114 = x_126; +x_112 = x_127; +x_113 = x_126; +x_114 = x_125; x_115 = x_3; goto block_120; } @@ -19654,9 +19839,9 @@ else x_109 = x_124; x_110 = x_122; x_111 = x_123; -x_112 = x_125; -x_113 = x_127; -x_114 = x_126; +x_112 = x_127; +x_113 = x_126; +x_114 = x_125; x_115 = x_121; goto block_120; } @@ -19685,11 +19870,11 @@ x_140 = l_Lean_beqMessageSeverity____x40_Lean_Message___hyg_185_(x_3, x_139); if (x_140 == 0) { lean_dec(x_133); -x_122 = x_132; +x_122 = x_131; x_123 = x_135; x_124 = x_138; -x_125 = x_131; -x_126 = x_134; +x_125 = x_134; +x_126 = x_132; x_127 = x_130; x_128 = x_140; goto block_129; @@ -19700,11 +19885,11 @@ lean_object* x_141; uint8_t x_142; x_141 = l_Lean_logAt___at___Lean_log___at___Lean_logWarning___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_getFieldDefaultValue_x3f_spec__6_spec__6_spec__6___redArg___closed__0; x_142 = l_Lean_Option_get___at_____private_Lean_Util_Profile_0__Lean_get__profiler_spec__0(x_133, x_141); lean_dec(x_133); -x_122 = x_132; +x_122 = x_131; x_123 = x_135; x_124 = x_138; -x_125 = x_131; -x_126 = x_134; +x_125 = x_134; +x_126 = x_132; x_127 = x_130; x_128 = x_142; goto block_129; @@ -25024,7 +25209,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct___redArg___closed__9; x_2 = lean_unsigned_to_nat(4u); -x_3 = lean_unsigned_to_nat(708u); +x_3 = lean_unsigned_to_nat(716u); x_4 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct___redArg___closed__8; x_5 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs___lam__2___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -25148,7 +25333,7 @@ x_31 = lean_ctor_get(x_27, 1); x_32 = l_Lean_Meta_getStructureName(x_30, x_13, x_14, x_15, x_16, x_28); if (lean_obj_tag(x_32) == 0) { -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; uint8_t 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_70; uint8_t 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_83; uint8_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; uint8_t x_93; lean_object* x_94; lean_object* x_95; lean_object* x_106; uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; 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; uint8_t x_522; +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; uint8_t 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_70; lean_object* x_71; uint8_t 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_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; uint8_t x_93; lean_object* x_94; lean_object* x_95; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; 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; uint8_t x_522; x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); x_34 = lean_ctor_get(x_32, 1); @@ -25259,15 +25444,15 @@ lean_inc(x_4); x_65 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct___redArg___lam__0___boxed), 15, 6); lean_closure_set(x_65, 0, x_4); lean_closure_set(x_65, 1, x_53); -lean_closure_set(x_65, 2, x_50); +lean_closure_set(x_65, 2, x_51); lean_closure_set(x_65, 3, x_64); lean_closure_set(x_65, 4, x_2); lean_closure_set(x_65, 5, x_55); -x_66 = lean_box(x_51); +x_66 = lean_box(x_52); lean_inc(x_30); x_67 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct___redArg___lam__1___boxed), 18, 9); lean_closure_set(x_67, 0, x_4); -lean_closure_set(x_67, 1, x_52); +lean_closure_set(x_67, 1, x_50); lean_closure_set(x_67, 2, x_33); lean_closure_set(x_67, 3, x_49); lean_closure_set(x_67, 4, x_8); @@ -25290,14 +25475,14 @@ x_52 = x_72; x_53 = x_81; x_54 = x_6; x_55 = x_7; -x_56 = x_74; -x_57 = x_79; -x_58 = x_78; -x_59 = x_77; -x_60 = x_76; -x_61 = x_75; -x_62 = x_73; -x_63 = x_80; +x_56 = x_80; +x_57 = x_77; +x_58 = x_76; +x_59 = x_74; +x_60 = x_73; +x_61 = x_79; +x_62 = x_75; +x_63 = x_78; goto block_69; } block_105: @@ -25313,8 +25498,8 @@ x_96 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_96, 0, x_30); x_97 = 0; x_98 = lean_box(0); -lean_inc_ref(x_90); -x_99 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_96, x_97, x_98, x_90, x_88, x_87, x_86, x_95); +lean_inc_ref(x_86); +x_99 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_96, x_97, x_98, x_86, x_87, x_91, x_89, x_95); x_100 = lean_ctor_get(x_99, 0); lean_inc(x_100); x_101 = lean_ctor_get(x_99, 1); @@ -25336,12 +25521,12 @@ x_53 = x_103; x_54 = x_104; x_55 = x_102; x_56 = x_94; -x_57 = x_91; -x_58 = x_89; -x_59 = x_90; -x_60 = x_88; -x_61 = x_87; -x_62 = x_86; +x_57 = x_90; +x_58 = x_88; +x_59 = x_86; +x_60 = x_87; +x_61 = x_91; +x_62 = x_89; x_63 = x_101; goto block_69; } @@ -25350,14 +25535,14 @@ else x_70 = x_83; x_71 = x_84; x_72 = x_85; -x_73 = x_86; -x_74 = x_94; -x_75 = x_87; +x_73 = x_87; +x_74 = x_86; +x_75 = x_89; x_76 = x_88; x_77 = x_90; -x_78 = x_89; +x_78 = x_95; x_79 = x_91; -x_80 = x_95; +x_80 = x_94; goto block_82; } } @@ -25366,14 +25551,14 @@ else x_70 = x_83; x_71 = x_84; x_72 = x_85; -x_73 = x_86; -x_74 = x_94; -x_75 = x_87; +x_73 = x_87; +x_74 = x_86; +x_75 = x_89; x_76 = x_88; x_77 = x_90; -x_78 = x_89; +x_78 = x_95; x_79 = x_91; -x_80 = x_95; +x_80 = x_94; goto block_82; } } @@ -25381,25 +25566,25 @@ block_131: { lean_object* x_120; lean_object* x_121; uint8_t x_122; x_120 = lean_unsigned_to_nat(0u); -x_121 = lean_array_get_size(x_116); +x_121 = lean_array_get_size(x_114); x_122 = lean_nat_dec_lt(x_120, x_121); if (x_122 == 0) { lean_dec(x_121); -lean_dec_ref(x_116); +lean_dec_ref(x_114); x_83 = x_106; x_84 = x_107; x_85 = x_108; -x_86 = x_109; +x_86 = x_111; x_87 = x_110; -x_88 = x_111; -x_89 = x_113; -x_90 = x_112; -x_91 = x_115; +x_88 = x_113; +x_89 = x_112; +x_90 = x_115; +x_91 = x_117; x_92 = x_119; -x_93 = x_114; -x_94 = x_118; -x_95 = x_117; +x_93 = x_116; +x_94 = x_109; +x_95 = x_118; goto block_105; } else @@ -25407,20 +25592,20 @@ else if (x_122 == 0) { lean_dec(x_121); -lean_dec_ref(x_116); +lean_dec_ref(x_114); x_83 = x_106; x_84 = x_107; x_85 = x_108; -x_86 = x_109; +x_86 = x_111; x_87 = x_110; -x_88 = x_111; -x_89 = x_113; -x_90 = x_112; -x_91 = x_115; +x_88 = x_113; +x_89 = x_112; +x_90 = x_115; +x_91 = x_117; x_92 = x_119; -x_93 = x_114; -x_94 = x_118; -x_95 = x_117; +x_93 = x_116; +x_94 = x_109; +x_95 = x_118; goto block_105; } else @@ -25429,8 +25614,8 @@ size_t x_123; size_t x_124; lean_object* x_125; lean_object* x_126; lean_object* x_123 = 0; x_124 = lean_usize_of_nat(x_121); lean_dec(x_121); -x_125 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__9___redArg(x_116, x_123, x_124, x_118, x_117); -lean_dec_ref(x_116); +x_125 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__9___redArg(x_114, x_123, x_124, x_109, x_118); +lean_dec_ref(x_114); x_126 = lean_ctor_get(x_125, 0); lean_inc(x_126); x_127 = lean_ctor_get(x_125, 1); @@ -25446,12 +25631,12 @@ lean_dec(x_128); x_83 = x_106; x_84 = x_107; x_85 = x_108; -x_86 = x_109; +x_86 = x_111; x_87 = x_110; -x_88 = x_111; -x_89 = x_113; -x_90 = x_112; -x_91 = x_115; +x_88 = x_113; +x_89 = x_112; +x_90 = x_115; +x_91 = x_117; x_92 = x_119; x_93 = x_130; x_94 = x_129; @@ -25584,19 +25769,19 @@ x_180 = l_Array_isEmpty___redArg(x_179); if (x_180 == 0) { lean_inc_ref(x_179); -x_106 = x_171; -x_107 = x_178; -x_108 = x_179; -x_109 = x_138; -x_110 = x_137; -x_111 = x_136; -x_112 = x_135; +x_106 = x_179; +x_107 = x_171; +x_108 = x_178; +x_109 = x_177; +x_110 = x_136; +x_111 = x_135; +x_112 = x_138; x_113 = x_134; -x_114 = x_178; +x_114 = x_179; x_115 = x_133; -x_116 = x_179; -x_117 = x_176; -x_118 = x_177; +x_116 = x_178; +x_117 = x_137; +x_118 = x_176; x_119 = x_178; goto block_131; } @@ -25613,19 +25798,19 @@ if (x_184 == 0) lean_dec(x_183); lean_dec_ref(x_181); lean_inc_ref(x_179); -x_106 = x_171; -x_107 = x_178; -x_108 = x_179; -x_109 = x_138; -x_110 = x_137; -x_111 = x_136; -x_112 = x_135; +x_106 = x_179; +x_107 = x_171; +x_108 = x_178; +x_109 = x_177; +x_110 = x_136; +x_111 = x_135; +x_112 = x_138; x_113 = x_134; -x_114 = x_178; +x_114 = x_179; x_115 = x_133; -x_116 = x_179; -x_117 = x_176; -x_118 = x_177; +x_116 = x_178; +x_117 = x_137; +x_118 = x_176; x_119 = x_178; goto block_131; } @@ -25636,19 +25821,19 @@ if (x_184 == 0) lean_dec(x_183); lean_dec_ref(x_181); lean_inc_ref(x_179); -x_106 = x_171; -x_107 = x_178; -x_108 = x_179; -x_109 = x_138; -x_110 = x_137; -x_111 = x_136; -x_112 = x_135; +x_106 = x_179; +x_107 = x_171; +x_108 = x_178; +x_109 = x_177; +x_110 = x_136; +x_111 = x_135; +x_112 = x_138; x_113 = x_134; -x_114 = x_178; +x_114 = x_179; x_115 = x_133; -x_116 = x_179; -x_117 = x_176; -x_118 = x_177; +x_116 = x_178; +x_117 = x_137; +x_118 = x_176; x_119 = x_178; goto block_131; } @@ -25661,19 +25846,19 @@ lean_dec(x_183); x_187 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__10(x_181, x_185, x_186); lean_dec_ref(x_181); lean_inc_ref(x_179); -x_106 = x_171; -x_107 = x_178; -x_108 = x_179; -x_109 = x_138; -x_110 = x_137; -x_111 = x_136; -x_112 = x_135; +x_106 = x_179; +x_107 = x_171; +x_108 = x_178; +x_109 = x_177; +x_110 = x_136; +x_111 = x_135; +x_112 = x_138; x_113 = x_134; -x_114 = x_178; +x_114 = x_179; x_115 = x_133; -x_116 = x_179; -x_117 = x_176; -x_118 = x_177; +x_116 = x_178; +x_117 = x_137; +x_118 = x_176; x_119 = x_187; goto block_131; } @@ -25686,9 +25871,9 @@ lean_object* x_188; lean_inc(x_33); x_188 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_188, 0, x_33); -x_50 = x_171; -x_51 = x_178; -x_52 = x_179; +x_50 = x_179; +x_51 = x_171; +x_52 = x_178; x_53 = x_188; x_54 = x_6; x_55 = x_7; @@ -26110,19 +26295,19 @@ x_281 = l_Array_isEmpty___redArg(x_280); if (x_281 == 0) { lean_inc_ref(x_280); -x_106 = x_272; -x_107 = x_279; -x_108 = x_280; -x_109 = x_138; -x_110 = x_137; -x_111 = x_136; -x_112 = x_135; +x_106 = x_280; +x_107 = x_272; +x_108 = x_279; +x_109 = x_278; +x_110 = x_136; +x_111 = x_135; +x_112 = x_138; x_113 = x_134; -x_114 = x_279; +x_114 = x_280; x_115 = x_133; -x_116 = x_280; -x_117 = x_277; -x_118 = x_278; +x_116 = x_279; +x_117 = x_137; +x_118 = x_277; x_119 = x_279; goto block_131; } @@ -26139,19 +26324,19 @@ if (x_285 == 0) lean_dec(x_284); lean_dec_ref(x_282); lean_inc_ref(x_280); -x_106 = x_272; -x_107 = x_279; -x_108 = x_280; -x_109 = x_138; -x_110 = x_137; -x_111 = x_136; -x_112 = x_135; +x_106 = x_280; +x_107 = x_272; +x_108 = x_279; +x_109 = x_278; +x_110 = x_136; +x_111 = x_135; +x_112 = x_138; x_113 = x_134; -x_114 = x_279; +x_114 = x_280; x_115 = x_133; -x_116 = x_280; -x_117 = x_277; -x_118 = x_278; +x_116 = x_279; +x_117 = x_137; +x_118 = x_277; x_119 = x_279; goto block_131; } @@ -26162,19 +26347,19 @@ if (x_285 == 0) lean_dec(x_284); lean_dec_ref(x_282); lean_inc_ref(x_280); -x_106 = x_272; -x_107 = x_279; -x_108 = x_280; -x_109 = x_138; -x_110 = x_137; -x_111 = x_136; -x_112 = x_135; +x_106 = x_280; +x_107 = x_272; +x_108 = x_279; +x_109 = x_278; +x_110 = x_136; +x_111 = x_135; +x_112 = x_138; x_113 = x_134; -x_114 = x_279; +x_114 = x_280; x_115 = x_133; -x_116 = x_280; -x_117 = x_277; -x_118 = x_278; +x_116 = x_279; +x_117 = x_137; +x_118 = x_277; x_119 = x_279; goto block_131; } @@ -26187,19 +26372,19 @@ lean_dec(x_284); x_288 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__10(x_282, x_286, x_287); lean_dec_ref(x_282); lean_inc_ref(x_280); -x_106 = x_272; -x_107 = x_279; -x_108 = x_280; -x_109 = x_138; -x_110 = x_137; -x_111 = x_136; -x_112 = x_135; +x_106 = x_280; +x_107 = x_272; +x_108 = x_279; +x_109 = x_278; +x_110 = x_136; +x_111 = x_135; +x_112 = x_138; x_113 = x_134; -x_114 = x_279; +x_114 = x_280; x_115 = x_133; -x_116 = x_280; -x_117 = x_277; -x_118 = x_278; +x_116 = x_279; +x_117 = x_137; +x_118 = x_277; x_119 = x_288; goto block_131; } @@ -26212,9 +26397,9 @@ lean_object* x_289; lean_inc(x_33); x_289 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_289, 0, x_33); -x_50 = x_272; -x_51 = x_279; -x_52 = x_280; +x_50 = x_280; +x_51 = x_272; +x_52 = x_279; x_53 = x_289; x_54 = x_6; x_55 = x_7; @@ -26501,19 +26686,19 @@ x_350 = l_Array_isEmpty___redArg(x_349); if (x_350 == 0) { lean_inc_ref(x_349); -x_106 = x_341; -x_107 = x_348; -x_108 = x_349; -x_109 = x_138; -x_110 = x_137; -x_111 = x_136; -x_112 = x_135; +x_106 = x_349; +x_107 = x_341; +x_108 = x_348; +x_109 = x_347; +x_110 = x_136; +x_111 = x_135; +x_112 = x_138; x_113 = x_134; -x_114 = x_348; +x_114 = x_349; x_115 = x_133; -x_116 = x_349; -x_117 = x_346; -x_118 = x_347; +x_116 = x_348; +x_117 = x_137; +x_118 = x_346; x_119 = x_348; goto block_131; } @@ -26530,19 +26715,19 @@ if (x_354 == 0) lean_dec(x_353); lean_dec_ref(x_351); lean_inc_ref(x_349); -x_106 = x_341; -x_107 = x_348; -x_108 = x_349; -x_109 = x_138; -x_110 = x_137; -x_111 = x_136; -x_112 = x_135; +x_106 = x_349; +x_107 = x_341; +x_108 = x_348; +x_109 = x_347; +x_110 = x_136; +x_111 = x_135; +x_112 = x_138; x_113 = x_134; -x_114 = x_348; +x_114 = x_349; x_115 = x_133; -x_116 = x_349; -x_117 = x_346; -x_118 = x_347; +x_116 = x_348; +x_117 = x_137; +x_118 = x_346; x_119 = x_348; goto block_131; } @@ -26553,19 +26738,19 @@ if (x_354 == 0) lean_dec(x_353); lean_dec_ref(x_351); lean_inc_ref(x_349); -x_106 = x_341; -x_107 = x_348; -x_108 = x_349; -x_109 = x_138; -x_110 = x_137; -x_111 = x_136; -x_112 = x_135; +x_106 = x_349; +x_107 = x_341; +x_108 = x_348; +x_109 = x_347; +x_110 = x_136; +x_111 = x_135; +x_112 = x_138; x_113 = x_134; -x_114 = x_348; +x_114 = x_349; x_115 = x_133; -x_116 = x_349; -x_117 = x_346; -x_118 = x_347; +x_116 = x_348; +x_117 = x_137; +x_118 = x_346; x_119 = x_348; goto block_131; } @@ -26578,19 +26763,19 @@ lean_dec(x_353); x_357 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__10(x_351, x_355, x_356); lean_dec_ref(x_351); lean_inc_ref(x_349); -x_106 = x_341; -x_107 = x_348; -x_108 = x_349; -x_109 = x_138; -x_110 = x_137; -x_111 = x_136; -x_112 = x_135; +x_106 = x_349; +x_107 = x_341; +x_108 = x_348; +x_109 = x_347; +x_110 = x_136; +x_111 = x_135; +x_112 = x_138; x_113 = x_134; -x_114 = x_348; +x_114 = x_349; x_115 = x_133; -x_116 = x_349; -x_117 = x_346; -x_118 = x_347; +x_116 = x_348; +x_117 = x_137; +x_118 = x_346; x_119 = x_357; goto block_131; } @@ -26603,9 +26788,9 @@ lean_object* x_358; lean_inc(x_33); x_358 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_358, 0, x_33); -x_50 = x_341; -x_51 = x_348; -x_52 = x_349; +x_50 = x_349; +x_51 = x_341; +x_52 = x_348; x_53 = x_358; x_54 = x_6; x_55 = x_7; @@ -27553,7 +27738,7 @@ lean_dec(x_27); x_541 = l_Lean_Meta_getStructureName(x_539, x_13, x_14, x_15, x_16, x_28); if (lean_obj_tag(x_541) == 0) { -lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; uint8_t x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_579; uint8_t x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_592; uint8_t x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; uint8_t x_601; uint8_t x_602; lean_object* x_603; lean_object* x_604; lean_object* x_615; uint8_t x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; uint8_t x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; uint8_t x_628; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; uint8_t x_770; +lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; uint8_t x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_579; lean_object* x_580; uint8_t x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_592; lean_object* x_593; uint8_t x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; uint8_t x_601; uint8_t x_602; lean_object* x_603; lean_object* x_604; lean_object* x_615; lean_object* x_616; uint8_t x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; uint8_t x_625; lean_object* x_626; lean_object* x_627; uint8_t x_628; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; uint8_t x_770; x_542 = lean_ctor_get(x_541, 0); lean_inc(x_542); x_543 = lean_ctor_get(x_541, 1); @@ -27663,15 +27848,15 @@ lean_inc(x_4); x_574 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct___redArg___lam__0___boxed), 15, 6); lean_closure_set(x_574, 0, x_4); lean_closure_set(x_574, 1, x_562); -lean_closure_set(x_574, 2, x_559); +lean_closure_set(x_574, 2, x_560); lean_closure_set(x_574, 3, x_573); lean_closure_set(x_574, 4, x_2); lean_closure_set(x_574, 5, x_564); -x_575 = lean_box(x_560); +x_575 = lean_box(x_561); lean_inc(x_539); x_576 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct___redArg___lam__1___boxed), 18, 9); lean_closure_set(x_576, 0, x_4); -lean_closure_set(x_576, 1, x_561); +lean_closure_set(x_576, 1, x_559); lean_closure_set(x_576, 2, x_542); lean_closure_set(x_576, 3, x_558); lean_closure_set(x_576, 4, x_8); @@ -27694,14 +27879,14 @@ x_561 = x_581; x_562 = x_590; x_563 = x_6; x_564 = x_7; -x_565 = x_583; -x_566 = x_588; -x_567 = x_587; -x_568 = x_586; -x_569 = x_585; -x_570 = x_584; -x_571 = x_582; -x_572 = x_589; +x_565 = x_589; +x_566 = x_586; +x_567 = x_585; +x_568 = x_583; +x_569 = x_582; +x_570 = x_588; +x_571 = x_584; +x_572 = x_587; goto block_578; } block_614: @@ -27717,8 +27902,8 @@ x_605 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_605, 0, x_539); x_606 = 0; x_607 = lean_box(0); -lean_inc_ref(x_599); -x_608 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_605, x_606, x_607, x_599, x_597, x_596, x_595, x_604); +lean_inc_ref(x_595); +x_608 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_605, x_606, x_607, x_595, x_596, x_600, x_598, x_604); x_609 = lean_ctor_get(x_608, 0); lean_inc(x_609); x_610 = lean_ctor_get(x_608, 1); @@ -27740,12 +27925,12 @@ x_562 = x_612; x_563 = x_613; x_564 = x_611; x_565 = x_603; -x_566 = x_600; -x_567 = x_598; -x_568 = x_599; -x_569 = x_597; -x_570 = x_596; -x_571 = x_595; +x_566 = x_599; +x_567 = x_597; +x_568 = x_595; +x_569 = x_596; +x_570 = x_600; +x_571 = x_598; x_572 = x_610; goto block_578; } @@ -27754,14 +27939,14 @@ else x_579 = x_592; x_580 = x_593; x_581 = x_594; -x_582 = x_595; -x_583 = x_603; -x_584 = x_596; +x_582 = x_596; +x_583 = x_595; +x_584 = x_598; x_585 = x_597; x_586 = x_599; -x_587 = x_598; +x_587 = x_604; x_588 = x_600; -x_589 = x_604; +x_589 = x_603; goto block_591; } } @@ -27770,14 +27955,14 @@ else x_579 = x_592; x_580 = x_593; x_581 = x_594; -x_582 = x_595; -x_583 = x_603; -x_584 = x_596; +x_582 = x_596; +x_583 = x_595; +x_584 = x_598; x_585 = x_597; x_586 = x_599; -x_587 = x_598; +x_587 = x_604; x_588 = x_600; -x_589 = x_604; +x_589 = x_603; goto block_591; } } @@ -27785,25 +27970,25 @@ block_640: { lean_object* x_629; lean_object* x_630; uint8_t x_631; x_629 = lean_unsigned_to_nat(0u); -x_630 = lean_array_get_size(x_625); +x_630 = lean_array_get_size(x_623); x_631 = lean_nat_dec_lt(x_629, x_630); if (x_631 == 0) { lean_dec(x_630); -lean_dec_ref(x_625); +lean_dec_ref(x_623); x_592 = x_615; x_593 = x_616; x_594 = x_617; -x_595 = x_618; +x_595 = x_620; x_596 = x_619; -x_597 = x_620; -x_598 = x_622; -x_599 = x_621; -x_600 = x_624; +x_597 = x_622; +x_598 = x_621; +x_599 = x_624; +x_600 = x_626; x_601 = x_628; -x_602 = x_623; -x_603 = x_627; -x_604 = x_626; +x_602 = x_625; +x_603 = x_618; +x_604 = x_627; goto block_614; } else @@ -27811,20 +27996,20 @@ else if (x_631 == 0) { lean_dec(x_630); -lean_dec_ref(x_625); +lean_dec_ref(x_623); x_592 = x_615; x_593 = x_616; x_594 = x_617; -x_595 = x_618; +x_595 = x_620; x_596 = x_619; -x_597 = x_620; -x_598 = x_622; -x_599 = x_621; -x_600 = x_624; +x_597 = x_622; +x_598 = x_621; +x_599 = x_624; +x_600 = x_626; x_601 = x_628; -x_602 = x_623; -x_603 = x_627; -x_604 = x_626; +x_602 = x_625; +x_603 = x_618; +x_604 = x_627; goto block_614; } else @@ -27833,8 +28018,8 @@ size_t x_632; size_t x_633; lean_object* x_634; lean_object* x_635; lean_object* x_632 = 0; x_633 = lean_usize_of_nat(x_630); lean_dec(x_630); -x_634 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__9___redArg(x_625, x_632, x_633, x_627, x_626); -lean_dec_ref(x_625); +x_634 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__9___redArg(x_623, x_632, x_633, x_618, x_627); +lean_dec_ref(x_623); x_635 = lean_ctor_get(x_634, 0); lean_inc(x_635); x_636 = lean_ctor_get(x_634, 1); @@ -27850,12 +28035,12 @@ lean_dec(x_637); x_592 = x_615; x_593 = x_616; x_594 = x_617; -x_595 = x_618; +x_595 = x_620; x_596 = x_619; -x_597 = x_620; -x_598 = x_622; -x_599 = x_621; -x_600 = x_624; +x_597 = x_622; +x_598 = x_621; +x_599 = x_624; +x_600 = x_626; x_601 = x_628; x_602 = x_639; x_603 = x_638; @@ -27994,19 +28179,19 @@ x_687 = l_Array_isEmpty___redArg(x_686); if (x_687 == 0) { lean_inc_ref(x_686); -x_615 = x_678; -x_616 = x_685; -x_617 = x_686; -x_618 = x_647; -x_619 = x_646; -x_620 = x_645; -x_621 = x_644; +x_615 = x_686; +x_616 = x_678; +x_617 = x_685; +x_618 = x_684; +x_619 = x_645; +x_620 = x_644; +x_621 = x_647; x_622 = x_643; -x_623 = x_685; +x_623 = x_686; x_624 = x_642; -x_625 = x_686; -x_626 = x_683; -x_627 = x_684; +x_625 = x_685; +x_626 = x_646; +x_627 = x_683; x_628 = x_685; goto block_640; } @@ -28023,19 +28208,19 @@ if (x_691 == 0) lean_dec(x_690); lean_dec_ref(x_688); lean_inc_ref(x_686); -x_615 = x_678; -x_616 = x_685; -x_617 = x_686; -x_618 = x_647; -x_619 = x_646; -x_620 = x_645; -x_621 = x_644; +x_615 = x_686; +x_616 = x_678; +x_617 = x_685; +x_618 = x_684; +x_619 = x_645; +x_620 = x_644; +x_621 = x_647; x_622 = x_643; -x_623 = x_685; +x_623 = x_686; x_624 = x_642; -x_625 = x_686; -x_626 = x_683; -x_627 = x_684; +x_625 = x_685; +x_626 = x_646; +x_627 = x_683; x_628 = x_685; goto block_640; } @@ -28046,19 +28231,19 @@ if (x_691 == 0) lean_dec(x_690); lean_dec_ref(x_688); lean_inc_ref(x_686); -x_615 = x_678; -x_616 = x_685; -x_617 = x_686; -x_618 = x_647; -x_619 = x_646; -x_620 = x_645; -x_621 = x_644; +x_615 = x_686; +x_616 = x_678; +x_617 = x_685; +x_618 = x_684; +x_619 = x_645; +x_620 = x_644; +x_621 = x_647; x_622 = x_643; -x_623 = x_685; +x_623 = x_686; x_624 = x_642; -x_625 = x_686; -x_626 = x_683; -x_627 = x_684; +x_625 = x_685; +x_626 = x_646; +x_627 = x_683; x_628 = x_685; goto block_640; } @@ -28071,19 +28256,19 @@ lean_dec(x_690); x_694 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__10(x_688, x_692, x_693); lean_dec_ref(x_688); lean_inc_ref(x_686); -x_615 = x_678; -x_616 = x_685; -x_617 = x_686; -x_618 = x_647; -x_619 = x_646; -x_620 = x_645; -x_621 = x_644; +x_615 = x_686; +x_616 = x_678; +x_617 = x_685; +x_618 = x_684; +x_619 = x_645; +x_620 = x_644; +x_621 = x_647; x_622 = x_643; -x_623 = x_685; +x_623 = x_686; x_624 = x_642; -x_625 = x_686; -x_626 = x_683; -x_627 = x_684; +x_625 = x_685; +x_626 = x_646; +x_627 = x_683; x_628 = x_694; goto block_640; } @@ -28096,9 +28281,9 @@ lean_object* x_695; lean_inc(x_542); x_695 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_695, 0, x_542); -x_559 = x_678; -x_560 = x_685; -x_561 = x_686; +x_559 = x_686; +x_560 = x_678; +x_561 = x_685; x_562 = x_695; x_563 = x_6; x_564 = x_7; @@ -28720,7 +28905,7 @@ if (lean_is_exclusive(x_803)) { x_808 = l_Lean_Meta_getStructureName(x_805, x_13, x_14, x_15, x_16, x_804); if (lean_obj_tag(x_808) == 0) { -lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; uint8_t x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_846; uint8_t x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_859; uint8_t x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; uint8_t x_868; uint8_t x_869; lean_object* x_870; lean_object* x_871; lean_object* x_882; uint8_t x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; uint8_t x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; uint8_t x_895; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; uint8_t x_1037; +lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; uint8_t x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_846; lean_object* x_847; uint8_t x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_859; lean_object* x_860; uint8_t x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; uint8_t x_868; uint8_t x_869; lean_object* x_870; lean_object* x_871; lean_object* x_882; lean_object* x_883; uint8_t x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; uint8_t x_892; lean_object* x_893; lean_object* x_894; uint8_t x_895; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; uint8_t x_1037; x_809 = lean_ctor_get(x_808, 0); lean_inc(x_809); x_810 = lean_ctor_get(x_808, 1); @@ -28835,15 +29020,15 @@ lean_inc(x_4); x_841 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct___redArg___lam__0___boxed), 15, 6); lean_closure_set(x_841, 0, x_4); lean_closure_set(x_841, 1, x_829); -lean_closure_set(x_841, 2, x_826); +lean_closure_set(x_841, 2, x_827); lean_closure_set(x_841, 3, x_840); lean_closure_set(x_841, 4, x_2); lean_closure_set(x_841, 5, x_831); -x_842 = lean_box(x_827); +x_842 = lean_box(x_828); lean_inc(x_805); x_843 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct___redArg___lam__1___boxed), 18, 9); lean_closure_set(x_843, 0, x_4); -lean_closure_set(x_843, 1, x_828); +lean_closure_set(x_843, 1, x_826); lean_closure_set(x_843, 2, x_809); lean_closure_set(x_843, 3, x_825); lean_closure_set(x_843, 4, x_8); @@ -28866,14 +29051,14 @@ x_828 = x_848; x_829 = x_857; x_830 = x_6; x_831 = x_7; -x_832 = x_850; -x_833 = x_855; -x_834 = x_854; -x_835 = x_853; -x_836 = x_852; -x_837 = x_851; -x_838 = x_849; -x_839 = x_856; +x_832 = x_856; +x_833 = x_853; +x_834 = x_852; +x_835 = x_850; +x_836 = x_849; +x_837 = x_855; +x_838 = x_851; +x_839 = x_854; goto block_845; } block_881: @@ -28889,8 +29074,8 @@ x_872 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_872, 0, x_805); x_873 = 0; x_874 = lean_box(0); -lean_inc_ref(x_866); -x_875 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_872, x_873, x_874, x_866, x_864, x_863, x_862, x_871); +lean_inc_ref(x_862); +x_875 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_872, x_873, x_874, x_862, x_863, x_867, x_865, x_871); x_876 = lean_ctor_get(x_875, 0); lean_inc(x_876); x_877 = lean_ctor_get(x_875, 1); @@ -28912,12 +29097,12 @@ x_829 = x_879; x_830 = x_880; x_831 = x_878; x_832 = x_870; -x_833 = x_867; -x_834 = x_865; -x_835 = x_866; -x_836 = x_864; -x_837 = x_863; -x_838 = x_862; +x_833 = x_866; +x_834 = x_864; +x_835 = x_862; +x_836 = x_863; +x_837 = x_867; +x_838 = x_865; x_839 = x_877; goto block_845; } @@ -28926,14 +29111,14 @@ else x_846 = x_859; x_847 = x_860; x_848 = x_861; -x_849 = x_862; -x_850 = x_870; -x_851 = x_863; +x_849 = x_863; +x_850 = x_862; +x_851 = x_865; x_852 = x_864; x_853 = x_866; -x_854 = x_865; +x_854 = x_871; x_855 = x_867; -x_856 = x_871; +x_856 = x_870; goto block_858; } } @@ -28942,14 +29127,14 @@ else x_846 = x_859; x_847 = x_860; x_848 = x_861; -x_849 = x_862; -x_850 = x_870; -x_851 = x_863; +x_849 = x_863; +x_850 = x_862; +x_851 = x_865; x_852 = x_864; x_853 = x_866; -x_854 = x_865; +x_854 = x_871; x_855 = x_867; -x_856 = x_871; +x_856 = x_870; goto block_858; } } @@ -28957,25 +29142,25 @@ block_907: { lean_object* x_896; lean_object* x_897; uint8_t x_898; x_896 = lean_unsigned_to_nat(0u); -x_897 = lean_array_get_size(x_892); +x_897 = lean_array_get_size(x_890); x_898 = lean_nat_dec_lt(x_896, x_897); if (x_898 == 0) { lean_dec(x_897); -lean_dec_ref(x_892); +lean_dec_ref(x_890); x_859 = x_882; x_860 = x_883; x_861 = x_884; -x_862 = x_885; +x_862 = x_887; x_863 = x_886; -x_864 = x_887; -x_865 = x_889; -x_866 = x_888; -x_867 = x_891; +x_864 = x_889; +x_865 = x_888; +x_866 = x_891; +x_867 = x_893; x_868 = x_895; -x_869 = x_890; -x_870 = x_894; -x_871 = x_893; +x_869 = x_892; +x_870 = x_885; +x_871 = x_894; goto block_881; } else @@ -28983,20 +29168,20 @@ else if (x_898 == 0) { lean_dec(x_897); -lean_dec_ref(x_892); +lean_dec_ref(x_890); x_859 = x_882; x_860 = x_883; x_861 = x_884; -x_862 = x_885; +x_862 = x_887; x_863 = x_886; -x_864 = x_887; -x_865 = x_889; -x_866 = x_888; -x_867 = x_891; +x_864 = x_889; +x_865 = x_888; +x_866 = x_891; +x_867 = x_893; x_868 = x_895; -x_869 = x_890; -x_870 = x_894; -x_871 = x_893; +x_869 = x_892; +x_870 = x_885; +x_871 = x_894; goto block_881; } else @@ -29005,8 +29190,8 @@ size_t x_899; size_t x_900; lean_object* x_901; lean_object* x_902; lean_object* x_899 = 0; x_900 = lean_usize_of_nat(x_897); lean_dec(x_897); -x_901 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__9___redArg(x_892, x_899, x_900, x_894, x_893); -lean_dec_ref(x_892); +x_901 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__9___redArg(x_890, x_899, x_900, x_885, x_894); +lean_dec_ref(x_890); x_902 = lean_ctor_get(x_901, 0); lean_inc(x_902); x_903 = lean_ctor_get(x_901, 1); @@ -29022,12 +29207,12 @@ lean_dec(x_904); x_859 = x_882; x_860 = x_883; x_861 = x_884; -x_862 = x_885; +x_862 = x_887; x_863 = x_886; -x_864 = x_887; -x_865 = x_889; -x_866 = x_888; -x_867 = x_891; +x_864 = x_889; +x_865 = x_888; +x_866 = x_891; +x_867 = x_893; x_868 = x_895; x_869 = x_906; x_870 = x_905; @@ -29166,19 +29351,19 @@ x_954 = l_Array_isEmpty___redArg(x_953); if (x_954 == 0) { lean_inc_ref(x_953); -x_882 = x_945; -x_883 = x_952; -x_884 = x_953; -x_885 = x_914; -x_886 = x_913; -x_887 = x_912; -x_888 = x_911; +x_882 = x_953; +x_883 = x_945; +x_884 = x_952; +x_885 = x_951; +x_886 = x_912; +x_887 = x_911; +x_888 = x_914; x_889 = x_910; -x_890 = x_952; +x_890 = x_953; x_891 = x_909; -x_892 = x_953; -x_893 = x_950; -x_894 = x_951; +x_892 = x_952; +x_893 = x_913; +x_894 = x_950; x_895 = x_952; goto block_907; } @@ -29195,19 +29380,19 @@ if (x_958 == 0) lean_dec(x_957); lean_dec_ref(x_955); lean_inc_ref(x_953); -x_882 = x_945; -x_883 = x_952; -x_884 = x_953; -x_885 = x_914; -x_886 = x_913; -x_887 = x_912; -x_888 = x_911; +x_882 = x_953; +x_883 = x_945; +x_884 = x_952; +x_885 = x_951; +x_886 = x_912; +x_887 = x_911; +x_888 = x_914; x_889 = x_910; -x_890 = x_952; +x_890 = x_953; x_891 = x_909; -x_892 = x_953; -x_893 = x_950; -x_894 = x_951; +x_892 = x_952; +x_893 = x_913; +x_894 = x_950; x_895 = x_952; goto block_907; } @@ -29218,19 +29403,19 @@ if (x_958 == 0) lean_dec(x_957); lean_dec_ref(x_955); lean_inc_ref(x_953); -x_882 = x_945; -x_883 = x_952; -x_884 = x_953; -x_885 = x_914; -x_886 = x_913; -x_887 = x_912; -x_888 = x_911; +x_882 = x_953; +x_883 = x_945; +x_884 = x_952; +x_885 = x_951; +x_886 = x_912; +x_887 = x_911; +x_888 = x_914; x_889 = x_910; -x_890 = x_952; +x_890 = x_953; x_891 = x_909; -x_892 = x_953; -x_893 = x_950; -x_894 = x_951; +x_892 = x_952; +x_893 = x_913; +x_894 = x_950; x_895 = x_952; goto block_907; } @@ -29243,19 +29428,19 @@ lean_dec(x_957); x_961 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__10(x_955, x_959, x_960); lean_dec_ref(x_955); lean_inc_ref(x_953); -x_882 = x_945; -x_883 = x_952; -x_884 = x_953; -x_885 = x_914; -x_886 = x_913; -x_887 = x_912; -x_888 = x_911; +x_882 = x_953; +x_883 = x_945; +x_884 = x_952; +x_885 = x_951; +x_886 = x_912; +x_887 = x_911; +x_888 = x_914; x_889 = x_910; -x_890 = x_952; +x_890 = x_953; x_891 = x_909; -x_892 = x_953; -x_893 = x_950; -x_894 = x_951; +x_892 = x_952; +x_893 = x_913; +x_894 = x_950; x_895 = x_961; goto block_907; } @@ -29268,9 +29453,9 @@ lean_object* x_962; lean_inc(x_809); x_962 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_962, 0, x_809); -x_826 = x_945; -x_827 = x_952; -x_828 = x_953; +x_826 = x_953; +x_827 = x_945; +x_828 = x_952; x_829 = x_962; x_830 = x_6; x_831 = x_7; @@ -29873,7 +30058,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructFields___redArg___closed__1; x_2 = lean_unsigned_to_nat(2u); -x_3 = lean_unsigned_to_nat(647u); +x_3 = lean_unsigned_to_nat(655u); x_4 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructFields___redArg___closed__0; x_5 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs___lam__2___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -29903,7 +30088,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs___lam__2___closed__2; x_2 = lean_unsigned_to_nat(43u); -x_3 = lean_unsigned_to_nat(635u); +x_3 = lean_unsigned_to_nat(643u); x_4 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructFields___redArg___closed__0; x_5 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs___lam__2___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -33000,8 +33185,8 @@ lean_dec_ref(x_230); x_233 = lean_ctor_get(x_231, 1); lean_inc(x_233); lean_dec(x_231); -x_120 = x_194; -x_121 = x_198; +x_120 = x_198; +x_121 = x_194; x_122 = x_214; x_123 = x_233; x_124 = x_166; @@ -33090,8 +33275,8 @@ return x_241; else { lean_dec(x_195); -x_120 = x_194; -x_121 = x_198; +x_120 = x_198; +x_121 = x_194; x_122 = x_206; x_123 = x_204; x_124 = x_166; @@ -33561,8 +33746,8 @@ lean_dec_ref(x_348); x_351 = lean_ctor_get(x_349, 1); lean_inc(x_351); lean_dec(x_349); -x_120 = x_312; -x_121 = x_316; +x_120 = x_316; +x_121 = x_312; x_122 = x_332; x_123 = x_351; x_124 = x_166; @@ -33655,8 +33840,8 @@ return x_359; else { lean_dec(x_313); -x_120 = x_312; -x_121 = x_316; +x_120 = x_316; +x_121 = x_312; x_122 = x_324; x_123 = x_322; x_124 = x_166; @@ -33992,8 +34177,8 @@ lean_dec_ref(x_439); x_442 = lean_ctor_get(x_440, 1); lean_inc(x_442); lean_dec(x_440); -x_120 = x_403; -x_121 = x_407; +x_120 = x_407; +x_121 = x_403; x_122 = x_423; x_123 = x_442; x_124 = x_166; @@ -34086,8 +34271,8 @@ return x_450; else { lean_dec(x_404); -x_120 = x_403; -x_121 = x_407; +x_120 = x_407; +x_121 = x_403; x_122 = x_415; x_123 = x_413; x_124 = x_166; @@ -34448,8 +34633,8 @@ lean_dec_ref(x_534); x_537 = lean_ctor_get(x_535, 1); lean_inc(x_537); lean_dec(x_535); -x_120 = x_498; -x_121 = x_502; +x_120 = x_502; +x_121 = x_498; x_122 = x_518; x_123 = x_537; x_124 = x_166; @@ -34542,8 +34727,8 @@ return x_545; else { lean_dec(x_499); -x_120 = x_498; -x_121 = x_502; +x_120 = x_502; +x_121 = x_498; x_122 = x_510; x_123 = x_508; x_124 = x_166; @@ -35005,8 +35190,8 @@ lean_dec_ref(x_660); x_663 = lean_ctor_get(x_661, 1); lean_inc(x_663); lean_dec(x_661); -x_120 = x_624; -x_121 = x_628; +x_120 = x_628; +x_121 = x_624; x_122 = x_644; x_123 = x_663; x_124 = x_593; @@ -35099,8 +35284,8 @@ return x_671; else { lean_dec(x_625); -x_120 = x_624; -x_121 = x_628; +x_120 = x_628; +x_121 = x_624; x_122 = x_636; x_123 = x_634; x_124 = x_593; @@ -35673,7 +35858,7 @@ lean_inc(x_127); lean_inc_ref(x_126); lean_inc(x_125); lean_inc_ref(x_124); -x_136 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs(x_121, x_135, x_134, x_124, x_125, x_126, x_127, x_128, x_129, x_133); +x_136 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs(x_120, x_135, x_134, x_124, x_125, x_126, x_127, x_128, x_129, x_133); if (lean_obj_tag(x_136) == 0) { lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; lean_object* x_146; @@ -35687,10 +35872,10 @@ lean_inc(x_139); x_140 = lean_ctor_get(x_137, 1); lean_inc(x_140); lean_dec(x_137); -x_141 = lean_ctor_get(x_120, 1); +x_141 = lean_ctor_get(x_121, 1); lean_inc(x_141); -x_142 = lean_ctor_get_uint8(x_120, sizeof(void*)*4); -lean_dec_ref(x_120); +x_142 = lean_ctor_get_uint8(x_121, sizeof(void*)*4); +lean_dec_ref(x_121); x_143 = lean_box(x_142); lean_inc(x_6); x_144 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructField___redArg___lam__1___boxed), 18, 9); @@ -35717,7 +35902,7 @@ lean_dec_ref(x_126); lean_dec(x_125); lean_dec_ref(x_124); lean_dec(x_122); -lean_dec_ref(x_120); +lean_dec_ref(x_121); lean_dec(x_8); lean_dec(x_6); lean_dec_ref(x_5); @@ -37435,8 +37620,8 @@ lean_inc_ref(x_1); lean_inc(x_20); x_52 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParents_go___redArg___lam__0___boxed), 20, 11); lean_closure_set(x_52, 0, x_20); -lean_closure_set(x_52, 1, x_38); -lean_closure_set(x_52, 2, x_37); +lean_closure_set(x_52, 1, x_37); +lean_closure_set(x_52, 2, x_38); lean_closure_set(x_52, 3, x_5); lean_closure_set(x_52, 4, x_1); lean_closure_set(x_52, 5, x_2); @@ -37445,7 +37630,7 @@ lean_closure_set(x_52, 7, x_4); lean_closure_set(x_52, 8, x_21); lean_closure_set(x_52, 9, x_50); lean_closure_set(x_52, 10, x_51); -x_53 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParent___redArg(x_1, x_20, x_45, x_40, x_34, x_52, x_43, x_44, x_41, x_42, x_48, x_39, x_47, x_46); +x_53 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParent___redArg(x_1, x_20, x_45, x_48, x_34, x_52, x_41, x_39, x_43, x_42, x_44, x_40, x_47, x_46); return x_53; } block_94: @@ -37453,7 +37638,7 @@ block_94: if (x_70 == 0) { lean_object* x_71; uint8_t x_72; -lean_dec(x_62); +lean_dec(x_65); x_71 = lean_array_get_size(x_56); x_72 = lean_nat_dec_lt(x_66, x_71); if (x_72 == 0) @@ -37462,15 +37647,15 @@ lean_dec(x_71); lean_dec_ref(x_56); x_37 = x_55; x_38 = x_57; -x_39 = x_63; +x_39 = x_64; x_40 = x_58; x_41 = x_59; -x_42 = x_64; -x_43 = x_65; -x_44 = x_60; -x_45 = x_67; +x_42 = x_60; +x_43 = x_61; +x_44 = x_67; +x_45 = x_62; x_46 = x_68; -x_47 = x_61; +x_47 = x_63; x_48 = x_69; x_49 = x_70; goto block_54; @@ -37483,15 +37668,15 @@ lean_dec(x_71); lean_dec_ref(x_56); x_37 = x_55; x_38 = x_57; -x_39 = x_63; +x_39 = x_64; x_40 = x_58; x_41 = x_59; -x_42 = x_64; -x_43 = x_65; -x_44 = x_60; -x_45 = x_67; +x_42 = x_60; +x_43 = x_61; +x_44 = x_67; +x_45 = x_62; x_46 = x_68; -x_47 = x_61; +x_47 = x_63; x_48 = x_69; x_49 = x_70; goto block_54; @@ -37502,21 +37687,21 @@ size_t x_73; size_t x_74; uint8_t x_75; x_73 = 0; x_74 = lean_usize_of_nat(x_71); lean_dec(x_71); -x_75 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParents_go_spec__0(x_58, x_56, x_73, x_74); +x_75 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParents_go_spec__0(x_69, x_56, x_73, x_74); lean_dec_ref(x_56); if (x_75 == 0) { x_37 = x_55; x_38 = x_57; -x_39 = x_63; +x_39 = x_64; x_40 = x_58; x_41 = x_59; -x_42 = x_64; -x_43 = x_65; -x_44 = x_60; -x_45 = x_67; +x_42 = x_60; +x_43 = x_61; +x_44 = x_67; +x_45 = x_62; x_46 = x_68; -x_47 = x_61; +x_47 = x_63; x_48 = x_69; x_49 = x_75; goto block_54; @@ -37524,10 +37709,10 @@ goto block_54; else { 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_dec(x_67); -lean_dec_ref(x_65); -lean_dec_ref(x_60); -lean_dec(x_59); +lean_dec_ref(x_64); +lean_dec(x_62); +lean_dec(x_61); +lean_dec_ref(x_59); lean_dec(x_57); lean_dec(x_55); lean_dec(x_34); @@ -37539,7 +37724,7 @@ lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); x_76 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_fieldFromMsg___closed__1; -x_77 = l_Lean_MessageData_ofName(x_58); +x_77 = l_Lean_MessageData_ofName(x_69); x_78 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_78, 0, x_76); lean_ctor_set(x_78, 1, x_77); @@ -37547,11 +37732,11 @@ x_79 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct x_80 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_80, 0, x_78); lean_ctor_set(x_80, 1, x_79); -x_81 = l_Lean_throwError___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addFieldInfo_spec__0___redArg(x_80, x_64, x_69, x_63, x_61, x_68); -lean_dec(x_61); -lean_dec_ref(x_63); -lean_dec(x_69); -lean_dec_ref(x_64); +x_81 = l_Lean_throwError___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addFieldInfo_spec__0___redArg(x_80, x_60, x_67, x_58, x_63, x_68); +lean_dec(x_63); +lean_dec_ref(x_58); +lean_dec(x_67); +lean_dec_ref(x_60); return x_81; } } @@ -37560,8 +37745,8 @@ return x_81; else { lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -lean_dec(x_67); -lean_dec(x_58); +lean_dec(x_69); +lean_dec(x_62); lean_dec(x_57); lean_dec_ref(x_56); lean_dec(x_55); @@ -37569,7 +37754,7 @@ lean_dec(x_34); lean_dec(x_21); lean_dec(x_20); x_82 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParents_go___redArg___closed__1; -x_83 = l_Lean_MessageData_ofConstName(x_62, x_30); +x_83 = l_Lean_MessageData_ofConstName(x_65, x_30); x_84 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_84, 0, x_82); lean_ctor_set(x_84, 1, x_83); @@ -37577,8 +37762,8 @@ x_85 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParent x_86 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_86, 0, x_84); lean_ctor_set(x_86, 1, x_85); -lean_inc_ref(x_63); -x_87 = l_Lean_logWarning___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_getFieldDefaultValue_x3f_spec__6(x_86, x_65, x_60, x_59, x_64, x_69, x_63, x_61, x_68); +lean_inc_ref(x_58); +x_87 = l_Lean_logWarning___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_getFieldDefaultValue_x3f_spec__6(x_86, x_59, x_64, x_61, x_60, x_67, x_58, x_63, x_68); x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); x_89 = lean_ctor_get(x_87, 1); @@ -37592,12 +37777,12 @@ x_92 = lean_nat_add(x_5, x_91); lean_dec(x_5); x_5 = x_92; x_6 = x_90; -x_7 = x_60; -x_8 = x_59; -x_9 = x_64; -x_10 = x_69; -x_11 = x_63; -x_12 = x_61; +x_7 = x_64; +x_8 = x_61; +x_9 = x_60; +x_10 = x_67; +x_11 = x_58; +x_12 = x_63; x_13 = x_89; goto _start; } @@ -37621,23 +37806,23 @@ x_112 = lean_nat_dec_lt(x_110, x_111); if (x_112 == 0) { lean_dec(x_111); -lean_inc(x_103); lean_inc(x_108); -x_55 = x_108; +lean_inc(x_103); +x_55 = x_103; x_56 = x_109; -x_57 = x_103; -x_58 = x_108; -x_59 = x_98; +x_57 = x_108; +x_58 = x_98; +x_59 = x_104; x_60 = x_100; -x_61 = x_102; -x_62 = x_103; -x_63 = x_97; -x_64 = x_99; -x_65 = x_104; +x_61 = x_99; +x_62 = x_107; +x_63 = x_102; +x_64 = x_97; +x_65 = x_103; x_66 = x_110; -x_67 = x_107; +x_67 = x_101; x_68 = x_105; -x_69 = x_101; +x_69 = x_108; x_70 = x_96; goto block_94; } @@ -37646,23 +37831,23 @@ else if (x_112 == 0) { lean_dec(x_111); -lean_inc(x_103); lean_inc(x_108); -x_55 = x_108; +lean_inc(x_103); +x_55 = x_103; x_56 = x_109; -x_57 = x_103; -x_58 = x_108; -x_59 = x_98; +x_57 = x_108; +x_58 = x_98; +x_59 = x_104; x_60 = x_100; -x_61 = x_102; -x_62 = x_103; -x_63 = x_97; -x_64 = x_99; -x_65 = x_104; +x_61 = x_99; +x_62 = x_107; +x_63 = x_102; +x_64 = x_97; +x_65 = x_103; x_66 = x_110; -x_67 = x_107; +x_67 = x_101; x_68 = x_105; -x_69 = x_101; +x_69 = x_108; x_70 = x_96; goto block_94; } @@ -37673,23 +37858,23 @@ x_113 = 0; x_114 = lean_usize_of_nat(x_111); lean_dec(x_111); x_115 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParents_go_spec__1(x_103, x_109, x_113, x_114); -lean_inc(x_103); lean_inc(x_108); -x_55 = x_108; +lean_inc(x_103); +x_55 = x_103; x_56 = x_109; -x_57 = x_103; -x_58 = x_108; -x_59 = x_98; +x_57 = x_108; +x_58 = x_98; +x_59 = x_104; x_60 = x_100; -x_61 = x_102; -x_62 = x_103; -x_63 = x_97; -x_64 = x_99; -x_65 = x_104; +x_61 = x_99; +x_62 = x_107; +x_63 = x_102; +x_64 = x_97; +x_65 = x_103; x_66 = x_110; -x_67 = x_107; +x_67 = x_101; x_68 = x_105; -x_69 = x_101; +x_69 = x_108; x_70 = x_115; goto block_94; } @@ -37697,14 +37882,14 @@ goto block_94; } block_137: { -lean_dec_ref(x_122); lean_dec(x_119); +lean_dec_ref(x_117); if (x_125 == 0) { lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_dec(x_36); x_126 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_getFieldDefault_x3f___closed__4; -x_127 = l_Lean_Exception_toMessageData(x_120); +x_127 = l_Lean_Exception_toMessageData(x_123); x_128 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_128, 0, x_126); lean_ctor_set(x_128, 1, x_127); @@ -37712,10 +37897,10 @@ x_129 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParen x_130 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_130, 0, x_128); lean_ctor_set(x_130, 1, x_129); -x_131 = l_Lean_throwErrorAt___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__7___redArg(x_22, x_130, x_121, x_124, x_118, x_123, x_117); -lean_dec(x_123); +x_131 = l_Lean_throwErrorAt___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__7___redArg(x_22, x_130, x_120, x_122, x_118, x_124, x_121); lean_dec(x_124); -lean_dec_ref(x_121); +lean_dec(x_122); +lean_dec_ref(x_120); lean_dec(x_22); x_132 = !lean_is_exclusive(x_131); if (x_132 == 0) @@ -37740,8 +37925,8 @@ else { lean_object* x_136; lean_dec(x_124); -lean_dec(x_123); -lean_dec_ref(x_121); +lean_dec(x_122); +lean_dec_ref(x_120); lean_dec_ref(x_118); lean_dec(x_22); if (lean_is_scalar(x_36)) { @@ -37750,8 +37935,8 @@ if (lean_is_scalar(x_36)) { x_136 = x_36; lean_ctor_set_tag(x_136, 1); } -lean_ctor_set(x_136, 0, x_120); -lean_ctor_set(x_136, 1, x_117); +lean_ctor_set(x_136, 0, x_123); +lean_ctor_set(x_136, 1, x_121); return x_136; } } @@ -37769,10 +37954,10 @@ lean_inc(x_147); x_148 = lean_ctor_get(x_146, 1); lean_inc(x_148); lean_dec_ref(x_146); -x_97 = x_143; -x_98 = x_140; -x_99 = x_141; -x_100 = x_139; +x_97 = x_139; +x_98 = x_143; +x_99 = x_140; +x_100 = x_141; x_101 = x_142; x_102 = x_144; x_103 = x_147; @@ -37803,27 +37988,27 @@ if (x_151 == 0) { uint8_t x_152; x_152 = l_Lean_Exception_isRuntime(x_149); -x_117 = x_150; +x_117 = x_139; x_118 = x_143; x_119 = x_140; -x_120 = x_149; -x_121 = x_141; -x_122 = x_139; -x_123 = x_144; -x_124 = x_142; +x_120 = x_141; +x_121 = x_150; +x_122 = x_142; +x_123 = x_149; +x_124 = x_144; x_125 = x_152; goto block_137; } else { -x_117 = x_150; +x_117 = x_139; x_118 = x_143; x_119 = x_140; -x_120 = x_149; -x_121 = x_141; -x_122 = x_139; -x_123 = x_144; -x_124 = x_142; +x_120 = x_141; +x_121 = x_150; +x_122 = x_142; +x_123 = x_149; +x_124 = x_144; x_125 = x_151; goto block_137; } @@ -38181,8 +38366,8 @@ lean_inc_ref(x_1); lean_inc(x_20); x_231 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParents_go___redArg___lam__0___boxed), 20, 11); lean_closure_set(x_231, 0, x_20); -lean_closure_set(x_231, 1, x_217); -lean_closure_set(x_231, 2, x_216); +lean_closure_set(x_231, 1, x_216); +lean_closure_set(x_231, 2, x_217); lean_closure_set(x_231, 3, x_5); lean_closure_set(x_231, 4, x_1); lean_closure_set(x_231, 5, x_2); @@ -38191,7 +38376,7 @@ lean_closure_set(x_231, 7, x_4); lean_closure_set(x_231, 8, x_21); lean_closure_set(x_231, 9, x_229); lean_closure_set(x_231, 10, x_230); -x_232 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParent___redArg(x_1, x_20, x_224, x_219, x_213, x_231, x_222, x_223, x_220, x_221, x_227, x_218, x_226, x_225); +x_232 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParent___redArg(x_1, x_20, x_224, x_227, x_213, x_231, x_220, x_218, x_222, x_221, x_223, x_219, x_226, x_225); return x_232; } block_273: @@ -38199,7 +38384,7 @@ block_273: if (x_249 == 0) { lean_object* x_250; uint8_t x_251; -lean_dec(x_241); +lean_dec(x_244); x_250 = lean_array_get_size(x_235); x_251 = lean_nat_dec_lt(x_245, x_250); if (x_251 == 0) @@ -38208,15 +38393,15 @@ lean_dec(x_250); lean_dec_ref(x_235); x_216 = x_234; x_217 = x_236; -x_218 = x_242; +x_218 = x_243; x_219 = x_237; x_220 = x_238; -x_221 = x_243; -x_222 = x_244; -x_223 = x_239; -x_224 = x_246; +x_221 = x_239; +x_222 = x_240; +x_223 = x_246; +x_224 = x_241; x_225 = x_247; -x_226 = x_240; +x_226 = x_242; x_227 = x_248; x_228 = x_249; goto block_233; @@ -38229,15 +38414,15 @@ lean_dec(x_250); lean_dec_ref(x_235); x_216 = x_234; x_217 = x_236; -x_218 = x_242; +x_218 = x_243; x_219 = x_237; x_220 = x_238; -x_221 = x_243; -x_222 = x_244; -x_223 = x_239; -x_224 = x_246; +x_221 = x_239; +x_222 = x_240; +x_223 = x_246; +x_224 = x_241; x_225 = x_247; -x_226 = x_240; +x_226 = x_242; x_227 = x_248; x_228 = x_249; goto block_233; @@ -38248,21 +38433,21 @@ size_t x_252; size_t x_253; uint8_t x_254; x_252 = 0; x_253 = lean_usize_of_nat(x_250); lean_dec(x_250); -x_254 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParents_go_spec__0(x_237, x_235, x_252, x_253); +x_254 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParents_go_spec__0(x_248, x_235, x_252, x_253); lean_dec_ref(x_235); if (x_254 == 0) { x_216 = x_234; x_217 = x_236; -x_218 = x_242; +x_218 = x_243; x_219 = x_237; x_220 = x_238; -x_221 = x_243; -x_222 = x_244; -x_223 = x_239; -x_224 = x_246; +x_221 = x_239; +x_222 = x_240; +x_223 = x_246; +x_224 = x_241; x_225 = x_247; -x_226 = x_240; +x_226 = x_242; x_227 = x_248; x_228 = x_254; goto block_233; @@ -38270,10 +38455,10 @@ goto block_233; else { 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_dec(x_246); -lean_dec_ref(x_244); -lean_dec_ref(x_239); -lean_dec(x_238); +lean_dec_ref(x_243); +lean_dec(x_241); +lean_dec(x_240); +lean_dec_ref(x_238); lean_dec(x_236); lean_dec(x_234); lean_dec(x_213); @@ -38285,7 +38470,7 @@ lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); x_255 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_fieldFromMsg___closed__1; -x_256 = l_Lean_MessageData_ofName(x_237); +x_256 = l_Lean_MessageData_ofName(x_248); x_257 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_257, 0, x_255); lean_ctor_set(x_257, 1, x_256); @@ -38293,11 +38478,11 @@ x_258 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruc x_259 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_259, 0, x_257); lean_ctor_set(x_259, 1, x_258); -x_260 = l_Lean_throwError___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addFieldInfo_spec__0___redArg(x_259, x_243, x_248, x_242, x_240, x_247); -lean_dec(x_240); -lean_dec_ref(x_242); -lean_dec(x_248); -lean_dec_ref(x_243); +x_260 = l_Lean_throwError___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addFieldInfo_spec__0___redArg(x_259, x_239, x_246, x_237, x_242, x_247); +lean_dec(x_242); +lean_dec_ref(x_237); +lean_dec(x_246); +lean_dec_ref(x_239); return x_260; } } @@ -38306,8 +38491,8 @@ return x_260; else { 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_dec(x_246); -lean_dec(x_237); +lean_dec(x_248); +lean_dec(x_241); lean_dec(x_236); lean_dec_ref(x_235); lean_dec(x_234); @@ -38315,7 +38500,7 @@ lean_dec(x_213); lean_dec(x_21); lean_dec(x_20); x_261 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParents_go___redArg___closed__1; -x_262 = l_Lean_MessageData_ofConstName(x_241, x_209); +x_262 = l_Lean_MessageData_ofConstName(x_244, x_209); x_263 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_263, 0, x_261); lean_ctor_set(x_263, 1, x_262); @@ -38323,8 +38508,8 @@ x_264 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParen x_265 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_265, 0, x_263); lean_ctor_set(x_265, 1, x_264); -lean_inc_ref(x_242); -x_266 = l_Lean_logWarning___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_getFieldDefaultValue_x3f_spec__6(x_265, x_244, x_239, x_238, x_243, x_248, x_242, x_240, x_247); +lean_inc_ref(x_237); +x_266 = l_Lean_logWarning___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_getFieldDefaultValue_x3f_spec__6(x_265, x_238, x_243, x_240, x_239, x_246, x_237, x_242, x_247); x_267 = lean_ctor_get(x_266, 0); lean_inc(x_267); x_268 = lean_ctor_get(x_266, 1); @@ -38338,12 +38523,12 @@ x_271 = lean_nat_add(x_5, x_270); lean_dec(x_5); x_5 = x_271; x_6 = x_269; -x_7 = x_239; -x_8 = x_238; -x_9 = x_243; -x_10 = x_248; -x_11 = x_242; -x_12 = x_240; +x_7 = x_243; +x_8 = x_240; +x_9 = x_239; +x_10 = x_246; +x_11 = x_237; +x_12 = x_242; x_13 = x_268; goto _start; } @@ -38367,23 +38552,23 @@ x_291 = lean_nat_dec_lt(x_289, x_290); if (x_291 == 0) { lean_dec(x_290); -lean_inc(x_282); lean_inc(x_287); -x_234 = x_287; +lean_inc(x_282); +x_234 = x_282; x_235 = x_288; -x_236 = x_282; -x_237 = x_287; -x_238 = x_277; +x_236 = x_287; +x_237 = x_277; +x_238 = x_283; x_239 = x_279; -x_240 = x_281; -x_241 = x_282; -x_242 = x_276; -x_243 = x_278; -x_244 = x_283; +x_240 = x_278; +x_241 = x_286; +x_242 = x_281; +x_243 = x_276; +x_244 = x_282; x_245 = x_289; -x_246 = x_286; +x_246 = x_280; x_247 = x_284; -x_248 = x_280; +x_248 = x_287; x_249 = x_275; goto block_273; } @@ -38392,23 +38577,23 @@ else if (x_291 == 0) { lean_dec(x_290); -lean_inc(x_282); lean_inc(x_287); -x_234 = x_287; +lean_inc(x_282); +x_234 = x_282; x_235 = x_288; -x_236 = x_282; -x_237 = x_287; -x_238 = x_277; +x_236 = x_287; +x_237 = x_277; +x_238 = x_283; x_239 = x_279; -x_240 = x_281; -x_241 = x_282; -x_242 = x_276; -x_243 = x_278; -x_244 = x_283; +x_240 = x_278; +x_241 = x_286; +x_242 = x_281; +x_243 = x_276; +x_244 = x_282; x_245 = x_289; -x_246 = x_286; +x_246 = x_280; x_247 = x_284; -x_248 = x_280; +x_248 = x_287; x_249 = x_275; goto block_273; } @@ -38419,23 +38604,23 @@ x_292 = 0; x_293 = lean_usize_of_nat(x_290); lean_dec(x_290); x_294 = l_Array_anyMUnsafe_any___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParents_go_spec__1(x_282, x_288, x_292, x_293); -lean_inc(x_282); lean_inc(x_287); -x_234 = x_287; +lean_inc(x_282); +x_234 = x_282; x_235 = x_288; -x_236 = x_282; -x_237 = x_287; -x_238 = x_277; +x_236 = x_287; +x_237 = x_277; +x_238 = x_283; x_239 = x_279; -x_240 = x_281; -x_241 = x_282; -x_242 = x_276; -x_243 = x_278; -x_244 = x_283; +x_240 = x_278; +x_241 = x_286; +x_242 = x_281; +x_243 = x_276; +x_244 = x_282; x_245 = x_289; -x_246 = x_286; +x_246 = x_280; x_247 = x_284; -x_248 = x_280; +x_248 = x_287; x_249 = x_294; goto block_273; } @@ -38443,14 +38628,14 @@ goto block_273; } block_316: { -lean_dec_ref(x_301); lean_dec(x_298); +lean_dec_ref(x_296); if (x_304 == 0) { lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_dec(x_215); x_305 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_getFieldDefault_x3f___closed__4; -x_306 = l_Lean_Exception_toMessageData(x_299); +x_306 = l_Lean_Exception_toMessageData(x_302); x_307 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_307, 0, x_305); lean_ctor_set(x_307, 1, x_306); @@ -38458,10 +38643,10 @@ x_308 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withParen x_309 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_309, 0, x_307); lean_ctor_set(x_309, 1, x_308); -x_310 = l_Lean_throwErrorAt___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__7___redArg(x_22, x_309, x_300, x_303, x_297, x_302, x_296); -lean_dec(x_302); +x_310 = l_Lean_throwErrorAt___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__7___redArg(x_22, x_309, x_299, x_301, x_297, x_303, x_300); lean_dec(x_303); -lean_dec_ref(x_300); +lean_dec(x_301); +lean_dec_ref(x_299); lean_dec(x_22); x_311 = lean_ctor_get(x_310, 0); lean_inc(x_311); @@ -38488,8 +38673,8 @@ else { lean_object* x_315; lean_dec(x_303); -lean_dec(x_302); -lean_dec_ref(x_300); +lean_dec(x_301); +lean_dec_ref(x_299); lean_dec_ref(x_297); lean_dec(x_22); if (lean_is_scalar(x_215)) { @@ -38498,8 +38683,8 @@ if (lean_is_scalar(x_215)) { x_315 = x_215; lean_ctor_set_tag(x_315, 1); } -lean_ctor_set(x_315, 0, x_299); -lean_ctor_set(x_315, 1, x_296); +lean_ctor_set(x_315, 0, x_302); +lean_ctor_set(x_315, 1, x_300); return x_315; } } @@ -38517,10 +38702,10 @@ lean_inc(x_326); x_327 = lean_ctor_get(x_325, 1); lean_inc(x_327); lean_dec_ref(x_325); -x_276 = x_322; -x_277 = x_319; -x_278 = x_320; -x_279 = x_318; +x_276 = x_318; +x_277 = x_322; +x_278 = x_319; +x_279 = x_320; x_280 = x_321; x_281 = x_323; x_282 = x_326; @@ -38551,27 +38736,27 @@ if (x_330 == 0) { uint8_t x_331; x_331 = l_Lean_Exception_isRuntime(x_328); -x_296 = x_329; +x_296 = x_318; x_297 = x_322; x_298 = x_319; -x_299 = x_328; -x_300 = x_320; -x_301 = x_318; -x_302 = x_323; -x_303 = x_321; +x_299 = x_320; +x_300 = x_329; +x_301 = x_321; +x_302 = x_328; +x_303 = x_323; x_304 = x_331; goto block_316; } else { -x_296 = x_329; +x_296 = x_318; x_297 = x_322; x_298 = x_319; -x_299 = x_328; -x_300 = x_320; -x_301 = x_318; -x_302 = x_323; -x_303 = x_321; +x_299 = x_320; +x_300 = x_329; +x_301 = x_321; +x_302 = x_328; +x_303 = x_323; x_304 = x_330; goto block_316; } @@ -40313,8 +40498,8 @@ x_47 = 1; x_48 = lean_usize_add(x_6, x_47); x_6 = x_48; x_7 = x_46; -x_8 = x_44; -x_15 = x_43; +x_8 = x_43; +x_15 = x_44; goto _start; } block_124: @@ -40371,8 +40556,8 @@ lean_object* x_83; x_83 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_CollectLevelMVars_visitExpr_spec__1___redArg(x_76); lean_ctor_set(x_51, 1, x_83); lean_ctor_set(x_51, 0, x_74); -x_43 = x_53; -x_44 = x_52; +x_43 = x_52; +x_44 = x_53; x_45 = x_51; goto block_50; } @@ -40380,8 +40565,8 @@ else { lean_ctor_set(x_51, 1, x_76); lean_ctor_set(x_51, 0, x_74); -x_43 = x_53; -x_44 = x_52; +x_43 = x_52; +x_44 = x_53; x_45 = x_51; goto block_50; } @@ -40394,8 +40579,8 @@ x_85 = lean_array_uset(x_56, x_71, x_84); x_86 = l_Std_DHashMap_Internal_AssocList_replace___at___Lean_Meta_forEachExpr_x27_visit___at___Lean_Meta_forEachExpr_x27___at___Lean_Meta_forEachExpr___at___Lean_Meta_setMVarUserNamesAt_spec__5_spec__5_spec__5_spec__6___redArg(x_35, x_58, x_72); x_87 = lean_array_uset(x_85, x_71, x_86); lean_ctor_set(x_51, 1, x_87); -x_43 = x_53; -x_44 = x_52; +x_43 = x_52; +x_44 = x_53; x_45 = x_51; goto block_50; } @@ -40454,8 +40639,8 @@ x_116 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_CollectLevelMVars_v x_117 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_117, 0, x_107); lean_ctor_set(x_117, 1, x_116); -x_43 = x_53; -x_44 = x_52; +x_43 = x_52; +x_44 = x_53; x_45 = x_117; goto block_50; } @@ -40465,8 +40650,8 @@ lean_object* x_118; x_118 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_118, 0, x_107); lean_ctor_set(x_118, 1, x_109); -x_43 = x_53; -x_44 = x_52; +x_43 = x_52; +x_44 = x_53; x_45 = x_118; goto block_50; } @@ -40481,8 +40666,8 @@ x_122 = lean_array_uset(x_120, x_104, x_121); x_123 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_123, 0, x_88); lean_ctor_set(x_123, 1, x_122); -x_43 = x_53; -x_44 = x_52; +x_43 = x_52; +x_44 = x_53; x_45 = x_123; goto block_50; } @@ -40618,8 +40803,8 @@ x_151 = 1; x_152 = lean_usize_add(x_6, x_151); x_6 = x_152; x_7 = x_150; -x_8 = x_148; -x_15 = x_147; +x_8 = x_147; +x_15 = x_148; goto _start; } block_195: @@ -40687,8 +40872,8 @@ if (lean_is_scalar(x_160)) { } lean_ctor_set(x_188, 0, x_178); lean_ctor_set(x_188, 1, x_187); -x_147 = x_157; -x_148 = x_156; +x_147 = x_156; +x_148 = x_157; x_149 = x_188; goto block_154; } @@ -40702,8 +40887,8 @@ if (lean_is_scalar(x_160)) { } lean_ctor_set(x_189, 0, x_178); lean_ctor_set(x_189, 1, x_180); -x_147 = x_157; -x_148 = x_156; +x_147 = x_156; +x_148 = x_157; x_149 = x_189; goto block_154; } @@ -40722,8 +40907,8 @@ if (lean_is_scalar(x_160)) { } lean_ctor_set(x_194, 0, x_158); lean_ctor_set(x_194, 1, x_193); -x_147 = x_157; -x_148 = x_156; +x_147 = x_156; +x_148 = x_157; x_149 = x_194; goto block_154; } @@ -44714,771 +44899,909 @@ lean_dec_ref(x_1); return x_11; } } -LEAN_EXPORT uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__0(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___lam__0(uint8_t 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: { -uint8_t x_3; -x_3 = lean_name_eq(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("invalid field declaration, type must be provided when auto-param tactic is used", 79, 79); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___closed__0; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_dec(x_7); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -lean_dec(x_14); +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_st_ref_take(x_11, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -x_16 = lean_box(0); -x_17 = lean_box(0); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_3); -lean_ctor_set(x_18, 1, x_17); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_16); -lean_ctor_set(x_19, 1, x_18); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_15); -return x_20; -} -else +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) { -uint8_t x_21; -x_21 = !lean_is_exclusive(x_2); -if (x_21 == 0) -{ -lean_object* x_22; -x_22 = lean_ctor_get(x_2, 0); -if (lean_obj_tag(x_22) == 0) -{ -uint8_t x_23; +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_17 = lean_ctor_get(x_14, 0); +x_18 = lean_ctor_get(x_14, 5); +lean_dec(x_18); +x_19 = l_Lean_Environment_setExporting(x_17, x_1); +lean_ctor_set(x_14, 5, x_2); +lean_ctor_set(x_14, 0, x_19); +x_20 = lean_st_ref_set(x_11, x_14, x_15); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec_ref(x_20); +x_22 = lean_st_ref_take(x_9, x_21); x_23 = !lean_is_exclusive(x_22); if (x_23 == 0) { -lean_object* x_24; uint8_t x_25; lean_object* x_26; +lean_object* x_24; uint8_t x_25; x_24 = lean_ctor_get(x_22, 0); -x_25 = 0; -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_26 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_25, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_26) == 0) +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) { -lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; +lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_26 = lean_ctor_get(x_22, 1); +x_27 = lean_ctor_get(x_24, 1); +lean_dec(x_27); +lean_ctor_set(x_24, 1, x_3); +x_28 = lean_st_ref_set(x_9, x_24, x_26); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_28, 0); +lean_dec(x_30); +x_31 = lean_box(0); +lean_ctor_set(x_22, 1, x_5); +lean_ctor_set(x_22, 0, x_31); +lean_ctor_set(x_28, 0, x_22); +return x_28; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_28, 1); +lean_inc(x_32); +lean_dec(x_28); +x_33 = lean_box(0); +lean_ctor_set(x_22, 1, x_5); +lean_ctor_set(x_22, 0, x_33); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_22); +lean_ctor_set(x_34, 1, x_32); +return x_34; +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_35 = lean_ctor_get(x_22, 1); +x_36 = lean_ctor_get(x_24, 0); +x_37 = lean_ctor_get(x_24, 2); +x_38 = lean_ctor_get(x_24, 3); +x_39 = lean_ctor_get(x_24, 4); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_24); +x_40 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_40, 0, x_36); +lean_ctor_set(x_40, 1, x_3); +lean_ctor_set(x_40, 2, x_37); +lean_ctor_set(x_40, 3, x_38); +lean_ctor_set(x_40, 4, x_39); +x_41 = lean_st_ref_set(x_9, x_40, x_35); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_43 = x_41; +} else { + lean_dec_ref(x_41); + x_43 = lean_box(0); +} +x_44 = lean_box(0); +lean_ctor_set(x_22, 1, x_5); +lean_ctor_set(x_22, 0, x_44); +if (lean_is_scalar(x_43)) { + x_45 = lean_alloc_ctor(0, 2, 0); +} else { + x_45 = x_43; +} +lean_ctor_set(x_45, 0, x_22); +lean_ctor_set(x_45, 1, x_42); +return x_45; +} +} +else +{ +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; +x_46 = lean_ctor_get(x_22, 0); +x_47 = lean_ctor_get(x_22, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_22); +x_48 = lean_ctor_get(x_46, 0); +lean_inc_ref(x_48); +x_49 = lean_ctor_get(x_46, 2); +lean_inc(x_49); +x_50 = lean_ctor_get(x_46, 3); +lean_inc_ref(x_50); +x_51 = lean_ctor_get(x_46, 4); +lean_inc_ref(x_51); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + lean_ctor_release(x_46, 2); + lean_ctor_release(x_46, 3); + lean_ctor_release(x_46, 4); + x_52 = x_46; +} else { + lean_dec_ref(x_46); + x_52 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(0, 5, 0); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_48); +lean_ctor_set(x_53, 1, x_3); +lean_ctor_set(x_53, 2, x_49); +lean_ctor_set(x_53, 3, x_50); +lean_ctor_set(x_53, 4, x_51); +x_54 = lean_st_ref_set(x_9, x_53, x_47); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_56 = x_54; +} else { + lean_dec_ref(x_54); + x_56 = lean_box(0); +} +x_57 = lean_box(0); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_5); +if (lean_is_scalar(x_56)) { + x_59 = lean_alloc_ctor(0, 2, 0); +} else { + x_59 = x_56; +} +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_55); +return x_59; +} +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_60 = lean_ctor_get(x_14, 0); +x_61 = lean_ctor_get(x_14, 1); +x_62 = lean_ctor_get(x_14, 2); +x_63 = lean_ctor_get(x_14, 3); +x_64 = lean_ctor_get(x_14, 4); +x_65 = lean_ctor_get(x_14, 6); +x_66 = lean_ctor_get(x_14, 7); +x_67 = lean_ctor_get(x_14, 8); +lean_inc(x_67); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_14); +x_68 = l_Lean_Environment_setExporting(x_60, x_1); +x_69 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_61); +lean_ctor_set(x_69, 2, x_62); +lean_ctor_set(x_69, 3, x_63); +lean_ctor_set(x_69, 4, x_64); +lean_ctor_set(x_69, 5, x_2); +lean_ctor_set(x_69, 6, x_65); +lean_ctor_set(x_69, 7, x_66); +lean_ctor_set(x_69, 8, x_67); +x_70 = lean_st_ref_set(x_11, x_69, x_15); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec_ref(x_70); +x_72 = lean_st_ref_take(x_9, x_71); +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_75 = x_72; +} else { + lean_dec_ref(x_72); + x_75 = lean_box(0); +} +x_76 = lean_ctor_get(x_73, 0); +lean_inc_ref(x_76); +x_77 = lean_ctor_get(x_73, 2); +lean_inc(x_77); +x_78 = lean_ctor_get(x_73, 3); +lean_inc_ref(x_78); +x_79 = lean_ctor_get(x_73, 4); +lean_inc_ref(x_79); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + lean_ctor_release(x_73, 2); + lean_ctor_release(x_73, 3); + lean_ctor_release(x_73, 4); + x_80 = x_73; +} else { + lean_dec_ref(x_73); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(0, 5, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_76); +lean_ctor_set(x_81, 1, x_3); +lean_ctor_set(x_81, 2, x_77); +lean_ctor_set(x_81, 3, x_78); +lean_ctor_set(x_81, 4, x_79); +x_82 = lean_st_ref_set(x_9, x_81, x_74); +x_83 = lean_ctor_get(x_82, 1); +lean_inc(x_83); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_84 = x_82; +} else { + lean_dec_ref(x_82); + x_84 = lean_box(0); +} +x_85 = lean_box(0); +if (lean_is_scalar(x_75)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_75; +} +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_5); +if (lean_is_scalar(x_84)) { + x_87 = lean_alloc_ctor(0, 2, 0); +} else { + x_87 = x_84; +} +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_83); +return x_87; +} +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = lean_apply_9(x_1, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10); +return x_12; +} +else +{ +uint8_t x_13; +lean_dec_ref(x_2); +x_13 = !lean_is_exclusive(x_9); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_9, 0); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +lean_ctor_set(x_9, 0, x_15); +x_17 = lean_apply_9(x_1, x_9, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_10); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_9, 0); +lean_inc(x_18); +lean_dec(x_9); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_19); +x_22 = lean_apply_9(x_1, x_21, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_10); +return x_22; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (x_2 == 0) +{ +lean_object* x_11; +x_11 = lean_apply_8(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_12 = lean_st_ref_get(x_9, x_10); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_13, 0); +lean_inc_ref(x_14); +lean_dec(x_13); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec_ref(x_12); +x_16 = lean_ctor_get_uint8(x_14, sizeof(void*)*8); +lean_dec_ref(x_14); +x_17 = lean_st_ref_take(x_9, x_15); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec_ref(x_17); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; uint8_t 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; uint8_t x_31; +x_21 = lean_ctor_get(x_18, 0); +x_22 = lean_ctor_get(x_18, 5); +lean_dec(x_22); +x_23 = 0; +x_24 = l_Lean_Environment_setExporting(x_21, x_23); +x_25 = l_Lean_Elab_applyVisibility___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructField_spec__1___lam__1___closed__2; +lean_ctor_set(x_18, 5, x_25); +lean_ctor_set(x_18, 0, x_24); +x_26 = lean_st_ref_set(x_9, x_18, x_19); x_27 = lean_ctor_get(x_26, 1); lean_inc(x_27); lean_dec_ref(x_26); -x_28 = 1; -x_29 = l_Lean_Syntax_getTailPos_x3f(x_4, x_28); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc_ref(x_9); -x_30 = l_Lean_Elab_Term_addAutoBoundImplicits(x_8, x_29, x_9, x_10, x_11, x_12, x_13, x_14, x_27); -if (lean_obj_tag(x_30) == 0) +x_28 = lean_st_ref_take(x_7, x_27); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec_ref(x_28); +x_31 = !lean_is_exclusive(x_29); +if (x_31 == 0) { -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; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec_ref(x_30); -x_33 = lean_box(0); -x_34 = lean_box(x_28); -x_35 = lean_box(x_28); -lean_inc(x_24); -x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); -lean_closure_set(x_36, 0, x_24); -lean_closure_set(x_36, 1, x_33); -lean_closure_set(x_36, 2, x_34); -lean_closure_set(x_36, 3, x_35); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_37 = l_Lean_Elab_Term_withoutAutoBoundImplicit___redArg(x_36, x_9, x_10, x_11, x_12, x_13, x_14, x_32); -if (lean_obj_tag(x_37) == 0) +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; +x_32 = lean_ctor_get(x_29, 1); +lean_dec(x_32); +x_33 = l_Lean_Elab_applyVisibility___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructField_spec__1___lam__1___closed__7; +lean_ctor_set(x_29, 1, x_33); +x_34 = lean_st_ref_set(x_7, x_29, x_30); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +lean_dec_ref(x_34); +x_36 = lean_box(x_16); +x_37 = lean_alloc_closure((void*)(l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___lam__0___boxed), 12, 3); +lean_closure_set(x_37, 0, x_36); +lean_closure_set(x_37, 1, x_25); +lean_closure_set(x_37, 2, x_33); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +lean_inc_ref(x_6); +lean_inc(x_5); +lean_inc_ref(x_4); +lean_inc_ref(x_3); +x_38 = lean_apply_8(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_35); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); -lean_dec_ref(x_37); -x_40 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_solveParentMVars), 9, 1); -lean_closure_set(x_40, 0, x_38); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -x_41 = l_Lean_Elab_Command_Structure_runStructElabM___redArg(x_40, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_39); -if (lean_obj_tag(x_41) == 0) +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec_ref(x_38); +lean_inc(x_39); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_39); +x_42 = l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___lam__1(x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_41, x_40); +if (lean_obj_tag(x_42) == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec_ref(x_41); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_42); -x_44 = lean_infer_type(x_42, x_11, x_12, x_13, x_14, x_43); -if (lean_obj_tag(x_44) == 0) +uint8_t x_43; +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) { -lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -x_45 = lean_ctor_get(x_44, 0); +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_42, 0); +x_45 = lean_ctor_get(x_39, 0); lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec_ref(x_44); -lean_inc(x_6); -x_47 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferFieldType___redArg(x_6, x_45, x_4, x_10, x_12, x_46); -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) +lean_dec(x_39); +x_46 = !lean_is_exclusive(x_44); +if (x_46 == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; -x_49 = lean_ctor_get(x_47, 1); -x_50 = lean_ctor_get(x_47, 0); -lean_dec(x_50); -lean_inc(x_42); -x_51 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferDefaultValue___redArg(x_6, x_42, x_24, x_10, x_11, x_12, x_49); -lean_dec(x_10); -x_52 = !lean_is_exclusive(x_51); -if (x_52 == 0) +lean_object* x_47; +x_47 = lean_ctor_get(x_44, 0); +lean_dec(x_47); +lean_ctor_set(x_44, 0, x_45); +return x_42; +} +else { -lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; -x_53 = lean_ctor_get(x_51, 1); -x_54 = lean_ctor_get(x_51, 0); -lean_dec(x_54); -x_55 = 1; -x_56 = l_Lean_Meta_mkLambdaFVars(x_31, x_42, x_25, x_28, x_25, x_28, x_55, x_11, x_12, x_13, x_14, x_53); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_56) == 0) +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_44, 1); +lean_inc(x_48); +lean_dec(x_44); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_45); +lean_ctor_set(x_49, 1, x_48); +lean_ctor_set(x_42, 0, x_49); +return x_42; +} +} +else +{ +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; +x_50 = lean_ctor_get(x_42, 0); +x_51 = lean_ctor_get(x_42, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_42); +x_52 = lean_ctor_get(x_39, 0); +lean_inc(x_52); +lean_dec(x_39); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_54 = x_50; +} else { + lean_dec_ref(x_50); + x_54 = lean_box(0); +} +if (lean_is_scalar(x_54)) { + x_55 = lean_alloc_ctor(0, 2, 0); +} else { + x_55 = x_54; +} +lean_ctor_set(x_55, 0, x_52); +lean_ctor_set(x_55, 1, x_53); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_51); +return x_56; +} +} +else { uint8_t x_57; -x_57 = !lean_is_exclusive(x_56); +lean_dec(x_39); +x_57 = !lean_is_exclusive(x_42); if (x_57 == 0) { -lean_object* x_58; -x_58 = lean_ctor_get(x_56, 0); -lean_ctor_set(x_22, 0, x_58); -lean_ctor_set(x_51, 1, x_2); -lean_ctor_set(x_51, 0, x_3); -lean_ctor_set(x_47, 1, x_51); -lean_ctor_set(x_47, 0, x_33); -lean_ctor_set(x_56, 0, x_47); -return x_56; +return x_42; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_56, 0); -x_60 = lean_ctor_get(x_56, 1); -lean_inc(x_60); +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_42, 0); +x_59 = lean_ctor_get(x_42, 1); lean_inc(x_59); -lean_dec(x_56); -lean_ctor_set(x_22, 0, x_59); -lean_ctor_set(x_51, 1, x_2); -lean_ctor_set(x_51, 0, x_3); -lean_ctor_set(x_47, 1, x_51); -lean_ctor_set(x_47, 0, x_33); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_47); -lean_ctor_set(x_61, 1, x_60); -return x_61; -} -} -else -{ -uint8_t x_62; -lean_free_object(x_51); -lean_free_object(x_47); -lean_free_object(x_22); -lean_free_object(x_2); -lean_dec_ref(x_3); -x_62 = !lean_is_exclusive(x_56); -if (x_62 == 0) -{ -return x_56; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_56, 0); -x_64 = lean_ctor_get(x_56, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_56); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -return x_65; +lean_inc(x_58); +lean_dec(x_42); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; } } } else { -lean_object* x_66; uint8_t x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_51, 1); -lean_inc(x_66); -lean_dec(x_51); -x_67 = 1; -x_68 = l_Lean_Meta_mkLambdaFVars(x_31, x_42, x_25, x_28, x_25, x_28, x_67, x_11, x_12, x_13, x_14, x_66); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_68) == 0) +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_61 = lean_ctor_get(x_38, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_38, 1); +lean_inc(x_62); +lean_dec_ref(x_38); +x_63 = lean_box(0); +x_64 = l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___lam__1(x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_63, x_62); +if (lean_obj_tag(x_64) == 0) { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); +uint8_t x_65; +x_65 = !lean_is_exclusive(x_64); +if (x_65 == 0) +{ +lean_object* x_66; +x_66 = lean_ctor_get(x_64, 0); +lean_dec(x_66); +lean_ctor_set_tag(x_64, 1); +lean_ctor_set(x_64, 0, x_61); +return x_64; +} +else +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_ctor_get(x_64, 1); +lean_inc(x_67); +lean_dec(x_64); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_61); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +else +{ +uint8_t x_69; +lean_dec(x_61); +x_69 = !lean_is_exclusive(x_64); +if (x_69 == 0) +{ +return x_64; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_64, 0); +x_71 = lean_ctor_get(x_64, 1); +lean_inc(x_71); lean_inc(x_70); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_71 = x_68; -} else { - lean_dec_ref(x_68); - x_71 = lean_box(0); +lean_dec(x_64); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} } -lean_ctor_set(x_22, 0, x_69); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_3); -lean_ctor_set(x_72, 1, x_2); -lean_ctor_set(x_47, 1, x_72); -lean_ctor_set(x_47, 0, x_33); -if (lean_is_scalar(x_71)) { - x_73 = lean_alloc_ctor(0, 2, 0); -} else { - x_73 = x_71; } -lean_ctor_set(x_73, 0, x_47); -lean_ctor_set(x_73, 1, x_70); -return x_73; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -lean_free_object(x_47); -lean_free_object(x_22); -lean_free_object(x_2); -lean_dec_ref(x_3); -x_74 = lean_ctor_get(x_68, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_68, 1); +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_73 = lean_ctor_get(x_29, 0); +x_74 = lean_ctor_get(x_29, 2); +x_75 = lean_ctor_get(x_29, 3); +x_76 = lean_ctor_get(x_29, 4); +lean_inc(x_76); lean_inc(x_75); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_76 = x_68; -} else { - lean_dec_ref(x_68); - x_76 = lean_box(0); -} -if (lean_is_scalar(x_76)) { - x_77 = lean_alloc_ctor(1, 2, 0); -} else { - x_77 = x_76; -} -lean_ctor_set(x_77, 0, x_74); -lean_ctor_set(x_77, 1, x_75); -return x_77; -} -} -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83; -x_78 = lean_ctor_get(x_47, 1); -lean_inc(x_78); -lean_dec(x_47); -lean_inc(x_42); -x_79 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferDefaultValue___redArg(x_6, x_42, x_24, x_10, x_11, x_12, x_78); -lean_dec(x_10); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_29); +x_77 = l_Lean_Elab_applyVisibility___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructField_spec__1___lam__1___closed__7; +x_78 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_78, 0, x_73); +lean_ctor_set(x_78, 1, x_77); +lean_ctor_set(x_78, 2, x_74); +lean_ctor_set(x_78, 3, x_75); +lean_ctor_set(x_78, 4, x_76); +x_79 = lean_st_ref_set(x_7, x_78, x_30); x_80 = lean_ctor_get(x_79, 1); lean_inc(x_80); -if (lean_is_exclusive(x_79)) { - lean_ctor_release(x_79, 0); - lean_ctor_release(x_79, 1); - x_81 = x_79; -} else { - lean_dec_ref(x_79); - x_81 = lean_box(0); -} -x_82 = 1; -x_83 = l_Lean_Meta_mkLambdaFVars(x_31, x_42, x_25, x_28, x_25, x_28, x_82, x_11, x_12, x_13, x_14, x_80); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); +lean_dec_ref(x_79); +x_81 = lean_box(x_16); +x_82 = lean_alloc_closure((void*)(l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___lam__0___boxed), 12, 3); +lean_closure_set(x_82, 0, x_81); +lean_closure_set(x_82, 1, x_25); +lean_closure_set(x_82, 2, x_77); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +lean_inc_ref(x_6); +lean_inc(x_5); +lean_inc_ref(x_4); +lean_inc_ref(x_3); +x_83 = lean_apply_8(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_80); if (lean_obj_tag(x_83) == 0) { -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; x_84 = lean_ctor_get(x_83, 0); lean_inc(x_84); x_85 = lean_ctor_get(x_83, 1); lean_inc(x_85); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_86 = x_83; -} else { - lean_dec_ref(x_83); - x_86 = lean_box(0); -} -lean_ctor_set(x_22, 0, x_84); -if (lean_is_scalar(x_81)) { - x_87 = lean_alloc_ctor(0, 2, 0); -} else { - x_87 = x_81; -} -lean_ctor_set(x_87, 0, x_3); -lean_ctor_set(x_87, 1, x_2); -x_88 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_88, 0, x_33); -lean_ctor_set(x_88, 1, x_87); -if (lean_is_scalar(x_86)) { - x_89 = lean_alloc_ctor(0, 2, 0); -} else { - x_89 = x_86; -} -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_85); -return x_89; -} -else +lean_dec_ref(x_83); +lean_inc(x_84); +x_86 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_86, 0, x_84); +x_87 = l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___lam__1(x_82, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_86, x_85); +if (lean_obj_tag(x_87) == 0) { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -lean_dec(x_81); -lean_free_object(x_22); -lean_free_object(x_2); -lean_dec_ref(x_3); -x_90 = lean_ctor_get(x_83, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_83, 1); +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_90 = x_87; +} else { + lean_dec_ref(x_87); + x_90 = lean_box(0); +} +x_91 = lean_ctor_get(x_84, 0); lean_inc(x_91); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_92 = x_83; +lean_dec(x_84); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + x_93 = x_88; } else { - lean_dec_ref(x_83); - x_92 = lean_box(0); + lean_dec_ref(x_88); + x_93 = lean_box(0); } -if (lean_is_scalar(x_92)) { - x_93 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_93)) { + x_94 = lean_alloc_ctor(0, 2, 0); } else { - x_93 = x_92; -} -lean_ctor_set(x_93, 0, x_90); -lean_ctor_set(x_93, 1, x_91); -return x_93; + x_94 = x_93; } +lean_ctor_set(x_94, 0, x_91); +lean_ctor_set(x_94, 1, x_92); +if (lean_is_scalar(x_90)) { + x_95 = lean_alloc_ctor(0, 2, 0); +} else { + x_95 = x_90; } +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_89); +return x_95; } else { -uint8_t x_94; -lean_dec(x_42); -lean_dec(x_31); -lean_free_object(x_22); -lean_dec(x_24); -lean_free_object(x_2); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_4); -lean_dec_ref(x_3); -x_94 = !lean_is_exclusive(x_44); -if (x_94 == 0) -{ -return x_44; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_44, 0); -x_96 = lean_ctor_get(x_44, 1); +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_84); +x_96 = lean_ctor_get(x_87, 0); lean_inc(x_96); -lean_inc(x_95); -lean_dec(x_44); -x_97 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_97, 0, x_95); -lean_ctor_set(x_97, 1, x_96); -return x_97; +x_97 = lean_ctor_get(x_87, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_98 = x_87; +} else { + lean_dec_ref(x_87); + x_98 = lean_box(0); } +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(1, 2, 0); +} else { + x_99 = x_98; +} +lean_ctor_set(x_99, 0, x_96); +lean_ctor_set(x_99, 1, x_97); +return x_99; } } else { -uint8_t x_98; -lean_dec(x_31); -lean_free_object(x_22); -lean_dec(x_24); -lean_free_object(x_2); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_4); -lean_dec_ref(x_3); -x_98 = !lean_is_exclusive(x_41); -if (x_98 == 0) -{ -return x_41; -} -else -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_41, 0); -x_100 = lean_ctor_get(x_41, 1); +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_100 = lean_ctor_get(x_83, 0); lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_41); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -return x_101; -} -} -} -else +x_101 = lean_ctor_get(x_83, 1); +lean_inc(x_101); +lean_dec_ref(x_83); +x_102 = lean_box(0); +x_103 = l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___lam__1(x_82, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_102, x_101); +if (lean_obj_tag(x_103) == 0) { -uint8_t x_102; -lean_dec(x_31); -lean_free_object(x_22); -lean_dec(x_24); -lean_free_object(x_2); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -x_102 = !lean_is_exclusive(x_37); -if (x_102 == 0) -{ -return x_37; -} -else -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_37, 0); -x_104 = lean_ctor_get(x_37, 1); +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_103, 1); lean_inc(x_104); -lean_inc(x_103); -lean_dec(x_37); -x_105 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_105, 0, x_103); -lean_ctor_set(x_105, 1, x_104); -return x_105; +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_105 = x_103; +} else { + lean_dec_ref(x_103); + x_105 = lean_box(0); } +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(1, 2, 0); +} else { + x_106 = x_105; + lean_ctor_set_tag(x_106, 1); } +lean_ctor_set(x_106, 0, x_100); +lean_ctor_set(x_106, 1, x_104); +return x_106; } else { -uint8_t x_106; -lean_free_object(x_22); -lean_dec(x_24); -lean_free_object(x_2); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -x_106 = !lean_is_exclusive(x_30); -if (x_106 == 0) -{ -return x_30; -} -else -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_30, 0); -x_108 = lean_ctor_get(x_30, 1); -lean_inc(x_108); +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +lean_dec(x_100); +x_107 = lean_ctor_get(x_103, 0); lean_inc(x_107); -lean_dec(x_30); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_107); -lean_ctor_set(x_109, 1, x_108); -return x_109; +x_108 = lean_ctor_get(x_103, 1); +lean_inc(x_108); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_109 = x_103; +} else { + lean_dec_ref(x_103); + x_109 = lean_box(0); +} +if (lean_is_scalar(x_109)) { + x_110 = lean_alloc_ctor(1, 2, 0); +} else { + x_110 = x_109; +} +lean_ctor_set(x_110, 0, x_107); +lean_ctor_set(x_110, 1, x_108); +return x_110; +} } } } else { -uint8_t x_110; -lean_free_object(x_22); -lean_dec(x_24); -lean_free_object(x_2); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -x_110 = !lean_is_exclusive(x_26); -if (x_110 == 0) -{ -return x_26; -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_26, 0); -x_112 = lean_ctor_get(x_26, 1); +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_111 = lean_ctor_get(x_18, 0); +x_112 = lean_ctor_get(x_18, 1); +x_113 = lean_ctor_get(x_18, 2); +x_114 = lean_ctor_get(x_18, 3); +x_115 = lean_ctor_get(x_18, 4); +x_116 = lean_ctor_get(x_18, 6); +x_117 = lean_ctor_get(x_18, 7); +x_118 = lean_ctor_get(x_18, 8); +lean_inc(x_118); +lean_inc(x_117); +lean_inc(x_116); +lean_inc(x_115); +lean_inc(x_114); +lean_inc(x_113); lean_inc(x_112); lean_inc(x_111); -lean_dec(x_26); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -return x_113; -} -} -} -else -{ -lean_object* x_114; uint8_t x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_22, 0); -lean_inc(x_114); -lean_dec(x_22); -x_115 = 0; -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_116 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_115, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_116) == 0) -{ -lean_object* x_117; uint8_t x_118; lean_object* x_119; lean_object* x_120; -x_117 = lean_ctor_get(x_116, 1); -lean_inc(x_117); -lean_dec_ref(x_116); -x_118 = 1; -x_119 = l_Lean_Syntax_getTailPos_x3f(x_4, x_118); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc_ref(x_9); -x_120 = l_Lean_Elab_Term_addAutoBoundImplicits(x_8, x_119, x_9, x_10, x_11, x_12, x_13, x_14, x_117); -if (lean_obj_tag(x_120) == 0) -{ -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_120, 1); -lean_inc(x_122); -lean_dec_ref(x_120); -x_123 = lean_box(0); -x_124 = lean_box(x_118); -x_125 = lean_box(x_118); -lean_inc(x_114); -x_126 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); -lean_closure_set(x_126, 0, x_114); -lean_closure_set(x_126, 1, x_123); -lean_closure_set(x_126, 2, x_124); -lean_closure_set(x_126, 3, x_125); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_127 = l_Lean_Elab_Term_withoutAutoBoundImplicit___redArg(x_126, x_9, x_10, x_11, x_12, x_13, x_14, x_122); -if (lean_obj_tag(x_127) == 0) -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_128 = lean_ctor_get(x_127, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_127, 1); +lean_dec(x_18); +x_119 = 0; +x_120 = l_Lean_Environment_setExporting(x_111, x_119); +x_121 = l_Lean_Elab_applyVisibility___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructField_spec__1___lam__1___closed__2; +x_122 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_112); +lean_ctor_set(x_122, 2, x_113); +lean_ctor_set(x_122, 3, x_114); +lean_ctor_set(x_122, 4, x_115); +lean_ctor_set(x_122, 5, x_121); +lean_ctor_set(x_122, 6, x_116); +lean_ctor_set(x_122, 7, x_117); +lean_ctor_set(x_122, 8, x_118); +x_123 = lean_st_ref_set(x_9, x_122, x_19); +x_124 = lean_ctor_get(x_123, 1); +lean_inc(x_124); +lean_dec_ref(x_123); +x_125 = lean_st_ref_take(x_7, x_124); +x_126 = lean_ctor_get(x_125, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_125, 1); +lean_inc(x_127); +lean_dec_ref(x_125); +x_128 = lean_ctor_get(x_126, 0); +lean_inc_ref(x_128); +x_129 = lean_ctor_get(x_126, 2); lean_inc(x_129); -lean_dec_ref(x_127); -x_130 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_solveParentMVars), 9, 1); -lean_closure_set(x_130, 0, x_128); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -x_131 = l_Lean_Elab_Command_Structure_runStructElabM___redArg(x_130, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_129); -if (lean_obj_tag(x_131) == 0) -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_132 = lean_ctor_get(x_131, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_131, 1); -lean_inc(x_133); -lean_dec_ref(x_131); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_132); -x_134 = lean_infer_type(x_132, x_11, x_12, x_13, x_14, x_133); -if (lean_obj_tag(x_134) == 0) -{ -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; uint8_t x_143; lean_object* x_144; -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_134, 1); +x_130 = lean_ctor_get(x_126, 3); +lean_inc_ref(x_130); +x_131 = lean_ctor_get(x_126, 4); +lean_inc_ref(x_131); +if (lean_is_exclusive(x_126)) { + lean_ctor_release(x_126, 0); + lean_ctor_release(x_126, 1); + lean_ctor_release(x_126, 2); + lean_ctor_release(x_126, 3); + lean_ctor_release(x_126, 4); + x_132 = x_126; +} else { + lean_dec_ref(x_126); + x_132 = lean_box(0); +} +x_133 = l_Lean_Elab_applyVisibility___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStructField_spec__1___lam__1___closed__7; +if (lean_is_scalar(x_132)) { + x_134 = lean_alloc_ctor(0, 5, 0); +} else { + x_134 = x_132; +} +lean_ctor_set(x_134, 0, x_128); +lean_ctor_set(x_134, 1, x_133); +lean_ctor_set(x_134, 2, x_129); +lean_ctor_set(x_134, 3, x_130); +lean_ctor_set(x_134, 4, x_131); +x_135 = lean_st_ref_set(x_7, x_134, x_127); +x_136 = lean_ctor_get(x_135, 1); lean_inc(x_136); -lean_dec_ref(x_134); -lean_inc(x_6); -x_137 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferFieldType___redArg(x_6, x_135, x_4, x_10, x_12, x_136); -x_138 = lean_ctor_get(x_137, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_139 = x_137; -} else { - lean_dec_ref(x_137); - x_139 = lean_box(0); -} -lean_inc(x_132); -x_140 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferDefaultValue___redArg(x_6, x_132, x_114, x_10, x_11, x_12, x_138); -lean_dec(x_10); -x_141 = lean_ctor_get(x_140, 1); -lean_inc(x_141); -if (lean_is_exclusive(x_140)) { - lean_ctor_release(x_140, 0); - lean_ctor_release(x_140, 1); - x_142 = x_140; -} else { - lean_dec_ref(x_140); - x_142 = lean_box(0); -} -x_143 = 1; -x_144 = l_Lean_Meta_mkLambdaFVars(x_121, x_132, x_115, x_118, x_115, x_118, x_143, x_11, x_12, x_13, x_14, x_141); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_144) == 0) +lean_dec_ref(x_135); +x_137 = lean_box(x_16); +x_138 = lean_alloc_closure((void*)(l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___lam__0___boxed), 12, 3); +lean_closure_set(x_138, 0, x_137); +lean_closure_set(x_138, 1, x_121); +lean_closure_set(x_138, 2, x_133); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +lean_inc_ref(x_6); +lean_inc(x_5); +lean_inc_ref(x_4); +lean_inc_ref(x_3); +x_139 = lean_apply_8(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_136); +if (lean_obj_tag(x_139) == 0) { -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; -x_145 = lean_ctor_get(x_144, 0); +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_140 = lean_ctor_get(x_139, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_139, 1); +lean_inc(x_141); +lean_dec_ref(x_139); +lean_inc(x_140); +x_142 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_142, 0, x_140); +x_143 = l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___lam__1(x_138, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_142, x_141); +if (lean_obj_tag(x_143) == 0) +{ +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; +x_144 = lean_ctor_get(x_143, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_143, 1); lean_inc(x_145); -x_146 = lean_ctor_get(x_144, 1); -lean_inc(x_146); +if (lean_is_exclusive(x_143)) { + lean_ctor_release(x_143, 0); + lean_ctor_release(x_143, 1); + x_146 = x_143; +} else { + lean_dec_ref(x_143); + x_146 = lean_box(0); +} +x_147 = lean_ctor_get(x_140, 0); +lean_inc(x_147); +lean_dec(x_140); +x_148 = lean_ctor_get(x_144, 1); +lean_inc(x_148); if (lean_is_exclusive(x_144)) { lean_ctor_release(x_144, 0); lean_ctor_release(x_144, 1); - x_147 = x_144; + x_149 = x_144; } else { lean_dec_ref(x_144); - x_147 = lean_box(0); + x_149 = lean_box(0); } -x_148 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_148, 0, x_145); -lean_ctor_set(x_2, 0, x_148); -if (lean_is_scalar(x_142)) { - x_149 = lean_alloc_ctor(0, 2, 0); -} else { - x_149 = x_142; -} -lean_ctor_set(x_149, 0, x_3); -lean_ctor_set(x_149, 1, x_2); -if (lean_is_scalar(x_139)) { +if (lean_is_scalar(x_149)) { x_150 = lean_alloc_ctor(0, 2, 0); } else { - x_150 = x_139; + x_150 = x_149; } -lean_ctor_set(x_150, 0, x_123); -lean_ctor_set(x_150, 1, x_149); -if (lean_is_scalar(x_147)) { +lean_ctor_set(x_150, 0, x_147); +lean_ctor_set(x_150, 1, x_148); +if (lean_is_scalar(x_146)) { x_151 = lean_alloc_ctor(0, 2, 0); } else { - x_151 = x_147; + x_151 = x_146; } lean_ctor_set(x_151, 0, x_150); -lean_ctor_set(x_151, 1, x_146); +lean_ctor_set(x_151, 1, x_145); return x_151; } else { lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -lean_dec(x_142); -lean_dec(x_139); -lean_free_object(x_2); -lean_dec_ref(x_3); -x_152 = lean_ctor_get(x_144, 0); +lean_dec(x_140); +x_152 = lean_ctor_get(x_143, 0); lean_inc(x_152); -x_153 = lean_ctor_get(x_144, 1); +x_153 = lean_ctor_get(x_143, 1); lean_inc(x_153); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_154 = x_144; +if (lean_is_exclusive(x_143)) { + lean_ctor_release(x_143, 0); + lean_ctor_release(x_143, 1); + x_154 = x_143; } else { - lean_dec_ref(x_144); + lean_dec_ref(x_143); x_154 = lean_box(0); } if (lean_is_scalar(x_154)) { @@ -45494,139 +45817,1768 @@ return x_155; else { lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -lean_dec(x_132); -lean_dec(x_121); -lean_dec(x_114); -lean_free_object(x_2); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_4); -lean_dec_ref(x_3); -x_156 = lean_ctor_get(x_134, 0); +x_156 = lean_ctor_get(x_139, 0); lean_inc(x_156); -x_157 = lean_ctor_get(x_134, 1); +x_157 = lean_ctor_get(x_139, 1); lean_inc(x_157); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_158 = x_134; +lean_dec_ref(x_139); +x_158 = lean_box(0); +x_159 = l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___lam__1(x_138, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_158, x_157); +if (lean_obj_tag(x_159) == 0) +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_160 = lean_ctor_get(x_159, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_161 = x_159; } else { - lean_dec_ref(x_134); - x_158 = lean_box(0); + lean_dec_ref(x_159); + x_161 = lean_box(0); } -if (lean_is_scalar(x_158)) { - x_159 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_161)) { + x_162 = lean_alloc_ctor(1, 2, 0); } else { - x_159 = x_158; + x_162 = x_161; + lean_ctor_set_tag(x_162, 1); } -lean_ctor_set(x_159, 0, x_156); -lean_ctor_set(x_159, 1, x_157); -return x_159; +lean_ctor_set(x_162, 0, x_156); +lean_ctor_set(x_162, 1, x_160); +return x_162; +} +else +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; +lean_dec(x_156); +x_163 = lean_ctor_get(x_159, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_159, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_165 = x_159; +} else { + lean_dec_ref(x_159); + x_165 = lean_box(0); +} +if (lean_is_scalar(x_165)) { + x_166 = lean_alloc_ctor(1, 2, 0); +} else { + x_166 = x_165; +} +lean_ctor_set(x_166, 0, x_163); +lean_ctor_set(x_166, 1, x_164); +return x_166; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0(lean_object* x_1, lean_object* x_2, uint8_t 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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_12; +} +} +LEAN_EXPORT uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = lean_name_eq(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc(x_9); +lean_inc_ref(x_8); +x_15 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_1, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec_ref(x_15); +x_17 = 1; +x_18 = l_Lean_Syntax_getTailPos_x3f(x_2, x_17); +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc_ref(x_8); +x_19 = l_Lean_Elab_Term_addAutoBoundImplicits(x_3, x_18, x_8, x_9, x_10, x_11, x_12, x_13, x_16); +if (lean_obj_tag(x_19) == 0) +{ +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; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec_ref(x_19); +x_22 = lean_box(0); +x_23 = lean_box(x_17); +x_24 = lean_box(x_17); +lean_inc(x_4); +x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); +lean_closure_set(x_25, 0, x_4); +lean_closure_set(x_25, 1, x_22); +lean_closure_set(x_25, 2, x_23); +lean_closure_set(x_25, 3, x_24); +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc(x_9); +lean_inc_ref(x_8); +x_26 = l_Lean_Elab_Term_withoutAutoBoundImplicit___redArg(x_25, x_8, x_9, x_10, x_11, x_12, x_13, x_21); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec_ref(x_26); +x_29 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_solveParentMVars), 9, 1); +lean_closure_set(x_29, 0, x_27); +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc(x_9); +x_30 = l_Lean_Elab_Command_Structure_runStructElabM___redArg(x_29, x_5, x_8, x_9, x_10, x_11, x_12, x_13, x_28); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec_ref(x_30); +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc(x_31); +x_33 = lean_infer_type(x_31, x_10, x_11, x_12, x_13, x_32); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec_ref(x_33); +lean_inc(x_6); +x_36 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferFieldType___redArg(x_6, x_34, x_2, x_9, x_11, x_35); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_38 = lean_ctor_get(x_36, 1); +x_39 = lean_ctor_get(x_36, 0); +lean_dec(x_39); +lean_inc(x_31); +x_40 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferDefaultValue___redArg(x_6, x_31, x_4, x_9, x_10, x_11, x_38); +lean_dec(x_9); +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; +x_42 = lean_ctor_get(x_40, 1); +x_43 = lean_ctor_get(x_40, 0); +lean_dec(x_43); +x_44 = 1; +x_45 = l_Lean_Meta_mkLambdaFVars(x_20, x_31, x_1, x_17, x_1, x_17, x_44, x_10, x_11, x_12, x_13, x_42); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +if (lean_obj_tag(x_45) == 0) +{ +uint8_t x_46; +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_45, 0); +x_48 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_48, 0, x_47); +x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_40, 1, x_49); +lean_ctor_set(x_40, 0, x_7); +lean_ctor_set(x_36, 1, x_40); +lean_ctor_set(x_36, 0, x_22); +lean_ctor_set(x_45, 0, x_36); +return x_45; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_50 = lean_ctor_get(x_45, 0); +x_51 = lean_ctor_get(x_45, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_45); +x_52 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_52, 0, x_50); +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_40, 1, x_53); +lean_ctor_set(x_40, 0, x_7); +lean_ctor_set(x_36, 1, x_40); +lean_ctor_set(x_36, 0, x_22); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_36); +lean_ctor_set(x_54, 1, x_51); +return x_54; } } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; -lean_dec(x_121); -lean_dec(x_114); -lean_free_object(x_2); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); +uint8_t x_55; +lean_free_object(x_40); +lean_free_object(x_36); +lean_dec_ref(x_7); +x_55 = !lean_is_exclusive(x_45); +if (x_55 == 0) +{ +return x_45; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_45, 0); +x_57 = lean_ctor_get(x_45, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_45); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +else +{ +lean_object* x_59; uint8_t x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_40, 1); +lean_inc(x_59); +lean_dec(x_40); +x_60 = 1; +x_61 = l_Lean_Meta_mkLambdaFVars(x_20, x_31, x_1, x_17, x_1, x_17, x_60, x_10, x_11, x_12, x_13, x_59); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +if (lean_obj_tag(x_61) == 0) +{ +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; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_64 = x_61; +} else { + lean_dec_ref(x_61); + x_64 = lean_box(0); +} +x_65 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_65, 0, x_62); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_7); +lean_ctor_set(x_67, 1, x_66); +lean_ctor_set(x_36, 1, x_67); +lean_ctor_set(x_36, 0, x_22); +if (lean_is_scalar(x_64)) { + x_68 = lean_alloc_ctor(0, 2, 0); +} else { + x_68 = x_64; +} +lean_ctor_set(x_68, 0, x_36); +lean_ctor_set(x_68, 1, x_63); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_free_object(x_36); +lean_dec_ref(x_7); +x_69 = lean_ctor_get(x_61, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_61, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_71 = x_61; +} else { + lean_dec_ref(x_61); + x_71 = lean_box(0); +} +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(1, 2, 0); +} else { + x_72 = x_71; +} +lean_ctor_set(x_72, 0, x_69); +lean_ctor_set(x_72, 1, x_70); +return x_72; +} +} +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; lean_object* x_78; +x_73 = lean_ctor_get(x_36, 1); +lean_inc(x_73); +lean_dec(x_36); +lean_inc(x_31); +x_74 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferDefaultValue___redArg(x_6, x_31, x_4, x_9, x_10, x_11, x_73); +lean_dec(x_9); +x_75 = lean_ctor_get(x_74, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_76 = x_74; +} else { + lean_dec_ref(x_74); + x_76 = lean_box(0); +} +x_77 = 1; +x_78 = l_Lean_Meta_mkLambdaFVars(x_20, x_31, x_1, x_17, x_1, x_17, x_77, x_10, x_11, x_12, x_13, x_75); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_81 = x_78; +} else { + lean_dec_ref(x_78); + x_81 = lean_box(0); +} +x_82 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_82, 0, x_79); +x_83 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_83, 0, x_82); +if (lean_is_scalar(x_76)) { + x_84 = lean_alloc_ctor(0, 2, 0); +} else { + x_84 = x_76; +} +lean_ctor_set(x_84, 0, x_7); +lean_ctor_set(x_84, 1, x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_22); +lean_ctor_set(x_85, 1, x_84); +if (lean_is_scalar(x_81)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_81; +} +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_80); +return x_86; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_76); +lean_dec_ref(x_7); +x_87 = lean_ctor_get(x_78, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_78, 1); +lean_inc(x_88); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_89 = x_78; +} else { + lean_dec_ref(x_78); + x_89 = lean_box(0); +} +if (lean_is_scalar(x_89)) { + x_90 = lean_alloc_ctor(1, 2, 0); +} else { + x_90 = x_89; +} +lean_ctor_set(x_90, 0, x_87); +lean_ctor_set(x_90, 1, x_88); +return x_90; +} +} +} +else +{ +uint8_t x_91; +lean_dec(x_31); +lean_dec(x_20); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_7); lean_dec(x_6); lean_dec(x_4); -lean_dec_ref(x_3); -x_160 = lean_ctor_get(x_131, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_131, 1); -lean_inc(x_161); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_162 = x_131; -} else { - lean_dec_ref(x_131); - x_162 = lean_box(0); +lean_dec(x_2); +x_91 = !lean_is_exclusive(x_33); +if (x_91 == 0) +{ +return x_33; } -if (lean_is_scalar(x_162)) { - x_163 = lean_alloc_ctor(1, 2, 0); -} else { - x_163 = x_162; +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_33, 0); +x_93 = lean_ctor_get(x_33, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_33); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +return x_94; } -lean_ctor_set(x_163, 0, x_160); -lean_ctor_set(x_163, 1, x_161); -return x_163; } } else { -lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -lean_dec(x_121); -lean_dec(x_114); -lean_free_object(x_2); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); +uint8_t x_95; +lean_dec(x_20); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_95 = !lean_is_exclusive(x_30); +if (x_95 == 0) +{ +return x_30; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_30, 0); +x_97 = lean_ctor_get(x_30, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_30); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +return x_98; +} +} +} +else +{ +uint8_t x_99; +lean_dec(x_20); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_99 = !lean_is_exclusive(x_26); +if (x_99 == 0) +{ +return x_26; +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_26, 0); +x_101 = lean_ctor_get(x_26, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_26); +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +return x_102; +} +} +} +else +{ +uint8_t x_103; +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_103 = !lean_is_exclusive(x_19); +if (x_103 == 0) +{ +return x_19; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_19, 0); +x_105 = lean_ctor_get(x_19, 1); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_19); +x_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set(x_106, 1, x_105); +return x_106; +} +} +} +else +{ +uint8_t x_107; +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_107 = !lean_is_exclusive(x_15); +if (x_107 == 0) +{ +return x_15; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_15, 0); +x_109 = lean_ctor_get(x_15, 1); +lean_inc(x_109); +lean_inc(x_108); +lean_dec(x_15); +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +return x_110; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +lean_object* x_17; +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc(x_11); +lean_inc_ref(x_10); +x_17 = l_Lean_Elab_Term_withoutAutoBoundImplicit___redArg(x_1, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec_ref(x_17); +x_20 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_solveParentMVars), 9, 1); +lean_closure_set(x_20, 0, x_18); +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc(x_11); +lean_inc_ref(x_10); +x_21 = l_Lean_Elab_Command_Structure_runStructElabM___redArg(x_20, x_2, x_10, x_11, x_12, x_13, x_14, x_15, x_19); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec_ref(x_21); +lean_inc(x_22); +x_24 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferDefaultValue___redArg(x_3, x_22, x_4, x_11, x_12, x_13, x_23); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_24, 1); +x_27 = lean_ctor_get(x_24, 0); +lean_dec(x_27); +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +x_28 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_5, x_10, x_11, x_12, x_13, x_14, x_15, x_26); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec_ref(x_28); +x_30 = 1; +lean_inc_ref(x_6); +x_31 = l_Lean_Meta_mkForallFVars(x_6, x_7, x_5, x_8, x_8, x_30, x_12, x_13, x_14, x_15, x_29); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec_ref(x_31); +x_34 = l_Lean_Meta_mkLambdaFVars(x_6, x_22, x_5, x_8, x_5, x_8, x_30, x_12, x_13, x_14, x_15, x_33); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +if (lean_obj_tag(x_34) == 0) +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_34, 0); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_32); +x_38 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_38, 0, x_36); +x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_24, 1, x_39); +lean_ctor_set(x_24, 0, x_9); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_37); +lean_ctor_set(x_40, 1, x_24); +lean_ctor_set(x_34, 0, x_40); +return x_34; +} +else +{ +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; +x_41 = lean_ctor_get(x_34, 0); +x_42 = lean_ctor_get(x_34, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_34); +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_32); +x_44 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_44, 0, x_41); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_24, 1, x_45); +lean_ctor_set(x_24, 0, x_9); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_43); +lean_ctor_set(x_46, 1, x_24); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_42); +return x_47; +} +} +else +{ +uint8_t x_48; +lean_dec(x_32); +lean_free_object(x_24); +lean_dec_ref(x_9); +x_48 = !lean_is_exclusive(x_34); +if (x_48 == 0) +{ +return x_34; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_34, 0); +x_50 = lean_ctor_get(x_34, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_34); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +else +{ +uint8_t x_52; +lean_free_object(x_24); +lean_dec(x_22); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec_ref(x_9); +lean_dec_ref(x_6); +x_52 = !lean_is_exclusive(x_31); +if (x_52 == 0) +{ +return x_31; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_31, 0); +x_54 = lean_ctor_get(x_31, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_31); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +else +{ +uint8_t x_56; +lean_free_object(x_24); +lean_dec(x_22); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec_ref(x_9); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +x_56 = !lean_is_exclusive(x_28); +if (x_56 == 0) +{ +return x_28; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_28, 0); +x_58 = lean_ctor_get(x_28, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_28); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; +} +} +} +else +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_24, 1); +lean_inc(x_60); +lean_dec(x_24); +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +x_61 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_5, x_10, x_11, x_12, x_13, x_14, x_15, x_60); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; uint8_t x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +lean_dec_ref(x_61); +x_63 = 1; +lean_inc_ref(x_6); +x_64 = l_Lean_Meta_mkForallFVars(x_6, x_7, x_5, x_8, x_8, x_63, x_12, x_13, x_14, x_15, x_62); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec_ref(x_64); +x_67 = l_Lean_Meta_mkLambdaFVars(x_6, x_22, x_5, x_8, x_5, x_8, x_63, x_12, x_13, x_14, x_15, x_66); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +if (lean_obj_tag(x_67) == 0) +{ +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; +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_70 = x_67; +} else { + lean_dec_ref(x_67); + x_70 = lean_box(0); +} +x_71 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_71, 0, x_65); +x_72 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_72, 0, x_68); +x_73 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_73, 0, x_72); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_9); +lean_ctor_set(x_74, 1, x_73); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_71); +lean_ctor_set(x_75, 1, x_74); +if (lean_is_scalar(x_70)) { + x_76 = lean_alloc_ctor(0, 2, 0); +} else { + x_76 = x_70; +} +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_69); +return x_76; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +lean_dec(x_65); +lean_dec_ref(x_9); +x_77 = lean_ctor_get(x_67, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_67, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_79 = x_67; +} else { + lean_dec_ref(x_67); + x_79 = lean_box(0); +} +if (lean_is_scalar(x_79)) { + x_80 = lean_alloc_ctor(1, 2, 0); +} else { + x_80 = x_79; +} +lean_ctor_set(x_80, 0, x_77); +lean_ctor_set(x_80, 1, x_78); +return x_80; +} +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +lean_dec(x_22); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec_ref(x_9); +lean_dec_ref(x_6); +x_81 = lean_ctor_get(x_64, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_64, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_83 = x_64; +} else { + lean_dec_ref(x_64); + x_83 = lean_box(0); +} +if (lean_is_scalar(x_83)) { + x_84 = lean_alloc_ctor(1, 2, 0); +} else { + x_84 = x_83; +} +lean_ctor_set(x_84, 0, x_81); +lean_ctor_set(x_84, 1, x_82); +return x_84; +} +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +lean_dec(x_22); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec_ref(x_9); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +x_85 = lean_ctor_get(x_61, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_61, 1); +lean_inc(x_86); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_87 = x_61; +} else { + lean_dec_ref(x_61); + x_87 = lean_box(0); +} +if (lean_is_scalar(x_87)) { + x_88 = lean_alloc_ctor(1, 2, 0); +} else { + x_88 = x_87; +} +lean_ctor_set(x_88, 0, x_85); +lean_ctor_set(x_88, 1, x_86); +return x_88; +} +} +} +else +{ +uint8_t x_89; +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec(x_4); +lean_dec(x_3); +x_89 = !lean_is_exclusive(x_21); +if (x_89 == 0) +{ +return x_21; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_21, 0); +x_91 = lean_ctor_get(x_21, 1); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_21); +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +return x_92; +} +} +} +else +{ +uint8_t x_93; +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +x_93 = !lean_is_exclusive(x_17); +if (x_93 == 0) +{ +return x_17; +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_17, 0); +x_95 = lean_ctor_get(x_17, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_17); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +return x_96; +} +} +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__3___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid field declaration, type must be provided when auto-param tactic is used", 79, 79); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__3___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__3___closed__0; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_dec(x_8); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec_ref(x_9); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +x_17 = lean_box(0); +x_18 = lean_box(0); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_3); +lean_ctor_set(x_19, 1, x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_17); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_16); +return x_21; +} +else +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_2, 0); +lean_inc(x_22); +lean_dec(x_2); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +lean_dec(x_22); +x_24 = 0; +x_25 = lean_box(x_24); +x_26 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___boxed), 14, 7); +lean_closure_set(x_26, 0, x_25); +lean_closure_set(x_26, 1, x_4); +lean_closure_set(x_26, 2, x_9); +lean_closure_set(x_26, 3, x_23); +lean_closure_set(x_26, 4, x_5); +lean_closure_set(x_26, 5, x_6); +lean_closure_set(x_26, 6, x_3); +x_27 = l_Lean_Elab_Modifiers_isPrivate(x_7); +x_28 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(x_26, x_27, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_dec_ref(x_9); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -x_164 = lean_ctor_get(x_127, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_127, 1); -lean_inc(x_165); -if (lean_is_exclusive(x_127)) { - lean_ctor_release(x_127, 0); - lean_ctor_release(x_127, 1); - x_166 = x_127; -} else { - lean_dec_ref(x_127); - x_166 = lean_box(0); +x_29 = lean_ctor_get(x_22, 0); +lean_inc(x_29); +lean_dec(x_22); +x_30 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__3___closed__1; +x_31 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at_____private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux_spec__0_spec__2___redArg(x_29, x_30, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_15); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_29); +return x_31; } -if (lean_is_scalar(x_166)) { - x_167 = lean_alloc_ctor(1, 2, 0); -} else { - x_167 = x_166; } -lean_ctor_set(x_167, 0, x_164); -lean_ctor_set(x_167, 1, x_165); +} +else +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_1); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_1, 0); +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc(x_33); +x_34 = l_Lean_Elab_Term_elabType(x_33, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec_ref(x_34); +x_37 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_solveParentMVars), 9, 1); +lean_closure_set(x_37, 0, x_35); +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc_ref(x_5); +x_38 = l_Lean_Elab_Command_Structure_runStructElabM___redArg(x_37, x_5, x_10, x_11, x_12, x_13, x_14, x_15, x_36); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec_ref(x_38); +lean_inc(x_39); +lean_inc(x_6); +x_41 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferFieldType___redArg(x_6, x_39, x_33, x_11, x_13, x_40); +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_41, 1); +x_44 = lean_ctor_get(x_41, 0); +lean_dec(x_44); +x_45 = 0; +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc(x_11); +lean_inc_ref(x_10); +x_46 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_45, x_10, x_11, x_12, x_13, x_14, x_15, x_43); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec_ref(x_46); +x_48 = 1; +x_49 = l_Lean_Syntax_getTailPos_x3f(x_4, x_48); +lean_dec(x_4); +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc_ref(x_10); +x_50 = l_Lean_Elab_Term_addAutoBoundImplicits(x_9, x_49, x_10, x_11, x_12, x_13, x_14, x_15, x_47); +lean_dec_ref(x_9); +if (lean_obj_tag(x_50) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_51; lean_object* x_52; uint8_t x_53; lean_object* x_54; +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec_ref(x_5); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec_ref(x_50); +x_53 = 1; +x_54 = l_Lean_Meta_mkForallFVars(x_51, x_39, x_45, x_48, x_48, x_53, x_12, x_13, x_14, x_15, x_52); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +if (lean_obj_tag(x_54) == 0) +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_54, 0); +lean_ctor_set(x_1, 0, x_56); +x_57 = lean_box(0); +lean_ctor_set(x_41, 1, x_57); +lean_ctor_set(x_41, 0, x_3); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_1); +lean_ctor_set(x_58, 1, x_41); +lean_ctor_set(x_54, 0, x_58); +return x_54; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_59 = lean_ctor_get(x_54, 0); +x_60 = lean_ctor_get(x_54, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_54); +lean_ctor_set(x_1, 0, x_59); +x_61 = lean_box(0); +lean_ctor_set(x_41, 1, x_61); +lean_ctor_set(x_41, 0, x_3); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_1); +lean_ctor_set(x_62, 1, x_41); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_60); +return x_63; +} +} +else +{ +uint8_t x_64; +lean_free_object(x_41); +lean_free_object(x_1); +lean_dec_ref(x_3); +x_64 = !lean_is_exclusive(x_54); +if (x_64 == 0) +{ +return x_54; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_54, 0); +x_66 = lean_ctor_get(x_54, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_54); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +else +{ +uint8_t x_68; +x_68 = !lean_is_exclusive(x_2); +if (x_68 == 0) +{ +lean_object* x_69; +x_69 = lean_ctor_get(x_2, 0); +if (lean_obj_tag(x_69) == 0) +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; +lean_free_object(x_41); +lean_free_object(x_1); +lean_dec(x_8); +x_70 = lean_ctor_get(x_50, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_50, 1); +lean_inc(x_71); +lean_dec_ref(x_50); +x_72 = lean_ctor_get(x_69, 0); +lean_inc(x_72); +lean_dec(x_69); +lean_inc(x_39); +lean_ctor_set(x_2, 0, x_39); +x_73 = lean_box(0); +x_74 = lean_box(x_48); +x_75 = lean_box(x_48); +lean_inc(x_72); +x_76 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); +lean_closure_set(x_76, 0, x_72); +lean_closure_set(x_76, 1, x_2); +lean_closure_set(x_76, 2, x_74); +lean_closure_set(x_76, 3, x_75); +lean_closure_set(x_76, 4, x_73); +x_77 = lean_box(x_45); +x_78 = lean_box(x_48); +x_79 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__2___boxed), 16, 9); +lean_closure_set(x_79, 0, x_76); +lean_closure_set(x_79, 1, x_5); +lean_closure_set(x_79, 2, x_6); +lean_closure_set(x_79, 3, x_72); +lean_closure_set(x_79, 4, x_77); +lean_closure_set(x_79, 5, x_70); +lean_closure_set(x_79, 6, x_39); +lean_closure_set(x_79, 7, x_78); +lean_closure_set(x_79, 8, x_3); +x_80 = l_Lean_Elab_Modifiers_isPrivate(x_7); +x_81 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(x_79, x_80, x_10, x_11, x_12, x_13, x_14, x_15, x_71); +return x_81; +} +else +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_6); +lean_dec_ref(x_5); +x_82 = lean_ctor_get(x_50, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_50, 1); +lean_inc(x_83); +lean_dec_ref(x_50); +x_84 = !lean_is_exclusive(x_69); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_69, 0); +x_86 = l_Lean_mkAutoParamFnOfProjFn(x_8); +lean_inc(x_86); +lean_ctor_set(x_2, 0, x_86); +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +x_87 = l_Lean_Elab_Term_declareTacticSyntax___redArg(x_85, x_2, x_12, x_13, x_14, x_15, x_83); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; uint8_t x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +lean_dec_ref(x_87); +x_89 = 1; +x_90 = l_Lean_Meta_mkForallFVars(x_82, x_39, x_45, x_48, x_48, x_89, x_12, x_13, x_14, x_15, x_88); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +if (lean_obj_tag(x_90) == 0) +{ +uint8_t x_91; +x_91 = !lean_is_exclusive(x_90); +if (x_91 == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_92 = lean_ctor_get(x_90, 0); +lean_ctor_set(x_1, 0, x_92); +x_93 = lean_box(0); +x_94 = l_Lean_Expr_const___override(x_86, x_93); +lean_ctor_set(x_69, 0, x_94); +x_95 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_95, 0, x_69); +lean_ctor_set(x_41, 1, x_95); +lean_ctor_set(x_41, 0, x_3); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_1); +lean_ctor_set(x_96, 1, x_41); +lean_ctor_set(x_90, 0, x_96); +return x_90; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_97 = lean_ctor_get(x_90, 0); +x_98 = lean_ctor_get(x_90, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_90); +lean_ctor_set(x_1, 0, x_97); +x_99 = lean_box(0); +x_100 = l_Lean_Expr_const___override(x_86, x_99); +lean_ctor_set(x_69, 0, x_100); +x_101 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_101, 0, x_69); +lean_ctor_set(x_41, 1, x_101); +lean_ctor_set(x_41, 0, x_3); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_1); +lean_ctor_set(x_102, 1, x_41); +x_103 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_98); +return x_103; +} +} +else +{ +uint8_t x_104; +lean_dec(x_86); +lean_free_object(x_69); +lean_free_object(x_41); +lean_free_object(x_1); +lean_dec_ref(x_3); +x_104 = !lean_is_exclusive(x_90); +if (x_104 == 0) +{ +return x_90; +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_105 = lean_ctor_get(x_90, 0); +x_106 = lean_ctor_get(x_90, 1); +lean_inc(x_106); +lean_inc(x_105); +lean_dec(x_90); +x_107 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +return x_107; +} +} +} +else +{ +uint8_t x_108; +lean_dec(x_86); +lean_free_object(x_69); +lean_dec(x_82); +lean_free_object(x_41); +lean_dec(x_39); +lean_free_object(x_1); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec_ref(x_3); +x_108 = !lean_is_exclusive(x_87); +if (x_108 == 0) +{ +return x_87; +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_87, 0); +x_110 = lean_ctor_get(x_87, 1); +lean_inc(x_110); +lean_inc(x_109); +lean_dec(x_87); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +return x_111; +} +} +} +else +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_69, 0); +lean_inc(x_112); +lean_dec(x_69); +x_113 = l_Lean_mkAutoParamFnOfProjFn(x_8); +lean_inc(x_113); +lean_ctor_set(x_2, 0, x_113); +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +x_114 = l_Lean_Elab_Term_declareTacticSyntax___redArg(x_112, x_2, x_12, x_13, x_14, x_15, x_83); +if (lean_obj_tag(x_114) == 0) +{ +lean_object* x_115; uint8_t x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_114, 1); +lean_inc(x_115); +lean_dec_ref(x_114); +x_116 = 1; +x_117 = l_Lean_Meta_mkForallFVars(x_82, x_39, x_45, x_48, x_48, x_116, x_12, x_13, x_14, x_15, x_115); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +if (lean_obj_tag(x_117) == 0) +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; +} else { + lean_dec_ref(x_117); + x_120 = lean_box(0); +} +lean_ctor_set(x_1, 0, x_118); +x_121 = lean_box(0); +x_122 = l_Lean_Expr_const___override(x_113, x_121); +x_123 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_123, 0, x_122); +x_124 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_41, 1, x_124); +lean_ctor_set(x_41, 0, x_3); +x_125 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_125, 0, x_1); +lean_ctor_set(x_125, 1, x_41); +if (lean_is_scalar(x_120)) { + x_126 = lean_alloc_ctor(0, 2, 0); +} else { + x_126 = x_120; +} +lean_ctor_set(x_126, 0, x_125); +lean_ctor_set(x_126, 1, x_119); +return x_126; +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +lean_dec(x_113); +lean_free_object(x_41); +lean_free_object(x_1); +lean_dec_ref(x_3); +x_127 = lean_ctor_get(x_117, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_117, 1); +lean_inc(x_128); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_129 = x_117; +} else { + lean_dec_ref(x_117); + x_129 = lean_box(0); +} +if (lean_is_scalar(x_129)) { + x_130 = lean_alloc_ctor(1, 2, 0); +} else { + x_130 = x_129; +} +lean_ctor_set(x_130, 0, x_127); +lean_ctor_set(x_130, 1, x_128); +return x_130; +} +} +else +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_113); +lean_dec(x_82); +lean_free_object(x_41); +lean_dec(x_39); +lean_free_object(x_1); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec_ref(x_3); +x_131 = lean_ctor_get(x_114, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_114, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_133 = x_114; +} else { + lean_dec_ref(x_114); + x_133 = lean_box(0); +} +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(1, 2, 0); +} else { + x_134 = x_133; +} +lean_ctor_set(x_134, 0, x_131); +lean_ctor_set(x_134, 1, x_132); +return x_134; +} +} +} +} +else +{ +lean_object* x_135; +x_135 = lean_ctor_get(x_2, 0); +lean_inc(x_135); +lean_dec(x_2); +if (lean_obj_tag(x_135) == 0) +{ +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; uint8_t x_147; lean_object* x_148; +lean_free_object(x_41); +lean_free_object(x_1); +lean_dec(x_8); +x_136 = lean_ctor_get(x_50, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_50, 1); +lean_inc(x_137); +lean_dec_ref(x_50); +x_138 = lean_ctor_get(x_135, 0); +lean_inc(x_138); +lean_dec(x_135); +lean_inc(x_39); +x_139 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_139, 0, x_39); +x_140 = lean_box(0); +x_141 = lean_box(x_48); +x_142 = lean_box(x_48); +lean_inc(x_138); +x_143 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); +lean_closure_set(x_143, 0, x_138); +lean_closure_set(x_143, 1, x_139); +lean_closure_set(x_143, 2, x_141); +lean_closure_set(x_143, 3, x_142); +lean_closure_set(x_143, 4, x_140); +x_144 = lean_box(x_45); +x_145 = lean_box(x_48); +x_146 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__2___boxed), 16, 9); +lean_closure_set(x_146, 0, x_143); +lean_closure_set(x_146, 1, x_5); +lean_closure_set(x_146, 2, x_6); +lean_closure_set(x_146, 3, x_138); +lean_closure_set(x_146, 4, x_144); +lean_closure_set(x_146, 5, x_136); +lean_closure_set(x_146, 6, x_39); +lean_closure_set(x_146, 7, x_145); +lean_closure_set(x_146, 8, x_3); +x_147 = l_Lean_Elab_Modifiers_isPrivate(x_7); +x_148 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(x_146, x_147, x_10, x_11, x_12, x_13, x_14, x_15, x_137); +return x_148; +} +else +{ +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_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_6); +lean_dec_ref(x_5); +x_149 = lean_ctor_get(x_50, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_50, 1); +lean_inc(x_150); +lean_dec_ref(x_50); +x_151 = lean_ctor_get(x_135, 0); +lean_inc(x_151); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + x_152 = x_135; +} else { + lean_dec_ref(x_135); + x_152 = lean_box(0); +} +x_153 = l_Lean_mkAutoParamFnOfProjFn(x_8); +lean_inc(x_153); +x_154 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_154, 0, x_153); +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +x_155 = l_Lean_Elab_Term_declareTacticSyntax___redArg(x_151, x_154, x_12, x_13, x_14, x_15, x_150); +if (lean_obj_tag(x_155) == 0) +{ +lean_object* x_156; uint8_t x_157; lean_object* x_158; +x_156 = lean_ctor_get(x_155, 1); +lean_inc(x_156); +lean_dec_ref(x_155); +x_157 = 1; +x_158 = l_Lean_Meta_mkForallFVars(x_149, x_39, x_45, x_48, x_48, x_157, x_12, x_13, x_14, x_15, x_156); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +if (lean_obj_tag(x_158) == 0) +{ +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; +x_159 = lean_ctor_get(x_158, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_158, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_161 = x_158; +} else { + lean_dec_ref(x_158); + x_161 = lean_box(0); +} +lean_ctor_set(x_1, 0, x_159); +x_162 = lean_box(0); +x_163 = l_Lean_Expr_const___override(x_153, x_162); +if (lean_is_scalar(x_152)) { + x_164 = lean_alloc_ctor(1, 1, 0); +} else { + x_164 = x_152; +} +lean_ctor_set(x_164, 0, x_163); +x_165 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_41, 1, x_165); +lean_ctor_set(x_41, 0, x_3); +x_166 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_166, 0, x_1); +lean_ctor_set(x_166, 1, x_41); +if (lean_is_scalar(x_161)) { + x_167 = lean_alloc_ctor(0, 2, 0); +} else { + x_167 = x_161; +} +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_160); return x_167; } -} else { lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -lean_dec(x_114); -lean_free_object(x_2); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); +lean_dec(x_153); +lean_dec(x_152); +lean_free_object(x_41); +lean_free_object(x_1); lean_dec_ref(x_3); -x_168 = lean_ctor_get(x_120, 0); +x_168 = lean_ctor_get(x_158, 0); lean_inc(x_168); -x_169 = lean_ctor_get(x_120, 1); +x_169 = lean_ctor_get(x_158, 1); lean_inc(x_169); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_170 = x_120; +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_170 = x_158; } else { - lean_dec_ref(x_120); + lean_dec_ref(x_158); x_170 = lean_box(0); } if (lean_is_scalar(x_170)) { @@ -45642,28 +47594,27 @@ return x_171; else { lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; -lean_dec(x_114); -lean_free_object(x_2); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); +lean_dec(x_153); +lean_dec(x_152); +lean_dec(x_149); +lean_free_object(x_41); +lean_dec(x_39); +lean_free_object(x_1); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); lean_dec_ref(x_3); -x_172 = lean_ctor_get(x_116, 0); +x_172 = lean_ctor_get(x_155, 0); lean_inc(x_172); -x_173 = lean_ctor_get(x_116, 1); +x_173 = lean_ctor_get(x_155, 1); lean_inc(x_173); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_174 = x_116; +if (lean_is_exclusive(x_155)) { + lean_ctor_release(x_155, 0); + lean_ctor_release(x_155, 1); + x_174 = x_155; } else { - lean_dec_ref(x_116); + lean_dec_ref(x_155); x_174 = lean_box(0); } if (lean_is_scalar(x_174)) { @@ -45677,3865 +47628,1148 @@ return x_175; } } } +} +} else { -lean_object* x_176; lean_object* x_177; lean_object* x_178; -lean_free_object(x_2); +uint8_t x_176; +lean_free_object(x_41); +lean_dec(x_39); +lean_free_object(x_1); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_3); +lean_dec(x_2); +x_176 = !lean_is_exclusive(x_50); +if (x_176 == 0) +{ +return x_50; +} +else +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_177 = lean_ctor_get(x_50, 0); +x_178 = lean_ctor_get(x_50, 1); +lean_inc(x_178); +lean_inc(x_177); +lean_dec(x_50); +x_179 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_179, 0, x_177); +lean_ctor_set(x_179, 1, x_178); +return x_179; +} +} +} +else +{ +uint8_t x_180; +lean_free_object(x_41); +lean_dec(x_39); +lean_free_object(x_1); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -x_176 = lean_ctor_get(x_22, 0); -lean_inc(x_176); -lean_dec(x_22); -x_177 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___closed__1; -x_178 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at_____private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux_spec__0_spec__2___redArg(x_176, x_177, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -lean_dec(x_14); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_176); -return x_178; +lean_dec(x_2); +x_180 = !lean_is_exclusive(x_46); +if (x_180 == 0) +{ +return x_46; +} +else +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_181 = lean_ctor_get(x_46, 0); +x_182 = lean_ctor_get(x_46, 1); +lean_inc(x_182); +lean_inc(x_181); +lean_dec(x_46); +x_183 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_183, 0, x_181); +lean_ctor_set(x_183, 1, x_182); +return x_183; +} } } else { -lean_object* x_179; -x_179 = lean_ctor_get(x_2, 0); -lean_inc(x_179); -lean_dec(x_2); -if (lean_obj_tag(x_179) == 0) -{ -lean_object* x_180; lean_object* x_181; uint8_t x_182; lean_object* x_183; -x_180 = lean_ctor_get(x_179, 0); -lean_inc(x_180); -if (lean_is_exclusive(x_179)) { - lean_ctor_release(x_179, 0); - x_181 = x_179; -} else { - lean_dec_ref(x_179); - x_181 = lean_box(0); -} -x_182 = 0; -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_183 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_182, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_183) == 0) -{ -lean_object* x_184; uint8_t x_185; lean_object* x_186; lean_object* x_187; -x_184 = lean_ctor_get(x_183, 1); +lean_object* x_184; uint8_t x_185; lean_object* x_186; +x_184 = lean_ctor_get(x_41, 1); lean_inc(x_184); -lean_dec_ref(x_183); -x_185 = 1; -x_186 = l_Lean_Syntax_getTailPos_x3f(x_4, x_185); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc_ref(x_9); -x_187 = l_Lean_Elab_Term_addAutoBoundImplicits(x_8, x_186, x_9, x_10, x_11, x_12, x_13, x_14, x_184); -if (lean_obj_tag(x_187) == 0) +lean_dec(x_41); +x_185 = 0; +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc(x_11); +lean_inc_ref(x_10); +x_186 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_185, x_10, x_11, x_12, x_13, x_14, x_15, x_184); +if (lean_obj_tag(x_186) == 0) { -lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; -x_188 = lean_ctor_get(x_187, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_187, 1); -lean_inc(x_189); -lean_dec_ref(x_187); -x_190 = lean_box(0); -x_191 = lean_box(x_185); -x_192 = lean_box(x_185); -lean_inc(x_180); -x_193 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); -lean_closure_set(x_193, 0, x_180); -lean_closure_set(x_193, 1, x_190); -lean_closure_set(x_193, 2, x_191); -lean_closure_set(x_193, 3, x_192); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_194 = l_Lean_Elab_Term_withoutAutoBoundImplicit___redArg(x_193, x_9, x_10, x_11, x_12, x_13, x_14, x_189); +lean_object* x_187; uint8_t x_188; lean_object* x_189; lean_object* x_190; +x_187 = lean_ctor_get(x_186, 1); +lean_inc(x_187); +lean_dec_ref(x_186); +x_188 = 1; +x_189 = l_Lean_Syntax_getTailPos_x3f(x_4, x_188); +lean_dec(x_4); +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc_ref(x_10); +x_190 = l_Lean_Elab_Term_addAutoBoundImplicits(x_9, x_189, x_10, x_11, x_12, x_13, x_14, x_15, x_187); +lean_dec_ref(x_9); +if (lean_obj_tag(x_190) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_191; lean_object* x_192; uint8_t x_193; lean_object* x_194; +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec_ref(x_5); +x_191 = lean_ctor_get(x_190, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_190, 1); +lean_inc(x_192); +lean_dec_ref(x_190); +x_193 = 1; +x_194 = l_Lean_Meta_mkForallFVars(x_191, x_39, x_185, x_188, x_188, x_193, x_12, x_13, x_14, x_15, x_192); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); if (lean_obj_tag(x_194) == 0) { -lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; x_195 = lean_ctor_get(x_194, 0); lean_inc(x_195); x_196 = lean_ctor_get(x_194, 1); lean_inc(x_196); -lean_dec_ref(x_194); -x_197 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_solveParentMVars), 9, 1); -lean_closure_set(x_197, 0, x_195); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -x_198 = l_Lean_Elab_Command_Structure_runStructElabM___redArg(x_197, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_196); -if (lean_obj_tag(x_198) == 0) -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_198, 0); -lean_inc(x_199); -x_200 = lean_ctor_get(x_198, 1); -lean_inc(x_200); -lean_dec_ref(x_198); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_199); -x_201 = lean_infer_type(x_199, x_11, x_12, x_13, x_14, x_200); -if (lean_obj_tag(x_201) == 0) -{ -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; uint8_t x_210; lean_object* x_211; -x_202 = lean_ctor_get(x_201, 0); -lean_inc(x_202); -x_203 = lean_ctor_get(x_201, 1); -lean_inc(x_203); -lean_dec_ref(x_201); -lean_inc(x_6); -x_204 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferFieldType___redArg(x_6, x_202, x_4, x_10, x_12, x_203); -x_205 = lean_ctor_get(x_204, 1); -lean_inc(x_205); -if (lean_is_exclusive(x_204)) { - lean_ctor_release(x_204, 0); - lean_ctor_release(x_204, 1); - x_206 = x_204; -} else { - lean_dec_ref(x_204); - x_206 = lean_box(0); -} -lean_inc(x_199); -x_207 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferDefaultValue___redArg(x_6, x_199, x_180, x_10, x_11, x_12, x_205); -lean_dec(x_10); -x_208 = lean_ctor_get(x_207, 1); -lean_inc(x_208); -if (lean_is_exclusive(x_207)) { - lean_ctor_release(x_207, 0); - lean_ctor_release(x_207, 1); - x_209 = x_207; -} else { - lean_dec_ref(x_207); - x_209 = lean_box(0); -} -x_210 = 1; -x_211 = l_Lean_Meta_mkLambdaFVars(x_188, x_199, x_182, x_185, x_182, x_185, x_210, x_11, x_12, x_13, x_14, x_208); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_211) == 0) -{ -lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_212 = lean_ctor_get(x_211, 0); -lean_inc(x_212); -x_213 = lean_ctor_get(x_211, 1); -lean_inc(x_213); -if (lean_is_exclusive(x_211)) { - lean_ctor_release(x_211, 0); - lean_ctor_release(x_211, 1); - x_214 = x_211; -} else { - lean_dec_ref(x_211); - x_214 = lean_box(0); -} -if (lean_is_scalar(x_181)) { - x_215 = lean_alloc_ctor(0, 1, 0); -} else { - x_215 = x_181; -} -lean_ctor_set(x_215, 0, x_212); -x_216 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_216, 0, x_215); -if (lean_is_scalar(x_209)) { - x_217 = lean_alloc_ctor(0, 2, 0); -} else { - x_217 = x_209; -} -lean_ctor_set(x_217, 0, x_3); -lean_ctor_set(x_217, 1, x_216); -if (lean_is_scalar(x_206)) { - x_218 = lean_alloc_ctor(0, 2, 0); -} else { - x_218 = x_206; -} -lean_ctor_set(x_218, 0, x_190); -lean_ctor_set(x_218, 1, x_217); -if (lean_is_scalar(x_214)) { - x_219 = lean_alloc_ctor(0, 2, 0); -} else { - x_219 = x_214; -} -lean_ctor_set(x_219, 0, x_218); -lean_ctor_set(x_219, 1, x_213); -return x_219; -} -else -{ -lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; -lean_dec(x_209); -lean_dec(x_206); -lean_dec(x_181); -lean_dec_ref(x_3); -x_220 = lean_ctor_get(x_211, 0); -lean_inc(x_220); -x_221 = lean_ctor_get(x_211, 1); -lean_inc(x_221); -if (lean_is_exclusive(x_211)) { - lean_ctor_release(x_211, 0); - lean_ctor_release(x_211, 1); - x_222 = x_211; -} else { - lean_dec_ref(x_211); - x_222 = lean_box(0); -} -if (lean_is_scalar(x_222)) { - x_223 = lean_alloc_ctor(1, 2, 0); -} else { - x_223 = x_222; -} -lean_ctor_set(x_223, 0, x_220); -lean_ctor_set(x_223, 1, x_221); -return x_223; -} -} -else -{ -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; -lean_dec(x_199); -lean_dec(x_188); -lean_dec(x_181); -lean_dec(x_180); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_4); -lean_dec_ref(x_3); -x_224 = lean_ctor_get(x_201, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_201, 1); -lean_inc(x_225); -if (lean_is_exclusive(x_201)) { - lean_ctor_release(x_201, 0); - lean_ctor_release(x_201, 1); - x_226 = x_201; -} else { - lean_dec_ref(x_201); - x_226 = lean_box(0); -} -if (lean_is_scalar(x_226)) { - x_227 = lean_alloc_ctor(1, 2, 0); -} else { - x_227 = x_226; -} -lean_ctor_set(x_227, 0, x_224); -lean_ctor_set(x_227, 1, x_225); -return x_227; -} -} -else -{ -lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; -lean_dec(x_188); -lean_dec(x_181); -lean_dec(x_180); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_4); -lean_dec_ref(x_3); -x_228 = lean_ctor_get(x_198, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_198, 1); -lean_inc(x_229); -if (lean_is_exclusive(x_198)) { - lean_ctor_release(x_198, 0); - lean_ctor_release(x_198, 1); - x_230 = x_198; -} else { - lean_dec_ref(x_198); - x_230 = lean_box(0); -} -if (lean_is_scalar(x_230)) { - x_231 = lean_alloc_ctor(1, 2, 0); -} else { - x_231 = x_230; -} -lean_ctor_set(x_231, 0, x_228); -lean_ctor_set(x_231, 1, x_229); -return x_231; -} -} -else -{ -lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; -lean_dec(x_188); -lean_dec(x_181); -lean_dec(x_180); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -x_232 = lean_ctor_get(x_194, 0); -lean_inc(x_232); -x_233 = lean_ctor_get(x_194, 1); -lean_inc(x_233); if (lean_is_exclusive(x_194)) { lean_ctor_release(x_194, 0); lean_ctor_release(x_194, 1); - x_234 = x_194; + x_197 = x_194; } else { lean_dec_ref(x_194); - x_234 = lean_box(0); + x_197 = lean_box(0); } -if (lean_is_scalar(x_234)) { - x_235 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1, 0, x_195); +x_198 = lean_box(0); +x_199 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_199, 0, x_3); +lean_ctor_set(x_199, 1, x_198); +x_200 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_200, 0, x_1); +lean_ctor_set(x_200, 1, x_199); +if (lean_is_scalar(x_197)) { + x_201 = lean_alloc_ctor(0, 2, 0); } else { - x_235 = x_234; + x_201 = x_197; } -lean_ctor_set(x_235, 0, x_232); -lean_ctor_set(x_235, 1, x_233); -return x_235; +lean_ctor_set(x_201, 0, x_200); +lean_ctor_set(x_201, 1, x_196); +return x_201; +} +else +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +lean_free_object(x_1); +lean_dec_ref(x_3); +x_202 = lean_ctor_get(x_194, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_194, 1); +lean_inc(x_203); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + x_204 = x_194; +} else { + lean_dec_ref(x_194); + x_204 = lean_box(0); +} +if (lean_is_scalar(x_204)) { + x_205 = lean_alloc_ctor(1, 2, 0); +} else { + x_205 = x_204; +} +lean_ctor_set(x_205, 0, x_202); +lean_ctor_set(x_205, 1, x_203); +return x_205; } } else { -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; -lean_dec(x_181); -lean_dec(x_180); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -x_236 = lean_ctor_get(x_187, 0); -lean_inc(x_236); -x_237 = lean_ctor_get(x_187, 1); -lean_inc(x_237); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_238 = x_187; +lean_object* x_206; lean_object* x_207; +x_206 = lean_ctor_get(x_2, 0); +lean_inc(x_206); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + x_207 = x_2; } else { - lean_dec_ref(x_187); - x_238 = lean_box(0); + lean_dec_ref(x_2); + x_207 = lean_box(0); } -if (lean_is_scalar(x_238)) { - x_239 = lean_alloc_ctor(1, 2, 0); +if (lean_obj_tag(x_206) == 0) +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; uint8_t x_219; lean_object* x_220; +lean_free_object(x_1); +lean_dec(x_8); +x_208 = lean_ctor_get(x_190, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_190, 1); +lean_inc(x_209); +lean_dec_ref(x_190); +x_210 = lean_ctor_get(x_206, 0); +lean_inc(x_210); +lean_dec(x_206); +lean_inc(x_39); +if (lean_is_scalar(x_207)) { + x_211 = lean_alloc_ctor(1, 1, 0); } else { - x_239 = x_238; -} -lean_ctor_set(x_239, 0, x_236); -lean_ctor_set(x_239, 1, x_237); -return x_239; + x_211 = x_207; } +lean_ctor_set(x_211, 0, x_39); +x_212 = lean_box(0); +x_213 = lean_box(x_188); +x_214 = lean_box(x_188); +lean_inc(x_210); +x_215 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); +lean_closure_set(x_215, 0, x_210); +lean_closure_set(x_215, 1, x_211); +lean_closure_set(x_215, 2, x_213); +lean_closure_set(x_215, 3, x_214); +lean_closure_set(x_215, 4, x_212); +x_216 = lean_box(x_185); +x_217 = lean_box(x_188); +x_218 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__2___boxed), 16, 9); +lean_closure_set(x_218, 0, x_215); +lean_closure_set(x_218, 1, x_5); +lean_closure_set(x_218, 2, x_6); +lean_closure_set(x_218, 3, x_210); +lean_closure_set(x_218, 4, x_216); +lean_closure_set(x_218, 5, x_208); +lean_closure_set(x_218, 6, x_39); +lean_closure_set(x_218, 7, x_217); +lean_closure_set(x_218, 8, x_3); +x_219 = l_Lean_Elab_Modifiers_isPrivate(x_7); +x_220 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(x_218, x_219, x_10, x_11, x_12, x_13, x_14, x_15, x_209); +return x_220; } else { -lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; -lean_dec(x_181); -lean_dec(x_180); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; +lean_dec(x_11); +lean_dec_ref(x_10); lean_dec(x_6); lean_dec_ref(x_5); -lean_dec(x_4); +x_221 = lean_ctor_get(x_190, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_190, 1); +lean_inc(x_222); +lean_dec_ref(x_190); +x_223 = lean_ctor_get(x_206, 0); +lean_inc(x_223); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + x_224 = x_206; +} else { + lean_dec_ref(x_206); + x_224 = lean_box(0); +} +x_225 = l_Lean_mkAutoParamFnOfProjFn(x_8); +lean_inc(x_225); +if (lean_is_scalar(x_207)) { + x_226 = lean_alloc_ctor(1, 1, 0); +} else { + x_226 = x_207; +} +lean_ctor_set(x_226, 0, x_225); +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +x_227 = l_Lean_Elab_Term_declareTacticSyntax___redArg(x_223, x_226, x_12, x_13, x_14, x_15, x_222); +if (lean_obj_tag(x_227) == 0) +{ +lean_object* x_228; uint8_t x_229; lean_object* x_230; +x_228 = lean_ctor_get(x_227, 1); +lean_inc(x_228); +lean_dec_ref(x_227); +x_229 = 1; +x_230 = l_Lean_Meta_mkForallFVars(x_221, x_39, x_185, x_188, x_188, x_229, x_12, x_13, x_14, x_15, x_228); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +if (lean_obj_tag(x_230) == 0) +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_231 = lean_ctor_get(x_230, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_230, 1); +lean_inc(x_232); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_233 = x_230; +} else { + lean_dec_ref(x_230); + x_233 = lean_box(0); +} +lean_ctor_set(x_1, 0, x_231); +x_234 = lean_box(0); +x_235 = l_Lean_Expr_const___override(x_225, x_234); +if (lean_is_scalar(x_224)) { + x_236 = lean_alloc_ctor(1, 1, 0); +} else { + x_236 = x_224; +} +lean_ctor_set(x_236, 0, x_235); +x_237 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_237, 0, x_236); +x_238 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_238, 0, x_3); +lean_ctor_set(x_238, 1, x_237); +x_239 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_239, 0, x_1); +lean_ctor_set(x_239, 1, x_238); +if (lean_is_scalar(x_233)) { + x_240 = lean_alloc_ctor(0, 2, 0); +} else { + x_240 = x_233; +} +lean_ctor_set(x_240, 0, x_239); +lean_ctor_set(x_240, 1, x_232); +return x_240; +} +else +{ +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +lean_dec(x_225); +lean_dec(x_224); +lean_free_object(x_1); lean_dec_ref(x_3); -x_240 = lean_ctor_get(x_183, 0); -lean_inc(x_240); -x_241 = lean_ctor_get(x_183, 1); +x_241 = lean_ctor_get(x_230, 0); lean_inc(x_241); -if (lean_is_exclusive(x_183)) { - lean_ctor_release(x_183, 0); - lean_ctor_release(x_183, 1); - x_242 = x_183; +x_242 = lean_ctor_get(x_230, 1); +lean_inc(x_242); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_243 = x_230; } else { - lean_dec_ref(x_183); - x_242 = lean_box(0); + lean_dec_ref(x_230); + x_243 = lean_box(0); } -if (lean_is_scalar(x_242)) { - x_243 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_243)) { + x_244 = lean_alloc_ctor(1, 2, 0); } else { - x_243 = x_242; + x_244 = x_243; } -lean_ctor_set(x_243, 0, x_240); -lean_ctor_set(x_243, 1, x_241); -return x_243; +lean_ctor_set(x_244, 0, x_241); +lean_ctor_set(x_244, 1, x_242); +return x_244; } } else { -lean_object* x_244; lean_object* x_245; lean_object* x_246; +lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +lean_dec(x_225); +lean_dec(x_224); +lean_dec(x_221); +lean_dec(x_39); +lean_free_object(x_1); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec_ref(x_3); +x_245 = lean_ctor_get(x_227, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_227, 1); +lean_inc(x_246); +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + x_247 = x_227; +} else { + lean_dec_ref(x_227); + x_247 = lean_box(0); +} +if (lean_is_scalar(x_247)) { + x_248 = lean_alloc_ctor(1, 2, 0); +} else { + x_248 = x_247; +} +lean_ctor_set(x_248, 0, x_245); +lean_ctor_set(x_248, 1, x_246); +return x_248; +} +} +} +} +else +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; +lean_dec(x_39); +lean_free_object(x_1); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_3); +lean_dec(x_2); +x_249 = lean_ctor_get(x_190, 0); +lean_inc(x_249); +x_250 = lean_ctor_get(x_190, 1); +lean_inc(x_250); +if (lean_is_exclusive(x_190)) { + lean_ctor_release(x_190, 0); + lean_ctor_release(x_190, 1); + x_251 = x_190; +} else { + lean_dec_ref(x_190); + x_251 = lean_box(0); +} +if (lean_is_scalar(x_251)) { + x_252 = lean_alloc_ctor(1, 2, 0); +} else { + x_252 = x_251; +} +lean_ctor_set(x_252, 0, x_249); +lean_ctor_set(x_252, 1, x_250); +return x_252; +} +} +else +{ +lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; +lean_dec(x_39); +lean_free_object(x_1); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -x_244 = lean_ctor_get(x_179, 0); -lean_inc(x_244); -lean_dec(x_179); -x_245 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___closed__1; -x_246 = l_Lean_throwErrorAt___at___Lean_Elab_liftMacroM___at_____private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux_spec__0_spec__2___redArg(x_244, x_245, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -lean_dec(x_14); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_244); -return x_246; +lean_dec(x_2); +x_253 = lean_ctor_get(x_186, 0); +lean_inc(x_253); +x_254 = lean_ctor_get(x_186, 1); +lean_inc(x_254); +if (lean_is_exclusive(x_186)) { + lean_ctor_release(x_186, 0); + lean_ctor_release(x_186, 1); + x_255 = x_186; +} else { + lean_dec_ref(x_186); + x_255 = lean_box(0); } +if (lean_is_scalar(x_255)) { + x_256 = lean_alloc_ctor(1, 2, 0); +} else { + x_256 = x_255; +} +lean_ctor_set(x_256, 0, x_253); +lean_ctor_set(x_256, 1, x_254); +return x_256; } } } else { -uint8_t x_247; -x_247 = !lean_is_exclusive(x_1); -if (x_247 == 0) -{ -lean_object* x_248; lean_object* x_249; -x_248 = lean_ctor_get(x_1, 0); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -lean_inc(x_248); -x_249 = l_Lean_Elab_Term_elabType(x_248, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_249) == 0) -{ -lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; -x_250 = lean_ctor_get(x_249, 0); -lean_inc(x_250); -x_251 = lean_ctor_get(x_249, 1); -lean_inc(x_251); -lean_dec_ref(x_249); -x_252 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_solveParentMVars), 9, 1); -lean_closure_set(x_252, 0, x_250); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -lean_inc_ref(x_5); -x_253 = l_Lean_Elab_Command_Structure_runStructElabM___redArg(x_252, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_251); -if (lean_obj_tag(x_253) == 0) -{ -lean_object* x_254; lean_object* x_255; lean_object* x_256; uint8_t x_257; -x_254 = lean_ctor_get(x_253, 0); -lean_inc(x_254); -x_255 = lean_ctor_get(x_253, 1); -lean_inc(x_255); -lean_dec_ref(x_253); -lean_inc(x_254); -lean_inc(x_6); -x_256 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferFieldType___redArg(x_6, x_254, x_248, x_10, x_12, x_255); -x_257 = !lean_is_exclusive(x_256); +uint8_t x_257; +lean_free_object(x_1); +lean_dec(x_33); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec(x_2); +x_257 = !lean_is_exclusive(x_38); if (x_257 == 0) { -lean_object* x_258; lean_object* x_259; uint8_t x_260; lean_object* x_261; -x_258 = lean_ctor_get(x_256, 1); -x_259 = lean_ctor_get(x_256, 0); -lean_dec(x_259); -x_260 = 0; -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_261 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_260, x_9, x_10, x_11, x_12, x_13, x_14, x_258); -if (lean_obj_tag(x_261) == 0) +return x_38; +} +else { -lean_object* x_262; uint8_t x_263; lean_object* x_264; lean_object* x_265; -x_262 = lean_ctor_get(x_261, 1); -lean_inc(x_262); -lean_dec_ref(x_261); -x_263 = 1; -x_264 = l_Lean_Syntax_getTailPos_x3f(x_4, x_263); +lean_object* x_258; lean_object* x_259; lean_object* x_260; +x_258 = lean_ctor_get(x_38, 0); +x_259 = lean_ctor_get(x_38, 1); +lean_inc(x_259); +lean_inc(x_258); +lean_dec(x_38); +x_260 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_260, 0, x_258); +lean_ctor_set(x_260, 1, x_259); +return x_260; +} +} +} +else +{ +uint8_t x_261; +lean_free_object(x_1); +lean_dec(x_33); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec_ref(x_5); lean_dec(x_4); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc_ref(x_9); -x_265 = l_Lean_Elab_Term_addAutoBoundImplicits(x_8, x_264, x_9, x_10, x_11, x_12, x_13, x_14, x_262); -if (lean_obj_tag(x_265) == 0) +lean_dec_ref(x_3); +lean_dec(x_2); +x_261 = !lean_is_exclusive(x_34); +if (x_261 == 0) +{ +return x_34; +} +else +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; +x_262 = lean_ctor_get(x_34, 0); +x_263 = lean_ctor_get(x_34, 1); +lean_inc(x_263); +lean_inc(x_262); +lean_dec(x_34); +x_264 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_264, 0, x_262); +lean_ctor_set(x_264, 1, x_263); +return x_264; +} +} +} +else +{ +lean_object* x_265; lean_object* x_266; +x_265 = lean_ctor_get(x_1, 0); +lean_inc(x_265); +lean_dec(x_1); +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc(x_265); +x_266 = l_Lean_Elab_Term_elabType(x_265, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_266) == 0) +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; +x_267 = lean_ctor_get(x_266, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_266, 1); +lean_inc(x_268); +lean_dec_ref(x_266); +x_269 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_solveParentMVars), 9, 1); +lean_closure_set(x_269, 0, x_267); +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc_ref(x_5); +x_270 = l_Lean_Elab_Command_Structure_runStructElabM___redArg(x_269, x_5, x_10, x_11, x_12, x_13, x_14, x_15, x_268); +if (lean_obj_tag(x_270) == 0) +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; uint8_t x_276; lean_object* x_277; +x_271 = lean_ctor_get(x_270, 0); +lean_inc(x_271); +x_272 = lean_ctor_get(x_270, 1); +lean_inc(x_272); +lean_dec_ref(x_270); +lean_inc(x_271); +lean_inc(x_6); +x_273 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferFieldType___redArg(x_6, x_271, x_265, x_11, x_13, x_272); +x_274 = lean_ctor_get(x_273, 1); +lean_inc(x_274); +if (lean_is_exclusive(x_273)) { + lean_ctor_release(x_273, 0); + lean_ctor_release(x_273, 1); + x_275 = x_273; +} else { + lean_dec_ref(x_273); + x_275 = lean_box(0); +} +x_276 = 0; +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc(x_11); +lean_inc_ref(x_10); +x_277 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_276, x_10, x_11, x_12, x_13, x_14, x_15, x_274); +if (lean_obj_tag(x_277) == 0) +{ +lean_object* x_278; uint8_t x_279; lean_object* x_280; lean_object* x_281; +x_278 = lean_ctor_get(x_277, 1); +lean_inc(x_278); +lean_dec_ref(x_277); +x_279 = 1; +x_280 = l_Lean_Syntax_getTailPos_x3f(x_4, x_279); +lean_dec(x_4); +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +lean_inc_ref(x_10); +x_281 = l_Lean_Elab_Term_addAutoBoundImplicits(x_9, x_280, x_10, x_11, x_12, x_13, x_14, x_15, x_278); +lean_dec_ref(x_9); +if (lean_obj_tag(x_281) == 0) { if (lean_obj_tag(x_2) == 0) { -lean_object* x_266; lean_object* x_267; uint8_t x_268; lean_object* x_269; -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_7); +lean_object* x_282; lean_object* x_283; uint8_t x_284; lean_object* x_285; +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_8); lean_dec(x_6); lean_dec_ref(x_5); -x_266 = lean_ctor_get(x_265, 0); -lean_inc(x_266); -x_267 = lean_ctor_get(x_265, 1); -lean_inc(x_267); -lean_dec_ref(x_265); -x_268 = 1; -x_269 = l_Lean_Meta_mkForallFVars(x_266, x_254, x_260, x_263, x_263, x_268, x_11, x_12, x_13, x_14, x_267); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_269) == 0) +x_282 = lean_ctor_get(x_281, 0); +lean_inc(x_282); +x_283 = lean_ctor_get(x_281, 1); +lean_inc(x_283); +lean_dec_ref(x_281); +x_284 = 1; +x_285 = l_Lean_Meta_mkForallFVars(x_282, x_271, x_276, x_279, x_279, x_284, x_12, x_13, x_14, x_15, x_283); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +if (lean_obj_tag(x_285) == 0) { -uint8_t x_270; -x_270 = !lean_is_exclusive(x_269); -if (x_270 == 0) -{ -lean_object* x_271; lean_object* x_272; lean_object* x_273; -x_271 = lean_ctor_get(x_269, 0); -lean_ctor_set(x_1, 0, x_271); -x_272 = lean_box(0); -lean_ctor_set(x_256, 1, x_272); -lean_ctor_set(x_256, 0, x_3); -x_273 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_273, 0, x_1); -lean_ctor_set(x_273, 1, x_256); -lean_ctor_set(x_269, 0, x_273); -return x_269; -} -else -{ -lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; -x_274 = lean_ctor_get(x_269, 0); -x_275 = lean_ctor_get(x_269, 1); -lean_inc(x_275); -lean_inc(x_274); -lean_dec(x_269); -lean_ctor_set(x_1, 0, x_274); -x_276 = lean_box(0); -lean_ctor_set(x_256, 1, x_276); -lean_ctor_set(x_256, 0, x_3); -x_277 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_277, 0, x_1); -lean_ctor_set(x_277, 1, x_256); -x_278 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_278, 0, x_277); -lean_ctor_set(x_278, 1, x_275); -return x_278; -} -} -else -{ -uint8_t x_279; -lean_free_object(x_256); -lean_free_object(x_1); -lean_dec_ref(x_3); -x_279 = !lean_is_exclusive(x_269); -if (x_279 == 0) -{ -return x_269; -} -else -{ -lean_object* x_280; lean_object* x_281; lean_object* x_282; -x_280 = lean_ctor_get(x_269, 0); -x_281 = lean_ctor_get(x_269, 1); -lean_inc(x_281); -lean_inc(x_280); -lean_dec(x_269); -x_282 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_282, 0, x_280); -lean_ctor_set(x_282, 1, x_281); -return x_282; -} -} -} -else -{ -uint8_t x_283; -x_283 = !lean_is_exclusive(x_2); -if (x_283 == 0) -{ -lean_object* x_284; -x_284 = lean_ctor_get(x_2, 0); -if (lean_obj_tag(x_284) == 0) -{ -lean_object* x_285; lean_object* x_286; uint8_t x_287; -lean_dec(x_7); -x_285 = lean_ctor_get(x_265, 0); -lean_inc(x_285); -x_286 = lean_ctor_get(x_265, 1); +lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; +x_286 = lean_ctor_get(x_285, 0); lean_inc(x_286); -lean_dec_ref(x_265); -x_287 = !lean_is_exclusive(x_284); -if (x_287 == 0) -{ -lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; -x_288 = lean_ctor_get(x_284, 0); -lean_inc(x_254); -lean_ctor_set(x_2, 0, x_254); -x_289 = lean_box(0); -x_290 = lean_box(x_263); -x_291 = lean_box(x_263); -lean_inc(x_288); -x_292 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_292, 0, x_288); -lean_closure_set(x_292, 1, x_2); -lean_closure_set(x_292, 2, x_290); -lean_closure_set(x_292, 3, x_291); -lean_closure_set(x_292, 4, x_289); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_293 = l_Lean_Elab_Term_withoutAutoBoundImplicit___redArg(x_292, x_9, x_10, x_11, x_12, x_13, x_14, x_286); -if (lean_obj_tag(x_293) == 0) -{ -lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; -x_294 = lean_ctor_get(x_293, 0); -lean_inc(x_294); -x_295 = lean_ctor_get(x_293, 1); -lean_inc(x_295); -lean_dec_ref(x_293); -x_296 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_solveParentMVars), 9, 1); -lean_closure_set(x_296, 0, x_294); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_297 = l_Lean_Elab_Command_Structure_runStructElabM___redArg(x_296, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_295); -if (lean_obj_tag(x_297) == 0) -{ -lean_object* x_298; lean_object* x_299; lean_object* x_300; uint8_t x_301; -x_298 = lean_ctor_get(x_297, 0); -lean_inc(x_298); -x_299 = lean_ctor_get(x_297, 1); -lean_inc(x_299); -lean_dec_ref(x_297); -lean_inc(x_298); -x_300 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferDefaultValue___redArg(x_6, x_298, x_288, x_10, x_11, x_12, x_299); -x_301 = !lean_is_exclusive(x_300); -if (x_301 == 0) -{ -lean_object* x_302; lean_object* x_303; lean_object* x_304; -x_302 = lean_ctor_get(x_300, 1); -x_303 = lean_ctor_get(x_300, 0); -lean_dec(x_303); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -x_304 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_260, x_9, x_10, x_11, x_12, x_13, x_14, x_302); -if (lean_obj_tag(x_304) == 0) -{ -lean_object* x_305; uint8_t x_306; lean_object* x_307; -x_305 = lean_ctor_get(x_304, 1); -lean_inc(x_305); -lean_dec_ref(x_304); -x_306 = 1; -lean_inc(x_285); -x_307 = l_Lean_Meta_mkForallFVars(x_285, x_254, x_260, x_263, x_263, x_306, x_11, x_12, x_13, x_14, x_305); -if (lean_obj_tag(x_307) == 0) -{ -lean_object* x_308; lean_object* x_309; lean_object* x_310; -x_308 = lean_ctor_get(x_307, 0); -lean_inc(x_308); -x_309 = lean_ctor_get(x_307, 1); -lean_inc(x_309); -lean_dec_ref(x_307); -x_310 = l_Lean_Meta_mkLambdaFVars(x_285, x_298, x_260, x_263, x_260, x_263, x_306, x_11, x_12, x_13, x_14, x_309); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_310) == 0) -{ -uint8_t x_311; -x_311 = !lean_is_exclusive(x_310); -if (x_311 == 0) -{ -lean_object* x_312; lean_object* x_313; -x_312 = lean_ctor_get(x_310, 0); -lean_ctor_set(x_1, 0, x_308); -lean_ctor_set(x_284, 0, x_312); -x_313 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_313, 0, x_284); -lean_ctor_set(x_300, 1, x_313); -lean_ctor_set(x_300, 0, x_3); -lean_ctor_set(x_256, 1, x_300); -lean_ctor_set(x_256, 0, x_1); -lean_ctor_set(x_310, 0, x_256); -return x_310; -} -else -{ -lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; -x_314 = lean_ctor_get(x_310, 0); -x_315 = lean_ctor_get(x_310, 1); -lean_inc(x_315); -lean_inc(x_314); -lean_dec(x_310); -lean_ctor_set(x_1, 0, x_308); -lean_ctor_set(x_284, 0, x_314); -x_316 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_316, 0, x_284); -lean_ctor_set(x_300, 1, x_316); -lean_ctor_set(x_300, 0, x_3); -lean_ctor_set(x_256, 1, x_300); -lean_ctor_set(x_256, 0, x_1); -x_317 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_317, 0, x_256); -lean_ctor_set(x_317, 1, x_315); -return x_317; -} -} -else -{ -uint8_t x_318; -lean_dec(x_308); -lean_free_object(x_300); -lean_free_object(x_284); -lean_free_object(x_256); -lean_free_object(x_1); -lean_dec_ref(x_3); -x_318 = !lean_is_exclusive(x_310); -if (x_318 == 0) -{ -return x_310; -} -else -{ -lean_object* x_319; lean_object* x_320; lean_object* x_321; -x_319 = lean_ctor_get(x_310, 0); -x_320 = lean_ctor_get(x_310, 1); -lean_inc(x_320); -lean_inc(x_319); -lean_dec(x_310); -x_321 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_321, 0, x_319); -lean_ctor_set(x_321, 1, x_320); -return x_321; -} -} -} -else -{ -uint8_t x_322; -lean_free_object(x_300); -lean_dec(x_298); -lean_free_object(x_284); -lean_dec(x_285); -lean_free_object(x_256); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_322 = !lean_is_exclusive(x_307); -if (x_322 == 0) -{ -return x_307; -} -else -{ -lean_object* x_323; lean_object* x_324; lean_object* x_325; -x_323 = lean_ctor_get(x_307, 0); -x_324 = lean_ctor_get(x_307, 1); -lean_inc(x_324); -lean_inc(x_323); -lean_dec(x_307); -x_325 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_325, 0, x_323); -lean_ctor_set(x_325, 1, x_324); -return x_325; -} -} -} -else -{ -uint8_t x_326; -lean_free_object(x_300); -lean_dec(x_298); -lean_free_object(x_284); -lean_dec(x_285); -lean_free_object(x_256); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_326 = !lean_is_exclusive(x_304); -if (x_326 == 0) -{ -return x_304; -} -else -{ -lean_object* x_327; lean_object* x_328; lean_object* x_329; -x_327 = lean_ctor_get(x_304, 0); -x_328 = lean_ctor_get(x_304, 1); -lean_inc(x_328); -lean_inc(x_327); -lean_dec(x_304); -x_329 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_329, 0, x_327); -lean_ctor_set(x_329, 1, x_328); -return x_329; -} -} -} -else -{ -lean_object* x_330; lean_object* x_331; -x_330 = lean_ctor_get(x_300, 1); -lean_inc(x_330); -lean_dec(x_300); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -x_331 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_260, x_9, x_10, x_11, x_12, x_13, x_14, x_330); -if (lean_obj_tag(x_331) == 0) -{ -lean_object* x_332; uint8_t x_333; lean_object* x_334; -x_332 = lean_ctor_get(x_331, 1); -lean_inc(x_332); -lean_dec_ref(x_331); -x_333 = 1; -lean_inc(x_285); -x_334 = l_Lean_Meta_mkForallFVars(x_285, x_254, x_260, x_263, x_263, x_333, x_11, x_12, x_13, x_14, x_332); -if (lean_obj_tag(x_334) == 0) -{ -lean_object* x_335; lean_object* x_336; lean_object* x_337; -x_335 = lean_ctor_get(x_334, 0); -lean_inc(x_335); -x_336 = lean_ctor_get(x_334, 1); -lean_inc(x_336); -lean_dec_ref(x_334); -x_337 = l_Lean_Meta_mkLambdaFVars(x_285, x_298, x_260, x_263, x_260, x_263, x_333, x_11, x_12, x_13, x_14, x_336); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_337) == 0) -{ -lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; -x_338 = lean_ctor_get(x_337, 0); -lean_inc(x_338); -x_339 = lean_ctor_get(x_337, 1); -lean_inc(x_339); -if (lean_is_exclusive(x_337)) { - lean_ctor_release(x_337, 0); - lean_ctor_release(x_337, 1); - x_340 = x_337; +x_287 = lean_ctor_get(x_285, 1); +lean_inc(x_287); +if (lean_is_exclusive(x_285)) { + lean_ctor_release(x_285, 0); + lean_ctor_release(x_285, 1); + x_288 = x_285; } else { - lean_dec_ref(x_337); - x_340 = lean_box(0); + lean_dec_ref(x_285); + x_288 = lean_box(0); } -lean_ctor_set(x_1, 0, x_335); -lean_ctor_set(x_284, 0, x_338); -x_341 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_341, 0, x_284); -x_342 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_342, 0, x_3); -lean_ctor_set(x_342, 1, x_341); -lean_ctor_set(x_256, 1, x_342); -lean_ctor_set(x_256, 0, x_1); -if (lean_is_scalar(x_340)) { - x_343 = lean_alloc_ctor(0, 2, 0); +x_289 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_289, 0, x_286); +x_290 = lean_box(0); +if (lean_is_scalar(x_275)) { + x_291 = lean_alloc_ctor(0, 2, 0); } else { - x_343 = x_340; + x_291 = x_275; } -lean_ctor_set(x_343, 0, x_256); -lean_ctor_set(x_343, 1, x_339); -return x_343; -} -else -{ -lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; -lean_dec(x_335); -lean_free_object(x_284); -lean_free_object(x_256); -lean_free_object(x_1); -lean_dec_ref(x_3); -x_344 = lean_ctor_get(x_337, 0); -lean_inc(x_344); -x_345 = lean_ctor_get(x_337, 1); -lean_inc(x_345); -if (lean_is_exclusive(x_337)) { - lean_ctor_release(x_337, 0); - lean_ctor_release(x_337, 1); - x_346 = x_337; +lean_ctor_set(x_291, 0, x_3); +lean_ctor_set(x_291, 1, x_290); +x_292 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_292, 0, x_289); +lean_ctor_set(x_292, 1, x_291); +if (lean_is_scalar(x_288)) { + x_293 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_337); - x_346 = lean_box(0); + x_293 = x_288; } -if (lean_is_scalar(x_346)) { - x_347 = lean_alloc_ctor(1, 2, 0); -} else { - x_347 = x_346; -} -lean_ctor_set(x_347, 0, x_344); -lean_ctor_set(x_347, 1, x_345); -return x_347; -} -} -else -{ -lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; -lean_dec(x_298); -lean_free_object(x_284); -lean_dec(x_285); -lean_free_object(x_256); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_348 = lean_ctor_get(x_334, 0); -lean_inc(x_348); -x_349 = lean_ctor_get(x_334, 1); -lean_inc(x_349); -if (lean_is_exclusive(x_334)) { - lean_ctor_release(x_334, 0); - lean_ctor_release(x_334, 1); - x_350 = x_334; -} else { - lean_dec_ref(x_334); - x_350 = lean_box(0); -} -if (lean_is_scalar(x_350)) { - x_351 = lean_alloc_ctor(1, 2, 0); -} else { - x_351 = x_350; -} -lean_ctor_set(x_351, 0, x_348); -lean_ctor_set(x_351, 1, x_349); -return x_351; -} -} -else -{ -lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; -lean_dec(x_298); -lean_free_object(x_284); -lean_dec(x_285); -lean_free_object(x_256); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_352 = lean_ctor_get(x_331, 0); -lean_inc(x_352); -x_353 = lean_ctor_get(x_331, 1); -lean_inc(x_353); -if (lean_is_exclusive(x_331)) { - lean_ctor_release(x_331, 0); - lean_ctor_release(x_331, 1); - x_354 = x_331; -} else { - lean_dec_ref(x_331); - x_354 = lean_box(0); -} -if (lean_is_scalar(x_354)) { - x_355 = lean_alloc_ctor(1, 2, 0); -} else { - x_355 = x_354; -} -lean_ctor_set(x_355, 0, x_352); -lean_ctor_set(x_355, 1, x_353); -return x_355; -} -} -} -else -{ -uint8_t x_356; -lean_free_object(x_284); -lean_dec(x_288); -lean_dec(x_285); -lean_free_object(x_256); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_3); -x_356 = !lean_is_exclusive(x_297); -if (x_356 == 0) -{ -return x_297; -} -else -{ -lean_object* x_357; lean_object* x_358; lean_object* x_359; -x_357 = lean_ctor_get(x_297, 0); -x_358 = lean_ctor_get(x_297, 1); -lean_inc(x_358); -lean_inc(x_357); -lean_dec(x_297); -x_359 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_359, 0, x_357); -lean_ctor_set(x_359, 1, x_358); -return x_359; -} -} -} -else -{ -uint8_t x_360; -lean_free_object(x_284); -lean_dec(x_288); -lean_dec(x_285); -lean_free_object(x_256); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec_ref(x_3); -x_360 = !lean_is_exclusive(x_293); -if (x_360 == 0) -{ +lean_ctor_set(x_293, 0, x_292); +lean_ctor_set(x_293, 1, x_287); return x_293; } else { -lean_object* x_361; lean_object* x_362; lean_object* x_363; -x_361 = lean_ctor_get(x_293, 0); -x_362 = lean_ctor_get(x_293, 1); -lean_inc(x_362); -lean_inc(x_361); -lean_dec(x_293); -x_363 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_363, 0, x_361); -lean_ctor_set(x_363, 1, x_362); -return x_363; -} -} -} -else -{ -lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; -x_364 = lean_ctor_get(x_284, 0); -lean_inc(x_364); -lean_dec(x_284); -lean_inc(x_254); -lean_ctor_set(x_2, 0, x_254); -x_365 = lean_box(0); -x_366 = lean_box(x_263); -x_367 = lean_box(x_263); -lean_inc(x_364); -x_368 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_368, 0, x_364); -lean_closure_set(x_368, 1, x_2); -lean_closure_set(x_368, 2, x_366); -lean_closure_set(x_368, 3, x_367); -lean_closure_set(x_368, 4, x_365); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_369 = l_Lean_Elab_Term_withoutAutoBoundImplicit___redArg(x_368, x_9, x_10, x_11, x_12, x_13, x_14, x_286); -if (lean_obj_tag(x_369) == 0) -{ -lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; -x_370 = lean_ctor_get(x_369, 0); -lean_inc(x_370); -x_371 = lean_ctor_get(x_369, 1); -lean_inc(x_371); -lean_dec_ref(x_369); -x_372 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_solveParentMVars), 9, 1); -lean_closure_set(x_372, 0, x_370); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_373 = l_Lean_Elab_Command_Structure_runStructElabM___redArg(x_372, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_371); -if (lean_obj_tag(x_373) == 0) -{ -lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; -x_374 = lean_ctor_get(x_373, 0); -lean_inc(x_374); -x_375 = lean_ctor_get(x_373, 1); -lean_inc(x_375); -lean_dec_ref(x_373); -lean_inc(x_374); -x_376 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferDefaultValue___redArg(x_6, x_374, x_364, x_10, x_11, x_12, x_375); -x_377 = lean_ctor_get(x_376, 1); -lean_inc(x_377); -if (lean_is_exclusive(x_376)) { - lean_ctor_release(x_376, 0); - lean_ctor_release(x_376, 1); - x_378 = x_376; -} else { - lean_dec_ref(x_376); - x_378 = lean_box(0); -} -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -x_379 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_260, x_9, x_10, x_11, x_12, x_13, x_14, x_377); -if (lean_obj_tag(x_379) == 0) -{ -lean_object* x_380; uint8_t x_381; lean_object* x_382; -x_380 = lean_ctor_get(x_379, 1); -lean_inc(x_380); -lean_dec_ref(x_379); -x_381 = 1; -lean_inc(x_285); -x_382 = l_Lean_Meta_mkForallFVars(x_285, x_254, x_260, x_263, x_263, x_381, x_11, x_12, x_13, x_14, x_380); -if (lean_obj_tag(x_382) == 0) -{ -lean_object* x_383; lean_object* x_384; lean_object* x_385; -x_383 = lean_ctor_get(x_382, 0); -lean_inc(x_383); -x_384 = lean_ctor_get(x_382, 1); -lean_inc(x_384); -lean_dec_ref(x_382); -x_385 = l_Lean_Meta_mkLambdaFVars(x_285, x_374, x_260, x_263, x_260, x_263, x_381, x_11, x_12, x_13, x_14, x_384); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_385) == 0) -{ -lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; -x_386 = lean_ctor_get(x_385, 0); -lean_inc(x_386); -x_387 = lean_ctor_get(x_385, 1); -lean_inc(x_387); -if (lean_is_exclusive(x_385)) { - lean_ctor_release(x_385, 0); - lean_ctor_release(x_385, 1); - x_388 = x_385; -} else { - lean_dec_ref(x_385); - x_388 = lean_box(0); -} -lean_ctor_set(x_1, 0, x_383); -x_389 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_389, 0, x_386); -x_390 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_390, 0, x_389); -if (lean_is_scalar(x_378)) { - x_391 = lean_alloc_ctor(0, 2, 0); -} else { - x_391 = x_378; -} -lean_ctor_set(x_391, 0, x_3); -lean_ctor_set(x_391, 1, x_390); -lean_ctor_set(x_256, 1, x_391); -lean_ctor_set(x_256, 0, x_1); -if (lean_is_scalar(x_388)) { - x_392 = lean_alloc_ctor(0, 2, 0); -} else { - x_392 = x_388; -} -lean_ctor_set(x_392, 0, x_256); -lean_ctor_set(x_392, 1, x_387); -return x_392; -} -else -{ -lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; -lean_dec(x_383); -lean_dec(x_378); -lean_free_object(x_256); -lean_free_object(x_1); +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; +lean_dec(x_275); lean_dec_ref(x_3); -x_393 = lean_ctor_get(x_385, 0); -lean_inc(x_393); -x_394 = lean_ctor_get(x_385, 1); -lean_inc(x_394); -if (lean_is_exclusive(x_385)) { - lean_ctor_release(x_385, 0); - lean_ctor_release(x_385, 1); - x_395 = x_385; +x_294 = lean_ctor_get(x_285, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_285, 1); +lean_inc(x_295); +if (lean_is_exclusive(x_285)) { + lean_ctor_release(x_285, 0); + lean_ctor_release(x_285, 1); + x_296 = x_285; } else { - lean_dec_ref(x_385); - x_395 = lean_box(0); + lean_dec_ref(x_285); + x_296 = lean_box(0); } -if (lean_is_scalar(x_395)) { - x_396 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_296)) { + x_297 = lean_alloc_ctor(1, 2, 0); } else { - x_396 = x_395; + x_297 = x_296; } -lean_ctor_set(x_396, 0, x_393); -lean_ctor_set(x_396, 1, x_394); -return x_396; +lean_ctor_set(x_297, 0, x_294); +lean_ctor_set(x_297, 1, x_295); +return x_297; } } else { -lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; -lean_dec(x_378); -lean_dec(x_374); -lean_dec(x_285); -lean_free_object(x_256); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_397 = lean_ctor_get(x_382, 0); -lean_inc(x_397); -x_398 = lean_ctor_get(x_382, 1); -lean_inc(x_398); -if (lean_is_exclusive(x_382)) { - lean_ctor_release(x_382, 0); - lean_ctor_release(x_382, 1); - x_399 = x_382; +lean_object* x_298; lean_object* x_299; +x_298 = lean_ctor_get(x_2, 0); +lean_inc(x_298); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + x_299 = x_2; } else { - lean_dec_ref(x_382); - x_399 = lean_box(0); + lean_dec_ref(x_2); + x_299 = lean_box(0); } -if (lean_is_scalar(x_399)) { - x_400 = lean_alloc_ctor(1, 2, 0); +if (lean_obj_tag(x_298) == 0) +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; uint8_t x_311; lean_object* x_312; +lean_dec(x_275); +lean_dec(x_8); +x_300 = lean_ctor_get(x_281, 0); +lean_inc(x_300); +x_301 = lean_ctor_get(x_281, 1); +lean_inc(x_301); +lean_dec_ref(x_281); +x_302 = lean_ctor_get(x_298, 0); +lean_inc(x_302); +lean_dec(x_298); +lean_inc(x_271); +if (lean_is_scalar(x_299)) { + x_303 = lean_alloc_ctor(1, 1, 0); } else { - x_400 = x_399; -} -lean_ctor_set(x_400, 0, x_397); -lean_ctor_set(x_400, 1, x_398); -return x_400; + x_303 = x_299; } +lean_ctor_set(x_303, 0, x_271); +x_304 = lean_box(0); +x_305 = lean_box(x_279); +x_306 = lean_box(x_279); +lean_inc(x_302); +x_307 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); +lean_closure_set(x_307, 0, x_302); +lean_closure_set(x_307, 1, x_303); +lean_closure_set(x_307, 2, x_305); +lean_closure_set(x_307, 3, x_306); +lean_closure_set(x_307, 4, x_304); +x_308 = lean_box(x_276); +x_309 = lean_box(x_279); +x_310 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__2___boxed), 16, 9); +lean_closure_set(x_310, 0, x_307); +lean_closure_set(x_310, 1, x_5); +lean_closure_set(x_310, 2, x_6); +lean_closure_set(x_310, 3, x_302); +lean_closure_set(x_310, 4, x_308); +lean_closure_set(x_310, 5, x_300); +lean_closure_set(x_310, 6, x_271); +lean_closure_set(x_310, 7, x_309); +lean_closure_set(x_310, 8, x_3); +x_311 = l_Lean_Elab_Modifiers_isPrivate(x_7); +x_312 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(x_310, x_311, x_10, x_11, x_12, x_13, x_14, x_15, x_301); +return x_312; } else { -lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; -lean_dec(x_378); -lean_dec(x_374); -lean_dec(x_285); -lean_free_object(x_256); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_401 = lean_ctor_get(x_379, 0); -lean_inc(x_401); -x_402 = lean_ctor_get(x_379, 1); -lean_inc(x_402); -if (lean_is_exclusive(x_379)) { - lean_ctor_release(x_379, 0); - lean_ctor_release(x_379, 1); - x_403 = x_379; -} else { - lean_dec_ref(x_379); - x_403 = lean_box(0); -} -if (lean_is_scalar(x_403)) { - x_404 = lean_alloc_ctor(1, 2, 0); -} else { - x_404 = x_403; -} -lean_ctor_set(x_404, 0, x_401); -lean_ctor_set(x_404, 1, x_402); -return x_404; -} -} -else -{ -lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; -lean_dec(x_364); -lean_dec(x_285); -lean_free_object(x_256); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_3); -x_405 = lean_ctor_get(x_373, 0); -lean_inc(x_405); -x_406 = lean_ctor_get(x_373, 1); -lean_inc(x_406); -if (lean_is_exclusive(x_373)) { - lean_ctor_release(x_373, 0); - lean_ctor_release(x_373, 1); - x_407 = x_373; -} else { - lean_dec_ref(x_373); - x_407 = lean_box(0); -} -if (lean_is_scalar(x_407)) { - x_408 = lean_alloc_ctor(1, 2, 0); -} else { - x_408 = x_407; -} -lean_ctor_set(x_408, 0, x_405); -lean_ctor_set(x_408, 1, x_406); -return x_408; -} -} -else -{ -lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; -lean_dec(x_364); -lean_dec(x_285); -lean_free_object(x_256); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); +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_object* x_319; +lean_dec(x_11); +lean_dec_ref(x_10); lean_dec(x_6); lean_dec_ref(x_5); +x_313 = lean_ctor_get(x_281, 0); +lean_inc(x_313); +x_314 = lean_ctor_get(x_281, 1); +lean_inc(x_314); +lean_dec_ref(x_281); +x_315 = lean_ctor_get(x_298, 0); +lean_inc(x_315); +if (lean_is_exclusive(x_298)) { + lean_ctor_release(x_298, 0); + x_316 = x_298; +} else { + lean_dec_ref(x_298); + x_316 = lean_box(0); +} +x_317 = l_Lean_mkAutoParamFnOfProjFn(x_8); +lean_inc(x_317); +if (lean_is_scalar(x_299)) { + x_318 = lean_alloc_ctor(1, 1, 0); +} else { + x_318 = x_299; +} +lean_ctor_set(x_318, 0, x_317); +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc(x_13); +lean_inc_ref(x_12); +x_319 = l_Lean_Elab_Term_declareTacticSyntax___redArg(x_315, x_318, x_12, x_13, x_14, x_15, x_314); +if (lean_obj_tag(x_319) == 0) +{ +lean_object* x_320; uint8_t x_321; lean_object* x_322; +x_320 = lean_ctor_get(x_319, 1); +lean_inc(x_320); +lean_dec_ref(x_319); +x_321 = 1; +x_322 = l_Lean_Meta_mkForallFVars(x_313, x_271, x_276, x_279, x_279, x_321, x_12, x_13, x_14, x_15, x_320); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +if (lean_obj_tag(x_322) == 0) +{ +lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; +x_323 = lean_ctor_get(x_322, 0); +lean_inc(x_323); +x_324 = lean_ctor_get(x_322, 1); +lean_inc(x_324); +if (lean_is_exclusive(x_322)) { + lean_ctor_release(x_322, 0); + lean_ctor_release(x_322, 1); + x_325 = x_322; +} else { + lean_dec_ref(x_322); + x_325 = lean_box(0); +} +x_326 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_326, 0, x_323); +x_327 = lean_box(0); +x_328 = l_Lean_Expr_const___override(x_317, x_327); +if (lean_is_scalar(x_316)) { + x_329 = lean_alloc_ctor(1, 1, 0); +} else { + x_329 = x_316; +} +lean_ctor_set(x_329, 0, x_328); +x_330 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_330, 0, x_329); +if (lean_is_scalar(x_275)) { + x_331 = lean_alloc_ctor(0, 2, 0); +} else { + x_331 = x_275; +} +lean_ctor_set(x_331, 0, x_3); +lean_ctor_set(x_331, 1, x_330); +x_332 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_332, 0, x_326); +lean_ctor_set(x_332, 1, x_331); +if (lean_is_scalar(x_325)) { + x_333 = lean_alloc_ctor(0, 2, 0); +} else { + x_333 = x_325; +} +lean_ctor_set(x_333, 0, x_332); +lean_ctor_set(x_333, 1, x_324); +return x_333; +} +else +{ +lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; +lean_dec(x_317); +lean_dec(x_316); +lean_dec(x_275); lean_dec_ref(x_3); -x_409 = lean_ctor_get(x_369, 0); -lean_inc(x_409); -x_410 = lean_ctor_get(x_369, 1); -lean_inc(x_410); -if (lean_is_exclusive(x_369)) { - lean_ctor_release(x_369, 0); - lean_ctor_release(x_369, 1); - x_411 = x_369; +x_334 = lean_ctor_get(x_322, 0); +lean_inc(x_334); +x_335 = lean_ctor_get(x_322, 1); +lean_inc(x_335); +if (lean_is_exclusive(x_322)) { + lean_ctor_release(x_322, 0); + lean_ctor_release(x_322, 1); + x_336 = x_322; } else { - lean_dec_ref(x_369); - x_411 = lean_box(0); + lean_dec_ref(x_322); + x_336 = lean_box(0); } -if (lean_is_scalar(x_411)) { - x_412 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_336)) { + x_337 = lean_alloc_ctor(1, 2, 0); } else { - x_412 = x_411; + x_337 = x_336; } -lean_ctor_set(x_412, 0, x_409); -lean_ctor_set(x_412, 1, x_410); -return x_412; -} -} -} -else -{ -lean_object* x_413; lean_object* x_414; uint8_t x_415; -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_5); -x_413 = lean_ctor_get(x_265, 0); -lean_inc(x_413); -x_414 = lean_ctor_get(x_265, 1); -lean_inc(x_414); -lean_dec_ref(x_265); -x_415 = !lean_is_exclusive(x_284); -if (x_415 == 0) -{ -lean_object* x_416; lean_object* x_417; lean_object* x_418; -x_416 = lean_ctor_get(x_284, 0); -x_417 = l_Lean_mkAutoParamFnOfProjFn(x_7); -lean_inc(x_417); -lean_ctor_set(x_2, 0, x_417); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -x_418 = l_Lean_Elab_Term_declareTacticSyntax___redArg(x_416, x_2, x_11, x_12, x_13, x_14, x_414); -if (lean_obj_tag(x_418) == 0) -{ -lean_object* x_419; uint8_t x_420; lean_object* x_421; -x_419 = lean_ctor_get(x_418, 1); -lean_inc(x_419); -lean_dec_ref(x_418); -x_420 = 1; -x_421 = l_Lean_Meta_mkForallFVars(x_413, x_254, x_260, x_263, x_263, x_420, x_11, x_12, x_13, x_14, x_419); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_421) == 0) -{ -uint8_t x_422; -x_422 = !lean_is_exclusive(x_421); -if (x_422 == 0) -{ -lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; -x_423 = lean_ctor_get(x_421, 0); -lean_ctor_set(x_1, 0, x_423); -x_424 = lean_box(0); -x_425 = l_Lean_Expr_const___override(x_417, x_424); -lean_ctor_set(x_284, 0, x_425); -x_426 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_426, 0, x_284); -lean_ctor_set(x_256, 1, x_426); -lean_ctor_set(x_256, 0, x_3); -x_427 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_427, 0, x_1); -lean_ctor_set(x_427, 1, x_256); -lean_ctor_set(x_421, 0, x_427); -return x_421; -} -else -{ -lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; -x_428 = lean_ctor_get(x_421, 0); -x_429 = lean_ctor_get(x_421, 1); -lean_inc(x_429); -lean_inc(x_428); -lean_dec(x_421); -lean_ctor_set(x_1, 0, x_428); -x_430 = lean_box(0); -x_431 = l_Lean_Expr_const___override(x_417, x_430); -lean_ctor_set(x_284, 0, x_431); -x_432 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_432, 0, x_284); -lean_ctor_set(x_256, 1, x_432); -lean_ctor_set(x_256, 0, x_3); -x_433 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_433, 0, x_1); -lean_ctor_set(x_433, 1, x_256); -x_434 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_434, 0, x_433); -lean_ctor_set(x_434, 1, x_429); -return x_434; +lean_ctor_set(x_337, 0, x_334); +lean_ctor_set(x_337, 1, x_335); +return x_337; } } else { -uint8_t x_435; -lean_dec(x_417); -lean_free_object(x_284); -lean_free_object(x_256); -lean_free_object(x_1); +lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; +lean_dec(x_317); +lean_dec(x_316); +lean_dec(x_313); +lean_dec(x_275); +lean_dec(x_271); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); lean_dec_ref(x_3); -x_435 = !lean_is_exclusive(x_421); -if (x_435 == 0) -{ -return x_421; -} -else -{ -lean_object* x_436; lean_object* x_437; lean_object* x_438; -x_436 = lean_ctor_get(x_421, 0); -x_437 = lean_ctor_get(x_421, 1); -lean_inc(x_437); -lean_inc(x_436); -lean_dec(x_421); -x_438 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_438, 0, x_436); -lean_ctor_set(x_438, 1, x_437); -return x_438; -} -} -} -else -{ -uint8_t x_439; -lean_dec(x_417); -lean_free_object(x_284); -lean_dec(x_413); -lean_free_object(x_256); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_439 = !lean_is_exclusive(x_418); -if (x_439 == 0) -{ -return x_418; -} -else -{ -lean_object* x_440; lean_object* x_441; lean_object* x_442; -x_440 = lean_ctor_get(x_418, 0); -x_441 = lean_ctor_get(x_418, 1); -lean_inc(x_441); -lean_inc(x_440); -lean_dec(x_418); -x_442 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_442, 0, x_440); -lean_ctor_set(x_442, 1, x_441); -return x_442; -} -} -} -else -{ -lean_object* x_443; lean_object* x_444; lean_object* x_445; -x_443 = lean_ctor_get(x_284, 0); -lean_inc(x_443); -lean_dec(x_284); -x_444 = l_Lean_mkAutoParamFnOfProjFn(x_7); -lean_inc(x_444); -lean_ctor_set(x_2, 0, x_444); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -x_445 = l_Lean_Elab_Term_declareTacticSyntax___redArg(x_443, x_2, x_11, x_12, x_13, x_14, x_414); -if (lean_obj_tag(x_445) == 0) -{ -lean_object* x_446; uint8_t x_447; lean_object* x_448; -x_446 = lean_ctor_get(x_445, 1); -lean_inc(x_446); -lean_dec_ref(x_445); -x_447 = 1; -x_448 = l_Lean_Meta_mkForallFVars(x_413, x_254, x_260, x_263, x_263, x_447, x_11, x_12, x_13, x_14, x_446); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_448) == 0) -{ -lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; -x_449 = lean_ctor_get(x_448, 0); -lean_inc(x_449); -x_450 = lean_ctor_get(x_448, 1); -lean_inc(x_450); -if (lean_is_exclusive(x_448)) { - lean_ctor_release(x_448, 0); - lean_ctor_release(x_448, 1); - x_451 = x_448; +x_338 = lean_ctor_get(x_319, 0); +lean_inc(x_338); +x_339 = lean_ctor_get(x_319, 1); +lean_inc(x_339); +if (lean_is_exclusive(x_319)) { + lean_ctor_release(x_319, 0); + lean_ctor_release(x_319, 1); + x_340 = x_319; } else { - lean_dec_ref(x_448); - x_451 = lean_box(0); + lean_dec_ref(x_319); + x_340 = lean_box(0); } -lean_ctor_set(x_1, 0, x_449); -x_452 = lean_box(0); -x_453 = l_Lean_Expr_const___override(x_444, x_452); -x_454 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_454, 0, x_453); -x_455 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_455, 0, x_454); -lean_ctor_set(x_256, 1, x_455); -lean_ctor_set(x_256, 0, x_3); -x_456 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_456, 0, x_1); -lean_ctor_set(x_456, 1, x_256); -if (lean_is_scalar(x_451)) { - x_457 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_340)) { + x_341 = lean_alloc_ctor(1, 2, 0); } else { - x_457 = x_451; + x_341 = x_340; } -lean_ctor_set(x_457, 0, x_456); -lean_ctor_set(x_457, 1, x_450); -return x_457; -} -else -{ -lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; -lean_dec(x_444); -lean_free_object(x_256); -lean_free_object(x_1); -lean_dec_ref(x_3); -x_458 = lean_ctor_get(x_448, 0); -lean_inc(x_458); -x_459 = lean_ctor_get(x_448, 1); -lean_inc(x_459); -if (lean_is_exclusive(x_448)) { - lean_ctor_release(x_448, 0); - lean_ctor_release(x_448, 1); - x_460 = x_448; -} else { - lean_dec_ref(x_448); - x_460 = lean_box(0); -} -if (lean_is_scalar(x_460)) { - x_461 = lean_alloc_ctor(1, 2, 0); -} else { - x_461 = x_460; -} -lean_ctor_set(x_461, 0, x_458); -lean_ctor_set(x_461, 1, x_459); -return x_461; -} -} -else -{ -lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; -lean_dec(x_444); -lean_dec(x_413); -lean_free_object(x_256); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_462 = lean_ctor_get(x_445, 0); -lean_inc(x_462); -x_463 = lean_ctor_get(x_445, 1); -lean_inc(x_463); -if (lean_is_exclusive(x_445)) { - lean_ctor_release(x_445, 0); - lean_ctor_release(x_445, 1); - x_464 = x_445; -} else { - lean_dec_ref(x_445); - x_464 = lean_box(0); -} -if (lean_is_scalar(x_464)) { - x_465 = lean_alloc_ctor(1, 2, 0); -} else { - x_465 = x_464; -} -lean_ctor_set(x_465, 0, x_462); -lean_ctor_set(x_465, 1, x_463); -return x_465; +lean_ctor_set(x_341, 0, x_338); +lean_ctor_set(x_341, 1, x_339); +return x_341; } } } } else { -lean_object* x_466; -x_466 = lean_ctor_get(x_2, 0); -lean_inc(x_466); -lean_dec(x_2); -if (lean_obj_tag(x_466) == 0) -{ -lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; -lean_dec(x_7); -x_467 = lean_ctor_get(x_265, 0); -lean_inc(x_467); -x_468 = lean_ctor_get(x_265, 1); -lean_inc(x_468); -lean_dec_ref(x_265); -x_469 = lean_ctor_get(x_466, 0); -lean_inc(x_469); -if (lean_is_exclusive(x_466)) { - lean_ctor_release(x_466, 0); - x_470 = x_466; -} else { - lean_dec_ref(x_466); - x_470 = lean_box(0); -} -lean_inc(x_254); -x_471 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_471, 0, x_254); -x_472 = lean_box(0); -x_473 = lean_box(x_263); -x_474 = lean_box(x_263); -lean_inc(x_469); -x_475 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_475, 0, x_469); -lean_closure_set(x_475, 1, x_471); -lean_closure_set(x_475, 2, x_473); -lean_closure_set(x_475, 3, x_474); -lean_closure_set(x_475, 4, x_472); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_476 = l_Lean_Elab_Term_withoutAutoBoundImplicit___redArg(x_475, x_9, x_10, x_11, x_12, x_13, x_14, x_468); -if (lean_obj_tag(x_476) == 0) -{ -lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; -x_477 = lean_ctor_get(x_476, 0); -lean_inc(x_477); -x_478 = lean_ctor_get(x_476, 1); -lean_inc(x_478); -lean_dec_ref(x_476); -x_479 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_solveParentMVars), 9, 1); -lean_closure_set(x_479, 0, x_477); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_480 = l_Lean_Elab_Command_Structure_runStructElabM___redArg(x_479, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_478); -if (lean_obj_tag(x_480) == 0) -{ -lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; -x_481 = lean_ctor_get(x_480, 0); -lean_inc(x_481); -x_482 = lean_ctor_get(x_480, 1); -lean_inc(x_482); -lean_dec_ref(x_480); -lean_inc(x_481); -x_483 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferDefaultValue___redArg(x_6, x_481, x_469, x_10, x_11, x_12, x_482); -x_484 = lean_ctor_get(x_483, 1); -lean_inc(x_484); -if (lean_is_exclusive(x_483)) { - lean_ctor_release(x_483, 0); - lean_ctor_release(x_483, 1); - x_485 = x_483; -} else { - lean_dec_ref(x_483); - x_485 = lean_box(0); -} -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -x_486 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_260, x_9, x_10, x_11, x_12, x_13, x_14, x_484); -if (lean_obj_tag(x_486) == 0) -{ -lean_object* x_487; uint8_t x_488; lean_object* x_489; -x_487 = lean_ctor_get(x_486, 1); -lean_inc(x_487); -lean_dec_ref(x_486); -x_488 = 1; -lean_inc(x_467); -x_489 = l_Lean_Meta_mkForallFVars(x_467, x_254, x_260, x_263, x_263, x_488, x_11, x_12, x_13, x_14, x_487); -if (lean_obj_tag(x_489) == 0) -{ -lean_object* x_490; lean_object* x_491; lean_object* x_492; -x_490 = lean_ctor_get(x_489, 0); -lean_inc(x_490); -x_491 = lean_ctor_get(x_489, 1); -lean_inc(x_491); -lean_dec_ref(x_489); -x_492 = l_Lean_Meta_mkLambdaFVars(x_467, x_481, x_260, x_263, x_260, x_263, x_488, x_11, x_12, x_13, x_14, x_491); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_492) == 0) -{ -lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; -x_493 = lean_ctor_get(x_492, 0); -lean_inc(x_493); -x_494 = lean_ctor_get(x_492, 1); -lean_inc(x_494); -if (lean_is_exclusive(x_492)) { - lean_ctor_release(x_492, 0); - lean_ctor_release(x_492, 1); - x_495 = x_492; -} else { - lean_dec_ref(x_492); - x_495 = lean_box(0); -} -lean_ctor_set(x_1, 0, x_490); -if (lean_is_scalar(x_470)) { - x_496 = lean_alloc_ctor(0, 1, 0); -} else { - x_496 = x_470; -} -lean_ctor_set(x_496, 0, x_493); -x_497 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_497, 0, x_496); -if (lean_is_scalar(x_485)) { - x_498 = lean_alloc_ctor(0, 2, 0); -} else { - x_498 = x_485; -} -lean_ctor_set(x_498, 0, x_3); -lean_ctor_set(x_498, 1, x_497); -lean_ctor_set(x_256, 1, x_498); -lean_ctor_set(x_256, 0, x_1); -if (lean_is_scalar(x_495)) { - x_499 = lean_alloc_ctor(0, 2, 0); -} else { - x_499 = x_495; -} -lean_ctor_set(x_499, 0, x_256); -lean_ctor_set(x_499, 1, x_494); -return x_499; -} -else -{ -lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; -lean_dec(x_490); -lean_dec(x_485); -lean_dec(x_470); -lean_free_object(x_256); -lean_free_object(x_1); -lean_dec_ref(x_3); -x_500 = lean_ctor_get(x_492, 0); -lean_inc(x_500); -x_501 = lean_ctor_get(x_492, 1); -lean_inc(x_501); -if (lean_is_exclusive(x_492)) { - lean_ctor_release(x_492, 0); - lean_ctor_release(x_492, 1); - x_502 = x_492; -} else { - lean_dec_ref(x_492); - x_502 = lean_box(0); -} -if (lean_is_scalar(x_502)) { - x_503 = lean_alloc_ctor(1, 2, 0); -} else { - x_503 = x_502; -} -lean_ctor_set(x_503, 0, x_500); -lean_ctor_set(x_503, 1, x_501); -return x_503; -} -} -else -{ -lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; -lean_dec(x_485); -lean_dec(x_481); -lean_dec(x_470); -lean_dec(x_467); -lean_free_object(x_256); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_504 = lean_ctor_get(x_489, 0); -lean_inc(x_504); -x_505 = lean_ctor_get(x_489, 1); -lean_inc(x_505); -if (lean_is_exclusive(x_489)) { - lean_ctor_release(x_489, 0); - lean_ctor_release(x_489, 1); - x_506 = x_489; -} else { - lean_dec_ref(x_489); - x_506 = lean_box(0); -} -if (lean_is_scalar(x_506)) { - x_507 = lean_alloc_ctor(1, 2, 0); -} else { - x_507 = x_506; -} -lean_ctor_set(x_507, 0, x_504); -lean_ctor_set(x_507, 1, x_505); -return x_507; -} -} -else -{ -lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; -lean_dec(x_485); -lean_dec(x_481); -lean_dec(x_470); -lean_dec(x_467); -lean_free_object(x_256); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_508 = lean_ctor_get(x_486, 0); -lean_inc(x_508); -x_509 = lean_ctor_get(x_486, 1); -lean_inc(x_509); -if (lean_is_exclusive(x_486)) { - lean_ctor_release(x_486, 0); - lean_ctor_release(x_486, 1); - x_510 = x_486; -} else { - lean_dec_ref(x_486); - x_510 = lean_box(0); -} -if (lean_is_scalar(x_510)) { - x_511 = lean_alloc_ctor(1, 2, 0); -} else { - x_511 = x_510; -} -lean_ctor_set(x_511, 0, x_508); -lean_ctor_set(x_511, 1, x_509); -return x_511; -} -} -else -{ -lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; -lean_dec(x_470); -lean_dec(x_469); -lean_dec(x_467); -lean_free_object(x_256); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_3); -x_512 = lean_ctor_get(x_480, 0); -lean_inc(x_512); -x_513 = lean_ctor_get(x_480, 1); -lean_inc(x_513); -if (lean_is_exclusive(x_480)) { - lean_ctor_release(x_480, 0); - lean_ctor_release(x_480, 1); - x_514 = x_480; -} else { - lean_dec_ref(x_480); - x_514 = lean_box(0); -} -if (lean_is_scalar(x_514)) { - x_515 = lean_alloc_ctor(1, 2, 0); -} else { - x_515 = x_514; -} -lean_ctor_set(x_515, 0, x_512); -lean_ctor_set(x_515, 1, x_513); -return x_515; -} -} -else -{ -lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; -lean_dec(x_470); -lean_dec(x_469); -lean_dec(x_467); -lean_free_object(x_256); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec_ref(x_3); -x_516 = lean_ctor_get(x_476, 0); -lean_inc(x_516); -x_517 = lean_ctor_get(x_476, 1); -lean_inc(x_517); -if (lean_is_exclusive(x_476)) { - lean_ctor_release(x_476, 0); - lean_ctor_release(x_476, 1); - x_518 = x_476; -} else { - lean_dec_ref(x_476); - x_518 = lean_box(0); -} -if (lean_is_scalar(x_518)) { - x_519 = lean_alloc_ctor(1, 2, 0); -} else { - x_519 = x_518; -} -lean_ctor_set(x_519, 0, x_516); -lean_ctor_set(x_519, 1, x_517); -return x_519; -} -} -else -{ -lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_5); -x_520 = lean_ctor_get(x_265, 0); -lean_inc(x_520); -x_521 = lean_ctor_get(x_265, 1); -lean_inc(x_521); -lean_dec_ref(x_265); -x_522 = lean_ctor_get(x_466, 0); -lean_inc(x_522); -if (lean_is_exclusive(x_466)) { - lean_ctor_release(x_466, 0); - x_523 = x_466; -} else { - lean_dec_ref(x_466); - x_523 = lean_box(0); -} -x_524 = l_Lean_mkAutoParamFnOfProjFn(x_7); -lean_inc(x_524); -x_525 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_525, 0, x_524); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -x_526 = l_Lean_Elab_Term_declareTacticSyntax___redArg(x_522, x_525, x_11, x_12, x_13, x_14, x_521); -if (lean_obj_tag(x_526) == 0) -{ -lean_object* x_527; uint8_t x_528; lean_object* x_529; -x_527 = lean_ctor_get(x_526, 1); -lean_inc(x_527); -lean_dec_ref(x_526); -x_528 = 1; -x_529 = l_Lean_Meta_mkForallFVars(x_520, x_254, x_260, x_263, x_263, x_528, x_11, x_12, x_13, x_14, x_527); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_529) == 0) -{ -lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; -x_530 = lean_ctor_get(x_529, 0); -lean_inc(x_530); -x_531 = lean_ctor_get(x_529, 1); -lean_inc(x_531); -if (lean_is_exclusive(x_529)) { - lean_ctor_release(x_529, 0); - lean_ctor_release(x_529, 1); - x_532 = x_529; -} else { - lean_dec_ref(x_529); - x_532 = lean_box(0); -} -lean_ctor_set(x_1, 0, x_530); -x_533 = lean_box(0); -x_534 = l_Lean_Expr_const___override(x_524, x_533); -if (lean_is_scalar(x_523)) { - x_535 = lean_alloc_ctor(1, 1, 0); -} else { - x_535 = x_523; -} -lean_ctor_set(x_535, 0, x_534); -x_536 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_536, 0, x_535); -lean_ctor_set(x_256, 1, x_536); -lean_ctor_set(x_256, 0, x_3); -x_537 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_537, 0, x_1); -lean_ctor_set(x_537, 1, x_256); -if (lean_is_scalar(x_532)) { - x_538 = lean_alloc_ctor(0, 2, 0); -} else { - x_538 = x_532; -} -lean_ctor_set(x_538, 0, x_537); -lean_ctor_set(x_538, 1, x_531); -return x_538; -} -else -{ -lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; -lean_dec(x_524); -lean_dec(x_523); -lean_free_object(x_256); -lean_free_object(x_1); -lean_dec_ref(x_3); -x_539 = lean_ctor_get(x_529, 0); -lean_inc(x_539); -x_540 = lean_ctor_get(x_529, 1); -lean_inc(x_540); -if (lean_is_exclusive(x_529)) { - lean_ctor_release(x_529, 0); - lean_ctor_release(x_529, 1); - x_541 = x_529; -} else { - lean_dec_ref(x_529); - x_541 = lean_box(0); -} -if (lean_is_scalar(x_541)) { - x_542 = lean_alloc_ctor(1, 2, 0); -} else { - x_542 = x_541; -} -lean_ctor_set(x_542, 0, x_539); -lean_ctor_set(x_542, 1, x_540); -return x_542; -} -} -else -{ -lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; -lean_dec(x_524); -lean_dec(x_523); -lean_dec(x_520); -lean_free_object(x_256); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_543 = lean_ctor_get(x_526, 0); -lean_inc(x_543); -x_544 = lean_ctor_get(x_526, 1); -lean_inc(x_544); -if (lean_is_exclusive(x_526)) { - lean_ctor_release(x_526, 0); - lean_ctor_release(x_526, 1); - x_545 = x_526; -} else { - lean_dec_ref(x_526); - x_545 = lean_box(0); -} -if (lean_is_scalar(x_545)) { - x_546 = lean_alloc_ctor(1, 2, 0); -} else { - x_546 = x_545; -} -lean_ctor_set(x_546, 0, x_543); -lean_ctor_set(x_546, 1, x_544); -return x_546; -} -} -} -} -} -else -{ -uint8_t x_547; -lean_free_object(x_256); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_7); +lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; +lean_dec(x_275); +lean_dec(x_271); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_8); lean_dec(x_6); lean_dec_ref(x_5); lean_dec_ref(x_3); lean_dec(x_2); -x_547 = !lean_is_exclusive(x_265); -if (x_547 == 0) -{ -return x_265; +x_342 = lean_ctor_get(x_281, 0); +lean_inc(x_342); +x_343 = lean_ctor_get(x_281, 1); +lean_inc(x_343); +if (lean_is_exclusive(x_281)) { + lean_ctor_release(x_281, 0); + lean_ctor_release(x_281, 1); + x_344 = x_281; +} else { + lean_dec_ref(x_281); + x_344 = lean_box(0); +} +if (lean_is_scalar(x_344)) { + x_345 = lean_alloc_ctor(1, 2, 0); +} else { + x_345 = x_344; +} +lean_ctor_set(x_345, 0, x_342); +lean_ctor_set(x_345, 1, x_343); +return x_345; +} } else { -lean_object* x_548; lean_object* x_549; lean_object* x_550; -x_548 = lean_ctor_get(x_265, 0); -x_549 = lean_ctor_get(x_265, 1); -lean_inc(x_549); -lean_inc(x_548); +lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; +lean_dec(x_275); +lean_dec(x_271); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec(x_2); +x_346 = lean_ctor_get(x_277, 0); +lean_inc(x_346); +x_347 = lean_ctor_get(x_277, 1); +lean_inc(x_347); +if (lean_is_exclusive(x_277)) { + lean_ctor_release(x_277, 0); + lean_ctor_release(x_277, 1); + x_348 = x_277; +} else { + lean_dec_ref(x_277); + x_348 = lean_box(0); +} +if (lean_is_scalar(x_348)) { + x_349 = lean_alloc_ctor(1, 2, 0); +} else { + x_349 = x_348; +} +lean_ctor_set(x_349, 0, x_346); +lean_ctor_set(x_349, 1, x_347); +return x_349; +} +} +else +{ +lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_dec(x_265); -x_550 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_550, 0, x_548); -lean_ctor_set(x_550, 1, x_549); -return x_550; -} -} -} -else -{ -uint8_t x_551; -lean_free_object(x_256); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); lean_dec_ref(x_9); -lean_dec(x_7); +lean_dec(x_8); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); lean_dec(x_2); -x_551 = !lean_is_exclusive(x_261); -if (x_551 == 0) -{ -return x_261; +x_350 = lean_ctor_get(x_270, 0); +lean_inc(x_350); +x_351 = lean_ctor_get(x_270, 1); +lean_inc(x_351); +if (lean_is_exclusive(x_270)) { + lean_ctor_release(x_270, 0); + lean_ctor_release(x_270, 1); + x_352 = x_270; +} else { + lean_dec_ref(x_270); + x_352 = lean_box(0); } -else -{ -lean_object* x_552; lean_object* x_553; lean_object* x_554; -x_552 = lean_ctor_get(x_261, 0); -x_553 = lean_ctor_get(x_261, 1); -lean_inc(x_553); -lean_inc(x_552); -lean_dec(x_261); -x_554 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_554, 0, x_552); -lean_ctor_set(x_554, 1, x_553); -return x_554; +if (lean_is_scalar(x_352)) { + x_353 = lean_alloc_ctor(1, 2, 0); +} else { + x_353 = x_352; } +lean_ctor_set(x_353, 0, x_350); +lean_ctor_set(x_353, 1, x_351); +return x_353; } } else { -lean_object* x_555; uint8_t x_556; lean_object* x_557; -x_555 = lean_ctor_get(x_256, 1); -lean_inc(x_555); -lean_dec(x_256); -x_556 = 0; -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_557 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_556, x_9, x_10, x_11, x_12, x_13, x_14, x_555); -if (lean_obj_tag(x_557) == 0) -{ -lean_object* x_558; uint8_t x_559; lean_object* x_560; lean_object* x_561; -x_558 = lean_ctor_get(x_557, 1); -lean_inc(x_558); -lean_dec_ref(x_557); -x_559 = 1; -x_560 = l_Lean_Syntax_getTailPos_x3f(x_4, x_559); -lean_dec(x_4); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc_ref(x_9); -x_561 = l_Lean_Elab_Term_addAutoBoundImplicits(x_8, x_560, x_9, x_10, x_11, x_12, x_13, x_14, x_558); -if (lean_obj_tag(x_561) == 0) -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_562; lean_object* x_563; uint8_t x_564; lean_object* x_565; -lean_dec(x_10); +lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; +lean_dec(x_265); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); lean_dec_ref(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -x_562 = lean_ctor_get(x_561, 0); -lean_inc(x_562); -x_563 = lean_ctor_get(x_561, 1); -lean_inc(x_563); -lean_dec_ref(x_561); -x_564 = 1; -x_565 = l_Lean_Meta_mkForallFVars(x_562, x_254, x_556, x_559, x_559, x_564, x_11, x_12, x_13, x_14, x_563); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_565) == 0) -{ -lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; -x_566 = lean_ctor_get(x_565, 0); -lean_inc(x_566); -x_567 = lean_ctor_get(x_565, 1); -lean_inc(x_567); -if (lean_is_exclusive(x_565)) { - lean_ctor_release(x_565, 0); - lean_ctor_release(x_565, 1); - x_568 = x_565; -} else { - lean_dec_ref(x_565); - x_568 = lean_box(0); -} -lean_ctor_set(x_1, 0, x_566); -x_569 = lean_box(0); -x_570 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_570, 0, x_3); -lean_ctor_set(x_570, 1, x_569); -x_571 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_571, 0, x_1); -lean_ctor_set(x_571, 1, x_570); -if (lean_is_scalar(x_568)) { - x_572 = lean_alloc_ctor(0, 2, 0); -} else { - x_572 = x_568; -} -lean_ctor_set(x_572, 0, x_571); -lean_ctor_set(x_572, 1, x_567); -return x_572; -} -else -{ -lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; -lean_free_object(x_1); -lean_dec_ref(x_3); -x_573 = lean_ctor_get(x_565, 0); -lean_inc(x_573); -x_574 = lean_ctor_get(x_565, 1); -lean_inc(x_574); -if (lean_is_exclusive(x_565)) { - lean_ctor_release(x_565, 0); - lean_ctor_release(x_565, 1); - x_575 = x_565; -} else { - lean_dec_ref(x_565); - x_575 = lean_box(0); -} -if (lean_is_scalar(x_575)) { - x_576 = lean_alloc_ctor(1, 2, 0); -} else { - x_576 = x_575; -} -lean_ctor_set(x_576, 0, x_573); -lean_ctor_set(x_576, 1, x_574); -return x_576; -} -} -else -{ -lean_object* x_577; lean_object* x_578; -x_577 = lean_ctor_get(x_2, 0); -lean_inc(x_577); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - x_578 = x_2; -} else { - lean_dec_ref(x_2); - x_578 = lean_box(0); -} -if (lean_obj_tag(x_577) == 0) -{ -lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; -lean_dec(x_7); -x_579 = lean_ctor_get(x_561, 0); -lean_inc(x_579); -x_580 = lean_ctor_get(x_561, 1); -lean_inc(x_580); -lean_dec_ref(x_561); -x_581 = lean_ctor_get(x_577, 0); -lean_inc(x_581); -if (lean_is_exclusive(x_577)) { - lean_ctor_release(x_577, 0); - x_582 = x_577; -} else { - lean_dec_ref(x_577); - x_582 = lean_box(0); -} -lean_inc(x_254); -if (lean_is_scalar(x_578)) { - x_583 = lean_alloc_ctor(1, 1, 0); -} else { - x_583 = x_578; -} -lean_ctor_set(x_583, 0, x_254); -x_584 = lean_box(0); -x_585 = lean_box(x_559); -x_586 = lean_box(x_559); -lean_inc(x_581); -x_587 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_587, 0, x_581); -lean_closure_set(x_587, 1, x_583); -lean_closure_set(x_587, 2, x_585); -lean_closure_set(x_587, 3, x_586); -lean_closure_set(x_587, 4, x_584); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_588 = l_Lean_Elab_Term_withoutAutoBoundImplicit___redArg(x_587, x_9, x_10, x_11, x_12, x_13, x_14, x_580); -if (lean_obj_tag(x_588) == 0) -{ -lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; -x_589 = lean_ctor_get(x_588, 0); -lean_inc(x_589); -x_590 = lean_ctor_get(x_588, 1); -lean_inc(x_590); -lean_dec_ref(x_588); -x_591 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_solveParentMVars), 9, 1); -lean_closure_set(x_591, 0, x_589); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_592 = l_Lean_Elab_Command_Structure_runStructElabM___redArg(x_591, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_590); -if (lean_obj_tag(x_592) == 0) -{ -lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; -x_593 = lean_ctor_get(x_592, 0); -lean_inc(x_593); -x_594 = lean_ctor_get(x_592, 1); -lean_inc(x_594); -lean_dec_ref(x_592); -lean_inc(x_593); -x_595 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferDefaultValue___redArg(x_6, x_593, x_581, x_10, x_11, x_12, x_594); -x_596 = lean_ctor_get(x_595, 1); -lean_inc(x_596); -if (lean_is_exclusive(x_595)) { - lean_ctor_release(x_595, 0); - lean_ctor_release(x_595, 1); - x_597 = x_595; -} else { - lean_dec_ref(x_595); - x_597 = lean_box(0); -} -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -x_598 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_556, x_9, x_10, x_11, x_12, x_13, x_14, x_596); -if (lean_obj_tag(x_598) == 0) -{ -lean_object* x_599; uint8_t x_600; lean_object* x_601; -x_599 = lean_ctor_get(x_598, 1); -lean_inc(x_599); -lean_dec_ref(x_598); -x_600 = 1; -lean_inc(x_579); -x_601 = l_Lean_Meta_mkForallFVars(x_579, x_254, x_556, x_559, x_559, x_600, x_11, x_12, x_13, x_14, x_599); -if (lean_obj_tag(x_601) == 0) -{ -lean_object* x_602; lean_object* x_603; lean_object* x_604; -x_602 = lean_ctor_get(x_601, 0); -lean_inc(x_602); -x_603 = lean_ctor_get(x_601, 1); -lean_inc(x_603); -lean_dec_ref(x_601); -x_604 = l_Lean_Meta_mkLambdaFVars(x_579, x_593, x_556, x_559, x_556, x_559, x_600, x_11, x_12, x_13, x_14, x_603); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_604) == 0) -{ -lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; -x_605 = lean_ctor_get(x_604, 0); -lean_inc(x_605); -x_606 = lean_ctor_get(x_604, 1); -lean_inc(x_606); -if (lean_is_exclusive(x_604)) { - lean_ctor_release(x_604, 0); - lean_ctor_release(x_604, 1); - x_607 = x_604; -} else { - lean_dec_ref(x_604); - x_607 = lean_box(0); -} -lean_ctor_set(x_1, 0, x_602); -if (lean_is_scalar(x_582)) { - x_608 = lean_alloc_ctor(0, 1, 0); -} else { - x_608 = x_582; -} -lean_ctor_set(x_608, 0, x_605); -x_609 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_609, 0, x_608); -if (lean_is_scalar(x_597)) { - x_610 = lean_alloc_ctor(0, 2, 0); -} else { - x_610 = x_597; -} -lean_ctor_set(x_610, 0, x_3); -lean_ctor_set(x_610, 1, x_609); -x_611 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_611, 0, x_1); -lean_ctor_set(x_611, 1, x_610); -if (lean_is_scalar(x_607)) { - x_612 = lean_alloc_ctor(0, 2, 0); -} else { - x_612 = x_607; -} -lean_ctor_set(x_612, 0, x_611); -lean_ctor_set(x_612, 1, x_606); -return x_612; -} -else -{ -lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; -lean_dec(x_602); -lean_dec(x_597); -lean_dec(x_582); -lean_free_object(x_1); -lean_dec_ref(x_3); -x_613 = lean_ctor_get(x_604, 0); -lean_inc(x_613); -x_614 = lean_ctor_get(x_604, 1); -lean_inc(x_614); -if (lean_is_exclusive(x_604)) { - lean_ctor_release(x_604, 0); - lean_ctor_release(x_604, 1); - x_615 = x_604; -} else { - lean_dec_ref(x_604); - x_615 = lean_box(0); -} -if (lean_is_scalar(x_615)) { - x_616 = lean_alloc_ctor(1, 2, 0); -} else { - x_616 = x_615; -} -lean_ctor_set(x_616, 0, x_613); -lean_ctor_set(x_616, 1, x_614); -return x_616; -} -} -else -{ -lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; -lean_dec(x_597); -lean_dec(x_593); -lean_dec(x_582); -lean_dec(x_579); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_617 = lean_ctor_get(x_601, 0); -lean_inc(x_617); -x_618 = lean_ctor_get(x_601, 1); -lean_inc(x_618); -if (lean_is_exclusive(x_601)) { - lean_ctor_release(x_601, 0); - lean_ctor_release(x_601, 1); - x_619 = x_601; -} else { - lean_dec_ref(x_601); - x_619 = lean_box(0); -} -if (lean_is_scalar(x_619)) { - x_620 = lean_alloc_ctor(1, 2, 0); -} else { - x_620 = x_619; -} -lean_ctor_set(x_620, 0, x_617); -lean_ctor_set(x_620, 1, x_618); -return x_620; -} -} -else -{ -lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; -lean_dec(x_597); -lean_dec(x_593); -lean_dec(x_582); -lean_dec(x_579); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_621 = lean_ctor_get(x_598, 0); -lean_inc(x_621); -x_622 = lean_ctor_get(x_598, 1); -lean_inc(x_622); -if (lean_is_exclusive(x_598)) { - lean_ctor_release(x_598, 0); - lean_ctor_release(x_598, 1); - x_623 = x_598; -} else { - lean_dec_ref(x_598); - x_623 = lean_box(0); -} -if (lean_is_scalar(x_623)) { - x_624 = lean_alloc_ctor(1, 2, 0); -} else { - x_624 = x_623; -} -lean_ctor_set(x_624, 0, x_621); -lean_ctor_set(x_624, 1, x_622); -return x_624; -} -} -else -{ -lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; -lean_dec(x_582); -lean_dec(x_581); -lean_dec(x_579); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_3); -x_625 = lean_ctor_get(x_592, 0); -lean_inc(x_625); -x_626 = lean_ctor_get(x_592, 1); -lean_inc(x_626); -if (lean_is_exclusive(x_592)) { - lean_ctor_release(x_592, 0); - lean_ctor_release(x_592, 1); - x_627 = x_592; -} else { - lean_dec_ref(x_592); - x_627 = lean_box(0); -} -if (lean_is_scalar(x_627)) { - x_628 = lean_alloc_ctor(1, 2, 0); -} else { - x_628 = x_627; -} -lean_ctor_set(x_628, 0, x_625); -lean_ctor_set(x_628, 1, x_626); -return x_628; -} -} -else -{ -lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; -lean_dec(x_582); -lean_dec(x_581); -lean_dec(x_579); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec_ref(x_3); -x_629 = lean_ctor_get(x_588, 0); -lean_inc(x_629); -x_630 = lean_ctor_get(x_588, 1); -lean_inc(x_630); -if (lean_is_exclusive(x_588)) { - lean_ctor_release(x_588, 0); - lean_ctor_release(x_588, 1); - x_631 = x_588; -} else { - lean_dec_ref(x_588); - x_631 = lean_box(0); -} -if (lean_is_scalar(x_631)) { - x_632 = lean_alloc_ctor(1, 2, 0); -} else { - x_632 = x_631; -} -lean_ctor_set(x_632, 0, x_629); -lean_ctor_set(x_632, 1, x_630); -return x_632; -} -} -else -{ -lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_5); -x_633 = lean_ctor_get(x_561, 0); -lean_inc(x_633); -x_634 = lean_ctor_get(x_561, 1); -lean_inc(x_634); -lean_dec_ref(x_561); -x_635 = lean_ctor_get(x_577, 0); -lean_inc(x_635); -if (lean_is_exclusive(x_577)) { - lean_ctor_release(x_577, 0); - x_636 = x_577; -} else { - lean_dec_ref(x_577); - x_636 = lean_box(0); -} -x_637 = l_Lean_mkAutoParamFnOfProjFn(x_7); -lean_inc(x_637); -if (lean_is_scalar(x_578)) { - x_638 = lean_alloc_ctor(1, 1, 0); -} else { - x_638 = x_578; -} -lean_ctor_set(x_638, 0, x_637); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -x_639 = l_Lean_Elab_Term_declareTacticSyntax___redArg(x_635, x_638, x_11, x_12, x_13, x_14, x_634); -if (lean_obj_tag(x_639) == 0) -{ -lean_object* x_640; uint8_t x_641; lean_object* x_642; -x_640 = lean_ctor_get(x_639, 1); -lean_inc(x_640); -lean_dec_ref(x_639); -x_641 = 1; -x_642 = l_Lean_Meta_mkForallFVars(x_633, x_254, x_556, x_559, x_559, x_641, x_11, x_12, x_13, x_14, x_640); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_642) == 0) -{ -lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; -x_643 = lean_ctor_get(x_642, 0); -lean_inc(x_643); -x_644 = lean_ctor_get(x_642, 1); -lean_inc(x_644); -if (lean_is_exclusive(x_642)) { - lean_ctor_release(x_642, 0); - lean_ctor_release(x_642, 1); - x_645 = x_642; -} else { - lean_dec_ref(x_642); - x_645 = lean_box(0); -} -lean_ctor_set(x_1, 0, x_643); -x_646 = lean_box(0); -x_647 = l_Lean_Expr_const___override(x_637, x_646); -if (lean_is_scalar(x_636)) { - x_648 = lean_alloc_ctor(1, 1, 0); -} else { - x_648 = x_636; -} -lean_ctor_set(x_648, 0, x_647); -x_649 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_649, 0, x_648); -x_650 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_650, 0, x_3); -lean_ctor_set(x_650, 1, x_649); -x_651 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_651, 0, x_1); -lean_ctor_set(x_651, 1, x_650); -if (lean_is_scalar(x_645)) { - x_652 = lean_alloc_ctor(0, 2, 0); -} else { - x_652 = x_645; -} -lean_ctor_set(x_652, 0, x_651); -lean_ctor_set(x_652, 1, x_644); -return x_652; -} -else -{ -lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; -lean_dec(x_637); -lean_dec(x_636); -lean_free_object(x_1); -lean_dec_ref(x_3); -x_653 = lean_ctor_get(x_642, 0); -lean_inc(x_653); -x_654 = lean_ctor_get(x_642, 1); -lean_inc(x_654); -if (lean_is_exclusive(x_642)) { - lean_ctor_release(x_642, 0); - lean_ctor_release(x_642, 1); - x_655 = x_642; -} else { - lean_dec_ref(x_642); - x_655 = lean_box(0); -} -if (lean_is_scalar(x_655)) { - x_656 = lean_alloc_ctor(1, 2, 0); -} else { - x_656 = x_655; -} -lean_ctor_set(x_656, 0, x_653); -lean_ctor_set(x_656, 1, x_654); -return x_656; -} -} -else -{ -lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; -lean_dec(x_637); -lean_dec(x_636); -lean_dec(x_633); -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_657 = lean_ctor_get(x_639, 0); -lean_inc(x_657); -x_658 = lean_ctor_get(x_639, 1); -lean_inc(x_658); -if (lean_is_exclusive(x_639)) { - lean_ctor_release(x_639, 0); - lean_ctor_release(x_639, 1); - x_659 = x_639; -} else { - lean_dec_ref(x_639); - x_659 = lean_box(0); -} -if (lean_is_scalar(x_659)) { - x_660 = lean_alloc_ctor(1, 2, 0); -} else { - x_660 = x_659; -} -lean_ctor_set(x_660, 0, x_657); -lean_ctor_set(x_660, 1, x_658); -return x_660; -} -} -} -} -else -{ -lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec_ref(x_3); -lean_dec(x_2); -x_661 = lean_ctor_get(x_561, 0); -lean_inc(x_661); -x_662 = lean_ctor_get(x_561, 1); -lean_inc(x_662); -if (lean_is_exclusive(x_561)) { - lean_ctor_release(x_561, 0); - lean_ctor_release(x_561, 1); - x_663 = x_561; -} else { - lean_dec_ref(x_561); - x_663 = lean_box(0); -} -if (lean_is_scalar(x_663)) { - x_664 = lean_alloc_ctor(1, 2, 0); -} else { - x_664 = x_663; -} -lean_ctor_set(x_664, 0, x_661); -lean_ctor_set(x_664, 1, x_662); -return x_664; -} -} -else -{ -lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; -lean_dec(x_254); -lean_free_object(x_1); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_7); +lean_dec(x_8); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); lean_dec(x_2); -x_665 = lean_ctor_get(x_557, 0); -lean_inc(x_665); -x_666 = lean_ctor_get(x_557, 1); -lean_inc(x_666); -if (lean_is_exclusive(x_557)) { - lean_ctor_release(x_557, 0); - lean_ctor_release(x_557, 1); - x_667 = x_557; +x_354 = lean_ctor_get(x_266, 0); +lean_inc(x_354); +x_355 = lean_ctor_get(x_266, 1); +lean_inc(x_355); +if (lean_is_exclusive(x_266)) { + lean_ctor_release(x_266, 0); + lean_ctor_release(x_266, 1); + x_356 = x_266; } else { - lean_dec_ref(x_557); - x_667 = lean_box(0); + lean_dec_ref(x_266); + x_356 = lean_box(0); } -if (lean_is_scalar(x_667)) { - x_668 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_356)) { + x_357 = lean_alloc_ctor(1, 2, 0); } else { - x_668 = x_667; + x_357 = x_356; } -lean_ctor_set(x_668, 0, x_665); -lean_ctor_set(x_668, 1, x_666); -return x_668; +lean_ctor_set(x_357, 0, x_354); +lean_ctor_set(x_357, 1, x_355); +return x_357; } } } -else -{ -uint8_t x_669; -lean_free_object(x_1); -lean_dec(x_248); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -lean_dec(x_2); -x_669 = !lean_is_exclusive(x_253); -if (x_669 == 0) -{ -return x_253; } -else -{ -lean_object* x_670; lean_object* x_671; lean_object* x_672; -x_670 = lean_ctor_get(x_253, 0); -x_671 = lean_ctor_get(x_253, 1); -lean_inc(x_671); -lean_inc(x_670); -lean_dec(x_253); -x_672 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_672, 0, x_670); -lean_ctor_set(x_672, 1, x_671); -return x_672; } -} -} -else -{ -uint8_t x_673; -lean_free_object(x_1); -lean_dec(x_248); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -lean_dec(x_2); -x_673 = !lean_is_exclusive(x_249); -if (x_673 == 0) -{ -return x_249; -} -else -{ -lean_object* x_674; lean_object* x_675; lean_object* x_676; -x_674 = lean_ctor_get(x_249, 0); -x_675 = lean_ctor_get(x_249, 1); -lean_inc(x_675); -lean_inc(x_674); -lean_dec(x_249); -x_676 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_676, 0, x_674); -lean_ctor_set(x_676, 1, x_675); -return x_676; -} -} -} -else -{ -lean_object* x_677; lean_object* x_678; -x_677 = lean_ctor_get(x_1, 0); -lean_inc(x_677); -lean_dec(x_1); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -lean_inc(x_677); -x_678 = l_Lean_Elab_Term_elabType(x_677, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_678) == 0) -{ -lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; -x_679 = lean_ctor_get(x_678, 0); -lean_inc(x_679); -x_680 = lean_ctor_get(x_678, 1); -lean_inc(x_680); -lean_dec_ref(x_678); -x_681 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_solveParentMVars), 9, 1); -lean_closure_set(x_681, 0, x_679); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -lean_inc_ref(x_5); -x_682 = l_Lean_Elab_Command_Structure_runStructElabM___redArg(x_681, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_680); -if (lean_obj_tag(x_682) == 0) -{ -lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; uint8_t x_688; lean_object* x_689; -x_683 = lean_ctor_get(x_682, 0); -lean_inc(x_683); -x_684 = lean_ctor_get(x_682, 1); -lean_inc(x_684); -lean_dec_ref(x_682); -lean_inc(x_683); -lean_inc(x_6); -x_685 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferFieldType___redArg(x_6, x_683, x_677, x_10, x_12, x_684); -x_686 = lean_ctor_get(x_685, 1); -lean_inc(x_686); -if (lean_is_exclusive(x_685)) { - lean_ctor_release(x_685, 0); - lean_ctor_release(x_685, 1); - x_687 = x_685; -} else { - lean_dec_ref(x_685); - x_687 = lean_box(0); -} -x_688 = 0; -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_689 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_688, x_9, x_10, x_11, x_12, x_13, x_14, x_686); -if (lean_obj_tag(x_689) == 0) -{ -lean_object* x_690; uint8_t x_691; lean_object* x_692; lean_object* x_693; -x_690 = lean_ctor_get(x_689, 1); -lean_inc(x_690); -lean_dec_ref(x_689); -x_691 = 1; -x_692 = l_Lean_Syntax_getTailPos_x3f(x_4, x_691); -lean_dec(x_4); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc_ref(x_9); -x_693 = l_Lean_Elab_Term_addAutoBoundImplicits(x_8, x_692, x_9, x_10, x_11, x_12, x_13, x_14, x_690); -if (lean_obj_tag(x_693) == 0) -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_694; lean_object* x_695; uint8_t x_696; lean_object* x_697; -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -x_694 = lean_ctor_get(x_693, 0); -lean_inc(x_694); -x_695 = lean_ctor_get(x_693, 1); -lean_inc(x_695); -lean_dec_ref(x_693); -x_696 = 1; -x_697 = l_Lean_Meta_mkForallFVars(x_694, x_683, x_688, x_691, x_691, x_696, x_11, x_12, x_13, x_14, x_695); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_697) == 0) -{ -lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; -x_698 = lean_ctor_get(x_697, 0); -lean_inc(x_698); -x_699 = lean_ctor_get(x_697, 1); -lean_inc(x_699); -if (lean_is_exclusive(x_697)) { - lean_ctor_release(x_697, 0); - lean_ctor_release(x_697, 1); - x_700 = x_697; -} else { - lean_dec_ref(x_697); - x_700 = lean_box(0); -} -x_701 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_701, 0, x_698); -x_702 = lean_box(0); -if (lean_is_scalar(x_687)) { - x_703 = lean_alloc_ctor(0, 2, 0); -} else { - x_703 = x_687; -} -lean_ctor_set(x_703, 0, x_3); -lean_ctor_set(x_703, 1, x_702); -x_704 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_704, 0, x_701); -lean_ctor_set(x_704, 1, x_703); -if (lean_is_scalar(x_700)) { - x_705 = lean_alloc_ctor(0, 2, 0); -} else { - x_705 = x_700; -} -lean_ctor_set(x_705, 0, x_704); -lean_ctor_set(x_705, 1, x_699); -return x_705; -} -else -{ -lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; -lean_dec(x_687); -lean_dec_ref(x_3); -x_706 = lean_ctor_get(x_697, 0); -lean_inc(x_706); -x_707 = lean_ctor_get(x_697, 1); -lean_inc(x_707); -if (lean_is_exclusive(x_697)) { - lean_ctor_release(x_697, 0); - lean_ctor_release(x_697, 1); - x_708 = x_697; -} else { - lean_dec_ref(x_697); - x_708 = lean_box(0); -} -if (lean_is_scalar(x_708)) { - x_709 = lean_alloc_ctor(1, 2, 0); -} else { - x_709 = x_708; -} -lean_ctor_set(x_709, 0, x_706); -lean_ctor_set(x_709, 1, x_707); -return x_709; -} -} -else -{ -lean_object* x_710; lean_object* x_711; -x_710 = lean_ctor_get(x_2, 0); -lean_inc(x_710); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - x_711 = x_2; -} else { - lean_dec_ref(x_2); - x_711 = lean_box(0); -} -if (lean_obj_tag(x_710) == 0) -{ -lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; -lean_dec(x_7); -x_712 = lean_ctor_get(x_693, 0); -lean_inc(x_712); -x_713 = lean_ctor_get(x_693, 1); -lean_inc(x_713); -lean_dec_ref(x_693); -x_714 = lean_ctor_get(x_710, 0); -lean_inc(x_714); -if (lean_is_exclusive(x_710)) { - lean_ctor_release(x_710, 0); - x_715 = x_710; -} else { - lean_dec_ref(x_710); - x_715 = lean_box(0); -} -lean_inc(x_683); -if (lean_is_scalar(x_711)) { - x_716 = lean_alloc_ctor(1, 1, 0); -} else { - x_716 = x_711; -} -lean_ctor_set(x_716, 0, x_683); -x_717 = lean_box(0); -x_718 = lean_box(x_691); -x_719 = lean_box(x_691); -lean_inc(x_714); -x_720 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_720, 0, x_714); -lean_closure_set(x_720, 1, x_716); -lean_closure_set(x_720, 2, x_718); -lean_closure_set(x_720, 3, x_719); -lean_closure_set(x_720, 4, x_717); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_721 = l_Lean_Elab_Term_withoutAutoBoundImplicit___redArg(x_720, x_9, x_10, x_11, x_12, x_13, x_14, x_713); -if (lean_obj_tag(x_721) == 0) -{ -lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; -x_722 = lean_ctor_get(x_721, 0); -lean_inc(x_722); -x_723 = lean_ctor_get(x_721, 1); -lean_inc(x_723); -lean_dec_ref(x_721); -x_724 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_solveParentMVars), 9, 1); -lean_closure_set(x_724, 0, x_722); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_725 = l_Lean_Elab_Command_Structure_runStructElabM___redArg(x_724, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_723); -if (lean_obj_tag(x_725) == 0) -{ -lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; -x_726 = lean_ctor_get(x_725, 0); -lean_inc(x_726); -x_727 = lean_ctor_get(x_725, 1); -lean_inc(x_727); -lean_dec_ref(x_725); -lean_inc(x_726); -x_728 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_registerFailedToInferDefaultValue___redArg(x_6, x_726, x_714, x_10, x_11, x_12, x_727); -x_729 = lean_ctor_get(x_728, 1); -lean_inc(x_729); -if (lean_is_exclusive(x_728)) { - lean_ctor_release(x_728, 0); - lean_ctor_release(x_728, 1); - x_730 = x_728; -} else { - lean_dec_ref(x_728); - x_730 = lean_box(0); -} -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -x_731 = l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(x_688, x_9, x_10, x_11, x_12, x_13, x_14, x_729); -if (lean_obj_tag(x_731) == 0) -{ -lean_object* x_732; uint8_t x_733; lean_object* x_734; -x_732 = lean_ctor_get(x_731, 1); -lean_inc(x_732); -lean_dec_ref(x_731); -x_733 = 1; -lean_inc(x_712); -x_734 = l_Lean_Meta_mkForallFVars(x_712, x_683, x_688, x_691, x_691, x_733, x_11, x_12, x_13, x_14, x_732); -if (lean_obj_tag(x_734) == 0) -{ -lean_object* x_735; lean_object* x_736; lean_object* x_737; -x_735 = lean_ctor_get(x_734, 0); -lean_inc(x_735); -x_736 = lean_ctor_get(x_734, 1); -lean_inc(x_736); -lean_dec_ref(x_734); -x_737 = l_Lean_Meta_mkLambdaFVars(x_712, x_726, x_688, x_691, x_688, x_691, x_733, x_11, x_12, x_13, x_14, x_736); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_737) == 0) -{ -lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; -x_738 = lean_ctor_get(x_737, 0); -lean_inc(x_738); -x_739 = lean_ctor_get(x_737, 1); -lean_inc(x_739); -if (lean_is_exclusive(x_737)) { - lean_ctor_release(x_737, 0); - lean_ctor_release(x_737, 1); - x_740 = x_737; -} else { - lean_dec_ref(x_737); - x_740 = lean_box(0); -} -x_741 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_741, 0, x_735); -if (lean_is_scalar(x_715)) { - x_742 = lean_alloc_ctor(0, 1, 0); -} else { - x_742 = x_715; -} -lean_ctor_set(x_742, 0, x_738); -x_743 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_743, 0, x_742); -if (lean_is_scalar(x_730)) { - x_744 = lean_alloc_ctor(0, 2, 0); -} else { - x_744 = x_730; -} -lean_ctor_set(x_744, 0, x_3); -lean_ctor_set(x_744, 1, x_743); -if (lean_is_scalar(x_687)) { - x_745 = lean_alloc_ctor(0, 2, 0); -} else { - x_745 = x_687; -} -lean_ctor_set(x_745, 0, x_741); -lean_ctor_set(x_745, 1, x_744); -if (lean_is_scalar(x_740)) { - x_746 = lean_alloc_ctor(0, 2, 0); -} else { - x_746 = x_740; -} -lean_ctor_set(x_746, 0, x_745); -lean_ctor_set(x_746, 1, x_739); -return x_746; -} -else -{ -lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; -lean_dec(x_735); -lean_dec(x_730); -lean_dec(x_715); -lean_dec(x_687); -lean_dec_ref(x_3); -x_747 = lean_ctor_get(x_737, 0); -lean_inc(x_747); -x_748 = lean_ctor_get(x_737, 1); -lean_inc(x_748); -if (lean_is_exclusive(x_737)) { - lean_ctor_release(x_737, 0); - lean_ctor_release(x_737, 1); - x_749 = x_737; -} else { - lean_dec_ref(x_737); - x_749 = lean_box(0); -} -if (lean_is_scalar(x_749)) { - x_750 = lean_alloc_ctor(1, 2, 0); -} else { - x_750 = x_749; -} -lean_ctor_set(x_750, 0, x_747); -lean_ctor_set(x_750, 1, x_748); -return x_750; -} -} -else -{ -lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; -lean_dec(x_730); -lean_dec(x_726); -lean_dec(x_715); -lean_dec(x_712); -lean_dec(x_687); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_751 = lean_ctor_get(x_734, 0); -lean_inc(x_751); -x_752 = lean_ctor_get(x_734, 1); -lean_inc(x_752); -if (lean_is_exclusive(x_734)) { - lean_ctor_release(x_734, 0); - lean_ctor_release(x_734, 1); - x_753 = x_734; -} else { - lean_dec_ref(x_734); - x_753 = lean_box(0); -} -if (lean_is_scalar(x_753)) { - x_754 = lean_alloc_ctor(1, 2, 0); -} else { - x_754 = x_753; -} -lean_ctor_set(x_754, 0, x_751); -lean_ctor_set(x_754, 1, x_752); -return x_754; -} -} -else -{ -lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; -lean_dec(x_730); -lean_dec(x_726); -lean_dec(x_715); -lean_dec(x_712); -lean_dec(x_687); -lean_dec(x_683); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_755 = lean_ctor_get(x_731, 0); -lean_inc(x_755); -x_756 = lean_ctor_get(x_731, 1); -lean_inc(x_756); -if (lean_is_exclusive(x_731)) { - lean_ctor_release(x_731, 0); - lean_ctor_release(x_731, 1); - x_757 = x_731; -} else { - lean_dec_ref(x_731); - x_757 = lean_box(0); -} -if (lean_is_scalar(x_757)) { - x_758 = lean_alloc_ctor(1, 2, 0); -} else { - x_758 = x_757; -} -lean_ctor_set(x_758, 0, x_755); -lean_ctor_set(x_758, 1, x_756); -return x_758; -} -} -else -{ -lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; -lean_dec(x_715); -lean_dec(x_714); -lean_dec(x_712); -lean_dec(x_687); -lean_dec(x_683); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_3); -x_759 = lean_ctor_get(x_725, 0); -lean_inc(x_759); -x_760 = lean_ctor_get(x_725, 1); -lean_inc(x_760); -if (lean_is_exclusive(x_725)) { - lean_ctor_release(x_725, 0); - lean_ctor_release(x_725, 1); - x_761 = x_725; -} else { - lean_dec_ref(x_725); - x_761 = lean_box(0); -} -if (lean_is_scalar(x_761)) { - x_762 = lean_alloc_ctor(1, 2, 0); -} else { - x_762 = x_761; -} -lean_ctor_set(x_762, 0, x_759); -lean_ctor_set(x_762, 1, x_760); -return x_762; -} -} -else -{ -lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; -lean_dec(x_715); -lean_dec(x_714); -lean_dec(x_712); -lean_dec(x_687); -lean_dec(x_683); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec_ref(x_3); -x_763 = lean_ctor_get(x_721, 0); -lean_inc(x_763); -x_764 = lean_ctor_get(x_721, 1); -lean_inc(x_764); -if (lean_is_exclusive(x_721)) { - lean_ctor_release(x_721, 0); - lean_ctor_release(x_721, 1); - x_765 = x_721; -} else { - lean_dec_ref(x_721); - x_765 = lean_box(0); -} -if (lean_is_scalar(x_765)) { - x_766 = lean_alloc_ctor(1, 2, 0); -} else { - x_766 = x_765; -} -lean_ctor_set(x_766, 0, x_763); -lean_ctor_set(x_766, 1, x_764); -return x_766; -} -} -else -{ -lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_6); -lean_dec_ref(x_5); -x_767 = lean_ctor_get(x_693, 0); -lean_inc(x_767); -x_768 = lean_ctor_get(x_693, 1); -lean_inc(x_768); -lean_dec_ref(x_693); -x_769 = lean_ctor_get(x_710, 0); -lean_inc(x_769); -if (lean_is_exclusive(x_710)) { - lean_ctor_release(x_710, 0); - x_770 = x_710; -} else { - lean_dec_ref(x_710); - x_770 = lean_box(0); -} -x_771 = l_Lean_mkAutoParamFnOfProjFn(x_7); -lean_inc(x_771); -if (lean_is_scalar(x_711)) { - x_772 = lean_alloc_ctor(1, 1, 0); -} else { - x_772 = x_711; -} -lean_ctor_set(x_772, 0, x_771); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -x_773 = l_Lean_Elab_Term_declareTacticSyntax___redArg(x_769, x_772, x_11, x_12, x_13, x_14, x_768); -if (lean_obj_tag(x_773) == 0) -{ -lean_object* x_774; uint8_t x_775; lean_object* x_776; -x_774 = lean_ctor_get(x_773, 1); -lean_inc(x_774); -lean_dec_ref(x_773); -x_775 = 1; -x_776 = l_Lean_Meta_mkForallFVars(x_767, x_683, x_688, x_691, x_691, x_775, x_11, x_12, x_13, x_14, x_774); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -if (lean_obj_tag(x_776) == 0) -{ -lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; -x_777 = lean_ctor_get(x_776, 0); -lean_inc(x_777); -x_778 = lean_ctor_get(x_776, 1); -lean_inc(x_778); -if (lean_is_exclusive(x_776)) { - lean_ctor_release(x_776, 0); - lean_ctor_release(x_776, 1); - x_779 = x_776; -} else { - lean_dec_ref(x_776); - x_779 = lean_box(0); -} -x_780 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_780, 0, x_777); -x_781 = lean_box(0); -x_782 = l_Lean_Expr_const___override(x_771, x_781); -if (lean_is_scalar(x_770)) { - x_783 = lean_alloc_ctor(1, 1, 0); -} else { - x_783 = x_770; -} -lean_ctor_set(x_783, 0, x_782); -x_784 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_784, 0, x_783); -if (lean_is_scalar(x_687)) { - x_785 = lean_alloc_ctor(0, 2, 0); -} else { - x_785 = x_687; -} -lean_ctor_set(x_785, 0, x_3); -lean_ctor_set(x_785, 1, x_784); -x_786 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_786, 0, x_780); -lean_ctor_set(x_786, 1, x_785); -if (lean_is_scalar(x_779)) { - x_787 = lean_alloc_ctor(0, 2, 0); -} else { - x_787 = x_779; -} -lean_ctor_set(x_787, 0, x_786); -lean_ctor_set(x_787, 1, x_778); -return x_787; -} -else -{ -lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; -lean_dec(x_771); -lean_dec(x_770); -lean_dec(x_687); -lean_dec_ref(x_3); -x_788 = lean_ctor_get(x_776, 0); -lean_inc(x_788); -x_789 = lean_ctor_get(x_776, 1); -lean_inc(x_789); -if (lean_is_exclusive(x_776)) { - lean_ctor_release(x_776, 0); - lean_ctor_release(x_776, 1); - x_790 = x_776; -} else { - lean_dec_ref(x_776); - x_790 = lean_box(0); -} -if (lean_is_scalar(x_790)) { - x_791 = lean_alloc_ctor(1, 2, 0); -} else { - x_791 = x_790; -} -lean_ctor_set(x_791, 0, x_788); -lean_ctor_set(x_791, 1, x_789); -return x_791; -} -} -else -{ -lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; -lean_dec(x_771); -lean_dec(x_770); -lean_dec(x_767); -lean_dec(x_687); -lean_dec(x_683); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec_ref(x_3); -x_792 = lean_ctor_get(x_773, 0); -lean_inc(x_792); -x_793 = lean_ctor_get(x_773, 1); -lean_inc(x_793); -if (lean_is_exclusive(x_773)) { - lean_ctor_release(x_773, 0); - lean_ctor_release(x_773, 1); - x_794 = x_773; -} else { - lean_dec_ref(x_773); - x_794 = lean_box(0); -} -if (lean_is_scalar(x_794)) { - x_795 = lean_alloc_ctor(1, 2, 0); -} else { - x_795 = x_794; -} -lean_ctor_set(x_795, 0, x_792); -lean_ctor_set(x_795, 1, x_793); -return x_795; -} -} -} -} -else -{ -lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; -lean_dec(x_687); -lean_dec(x_683); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec_ref(x_3); -lean_dec(x_2); -x_796 = lean_ctor_get(x_693, 0); -lean_inc(x_796); -x_797 = lean_ctor_get(x_693, 1); -lean_inc(x_797); -if (lean_is_exclusive(x_693)) { - lean_ctor_release(x_693, 0); - lean_ctor_release(x_693, 1); - x_798 = x_693; -} else { - lean_dec_ref(x_693); - x_798 = lean_box(0); -} -if (lean_is_scalar(x_798)) { - x_799 = lean_alloc_ctor(1, 2, 0); -} else { - x_799 = x_798; -} -lean_ctor_set(x_799, 0, x_796); -lean_ctor_set(x_799, 1, x_797); -return x_799; -} -} -else -{ -lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; -lean_dec(x_687); -lean_dec(x_683); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -lean_dec(x_2); -x_800 = lean_ctor_get(x_689, 0); -lean_inc(x_800); -x_801 = lean_ctor_get(x_689, 1); -lean_inc(x_801); -if (lean_is_exclusive(x_689)) { - lean_ctor_release(x_689, 0); - lean_ctor_release(x_689, 1); - x_802 = x_689; -} else { - lean_dec_ref(x_689); - x_802 = lean_box(0); -} -if (lean_is_scalar(x_802)) { - x_803 = lean_alloc_ctor(1, 2, 0); -} else { - x_803 = x_802; -} -lean_ctor_set(x_803, 0, x_800); -lean_ctor_set(x_803, 1, x_801); -return x_803; -} -} -else -{ -lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; -lean_dec(x_677); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -lean_dec(x_2); -x_804 = lean_ctor_get(x_682, 0); -lean_inc(x_804); -x_805 = lean_ctor_get(x_682, 1); -lean_inc(x_805); -if (lean_is_exclusive(x_682)) { - lean_ctor_release(x_682, 0); - lean_ctor_release(x_682, 1); - x_806 = x_682; -} else { - lean_dec_ref(x_682); - x_806 = lean_box(0); -} -if (lean_is_scalar(x_806)) { - x_807 = lean_alloc_ctor(1, 2, 0); -} else { - x_807 = x_806; -} -lean_ctor_set(x_807, 0, x_804); -lean_ctor_set(x_807, 1, x_805); -return x_807; -} -} -else -{ -lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; -lean_dec(x_677); -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -lean_dec(x_2); -x_808 = lean_ctor_get(x_678, 0); -lean_inc(x_808); -x_809 = lean_ctor_get(x_678, 1); -lean_inc(x_809); -if (lean_is_exclusive(x_678)) { - lean_ctor_release(x_678, 0); - lean_ctor_release(x_678, 1); - x_810 = x_678; -} else { - lean_dec_ref(x_678); - x_810 = lean_box(0); -} -if (lean_is_scalar(x_810)) { - x_811 = lean_alloc_ctor(1, 2, 0); -} else { - x_811 = x_810; -} -lean_ctor_set(x_811, 0, x_808); -lean_ctor_set(x_811, 1, x_809); -return x_811; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue(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_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_11 = lean_ctor_get(x_2, 2); -lean_inc(x_11); -x_12 = lean_ctor_get(x_2, 3); -lean_inc(x_12); -x_13 = lean_ctor_get(x_2, 4); -lean_inc(x_13); -x_14 = lean_ctor_get(x_2, 6); -lean_inc(x_14); -x_15 = lean_ctor_get(x_2, 7); -lean_inc(x_15); -x_16 = lean_ctor_get(x_2, 8); +lean_object* x_18; lean_object* x_19; +x_18 = l_Lean_Syntax_getArgs(x_1); lean_inc(x_16); -lean_dec_ref(x_2); -x_17 = l_Lean_Syntax_getArgs(x_14); -lean_dec(x_14); -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -lean_inc_ref(x_6); -lean_inc(x_5); -lean_inc_ref(x_4); -lean_inc_ref(x_3); -x_18 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabParamInfoUpdates(x_1, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec_ref(x_17); -if (lean_obj_tag(x_18) == 0) +lean_inc_ref(x_15); +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc_ref(x_10); +x_19 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabParamInfoUpdates(x_2, x_18, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +lean_dec_ref(x_18); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -x_21 = lean_ctor_get(x_18, 1); +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec_ref(x_18); x_22 = lean_ctor_get(x_19, 1); lean_inc(x_22); -lean_dec(x_19); -x_23 = !lean_is_exclusive(x_20); -if (x_23 == 0) +lean_dec_ref(x_19); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = !lean_is_exclusive(x_21); +if (x_24 == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_24 = lean_ctor_get(x_20, 0); -x_25 = lean_ctor_get(x_20, 1); -lean_inc(x_13); -x_26 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__0___boxed), 2, 1); -lean_closure_set(x_26, 0, x_13); -x_27 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___boxed), 15, 7); -lean_closure_set(x_27, 0, x_15); -lean_closure_set(x_27, 1, x_16); -lean_closure_set(x_27, 2, x_25); -lean_closure_set(x_27, 3, x_12); -lean_closure_set(x_27, 4, x_3); -lean_closure_set(x_27, 5, x_13); -lean_closure_set(x_27, 6, x_11); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_25 = lean_ctor_get(x_21, 0); +x_26 = lean_ctor_get(x_21, 1); +x_27 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__3___boxed), 16, 8); +lean_closure_set(x_27, 0, x_3); +lean_closure_set(x_27, 1, x_4); +lean_closure_set(x_27, 2, x_26); +lean_closure_set(x_27, 3, x_5); +lean_closure_set(x_27, 4, x_10); +lean_closure_set(x_27, 5, x_6); +lean_closure_set(x_27, 6, x_7); +lean_closure_set(x_27, 7, x_8); x_28 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders), 10, 3); lean_closure_set(x_28, 0, lean_box(0)); -lean_closure_set(x_28, 1, x_24); +lean_closure_set(x_28, 1, x_25); lean_closure_set(x_28, 2, x_27); x_29 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicitForbiddenPred), 10, 3); lean_closure_set(x_29, 0, lean_box(0)); -lean_closure_set(x_29, 1, x_26); +lean_closure_set(x_29, 1, x_9); lean_closure_set(x_29, 2, x_28); -x_30 = l_Lean_Elab_Term_withAutoBoundImplicit___redArg(x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_21); +x_30 = l_Lean_Elab_Term_withAutoBoundImplicit___redArg(x_29, x_11, x_12, x_13, x_14, x_15, x_16, x_22); if (lean_obj_tag(x_30) == 0) { uint8_t x_31; @@ -49544,9 +48778,9 @@ if (x_31 == 0) { lean_object* x_32; x_32 = lean_ctor_get(x_30, 0); -lean_ctor_set(x_20, 1, x_22); -lean_ctor_set(x_20, 0, x_32); -lean_ctor_set(x_30, 0, x_20); +lean_ctor_set(x_21, 1, x_23); +lean_ctor_set(x_21, 0, x_32); +lean_ctor_set(x_30, 0, x_21); return x_30; } else @@ -49557,10 +48791,10 @@ x_34 = lean_ctor_get(x_30, 1); lean_inc(x_34); lean_inc(x_33); lean_dec(x_30); -lean_ctor_set(x_20, 1, x_22); -lean_ctor_set(x_20, 0, x_33); +lean_ctor_set(x_21, 1, x_23); +lean_ctor_set(x_21, 0, x_33); x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_20); +lean_ctor_set(x_35, 0, x_21); lean_ctor_set(x_35, 1, x_34); return x_35; } @@ -49568,8 +48802,8 @@ return x_35; else { uint8_t x_36; -lean_free_object(x_20); -lean_dec(x_22); +lean_free_object(x_21); +lean_dec(x_23); x_36 = !lean_is_exclusive(x_30); if (x_36 == 0) { @@ -49592,120 +48826,193 @@ return x_39; } else { -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; -x_40 = lean_ctor_get(x_20, 0); -x_41 = lean_ctor_get(x_20, 1); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_40 = lean_ctor_get(x_21, 0); +x_41 = lean_ctor_get(x_21, 1); lean_inc(x_41); lean_inc(x_40); -lean_dec(x_20); -lean_inc(x_13); -x_42 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__0___boxed), 2, 1); -lean_closure_set(x_42, 0, x_13); -x_43 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___boxed), 15, 7); -lean_closure_set(x_43, 0, x_15); -lean_closure_set(x_43, 1, x_16); -lean_closure_set(x_43, 2, x_41); -lean_closure_set(x_43, 3, x_12); -lean_closure_set(x_43, 4, x_3); -lean_closure_set(x_43, 5, x_13); -lean_closure_set(x_43, 6, x_11); -x_44 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders), 10, 3); +lean_dec(x_21); +x_42 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__3___boxed), 16, 8); +lean_closure_set(x_42, 0, x_3); +lean_closure_set(x_42, 1, x_4); +lean_closure_set(x_42, 2, x_41); +lean_closure_set(x_42, 3, x_5); +lean_closure_set(x_42, 4, x_10); +lean_closure_set(x_42, 5, x_6); +lean_closure_set(x_42, 6, x_7); +lean_closure_set(x_42, 7, x_8); +x_43 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders), 10, 3); +lean_closure_set(x_43, 0, lean_box(0)); +lean_closure_set(x_43, 1, x_40); +lean_closure_set(x_43, 2, x_42); +x_44 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicitForbiddenPred), 10, 3); lean_closure_set(x_44, 0, lean_box(0)); -lean_closure_set(x_44, 1, x_40); +lean_closure_set(x_44, 1, x_9); lean_closure_set(x_44, 2, x_43); -x_45 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicitForbiddenPred), 10, 3); -lean_closure_set(x_45, 0, lean_box(0)); -lean_closure_set(x_45, 1, x_42); -lean_closure_set(x_45, 2, x_44); -x_46 = l_Lean_Elab_Term_withAutoBoundImplicit___redArg(x_45, x_4, x_5, x_6, x_7, x_8, x_9, x_21); -if (lean_obj_tag(x_46) == 0) +x_45 = l_Lean_Elab_Term_withAutoBoundImplicit___redArg(x_44, x_11, x_12, x_13, x_14, x_15, x_16, x_22); +if (lean_obj_tag(x_45) == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_47 = lean_ctor_get(x_46, 0); +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_49 = x_46; +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_48 = x_45; } else { - lean_dec_ref(x_46); - x_49 = lean_box(0); + lean_dec_ref(x_45); + x_48 = lean_box(0); } -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_47); -lean_ctor_set(x_50, 1, x_22); -if (lean_is_scalar(x_49)) { - x_51 = lean_alloc_ctor(0, 2, 0); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_23); +if (lean_is_scalar(x_48)) { + x_50 = lean_alloc_ctor(0, 2, 0); } else { - x_51 = x_49; + x_50 = x_48; } -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_48); -return x_51; +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_47); +return x_50; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -lean_dec(x_22); -x_52 = lean_ctor_get(x_46, 0); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_dec(x_23); +x_51 = lean_ctor_get(x_45, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_45, 1); lean_inc(x_52); -x_53 = lean_ctor_get(x_46, 1); -lean_inc(x_53); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_54 = x_46; +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_53 = x_45; } else { - lean_dec_ref(x_46); - x_54 = lean_box(0); + lean_dec_ref(x_45); + x_53 = lean_box(0); } -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(1, 2, 0); } else { - x_55 = x_54; + x_54 = x_53; } -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; +lean_ctor_set(x_54, 0, x_51); +lean_ctor_set(x_54, 1, x_52); +return x_54; } } } else { -uint8_t x_56; +uint8_t x_55; lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_13); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_55 = !lean_is_exclusive(x_19); +if (x_55 == 0) +{ +return x_19; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_19, 0); +x_57 = lean_ctor_get(x_19, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_19); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; +x_11 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_11); +x_12 = lean_ctor_get(x_2, 2); +lean_inc(x_12); +x_13 = lean_ctor_get(x_2, 3); +lean_inc(x_13); +x_14 = lean_ctor_get(x_2, 4); +lean_inc(x_14); +x_15 = lean_ctor_get(x_2, 6); +lean_inc(x_15); +x_16 = lean_ctor_get(x_2, 7); +lean_inc(x_16); +x_17 = lean_ctor_get(x_2, 8); +lean_inc(x_17); +lean_dec_ref(x_2); +lean_inc(x_14); +x_18 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__0___boxed), 2, 1); +lean_closure_set(x_18, 0, x_14); +lean_inc_ref(x_11); +x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__4___boxed), 17, 9); +lean_closure_set(x_19, 0, x_15); +lean_closure_set(x_19, 1, x_1); +lean_closure_set(x_19, 2, x_16); +lean_closure_set(x_19, 3, x_17); +lean_closure_set(x_19, 4, x_13); +lean_closure_set(x_19, 5, x_14); +lean_closure_set(x_19, 6, x_11); +lean_closure_set(x_19, 7, x_12); +lean_closure_set(x_19, 8, x_18); +x_20 = l_Lean_Elab_Modifiers_isPrivate(x_11); +lean_dec_ref(x_11); +x_21 = l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg(x_19, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_21; +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___lam__0___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: +{ +uint8_t x_13; lean_object* x_14; +x_13 = lean_unbox(x_1); +x_14 = l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___lam__0(x_13, 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_11); +lean_dec_ref(x_10); lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_7); lean_dec_ref(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec_ref(x_3); -x_56 = !lean_is_exclusive(x_18); -if (x_56 == 0) +lean_dec(x_4); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: { -return x_18; +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_2); +x_12 = l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; } -else +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___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) { +_start: { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_18, 0); -x_58 = lean_ctor_get(x_18, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_18); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; -} -} +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_3); +x_13 = l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; } } LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__0___boxed(lean_object* x_1, lean_object* x_2) { @@ -49719,22 +49026,60 @@ x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_16; -x_16 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -lean_dec_ref(x_8); +uint8_t x_15; lean_object* x_16; +x_15 = lean_unbox(x_1); +x_16 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec_ref(x_3); return x_16; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___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_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__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, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { -lean_object* x_11; -x_11 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec_ref(x_1); -return x_11; +uint8_t x_17; uint8_t x_18; lean_object* x_19; +x_17 = lean_unbox(x_5); +x_18 = lean_unbox(x_8); +x_19 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__2(x_1, x_2, x_3, x_4, x_17, x_6, x_7, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +return x_19; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__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, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +lean_object* x_17; +x_17 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__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, x_13, x_14, x_15, x_16); +lean_dec_ref(x_7); +return x_17; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__4___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +_start: +{ +lean_object* x_18; +x_18 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +lean_dec_ref(x_2); +lean_dec(x_1); +return x_18; } } LEAN_EXPORT lean_object* l_List_mapTR_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go_spec__0(lean_object* x_1, lean_object* x_2) { @@ -50393,7 +49738,7 @@ return x_40; } else { -lean_object* x_41; lean_object* x_42; uint8_t 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; uint8_t 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_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_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_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_262; lean_object* x_263; lean_object* x_264; uint8_t 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_331; uint8_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; uint8_t x_668; +lean_object* x_41; lean_object* x_42; uint8_t 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; uint8_t 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_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_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_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_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; uint8_t 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_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; uint8_t x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; uint8_t x_668; x_41 = lean_array_fget(x_2, x_4); x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); @@ -50824,23 +50169,23 @@ block_85: { lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; x_71 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_71, 0, x_56); +lean_ctor_set(x_71, 0, x_62); x_72 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_72, 0, x_71); x_73 = lean_alloc_ctor(0, 12, 1); lean_ctor_set(x_73, 0, x_45); -lean_ctor_set(x_73, 1, x_62); -lean_ctor_set(x_73, 2, x_60); -lean_ctor_set(x_73, 3, x_55); -lean_ctor_set(x_73, 4, x_52); -lean_ctor_set(x_73, 5, x_57); -lean_ctor_set(x_73, 6, x_61); -lean_ctor_set(x_73, 7, x_54); +lean_ctor_set(x_73, 1, x_56); +lean_ctor_set(x_73, 2, x_54); +lean_ctor_set(x_73, 3, x_53); +lean_ctor_set(x_73, 4, x_59); +lean_ctor_set(x_73, 5, x_61); +lean_ctor_set(x_73, 6, x_55); +lean_ctor_set(x_73, 7, x_52); lean_ctor_set(x_73, 8, x_72); -lean_ctor_set(x_73, 9, x_59); -lean_ctor_set(x_73, 10, x_51); +lean_ctor_set(x_73, 9, x_60); +lean_ctor_set(x_73, 10, x_57); lean_ctor_set(x_73, 11, x_58); -lean_ctor_set_uint8(x_73, sizeof(void*)*12, x_53); +lean_ctor_set_uint8(x_73, sizeof(void*)*12, x_51); x_74 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_replaceFieldInfo___redArg(x_73, x_63, x_66, x_67, x_68, x_69, x_70); if (lean_obj_tag(x_74) == 0) { @@ -50979,18 +50324,18 @@ lean_dec_ref(x_118); x_121 = lean_ctor_get(x_119, 1); lean_inc(x_121); lean_dec(x_119); -x_51 = x_105; -x_52 = x_100; -x_53 = x_99; -x_54 = x_103; -x_55 = x_98; -x_56 = x_113; -x_57 = x_101; +x_51 = x_99; +x_52 = x_103; +x_53 = x_98; +x_54 = x_97; +x_55 = x_102; +x_56 = x_96; +x_57 = x_105; x_58 = x_106; -x_59 = x_104; -x_60 = x_97; -x_61 = x_102; -x_62 = x_96; +x_59 = x_100; +x_60 = x_104; +x_61 = x_101; +x_62 = x_113; x_63 = x_121; x_64 = x_89; x_65 = x_90; @@ -51043,18 +50388,18 @@ lean_object* x_135; x_135 = lean_ctor_get(x_134, 1); lean_inc(x_135); lean_dec_ref(x_134); -x_51 = x_105; -x_52 = x_100; -x_53 = x_99; -x_54 = x_103; -x_55 = x_98; -x_56 = x_113; -x_57 = x_101; +x_51 = x_99; +x_52 = x_103; +x_53 = x_98; +x_54 = x_97; +x_55 = x_102; +x_56 = x_96; +x_57 = x_105; x_58 = x_106; -x_59 = x_104; -x_60 = x_97; -x_61 = x_102; -x_62 = x_96; +x_59 = x_100; +x_60 = x_104; +x_61 = x_101; +x_62 = x_113; x_63 = x_129; x_64 = x_89; x_65 = x_90; @@ -51258,13 +50603,13 @@ block_203: { lean_object* x_164; lean_object* x_165; uint8_t x_166; x_164 = lean_unsigned_to_nat(0u); -x_165 = lean_array_get_size(x_154); +x_165 = lean_array_get_size(x_153); x_166 = lean_nat_dec_lt(x_164, x_165); lean_dec(x_165); if (x_166 == 0) { -lean_dec_ref(x_154); -x_86 = x_153; +lean_dec_ref(x_153); +x_86 = x_154; x_87 = x_155; x_88 = x_156; x_89 = x_157; @@ -51301,8 +50646,8 @@ lean_ctor_set(x_167, 0, x_173); x_176 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go___redArg___closed__5; x_177 = l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__1_spec__1___closed__18; x_178 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go___redArg___closed__6; -x_179 = l_Array_append___redArg(x_178, x_154); -lean_dec_ref(x_154); +x_179 = l_Array_append___redArg(x_178, x_153); +lean_dec_ref(x_153); lean_inc(x_173); x_180 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_180, 0, x_173); @@ -51321,7 +50666,7 @@ lean_ctor_set(x_183, 1, x_182); lean_inc(x_173); x_184 = l_Lean_Syntax_node4(x_173, x_176, x_180, x_181, x_183, x_155); x_185 = l_Lean_Syntax_node2(x_173, x_175, x_167, x_184); -x_86 = x_153; +x_86 = x_154; x_87 = x_185; x_88 = x_156; x_89 = x_157; @@ -51353,8 +50698,8 @@ lean_ctor_set(x_192, 1, x_190); x_193 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go___redArg___closed__5; x_194 = l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandFields_spec__1_spec__1___closed__18; x_195 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go___redArg___closed__6; -x_196 = l_Array_append___redArg(x_195, x_154); -lean_dec_ref(x_154); +x_196 = l_Array_append___redArg(x_195, x_153); +lean_dec_ref(x_153); lean_inc(x_189); x_197 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_197, 0, x_189); @@ -51373,7 +50718,7 @@ lean_ctor_set(x_200, 1, x_199); lean_inc(x_189); x_201 = l_Lean_Syntax_node4(x_189, x_193, x_197, x_198, x_200, x_155); x_202 = l_Lean_Syntax_node2(x_189, x_191, x_192, x_201); -x_86 = x_153; +x_86 = x_154; x_87 = x_202; x_88 = x_156; x_89 = x_157; @@ -51391,10 +50736,10 @@ block_228: { lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; lean_dec_ref(x_212); -lean_dec_ref(x_209); +lean_dec(x_211); lean_dec(x_208); -lean_dec_ref(x_206); -lean_dec(x_205); +lean_dec_ref(x_207); +lean_dec_ref(x_204); x_215 = lean_box(0); x_216 = l_List_mapTR_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go_spec__0(x_214, x_215); x_217 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go___redArg___closed__10; @@ -51407,11 +50752,11 @@ x_221 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_getFieldD x_222 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_222, 0, x_220); lean_ctor_set(x_222, 1, x_221); -x_223 = l_Lean_throwError___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addFieldInfo_spec__0___redArg(x_222, x_211, x_204, x_207, x_213, x_210); +x_223 = l_Lean_throwError___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addFieldInfo_spec__0___redArg(x_222, x_209, x_213, x_210, x_205, x_206); +lean_dec(x_205); +lean_dec_ref(x_210); lean_dec(x_213); -lean_dec_ref(x_207); -lean_dec(x_204); -lean_dec_ref(x_211); +lean_dec_ref(x_209); x_224 = !lean_is_exclusive(x_223); if (x_224 == 0) { @@ -51488,16 +50833,16 @@ if (x_253 == 0) { lean_dec(x_252); lean_dec_ref(x_248); -x_204 = x_235; -x_205 = x_233; -x_206 = x_232; -x_207 = x_236; -x_208 = x_229; -x_209 = x_230; -x_210 = x_244; -x_211 = x_234; -x_212 = x_246; -x_213 = x_237; +x_204 = x_232; +x_205 = x_237; +x_206 = x_244; +x_207 = x_246; +x_208 = x_233; +x_209 = x_234; +x_210 = x_236; +x_211 = x_229; +x_212 = x_230; +x_213 = x_235; x_214 = x_251; goto block_228; } @@ -51509,16 +50854,16 @@ lean_dec(x_252); x_255 = 0; x_256 = l_Array_foldrMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go_spec__2(x_248, x_254, x_255, x_251); lean_dec_ref(x_248); -x_204 = x_235; -x_205 = x_233; -x_206 = x_232; -x_207 = x_236; -x_208 = x_229; -x_209 = x_230; -x_210 = x_244; -x_211 = x_234; -x_212 = x_246; -x_213 = x_237; +x_204 = x_232; +x_205 = x_237; +x_206 = x_244; +x_207 = x_246; +x_208 = x_233; +x_209 = x_234; +x_210 = x_236; +x_211 = x_229; +x_212 = x_230; +x_213 = x_235; x_214 = x_256; goto block_228; } @@ -51526,8 +50871,8 @@ goto block_228; else { lean_dec_ref(x_248); -x_153 = x_230; -x_154 = x_246; +x_153 = x_246; +x_154 = x_230; x_155 = x_229; x_156 = x_245; x_157 = x_232; @@ -51589,7 +50934,7 @@ lean_inc(x_280); lean_inc_ref(x_279); lean_inc(x_278); lean_inc_ref(x_277); -x_284 = l_Lean_Elab_Term_declareTacticSyntax___redArg(x_267, x_283, x_277, x_278, x_279, x_280, x_281); +x_284 = l_Lean_Elab_Term_declareTacticSyntax___redArg(x_273, x_283, x_277, x_278, x_279, x_280, x_281); if (lean_obj_tag(x_284) == 0) { 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; @@ -51602,21 +50947,21 @@ x_288 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_288, 0, x_287); x_289 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_289, 0, x_288); -lean_inc(x_268); +lean_inc(x_269); x_290 = lean_alloc_ctor(0, 12, 1); lean_ctor_set(x_290, 0, x_45); -lean_ctor_set(x_290, 1, x_269); -lean_ctor_set(x_290, 2, x_270); -lean_ctor_set(x_290, 3, x_271); -lean_ctor_set(x_290, 4, x_264); -lean_ctor_set(x_290, 5, x_273); -lean_ctor_set(x_290, 6, x_262); -lean_ctor_set(x_290, 7, x_266); +lean_ctor_set(x_290, 1, x_265); +lean_ctor_set(x_290, 2, x_263); +lean_ctor_set(x_290, 3, x_272); +lean_ctor_set(x_290, 4, x_262); +lean_ctor_set(x_290, 5, x_264); +lean_ctor_set(x_290, 6, x_270); +lean_ctor_set(x_290, 7, x_268); lean_ctor_set(x_290, 8, x_289); -lean_ctor_set(x_290, 9, x_268); -lean_ctor_set(x_290, 10, x_272); -lean_ctor_set(x_290, 11, x_263); -lean_ctor_set_uint8(x_290, sizeof(void*)*12, x_265); +lean_ctor_set(x_290, 9, x_269); +lean_ctor_set(x_290, 10, x_267); +lean_ctor_set(x_290, 11, x_266); +lean_ctor_set_uint8(x_290, sizeof(void*)*12, x_271); x_291 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_replaceFieldInfo___redArg(x_290, x_274, x_277, x_278, x_279, x_280, x_285); if (lean_obj_tag(x_291) == 0) { @@ -51635,7 +50980,7 @@ lean_ctor_set(x_295, 0, x_42); x_296 = l_Lean_Elab_pushInfoLeaf___at___Lean_Elab_checkNotAlreadyDeclared___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__0_spec__2(x_295, x_294, x_275, x_276, x_277, x_278, x_279, x_280, x_293); x_297 = lean_ctor_get(x_296, 0); lean_inc(x_297); -if (lean_obj_tag(x_268) == 0) +if (lean_obj_tag(x_269) == 0) { lean_object* x_298; lean_object* x_299; lean_dec(x_42); @@ -51664,9 +51009,9 @@ lean_dec_ref(x_296); x_301 = lean_ctor_get(x_297, 1); lean_inc(x_301); lean_dec(x_297); -x_302 = lean_ctor_get(x_268, 0); +x_302 = lean_ctor_get(x_269, 0); lean_inc(x_302); -lean_dec(x_268); +lean_dec(x_269); x_303 = l_Lean_mkConstWithLevelParams___at___Lean_Elab_checkNotAlreadyDeclared___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withStruct_spec__0_spec__0(x_302, x_301, x_275, x_276, x_277, x_278, x_279, x_280, x_300); if (lean_obj_tag(x_303) == 0) { @@ -51786,7 +51131,7 @@ lean_dec(x_278); lean_dec_ref(x_277); lean_dec(x_276); lean_dec_ref(x_275); -lean_dec(x_268); +lean_dec(x_269); lean_dec(x_42); lean_dec(x_4); lean_dec(x_3); @@ -51823,16 +51168,16 @@ lean_dec_ref(x_277); lean_dec(x_276); lean_dec_ref(x_275); lean_dec_ref(x_274); -lean_dec(x_273); -lean_dec_ref(x_272); -lean_dec(x_271); -lean_dec(x_270); +lean_dec(x_272); +lean_dec_ref(x_270); lean_dec(x_269); lean_dec(x_268); +lean_dec_ref(x_267); lean_dec(x_266); +lean_dec(x_265); lean_dec(x_264); lean_dec(x_263); -lean_dec_ref(x_262); +lean_dec(x_262); lean_dec(x_45); lean_dec(x_42); lean_dec(x_4); @@ -51871,18 +51216,18 @@ lean_dec(x_353); if (x_354 == 0) { lean_dec(x_48); -x_262 = x_331; -x_263 = x_334; -x_264 = x_333; -x_265 = x_332; +x_262 = x_332; +x_263 = x_331; +x_264 = x_334; +x_265 = x_333; x_266 = x_336; x_267 = x_335; -x_268 = x_338; -x_269 = x_337; -x_270 = x_339; +x_268 = x_337; +x_269 = x_339; +x_270 = x_338; x_271 = x_340; -x_272 = x_342; -x_273 = x_341; +x_272 = x_341; +x_273 = x_342; x_274 = x_343; x_275 = x_344; x_276 = x_345; @@ -51899,17 +51244,17 @@ lean_object* x_355; lean_object* x_356; uint8_t x_357; lean_dec(x_345); lean_dec_ref(x_344); lean_dec_ref(x_343); -lean_dec_ref(x_342); +lean_dec(x_342); lean_dec(x_341); -lean_dec(x_340); lean_dec(x_339); -lean_dec(x_338); +lean_dec_ref(x_338); lean_dec(x_337); lean_dec(x_336); -lean_dec(x_335); +lean_dec_ref(x_335); lean_dec(x_334); lean_dec(x_333); -lean_dec_ref(x_331); +lean_dec(x_332); +lean_dec(x_331); lean_dec(x_45); lean_dec(x_44); lean_dec(x_42); @@ -51970,6 +51315,7 @@ lean_inc(x_366); lean_inc_ref(x_365); lean_inc(x_364); lean_inc_ref(x_363); +lean_inc_ref(x_1); x_375 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue(x_1, x_41, x_374, x_363, x_364, x_365, x_366, x_367, x_368, x_373); if (lean_obj_tag(x_375) == 0) { @@ -53102,18 +52448,18 @@ lean_dec(x_468); x_603 = lean_ctor_get(x_522, 0); lean_inc(x_603); lean_dec(x_522); -x_331 = x_598; -x_332 = x_595; -x_333 = x_596; -x_334 = x_602; -x_335 = x_603; -x_336 = x_599; -x_337 = x_593; -x_338 = x_600; -x_339 = x_469; -x_340 = x_594; -x_341 = x_597; -x_342 = x_601; +x_331 = x_469; +x_332 = x_596; +x_333 = x_593; +x_334 = x_597; +x_335 = x_601; +x_336 = x_602; +x_337 = x_599; +x_338 = x_598; +x_339 = x_600; +x_340 = x_595; +x_341 = x_594; +x_342 = x_603; x_343 = x_592; x_344 = x_363; x_345 = x_364; @@ -56033,8 +55379,8 @@ x_105 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_105, 0, x_104); lean_ctor_set(x_105, 1, x_101); x_12 = x_105; -x_13 = x_102; -x_14 = x_103; +x_13 = x_103; +x_14 = x_102; goto block_18; } block_182: @@ -56103,8 +55449,8 @@ lean_object* x_144; x_144 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_CollectLevelMVars_visitExpr_spec__1___redArg(x_137); lean_ctor_set(x_22, 1, x_144); lean_ctor_set(x_22, 0, x_135); -x_102 = x_108; -x_103 = x_112; +x_102 = x_112; +x_103 = x_108; x_104 = x_22; goto block_106; } @@ -56112,8 +55458,8 @@ else { lean_ctor_set(x_22, 1, x_137); lean_ctor_set(x_22, 0, x_135); -x_102 = x_108; -x_103 = x_112; +x_102 = x_112; +x_103 = x_108; x_104 = x_22; goto block_106; } @@ -56126,8 +55472,8 @@ x_146 = lean_array_uset(x_114, x_131, x_145); x_147 = l_Std_DHashMap_Internal_AssocList_replace___at___Lean_Meta_forEachExpr_x27_visit___at___Lean_Meta_forEachExpr_x27___at___Lean_Meta_forEachExpr___at___Lean_Meta_setMVarUserNamesAt_spec__5_spec__5_spec__5_spec__6___redArg(x_68, x_115, x_132); x_148 = lean_array_uset(x_146, x_131, x_147); lean_ctor_set(x_22, 1, x_148); -x_102 = x_108; -x_103 = x_112; +x_102 = x_112; +x_103 = x_108; x_104 = x_22; goto block_106; } @@ -56179,8 +55525,8 @@ x_174 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_CollectLevelMVars_v x_175 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_175, 0, x_165); lean_ctor_set(x_175, 1, x_174); -x_102 = x_108; -x_103 = x_112; +x_102 = x_112; +x_103 = x_108; x_104 = x_175; goto block_106; } @@ -56190,8 +55536,8 @@ lean_object* x_176; x_176 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_176, 0, x_165); lean_ctor_set(x_176, 1, x_167); -x_102 = x_108; -x_103 = x_112; +x_102 = x_112; +x_103 = x_108; x_104 = x_176; goto block_106; } @@ -56206,8 +55552,8 @@ x_180 = lean_array_uset(x_178, x_161, x_179); x_181 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_181, 0, x_113); lean_ctor_set(x_181, 1, x_180); -x_102 = x_108; -x_103 = x_112; +x_102 = x_112; +x_103 = x_108; x_104 = x_181; goto block_106; } @@ -56267,16 +55613,16 @@ x_220 = lean_ctor_get(x_211, 1); lean_dec(x_220); x_221 = lean_ctor_get(x_211, 0); lean_dec(x_221); -lean_inc(x_213); lean_inc(x_212); +lean_inc(x_214); lean_ctor_set(x_211, 3, x_216); -lean_ctor_set(x_211, 2, x_214); -lean_ctor_set(x_211, 1, x_213); -lean_ctor_set(x_211, 0, x_212); +lean_ctor_set(x_211, 2, x_213); +lean_ctor_set(x_211, 1, x_212); +lean_ctor_set(x_211, 0, x_214); lean_ctor_set_uint8(x_211, sizeof(void*)*4, x_67); x_202 = x_211; -x_203 = x_212; -x_204 = x_213; +x_203 = x_214; +x_204 = x_212; goto block_209; } else @@ -56284,18 +55630,18 @@ else uint8_t x_222; lean_object* x_223; x_222 = lean_ctor_get_uint8(x_211, sizeof(void*)*4 + 1); lean_dec(x_211); -lean_inc(x_213); lean_inc(x_212); +lean_inc(x_214); x_223 = lean_alloc_ctor(0, 4, 2); -lean_ctor_set(x_223, 0, x_212); -lean_ctor_set(x_223, 1, x_213); -lean_ctor_set(x_223, 2, x_214); +lean_ctor_set(x_223, 0, x_214); +lean_ctor_set(x_223, 1, x_212); +lean_ctor_set(x_223, 2, x_213); lean_ctor_set(x_223, 3, x_216); lean_ctor_set_uint8(x_223, sizeof(void*)*4, x_67); lean_ctor_set_uint8(x_223, sizeof(void*)*4 + 1, x_222); x_202 = x_223; -x_203 = x_212; -x_204 = x_213; +x_203 = x_214; +x_204 = x_212; goto block_209; } } @@ -56304,18 +55650,18 @@ else uint8_t x_224; lean_object* x_225; x_224 = lean_ctor_get_uint8(x_211, sizeof(void*)*5 + 1); lean_dec(x_211); -lean_inc(x_213); lean_inc(x_212); +lean_inc(x_214); x_225 = lean_alloc_ctor(0, 4, 2); -lean_ctor_set(x_225, 0, x_212); -lean_ctor_set(x_225, 1, x_213); -lean_ctor_set(x_225, 2, x_214); +lean_ctor_set(x_225, 0, x_214); +lean_ctor_set(x_225, 1, x_212); +lean_ctor_set(x_225, 2, x_213); lean_ctor_set(x_225, 3, x_216); lean_ctor_set_uint8(x_225, sizeof(void*)*4, x_67); lean_ctor_set_uint8(x_225, sizeof(void*)*4 + 1, x_224); x_202 = x_225; -x_203 = x_212; -x_204 = x_213; +x_203 = x_214; +x_204 = x_212; goto block_209; } } @@ -56325,8 +55671,8 @@ lean_object* x_230; x_230 = lean_ctor_get(x_211, 3); lean_inc_ref(x_230); x_212 = x_227; -x_213 = x_228; -x_214 = x_229; +x_213 = x_229; +x_214 = x_228; x_215 = x_230; goto block_226; } @@ -56335,8 +55681,8 @@ block_235: lean_object* x_234; x_234 = lean_ctor_get(x_211, 2); lean_inc(x_234); -x_227 = x_232; -x_228 = x_233; +x_227 = x_233; +x_228 = x_232; x_229 = x_234; goto block_231; } @@ -56386,43 +55732,43 @@ block_38: { lean_object* x_35; lean_object* x_36; lean_object* x_37; x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_32); +lean_ctor_set(x_35, 0, x_30); x_36 = l_Lean_PersistentArray_set___redArg(x_29, x_34, x_35); lean_dec(x_34); x_37 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_37, 0, x_30); +lean_ctor_set(x_37, 0, x_33); lean_ctor_set(x_37, 1, x_36); -lean_ctor_set(x_37, 2, x_31); -x_25 = x_33; +lean_ctor_set(x_37, 2, x_32); +x_25 = x_31; x_26 = x_37; goto block_28; } block_47: { lean_object* x_45; lean_object* x_46; -lean_inc_ref(x_42); -x_45 = l_Lean_PersistentHashMap_insert___at___Lean_LocalContext_mkLocalDecl_spec__0___redArg(x_39, x_44, x_42); -x_46 = lean_ctor_get(x_42, 0); +lean_inc_ref(x_40); +x_45 = l_Lean_PersistentHashMap_insert___at___Lean_LocalContext_mkLocalDecl_spec__0___redArg(x_43, x_44, x_40); +x_46 = lean_ctor_get(x_40, 0); lean_inc(x_46); -x_29 = x_40; -x_30 = x_45; +x_29 = x_39; +x_30 = x_40; x_31 = x_41; x_32 = x_42; -x_33 = x_43; +x_33 = x_45; x_34 = x_46; goto block_38; } block_59: { lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = l_Lean_mkAppB(x_50, x_55, x_51); +x_56 = l_Lean_mkAppB(x_50, x_55, x_52); x_57 = l_Lean_LocalDecl_setType(x_53, x_56); x_58 = lean_ctor_get(x_57, 1); lean_inc(x_58); x_39 = x_48; -x_40 = x_49; -x_41 = x_52; -x_42 = x_57; +x_40 = x_57; +x_41 = x_49; +x_42 = x_51; x_43 = x_54; x_44 = x_58; goto block_47; @@ -56533,13 +55879,13 @@ lean_ctor_set(x_88, 1, x_87); x_89 = l_Lean_Expr_const___override(x_86, x_88); x_90 = lean_ctor_get(x_85, 3); lean_inc_ref(x_90); -x_48 = x_81; -x_49 = x_82; +x_48 = x_82; +x_49 = x_80; x_50 = x_89; -x_51 = x_74; -x_52 = x_83; +x_51 = x_83; +x_52 = x_74; x_53 = x_85; -x_54 = x_80; +x_54 = x_81; x_55 = x_90; goto block_59; } @@ -57162,9 +56508,9 @@ lean_ctor_set(x_39, 0, x_36); x_40 = l_Lean_PersistentArray_set___redArg(x_34, x_38, x_39); lean_dec(x_38); x_41 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_41, 0, x_35); +lean_ctor_set(x_41, 0, x_33); lean_ctor_set(x_41, 1, x_40); -lean_ctor_set(x_41, 2, x_33); +lean_ctor_set(x_41, 2, x_35); x_29 = x_37; x_30 = x_41; goto block_32; @@ -57173,12 +56519,12 @@ block_51: { lean_object* x_49; lean_object* x_50; lean_inc_ref(x_46); -x_49 = l_Lean_PersistentHashMap_insert___at___Lean_LocalContext_mkLocalDecl_spec__0___redArg(x_43, x_48, x_46); +x_49 = l_Lean_PersistentHashMap_insert___at___Lean_LocalContext_mkLocalDecl_spec__0___redArg(x_44, x_48, x_46); x_50 = lean_ctor_get(x_46, 0); lean_inc(x_50); -x_33 = x_45; -x_34 = x_44; -x_35 = x_49; +x_33 = x_49; +x_34 = x_43; +x_35 = x_45; x_36 = x_46; x_37 = x_47; x_38 = x_50; @@ -57188,14 +56534,14 @@ block_63: { lean_object* x_60; lean_object* x_61; lean_object* x_62; x_60 = l_Lean_mkAppB(x_56, x_59, x_58); -x_61 = l_Lean_LocalDecl_setType(x_57, x_60); +x_61 = l_Lean_LocalDecl_setType(x_52, x_60); x_62 = lean_ctor_get(x_61, 1); lean_inc(x_62); -x_43 = x_52; +x_43 = x_53; x_44 = x_54; -x_45 = x_53; +x_45 = x_55; x_46 = x_61; -x_47 = x_55; +x_47 = x_57; x_48 = x_62; goto block_51; } @@ -57305,12 +56651,12 @@ lean_ctor_set(x_92, 1, x_91); x_93 = l_Lean_Expr_const___override(x_90, x_92); x_94 = lean_ctor_get(x_89, 3); lean_inc_ref(x_94); -x_52 = x_85; -x_53 = x_87; -x_54 = x_86; -x_55 = x_84; +x_52 = x_89; +x_53 = x_86; +x_54 = x_85; +x_55 = x_87; x_56 = x_93; -x_57 = x_89; +x_57 = x_84; x_58 = x_78; x_59 = x_94; goto block_63; @@ -59851,9 +59197,9 @@ if (x_56 == 0) lean_dec(x_55); lean_dec_ref(x_54); lean_dec_ref(x_53); -x_13 = x_50; -x_14 = x_52; -x_15 = x_51; +x_13 = x_51; +x_14 = x_50; +x_15 = x_52; goto block_34; } else @@ -59866,7 +59212,7 @@ lean_inc_ref(x_10); lean_inc(x_9); lean_inc_ref(x_8); lean_inc(x_4); -x_58 = l_Array_foldrMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkFlatCtorExpr_spec__2(x_53, x_4, x_54, x_57, x_43, x_50, x_52, x_6, x_7, x_8, x_9, x_10, x_11, x_51); +x_58 = l_Array_foldrMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkFlatCtorExpr_spec__2(x_53, x_4, x_54, x_57, x_43, x_51, x_50, x_6, x_7, x_8, x_9, x_10, x_11, x_52); lean_dec_ref(x_54); if (lean_obj_tag(x_58) == 0) { @@ -59936,9 +59282,9 @@ if (x_77 == 0) { lean_dec(x_64); lean_dec_ref(x_37); -x_50 = x_74; -x_51 = x_75; -x_52 = x_70; +x_50 = x_70; +x_51 = x_74; +x_52 = x_75; x_53 = x_72; x_54 = x_76; goto block_63; @@ -59951,9 +59297,9 @@ if (x_78 == 0) { lean_dec(x_64); lean_dec_ref(x_37); -x_50 = x_74; -x_51 = x_75; -x_52 = x_70; +x_50 = x_70; +x_51 = x_74; +x_52 = x_75; x_53 = x_72; x_54 = x_76; goto block_63; @@ -59965,9 +59311,9 @@ x_79 = lean_usize_of_nat(x_64); lean_dec(x_64); x_80 = l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkFlatCtorExpr_spec__3(x_37, x_43, x_79, x_76); lean_dec_ref(x_37); -x_50 = x_74; -x_51 = x_75; -x_52 = x_70; +x_50 = x_70; +x_51 = x_74; +x_52 = x_75; x_53 = x_72; x_54 = x_80; goto block_63; @@ -64379,7 +63725,7 @@ goto block_13; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__8_spec__8___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_24; lean_object* x_25; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; uint8_t x_44; lean_object* x_45; lean_object* x_46; uint8_t x_55; lean_object* x_56; uint8_t x_59; uint8_t x_64; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_75; lean_object* x_76; uint8_t x_86; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_24; lean_object* x_25; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; uint8_t x_44; lean_object* x_45; lean_object* x_46; uint8_t x_55; lean_object* x_56; uint8_t x_59; uint8_t x_64; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_75; lean_object* x_76; uint8_t x_86; lean_inc_ref(x_2); x_24 = lean_array_get(x_2, x_3, x_11); lean_inc(x_4); @@ -64467,11 +63813,11 @@ return x_32; block_43: { uint8_t x_39; -x_39 = lean_nat_dec_lt(x_37, x_38); +x_39 = lean_nat_dec_lt(x_36, x_38); if (x_39 == 0) { lean_dec(x_38); -lean_dec(x_37); +lean_dec(x_36); lean_dec_ref(x_35); lean_dec_ref(x_34); lean_dec(x_11); @@ -64486,11 +63832,11 @@ goto block_33; else { size_t x_40; size_t x_41; uint8_t x_42; -x_40 = lean_usize_of_nat(x_37); -lean_dec(x_37); +x_40 = lean_usize_of_nat(x_36); +lean_dec(x_36); x_41 = lean_usize_of_nat(x_38); lean_dec(x_38); -x_42 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__6(x_34, x_36, x_35, x_40, x_41); +x_42 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__6(x_34, x_37, x_35, x_40, x_41); lean_dec_ref(x_35); if (x_42 == 0) { @@ -64551,8 +63897,8 @@ if (x_53 == 0) { lean_dec(x_50); x_35 = x_48; -x_36 = x_44; -x_37 = x_49; +x_36 = x_49; +x_37 = x_44; x_38 = x_52; goto block_43; } @@ -64560,8 +63906,8 @@ else { lean_dec(x_52); x_35 = x_48; -x_36 = x_44; -x_37 = x_49; +x_36 = x_49; +x_37 = x_44; x_38 = x_50; goto block_43; } @@ -64630,25 +63976,25 @@ goto block_63; block_74: { uint8_t x_70; -x_70 = lean_nat_dec_lt(x_68, x_69); +x_70 = lean_nat_dec_lt(x_67, x_69); if (x_70 == 0) { lean_dec(x_69); -lean_dec(x_68); -lean_dec_ref(x_66); -x_64 = x_67; +lean_dec_ref(x_68); +lean_dec(x_67); +x_64 = x_66; goto block_65; } else { size_t x_71; size_t x_72; uint8_t x_73; -x_71 = lean_usize_of_nat(x_68); -lean_dec(x_68); +x_71 = lean_usize_of_nat(x_67); +lean_dec(x_67); x_72 = lean_usize_of_nat(x_69); lean_dec(x_69); lean_inc_ref(x_34); -x_73 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__7(x_34, x_66, x_71, x_72); -lean_dec_ref(x_66); +x_73 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__7(x_34, x_68, x_71, x_72); +lean_dec_ref(x_68); if (x_73 == 0) { x_64 = x_70; @@ -64697,18 +64043,18 @@ x_84 = lean_nat_dec_le(x_80, x_83); if (x_84 == 0) { lean_dec(x_80); -x_66 = x_78; -x_67 = x_81; -x_68 = x_79; +x_66 = x_81; +x_67 = x_79; +x_68 = x_78; x_69 = x_83; goto block_74; } else { lean_dec(x_83); -x_66 = x_78; -x_67 = x_81; -x_68 = x_79; +x_66 = x_81; +x_67 = x_79; +x_68 = x_78; x_69 = x_80; goto block_74; } @@ -64827,7 +64173,7 @@ goto block_13; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__8___redArg(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, uint8_t x_8, lean_object* x_9, lean_object* x_10, uint8_t x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21, lean_object* x_22) { _start: { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_33; lean_object* x_34; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; uint8_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_64; lean_object* x_65; uint8_t x_68; uint8_t x_73; uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_84; lean_object* x_85; uint8_t x_95; +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_33; lean_object* x_34; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; uint8_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_64; lean_object* x_65; uint8_t x_68; uint8_t x_73; lean_object* x_75; lean_object* x_76; uint8_t x_77; lean_object* x_78; lean_object* x_84; lean_object* x_85; uint8_t x_95; lean_inc_ref(x_2); x_33 = lean_array_get(x_2, x_3, x_14); lean_inc(x_4); @@ -65077,25 +64423,25 @@ goto block_72; block_83: { uint8_t x_79; -x_79 = lean_nat_dec_lt(x_76, x_78); +x_79 = lean_nat_dec_lt(x_75, x_78); if (x_79 == 0) { lean_dec(x_78); -lean_dec_ref(x_77); -lean_dec(x_76); -x_73 = x_75; +lean_dec_ref(x_76); +lean_dec(x_75); +x_73 = x_77; goto block_74; } else { size_t x_80; size_t x_81; uint8_t x_82; -x_80 = lean_usize_of_nat(x_76); -lean_dec(x_76); +x_80 = lean_usize_of_nat(x_75); +lean_dec(x_75); x_81 = lean_usize_of_nat(x_78); lean_dec(x_78); lean_inc_ref(x_43); -x_82 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__7(x_43, x_77, x_80, x_81); -lean_dec_ref(x_77); +x_82 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__7(x_43, x_76, x_80, x_81); +lean_dec_ref(x_76); if (x_82 == 0) { x_73 = x_79; @@ -65144,18 +64490,18 @@ x_93 = lean_nat_dec_le(x_89, x_92); if (x_93 == 0) { lean_dec(x_89); -x_75 = x_90; -x_76 = x_88; -x_77 = x_87; +x_75 = x_88; +x_76 = x_87; +x_77 = x_90; x_78 = x_92; goto block_83; } else { lean_dec(x_92); -x_75 = x_90; -x_76 = x_88; -x_77 = x_87; +x_75 = x_88; +x_76 = x_87; +x_77 = x_90; x_78 = x_89; goto block_83; } @@ -66773,12 +66119,12 @@ goto block_32; block_22: { uint8_t x_17; -x_17 = lean_nat_dec_lt(x_15, x_16); +x_17 = lean_nat_dec_lt(x_14, x_16); if (x_17 == 0) { lean_dec(x_16); -lean_dec(x_15); -lean_dec_ref(x_14); +lean_dec_ref(x_15); +lean_dec(x_14); lean_dec_ref(x_13); x_7 = x_6; goto block_11; @@ -66786,12 +66132,12 @@ goto block_11; else { size_t x_18; size_t x_19; uint8_t x_20; -x_18 = lean_usize_of_nat(x_15); -lean_dec(x_15); +x_18 = lean_usize_of_nat(x_14); +lean_dec(x_14); x_19 = lean_usize_of_nat(x_16); lean_dec(x_16); -x_20 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__5(x_1, x_14, x_18, x_19); -lean_dec_ref(x_14); +x_20 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__5(x_1, x_15, x_18, x_19); +lean_dec_ref(x_15); if (x_20 == 0) { lean_dec_ref(x_13); @@ -66837,16 +66183,16 @@ x_31 = lean_nat_dec_le(x_28, x_30); if (x_31 == 0) { lean_dec(x_28); -x_14 = x_26; -x_15 = x_27; +x_14 = x_27; +x_15 = x_26; x_16 = x_30; goto block_22; } else { lean_dec(x_30); -x_14 = x_26; -x_15 = x_27; +x_14 = x_27; +x_15 = x_26; x_16 = x_28; goto block_22; } @@ -67970,21 +67316,21 @@ goto block_52; block_62: { uint8_t x_61; -x_61 = lean_nat_dec_le(x_60, x_59); +x_61 = lean_nat_dec_le(x_60, x_58); if (x_61 == 0) { -lean_dec(x_59); +lean_dec(x_58); lean_inc(x_60); x_53 = x_60; -x_54 = x_58; +x_54 = x_59; x_55 = x_60; goto block_57; } else { x_53 = x_60; -x_54 = x_58; -x_55 = x_59; +x_54 = x_59; +x_55 = x_58; goto block_57; } } @@ -68006,16 +67352,16 @@ x_71 = lean_nat_dec_le(x_1, x_70); if (x_71 == 0) { lean_inc(x_70); -x_58 = x_66; -x_59 = x_70; +x_58 = x_70; +x_59 = x_66; x_60 = x_70; goto block_62; } else { lean_inc(x_1); -x_58 = x_66; -x_59 = x_70; +x_58 = x_70; +x_59 = x_66; x_60 = x_1; goto block_62; } @@ -68207,21 +67553,21 @@ goto block_109; block_119: { uint8_t x_118; -x_118 = lean_nat_dec_le(x_117, x_116); +x_118 = lean_nat_dec_le(x_117, x_115); if (x_118 == 0) { -lean_dec(x_116); +lean_dec(x_115); lean_inc(x_117); x_110 = x_117; -x_111 = x_115; +x_111 = x_116; x_112 = x_117; goto block_114; } else { x_110 = x_117; -x_111 = x_115; -x_112 = x_116; +x_111 = x_116; +x_112 = x_115; goto block_114; } } @@ -68243,16 +67589,16 @@ x_128 = lean_nat_dec_le(x_1, x_127); if (x_128 == 0) { lean_inc(x_127); -x_115 = x_123; -x_116 = x_127; +x_115 = x_127; +x_116 = x_123; x_117 = x_127; goto block_119; } else { lean_inc(x_1); -x_115 = x_123; -x_116 = x_127; +x_115 = x_127; +x_116 = x_123; x_117 = x_1; goto block_119; } @@ -68463,21 +67809,21 @@ goto block_169; block_179: { uint8_t x_178; -x_178 = lean_nat_dec_le(x_177, x_176); +x_178 = lean_nat_dec_le(x_177, x_175); if (x_178 == 0) { -lean_dec(x_176); +lean_dec(x_175); lean_inc(x_177); x_170 = x_177; -x_171 = x_175; +x_171 = x_176; x_172 = x_177; goto block_174; } else { x_170 = x_177; -x_171 = x_175; -x_172 = x_176; +x_171 = x_176; +x_172 = x_175; goto block_174; } } @@ -68499,16 +67845,16 @@ x_188 = lean_nat_dec_le(x_1, x_187); if (x_188 == 0) { lean_inc(x_187); -x_175 = x_183; -x_176 = x_187; +x_175 = x_187; +x_176 = x_183; x_177 = x_187; goto block_179; } else { lean_inc(x_1); -x_175 = x_183; -x_176 = x_187; +x_175 = x_187; +x_176 = x_183; x_177 = x_1; goto block_179; } @@ -69675,7 +69021,7 @@ lean_ctor_set(x_56, 9, x_34); lean_ctor_set(x_56, 10, x_48); lean_ctor_set(x_56, 11, x_55); lean_ctor_set_uint8(x_56, sizeof(void*)*12, x_29); -x_57 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_replaceFieldInfo___redArg(x_56, x_52, x_53, x_49, x_51, x_50, x_54); +x_57 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_replaceFieldInfo___redArg(x_56, x_54, x_51, x_50, x_49, x_53, x_52); if (lean_obj_tag(x_57) == 0) { lean_object* x_58; lean_object* x_59; lean_object* x_60; @@ -69705,12 +69051,12 @@ x_69 = lean_nat_dec_lt(x_46, x_68); lean_dec(x_68); if (x_69 == 0) { -x_49 = x_64; -x_50 = x_66; -x_51 = x_65; -x_52 = x_62; -x_53 = x_63; -x_54 = x_67; +x_49 = x_65; +x_50 = x_64; +x_51 = x_63; +x_52 = x_67; +x_53 = x_66; +x_54 = x_62; x_55 = x_24; goto block_61; } @@ -69723,12 +69069,12 @@ lean_inc(x_71); lean_dec_ref(x_70); x_72 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_72, 0, x_71); -x_49 = x_64; -x_50 = x_66; -x_51 = x_65; -x_52 = x_62; -x_53 = x_63; -x_54 = x_67; +x_49 = x_65; +x_50 = x_64; +x_51 = x_63; +x_52 = x_67; +x_53 = x_66; +x_54 = x_62; x_55 = x_72; goto block_61; } @@ -69821,7 +69167,7 @@ lean_ctor_set(x_100, 9, x_34); lean_ctor_set(x_100, 10, x_92); lean_ctor_set(x_100, 11, x_99); lean_ctor_set_uint8(x_100, sizeof(void*)*12, x_29); -x_101 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_replaceFieldInfo___redArg(x_100, x_96, x_97, x_93, x_95, x_94, x_98); +x_101 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_replaceFieldInfo___redArg(x_100, x_98, x_95, x_94, x_93, x_97, x_96); if (lean_obj_tag(x_101) == 0) { lean_object* x_102; lean_object* x_103; lean_object* x_104; @@ -69851,12 +69197,12 @@ x_113 = lean_nat_dec_lt(x_90, x_112); lean_dec(x_112); if (x_113 == 0) { -x_93 = x_108; -x_94 = x_110; -x_95 = x_109; -x_96 = x_106; -x_97 = x_107; -x_98 = x_111; +x_93 = x_109; +x_94 = x_108; +x_95 = x_107; +x_96 = x_111; +x_97 = x_110; +x_98 = x_106; x_99 = x_24; goto block_105; } @@ -69869,12 +69215,12 @@ lean_inc(x_115); lean_dec_ref(x_114); x_116 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_116, 0, x_115); -x_93 = x_108; -x_94 = x_110; -x_95 = x_109; -x_96 = x_106; -x_97 = x_107; -x_98 = x_111; +x_93 = x_109; +x_94 = x_108; +x_95 = x_107; +x_96 = x_111; +x_97 = x_110; +x_98 = x_106; x_99 = x_116; goto block_105; } @@ -69984,7 +69330,7 @@ lean_ctor_set(x_147, 9, x_34); lean_ctor_set(x_147, 10, x_139); lean_ctor_set(x_147, 11, x_146); lean_ctor_set_uint8(x_147, sizeof(void*)*12, x_29); -x_148 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_replaceFieldInfo___redArg(x_147, x_143, x_144, x_140, x_142, x_141, x_145); +x_148 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_replaceFieldInfo___redArg(x_147, x_145, x_142, x_141, x_140, x_144, x_143); if (lean_obj_tag(x_148) == 0) { lean_object* x_149; lean_object* x_150; lean_object* x_151; @@ -70014,12 +69360,12 @@ x_160 = lean_nat_dec_lt(x_137, x_159); lean_dec(x_159); if (x_160 == 0) { -x_140 = x_155; -x_141 = x_157; -x_142 = x_156; -x_143 = x_153; -x_144 = x_154; -x_145 = x_158; +x_140 = x_156; +x_141 = x_155; +x_142 = x_154; +x_143 = x_158; +x_144 = x_157; +x_145 = x_153; x_146 = x_24; goto block_152; } @@ -70032,12 +69378,12 @@ lean_inc(x_162); lean_dec_ref(x_161); x_163 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_163, 0, x_162); -x_140 = x_155; -x_141 = x_157; -x_142 = x_156; -x_143 = x_153; -x_144 = x_154; -x_145 = x_158; +x_140 = x_156; +x_141 = x_155; +x_142 = x_154; +x_143 = x_158; +x_144 = x_157; +x_145 = x_153; x_146 = x_163; goto block_152; } @@ -70343,7 +69689,7 @@ lean_ctor_set(x_58, 9, x_36); lean_ctor_set(x_58, 10, x_50); lean_ctor_set(x_58, 11, x_57); lean_ctor_set_uint8(x_58, sizeof(void*)*12, x_31); -x_59 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_replaceFieldInfo___redArg(x_58, x_56, x_53, x_54, x_52, x_55, x_51); +x_59 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_replaceFieldInfo___redArg(x_58, x_54, x_56, x_53, x_51, x_55, x_52); if (lean_obj_tag(x_59) == 0) { lean_object* x_60; lean_object* x_61; lean_object* x_62; @@ -70373,12 +69719,12 @@ x_71 = lean_nat_dec_lt(x_48, x_70); lean_dec(x_70); if (x_71 == 0) { -x_51 = x_69; -x_52 = x_67; -x_53 = x_65; -x_54 = x_66; +x_51 = x_67; +x_52 = x_69; +x_53 = x_66; +x_54 = x_64; x_55 = x_68; -x_56 = x_64; +x_56 = x_65; x_57 = x_26; goto block_63; } @@ -70391,12 +69737,12 @@ lean_inc(x_73); lean_dec_ref(x_72); x_74 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_74, 0, x_73); -x_51 = x_69; -x_52 = x_67; -x_53 = x_65; -x_54 = x_66; +x_51 = x_67; +x_52 = x_69; +x_53 = x_66; +x_54 = x_64; x_55 = x_68; -x_56 = x_64; +x_56 = x_65; x_57 = x_74; goto block_63; } @@ -70489,7 +69835,7 @@ lean_ctor_set(x_102, 9, x_36); lean_ctor_set(x_102, 10, x_94); lean_ctor_set(x_102, 11, x_101); lean_ctor_set_uint8(x_102, sizeof(void*)*12, x_31); -x_103 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_replaceFieldInfo___redArg(x_102, x_100, x_97, x_98, x_96, x_99, x_95); +x_103 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_replaceFieldInfo___redArg(x_102, x_98, x_100, x_97, x_95, x_99, x_96); if (lean_obj_tag(x_103) == 0) { lean_object* x_104; lean_object* x_105; lean_object* x_106; @@ -70519,12 +69865,12 @@ x_115 = lean_nat_dec_lt(x_92, x_114); lean_dec(x_114); if (x_115 == 0) { -x_95 = x_113; -x_96 = x_111; -x_97 = x_109; -x_98 = x_110; +x_95 = x_111; +x_96 = x_113; +x_97 = x_110; +x_98 = x_108; x_99 = x_112; -x_100 = x_108; +x_100 = x_109; x_101 = x_26; goto block_107; } @@ -70537,12 +69883,12 @@ lean_inc(x_117); lean_dec_ref(x_116); x_118 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_118, 0, x_117); -x_95 = x_113; -x_96 = x_111; -x_97 = x_109; -x_98 = x_110; +x_95 = x_111; +x_96 = x_113; +x_97 = x_110; +x_98 = x_108; x_99 = x_112; -x_100 = x_108; +x_100 = x_109; x_101 = x_118; goto block_107; } @@ -70652,7 +69998,7 @@ lean_ctor_set(x_149, 9, x_36); lean_ctor_set(x_149, 10, x_141); lean_ctor_set(x_149, 11, x_148); lean_ctor_set_uint8(x_149, sizeof(void*)*12, x_31); -x_150 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_replaceFieldInfo___redArg(x_149, x_147, x_144, x_145, x_143, x_146, x_142); +x_150 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_replaceFieldInfo___redArg(x_149, x_145, x_147, x_144, x_142, x_146, x_143); if (lean_obj_tag(x_150) == 0) { lean_object* x_151; lean_object* x_152; lean_object* x_153; @@ -70682,12 +70028,12 @@ x_162 = lean_nat_dec_lt(x_139, x_161); lean_dec(x_161); if (x_162 == 0) { -x_142 = x_160; -x_143 = x_158; -x_144 = x_156; -x_145 = x_157; +x_142 = x_158; +x_143 = x_160; +x_144 = x_157; +x_145 = x_155; x_146 = x_159; -x_147 = x_155; +x_147 = x_156; x_148 = x_26; goto block_154; } @@ -70700,12 +70046,12 @@ lean_inc(x_164); lean_dec_ref(x_163); x_165 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_165, 0, x_164); -x_142 = x_160; -x_143 = x_158; -x_144 = x_156; -x_145 = x_157; +x_142 = x_158; +x_143 = x_160; +x_144 = x_157; +x_145 = x_155; x_146 = x_159; -x_147 = x_155; +x_147 = x_156; x_148 = x_165; goto block_154; } @@ -71972,9 +71318,9 @@ lean_dec_ref(x_6); x_39 = lean_ctor_get(x_28, 2); lean_inc(x_39); lean_dec(x_28); -x_16 = x_36; -x_17 = x_32; -x_18 = x_33; +x_16 = x_32; +x_17 = x_33; +x_18 = x_36; x_19 = x_39; goto block_23; } @@ -72046,10 +71392,10 @@ block_23: { uint8_t x_20; lean_object* x_21; x_20 = 0; -x_21 = l_Lean_Expr_lam___override(x_19, x_17, x_16, x_20); +x_21 = l_Lean_Expr_lam___override(x_19, x_16, x_18, x_20); x_4 = x_15; x_6 = x_21; -x_12 = x_18; +x_12 = x_17; goto _start; } } @@ -72134,36 +71480,40 @@ lean_inc(x_45); lean_dec(x_44); if (lean_obj_tag(x_45) == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; x_46 = lean_ctor_get(x_25, 3); lean_inc(x_46); lean_dec_ref(x_25); x_47 = lean_ctor_get(x_45, 0); lean_inc_ref(x_47); lean_dec(x_45); +lean_inc(x_46); x_48 = l_Lean_mkDefaultFnOfProjFn(x_46); lean_inc(x_2); +x_49 = lean_apply_2(x_2, x_48, x_47); +x_50 = l_Lean_isPrivateName(x_46); +lean_dec(x_46); lean_inc(x_13); lean_inc_ref(x_12); lean_inc(x_11); lean_inc_ref(x_10); lean_inc(x_9); lean_inc_ref(x_8); -x_49 = lean_apply_10(x_2, x_48, x_47, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_49) == 0) +x_51 = l_Lean_withoutExporting___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue_spec__0___redArg(x_49, x_50, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_51) == 0) { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec_ref(x_49); -x_52 = lean_ctor_get(x_50, 1); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); -lean_dec(x_50); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec_ref(x_51); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); x_15 = x_1; -x_16 = x_52; -x_17 = x_51; +x_16 = x_54; +x_17 = x_53; goto block_21; } else @@ -72175,7 +71525,7 @@ lean_dec_ref(x_10); lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_2); -return x_49; +return x_51; } } else @@ -73511,11 +72861,11 @@ x_39 = lean_array_size(x_38); x_40 = 0; x_41 = l_Array_mapMUnsafe_map___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkFlatCtorExpr_spec__1(x_39, x_40, x_38); x_42 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkCtor___closed__1; -x_43 = lean_nat_dec_lt(x_19, x_36); +x_43 = lean_nat_dec_lt(x_19, x_37); if (x_43 == 0) { -lean_dec(x_36); -x_20 = x_37; +lean_dec(x_37); +x_20 = x_36; x_21 = x_40; x_22 = x_41; x_23 = x_42; @@ -73524,11 +72874,11 @@ goto block_35; else { uint8_t x_44; -x_44 = lean_nat_dec_le(x_36, x_36); +x_44 = lean_nat_dec_le(x_37, x_37); if (x_44 == 0) { -lean_dec(x_36); -x_20 = x_37; +lean_dec(x_37); +x_20 = x_36; x_21 = x_40; x_22 = x_41; x_23 = x_42; @@ -73537,10 +72887,10 @@ goto block_35; else { size_t x_45; lean_object* x_46; -x_45 = lean_usize_of_nat(x_36); -lean_dec(x_36); +x_45 = lean_usize_of_nat(x_37); +lean_dec(x_37); x_46 = l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkFlatCtorExpr_spec__3(x_18, x_40, x_45, x_42); -x_20 = x_37; +x_20 = x_36; x_21 = x_40; x_22 = x_41; x_23 = x_46; @@ -73556,8 +72906,8 @@ x_50 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkCtor___c x_51 = lean_nat_dec_lt(x_19, x_49); if (x_51 == 0) { -x_36 = x_49; -x_37 = x_48; +x_36 = x_48; +x_37 = x_49; x_38 = x_50; goto block_47; } @@ -73567,8 +72917,8 @@ uint8_t x_52; x_52 = lean_nat_dec_le(x_49, x_49); if (x_52 == 0) { -x_36 = x_49; -x_37 = x_48; +x_36 = x_48; +x_37 = x_49; x_38 = x_50; goto block_47; } @@ -73578,8 +72928,8 @@ size_t x_53; size_t x_54; lean_object* x_55; x_53 = 0; x_54 = lean_usize_of_nat(x_49); x_55 = l_Array_foldlMUnsafe_fold___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkFlatCtorExpr_spec__4(x_18, x_53, x_54, x_50); -x_36 = x_49; -x_37 = x_48; +x_36 = x_48; +x_37 = x_49; x_38 = x_55; goto block_47; } @@ -73758,7 +73108,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs___lam__2___closed__2; x_2 = lean_unsigned_to_nat(9u); -x_3 = lean_unsigned_to_nat(1305u); +x_3 = lean_unsigned_to_nat(1317u); x_4 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_setSourceInstImplicit___closed__0; x_5 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs___lam__2___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -74307,7 +73657,7 @@ lean_inc_ref(x_6); x_13 = l_Lean_Meta_isProp(x_6, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; uint8_t 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_42; uint8_t x_43; uint8_t 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_64; lean_object* x_65; uint8_t x_66; uint8_t 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; uint8_t x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; uint8_t x_107; uint8_t x_108; uint8_t x_109; uint8_t x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; uint8_t x_177; uint8_t x_178; uint8_t x_179; uint8_t x_205; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t 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; uint8_t x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_64; lean_object* x_65; uint8_t 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_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; uint8_t x_107; uint8_t x_108; lean_object* x_109; uint8_t x_110; uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; uint8_t x_177; uint8_t x_178; uint8_t x_179; uint8_t x_205; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); @@ -74367,8 +73717,8 @@ else { uint8_t x_212; x_212 = 3; -x_177 = x_24; -x_178 = x_211; +x_177 = x_211; +x_178 = x_24; x_179 = x_212; goto block_204; } @@ -74376,12 +73726,12 @@ goto block_204; block_41: { lean_object* x_34; uint8_t x_35; -lean_inc(x_25); -x_34 = l_Lean_Elab_addDeclarationRangesFromSyntax___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkCoercionToCopiedParent_spec__0(x_25, x_22, x_28, x_29, x_30, x_31, x_32, x_33); +lean_inc(x_27); +x_34 = l_Lean_Elab_addDeclarationRangesFromSyntax___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkCoercionToCopiedParent_spec__0(x_27, x_22, x_26, x_29, x_30, x_31, x_32, x_33); lean_dec(x_32); lean_dec(x_30); lean_dec_ref(x_29); -lean_dec(x_28); +lean_dec(x_26); lean_dec(x_22); x_35 = !lean_is_exclusive(x_34); if (x_35 == 0) @@ -74390,9 +73740,9 @@ lean_object* x_36; lean_object* x_37; x_36 = lean_ctor_get(x_34, 0); lean_dec(x_36); x_37 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_37, 0, x_27); -lean_ctor_set(x_37, 1, x_25); -lean_ctor_set_uint8(x_37, sizeof(void*)*2, x_26); +lean_ctor_set(x_37, 0, x_28); +lean_ctor_set(x_37, 1, x_27); +lean_ctor_set_uint8(x_37, sizeof(void*)*2, x_25); lean_ctor_set(x_34, 0, x_37); return x_34; } @@ -74403,9 +73753,9 @@ x_38 = lean_ctor_get(x_34, 1); lean_inc(x_38); lean_dec(x_34); x_39 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_39, 0, x_27); -lean_ctor_set(x_39, 1, x_25); -lean_ctor_set_uint8(x_39, sizeof(void*)*2, x_26); +lean_ctor_set(x_39, 0, x_28); +lean_ctor_set(x_39, 1, x_27); +lean_ctor_set_uint8(x_39, sizeof(void*)*2, x_25); x_40 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_40, 0, x_39); lean_ctor_set(x_40, 1, x_38); @@ -74428,7 +73778,7 @@ lean_inc(x_53); x_54 = lean_ctor_get(x_52, 1); lean_inc(x_54); lean_dec_ref(x_52); -x_55 = l_Lean_BinderInfo_isInstImplicit(x_43); +x_55 = l_Lean_BinderInfo_isInstImplicit(x_45); if (x_55 == 0) { uint8_t x_56; @@ -74437,14 +73787,14 @@ lean_dec(x_53); if (x_56 == 0) { lean_object* x_57; lean_object* x_58; -lean_inc(x_42); -x_57 = l_Lean_setReducibleAttribute___at_____private_Lean_Meta_Constructions_BRecOn_0__Lean_mkBelowFromRec_spec__5(x_42, x_47, x_48, x_49, x_50, x_54); +lean_inc(x_44); +x_57 = l_Lean_setReducibleAttribute___at_____private_Lean_Meta_Constructions_BRecOn_0__Lean_mkBelowFromRec_spec__5(x_44, x_47, x_48, x_49, x_50, x_54); x_58 = lean_ctor_get(x_57, 1); lean_inc(x_58); lean_dec_ref(x_57); x_25 = x_42; -x_26 = x_44; -x_27 = x_45; +x_26 = x_43; +x_27 = x_44; x_28 = x_46; x_29 = x_47; x_30 = x_48; @@ -74456,8 +73806,8 @@ goto block_41; else { x_25 = x_42; -x_26 = x_44; -x_27 = x_45; +x_26 = x_43; +x_27 = x_44; x_28 = x_46; x_29 = x_47; x_30 = x_48; @@ -74471,8 +73821,8 @@ else { lean_dec(x_53); x_25 = x_42; -x_26 = x_44; -x_27 = x_45; +x_26 = x_43; +x_27 = x_44; x_28 = x_46; x_29 = x_47; x_30 = x_48; @@ -74490,8 +73840,8 @@ lean_dec_ref(x_49); lean_dec(x_48); lean_dec_ref(x_47); lean_dec(x_46); -lean_dec(x_45); -lean_dec(x_42); +lean_dec(x_44); +lean_dec(x_43); lean_dec(x_22); x_59 = !lean_is_exclusive(x_52); if (x_59 == 0) @@ -74516,36 +73866,36 @@ return x_62; block_81: { lean_object* x_75; -lean_inc(x_72); -lean_inc_ref(x_73); -x_75 = l_Lean_addDecl(x_74, x_73, x_72, x_64); +lean_inc(x_73); +lean_inc_ref(x_71); +x_75 = l_Lean_addDecl(x_74, x_71, x_73, x_72); if (lean_obj_tag(x_75) == 0) { lean_object* x_76; x_76 = lean_ctor_get(x_75, 1); lean_inc(x_76); lean_dec_ref(x_75); -x_42 = x_65; -x_43 = x_66; +x_42 = x_64; +x_43 = x_65; x_44 = x_67; -x_45 = x_68; -x_46 = x_70; -x_47 = x_71; +x_45 = x_66; +x_46 = x_68; +x_47 = x_70; x_48 = x_69; -x_49 = x_73; -x_50 = x_72; +x_49 = x_71; +x_50 = x_73; x_51 = x_76; goto block_63; } else { uint8_t x_77; -lean_dec_ref(x_73); -lean_dec(x_72); +lean_dec(x_73); lean_dec_ref(x_71); -lean_dec(x_70); +lean_dec_ref(x_70); lean_dec(x_69); lean_dec(x_68); +lean_dec(x_67); lean_dec(x_65); lean_dec(x_22); lean_dec_ref(x_6); @@ -74573,54 +73923,54 @@ block_106: { lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; x_96 = lean_box(0); -lean_inc(x_91); +lean_inc(x_83); if (lean_is_scalar(x_21)) { x_97 = lean_alloc_ctor(1, 2, 0); } else { x_97 = x_21; lean_ctor_set_tag(x_97, 1); } -lean_ctor_set(x_97, 0, x_91); +lean_ctor_set(x_97, 0, x_83); lean_ctor_set(x_97, 1, x_96); x_98 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_98, 0, x_92); -lean_ctor_set(x_98, 1, x_83); -lean_ctor_set(x_98, 2, x_87); +lean_ctor_set(x_98, 0, x_89); +lean_ctor_set(x_98, 1, x_87); +lean_ctor_set(x_98, 2, x_82); lean_ctor_set(x_98, 3, x_97); lean_ctor_set_uint8(x_98, sizeof(void*)*4, x_95); x_99 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_99, 0, x_98); -lean_inc(x_89); -lean_inc_ref(x_88); -x_100 = l_Lean_addAndCompile(x_99, x_88, x_89, x_90); +lean_inc(x_88); +lean_inc_ref(x_93); +x_100 = l_Lean_addAndCompile(x_99, x_93, x_88, x_94); if (lean_obj_tag(x_100) == 0) { lean_object* x_101; x_101 = lean_ctor_get(x_100, 1); lean_inc(x_101); lean_dec_ref(x_100); -x_42 = x_91; -x_43 = x_82; -x_44 = x_84; -x_45 = x_85; -x_46 = x_94; -x_47 = x_93; -x_48 = x_86; -x_49 = x_88; -x_50 = x_89; +x_42 = x_90; +x_43 = x_91; +x_44 = x_83; +x_45 = x_92; +x_46 = x_86; +x_47 = x_84; +x_48 = x_85; +x_49 = x_93; +x_50 = x_88; x_51 = x_101; goto block_63; } else { uint8_t x_102; -lean_dec(x_94); lean_dec_ref(x_93); lean_dec(x_91); -lean_dec(x_89); -lean_dec_ref(x_88); +lean_dec(x_88); lean_dec(x_86); lean_dec(x_85); +lean_dec_ref(x_84); +lean_dec(x_83); lean_dec(x_22); lean_dec_ref(x_6); x_102 = !lean_is_exclusive(x_100); @@ -74646,7 +73996,7 @@ return x_105; block_176: { lean_object* x_118; -x_118 = l_Lean_Meta_mkLambdaFVars(x_111, x_7, x_108, x_109, x_108, x_109, x_110, x_113, x_114, x_115, x_116, x_117); +x_118 = l_Lean_Meta_mkLambdaFVars(x_109, x_7, x_107, x_110, x_107, x_110, x_111, x_113, x_114, x_115, x_116, x_117); if (lean_obj_tag(x_118) == 0) { lean_object* x_119; lean_object* x_120; lean_object* x_121; @@ -74656,7 +74006,7 @@ x_120 = lean_ctor_get(x_118, 1); lean_inc(x_120); lean_dec_ref(x_118); lean_inc_ref(x_2); -x_121 = l_Lean_Meta_mkLambdaFVars(x_2, x_119, x_108, x_109, x_108, x_109, x_110, x_113, x_114, x_115, x_116, x_120); +x_121 = l_Lean_Meta_mkLambdaFVars(x_2, x_119, x_107, x_110, x_107, x_110, x_111, x_113, x_114, x_115, x_116, x_120); if (lean_obj_tag(x_121) == 0) { lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; @@ -74681,7 +74031,7 @@ lean_inc(x_130); lean_dec_ref(x_5); x_131 = lean_array_get_size(x_2); lean_dec_ref(x_2); -x_132 = l_Lean_Expr_inferImplicit(x_112, x_131, x_109); +x_132 = l_Lean_Expr_inferImplicit(x_112, x_131, x_110); lean_dec(x_131); lean_inc(x_130); if (lean_is_scalar(x_18)) { @@ -74705,19 +74055,19 @@ if (x_135 == 0) { uint8_t x_137; x_137 = 1; -x_82 = x_107; -x_83 = x_126; -x_84 = x_108; -x_85 = x_129; -x_86 = x_114; -x_87 = x_136; -x_88 = x_115; -x_89 = x_116; -x_90 = x_127; -x_91 = x_130; -x_92 = x_133; -x_93 = x_113; -x_94 = x_128; +x_82 = x_136; +x_83 = x_130; +x_84 = x_113; +x_85 = x_114; +x_86 = x_129; +x_87 = x_126; +x_88 = x_116; +x_89 = x_133; +x_90 = x_107; +x_91 = x_128; +x_92 = x_108; +x_93 = x_115; +x_94 = x_127; x_95 = x_137; goto block_106; } @@ -74725,19 +74075,19 @@ else { uint8_t x_138; x_138 = 0; -x_82 = x_107; -x_83 = x_126; -x_84 = x_108; -x_85 = x_129; -x_86 = x_114; -x_87 = x_136; -x_88 = x_115; -x_89 = x_116; -x_90 = x_127; -x_91 = x_130; -x_92 = x_133; -x_93 = x_113; -x_94 = x_128; +x_82 = x_136; +x_83 = x_130; +x_84 = x_113; +x_85 = x_114; +x_86 = x_129; +x_87 = x_126; +x_88 = x_116; +x_89 = x_133; +x_90 = x_107; +x_91 = x_128; +x_92 = x_108; +x_93 = x_115; +x_94 = x_127; x_95 = x_138; goto block_106; } @@ -74762,16 +74112,16 @@ lean_ctor_set(x_141, 1, x_126); lean_ctor_set(x_141, 2, x_124); x_142 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_142, 0, x_141); -x_64 = x_127; -x_65 = x_130; -x_66 = x_107; -x_67 = x_108; +x_64 = x_107; +x_65 = x_128; +x_66 = x_108; +x_67 = x_130; x_68 = x_129; x_69 = x_114; -x_70 = x_128; -x_71 = x_113; -x_72 = x_116; -x_73 = x_115; +x_70 = x_113; +x_71 = x_115; +x_72 = x_127; +x_73 = x_116; x_74 = x_142; goto block_81; } @@ -74787,19 +74137,19 @@ x_144 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_144, 0, x_133); lean_ctor_set(x_144, 1, x_126); lean_ctor_set(x_144, 2, x_124); -lean_ctor_set_uint8(x_144, sizeof(void*)*3, x_109); +lean_ctor_set_uint8(x_144, sizeof(void*)*3, x_110); x_145 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_145, 0, x_144); -x_64 = x_127; -x_65 = x_130; -x_66 = x_107; -x_67 = x_108; +x_64 = x_107; +x_65 = x_128; +x_66 = x_108; +x_67 = x_130; x_68 = x_129; x_69 = x_114; -x_70 = x_128; -x_71 = x_113; -x_72 = x_116; -x_73 = x_115; +x_70 = x_113; +x_71 = x_115; +x_72 = x_127; +x_73 = x_116; x_74 = x_145; goto block_81; } @@ -74822,7 +74172,7 @@ lean_inc(x_150); lean_dec_ref(x_5); x_151 = lean_array_get_size(x_2); lean_dec_ref(x_2); -x_152 = l_Lean_Expr_inferImplicit(x_112, x_151, x_109); +x_152 = l_Lean_Expr_inferImplicit(x_112, x_151, x_110); lean_dec(x_151); lean_inc(x_150); if (lean_is_scalar(x_18)) { @@ -74845,19 +74195,19 @@ if (x_155 == 0) { uint8_t x_157; x_157 = 1; -x_82 = x_107; -x_83 = x_146; -x_84 = x_108; -x_85 = x_149; -x_86 = x_114; -x_87 = x_156; -x_88 = x_115; -x_89 = x_116; -x_90 = x_147; -x_91 = x_150; -x_92 = x_153; -x_93 = x_113; -x_94 = x_148; +x_82 = x_156; +x_83 = x_150; +x_84 = x_113; +x_85 = x_114; +x_86 = x_149; +x_87 = x_146; +x_88 = x_116; +x_89 = x_153; +x_90 = x_107; +x_91 = x_148; +x_92 = x_108; +x_93 = x_115; +x_94 = x_147; x_95 = x_157; goto block_106; } @@ -74865,19 +74215,19 @@ else { uint8_t x_158; x_158 = 0; -x_82 = x_107; -x_83 = x_146; -x_84 = x_108; -x_85 = x_149; -x_86 = x_114; -x_87 = x_156; -x_88 = x_115; -x_89 = x_116; -x_90 = x_147; -x_91 = x_150; -x_92 = x_153; -x_93 = x_113; -x_94 = x_148; +x_82 = x_156; +x_83 = x_150; +x_84 = x_113; +x_85 = x_114; +x_86 = x_149; +x_87 = x_146; +x_88 = x_116; +x_89 = x_153; +x_90 = x_107; +x_91 = x_148; +x_92 = x_108; +x_93 = x_115; +x_94 = x_147; x_95 = x_158; goto block_106; } @@ -74902,16 +74252,16 @@ lean_ctor_set(x_162, 1, x_146); lean_ctor_set(x_162, 2, x_161); x_163 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_163, 0, x_162); -x_64 = x_147; -x_65 = x_150; -x_66 = x_107; -x_67 = x_108; +x_64 = x_107; +x_65 = x_148; +x_66 = x_108; +x_67 = x_150; x_68 = x_149; x_69 = x_114; -x_70 = x_148; -x_71 = x_113; -x_72 = x_116; -x_73 = x_115; +x_70 = x_113; +x_71 = x_115; +x_72 = x_147; +x_73 = x_116; x_74 = x_163; goto block_81; } @@ -74927,19 +74277,19 @@ x_166 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_166, 0, x_153); lean_ctor_set(x_166, 1, x_146); lean_ctor_set(x_166, 2, x_165); -lean_ctor_set_uint8(x_166, sizeof(void*)*3, x_109); +lean_ctor_set_uint8(x_166, sizeof(void*)*3, x_110); x_167 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_167, 0, x_166); -x_64 = x_147; -x_65 = x_150; -x_66 = x_107; -x_67 = x_108; +x_64 = x_107; +x_65 = x_148; +x_66 = x_108; +x_67 = x_150; x_68 = x_149; x_69 = x_114; -x_70 = x_148; -x_71 = x_113; -x_72 = x_116; -x_73 = x_115; +x_70 = x_113; +x_71 = x_115; +x_72 = x_147; +x_73 = x_116; x_74 = x_167; goto block_81; } @@ -75029,7 +74379,7 @@ x_182 = 0; x_183 = 1; lean_inc_ref(x_6); lean_inc_ref(x_181); -x_184 = l_Lean_Meta_mkForallFVars(x_181, x_6, x_182, x_177, x_177, x_183, x_8, x_9, x_10, x_11, x_20); +x_184 = l_Lean_Meta_mkForallFVars(x_181, x_6, x_182, x_178, x_178, x_183, x_8, x_9, x_10, x_11, x_20); if (lean_obj_tag(x_184) == 0) { lean_object* x_185; lean_object* x_186; lean_object* x_187; @@ -75039,7 +74389,7 @@ x_186 = lean_ctor_get(x_184, 1); lean_inc(x_186); lean_dec_ref(x_184); lean_inc_ref(x_2); -x_187 = l_Lean_Meta_mkForallFVars(x_2, x_185, x_182, x_177, x_177, x_183, x_8, x_9, x_10, x_11, x_186); +x_187 = l_Lean_Meta_mkForallFVars(x_2, x_185, x_182, x_178, x_178, x_183, x_8, x_9, x_10, x_11, x_186); if (lean_obj_tag(x_187) == 0) { lean_object* x_188; lean_object* x_189; lean_object* x_190; @@ -75049,7 +74399,7 @@ x_189 = lean_ctor_get(x_187, 1); lean_inc(x_189); lean_dec_ref(x_187); x_190 = l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__1___redArg(x_188, x_9, x_189); -if (x_178 == 0) +if (x_177 == 0) { lean_object* x_191; lean_object* x_192; x_191 = lean_ctor_get(x_190, 0); @@ -75057,11 +74407,11 @@ lean_inc(x_191); x_192 = lean_ctor_get(x_190, 1); lean_inc(x_192); lean_dec_ref(x_190); -x_107 = x_179; -x_108 = x_182; -x_109 = x_177; -x_110 = x_183; -x_111 = x_181; +x_107 = x_182; +x_108 = x_179; +x_109 = x_181; +x_110 = x_178; +x_111 = x_183; x_112 = x_191; x_113 = x_8; x_114 = x_9; @@ -75079,11 +74429,11 @@ x_194 = lean_ctor_get(x_190, 1); lean_inc(x_194); lean_dec_ref(x_190); x_195 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_setSourceInstImplicit(x_193); -x_107 = x_179; -x_108 = x_182; -x_109 = x_177; -x_110 = x_183; -x_111 = x_181; +x_107 = x_182; +x_108 = x_179; +x_109 = x_181; +x_110 = x_178; +x_111 = x_183; x_112 = x_195; x_113 = x_8; x_114 = x_9; @@ -75174,8 +74524,8 @@ block_208: uint8_t x_206; uint8_t x_207; x_206 = 1; x_207 = 0; -x_177 = x_206; -x_178 = x_205; +x_177 = x_205; +x_178 = x_206; x_179 = x_207; goto block_204; } @@ -76494,7 +75844,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs___lam__2___closed__2; x_2 = lean_unsigned_to_nat(65u); -x_3 = lean_unsigned_to_nat(1378u); +x_3 = lean_unsigned_to_nat(1390u); x_4 = l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_mkRemainingProjections_spec__4_spec__4___closed__0; x_5 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_reduceFieldProjs___lam__2___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -77695,444 +77045,6 @@ return x_27; LEAN_EXPORT uint8_t l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1_spec__1___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_14; lean_object* x_15; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_array_get_size(x_3); -x_27 = lean_nat_dec_le(x_25, x_2); -if (x_27 == 0) -{ -lean_dec(x_2); -x_14 = x_25; -x_15 = x_26; -goto block_24; -} -else -{ -x_14 = x_2; -x_15 = x_26; -goto block_24; -} -block_13: -{ -uint8_t x_8; -x_8 = lean_nat_dec_lt(x_5, x_7); -if (x_8 == 0) -{ -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_5); -return x_4; -} -else -{ -size_t x_9; size_t x_10; uint8_t x_11; -x_9 = lean_usize_of_nat(x_5); -lean_dec(x_5); -x_10 = lean_usize_of_nat(x_7); -lean_dec(x_7); -x_11 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__5(x_1, x_6, x_9, x_10); -lean_dec_ref(x_6); -if (x_11 == 0) -{ -return x_8; -} -else -{ -uint8_t x_12; -x_12 = 0; -return x_12; -} -} -} -block_24: -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_16 = l_Array_toSubarray___redArg(x_3, x_14, x_15); -x_17 = lean_ctor_get(x_16, 0); -lean_inc_ref(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -x_19 = lean_ctor_get(x_16, 2); -lean_inc(x_19); -lean_dec_ref(x_16); -x_20 = lean_nat_dec_lt(x_18, x_19); -if (x_20 == 0) -{ -uint8_t x_21; -lean_dec(x_19); -lean_dec(x_18); -lean_dec_ref(x_17); -x_21 = 1; -return x_21; -} -else -{ -lean_object* x_22; uint8_t x_23; -x_22 = lean_array_get_size(x_17); -x_23 = lean_nat_dec_le(x_19, x_22); -if (x_23 == 0) -{ -lean_dec(x_19); -x_4 = x_20; -x_5 = x_18; -x_6 = x_17; -x_7 = x_22; -goto block_13; -} -else -{ -lean_dec(x_22); -x_4 = x_20; -x_5 = x_18; -x_6 = x_17; -x_7 = x_19; -goto block_13; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1_spec__1___redArg(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_21; lean_object* x_22; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_40; lean_object* x_41; lean_object* x_42; uint8_t x_51; lean_object* x_52; uint8_t x_55; uint8_t x_60; lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_71; lean_object* x_72; uint8_t x_82; -lean_inc_ref(x_2); -x_21 = lean_array_get(x_2, x_3, x_11); -lean_inc(x_4); -x_22 = lean_array_get(x_4, x_21, x_5); -lean_dec_ref(x_21); -lean_inc(x_5); -lean_inc(x_22); -x_30 = lean_alloc_closure((void*)(l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1_spec__1___redArg___lam__0___boxed), 3, 2); -lean_closure_set(x_30, 0, x_22); -lean_closure_set(x_30, 1, x_5); -x_82 = lean_nat_dec_le(x_11, x_9); -if (x_82 == 0) -{ -lean_inc(x_9); -lean_inc(x_5); -x_71 = x_5; -x_72 = x_9; -goto block_81; -} -else -{ -lean_inc(x_11); -lean_inc(x_5); -x_71 = x_5; -x_72 = x_11; -goto block_81; -} -block_20: -{ -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_unsigned_to_nat(1u); -x_16 = lean_nat_add(x_11, x_15); -lean_dec(x_11); -x_17 = lean_nat_dec_lt(x_16, x_10); -if (x_17 == 0) -{ -lean_object* x_18; -lean_dec(x_16); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_13); -lean_ctor_set(x_18, 1, x_14); -return x_18; -} -else -{ -lean_dec_ref(x_13); -x_11 = x_16; -x_12 = x_14; -goto _start; -} -} -block_29: -{ -uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_23 = lean_nat_dec_eq(x_6, x_5); -lean_dec(x_5); -x_24 = lean_box(x_23); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_22); -x_26 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_26, 0, x_25); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_7); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_12); -return x_28; -} -block_39: -{ -uint8_t x_35; -x_35 = lean_nat_dec_lt(x_33, x_34); -if (x_35 == 0) -{ -lean_dec(x_34); -lean_dec(x_33); -lean_dec_ref(x_32); -lean_dec_ref(x_30); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_4); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -goto block_29; -} -else -{ -size_t x_36; size_t x_37; uint8_t x_38; -x_36 = lean_usize_of_nat(x_33); -lean_dec(x_33); -x_37 = lean_usize_of_nat(x_34); -lean_dec(x_34); -x_38 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__6(x_30, x_31, x_32, x_36, x_37); -lean_dec_ref(x_32); -if (x_38 == 0) -{ -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_4); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -goto block_29; -} -else -{ -lean_dec(x_22); -lean_inc_ref(x_1); -x_13 = x_1; -x_14 = x_12; -goto block_20; -} -} -} -block_50: -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -lean_inc_ref(x_3); -x_43 = l_Array_toSubarray___redArg(x_3, x_41, x_42); -x_44 = lean_ctor_get(x_43, 0); -lean_inc_ref(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -x_46 = lean_ctor_get(x_43, 2); -lean_inc(x_46); -lean_dec_ref(x_43); -x_47 = lean_nat_dec_lt(x_45, x_46); -if (x_47 == 0) -{ -lean_dec(x_46); -lean_dec(x_45); -lean_dec_ref(x_44); -lean_dec_ref(x_30); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_4); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -goto block_29; -} -else -{ -lean_object* x_48; uint8_t x_49; -x_48 = lean_array_get_size(x_44); -x_49 = lean_nat_dec_le(x_46, x_48); -if (x_49 == 0) -{ -lean_dec(x_46); -x_31 = x_40; -x_32 = x_44; -x_33 = x_45; -x_34 = x_48; -goto block_39; -} -else -{ -lean_dec(x_48); -x_31 = x_40; -x_32 = x_44; -x_33 = x_45; -x_34 = x_46; -goto block_39; -} -} -} -block_54: -{ -uint8_t x_53; -x_53 = lean_nat_dec_le(x_8, x_9); -if (x_53 == 0) -{ -lean_inc(x_9); -x_40 = x_51; -x_41 = x_52; -x_42 = x_9; -goto block_50; -} -else -{ -lean_inc(x_8); -x_40 = x_51; -x_41 = x_52; -x_42 = x_8; -goto block_50; -} -} -block_59: -{ -lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_56 = lean_unsigned_to_nat(1u); -x_57 = lean_nat_add(x_11, x_56); -x_58 = lean_nat_dec_le(x_57, x_5); -if (x_58 == 0) -{ -x_51 = x_55; -x_52 = x_57; -goto block_54; -} -else -{ -lean_dec(x_57); -lean_inc(x_5); -x_51 = x_55; -x_52 = x_5; -goto block_54; -} -} -block_61: -{ -if (x_60 == 0) -{ -lean_dec_ref(x_30); -lean_dec(x_22); -lean_inc_ref(x_1); -x_13 = x_1; -x_14 = x_12; -goto block_20; -} -else -{ -x_55 = x_60; -goto block_59; -} -} -block_70: -{ -uint8_t x_66; -x_66 = lean_nat_dec_lt(x_63, x_65); -if (x_66 == 0) -{ -lean_dec(x_65); -lean_dec(x_63); -lean_dec_ref(x_62); -x_60 = x_64; -goto block_61; -} -else -{ -size_t x_67; size_t x_68; uint8_t x_69; -x_67 = lean_usize_of_nat(x_63); -lean_dec(x_63); -x_68 = lean_usize_of_nat(x_65); -lean_dec(x_65); -lean_inc_ref(x_30); -x_69 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__7(x_30, x_62, x_67, x_68); -lean_dec_ref(x_62); -if (x_69 == 0) -{ -x_60 = x_66; -goto block_61; -} -else -{ -lean_dec_ref(x_30); -lean_dec(x_22); -lean_inc_ref(x_1); -x_13 = x_1; -x_14 = x_12; -goto block_20; -} -} -} -block_81: -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; -lean_inc_ref(x_3); -x_73 = l_Array_toSubarray___redArg(x_3, x_71, x_72); -x_74 = lean_ctor_get(x_73, 0); -lean_inc_ref(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -x_76 = lean_ctor_get(x_73, 2); -lean_inc(x_76); -lean_dec_ref(x_73); -x_77 = lean_nat_dec_lt(x_75, x_76); -if (x_77 == 0) -{ -uint8_t x_78; -lean_dec(x_76); -lean_dec(x_75); -lean_dec_ref(x_74); -x_78 = 1; -x_55 = x_78; -goto block_59; -} -else -{ -lean_object* x_79; uint8_t x_80; -x_79 = lean_array_get_size(x_74); -x_80 = lean_nat_dec_le(x_76, x_79); -if (x_80 == 0) -{ -lean_dec(x_76); -x_62 = x_74; -x_63 = x_75; -x_64 = x_77; -x_65 = x_79; -goto block_70; -} -else -{ -lean_dec(x_79); -x_62 = x_74; -x_63 = x_75; -x_64 = x_77; -x_65 = x_76; -goto block_70; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10, uint8_t x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21, lean_object* x_22, lean_object* x_23, lean_object* x_24, lean_object* x_25, lean_object* x_26, lean_object* x_27) { -_start: -{ -lean_object* x_28; -x_28 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1_spec__1___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_9, x_10, x_15, x_18, x_27); -return x_28; -} -} -LEAN_EXPORT uint8_t l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_14; lean_object* x_15; lean_object* x_25; lean_object* x_26; uint8_t x_27; x_25 = lean_unsigned_to_nat(1u); x_26 = lean_array_get_size(x_3); @@ -78230,10 +77142,348 @@ goto block_13; } } } +LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1_spec__1___redArg(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_21; lean_object* x_22; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; uint8_t x_40; lean_object* x_41; lean_object* x_42; uint8_t x_51; lean_object* x_52; uint8_t x_55; uint8_t x_60; uint8_t x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_71; lean_object* x_72; uint8_t x_82; +lean_inc_ref(x_2); +x_21 = lean_array_get(x_2, x_3, x_11); +lean_inc(x_4); +x_22 = lean_array_get(x_4, x_21, x_5); +lean_dec_ref(x_21); +lean_inc(x_5); +lean_inc(x_22); +x_30 = lean_alloc_closure((void*)(l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1_spec__1___redArg___lam__0___boxed), 3, 2); +lean_closure_set(x_30, 0, x_22); +lean_closure_set(x_30, 1, x_5); +x_82 = lean_nat_dec_le(x_11, x_9); +if (x_82 == 0) +{ +lean_inc(x_9); +lean_inc(x_5); +x_71 = x_5; +x_72 = x_9; +goto block_81; +} +else +{ +lean_inc(x_11); +lean_inc(x_5); +x_71 = x_5; +x_72 = x_11; +goto block_81; +} +block_20: +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_11, x_15); +lean_dec(x_11); +x_17 = lean_nat_dec_lt(x_16, x_10); +if (x_17 == 0) +{ +lean_object* x_18; +lean_dec(x_16); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_13); +lean_ctor_set(x_18, 1, x_14); +return x_18; +} +else +{ +lean_dec_ref(x_13); +x_11 = x_16; +x_12 = x_14; +goto _start; +} +} +block_29: +{ +uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_23 = lean_nat_dec_eq(x_6, x_5); +lean_dec(x_5); +x_24 = lean_box(x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_22); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_7); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_12); +return x_28; +} +block_39: +{ +uint8_t x_35; +x_35 = lean_nat_dec_lt(x_31, x_34); +if (x_35 == 0) +{ +lean_dec(x_34); +lean_dec_ref(x_33); +lean_dec(x_31); +lean_dec_ref(x_30); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +goto block_29; +} +else +{ +size_t x_36; size_t x_37; uint8_t x_38; +x_36 = lean_usize_of_nat(x_31); +lean_dec(x_31); +x_37 = lean_usize_of_nat(x_34); +lean_dec(x_34); +x_38 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__6(x_30, x_32, x_33, x_36, x_37); +lean_dec_ref(x_33); +if (x_38 == 0) +{ +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +goto block_29; +} +else +{ +lean_dec(x_22); +lean_inc_ref(x_1); +x_13 = x_1; +x_14 = x_12; +goto block_20; +} +} +} +block_50: +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +lean_inc_ref(x_3); +x_43 = l_Array_toSubarray___redArg(x_3, x_41, x_42); +x_44 = lean_ctor_get(x_43, 0); +lean_inc_ref(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +x_46 = lean_ctor_get(x_43, 2); +lean_inc(x_46); +lean_dec_ref(x_43); +x_47 = lean_nat_dec_lt(x_45, x_46); +if (x_47 == 0) +{ +lean_dec(x_46); +lean_dec(x_45); +lean_dec_ref(x_44); +lean_dec_ref(x_30); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +goto block_29; +} +else +{ +lean_object* x_48; uint8_t x_49; +x_48 = lean_array_get_size(x_44); +x_49 = lean_nat_dec_le(x_46, x_48); +if (x_49 == 0) +{ +lean_dec(x_46); +x_31 = x_45; +x_32 = x_40; +x_33 = x_44; +x_34 = x_48; +goto block_39; +} +else +{ +lean_dec(x_48); +x_31 = x_45; +x_32 = x_40; +x_33 = x_44; +x_34 = x_46; +goto block_39; +} +} +} +block_54: +{ +uint8_t x_53; +x_53 = lean_nat_dec_le(x_8, x_9); +if (x_53 == 0) +{ +lean_inc(x_9); +x_40 = x_51; +x_41 = x_52; +x_42 = x_9; +goto block_50; +} +else +{ +lean_inc(x_8); +x_40 = x_51; +x_41 = x_52; +x_42 = x_8; +goto block_50; +} +} +block_59: +{ +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_unsigned_to_nat(1u); +x_57 = lean_nat_add(x_11, x_56); +x_58 = lean_nat_dec_le(x_57, x_5); +if (x_58 == 0) +{ +x_51 = x_55; +x_52 = x_57; +goto block_54; +} +else +{ +lean_dec(x_57); +lean_inc(x_5); +x_51 = x_55; +x_52 = x_5; +goto block_54; +} +} +block_61: +{ +if (x_60 == 0) +{ +lean_dec_ref(x_30); +lean_dec(x_22); +lean_inc_ref(x_1); +x_13 = x_1; +x_14 = x_12; +goto block_20; +} +else +{ +x_55 = x_60; +goto block_59; +} +} +block_70: +{ +uint8_t x_66; +x_66 = lean_nat_dec_lt(x_64, x_65); +if (x_66 == 0) +{ +lean_dec(x_65); +lean_dec(x_64); +lean_dec_ref(x_63); +x_60 = x_62; +goto block_61; +} +else +{ +size_t x_67; size_t x_68; uint8_t x_69; +x_67 = lean_usize_of_nat(x_64); +lean_dec(x_64); +x_68 = lean_usize_of_nat(x_65); +lean_dec(x_65); +lean_inc_ref(x_30); +x_69 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__7(x_30, x_63, x_67, x_68); +lean_dec_ref(x_63); +if (x_69 == 0) +{ +x_60 = x_66; +goto block_61; +} +else +{ +lean_dec_ref(x_30); +lean_dec(x_22); +lean_inc_ref(x_1); +x_13 = x_1; +x_14 = x_12; +goto block_20; +} +} +} +block_81: +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; +lean_inc_ref(x_3); +x_73 = l_Array_toSubarray___redArg(x_3, x_71, x_72); +x_74 = lean_ctor_get(x_73, 0); +lean_inc_ref(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +x_76 = lean_ctor_get(x_73, 2); +lean_inc(x_76); +lean_dec_ref(x_73); +x_77 = lean_nat_dec_lt(x_75, x_76); +if (x_77 == 0) +{ +uint8_t x_78; +lean_dec(x_76); +lean_dec(x_75); +lean_dec_ref(x_74); +x_78 = 1; +x_55 = x_78; +goto block_59; +} +else +{ +lean_object* x_79; uint8_t x_80; +x_79 = lean_array_get_size(x_74); +x_80 = lean_nat_dec_le(x_76, x_79); +if (x_80 == 0) +{ +lean_dec(x_76); +x_62 = x_77; +x_63 = x_74; +x_64 = x_75; +x_65 = x_79; +goto block_70; +} +else +{ +lean_dec(x_79); +x_62 = x_77; +x_63 = x_74; +x_64 = x_75; +x_65 = x_76; +goto block_70; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10, uint8_t x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21, lean_object* x_22, lean_object* x_23, lean_object* x_24, lean_object* x_25, lean_object* x_26, lean_object* x_27) { +_start: +{ +lean_object* x_28; +x_28 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1_spec__1___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_9, x_10, x_15, x_18, x_27); +return x_28; +} +} LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1___redArg(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, uint8_t x_8, lean_object* x_9, lean_object* x_10, uint8_t x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21) { _start: { -lean_object* x_22; lean_object* x_23; lean_object* x_30; lean_object* x_31; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; uint8_t x_49; lean_object* x_50; lean_object* x_51; uint8_t x_60; lean_object* x_61; uint8_t x_64; uint8_t x_69; lean_object* x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_80; lean_object* x_81; uint8_t x_91; +lean_object* x_22; lean_object* x_23; lean_object* x_30; lean_object* x_31; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; uint8_t x_49; lean_object* x_50; lean_object* x_51; uint8_t x_60; lean_object* x_61; uint8_t x_64; uint8_t x_69; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_80; lean_object* x_81; uint8_t x_91; lean_inc_ref(x_2); x_30 = lean_array_get(x_2, x_3, x_14); lean_inc(x_4); @@ -78241,7 +77491,7 @@ x_31 = lean_array_get(x_4, x_30, x_5); lean_dec_ref(x_30); lean_inc(x_5); lean_inc(x_31); -x_39 = lean_alloc_closure((void*)(l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1___redArg___lam__0___boxed), 3, 2); +x_39 = lean_alloc_closure((void*)(l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__8_spec__8___redArg___lam__0___boxed), 3, 2); lean_closure_set(x_39, 0, x_31); lean_closure_set(x_39, 1, x_5); x_91 = lean_nat_dec_le(x_14, x_10); @@ -78318,7 +77568,7 @@ x_44 = lean_nat_dec_lt(x_40, x_43); if (x_44 == 0) { lean_dec(x_43); -lean_dec_ref(x_41); +lean_dec_ref(x_42); lean_dec(x_40); lean_dec_ref(x_39); lean_dec(x_14); @@ -78337,8 +77587,8 @@ x_45 = lean_usize_of_nat(x_40); lean_dec(x_40); x_46 = lean_usize_of_nat(x_43); lean_dec(x_43); -x_47 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__6(x_39, x_42, x_41, x_45, x_46); -lean_dec_ref(x_41); +x_47 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__6(x_39, x_41, x_42, x_45, x_46); +lean_dec_ref(x_42); if (x_47 == 0) { lean_dec(x_14); @@ -78397,8 +77647,8 @@ if (x_58 == 0) { lean_dec(x_55); x_40 = x_54; -x_41 = x_53; -x_42 = x_49; +x_41 = x_49; +x_42 = x_53; x_43 = x_57; goto block_48; } @@ -78406,8 +77656,8 @@ else { lean_dec(x_57); x_40 = x_54; -x_41 = x_53; -x_42 = x_49; +x_41 = x_49; +x_42 = x_53; x_43 = x_55; goto block_48; } @@ -78475,25 +77725,25 @@ goto block_68; block_79: { uint8_t x_75; -x_75 = lean_nat_dec_lt(x_71, x_74); +x_75 = lean_nat_dec_lt(x_72, x_74); if (x_75 == 0) { lean_dec(x_74); -lean_dec_ref(x_73); -lean_dec(x_71); -x_69 = x_72; +lean_dec(x_72); +lean_dec_ref(x_71); +x_69 = x_73; goto block_70; } else { size_t x_76; size_t x_77; uint8_t x_78; -x_76 = lean_usize_of_nat(x_71); -lean_dec(x_71); +x_76 = lean_usize_of_nat(x_72); +lean_dec(x_72); x_77 = lean_usize_of_nat(x_74); lean_dec(x_74); lean_inc_ref(x_39); -x_78 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__7(x_39, x_73, x_76, x_77); -lean_dec_ref(x_73); +x_78 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__7(x_39, x_71, x_76, x_77); +lean_dec_ref(x_71); if (x_78 == 0) { x_69 = x_75; @@ -78541,18 +77791,18 @@ x_89 = lean_nat_dec_le(x_85, x_88); if (x_89 == 0) { lean_dec(x_85); -x_71 = x_84; -x_72 = x_86; -x_73 = x_83; +x_71 = x_83; +x_72 = x_84; +x_73 = x_86; x_74 = x_88; goto block_79; } else { lean_dec(x_88); -x_71 = x_84; -x_72 = x_86; -x_73 = x_83; +x_71 = x_83; +x_72 = x_84; +x_73 = x_86; x_74 = x_85; goto block_79; } @@ -79598,6 +78848,760 @@ goto block_18; block_46: { lean_object* x_45; +x_45 = l_Array_qsort_sort___at___Lean_Elab_sortDeclLevelParams_spec__1___redArg(x_43, x_42, x_44); +lean_dec(x_44); +x_31 = x_45; +goto block_41; +} +block_51: +{ +uint8_t x_50; +x_50 = lean_nat_dec_le(x_49, x_47); +if (x_50 == 0) +{ +lean_dec(x_47); +lean_inc(x_49); +x_42 = x_49; +x_43 = x_48; +x_44 = x_49; +goto block_46; +} +else +{ +x_42 = x_49; +x_43 = x_48; +x_44 = x_47; +goto block_46; +} +} +block_61: +{ +size_t x_53; size_t x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_53 = lean_array_size(x_52); +x_54 = 0; +x_55 = l_Array_mapMUnsafe_map___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__20(x_1, x_53, x_54, x_52); +x_56 = lean_array_get_size(x_55); +x_57 = lean_nat_dec_eq(x_56, x_1); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_58 = lean_unsigned_to_nat(1u); +x_59 = lean_nat_sub(x_56, x_58); +lean_dec(x_56); +x_60 = lean_nat_dec_le(x_1, x_59); +if (x_60 == 0) +{ +lean_inc(x_59); +x_47 = x_59; +x_48 = x_55; +x_49 = x_59; +goto block_51; +} +else +{ +lean_inc(x_1); +x_47 = x_59; +x_48 = x_55; +x_49 = x_1; +goto block_51; +} +} +else +{ +lean_dec(x_56); +x_31 = x_55; +goto block_41; +} +} +block_64: +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_box(0); +lean_inc(x_2); +x_63 = l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__6_spec__6___lam__0(x_30, x_1, x_2, x_22, x_23, x_24, x_62, x_6, x_7, x_8, x_9, x_10, x_11, x_28); +x_13 = x_63; +goto block_18; +} +} +else +{ +uint8_t x_73; +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_73 = !lean_is_exclusive(x_26); +if (x_73 == 0) +{ +return x_26; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_26, 0); +x_75 = lean_ctor_get(x_26, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_26); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; +} +} +} +else +{ +lean_object* x_77; +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_5); +lean_ctor_set(x_77, 1, x_12); +return x_77; +} +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_78 = lean_ctor_get(x_5, 0); +x_79 = lean_ctor_get(x_20, 0); +x_80 = lean_ctor_get(x_20, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_20); +x_81 = l_Array_isEmpty___redArg(x_80); +if (x_81 == 0) +{ +lean_object* x_82; +lean_free_object(x_5); +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +lean_inc_ref(x_6); +lean_inc(x_80); +x_82 = l_Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1(x_80, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_108; uint8_t x_121; +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +lean_dec_ref(x_82); +x_85 = lean_ctor_get(x_83, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_83, 1); +lean_inc(x_86); +lean_dec(x_83); +x_121 = lean_unbox(x_85); +lean_dec(x_85); +if (x_121 == 0) +{ +if (x_3 == 0) +{ +lean_object* x_122; lean_object* x_123; uint8_t x_124; +x_122 = lean_array_get_size(x_80); +x_123 = lean_mk_empty_array_with_capacity(x_1); +x_124 = lean_nat_dec_lt(x_1, x_122); +if (x_124 == 0) +{ +lean_dec(x_122); +x_108 = x_123; +goto block_117; +} +else +{ +uint8_t x_125; +x_125 = lean_nat_dec_le(x_122, x_122); +if (x_125 == 0) +{ +lean_dec(x_122); +x_108 = x_123; +goto block_117; +} +else +{ +size_t x_126; size_t x_127; lean_object* x_128; +x_126 = 0; +x_127 = lean_usize_of_nat(x_122); +lean_dec(x_122); +lean_inc(x_1); +x_128 = l_Array_foldlMUnsafe_fold___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__21(x_86, x_1, x_80, x_126, x_127, x_123); +x_108 = x_128; +goto block_117; +} +} +} +else +{ +goto block_120; +} +} +else +{ +goto block_120; +} +block_97: +{ +lean_object* x_88; uint8_t x_89; size_t x_90; size_t x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_88 = l_Array_eraseReps___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__17(x_87); +lean_dec_ref(x_87); +x_89 = l_Array_contains___at___Lean_registerInternalExceptionId_spec__0(x_4, x_86); +x_90 = lean_array_size(x_88); +x_91 = 0; +x_92 = l_Array_mapMUnsafe_map___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__19(x_4, x_90, x_91, x_88); +lean_inc(x_86); +x_93 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_93, 0, x_86); +lean_ctor_set(x_93, 1, x_92); +lean_ctor_set_uint8(x_93, sizeof(void*)*2, x_89); +x_94 = lean_array_push(x_78, x_93); +x_95 = lean_box(0); +lean_inc(x_2); +x_96 = l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__6_spec__6___lam__0(x_86, x_1, x_2, x_94, x_79, x_80, x_95, x_6, x_7, x_8, x_9, x_10, x_11, x_84); +x_13 = x_96; +goto block_18; +} +block_102: +{ +lean_object* x_101; +x_101 = l_Array_qsort_sort___at___Lean_Elab_sortDeclLevelParams_spec__1___redArg(x_99, x_98, x_100); +lean_dec(x_100); +x_87 = x_101; +goto block_97; +} +block_107: +{ +uint8_t x_106; +x_106 = lean_nat_dec_le(x_105, x_103); +if (x_106 == 0) +{ +lean_dec(x_103); +lean_inc(x_105); +x_98 = x_105; +x_99 = x_104; +x_100 = x_105; +goto block_102; +} +else +{ +x_98 = x_105; +x_99 = x_104; +x_100 = x_103; +goto block_102; +} +} +block_117: +{ +size_t x_109; size_t x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_109 = lean_array_size(x_108); +x_110 = 0; +x_111 = l_Array_mapMUnsafe_map___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__20(x_1, x_109, x_110, x_108); +x_112 = lean_array_get_size(x_111); +x_113 = lean_nat_dec_eq(x_112, x_1); +if (x_113 == 0) +{ +lean_object* x_114; lean_object* x_115; uint8_t x_116; +x_114 = lean_unsigned_to_nat(1u); +x_115 = lean_nat_sub(x_112, x_114); +lean_dec(x_112); +x_116 = lean_nat_dec_le(x_1, x_115); +if (x_116 == 0) +{ +lean_inc(x_115); +x_103 = x_115; +x_104 = x_111; +x_105 = x_115; +goto block_107; +} +else +{ +lean_inc(x_1); +x_103 = x_115; +x_104 = x_111; +x_105 = x_1; +goto block_107; +} +} +else +{ +lean_dec(x_112); +x_87 = x_111; +goto block_97; +} +} +block_120: +{ +lean_object* x_118; lean_object* x_119; +x_118 = lean_box(0); +lean_inc(x_2); +x_119 = l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__6_spec__6___lam__0(x_86, x_1, x_2, x_78, x_79, x_80, x_118, x_6, x_7, x_8, x_9, x_10, x_11, x_84); +x_13 = x_119; +goto block_18; +} +} +else +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_80); +lean_dec(x_79); +lean_dec(x_78); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_129 = lean_ctor_get(x_82, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_82, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_131 = x_82; +} else { + lean_dec_ref(x_82); + x_131 = lean_box(0); +} +if (lean_is_scalar(x_131)) { + x_132 = lean_alloc_ctor(1, 2, 0); +} else { + x_132 = x_131; +} +lean_ctor_set(x_132, 0, x_129); +lean_ctor_set(x_132, 1, x_130); +return x_132; +} +} +else +{ +lean_object* x_133; lean_object* x_134; +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_133 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_133, 0, x_79); +lean_ctor_set(x_133, 1, x_80); +lean_ctor_set(x_5, 1, x_133); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_5); +lean_ctor_set(x_134, 1, x_12); +return x_134; +} +} +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_135 = lean_ctor_get(x_5, 1); +x_136 = lean_ctor_get(x_5, 0); +lean_inc(x_135); +lean_inc(x_136); +lean_dec(x_5); +x_137 = lean_ctor_get(x_135, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_135, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_139 = x_135; +} else { + lean_dec_ref(x_135); + x_139 = lean_box(0); +} +x_140 = l_Array_isEmpty___redArg(x_138); +if (x_140 == 0) +{ +lean_object* x_141; +lean_dec(x_139); +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +lean_inc_ref(x_6); +lean_inc(x_138); +x_141 = l_Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1(x_138, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_141) == 0) +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_167; uint8_t x_180; +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_141, 1); +lean_inc(x_143); +lean_dec_ref(x_141); +x_144 = lean_ctor_get(x_142, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_142, 1); +lean_inc(x_145); +lean_dec(x_142); +x_180 = lean_unbox(x_144); +lean_dec(x_144); +if (x_180 == 0) +{ +if (x_3 == 0) +{ +lean_object* x_181; lean_object* x_182; uint8_t x_183; +x_181 = lean_array_get_size(x_138); +x_182 = lean_mk_empty_array_with_capacity(x_1); +x_183 = lean_nat_dec_lt(x_1, x_181); +if (x_183 == 0) +{ +lean_dec(x_181); +x_167 = x_182; +goto block_176; +} +else +{ +uint8_t x_184; +x_184 = lean_nat_dec_le(x_181, x_181); +if (x_184 == 0) +{ +lean_dec(x_181); +x_167 = x_182; +goto block_176; +} +else +{ +size_t x_185; size_t x_186; lean_object* x_187; +x_185 = 0; +x_186 = lean_usize_of_nat(x_181); +lean_dec(x_181); +lean_inc(x_1); +x_187 = l_Array_foldlMUnsafe_fold___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__21(x_145, x_1, x_138, x_185, x_186, x_182); +x_167 = x_187; +goto block_176; +} +} +} +else +{ +goto block_179; +} +} +else +{ +goto block_179; +} +block_156: +{ +lean_object* x_147; uint8_t x_148; size_t x_149; size_t x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_147 = l_Array_eraseReps___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__17(x_146); +lean_dec_ref(x_146); +x_148 = l_Array_contains___at___Lean_registerInternalExceptionId_spec__0(x_4, x_145); +x_149 = lean_array_size(x_147); +x_150 = 0; +x_151 = l_Array_mapMUnsafe_map___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__19(x_4, x_149, x_150, x_147); +lean_inc(x_145); +x_152 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_152, 0, x_145); +lean_ctor_set(x_152, 1, x_151); +lean_ctor_set_uint8(x_152, sizeof(void*)*2, x_148); +x_153 = lean_array_push(x_136, x_152); +x_154 = lean_box(0); +lean_inc(x_2); +x_155 = l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__6_spec__6___lam__0(x_145, x_1, x_2, x_153, x_137, x_138, x_154, x_6, x_7, x_8, x_9, x_10, x_11, x_143); +x_13 = x_155; +goto block_18; +} +block_161: +{ +lean_object* x_160; +x_160 = l_Array_qsort_sort___at___Lean_Elab_sortDeclLevelParams_spec__1___redArg(x_158, x_157, x_159); +lean_dec(x_159); +x_146 = x_160; +goto block_156; +} +block_166: +{ +uint8_t x_165; +x_165 = lean_nat_dec_le(x_164, x_162); +if (x_165 == 0) +{ +lean_dec(x_162); +lean_inc(x_164); +x_157 = x_164; +x_158 = x_163; +x_159 = x_164; +goto block_161; +} +else +{ +x_157 = x_164; +x_158 = x_163; +x_159 = x_162; +goto block_161; +} +} +block_176: +{ +size_t x_168; size_t x_169; lean_object* x_170; lean_object* x_171; uint8_t x_172; +x_168 = lean_array_size(x_167); +x_169 = 0; +x_170 = l_Array_mapMUnsafe_map___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__20(x_1, x_168, x_169, x_167); +x_171 = lean_array_get_size(x_170); +x_172 = lean_nat_dec_eq(x_171, x_1); +if (x_172 == 0) +{ +lean_object* x_173; lean_object* x_174; uint8_t x_175; +x_173 = lean_unsigned_to_nat(1u); +x_174 = lean_nat_sub(x_171, x_173); +lean_dec(x_171); +x_175 = lean_nat_dec_le(x_1, x_174); +if (x_175 == 0) +{ +lean_inc(x_174); +x_162 = x_174; +x_163 = x_170; +x_164 = x_174; +goto block_166; +} +else +{ +lean_inc(x_1); +x_162 = x_174; +x_163 = x_170; +x_164 = x_1; +goto block_166; +} +} +else +{ +lean_dec(x_171); +x_146 = x_170; +goto block_156; +} +} +block_179: +{ +lean_object* x_177; lean_object* x_178; +x_177 = lean_box(0); +lean_inc(x_2); +x_178 = l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__6_spec__6___lam__0(x_145, x_1, x_2, x_136, x_137, x_138, x_177, x_6, x_7, x_8, x_9, x_10, x_11, x_143); +x_13 = x_178; +goto block_18; +} +} +else +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; +lean_dec(x_138); +lean_dec(x_137); +lean_dec(x_136); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_188 = lean_ctor_get(x_141, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_141, 1); +lean_inc(x_189); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_190 = x_141; +} else { + lean_dec_ref(x_141); + x_190 = lean_box(0); +} +if (lean_is_scalar(x_190)) { + x_191 = lean_alloc_ctor(1, 2, 0); +} else { + x_191 = x_190; +} +lean_ctor_set(x_191, 0, x_188); +lean_ctor_set(x_191, 1, x_189); +return x_191; +} +} +else +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_2); +lean_dec(x_1); +if (lean_is_scalar(x_139)) { + x_192 = lean_alloc_ctor(0, 2, 0); +} else { + x_192 = x_139; +} +lean_ctor_set(x_192, 0, x_137); +lean_ctor_set(x_192, 1, x_138); +x_193 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_193, 0, x_136); +lean_ctor_set(x_193, 1, x_192); +x_194 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_12); +return x_194; +} +} +block_18: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec_ref(x_13); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +lean_dec(x_14); +x_5 = x_16; +x_12 = x_15; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__6(lean_object* x_1, lean_object* x_2, uint8_t 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_19; +x_19 = !lean_is_exclusive(x_5); +if (x_19 == 0) +{ +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_5, 1); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_22 = lean_ctor_get(x_5, 0); +x_23 = lean_ctor_get(x_20, 0); +x_24 = lean_ctor_get(x_20, 1); +x_25 = l_Array_isEmpty___redArg(x_24); +if (x_25 == 0) +{ +lean_object* x_26; +lean_free_object(x_20); +lean_free_object(x_5); +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +lean_inc_ref(x_6); +lean_inc(x_24); +x_26 = l_Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1(x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_52; uint8_t x_65; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec_ref(x_26); +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_65 = lean_unbox(x_29); +lean_dec(x_29); +if (x_65 == 0) +{ +if (x_3 == 0) +{ +lean_object* x_66; lean_object* x_67; uint8_t x_68; +x_66 = lean_array_get_size(x_24); +x_67 = lean_mk_empty_array_with_capacity(x_1); +x_68 = lean_nat_dec_lt(x_1, x_66); +if (x_68 == 0) +{ +lean_dec(x_66); +x_52 = x_67; +goto block_61; +} +else +{ +uint8_t x_69; +x_69 = lean_nat_dec_le(x_66, x_66); +if (x_69 == 0) +{ +lean_dec(x_66); +x_52 = x_67; +goto block_61; +} +else +{ +size_t x_70; size_t x_71; lean_object* x_72; +x_70 = 0; +x_71 = lean_usize_of_nat(x_66); +lean_dec(x_66); +lean_inc(x_1); +x_72 = l_Array_foldlMUnsafe_fold___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__21(x_30, x_1, x_24, x_70, x_71, x_67); +x_52 = x_72; +goto block_61; +} +} +} +else +{ +goto block_64; +} +} +else +{ +goto block_64; +} +block_41: +{ +lean_object* x_32; uint8_t x_33; size_t x_34; size_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_32 = l_Array_eraseReps___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__17(x_31); +lean_dec_ref(x_31); +x_33 = l_Array_contains___at___Lean_registerInternalExceptionId_spec__0(x_4, x_30); +x_34 = lean_array_size(x_32); +x_35 = 0; +x_36 = l_Array_mapMUnsafe_map___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__19(x_4, x_34, x_35, x_32); +lean_inc(x_30); +x_37 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_37, 0, x_30); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set_uint8(x_37, sizeof(void*)*2, x_33); +x_38 = lean_array_push(x_22, x_37); +x_39 = lean_box(0); +lean_inc(x_2); +x_40 = l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__6_spec__6___lam__0(x_30, x_1, x_2, x_38, x_23, x_24, x_39, x_6, x_7, x_8, x_9, x_10, x_11, x_28); +x_13 = x_40; +goto block_18; +} +block_46: +{ +lean_object* x_45; x_45 = l_Array_qsort_sort___at___Lean_Elab_sortDeclLevelParams_spec__1___redArg(x_42, x_43, x_44); lean_dec(x_44); x_31 = x_45; @@ -80222,760 +80226,6 @@ return x_194; } block_18: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec_ref(x_13); -x_16 = lean_ctor_get(x_14, 0); -lean_inc(x_16); -lean_dec(x_14); -x_5 = x_16; -x_12 = x_15; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__6(lean_object* x_1, lean_object* x_2, uint8_t 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_19; -x_19 = !lean_is_exclusive(x_5); -if (x_19 == 0) -{ -lean_object* x_20; uint8_t x_21; -x_20 = lean_ctor_get(x_5, 1); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_22 = lean_ctor_get(x_5, 0); -x_23 = lean_ctor_get(x_20, 0); -x_24 = lean_ctor_get(x_20, 1); -x_25 = l_Array_isEmpty___redArg(x_24); -if (x_25 == 0) -{ -lean_object* x_26; -lean_free_object(x_20); -lean_free_object(x_5); -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -lean_inc_ref(x_6); -lean_inc(x_24); -x_26 = l_Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1(x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_52; uint8_t x_65; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec_ref(x_26); -x_29 = lean_ctor_get(x_27, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_27, 1); -lean_inc(x_30); -lean_dec(x_27); -x_65 = lean_unbox(x_29); -lean_dec(x_29); -if (x_65 == 0) -{ -if (x_3 == 0) -{ -lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_66 = lean_array_get_size(x_24); -x_67 = lean_mk_empty_array_with_capacity(x_1); -x_68 = lean_nat_dec_lt(x_1, x_66); -if (x_68 == 0) -{ -lean_dec(x_66); -x_52 = x_67; -goto block_61; -} -else -{ -uint8_t x_69; -x_69 = lean_nat_dec_le(x_66, x_66); -if (x_69 == 0) -{ -lean_dec(x_66); -x_52 = x_67; -goto block_61; -} -else -{ -size_t x_70; size_t x_71; lean_object* x_72; -x_70 = 0; -x_71 = lean_usize_of_nat(x_66); -lean_dec(x_66); -lean_inc(x_1); -x_72 = l_Array_foldlMUnsafe_fold___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__21(x_30, x_1, x_24, x_70, x_71, x_67); -x_52 = x_72; -goto block_61; -} -} -} -else -{ -goto block_64; -} -} -else -{ -goto block_64; -} -block_41: -{ -lean_object* x_32; uint8_t x_33; size_t x_34; size_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_32 = l_Array_eraseReps___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__17(x_31); -lean_dec_ref(x_31); -x_33 = l_Array_contains___at___Lean_registerInternalExceptionId_spec__0(x_4, x_30); -x_34 = lean_array_size(x_32); -x_35 = 0; -x_36 = l_Array_mapMUnsafe_map___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__19(x_4, x_34, x_35, x_32); -lean_inc(x_30); -x_37 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_37, 0, x_30); -lean_ctor_set(x_37, 1, x_36); -lean_ctor_set_uint8(x_37, sizeof(void*)*2, x_33); -x_38 = lean_array_push(x_22, x_37); -x_39 = lean_box(0); -lean_inc(x_2); -x_40 = l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__6_spec__6___lam__0(x_30, x_1, x_2, x_38, x_23, x_24, x_39, x_6, x_7, x_8, x_9, x_10, x_11, x_28); -x_13 = x_40; -goto block_18; -} -block_46: -{ -lean_object* x_45; -x_45 = l_Array_qsort_sort___at___Lean_Elab_sortDeclLevelParams_spec__1___redArg(x_42, x_43, x_44); -lean_dec(x_44); -x_31 = x_45; -goto block_41; -} -block_51: -{ -uint8_t x_50; -x_50 = lean_nat_dec_le(x_49, x_47); -if (x_50 == 0) -{ -lean_dec(x_47); -lean_inc(x_49); -x_42 = x_48; -x_43 = x_49; -x_44 = x_49; -goto block_46; -} -else -{ -x_42 = x_48; -x_43 = x_49; -x_44 = x_47; -goto block_46; -} -} -block_61: -{ -size_t x_53; size_t x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_53 = lean_array_size(x_52); -x_54 = 0; -x_55 = l_Array_mapMUnsafe_map___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__20(x_1, x_53, x_54, x_52); -x_56 = lean_array_get_size(x_55); -x_57 = lean_nat_dec_eq(x_56, x_1); -if (x_57 == 0) -{ -lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_58 = lean_unsigned_to_nat(1u); -x_59 = lean_nat_sub(x_56, x_58); -lean_dec(x_56); -x_60 = lean_nat_dec_le(x_1, x_59); -if (x_60 == 0) -{ -lean_inc(x_59); -x_47 = x_59; -x_48 = x_55; -x_49 = x_59; -goto block_51; -} -else -{ -lean_inc(x_1); -x_47 = x_59; -x_48 = x_55; -x_49 = x_1; -goto block_51; -} -} -else -{ -lean_dec(x_56); -x_31 = x_55; -goto block_41; -} -} -block_64: -{ -lean_object* x_62; lean_object* x_63; -x_62 = lean_box(0); -lean_inc(x_2); -x_63 = l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__6_spec__6___lam__0(x_30, x_1, x_2, x_22, x_23, x_24, x_62, x_6, x_7, x_8, x_9, x_10, x_11, x_28); -x_13 = x_63; -goto block_18; -} -} -else -{ -uint8_t x_73; -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_73 = !lean_is_exclusive(x_26); -if (x_73 == 0) -{ -return x_26; -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_26, 0); -x_75 = lean_ctor_get(x_26, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_26); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -return x_76; -} -} -} -else -{ -lean_object* x_77; -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_5); -lean_ctor_set(x_77, 1, x_12); -return x_77; -} -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; -x_78 = lean_ctor_get(x_5, 0); -x_79 = lean_ctor_get(x_20, 0); -x_80 = lean_ctor_get(x_20, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_20); -x_81 = l_Array_isEmpty___redArg(x_80); -if (x_81 == 0) -{ -lean_object* x_82; -lean_free_object(x_5); -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -lean_inc_ref(x_6); -lean_inc(x_80); -x_82 = l_Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1(x_80, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_82) == 0) -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_108; uint8_t x_121; -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); -lean_inc(x_84); -lean_dec_ref(x_82); -x_85 = lean_ctor_get(x_83, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_83, 1); -lean_inc(x_86); -lean_dec(x_83); -x_121 = lean_unbox(x_85); -lean_dec(x_85); -if (x_121 == 0) -{ -if (x_3 == 0) -{ -lean_object* x_122; lean_object* x_123; uint8_t x_124; -x_122 = lean_array_get_size(x_80); -x_123 = lean_mk_empty_array_with_capacity(x_1); -x_124 = lean_nat_dec_lt(x_1, x_122); -if (x_124 == 0) -{ -lean_dec(x_122); -x_108 = x_123; -goto block_117; -} -else -{ -uint8_t x_125; -x_125 = lean_nat_dec_le(x_122, x_122); -if (x_125 == 0) -{ -lean_dec(x_122); -x_108 = x_123; -goto block_117; -} -else -{ -size_t x_126; size_t x_127; lean_object* x_128; -x_126 = 0; -x_127 = lean_usize_of_nat(x_122); -lean_dec(x_122); -lean_inc(x_1); -x_128 = l_Array_foldlMUnsafe_fold___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__21(x_86, x_1, x_80, x_126, x_127, x_123); -x_108 = x_128; -goto block_117; -} -} -} -else -{ -goto block_120; -} -} -else -{ -goto block_120; -} -block_97: -{ -lean_object* x_88; uint8_t x_89; size_t x_90; size_t x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_88 = l_Array_eraseReps___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__17(x_87); -lean_dec_ref(x_87); -x_89 = l_Array_contains___at___Lean_registerInternalExceptionId_spec__0(x_4, x_86); -x_90 = lean_array_size(x_88); -x_91 = 0; -x_92 = l_Array_mapMUnsafe_map___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__19(x_4, x_90, x_91, x_88); -lean_inc(x_86); -x_93 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_93, 0, x_86); -lean_ctor_set(x_93, 1, x_92); -lean_ctor_set_uint8(x_93, sizeof(void*)*2, x_89); -x_94 = lean_array_push(x_78, x_93); -x_95 = lean_box(0); -lean_inc(x_2); -x_96 = l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__6_spec__6___lam__0(x_86, x_1, x_2, x_94, x_79, x_80, x_95, x_6, x_7, x_8, x_9, x_10, x_11, x_84); -x_13 = x_96; -goto block_18; -} -block_102: -{ -lean_object* x_101; -x_101 = l_Array_qsort_sort___at___Lean_Elab_sortDeclLevelParams_spec__1___redArg(x_98, x_99, x_100); -lean_dec(x_100); -x_87 = x_101; -goto block_97; -} -block_107: -{ -uint8_t x_106; -x_106 = lean_nat_dec_le(x_105, x_103); -if (x_106 == 0) -{ -lean_dec(x_103); -lean_inc(x_105); -x_98 = x_104; -x_99 = x_105; -x_100 = x_105; -goto block_102; -} -else -{ -x_98 = x_104; -x_99 = x_105; -x_100 = x_103; -goto block_102; -} -} -block_117: -{ -size_t x_109; size_t x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; -x_109 = lean_array_size(x_108); -x_110 = 0; -x_111 = l_Array_mapMUnsafe_map___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__20(x_1, x_109, x_110, x_108); -x_112 = lean_array_get_size(x_111); -x_113 = lean_nat_dec_eq(x_112, x_1); -if (x_113 == 0) -{ -lean_object* x_114; lean_object* x_115; uint8_t x_116; -x_114 = lean_unsigned_to_nat(1u); -x_115 = lean_nat_sub(x_112, x_114); -lean_dec(x_112); -x_116 = lean_nat_dec_le(x_1, x_115); -if (x_116 == 0) -{ -lean_inc(x_115); -x_103 = x_115; -x_104 = x_111; -x_105 = x_115; -goto block_107; -} -else -{ -lean_inc(x_1); -x_103 = x_115; -x_104 = x_111; -x_105 = x_1; -goto block_107; -} -} -else -{ -lean_dec(x_112); -x_87 = x_111; -goto block_97; -} -} -block_120: -{ -lean_object* x_118; lean_object* x_119; -x_118 = lean_box(0); -lean_inc(x_2); -x_119 = l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__6_spec__6___lam__0(x_86, x_1, x_2, x_78, x_79, x_80, x_118, x_6, x_7, x_8, x_9, x_10, x_11, x_84); -x_13 = x_119; -goto block_18; -} -} -else -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -lean_dec(x_80); -lean_dec(x_79); -lean_dec(x_78); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_129 = lean_ctor_get(x_82, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_82, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_82)) { - lean_ctor_release(x_82, 0); - lean_ctor_release(x_82, 1); - x_131 = x_82; -} else { - lean_dec_ref(x_82); - x_131 = lean_box(0); -} -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(1, 2, 0); -} else { - x_132 = x_131; -} -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_130); -return x_132; -} -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_133 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_133, 0, x_79); -lean_ctor_set(x_133, 1, x_80); -lean_ctor_set(x_5, 1, x_133); -x_134 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_134, 0, x_5); -lean_ctor_set(x_134, 1, x_12); -return x_134; -} -} -} -else -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; -x_135 = lean_ctor_get(x_5, 1); -x_136 = lean_ctor_get(x_5, 0); -lean_inc(x_135); -lean_inc(x_136); -lean_dec(x_5); -x_137 = lean_ctor_get(x_135, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_135, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_135)) { - lean_ctor_release(x_135, 0); - lean_ctor_release(x_135, 1); - x_139 = x_135; -} else { - lean_dec_ref(x_135); - x_139 = lean_box(0); -} -x_140 = l_Array_isEmpty___redArg(x_138); -if (x_140 == 0) -{ -lean_object* x_141; -lean_dec(x_139); -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -lean_inc_ref(x_6); -lean_inc(x_138); -x_141 = l_Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1(x_138, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_141) == 0) -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_167; uint8_t x_180; -x_142 = lean_ctor_get(x_141, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_141, 1); -lean_inc(x_143); -lean_dec_ref(x_141); -x_144 = lean_ctor_get(x_142, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_142, 1); -lean_inc(x_145); -lean_dec(x_142); -x_180 = lean_unbox(x_144); -lean_dec(x_144); -if (x_180 == 0) -{ -if (x_3 == 0) -{ -lean_object* x_181; lean_object* x_182; uint8_t x_183; -x_181 = lean_array_get_size(x_138); -x_182 = lean_mk_empty_array_with_capacity(x_1); -x_183 = lean_nat_dec_lt(x_1, x_181); -if (x_183 == 0) -{ -lean_dec(x_181); -x_167 = x_182; -goto block_176; -} -else -{ -uint8_t x_184; -x_184 = lean_nat_dec_le(x_181, x_181); -if (x_184 == 0) -{ -lean_dec(x_181); -x_167 = x_182; -goto block_176; -} -else -{ -size_t x_185; size_t x_186; lean_object* x_187; -x_185 = 0; -x_186 = lean_usize_of_nat(x_181); -lean_dec(x_181); -lean_inc(x_1); -x_187 = l_Array_foldlMUnsafe_fold___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__21(x_145, x_1, x_138, x_185, x_186, x_182); -x_167 = x_187; -goto block_176; -} -} -} -else -{ -goto block_179; -} -} -else -{ -goto block_179; -} -block_156: -{ -lean_object* x_147; uint8_t x_148; size_t x_149; size_t x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_147 = l_Array_eraseReps___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__17(x_146); -lean_dec_ref(x_146); -x_148 = l_Array_contains___at___Lean_registerInternalExceptionId_spec__0(x_4, x_145); -x_149 = lean_array_size(x_147); -x_150 = 0; -x_151 = l_Array_mapMUnsafe_map___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__19(x_4, x_149, x_150, x_147); -lean_inc(x_145); -x_152 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_152, 0, x_145); -lean_ctor_set(x_152, 1, x_151); -lean_ctor_set_uint8(x_152, sizeof(void*)*2, x_148); -x_153 = lean_array_push(x_136, x_152); -x_154 = lean_box(0); -lean_inc(x_2); -x_155 = l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__6_spec__6___lam__0(x_145, x_1, x_2, x_153, x_137, x_138, x_154, x_6, x_7, x_8, x_9, x_10, x_11, x_143); -x_13 = x_155; -goto block_18; -} -block_161: -{ -lean_object* x_160; -x_160 = l_Array_qsort_sort___at___Lean_Elab_sortDeclLevelParams_spec__1___redArg(x_157, x_158, x_159); -lean_dec(x_159); -x_146 = x_160; -goto block_156; -} -block_166: -{ -uint8_t x_165; -x_165 = lean_nat_dec_le(x_164, x_162); -if (x_165 == 0) -{ -lean_dec(x_162); -lean_inc(x_164); -x_157 = x_163; -x_158 = x_164; -x_159 = x_164; -goto block_161; -} -else -{ -x_157 = x_163; -x_158 = x_164; -x_159 = x_162; -goto block_161; -} -} -block_176: -{ -size_t x_168; size_t x_169; lean_object* x_170; lean_object* x_171; uint8_t x_172; -x_168 = lean_array_size(x_167); -x_169 = 0; -x_170 = l_Array_mapMUnsafe_map___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__20(x_1, x_168, x_169, x_167); -x_171 = lean_array_get_size(x_170); -x_172 = lean_nat_dec_eq(x_171, x_1); -if (x_172 == 0) -{ -lean_object* x_173; lean_object* x_174; uint8_t x_175; -x_173 = lean_unsigned_to_nat(1u); -x_174 = lean_nat_sub(x_171, x_173); -lean_dec(x_171); -x_175 = lean_nat_dec_le(x_1, x_174); -if (x_175 == 0) -{ -lean_inc(x_174); -x_162 = x_174; -x_163 = x_170; -x_164 = x_174; -goto block_166; -} -else -{ -lean_inc(x_1); -x_162 = x_174; -x_163 = x_170; -x_164 = x_1; -goto block_166; -} -} -else -{ -lean_dec(x_171); -x_146 = x_170; -goto block_156; -} -} -block_179: -{ -lean_object* x_177; lean_object* x_178; -x_177 = lean_box(0); -lean_inc(x_2); -x_178 = l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__6_spec__6___lam__0(x_145, x_1, x_2, x_136, x_137, x_138, x_177, x_6, x_7, x_8, x_9, x_10, x_11, x_143); -x_13 = x_178; -goto block_18; -} -} -else -{ -lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; -lean_dec(x_138); -lean_dec(x_137); -lean_dec(x_136); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_188 = lean_ctor_get(x_141, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_141, 1); -lean_inc(x_189); -if (lean_is_exclusive(x_141)) { - lean_ctor_release(x_141, 0); - lean_ctor_release(x_141, 1); - x_190 = x_141; -} else { - lean_dec_ref(x_141); - x_190 = lean_box(0); -} -if (lean_is_scalar(x_190)) { - x_191 = lean_alloc_ctor(1, 2, 0); -} else { - x_191 = x_190; -} -lean_ctor_set(x_191, 0, x_188); -lean_ctor_set(x_191, 1, x_189); -return x_191; -} -} -else -{ -lean_object* x_192; lean_object* x_193; lean_object* x_194; -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_2); -lean_dec(x_1); -if (lean_is_scalar(x_139)) { - x_192 = lean_alloc_ctor(0, 2, 0); -} else { - x_192 = x_139; -} -lean_ctor_set(x_192, 0, x_137); -lean_ctor_set(x_192, 1, x_138); -x_193 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_193, 0, x_136); -lean_ctor_set(x_193, 1, x_192); -x_194 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_12); -return x_194; -} -} -block_18: -{ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); @@ -82376,16 +81626,6 @@ lean_dec(x_6); return x_30; } } -LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; lean_object* x_5; -x_4 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1___redArg___lam__0(x_1, x_2, x_3); -lean_dec(x_1); -x_5 = lean_box(x_4); -return x_5; -} -} LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1___redArg___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; @@ -82882,7 +82122,7 @@ x_22 = lean_array_get(x_4, x_21, x_5); lean_dec_ref(x_21); lean_inc(x_5); lean_inc(x_22); -x_30 = lean_alloc_closure((void*)(l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__8_spec__8___redArg___lam__0___boxed), 3, 2); +x_30 = lean_alloc_closure((void*)(l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_checkResolutionOrder_spec__0_spec__0_spec__1_spec__1_spec__1___redArg___lam__0___boxed), 3, 2); lean_closure_set(x_30, 0, x_22); lean_closure_set(x_30, 1, x_5); x_82 = lean_nat_dec_le(x_11, x_9); @@ -82955,12 +82195,12 @@ return x_28; block_39: { uint8_t x_35; -x_35 = lean_nat_dec_lt(x_33, x_34); +x_35 = lean_nat_dec_lt(x_32, x_34); if (x_35 == 0) { lean_dec(x_34); -lean_dec(x_33); -lean_dec_ref(x_32); +lean_dec_ref(x_33); +lean_dec(x_32); lean_dec_ref(x_30); lean_dec(x_11); lean_dec(x_9); @@ -82974,12 +82214,12 @@ goto block_29; else { size_t x_36; size_t x_37; uint8_t x_38; -x_36 = lean_usize_of_nat(x_33); -lean_dec(x_33); +x_36 = lean_usize_of_nat(x_32); +lean_dec(x_32); x_37 = lean_usize_of_nat(x_34); lean_dec(x_34); -x_38 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__6(x_30, x_31, x_32, x_36, x_37); -lean_dec_ref(x_32); +x_38 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__6(x_30, x_31, x_33, x_36, x_37); +lean_dec_ref(x_33); if (x_38 == 0) { lean_dec(x_11); @@ -83038,8 +82278,8 @@ if (x_49 == 0) { lean_dec(x_46); x_31 = x_40; -x_32 = x_44; -x_33 = x_45; +x_32 = x_45; +x_33 = x_44; x_34 = x_48; goto block_39; } @@ -83047,8 +82287,8 @@ else { lean_dec(x_48); x_31 = x_40; -x_32 = x_44; -x_33 = x_45; +x_32 = x_45; +x_33 = x_44; x_34 = x_46; goto block_39; } @@ -83116,25 +82356,25 @@ goto block_59; block_70: { uint8_t x_66; -x_66 = lean_nat_dec_lt(x_62, x_65); +x_66 = lean_nat_dec_lt(x_63, x_65); if (x_66 == 0) { lean_dec(x_65); -lean_dec_ref(x_63); -lean_dec(x_62); +lean_dec(x_63); +lean_dec_ref(x_62); x_60 = x_64; goto block_61; } else { size_t x_67; size_t x_68; uint8_t x_69; -x_67 = lean_usize_of_nat(x_62); -lean_dec(x_62); +x_67 = lean_usize_of_nat(x_63); +lean_dec(x_63); x_68 = lean_usize_of_nat(x_65); lean_dec(x_65); lean_inc_ref(x_30); -x_69 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__7(x_30, x_63, x_67, x_68); -lean_dec_ref(x_63); +x_69 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__7(x_30, x_62, x_67, x_68); +lean_dec_ref(x_62); if (x_69 == 0) { x_60 = x_66; @@ -83182,8 +82422,8 @@ x_80 = lean_nat_dec_le(x_76, x_79); if (x_80 == 0) { lean_dec(x_76); -x_62 = x_75; -x_63 = x_74; +x_62 = x_74; +x_63 = x_75; x_64 = x_77; x_65 = x_79; goto block_70; @@ -83191,8 +82431,8 @@ goto block_70; else { lean_dec(x_79); -x_62 = x_75; -x_63 = x_74; +x_62 = x_74; +x_63 = x_75; x_64 = x_77; x_65 = x_76; goto block_70; @@ -83312,7 +82552,7 @@ goto block_13; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at___Lean_computeStructureResolutionOrder___at___Lean_getStructureResolutionOrder___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_addParentInstances_spec__0_spec__0_spec__0_spec__1_spec__1___redArg(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, uint8_t x_8, lean_object* x_9, lean_object* x_10, uint8_t x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { _start: { -lean_object* x_20; lean_object* x_21; lean_object* x_28; lean_object* x_29; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; uint8_t x_47; lean_object* x_48; lean_object* x_49; uint8_t x_58; lean_object* x_59; uint8_t x_62; uint8_t x_67; lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_78; lean_object* x_79; uint8_t x_89; +lean_object* x_20; lean_object* x_21; lean_object* x_28; lean_object* x_29; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; uint8_t x_47; lean_object* x_48; lean_object* x_49; uint8_t x_58; lean_object* x_59; uint8_t x_62; uint8_t x_67; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_78; lean_object* x_79; uint8_t x_89; lean_inc_ref(x_2); x_28 = lean_array_get(x_2, x_3, x_14); lean_inc(x_4); @@ -83393,11 +82633,11 @@ return x_35; block_46: { uint8_t x_42; -x_42 = lean_nat_dec_lt(x_39, x_41); +x_42 = lean_nat_dec_lt(x_40, x_41); if (x_42 == 0) { lean_dec(x_41); -lean_dec(x_39); +lean_dec(x_40); lean_dec_ref(x_38); lean_dec_ref(x_37); lean_dec(x_14); @@ -83412,11 +82652,11 @@ goto block_36; else { size_t x_43; size_t x_44; uint8_t x_45; -x_43 = lean_usize_of_nat(x_39); -lean_dec(x_39); +x_43 = lean_usize_of_nat(x_40); +lean_dec(x_40); x_44 = lean_usize_of_nat(x_41); lean_dec(x_41); -x_45 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__6(x_37, x_40, x_38, x_43, x_44); +x_45 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__6(x_37, x_39, x_38, x_43, x_44); lean_dec_ref(x_38); if (x_45 == 0) { @@ -83476,8 +82716,8 @@ if (x_56 == 0) { lean_dec(x_53); x_38 = x_51; -x_39 = x_52; -x_40 = x_47; +x_39 = x_47; +x_40 = x_52; x_41 = x_55; goto block_46; } @@ -83485,8 +82725,8 @@ else { lean_dec(x_55); x_38 = x_51; -x_39 = x_52; -x_40 = x_47; +x_39 = x_47; +x_40 = x_52; x_41 = x_53; goto block_46; } @@ -83554,25 +82794,25 @@ goto block_66; block_77: { uint8_t x_73; -x_73 = lean_nat_dec_lt(x_69, x_72); +x_73 = lean_nat_dec_lt(x_71, x_72); if (x_73 == 0) { lean_dec(x_72); -lean_dec_ref(x_71); -lean_dec(x_69); -x_67 = x_70; +lean_dec(x_71); +lean_dec_ref(x_70); +x_67 = x_69; goto block_68; } else { size_t x_74; size_t x_75; uint8_t x_76; -x_74 = lean_usize_of_nat(x_69); -lean_dec(x_69); +x_74 = lean_usize_of_nat(x_71); +lean_dec(x_71); x_75 = lean_usize_of_nat(x_72); lean_dec(x_72); lean_inc_ref(x_37); -x_76 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__7(x_37, x_71, x_74, x_75); -lean_dec_ref(x_71); +x_76 = l_Array_anyMUnsafe_any___at___Lean_mergeStructureResolutionOrders_selectParent___at___Lean_mergeStructureResolutionOrders___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_resolveFieldDefaults_spec__1_spec__5_spec__7(x_37, x_70, x_74, x_75); +lean_dec_ref(x_70); if (x_76 == 0) { x_67 = x_73; @@ -83620,18 +82860,18 @@ x_87 = lean_nat_dec_le(x_83, x_86); if (x_87 == 0) { lean_dec(x_83); -x_69 = x_82; -x_70 = x_84; -x_71 = x_81; +x_69 = x_84; +x_70 = x_81; +x_71 = x_82; x_72 = x_86; goto block_77; } else { lean_dec(x_86); -x_69 = x_82; -x_70 = x_84; -x_71 = x_81; +x_69 = x_84; +x_70 = x_81; +x_71 = x_82; x_72 = x_83; goto block_77; } @@ -84647,21 +83887,21 @@ goto block_39; block_49: { uint8_t x_48; -x_48 = lean_nat_dec_le(x_47, x_46); +x_48 = lean_nat_dec_le(x_47, x_45); if (x_48 == 0) { -lean_dec(x_46); +lean_dec(x_45); lean_inc(x_47); x_40 = x_47; -x_41 = x_45; +x_41 = x_46; x_42 = x_47; goto block_44; } else { x_40 = x_47; -x_41 = x_45; -x_42 = x_46; +x_41 = x_46; +x_42 = x_45; goto block_44; } } @@ -84683,16 +83923,16 @@ x_58 = lean_nat_dec_le(x_1, x_57); if (x_58 == 0) { lean_inc(x_57); -x_45 = x_53; -x_46 = x_57; +x_45 = x_57; +x_46 = x_53; x_47 = x_57; goto block_49; } else { lean_inc(x_1); -x_45 = x_53; -x_46 = x_57; +x_45 = x_57; +x_46 = x_53; x_47 = x_1; goto block_49; } @@ -84874,21 +84114,21 @@ goto block_95; block_105: { uint8_t x_104; -x_104 = lean_nat_dec_le(x_103, x_102); +x_104 = lean_nat_dec_le(x_103, x_101); if (x_104 == 0) { -lean_dec(x_102); +lean_dec(x_101); lean_inc(x_103); x_96 = x_103; -x_97 = x_101; +x_97 = x_102; x_98 = x_103; goto block_100; } else { x_96 = x_103; -x_97 = x_101; -x_98 = x_102; +x_97 = x_102; +x_98 = x_101; goto block_100; } } @@ -84910,16 +84150,16 @@ x_114 = lean_nat_dec_le(x_1, x_113); if (x_114 == 0) { lean_inc(x_113); -x_101 = x_109; -x_102 = x_113; +x_101 = x_113; +x_102 = x_109; x_103 = x_113; goto block_105; } else { lean_inc(x_1); -x_101 = x_109; -x_102 = x_113; +x_101 = x_113; +x_102 = x_109; x_103 = x_1; goto block_105; } @@ -85119,21 +84359,21 @@ goto block_154; block_164: { uint8_t x_163; -x_163 = lean_nat_dec_le(x_162, x_161); +x_163 = lean_nat_dec_le(x_162, x_160); if (x_163 == 0) { -lean_dec(x_161); +lean_dec(x_160); lean_inc(x_162); x_155 = x_162; -x_156 = x_160; +x_156 = x_161; x_157 = x_162; goto block_159; } else { x_155 = x_162; -x_156 = x_160; -x_157 = x_161; +x_156 = x_161; +x_157 = x_160; goto block_159; } } @@ -85155,16 +84395,16 @@ x_173 = lean_nat_dec_le(x_1, x_172); if (x_173 == 0) { lean_inc(x_172); -x_160 = x_168; -x_161 = x_172; +x_160 = x_172; +x_161 = x_168; x_162 = x_172; goto block_164; } else { lean_inc(x_1); -x_160 = x_168; -x_161 = x_172; +x_160 = x_172; +x_161 = x_168; x_162 = x_1; goto block_164; } @@ -85375,7 +84615,7 @@ goto block_16; block_44: { lean_object* x_43; -x_43 = l_Array_qsort_sort___at___Lean_Elab_sortDeclLevelParams_spec__1___redArg(x_40, x_41, x_42); +x_43 = l_Array_qsort_sort___at___Lean_Elab_sortDeclLevelParams_spec__1___redArg(x_41, x_40, x_42); lean_dec(x_42); x_29 = x_43; goto block_39; @@ -85383,21 +84623,21 @@ goto block_39; block_49: { uint8_t x_48; -x_48 = lean_nat_dec_le(x_47, x_46); +x_48 = lean_nat_dec_le(x_47, x_45); if (x_48 == 0) { -lean_dec(x_46); +lean_dec(x_45); lean_inc(x_47); -x_40 = x_45; -x_41 = x_47; +x_40 = x_47; +x_41 = x_46; x_42 = x_47; goto block_44; } else { -x_40 = x_45; -x_41 = x_47; -x_42 = x_46; +x_40 = x_47; +x_41 = x_46; +x_42 = x_45; goto block_44; } } @@ -85419,16 +84659,16 @@ x_58 = lean_nat_dec_le(x_1, x_57); if (x_58 == 0) { lean_inc(x_57); -x_45 = x_53; -x_46 = x_57; +x_45 = x_57; +x_46 = x_53; x_47 = x_57; goto block_49; } else { lean_inc(x_1); -x_45 = x_53; -x_46 = x_57; +x_45 = x_57; +x_46 = x_53; x_47 = x_1; goto block_49; } @@ -85602,7 +84842,7 @@ goto block_16; block_100: { lean_object* x_99; -x_99 = l_Array_qsort_sort___at___Lean_Elab_sortDeclLevelParams_spec__1___redArg(x_96, x_97, x_98); +x_99 = l_Array_qsort_sort___at___Lean_Elab_sortDeclLevelParams_spec__1___redArg(x_97, x_96, x_98); lean_dec(x_98); x_85 = x_99; goto block_95; @@ -85610,21 +84850,21 @@ goto block_95; block_105: { uint8_t x_104; -x_104 = lean_nat_dec_le(x_103, x_102); +x_104 = lean_nat_dec_le(x_103, x_101); if (x_104 == 0) { -lean_dec(x_102); +lean_dec(x_101); lean_inc(x_103); -x_96 = x_101; -x_97 = x_103; +x_96 = x_103; +x_97 = x_102; x_98 = x_103; goto block_100; } else { -x_96 = x_101; -x_97 = x_103; -x_98 = x_102; +x_96 = x_103; +x_97 = x_102; +x_98 = x_101; goto block_100; } } @@ -85646,16 +84886,16 @@ x_114 = lean_nat_dec_le(x_1, x_113); if (x_114 == 0) { lean_inc(x_113); -x_101 = x_109; -x_102 = x_113; +x_101 = x_113; +x_102 = x_109; x_103 = x_113; goto block_105; } else { lean_inc(x_1); -x_101 = x_109; -x_102 = x_113; +x_101 = x_113; +x_102 = x_109; x_103 = x_1; goto block_105; } @@ -85847,7 +85087,7 @@ goto block_16; block_159: { lean_object* x_158; -x_158 = l_Array_qsort_sort___at___Lean_Elab_sortDeclLevelParams_spec__1___redArg(x_155, x_156, x_157); +x_158 = l_Array_qsort_sort___at___Lean_Elab_sortDeclLevelParams_spec__1___redArg(x_156, x_155, x_157); lean_dec(x_157); x_144 = x_158; goto block_154; @@ -85855,21 +85095,21 @@ goto block_154; block_164: { uint8_t x_163; -x_163 = lean_nat_dec_le(x_162, x_161); +x_163 = lean_nat_dec_le(x_162, x_160); if (x_163 == 0) { -lean_dec(x_161); +lean_dec(x_160); lean_inc(x_162); -x_155 = x_160; -x_156 = x_162; +x_155 = x_162; +x_156 = x_161; x_157 = x_162; goto block_159; } else { -x_155 = x_160; -x_156 = x_162; -x_157 = x_161; +x_155 = x_162; +x_156 = x_161; +x_157 = x_160; goto block_159; } } @@ -85891,16 +85131,16 @@ x_173 = lean_nat_dec_le(x_1, x_172); if (x_173 == 0) { lean_inc(x_172); -x_160 = x_168; -x_161 = x_172; +x_160 = x_172; +x_161 = x_168; x_162 = x_172; goto block_164; } else { lean_inc(x_1); -x_160 = x_168; -x_161 = x_172; +x_160 = x_172; +x_161 = x_168; x_162 = x_1; goto block_164; } @@ -91774,6 +91014,10 @@ l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___clos lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__2); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__3(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__3); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__4 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__4); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__5 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandCtor___closed__5); l_Array_mapMUnsafe_map___at___Array_mapMUnsafe_map___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandParents_spec__0_spec__0___closed__0 = _init_l_Array_mapMUnsafe_map___at___Array_mapMUnsafe_map___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandParents_spec__0_spec__0___closed__0(); lean_mark_persistent(l_Array_mapMUnsafe_map___at___Array_mapMUnsafe_map___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandParents_spec__0_spec__0___closed__0); l_Array_mapMUnsafe_map___at___Array_mapMUnsafe_map___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandParents_spec__0_spec__0___closed__1 = _init_l_Array_mapMUnsafe_map___at___Array_mapMUnsafe_map___at_____private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_expandParents_spec__0_spec__0___closed__1(); @@ -92249,10 +91493,10 @@ l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabParamInfoUpda lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabParamInfoUpdates___closed__3); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabParamInfoUpdates___closed__4 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabParamInfoUpdates___closed__4(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabParamInfoUpdates___closed__4); -l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___closed__0 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___closed__0(); -lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___closed__0); -l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__1___closed__1); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__3___closed__0 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__3___closed__0(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__3___closed__0); +l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__3___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__3___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_elabFieldTypeValue___lam__3___closed__1); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go___redArg___closed__0 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go___redArg___closed__0(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go___redArg___closed__0); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go___redArg___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_Structure_withFields_go___redArg___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/SyntheticMVars.c b/stage0/stdlib/Lean/Elab/SyntheticMVars.c index 2de79cd663..6ec132db9f 100644 --- a/stage0/stdlib/Lean/Elab/SyntheticMVars.c +++ b/stage0/stdlib/Lean/Elab/SyntheticMVars.c @@ -17,11 +17,12 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_ LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstances___at_____private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_initFn___closed__1____x40_Lean_Elab_SyntheticMVars___hyg_7534_; +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_occursCheck_visitMVar___at___Lean_occursCheck_visit___at___Lean_occursCheck___at_____private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_TacticMVarKind_logError___closed__7; lean_object* l_List_lengthTR___redArg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -349,7 +350,7 @@ lean_object* l_List_appendTR___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___at___Lean_Elab_Term_withNarrowedArgTacticReuse___at___Lean_Elab_Term_runTactic_spec__2_spec__2___redArg___lam__0___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_EXPORT lean_object* l_Lean_Elab_Term_PostponeBehavior_noConfusion(lean_object*, uint8_t, uint8_t, lean_object*); static lean_object* l_Lean_Elab_Term_reprPostponeBehavior___closed__3____x40_Lean_Elab_SyntheticMVars___hyg_4198_; -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_TacticMVarKind_logError___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_runTactic___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars_spec__0(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -595,6 +596,7 @@ uint8_t l_Lean_beqBinderInfo____x40_Lean_Expr___hyg_413_(uint8_t, uint8_t); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_LocalContext_foldlM___at___Lean_instantiateLCtxMVars___at___Lean_instantiateMVarDeclMVars___at___Lean_Elab_Term_runTactic_spec__6_spec__6_spec__7_spec__7_spec__7_spec__7_spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_zetaReduce(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_erase___at_____private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_markAsResolved_spec__0___redArg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr_spec__9___redArg___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*); size_t lean_usize_land(size_t, size_t); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr_spec__9(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -15175,10 +15177,10 @@ goto _start; block_47: { lean_object* x_45; lean_object* x_46; -x_45 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_37, x_44, x_41, x_40, x_42, x_38, x_43); -lean_dec(x_38); -lean_dec_ref(x_42); +x_45 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_37, x_44, x_41, x_43, x_42, x_40, x_38); lean_dec(x_40); +lean_dec_ref(x_42); +lean_dec(x_43); lean_dec_ref(x_41); x_46 = lean_ctor_get(x_45, 1); lean_inc(x_46); @@ -15220,12 +15222,12 @@ x_58 = lean_ctor_get(x_54, 1); lean_inc(x_58); lean_dec_ref(x_54); x_59 = l_List_filterAuxM___at___List_filterAuxM___at_____private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep_spec__0_spec__0___closed__3; -x_38 = x_52; +x_38 = x_58; x_39 = x_48; -x_40 = x_50; +x_40 = x_52; x_41 = x_49; x_42 = x_51; -x_43 = x_58; +x_43 = x_50; x_44 = x_59; goto block_47; } @@ -15236,12 +15238,12 @@ x_60 = lean_ctor_get(x_54, 1); lean_inc(x_60); lean_dec_ref(x_54); x_61 = l_List_filterAuxM___at___List_filterAuxM___at_____private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep_spec__0_spec__0___closed__6; -x_38 = x_52; +x_38 = x_60; x_39 = x_48; -x_40 = x_50; +x_40 = x_52; x_41 = x_49; x_42 = x_51; -x_43 = x_60; +x_43 = x_50; x_44 = x_61; goto block_47; } @@ -15629,11 +15631,11 @@ return x_34; block_47: { lean_object* x_45; lean_object* x_46; -x_45 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_37, x_44, x_41, x_39, x_43, x_42, x_40); +x_45 = l_Lean_addTrace___at___Lean_Elab_Term_traceAtCmdPos_spec__1___redArg(x_37, x_44, x_40, x_41, x_43, x_42, x_39); lean_dec(x_42); lean_dec_ref(x_43); -lean_dec(x_39); -lean_dec_ref(x_41); +lean_dec(x_41); +lean_dec_ref(x_40); x_46 = lean_ctor_get(x_45, 1); lean_inc(x_46); lean_dec_ref(x_45); @@ -15675,9 +15677,9 @@ lean_inc(x_58); lean_dec_ref(x_54); x_59 = l_List_filterAuxM___at___List_filterAuxM___at_____private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep_spec__0_spec__0___closed__3; x_38 = x_48; -x_39 = x_50; -x_40 = x_58; -x_41 = x_49; +x_39 = x_58; +x_40 = x_49; +x_41 = x_50; x_42 = x_52; x_43 = x_51; x_44 = x_59; @@ -15691,9 +15693,9 @@ lean_inc(x_60); lean_dec_ref(x_54); x_61 = l_List_filterAuxM___at___List_filterAuxM___at_____private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep_spec__0_spec__0___closed__6; x_38 = x_48; -x_39 = x_50; -x_40 = x_60; -x_41 = x_49; +x_39 = x_60; +x_40 = x_49; +x_41 = x_50; x_42 = x_52; x_43 = x_51; x_44 = x_61; @@ -17704,384 +17706,393 @@ lean_ctor_set(x_5, 5, x_1); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(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_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_9 = lean_st_ref_get(x_7, x_8); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_10, 0); -lean_inc_ref(x_11); -lean_dec(x_10); -x_12 = lean_ctor_get(x_9, 1); +if (x_2 == 0) +{ +lean_object* x_10; +x_10 = lean_apply_7(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_11 = lean_st_ref_get(x_8, x_9); +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec_ref(x_9); -x_13 = lean_ctor_get_uint8(x_11, sizeof(void*)*8); +x_13 = lean_ctor_get(x_12, 0); +lean_inc_ref(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); lean_dec_ref(x_11); -x_14 = lean_st_ref_take(x_7, x_12); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec_ref(x_14); -x_17 = !lean_is_exclusive(x_15); -if (x_17 == 0) +x_15 = lean_ctor_get_uint8(x_13, sizeof(void*)*8); +lean_dec_ref(x_13); +x_16 = lean_st_ref_take(x_8, x_14); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec_ref(x_16); +x_19 = !lean_is_exclusive(x_17); +if (x_19 == 0) { -lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_18 = lean_ctor_get(x_15, 0); -x_19 = lean_ctor_get(x_15, 5); -lean_dec(x_19); -x_20 = 0; -x_21 = l_Lean_Environment_setExporting(x_18, x_20); -x_22 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___closed__2; -lean_ctor_set(x_15, 5, x_22); -lean_ctor_set(x_15, 0, x_21); -x_23 = lean_st_ref_set(x_7, x_15, x_16); -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec_ref(x_23); -x_25 = lean_st_ref_take(x_5, x_24); -x_26 = lean_ctor_get(x_25, 0); +lean_object* x_20; 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; uint8_t x_30; +x_20 = lean_ctor_get(x_17, 0); +x_21 = lean_ctor_get(x_17, 5); +lean_dec(x_21); +x_22 = 0; +x_23 = l_Lean_Environment_setExporting(x_20, x_22); +x_24 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___closed__2; +lean_ctor_set(x_17, 5, x_24); +lean_ctor_set(x_17, 0, x_23); +x_25 = lean_st_ref_set(x_8, x_17, x_18); +x_26 = lean_ctor_get(x_25, 1); lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); lean_dec_ref(x_25); -x_28 = !lean_is_exclusive(x_26); -if (x_28 == 0) +x_27 = lean_st_ref_take(x_6, x_26); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec_ref(x_27); +x_30 = !lean_is_exclusive(x_28); +if (x_30 == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_29 = lean_ctor_get(x_26, 1); -lean_dec(x_29); -x_30 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___closed__7; -lean_ctor_set(x_26, 1, x_30); -x_31 = lean_st_ref_set(x_5, x_26, x_27); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec_ref(x_31); -lean_inc(x_7); -lean_inc(x_5); -x_33 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_32); -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_34 = lean_ctor_get(x_33, 0); +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_28, 1); +lean_dec(x_31); +x_32 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___closed__7; +lean_ctor_set(x_28, 1, x_32); +x_33 = lean_st_ref_set(x_6, x_28, x_29); +x_34 = lean_ctor_get(x_33, 1); lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); lean_dec_ref(x_33); -lean_inc(x_34); -x_36 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_36, 0, x_34); -x_37 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___lam__0(x_7, x_13, x_22, x_5, x_30, x_36, x_35); -lean_dec_ref(x_36); -lean_dec(x_5); -lean_dec(x_7); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) +lean_inc(x_8); +lean_inc(x_6); +x_35 = lean_apply_7(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_34); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_39; -x_39 = lean_ctor_get(x_37, 0); -lean_dec(x_39); -lean_ctor_set(x_37, 0, x_34); -return x_37; +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec_ref(x_35); +lean_inc(x_36); +x_38 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_36); +x_39 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___lam__0(x_8, x_15, x_24, x_6, x_32, x_38, x_37); +lean_dec_ref(x_38); +lean_dec(x_6); +lean_dec(x_8); +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) +{ +lean_object* x_41; +x_41 = lean_ctor_get(x_39, 0); +lean_dec(x_41); +lean_ctor_set(x_39, 0, x_36); +return x_39; } else { -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_34); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_42 = lean_ctor_get(x_33, 0); +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_39, 1); lean_inc(x_42); -x_43 = lean_ctor_get(x_33, 1); -lean_inc(x_43); -lean_dec_ref(x_33); -x_44 = lean_box(0); -x_45 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___lam__0(x_7, x_13, x_22, x_5, x_30, x_44, x_43); -lean_dec(x_5); -lean_dec(x_7); -x_46 = !lean_is_exclusive(x_45); -if (x_46 == 0) +lean_dec(x_39); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_36); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +else { -lean_object* x_47; -x_47 = lean_ctor_get(x_45, 0); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_44 = lean_ctor_get(x_35, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_35, 1); +lean_inc(x_45); +lean_dec_ref(x_35); +x_46 = lean_box(0); +x_47 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___lam__0(x_8, x_15, x_24, x_6, x_32, x_46, x_45); +lean_dec(x_6); +lean_dec(x_8); +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) +{ +lean_object* x_49; +x_49 = lean_ctor_get(x_47, 0); +lean_dec(x_49); +lean_ctor_set_tag(x_47, 1); +lean_ctor_set(x_47, 0, x_44); +return x_47; +} +else +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_50); lean_dec(x_47); -lean_ctor_set_tag(x_45, 1); -lean_ctor_set(x_45, 0, x_42); -return x_45; -} -else -{ -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -lean_dec(x_45); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_42); -lean_ctor_set(x_49, 1, x_48); -return x_49; +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_44); +lean_ctor_set(x_51, 1, x_50); +return x_51; } } } else { -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; -x_50 = lean_ctor_get(x_26, 0); -x_51 = lean_ctor_get(x_26, 2); -x_52 = lean_ctor_get(x_26, 3); -x_53 = lean_ctor_get(x_26, 4); +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; +x_52 = lean_ctor_get(x_28, 0); +x_53 = lean_ctor_get(x_28, 2); +x_54 = lean_ctor_get(x_28, 3); +x_55 = lean_ctor_get(x_28, 4); +lean_inc(x_55); +lean_inc(x_54); lean_inc(x_53); lean_inc(x_52); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_26); -x_54 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___closed__7; -x_55 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_55, 0, x_50); -lean_ctor_set(x_55, 1, x_54); -lean_ctor_set(x_55, 2, x_51); -lean_ctor_set(x_55, 3, x_52); -lean_ctor_set(x_55, 4, x_53); -x_56 = lean_st_ref_set(x_5, x_55, x_27); -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -lean_dec_ref(x_56); -lean_inc(x_7); -lean_inc(x_5); -x_58 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_57); -if (lean_obj_tag(x_58) == 0) -{ -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; -x_59 = lean_ctor_get(x_58, 0); +lean_dec(x_28); +x_56 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___closed__7; +x_57 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_57, 0, x_52); +lean_ctor_set(x_57, 1, x_56); +lean_ctor_set(x_57, 2, x_53); +lean_ctor_set(x_57, 3, x_54); +lean_ctor_set(x_57, 4, x_55); +x_58 = lean_st_ref_set(x_6, x_57, x_29); +x_59 = lean_ctor_get(x_58, 1); lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); lean_dec_ref(x_58); -lean_inc(x_59); -x_61 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_61, 0, x_59); -x_62 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___lam__0(x_7, x_13, x_22, x_5, x_54, x_61, x_60); -lean_dec_ref(x_61); -lean_dec(x_5); -lean_dec(x_7); -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_64 = x_62; +lean_inc(x_8); +lean_inc(x_6); +x_60 = lean_apply_7(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_59); +if (lean_obj_tag(x_60) == 0) +{ +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; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec_ref(x_60); +lean_inc(x_61); +x_63 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_63, 0, x_61); +x_64 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___lam__0(x_8, x_15, x_24, x_6, x_56, x_63, x_62); +lean_dec_ref(x_63); +lean_dec(x_6); +lean_dec(x_8); +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_66 = x_64; } else { - lean_dec_ref(x_62); - x_64 = lean_box(0); + lean_dec_ref(x_64); + x_66 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(0, 2, 0); } else { - x_65 = x_64; + x_67 = x_66; } -lean_ctor_set(x_65, 0, x_59); -lean_ctor_set(x_65, 1, x_63); -return x_65; +lean_ctor_set(x_67, 0, x_61); +lean_ctor_set(x_67, 1, x_65); +return x_67; } else { -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_66 = lean_ctor_get(x_58, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_58, 1); -lean_inc(x_67); -lean_dec_ref(x_58); -x_68 = lean_box(0); -x_69 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___lam__0(x_7, x_13, x_22, x_5, x_54, x_68, x_67); -lean_dec(x_5); -lean_dec(x_7); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_71 = x_69; +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; +x_68 = lean_ctor_get(x_60, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_60, 1); +lean_inc(x_69); +lean_dec_ref(x_60); +x_70 = lean_box(0); +x_71 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___lam__0(x_8, x_15, x_24, x_6, x_56, x_70, x_69); +lean_dec(x_6); +lean_dec(x_8); +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_73 = x_71; } else { - lean_dec_ref(x_69); - x_71 = lean_box(0); + lean_dec_ref(x_71); + x_73 = lean_box(0); } -if (lean_is_scalar(x_71)) { - x_72 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_73)) { + x_74 = lean_alloc_ctor(1, 2, 0); } else { - x_72 = x_71; - lean_ctor_set_tag(x_72, 1); + x_74 = x_73; + lean_ctor_set_tag(x_74, 1); } -lean_ctor_set(x_72, 0, x_66); -lean_ctor_set(x_72, 1, x_70); -return x_72; +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_72); +return x_74; } } } else { -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; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_73 = lean_ctor_get(x_15, 0); -x_74 = lean_ctor_get(x_15, 1); -x_75 = lean_ctor_get(x_15, 2); -x_76 = lean_ctor_get(x_15, 3); -x_77 = lean_ctor_get(x_15, 4); -x_78 = lean_ctor_get(x_15, 6); -x_79 = lean_ctor_get(x_15, 7); -x_80 = lean_ctor_get(x_15, 8); +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; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_75 = lean_ctor_get(x_17, 0); +x_76 = lean_ctor_get(x_17, 1); +x_77 = lean_ctor_get(x_17, 2); +x_78 = lean_ctor_get(x_17, 3); +x_79 = lean_ctor_get(x_17, 4); +x_80 = lean_ctor_get(x_17, 6); +x_81 = lean_ctor_get(x_17, 7); +x_82 = lean_ctor_get(x_17, 8); +lean_inc(x_82); +lean_inc(x_81); lean_inc(x_80); lean_inc(x_79); lean_inc(x_78); lean_inc(x_77); lean_inc(x_76); lean_inc(x_75); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_15); -x_81 = 0; -x_82 = l_Lean_Environment_setExporting(x_73, x_81); -x_83 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___closed__2; -x_84 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_74); -lean_ctor_set(x_84, 2, x_75); -lean_ctor_set(x_84, 3, x_76); -lean_ctor_set(x_84, 4, x_77); -lean_ctor_set(x_84, 5, x_83); -lean_ctor_set(x_84, 6, x_78); -lean_ctor_set(x_84, 7, x_79); -lean_ctor_set(x_84, 8, x_80); -x_85 = lean_st_ref_set(x_7, x_84, x_16); -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -lean_dec_ref(x_85); -x_87 = lean_st_ref_take(x_5, x_86); -x_88 = lean_ctor_get(x_87, 0); +lean_dec(x_17); +x_83 = 0; +x_84 = l_Lean_Environment_setExporting(x_75, x_83); +x_85 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___closed__2; +x_86 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_76); +lean_ctor_set(x_86, 2, x_77); +lean_ctor_set(x_86, 3, x_78); +lean_ctor_set(x_86, 4, x_79); +lean_ctor_set(x_86, 5, x_85); +lean_ctor_set(x_86, 6, x_80); +lean_ctor_set(x_86, 7, x_81); +lean_ctor_set(x_86, 8, x_82); +x_87 = lean_st_ref_set(x_8, x_86, x_18); +x_88 = lean_ctor_get(x_87, 1); lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); lean_dec_ref(x_87); -x_90 = lean_ctor_get(x_88, 0); -lean_inc_ref(x_90); -x_91 = lean_ctor_get(x_88, 2); +x_89 = lean_st_ref_take(x_6, x_88); +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); lean_inc(x_91); -x_92 = lean_ctor_get(x_88, 3); +lean_dec_ref(x_89); +x_92 = lean_ctor_get(x_90, 0); lean_inc_ref(x_92); -x_93 = lean_ctor_get(x_88, 4); -lean_inc_ref(x_93); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - lean_ctor_release(x_88, 2); - lean_ctor_release(x_88, 3); - lean_ctor_release(x_88, 4); - x_94 = x_88; +x_93 = lean_ctor_get(x_90, 2); +lean_inc(x_93); +x_94 = lean_ctor_get(x_90, 3); +lean_inc_ref(x_94); +x_95 = lean_ctor_get(x_90, 4); +lean_inc_ref(x_95); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + lean_ctor_release(x_90, 2); + lean_ctor_release(x_90, 3); + lean_ctor_release(x_90, 4); + x_96 = x_90; } else { - lean_dec_ref(x_88); - x_94 = lean_box(0); + lean_dec_ref(x_90); + x_96 = lean_box(0); } -x_95 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___closed__7; -if (lean_is_scalar(x_94)) { - x_96 = lean_alloc_ctor(0, 5, 0); +x_97 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___closed__7; +if (lean_is_scalar(x_96)) { + x_98 = lean_alloc_ctor(0, 5, 0); } else { - x_96 = x_94; + x_98 = x_96; } -lean_ctor_set(x_96, 0, x_90); -lean_ctor_set(x_96, 1, x_95); -lean_ctor_set(x_96, 2, x_91); -lean_ctor_set(x_96, 3, x_92); -lean_ctor_set(x_96, 4, x_93); -x_97 = lean_st_ref_set(x_5, x_96, x_89); -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -lean_dec_ref(x_97); -lean_inc(x_7); -lean_inc(x_5); -x_99 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_98); -if (lean_obj_tag(x_99) == 0) -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_100 = lean_ctor_get(x_99, 0); +lean_ctor_set(x_98, 0, x_92); +lean_ctor_set(x_98, 1, x_97); +lean_ctor_set(x_98, 2, x_93); +lean_ctor_set(x_98, 3, x_94); +lean_ctor_set(x_98, 4, x_95); +x_99 = lean_st_ref_set(x_6, x_98, x_91); +x_100 = lean_ctor_get(x_99, 1); lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); lean_dec_ref(x_99); -lean_inc(x_100); -x_102 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_102, 0, x_100); -x_103 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___lam__0(x_7, x_13, x_83, x_5, x_95, x_102, x_101); -lean_dec_ref(x_102); -lean_dec(x_5); -lean_dec(x_7); -x_104 = lean_ctor_get(x_103, 1); -lean_inc(x_104); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_105 = x_103; +lean_inc(x_8); +lean_inc(x_6); +x_101 = lean_apply_7(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_100); +if (lean_obj_tag(x_101) == 0) +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_101, 1); +lean_inc(x_103); +lean_dec_ref(x_101); +lean_inc(x_102); +x_104 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_104, 0, x_102); +x_105 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___lam__0(x_8, x_15, x_85, x_6, x_97, x_104, x_103); +lean_dec_ref(x_104); +lean_dec(x_6); +lean_dec(x_8); +x_106 = lean_ctor_get(x_105, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_107 = x_105; } else { - lean_dec_ref(x_103); - x_105 = lean_box(0); + lean_dec_ref(x_105); + x_107 = lean_box(0); } -if (lean_is_scalar(x_105)) { - x_106 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_107)) { + x_108 = lean_alloc_ctor(0, 2, 0); } else { - x_106 = x_105; + x_108 = x_107; } -lean_ctor_set(x_106, 0, x_100); -lean_ctor_set(x_106, 1, x_104); -return x_106; +lean_ctor_set(x_108, 0, x_102); +lean_ctor_set(x_108, 1, x_106); +return x_108; } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_107 = lean_ctor_get(x_99, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_99, 1); -lean_inc(x_108); -lean_dec_ref(x_99); -x_109 = lean_box(0); -x_110 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___lam__0(x_7, x_13, x_83, x_5, x_95, x_109, x_108); -lean_dec(x_5); -lean_dec(x_7); -x_111 = lean_ctor_get(x_110, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - x_112 = x_110; +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 = lean_ctor_get(x_101, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_101, 1); +lean_inc(x_110); +lean_dec_ref(x_101); +x_111 = lean_box(0); +x_112 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___lam__0(x_8, x_15, x_85, x_6, x_97, x_111, x_110); +lean_dec(x_6); +lean_dec(x_8); +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_114 = x_112; } else { - lean_dec_ref(x_110); - x_112 = lean_box(0); + lean_dec_ref(x_112); + x_114 = lean_box(0); } -if (lean_is_scalar(x_112)) { - x_113 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_114)) { + x_115 = lean_alloc_ctor(1, 2, 0); } else { - x_113 = x_112; - lean_ctor_set_tag(x_113, 1); + x_115 = x_114; + lean_ctor_set_tag(x_115, 1); } -lean_ctor_set(x_113, 0, x_107); -lean_ctor_set(x_113, 1, x_111); -return x_113; +lean_ctor_set(x_115, 0, x_109); +lean_ctor_set(x_115, 1, x_113); +return x_115; } } } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0(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_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_10; -x_10 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_10; +lean_object* x_11; +x_11 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_11; } } LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0___lam__0(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) { @@ -18095,65 +18106,65 @@ return x_9; LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_11; lean_object* x_12; +lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_inc_ref(x_1); x_11 = lean_alloc_closure((void*)(l_Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0___lam__0___boxed), 8, 1); lean_closure_set(x_11, 0, x_1); +x_12 = 1; lean_inc(x_9); lean_inc_ref(x_8); lean_inc(x_7); lean_inc_ref(x_6); lean_inc(x_5); lean_inc_ref(x_4); -x_12 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_12) == 0) +x_13 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -lean_dec_ref(x_12); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec_ref(x_13); lean_inc(x_9); lean_inc_ref(x_8); -x_15 = l_Lean_Core_betaReduce(x_13, x_8, x_9, x_14); -if (lean_obj_tag(x_15) == 0) +x_16 = l_Lean_Core_betaReduce(x_14, x_8, x_9, x_15); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -lean_dec_ref(x_15); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec_ref(x_16); lean_inc(x_9); lean_inc_ref(x_8); lean_inc(x_7); lean_inc_ref(x_6); -x_18 = l_Lean_Meta_zetaReduce(x_16, x_6, x_7, x_8, x_9, x_17); -if (lean_obj_tag(x_18) == 0) +x_19 = l_Lean_Meta_zetaReduce(x_17, x_6, x_7, x_8, x_9, x_18); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec_ref(x_18); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec_ref(x_19); lean_inc(x_9); lean_inc_ref(x_8); lean_inc(x_7); lean_inc_ref(x_6); -x_21 = lean_apply_8(x_3, x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_20); -if (lean_obj_tag(x_21) == 0) +x_22 = lean_apply_8(x_3, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_21); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec_ref(x_21); -x_24 = 1; +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec_ref(x_22); x_25 = lean_box(0); -x_26 = l_Lean_Meta_mkAuxTheorem(x_22, x_1, x_24, x_25, x_2, x_6, x_7, x_8, x_9, x_23); +x_26 = l_Lean_Meta_mkAuxTheorem(x_23, x_1, x_12, x_25, x_2, x_6, x_7, x_8, x_9, x_24); return x_26; } else @@ -18163,7 +18174,7 @@ lean_dec_ref(x_8); lean_dec(x_7); lean_dec_ref(x_6); lean_dec_ref(x_1); -return x_21; +return x_22; } } else @@ -18176,7 +18187,7 @@ lean_dec(x_5); lean_dec_ref(x_4); lean_dec(x_3); lean_dec_ref(x_1); -return x_18; +return x_19; } } else @@ -18189,7 +18200,7 @@ lean_dec(x_5); lean_dec_ref(x_4); lean_dec(x_3); lean_dec_ref(x_1); -return x_15; +return x_16; } } else @@ -18202,7 +18213,7 @@ lean_dec(x_5); lean_dec_ref(x_4); lean_dec(x_3); lean_dec_ref(x_1); -return x_12; +return x_13; } } } @@ -18384,7 +18395,7 @@ return x_17; LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___at___Lean_Elab_Term_withNarrowedArgTacticReuse___at___Lean_Elab_Term_runTactic_spec__2_spec__2___redArg(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: { -uint8_t x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; uint8_t x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; lean_object* x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; uint8_t x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; uint8_t x_74; uint8_t x_75; lean_object* x_76; uint8_t x_77; uint8_t x_78; uint8_t x_79; lean_object* x_80; lean_object* x_116; +uint8_t x_13; uint8_t x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; uint8_t x_35; uint8_t x_36; uint8_t x_37; uint8_t x_38; uint8_t x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; uint8_t x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; uint8_t x_74; uint8_t x_75; lean_object* x_76; uint8_t x_77; uint8_t x_78; uint8_t x_79; lean_object* x_80; lean_object* x_116; lean_inc(x_1); x_58 = lean_apply_1(x_1, x_3); x_59 = lean_ctor_get(x_58, 0); @@ -18456,25 +18467,25 @@ block_34: { lean_object* x_32; lean_object* x_33; x_32 = lean_alloc_ctor(0, 7, 11); -lean_ctor_set(x_32, 0, x_21); -lean_ctor_set(x_32, 1, x_22); -lean_ctor_set(x_32, 2, x_27); -lean_ctor_set(x_32, 3, x_18); -lean_ctor_set(x_32, 4, x_15); -lean_ctor_set(x_32, 5, x_17); +lean_ctor_set(x_32, 0, x_28); +lean_ctor_set(x_32, 1, x_18); +lean_ctor_set(x_32, 2, x_22); +lean_ctor_set(x_32, 3, x_25); +lean_ctor_set(x_32, 4, x_23); +lean_ctor_set(x_32, 5, x_29); lean_ctor_set(x_32, 6, x_31); -lean_ctor_set_uint8(x_32, sizeof(void*)*7, x_26); -lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 1, x_19); -lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 2, x_30); -lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 3, x_14); -lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 4, x_23); -lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 5, x_24); -lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 6, x_29); -lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 7, x_20); -lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 8, x_28); -lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 9, x_13); -lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 10, x_25); -x_33 = lean_apply_9(x_16, x_4, x_5, x_32, x_7, x_8, x_9, x_10, x_11, x_12); +lean_ctor_set_uint8(x_32, sizeof(void*)*7, x_14); +lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 1, x_13); +lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 2, x_15); +lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 3, x_19); +lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 4, x_17); +lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 5, x_16); +lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 6, x_30); +lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 7, x_27); +lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 8, x_21); +lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 9, x_26); +lean_ctor_set_uint8(x_32, sizeof(void*)*7 + 10, x_24); +x_33 = lean_apply_9(x_20, x_4, x_5, x_32, x_7, x_8, x_9, x_10, x_11, x_12); return x_33; } block_57: @@ -18482,7 +18493,7 @@ block_57: lean_object* x_55; lean_object* x_56; x_55 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_40); +lean_ctor_set(x_55, 1, x_45); x_56 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_56, 0, x_55); x_13 = x_35; @@ -18490,19 +18501,19 @@ x_14 = x_36; x_15 = x_37; x_16 = x_38; x_17 = x_39; -x_18 = x_41; -x_19 = x_42; -x_20 = x_43; -x_21 = x_44; -x_22 = x_45; +x_18 = x_40; +x_19 = x_41; +x_20 = x_42; +x_21 = x_43; +x_22 = x_44; x_23 = x_46; x_24 = x_47; -x_25 = x_49; -x_26 = x_48; -x_27 = x_50; +x_25 = x_48; +x_26 = x_53; +x_27 = x_52; x_28 = x_51; -x_29 = x_52; -x_30 = x_53; +x_29 = x_50; +x_30 = x_49; x_31 = x_56; goto block_34; } @@ -18513,24 +18524,24 @@ if (lean_obj_tag(x_76) == 0) lean_dec(x_61); lean_dec(x_59); lean_dec(x_1); -x_13 = x_78; -x_14 = x_71; -x_15 = x_69; -x_16 = x_80; -x_17 = x_70; -x_18 = x_68; -x_19 = x_65; -x_20 = x_75; -x_21 = x_62; -x_22 = x_63; -x_23 = x_72; -x_24 = x_73; -x_25 = x_79; -x_26 = x_64; -x_27 = x_67; -x_28 = x_77; -x_29 = x_74; -x_30 = x_66; +x_13 = x_65; +x_14 = x_64; +x_15 = x_66; +x_16 = x_73; +x_17 = x_72; +x_18 = x_63; +x_19 = x_71; +x_20 = x_80; +x_21 = x_77; +x_22 = x_67; +x_23 = x_69; +x_24 = x_79; +x_25 = x_68; +x_26 = x_78; +x_27 = x_75; +x_28 = x_62; +x_29 = x_70; +x_30 = x_74; x_31 = x_76; goto block_34; } @@ -18551,25 +18562,25 @@ lean_dec(x_1); x_83 = lean_ctor_get(x_81, 1); lean_inc(x_83); lean_dec(x_81); -x_35 = x_78; -x_36 = x_71; -x_37 = x_69; -x_38 = x_80; -x_39 = x_70; -x_40 = x_83; -x_41 = x_68; -x_42 = x_65; -x_43 = x_75; -x_44 = x_62; -x_45 = x_63; -x_46 = x_72; -x_47 = x_73; -x_48 = x_64; -x_49 = x_79; -x_50 = x_67; -x_51 = x_77; -x_52 = x_74; -x_53 = x_66; +x_35 = x_65; +x_36 = x_64; +x_37 = x_66; +x_38 = x_73; +x_39 = x_72; +x_40 = x_63; +x_41 = x_71; +x_42 = x_80; +x_43 = x_77; +x_44 = x_67; +x_45 = x_83; +x_46 = x_69; +x_47 = x_79; +x_48 = x_68; +x_49 = x_74; +x_50 = x_70; +x_51 = x_62; +x_52 = x_75; +x_53 = x_78; x_54 = x_82; goto block_57; } @@ -18606,50 +18617,50 @@ lean_free_object(x_85); lean_dec(x_89); lean_free_object(x_82); x_94 = lean_box(0); -x_35 = x_78; -x_36 = x_71; -x_37 = x_69; -x_38 = x_80; -x_39 = x_70; -x_40 = x_86; -x_41 = x_68; -x_42 = x_65; -x_43 = x_75; -x_44 = x_62; -x_45 = x_63; -x_46 = x_72; -x_47 = x_73; -x_48 = x_64; -x_49 = x_79; -x_50 = x_67; -x_51 = x_77; -x_52 = x_74; -x_53 = x_66; +x_35 = x_65; +x_36 = x_64; +x_37 = x_66; +x_38 = x_73; +x_39 = x_72; +x_40 = x_63; +x_41 = x_71; +x_42 = x_80; +x_43 = x_77; +x_44 = x_67; +x_45 = x_86; +x_46 = x_69; +x_47 = x_79; +x_48 = x_68; +x_49 = x_74; +x_50 = x_70; +x_51 = x_62; +x_52 = x_75; +x_53 = x_78; x_54 = x_94; goto block_57; } else { lean_ctor_set(x_85, 0, x_92); -x_35 = x_78; -x_36 = x_71; -x_37 = x_69; -x_38 = x_80; -x_39 = x_70; -x_40 = x_86; -x_41 = x_68; -x_42 = x_65; -x_43 = x_75; -x_44 = x_62; -x_45 = x_63; -x_46 = x_72; -x_47 = x_73; -x_48 = x_64; -x_49 = x_79; -x_50 = x_67; -x_51 = x_77; -x_52 = x_74; -x_53 = x_66; +x_35 = x_65; +x_36 = x_64; +x_37 = x_66; +x_38 = x_73; +x_39 = x_72; +x_40 = x_63; +x_41 = x_71; +x_42 = x_80; +x_43 = x_77; +x_44 = x_67; +x_45 = x_86; +x_46 = x_69; +x_47 = x_79; +x_48 = x_68; +x_49 = x_74; +x_50 = x_70; +x_51 = x_62; +x_52 = x_75; +x_53 = x_78; x_54 = x_82; goto block_57; } @@ -18677,25 +18688,25 @@ lean_dec(x_99); lean_dec(x_96); lean_free_object(x_82); x_101 = lean_box(0); -x_35 = x_78; -x_36 = x_71; -x_37 = x_69; -x_38 = x_80; -x_39 = x_70; -x_40 = x_86; -x_41 = x_68; -x_42 = x_65; -x_43 = x_75; -x_44 = x_62; -x_45 = x_63; -x_46 = x_72; -x_47 = x_73; -x_48 = x_64; -x_49 = x_79; -x_50 = x_67; -x_51 = x_77; -x_52 = x_74; -x_53 = x_66; +x_35 = x_65; +x_36 = x_64; +x_37 = x_66; +x_38 = x_73; +x_39 = x_72; +x_40 = x_63; +x_41 = x_71; +x_42 = x_80; +x_43 = x_77; +x_44 = x_67; +x_45 = x_86; +x_46 = x_69; +x_47 = x_79; +x_48 = x_68; +x_49 = x_74; +x_50 = x_70; +x_51 = x_62; +x_52 = x_75; +x_53 = x_78; x_54 = x_101; goto block_57; } @@ -18706,25 +18717,25 @@ x_102 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_102, 0, x_99); lean_ctor_set(x_102, 1, x_96); lean_ctor_set(x_82, 0, x_102); -x_35 = x_78; -x_36 = x_71; -x_37 = x_69; -x_38 = x_80; -x_39 = x_70; -x_40 = x_86; -x_41 = x_68; -x_42 = x_65; -x_43 = x_75; -x_44 = x_62; -x_45 = x_63; -x_46 = x_72; -x_47 = x_73; -x_48 = x_64; -x_49 = x_79; -x_50 = x_67; -x_51 = x_77; -x_52 = x_74; -x_53 = x_66; +x_35 = x_65; +x_36 = x_64; +x_37 = x_66; +x_38 = x_73; +x_39 = x_72; +x_40 = x_63; +x_41 = x_71; +x_42 = x_80; +x_43 = x_77; +x_44 = x_67; +x_45 = x_86; +x_46 = x_69; +x_47 = x_79; +x_48 = x_68; +x_49 = x_74; +x_50 = x_70; +x_51 = x_62; +x_52 = x_75; +x_53 = x_78; x_54 = x_82; goto block_57; } @@ -18766,25 +18777,25 @@ lean_dec(x_110); lean_dec(x_107); lean_dec(x_106); x_112 = lean_box(0); -x_35 = x_78; -x_36 = x_71; -x_37 = x_69; -x_38 = x_80; -x_39 = x_70; -x_40 = x_104; -x_41 = x_68; -x_42 = x_65; -x_43 = x_75; -x_44 = x_62; -x_45 = x_63; -x_46 = x_72; -x_47 = x_73; -x_48 = x_64; -x_49 = x_79; -x_50 = x_67; -x_51 = x_77; -x_52 = x_74; -x_53 = x_66; +x_35 = x_65; +x_36 = x_64; +x_37 = x_66; +x_38 = x_73; +x_39 = x_72; +x_40 = x_63; +x_41 = x_71; +x_42 = x_80; +x_43 = x_77; +x_44 = x_67; +x_45 = x_104; +x_46 = x_69; +x_47 = x_79; +x_48 = x_68; +x_49 = x_74; +x_50 = x_70; +x_51 = x_62; +x_52 = x_75; +x_53 = x_78; x_54 = x_112; goto block_57; } @@ -18800,25 +18811,25 @@ lean_ctor_set(x_113, 0, x_110); lean_ctor_set(x_113, 1, x_106); x_114 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_114, 0, x_113); -x_35 = x_78; -x_36 = x_71; -x_37 = x_69; -x_38 = x_80; -x_39 = x_70; -x_40 = x_104; -x_41 = x_68; -x_42 = x_65; -x_43 = x_75; -x_44 = x_62; -x_45 = x_63; -x_46 = x_72; -x_47 = x_73; -x_48 = x_64; -x_49 = x_79; -x_50 = x_67; -x_51 = x_77; -x_52 = x_74; -x_53 = x_66; +x_35 = x_65; +x_36 = x_64; +x_37 = x_66; +x_38 = x_73; +x_39 = x_72; +x_40 = x_63; +x_41 = x_71; +x_42 = x_80; +x_43 = x_77; +x_44 = x_67; +x_45 = x_104; +x_46 = x_69; +x_47 = x_79; +x_48 = x_68; +x_49 = x_74; +x_50 = x_70; +x_51 = x_62; +x_52 = x_75; +x_53 = x_78; x_54 = x_114; goto block_57; } @@ -23092,13 +23103,13 @@ goto block_73; block_252: { lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; -x_114 = lean_st_ref_get(x_103, x_111); +x_114 = lean_st_ref_get(x_111, x_109); x_115 = lean_ctor_get(x_114, 0); lean_inc(x_115); x_116 = lean_ctor_get(x_114, 1); lean_inc(x_116); lean_dec_ref(x_114); -x_117 = lean_st_ref_take(x_103, x_116); +x_117 = lean_st_ref_take(x_111, x_116); x_118 = lean_ctor_get(x_117, 0); lean_inc(x_118); x_119 = lean_ctor_get(x_117, 1); @@ -23115,11 +23126,11 @@ x_123 = l_Lean_Environment_setExporting(x_121, x_113); x_124 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___closed__2; lean_ctor_set(x_118, 5, x_124); lean_ctor_set(x_118, 0, x_123); -x_125 = lean_st_ref_set(x_103, x_118, x_119); +x_125 = lean_st_ref_set(x_111, x_118, x_119); x_126 = lean_ctor_get(x_125, 1); lean_inc(x_126); lean_dec_ref(x_125); -x_127 = lean_st_ref_take(x_105, x_126); +x_127 = lean_st_ref_take(x_104, x_126); x_128 = lean_ctor_get(x_127, 0); lean_inc(x_128); x_129 = lean_ctor_get(x_127, 1); @@ -23133,11 +23144,11 @@ x_131 = lean_ctor_get(x_128, 1); lean_dec(x_131); x_132 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___closed__7; lean_ctor_set(x_128, 1, x_132); -x_133 = lean_st_ref_set(x_105, x_128, x_129); +x_133 = lean_st_ref_set(x_104, x_128, x_129); x_134 = lean_ctor_get(x_133, 1); lean_inc(x_134); lean_dec_ref(x_133); -x_135 = lean_st_ref_get(x_103, x_134); +x_135 = lean_st_ref_get(x_111, x_134); x_136 = lean_ctor_get(x_115, 0); lean_inc_ref(x_136); lean_dec(x_115); @@ -23154,27 +23165,27 @@ lean_dec_ref(x_136); x_141 = lean_ctor_get_uint8(x_138, sizeof(void*)*3); lean_dec_ref(x_138); x_142 = lean_box(x_140); -lean_inc(x_105); -lean_inc(x_103); +lean_inc(x_104); +lean_inc(x_111); x_143 = lean_alloc_closure((void*)(l_Lean_Elab_Term_runTactic___lam__7___boxed), 7, 5); -lean_closure_set(x_143, 0, x_103); +lean_closure_set(x_143, 0, x_111); lean_closure_set(x_143, 1, x_142); lean_closure_set(x_143, 2, x_124); -lean_closure_set(x_143, 3, x_105); +lean_closure_set(x_143, 3, x_104); lean_closure_set(x_143, 4, x_132); if (x_141 == 0) { lean_object* x_144; -lean_dec(x_106); +lean_dec(x_107); lean_dec(x_1); -lean_inc(x_103); -lean_inc_ref(x_109); -lean_inc(x_105); -lean_inc_ref(x_102); -lean_inc(x_101); -lean_inc_ref(x_108); -lean_inc(x_110); -x_144 = l_Lean_Elab_Tactic_run(x_110, x_112, x_108, x_101, x_102, x_105, x_109, x_103, x_139); +lean_inc(x_111); +lean_inc_ref(x_103); +lean_inc(x_104); +lean_inc_ref(x_110); +lean_inc(x_106); +lean_inc_ref(x_101); +lean_inc(x_102); +x_144 = l_Lean_Elab_Tactic_run(x_102, x_112, x_101, x_106, x_110, x_104, x_103, x_111, x_139); if (lean_obj_tag(x_144) == 0) { lean_object* x_145; lean_object* x_146; @@ -23183,15 +23194,15 @@ lean_inc(x_145); x_146 = lean_ctor_get(x_144, 1); lean_inc(x_146); lean_dec_ref(x_144); -x_74 = x_110; -x_75 = x_103; +x_74 = x_102; +x_75 = x_111; x_76 = x_143; -x_77 = x_102; -x_78 = x_101; -x_79 = x_108; -x_80 = x_105; -x_81 = x_109; -x_82 = x_104; +x_77 = x_110; +x_78 = x_106; +x_79 = x_101; +x_80 = x_104; +x_81 = x_103; +x_82 = x_108; x_83 = x_145; x_84 = x_146; goto block_100; @@ -23199,20 +23210,20 @@ goto block_100; else { lean_object* x_147; lean_object* x_148; -lean_dec(x_104); +lean_dec(x_108); x_147 = lean_ctor_get(x_144, 0); lean_inc(x_147); x_148 = lean_ctor_get(x_144, 1); lean_inc(x_148); lean_dec_ref(x_144); -x_42 = x_110; -x_43 = x_103; +x_42 = x_102; +x_43 = x_111; x_44 = x_143; -x_45 = x_102; -x_46 = x_101; -x_47 = x_108; -x_48 = x_105; -x_49 = x_109; +x_45 = x_110; +x_46 = x_106; +x_47 = x_101; +x_48 = x_104; +x_49 = x_103; x_50 = x_147; x_51 = x_148; goto block_59; @@ -23221,20 +23232,20 @@ goto block_59; else { lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_149 = l_Lean_Elab_getResetInfoTrees___at_____private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___Lean_Elab_withSaveParentDeclInfoContext___at___Lean_Elab_Term_withDeclName_spec__1_spec__1_spec__1___redArg(x_103, x_139); +x_149 = l_Lean_Elab_getResetInfoTrees___at_____private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___Lean_Elab_withSaveParentDeclInfoContext___at___Lean_Elab_Term_withDeclName_spec__1_spec__1_spec__1___redArg(x_111, x_139); x_150 = lean_ctor_get(x_149, 0); lean_inc(x_150); x_151 = lean_ctor_get(x_149, 1); lean_inc(x_151); lean_dec_ref(x_149); -lean_inc(x_103); -lean_inc_ref(x_109); -lean_inc(x_105); -lean_inc_ref(x_102); -lean_inc(x_101); -lean_inc_ref(x_108); -lean_inc(x_110); -x_152 = l_Lean_Elab_Tactic_run(x_110, x_112, x_108, x_101, x_102, x_105, x_109, x_103, x_151); +lean_inc(x_111); +lean_inc_ref(x_103); +lean_inc(x_104); +lean_inc_ref(x_110); +lean_inc(x_106); +lean_inc_ref(x_101); +lean_inc(x_102); +x_152 = l_Lean_Elab_Tactic_run(x_102, x_112, x_101, x_106, x_110, x_104, x_103, x_111, x_151); if (lean_obj_tag(x_152) == 0) { lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; @@ -23246,21 +23257,21 @@ lean_dec_ref(x_152); lean_inc(x_153); x_155 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_155, 0, x_153); -x_156 = l_Lean_Elab_Term_runTactic___lam__8(x_103, x_107, x_150, x_106, x_1, x_155, x_154); +x_156 = l_Lean_Elab_Term_runTactic___lam__8(x_111, x_105, x_150, x_107, x_1, x_155, x_154); lean_dec_ref(x_155); -lean_dec(x_106); +lean_dec(x_107); x_157 = lean_ctor_get(x_156, 1); lean_inc(x_157); lean_dec_ref(x_156); -x_74 = x_110; -x_75 = x_103; +x_74 = x_102; +x_75 = x_111; x_76 = x_143; -x_77 = x_102; -x_78 = x_101; -x_79 = x_108; -x_80 = x_105; -x_81 = x_109; -x_82 = x_104; +x_77 = x_110; +x_78 = x_106; +x_79 = x_101; +x_80 = x_104; +x_81 = x_103; +x_82 = x_108; x_83 = x_153; x_84 = x_157; goto block_100; @@ -23268,26 +23279,26 @@ goto block_100; else { lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -lean_dec(x_104); +lean_dec(x_108); x_158 = lean_ctor_get(x_152, 0); lean_inc(x_158); x_159 = lean_ctor_get(x_152, 1); lean_inc(x_159); lean_dec_ref(x_152); x_160 = lean_box(0); -x_161 = l_Lean_Elab_Term_runTactic___lam__8(x_103, x_107, x_150, x_106, x_1, x_160, x_159); -lean_dec(x_106); +x_161 = l_Lean_Elab_Term_runTactic___lam__8(x_111, x_105, x_150, x_107, x_1, x_160, x_159); +lean_dec(x_107); x_162 = lean_ctor_get(x_161, 1); lean_inc(x_162); lean_dec_ref(x_161); -x_42 = x_110; -x_43 = x_103; +x_42 = x_102; +x_43 = x_111; x_44 = x_143; -x_45 = x_102; -x_46 = x_101; -x_47 = x_108; -x_48 = x_105; -x_49 = x_109; +x_45 = x_110; +x_46 = x_106; +x_47 = x_101; +x_48 = x_104; +x_49 = x_103; x_50 = x_158; x_51 = x_162; goto block_59; @@ -23313,11 +23324,11 @@ lean_ctor_set(x_168, 1, x_167); lean_ctor_set(x_168, 2, x_164); lean_ctor_set(x_168, 3, x_165); lean_ctor_set(x_168, 4, x_166); -x_169 = lean_st_ref_set(x_105, x_168, x_129); +x_169 = lean_st_ref_set(x_104, x_168, x_129); x_170 = lean_ctor_get(x_169, 1); lean_inc(x_170); lean_dec_ref(x_169); -x_171 = lean_st_ref_get(x_103, x_170); +x_171 = lean_st_ref_get(x_111, x_170); x_172 = lean_ctor_get(x_115, 0); lean_inc_ref(x_172); lean_dec(x_115); @@ -23334,27 +23345,27 @@ lean_dec_ref(x_172); x_177 = lean_ctor_get_uint8(x_174, sizeof(void*)*3); lean_dec_ref(x_174); x_178 = lean_box(x_176); -lean_inc(x_105); -lean_inc(x_103); +lean_inc(x_104); +lean_inc(x_111); x_179 = lean_alloc_closure((void*)(l_Lean_Elab_Term_runTactic___lam__7___boxed), 7, 5); -lean_closure_set(x_179, 0, x_103); +lean_closure_set(x_179, 0, x_111); lean_closure_set(x_179, 1, x_178); lean_closure_set(x_179, 2, x_124); -lean_closure_set(x_179, 3, x_105); +lean_closure_set(x_179, 3, x_104); lean_closure_set(x_179, 4, x_167); if (x_177 == 0) { lean_object* x_180; -lean_dec(x_106); +lean_dec(x_107); lean_dec(x_1); -lean_inc(x_103); -lean_inc_ref(x_109); -lean_inc(x_105); -lean_inc_ref(x_102); -lean_inc(x_101); -lean_inc_ref(x_108); -lean_inc(x_110); -x_180 = l_Lean_Elab_Tactic_run(x_110, x_112, x_108, x_101, x_102, x_105, x_109, x_103, x_175); +lean_inc(x_111); +lean_inc_ref(x_103); +lean_inc(x_104); +lean_inc_ref(x_110); +lean_inc(x_106); +lean_inc_ref(x_101); +lean_inc(x_102); +x_180 = l_Lean_Elab_Tactic_run(x_102, x_112, x_101, x_106, x_110, x_104, x_103, x_111, x_175); if (lean_obj_tag(x_180) == 0) { lean_object* x_181; lean_object* x_182; @@ -23363,15 +23374,15 @@ lean_inc(x_181); x_182 = lean_ctor_get(x_180, 1); lean_inc(x_182); lean_dec_ref(x_180); -x_74 = x_110; -x_75 = x_103; +x_74 = x_102; +x_75 = x_111; x_76 = x_179; -x_77 = x_102; -x_78 = x_101; -x_79 = x_108; -x_80 = x_105; -x_81 = x_109; -x_82 = x_104; +x_77 = x_110; +x_78 = x_106; +x_79 = x_101; +x_80 = x_104; +x_81 = x_103; +x_82 = x_108; x_83 = x_181; x_84 = x_182; goto block_100; @@ -23379,20 +23390,20 @@ goto block_100; else { lean_object* x_183; lean_object* x_184; -lean_dec(x_104); +lean_dec(x_108); x_183 = lean_ctor_get(x_180, 0); lean_inc(x_183); x_184 = lean_ctor_get(x_180, 1); lean_inc(x_184); lean_dec_ref(x_180); -x_42 = x_110; -x_43 = x_103; +x_42 = x_102; +x_43 = x_111; x_44 = x_179; -x_45 = x_102; -x_46 = x_101; -x_47 = x_108; -x_48 = x_105; -x_49 = x_109; +x_45 = x_110; +x_46 = x_106; +x_47 = x_101; +x_48 = x_104; +x_49 = x_103; x_50 = x_183; x_51 = x_184; goto block_59; @@ -23401,20 +23412,20 @@ goto block_59; else { lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_185 = l_Lean_Elab_getResetInfoTrees___at_____private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___Lean_Elab_withSaveParentDeclInfoContext___at___Lean_Elab_Term_withDeclName_spec__1_spec__1_spec__1___redArg(x_103, x_175); +x_185 = l_Lean_Elab_getResetInfoTrees___at_____private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___Lean_Elab_withSaveParentDeclInfoContext___at___Lean_Elab_Term_withDeclName_spec__1_spec__1_spec__1___redArg(x_111, x_175); x_186 = lean_ctor_get(x_185, 0); lean_inc(x_186); x_187 = lean_ctor_get(x_185, 1); lean_inc(x_187); lean_dec_ref(x_185); -lean_inc(x_103); -lean_inc_ref(x_109); -lean_inc(x_105); -lean_inc_ref(x_102); -lean_inc(x_101); -lean_inc_ref(x_108); -lean_inc(x_110); -x_188 = l_Lean_Elab_Tactic_run(x_110, x_112, x_108, x_101, x_102, x_105, x_109, x_103, x_187); +lean_inc(x_111); +lean_inc_ref(x_103); +lean_inc(x_104); +lean_inc_ref(x_110); +lean_inc(x_106); +lean_inc_ref(x_101); +lean_inc(x_102); +x_188 = l_Lean_Elab_Tactic_run(x_102, x_112, x_101, x_106, x_110, x_104, x_103, x_111, x_187); if (lean_obj_tag(x_188) == 0) { lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; @@ -23426,21 +23437,21 @@ lean_dec_ref(x_188); lean_inc(x_189); x_191 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_191, 0, x_189); -x_192 = l_Lean_Elab_Term_runTactic___lam__8(x_103, x_107, x_186, x_106, x_1, x_191, x_190); +x_192 = l_Lean_Elab_Term_runTactic___lam__8(x_111, x_105, x_186, x_107, x_1, x_191, x_190); lean_dec_ref(x_191); -lean_dec(x_106); +lean_dec(x_107); x_193 = lean_ctor_get(x_192, 1); lean_inc(x_193); lean_dec_ref(x_192); -x_74 = x_110; -x_75 = x_103; +x_74 = x_102; +x_75 = x_111; x_76 = x_179; -x_77 = x_102; -x_78 = x_101; -x_79 = x_108; -x_80 = x_105; -x_81 = x_109; -x_82 = x_104; +x_77 = x_110; +x_78 = x_106; +x_79 = x_101; +x_80 = x_104; +x_81 = x_103; +x_82 = x_108; x_83 = x_189; x_84 = x_193; goto block_100; @@ -23448,26 +23459,26 @@ goto block_100; else { lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; -lean_dec(x_104); +lean_dec(x_108); x_194 = lean_ctor_get(x_188, 0); lean_inc(x_194); x_195 = lean_ctor_get(x_188, 1); lean_inc(x_195); lean_dec_ref(x_188); x_196 = lean_box(0); -x_197 = l_Lean_Elab_Term_runTactic___lam__8(x_103, x_107, x_186, x_106, x_1, x_196, x_195); -lean_dec(x_106); +x_197 = l_Lean_Elab_Term_runTactic___lam__8(x_111, x_105, x_186, x_107, x_1, x_196, x_195); +lean_dec(x_107); x_198 = lean_ctor_get(x_197, 1); lean_inc(x_198); lean_dec_ref(x_197); -x_42 = x_110; -x_43 = x_103; +x_42 = x_102; +x_43 = x_111; x_44 = x_179; -x_45 = x_102; -x_46 = x_101; -x_47 = x_108; -x_48 = x_105; -x_49 = x_109; +x_45 = x_110; +x_46 = x_106; +x_47 = x_101; +x_48 = x_104; +x_49 = x_103; x_50 = x_194; x_51 = x_198; goto block_59; @@ -23507,11 +23518,11 @@ lean_ctor_set(x_209, 5, x_208); lean_ctor_set(x_209, 6, x_204); lean_ctor_set(x_209, 7, x_205); lean_ctor_set(x_209, 8, x_206); -x_210 = lean_st_ref_set(x_103, x_209, x_119); +x_210 = lean_st_ref_set(x_111, x_209, x_119); x_211 = lean_ctor_get(x_210, 1); lean_inc(x_211); lean_dec_ref(x_210); -x_212 = lean_st_ref_take(x_105, x_211); +x_212 = lean_st_ref_take(x_104, x_211); x_213 = lean_ctor_get(x_212, 0); lean_inc(x_213); x_214 = lean_ctor_get(x_212, 1); @@ -23547,11 +23558,11 @@ lean_ctor_set(x_221, 1, x_220); lean_ctor_set(x_221, 2, x_216); lean_ctor_set(x_221, 3, x_217); lean_ctor_set(x_221, 4, x_218); -x_222 = lean_st_ref_set(x_105, x_221, x_214); +x_222 = lean_st_ref_set(x_104, x_221, x_214); x_223 = lean_ctor_get(x_222, 1); lean_inc(x_223); lean_dec_ref(x_222); -x_224 = lean_st_ref_get(x_103, x_223); +x_224 = lean_st_ref_get(x_111, x_223); x_225 = lean_ctor_get(x_115, 0); lean_inc_ref(x_225); lean_dec(x_115); @@ -23568,27 +23579,27 @@ lean_dec_ref(x_225); x_230 = lean_ctor_get_uint8(x_227, sizeof(void*)*3); lean_dec_ref(x_227); x_231 = lean_box(x_229); -lean_inc(x_105); -lean_inc(x_103); +lean_inc(x_104); +lean_inc(x_111); x_232 = lean_alloc_closure((void*)(l_Lean_Elab_Term_runTactic___lam__7___boxed), 7, 5); -lean_closure_set(x_232, 0, x_103); +lean_closure_set(x_232, 0, x_111); lean_closure_set(x_232, 1, x_231); lean_closure_set(x_232, 2, x_208); -lean_closure_set(x_232, 3, x_105); +lean_closure_set(x_232, 3, x_104); lean_closure_set(x_232, 4, x_220); if (x_230 == 0) { lean_object* x_233; -lean_dec(x_106); +lean_dec(x_107); lean_dec(x_1); -lean_inc(x_103); -lean_inc_ref(x_109); -lean_inc(x_105); -lean_inc_ref(x_102); -lean_inc(x_101); -lean_inc_ref(x_108); -lean_inc(x_110); -x_233 = l_Lean_Elab_Tactic_run(x_110, x_112, x_108, x_101, x_102, x_105, x_109, x_103, x_228); +lean_inc(x_111); +lean_inc_ref(x_103); +lean_inc(x_104); +lean_inc_ref(x_110); +lean_inc(x_106); +lean_inc_ref(x_101); +lean_inc(x_102); +x_233 = l_Lean_Elab_Tactic_run(x_102, x_112, x_101, x_106, x_110, x_104, x_103, x_111, x_228); if (lean_obj_tag(x_233) == 0) { lean_object* x_234; lean_object* x_235; @@ -23597,15 +23608,15 @@ lean_inc(x_234); x_235 = lean_ctor_get(x_233, 1); lean_inc(x_235); lean_dec_ref(x_233); -x_74 = x_110; -x_75 = x_103; +x_74 = x_102; +x_75 = x_111; x_76 = x_232; -x_77 = x_102; -x_78 = x_101; -x_79 = x_108; -x_80 = x_105; -x_81 = x_109; -x_82 = x_104; +x_77 = x_110; +x_78 = x_106; +x_79 = x_101; +x_80 = x_104; +x_81 = x_103; +x_82 = x_108; x_83 = x_234; x_84 = x_235; goto block_100; @@ -23613,20 +23624,20 @@ goto block_100; else { lean_object* x_236; lean_object* x_237; -lean_dec(x_104); +lean_dec(x_108); x_236 = lean_ctor_get(x_233, 0); lean_inc(x_236); x_237 = lean_ctor_get(x_233, 1); lean_inc(x_237); lean_dec_ref(x_233); -x_42 = x_110; -x_43 = x_103; +x_42 = x_102; +x_43 = x_111; x_44 = x_232; -x_45 = x_102; -x_46 = x_101; -x_47 = x_108; -x_48 = x_105; -x_49 = x_109; +x_45 = x_110; +x_46 = x_106; +x_47 = x_101; +x_48 = x_104; +x_49 = x_103; x_50 = x_236; x_51 = x_237; goto block_59; @@ -23635,20 +23646,20 @@ goto block_59; else { lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; -x_238 = l_Lean_Elab_getResetInfoTrees___at_____private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___Lean_Elab_withSaveParentDeclInfoContext___at___Lean_Elab_Term_withDeclName_spec__1_spec__1_spec__1___redArg(x_103, x_228); +x_238 = l_Lean_Elab_getResetInfoTrees___at_____private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___Lean_Elab_withSaveParentDeclInfoContext___at___Lean_Elab_Term_withDeclName_spec__1_spec__1_spec__1___redArg(x_111, x_228); x_239 = lean_ctor_get(x_238, 0); lean_inc(x_239); x_240 = lean_ctor_get(x_238, 1); lean_inc(x_240); lean_dec_ref(x_238); -lean_inc(x_103); -lean_inc_ref(x_109); -lean_inc(x_105); -lean_inc_ref(x_102); -lean_inc(x_101); -lean_inc_ref(x_108); -lean_inc(x_110); -x_241 = l_Lean_Elab_Tactic_run(x_110, x_112, x_108, x_101, x_102, x_105, x_109, x_103, x_240); +lean_inc(x_111); +lean_inc_ref(x_103); +lean_inc(x_104); +lean_inc_ref(x_110); +lean_inc(x_106); +lean_inc_ref(x_101); +lean_inc(x_102); +x_241 = l_Lean_Elab_Tactic_run(x_102, x_112, x_101, x_106, x_110, x_104, x_103, x_111, x_240); if (lean_obj_tag(x_241) == 0) { lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; @@ -23660,21 +23671,21 @@ lean_dec_ref(x_241); lean_inc(x_242); x_244 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_244, 0, x_242); -x_245 = l_Lean_Elab_Term_runTactic___lam__8(x_103, x_107, x_239, x_106, x_1, x_244, x_243); +x_245 = l_Lean_Elab_Term_runTactic___lam__8(x_111, x_105, x_239, x_107, x_1, x_244, x_243); lean_dec_ref(x_244); -lean_dec(x_106); +lean_dec(x_107); x_246 = lean_ctor_get(x_245, 1); lean_inc(x_246); lean_dec_ref(x_245); -x_74 = x_110; -x_75 = x_103; +x_74 = x_102; +x_75 = x_111; x_76 = x_232; -x_77 = x_102; -x_78 = x_101; -x_79 = x_108; -x_80 = x_105; -x_81 = x_109; -x_82 = x_104; +x_77 = x_110; +x_78 = x_106; +x_79 = x_101; +x_80 = x_104; +x_81 = x_103; +x_82 = x_108; x_83 = x_242; x_84 = x_246; goto block_100; @@ -23682,26 +23693,26 @@ goto block_100; else { lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; -lean_dec(x_104); +lean_dec(x_108); x_247 = lean_ctor_get(x_241, 0); lean_inc(x_247); x_248 = lean_ctor_get(x_241, 1); lean_inc(x_248); lean_dec_ref(x_241); x_249 = lean_box(0); -x_250 = l_Lean_Elab_Term_runTactic___lam__8(x_103, x_107, x_239, x_106, x_1, x_249, x_248); -lean_dec(x_106); +x_250 = l_Lean_Elab_Term_runTactic___lam__8(x_111, x_105, x_239, x_107, x_1, x_249, x_248); +lean_dec(x_107); x_251 = lean_ctor_get(x_250, 1); lean_inc(x_251); lean_dec_ref(x_250); -x_42 = x_110; -x_43 = x_103; +x_42 = x_102; +x_43 = x_111; x_44 = x_232; -x_45 = x_102; -x_46 = x_101; -x_47 = x_108; -x_48 = x_105; -x_49 = x_109; +x_45 = x_110; +x_46 = x_106; +x_47 = x_101; +x_48 = x_104; +x_49 = x_103; x_50 = x_247; x_51 = x_251; goto block_59; @@ -23745,17 +23756,17 @@ lean_closure_set(x_277, 1, x_5); lean_closure_set(x_277, 2, x_276); if (x_257 == 0) { -x_101 = x_262; -x_102 = x_263; -x_103 = x_266; -x_104 = x_270; -x_105 = x_264; -x_106 = x_273; -x_107 = x_271; -x_108 = x_261; -x_109 = x_265; -x_110 = x_260; -x_111 = x_267; +x_101 = x_261; +x_102 = x_260; +x_103 = x_265; +x_104 = x_264; +x_105 = x_271; +x_106 = x_262; +x_107 = x_273; +x_108 = x_270; +x_109 = x_267; +x_110 = x_263; +x_111 = x_266; x_112 = x_277; x_113 = x_257; goto block_252; @@ -23764,17 +23775,17 @@ else { if (x_259 == 0) { -x_101 = x_262; -x_102 = x_263; -x_103 = x_266; -x_104 = x_270; -x_105 = x_264; -x_106 = x_273; -x_107 = x_271; -x_108 = x_261; -x_109 = x_265; -x_110 = x_260; -x_111 = x_267; +x_101 = x_261; +x_102 = x_260; +x_103 = x_265; +x_104 = x_264; +x_105 = x_271; +x_106 = x_262; +x_107 = x_273; +x_108 = x_270; +x_109 = x_267; +x_110 = x_263; +x_111 = x_266; x_112 = x_277; x_113 = x_257; goto block_252; @@ -23783,17 +23794,17 @@ else { uint8_t x_278; x_278 = 0; -x_101 = x_262; -x_102 = x_263; -x_103 = x_266; -x_104 = x_270; -x_105 = x_264; -x_106 = x_273; -x_107 = x_271; -x_108 = x_261; -x_109 = x_265; -x_110 = x_260; -x_111 = x_267; +x_101 = x_261; +x_102 = x_260; +x_103 = x_265; +x_104 = x_264; +x_105 = x_271; +x_106 = x_262; +x_107 = x_273; +x_108 = x_270; +x_109 = x_267; +x_110 = x_263; +x_111 = x_266; x_112 = x_277; x_113 = x_278; goto block_252; @@ -24143,6 +24154,24 @@ lean_dec(x_1); return x_9; } } +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_2); +x_11 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_3); +x_12 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0___lam__0___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) { _start: { diff --git a/stage0/stdlib/Lean/Environment.c b/stage0/stdlib/Lean/Environment.c index 175b08016e..cd3cdc9533 100644 --- a/stage0/stdlib/Lean/Environment.c +++ b/stage0/stdlib/Lean/Environment.c @@ -49,6 +49,7 @@ LEAN_EXPORT lean_object* l_Lean_Environment_addExtraName___lam__0(lean_object*, LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_ImportedModule_loadIRData_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_EnvExtension_modifyState___redArg___closed__1; +LEAN_EXPORT lean_object* l_Lean_withoutExporting___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at___Lean_Environment_displayStats_spec__7_spec__7___closed__0; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_findAsyncCore_x3f(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_readModuleData(lean_object*, lean_object*); @@ -87,6 +88,7 @@ LEAN_EXPORT lean_object* l_List_repr___at___Lean_Environment_dbgFormatAsyncState static lean_object* l___private_Lean_Environment_0__Lean_looksLikeOldCodegenName___closed__6; LEAN_EXPORT lean_object* l_Lean_Kernel_Environment_Diagnostics_isEnabled___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_instBEqIRPhases; +uint8_t l_instDecidableEqOrdering(uint8_t, uint8_t); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_finalizeImport_spec__15(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at___Lean_SMap_contains___at___Lean_Environment_containsOnBranch_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__1___redArg(lean_object*, lean_object*, lean_object*); @@ -197,6 +199,7 @@ lean_object* l_Lean_Expr_sort___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_withExporting___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Environment_enableRealizationsForConst___closed__2; static lean_object* l_Lean_instImpl___closed__7____x40_Lean_Environment___hyg_2226_; +lean_object* l_Array_qpartition___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_enableRealizationsForConst_unsafe__1___boxed(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert_spec__0___redArg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); @@ -272,7 +275,7 @@ LEAN_EXPORT lean_object* l_Lean_finalizeImport_unsafe__9(lean_object*, lean_obje LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_VisibilityMap_get(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_asyncPrefix_x3f(lean_object*); lean_object* lean_get_num_attributes(lean_object*); -LEAN_EXPORT lean_object* l_Lean_withoutExporting(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_instInhabitedAsyncConsts; static lean_object* l_Lean_Environment_AddConstAsyncResult_commitConst___closed__2; LEAN_EXPORT lean_object* l_Lean_Environment_find_x3f(lean_object*, lean_object*, uint8_t); @@ -314,6 +317,7 @@ static lean_object* l_Lean_Environment_addDeclCore___closed__2; LEAN_EXPORT lean_object* l_Lean_Environment_realizeConst___lam__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* lean_io_get_num_heartbeats(lean_object*); lean_object* l_panic___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_mkModuleData_spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_kernel_check(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_ConstantInfo_isUnsafe(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_findTaskCore___boxed(lean_object*, lean_object*, lean_object*); @@ -450,8 +454,9 @@ static lean_object* l_Lean_Environment_promiseChecked___closed__1; static lean_object* l_Lean_Environment_AddConstAsyncResult_commitConst___closed__6; LEAN_EXPORT lean_object* l_Lean_IRPhases_toCtorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_finalizeImport_spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_withoutExporting___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___redArg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT uint8_t l_Lean_SMap_contains___at___Lean_Environment_containsOnBranch_spec__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_mkModuleData_spec__7___redArg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_importModulesCore_go_spec__1___redArg___closed__0; LEAN_EXPORT lean_object* l_Lean_Environment_unlockAsync(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_setCheckedSync(lean_object*, lean_object*); @@ -555,6 +560,7 @@ LEAN_EXPORT lean_object* l_Lean_instModuleIdxBEq; static lean_object* l_Lean_mkEmptyEnvironment___closed__9; LEAN_EXPORT lean_object* l_Lean_ConstantKind_toCtorIdx(uint8_t); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_mkModuleData_spec__0(lean_object*, lean_object*, uint8_t, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_mkModuleData_spec__7___redArg___lam__0___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_Environment_mkFallbackConstInfo___closed__13; LEAN_EXPORT lean_object* l_Lean_Kernel_Environment_isDiagnosticsEnabled___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedVisibilityMap(lean_object*, lean_object*); @@ -742,6 +748,7 @@ LEAN_EXPORT uint8_t l_List_forIn_x27_loop___at___Lean_Environment_replayConsts_r static lean_object* l_panic___at___Lean_Environment_addDeclCore_spec__0___closed__4; static lean_object* l_Lean_initFn___closed__4____x40_Lean_Environment___hyg_6_; static lean_object* l_Lean_Environment_replayConsts___closed__0; +LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_mkModuleData_spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_reprConstantKind___closed__7____x40_Lean_Environment___hyg_1576_; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_updateBaseAfterKernelAdd___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ConstantInfo_instantiateValueLevelParams_x21___boxed(lean_object*, lean_object*); @@ -805,6 +812,7 @@ static lean_object* l_Option_repr___at___Lean_Environment_dbgFormatAsyncState_sp LEAN_EXPORT lean_object* l_Lean_SMap_contains___at___Lean_Environment_containsOnBranch_spec__0___redArg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_print___at___IO_println___at___Lean_Environment_displayStats_spec__2_spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtension_modifyState___redArg___lam__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Array_qsort_sort___at___Lean_mkModuleData_spec__7___redArg___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_realizeConst___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_reprOLeanLevel___closed__3____x40_Lean_Environment___hyg_9170_; LEAN_EXPORT lean_object* l_Lean_Kernel_Environment_addDeclCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -967,7 +975,7 @@ LEAN_EXPORT lean_object* l_List_foldl___at___Lean_Environment_replayConsts_spec_ LEAN_EXPORT lean_object* l_Lean_EnvironmentHeader_moduleNames(lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_promiseChecked(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_addConstAsync___lam__2___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_withoutExporting___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_isRealizing___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ConstantInfo_instantiateTypeLevelParams___boxed(lean_object*, lean_object*); @@ -1097,6 +1105,7 @@ LEAN_EXPORT lean_object* l_Lean_EnvExtension_modifyState(lean_object*, lean_obje LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f_x27___at___Lean_Kernel_Environment_find_x3f_spec__0_spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_findStateAsync___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withImportModules___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withImportModules___redArg(lean_object*, lean_object*, lean_object*, uint32_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_findAsync_x3f(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_importModulesCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1328,6 +1337,7 @@ static lean_object* l_Lean_Environment_enableRealizationsForConst___closed__3; LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___List_repr___at___Option_repr___at___Lean_Environment_dbgFormatAsyncState_spec__15_spec__15_spec__16(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwAlreadyImported(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_importModules___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_mkModuleData_spec__7___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_useDefaultIfOtherFieldGiven___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* _init_l_Lean_initFn___closed__0____x40_Lean_Environment___hyg_6_() { _start: @@ -18938,6 +18948,70 @@ return x_12; } } } +LEAN_EXPORT uint8_t l_Array_qsort_sort___at___Lean_mkModuleData_spec__7___redArg___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; uint8_t x_6; uint8_t x_7; +x_3 = l_Lean_ConstantInfo_name(x_1); +x_4 = l_Lean_ConstantInfo_name(x_2); +x_5 = l_Lean_Name_quickCmp(x_3, x_4); +lean_dec(x_4); +lean_dec(x_3); +x_6 = 0; +x_7 = l_instDecidableEqOrdering(x_5, x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_mkModuleData_spec__7___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_nat_dec_lt(x_2, x_3); +if (x_4 == 0) +{ +lean_dec(x_2); +return x_1; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_5 = lean_alloc_closure((void*)(l_Array_qsort_sort___at___Lean_mkModuleData_spec__7___redArg___lam__0___boxed), 2, 0); +lean_inc(x_2); +x_6 = l_Array_qpartition___redArg(x_1, x_5, x_2, x_3); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec_ref(x_6); +x_9 = lean_nat_dec_le(x_3, x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = l_Array_qsort_sort___at___Lean_mkModuleData_spec__7___redArg(x_8, x_2, x_7); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_7, x_11); +lean_dec(x_7); +x_1 = x_10; +x_2 = x_12; +goto _start; +} +else +{ +lean_dec(x_7); +lean_dec(x_2); +return x_8; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_mkModuleData_spec__7(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_Array_qsort_sort___at___Lean_mkModuleData_spec__7___redArg(x_2, x_3, x_4); +return x_8; +} +} LEAN_EXPORT lean_object* l_Lean_mkModuleData___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -18957,7 +19031,7 @@ return x_4; LEAN_EXPORT lean_object* l_Lean_mkModuleData(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_29; uint8_t x_30; uint8_t x_31; uint8_t x_44; +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; size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_43; uint8_t x_44; uint8_t x_45; uint8_t x_63; x_4 = l_Lean_registerPersistentEnvExtensionUnsafe___redArg___closed__0; x_5 = lean_st_ref_get(x_4, x_3); x_6 = lean_ctor_get(x_5, 0); @@ -18980,22 +19054,22 @@ x_13 = 0; lean_inc_ref(x_1); x_14 = l_Array_mapMUnsafe_map___at___Lean_mkModuleData_spec__0(x_11, x_1, x_2, x_12, x_13, x_6); lean_inc_ref(x_1); -x_29 = lean_elab_environment_to_kernel_env(x_1); -x_30 = 2; -x_44 = l_Lean_instDecidableEqOLeanLevel(x_2, x_30); -if (x_44 == 0) +x_43 = lean_elab_environment_to_kernel_env(x_1); +x_44 = 2; +x_63 = l_Lean_instDecidableEqOLeanLevel(x_2, x_44); +if (x_63 == 0) { -uint8_t x_45; -x_45 = 1; -x_31 = x_45; -goto block_43; +uint8_t x_64; +x_64 = 1; +x_45 = x_64; +goto block_62; } else { -uint8_t x_46; -x_46 = 0; -x_31 = x_46; -goto block_43; +uint8_t x_65; +x_65 = 0; +x_45 = x_65; +goto block_62; } block_28: { @@ -19032,43 +19106,110 @@ lean_ctor_set(x_27, 0, x_26); lean_ctor_set(x_27, 1, x_7); return x_27; } -block_43: +block_35: { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_32 = lean_ctor_get(x_29, 0); -lean_inc_ref(x_32); -x_33 = lean_ctor_get(x_32, 1); -lean_inc_ref(x_33); -lean_dec_ref(x_32); -x_34 = l_Lean_Environment_setExporting(x_1, x_31); -x_35 = lean_unsigned_to_nat(0u); -x_36 = l_Lean_instDecidableEqOLeanLevel(x_2, x_30); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -lean_dec_ref(x_10); -x_37 = l_Lean_RBTree_toArray___at___Lean_mkModuleData_spec__2___closed__0; -x_38 = l_Lean_PersistentHashMap_foldl___at___Lean_mkModuleData_spec__4___redArg(x_33, x_9, x_37); -lean_dec_ref(x_33); -x_39 = lean_array_get_size(x_38); -lean_inc_ref(x_34); -x_40 = l_Array_filterMapM___at___Lean_mkModuleData_spec__5(x_34, x_29, x_38, x_35, x_39); -lean_dec(x_39); -lean_dec(x_38); -x_15 = x_34; -x_16 = x_40; +lean_object* x_34; +lean_dec(x_30); +x_34 = l_Array_qsort_sort___at___Lean_mkModuleData_spec__7___redArg(x_31, x_32, x_33); +lean_dec(x_33); +x_15 = x_29; +x_16 = x_34; goto block_28; } +block_42: +{ +uint8_t x_41; +x_41 = lean_nat_dec_le(x_40, x_38); +if (x_41 == 0) +{ +lean_dec(x_38); +lean_inc(x_40); +x_29 = x_36; +x_30 = x_37; +x_31 = x_39; +x_32 = x_40; +x_33 = x_40; +goto block_35; +} else { -lean_object* x_41; lean_object* x_42; -lean_dec_ref(x_29); +x_29 = x_36; +x_30 = x_37; +x_31 = x_39; +x_32 = x_40; +x_33 = x_38; +goto block_35; +} +} +block_62: +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_46 = lean_ctor_get(x_43, 0); +lean_inc_ref(x_46); +x_47 = lean_ctor_get(x_46, 1); +lean_inc_ref(x_47); +lean_dec_ref(x_46); +x_48 = l_Lean_Environment_setExporting(x_1, x_45); +x_49 = lean_unsigned_to_nat(0u); +x_50 = l_Lean_instDecidableEqOLeanLevel(x_2, x_44); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +lean_dec_ref(x_10); +x_51 = l_Lean_RBTree_toArray___at___Lean_mkModuleData_spec__2___closed__0; +x_52 = l_Lean_PersistentHashMap_foldl___at___Lean_mkModuleData_spec__4___redArg(x_47, x_9, x_51); +lean_dec_ref(x_47); +x_53 = lean_array_get_size(x_52); +lean_inc_ref(x_48); +x_54 = l_Array_filterMapM___at___Lean_mkModuleData_spec__5(x_48, x_43, x_52, x_49, x_53); +lean_dec(x_53); +lean_dec(x_52); +x_55 = lean_array_get_size(x_54); +x_56 = lean_nat_dec_eq(x_55, x_49); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; uint8_t x_59; +x_57 = lean_unsigned_to_nat(1u); +x_58 = lean_nat_sub(x_55, x_57); +x_59 = lean_nat_dec_le(x_49, x_58); +if (x_59 == 0) +{ +lean_inc(x_58); +x_36 = x_48; +x_37 = x_55; +x_38 = x_58; +x_39 = x_54; +x_40 = x_58; +goto block_42; +} +else +{ +x_36 = x_48; +x_37 = x_55; +x_38 = x_58; +x_39 = x_54; +x_40 = x_49; +goto block_42; +} +} +else +{ +lean_dec(x_55); +x_15 = x_48; +x_16 = x_54; +goto block_28; +} +} +else +{ +lean_object* x_60; lean_object* x_61; +lean_dec_ref(x_43); lean_dec_ref(x_9); -x_41 = l_Array_filterMapM___at___Lean_mkModuleData_spec__5___closed__0; -x_42 = l_Lean_PersistentHashMap_foldl___at___Lean_mkModuleData_spec__4___redArg(x_33, x_10, x_41); -lean_dec_ref(x_33); -x_15 = x_34; -x_16 = x_42; +x_60 = l_Array_filterMapM___at___Lean_mkModuleData_spec__5___closed__0; +x_61 = l_Lean_PersistentHashMap_foldl___at___Lean_mkModuleData_spec__4___redArg(x_47, x_10, x_60); +lean_dec_ref(x_47); +x_15 = x_48; +x_16 = x_61; goto block_28; } } @@ -19141,6 +19282,36 @@ lean_dec_ref(x_3); return x_6; } } +LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_mkModuleData_spec__7___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Array_qsort_sort___at___Lean_mkModuleData_spec__7___redArg___lam__0(x_1, x_2); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_mkModuleData_spec__7___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_qsort_sort___at___Lean_mkModuleData_spec__7___redArg(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_mkModuleData_spec__7___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_Array_qsort_sort___at___Lean_mkModuleData_spec__7(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_Lean_mkModuleData___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -23002,7 +23173,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_List_forIn_x27_loop___at___Lean_Environment_addDeclCore_spec__1___redArg___closed__1; x_2 = lean_unsigned_to_nat(41u); -x_3 = lean_unsigned_to_nat(2021u); +x_3 = lean_unsigned_to_nat(2025u); x_4 = l_Array_forIn_x27Unsafe_loop___at___Lean_importModulesCore_go_spec__1___redArg___closed__0; x_5 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -23012,7 +23183,7 @@ return x_6; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_importModulesCore_go_spec__1___redArg(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, uint8_t x_5, uint8_t x_6, lean_object* x_7, size_t x_8, size_t 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_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_33; lean_object* x_34; size_t x_35; lean_object* x_36; size_t x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; lean_object* x_43; lean_object* x_170; uint8_t x_171; lean_object* x_172; uint8_t x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; size_t x_177; uint8_t x_178; size_t x_179; lean_object* x_180; uint8_t x_181; lean_object* x_184; lean_object* x_185; size_t x_186; lean_object* x_187; uint8_t x_188; size_t x_189; lean_object* x_190; uint8_t x_191; lean_object* x_192; uint8_t x_193; uint8_t x_194; lean_object* x_195; uint8_t x_196; lean_object* x_200; uint8_t x_201; lean_object* x_202; uint8_t x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; size_t x_207; uint8_t x_208; uint8_t x_209; size_t x_210; lean_object* x_211; uint8_t x_212; uint8_t x_213; lean_object* x_217; lean_object* x_218; lean_object* x_219; uint8_t x_220; lean_object* x_221; size_t x_222; lean_object* x_223; uint8_t x_224; uint8_t x_225; size_t x_226; lean_object* x_227; uint8_t x_228; uint8_t x_229; uint8_t x_230; uint8_t x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; size_t x_238; uint8_t x_239; size_t x_240; uint8_t x_241; lean_object* x_242; uint8_t x_243; uint8_t x_244; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; uint8_t x_265; +lean_object* x_13; lean_object* x_14; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_33; uint8_t x_34; lean_object* x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; lean_object* x_170; uint8_t x_171; lean_object* x_172; uint8_t x_173; lean_object* x_174; size_t x_175; lean_object* x_176; uint8_t x_177; uint8_t x_178; lean_object* x_179; lean_object* x_180; size_t x_181; uint8_t x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; uint8_t x_188; lean_object* x_189; uint8_t x_190; lean_object* x_191; lean_object* x_192; size_t x_193; size_t x_194; lean_object* x_195; uint8_t x_196; lean_object* x_200; uint8_t x_201; lean_object* x_202; uint8_t x_203; lean_object* x_204; size_t x_205; uint8_t x_206; lean_object* x_207; uint8_t x_208; lean_object* x_209; uint8_t x_210; lean_object* x_211; size_t x_212; uint8_t x_213; lean_object* x_217; uint8_t x_218; lean_object* x_219; uint8_t x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; lean_object* x_225; uint8_t x_226; size_t x_227; uint8_t x_228; size_t x_229; uint8_t x_230; lean_object* x_234; lean_object* x_235; uint8_t x_236; lean_object* x_237; uint8_t x_238; lean_object* x_239; size_t x_240; uint8_t x_241; size_t x_242; uint8_t x_243; uint8_t x_244; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; uint8_t x_265; x_265 = lean_usize_dec_lt(x_9, x_8); if (x_265 == 0) { @@ -23026,7 +23197,7 @@ return x_266; } else { -lean_object* x_267; uint8_t x_268; uint8_t x_269; lean_object* x_270; uint8_t x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; uint8_t x_456; uint8_t x_457; lean_object* x_458; uint8_t x_459; uint8_t x_460; uint8_t x_461; uint8_t x_498; uint8_t x_499; lean_object* x_500; uint8_t x_501; uint8_t x_502; uint8_t x_505; uint8_t x_506; uint8_t x_507; uint8_t x_508; uint8_t x_509; uint8_t x_519; uint8_t x_520; uint8_t x_521; uint8_t x_522; uint8_t x_525; uint8_t x_529; +lean_object* x_267; lean_object* x_268; uint8_t x_269; uint8_t x_270; uint8_t x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_456; uint8_t x_457; uint8_t x_458; uint8_t x_459; uint8_t x_460; uint8_t x_461; lean_object* x_498; uint8_t x_499; uint8_t x_500; uint8_t x_501; uint8_t x_502; uint8_t x_505; uint8_t x_506; uint8_t x_507; uint8_t x_508; uint8_t x_509; uint8_t x_519; uint8_t x_520; uint8_t x_521; uint8_t x_522; uint8_t x_525; uint8_t x_529; x_267 = lean_array_uget(x_7, x_9); x_529 = lean_ctor_get_uint8(x_267, sizeof(void*)*1 + 1); if (x_529 == 0) @@ -23070,7 +23241,7 @@ if (x_280 == 0) { lean_object* x_281; lean_object* x_282; lean_dec(x_276); -lean_dec(x_270); +lean_dec(x_268); lean_dec_ref(x_267); x_281 = l_Array_forIn_x27Unsafe_loop___at___Lean_importModulesCore_go_spec__1___redArg___closed__1; x_282 = l_panic___at___Lean_importModulesCore_go_spec__0(x_281, x_273, x_277); @@ -23102,7 +23273,7 @@ x_286 = lean_ctor_get(x_285, 0); lean_inc_ref(x_286); lean_dec(x_285); lean_inc(x_273); -x_287 = lean_apply_3(x_270, x_286, x_273, x_277); +x_287 = lean_apply_3(x_268, x_286, x_273, x_277); if (lean_obj_tag(x_287) == 0) { lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; uint8_t x_293; @@ -23136,11 +23307,11 @@ x_298 = lean_ctor_get(x_291, 0); x_299 = lean_ctor_get(x_291, 1); x_300 = lean_ctor_get(x_267, 0); lean_inc(x_300); -lean_ctor_set_uint8(x_267, sizeof(void*)*1, x_271); -lean_ctor_set_uint8(x_267, sizeof(void*)*1 + 1, x_268); +lean_ctor_set_uint8(x_267, sizeof(void*)*1, x_270); +lean_ctor_set_uint8(x_267, sizeof(void*)*1 + 1, x_269); x_301 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_301, 0, x_267); -lean_ctor_set_uint8(x_301, sizeof(void*)*1, x_269); +lean_ctor_set_uint8(x_301, sizeof(void*)*1, x_271); lean_ctor_set(x_290, 1, x_276); lean_ctor_set(x_290, 0, x_301); x_302 = lean_array_get_size(x_299); @@ -23186,10 +23357,10 @@ lean_object* x_327; x_327 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_NameHashSet_insert_spec__1___redArg(x_320); lean_ctor_set(x_291, 1, x_327); lean_ctor_set(x_291, 0, x_318); -x_255 = x_273; -x_256 = x_292; -x_257 = x_300; -x_258 = x_294; +x_255 = x_300; +x_256 = x_273; +x_257 = x_294; +x_258 = x_292; x_259 = x_291; goto block_264; } @@ -23197,10 +23368,10 @@ else { lean_ctor_set(x_291, 1, x_320); lean_ctor_set(x_291, 0, x_318); -x_255 = x_273; -x_256 = x_292; -x_257 = x_300; -x_258 = x_294; +x_255 = x_300; +x_256 = x_273; +x_257 = x_294; +x_258 = x_292; x_259 = x_291; goto block_264; } @@ -23214,10 +23385,10 @@ lean_inc(x_300); x_330 = l_Std_DHashMap_Internal_AssocList_replace___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__1___redArg(x_300, x_290, x_315); x_331 = lean_array_uset(x_329, x_314, x_330); lean_ctor_set(x_291, 1, x_331); -x_255 = x_273; -x_256 = x_292; -x_257 = x_300; -x_258 = x_294; +x_255 = x_300; +x_256 = x_273; +x_257 = x_294; +x_258 = x_292; x_259 = x_291; goto block_264; } @@ -23234,12 +23405,12 @@ lean_dec(x_267); lean_inc(x_334); x_336 = lean_alloc_ctor(0, 1, 3); lean_ctor_set(x_336, 0, x_334); -lean_ctor_set_uint8(x_336, sizeof(void*)*1, x_271); -lean_ctor_set_uint8(x_336, sizeof(void*)*1 + 1, x_268); +lean_ctor_set_uint8(x_336, sizeof(void*)*1, x_270); +lean_ctor_set_uint8(x_336, sizeof(void*)*1 + 1, x_269); lean_ctor_set_uint8(x_336, sizeof(void*)*1 + 2, x_335); x_337 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_337, 0, x_336); -lean_ctor_set_uint8(x_337, sizeof(void*)*1, x_269); +lean_ctor_set_uint8(x_337, sizeof(void*)*1, x_271); lean_ctor_set(x_290, 1, x_276); lean_ctor_set(x_290, 0, x_337); x_338 = lean_array_get_size(x_333); @@ -23285,10 +23456,10 @@ lean_object* x_363; x_363 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_NameHashSet_insert_spec__1___redArg(x_356); lean_ctor_set(x_291, 1, x_363); lean_ctor_set(x_291, 0, x_354); -x_255 = x_273; -x_256 = x_292; -x_257 = x_334; -x_258 = x_294; +x_255 = x_334; +x_256 = x_273; +x_257 = x_294; +x_258 = x_292; x_259 = x_291; goto block_264; } @@ -23296,10 +23467,10 @@ else { lean_ctor_set(x_291, 1, x_356); lean_ctor_set(x_291, 0, x_354); -x_255 = x_273; -x_256 = x_292; -x_257 = x_334; -x_258 = x_294; +x_255 = x_334; +x_256 = x_273; +x_257 = x_294; +x_258 = x_292; x_259 = x_291; goto block_264; } @@ -23313,10 +23484,10 @@ lean_inc(x_334); x_366 = l_Std_DHashMap_Internal_AssocList_replace___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__1___redArg(x_334, x_290, x_351); x_367 = lean_array_uset(x_365, x_350, x_366); lean_ctor_set(x_291, 1, x_367); -x_255 = x_273; -x_256 = x_292; -x_257 = x_334; -x_258 = x_294; +x_255 = x_334; +x_256 = x_273; +x_257 = x_294; +x_258 = x_292; x_259 = x_291; goto block_264; } @@ -23347,12 +23518,12 @@ if (lean_is_scalar(x_372)) { x_373 = x_372; } lean_ctor_set(x_373, 0, x_370); -lean_ctor_set_uint8(x_373, sizeof(void*)*1, x_271); -lean_ctor_set_uint8(x_373, sizeof(void*)*1 + 1, x_268); +lean_ctor_set_uint8(x_373, sizeof(void*)*1, x_270); +lean_ctor_set_uint8(x_373, sizeof(void*)*1 + 1, x_269); lean_ctor_set_uint8(x_373, sizeof(void*)*1 + 2, x_371); x_374 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_374, 0, x_373); -lean_ctor_set_uint8(x_374, sizeof(void*)*1, x_269); +lean_ctor_set_uint8(x_374, sizeof(void*)*1, x_271); lean_ctor_set(x_290, 1, x_276); lean_ctor_set(x_290, 0, x_374); x_375 = lean_array_get_size(x_369); @@ -23399,10 +23570,10 @@ x_400 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_NameHashSet_insert_ x_401 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_401, 0, x_391); lean_ctor_set(x_401, 1, x_400); -x_255 = x_273; -x_256 = x_292; -x_257 = x_370; -x_258 = x_294; +x_255 = x_370; +x_256 = x_273; +x_257 = x_294; +x_258 = x_292; x_259 = x_401; goto block_264; } @@ -23412,10 +23583,10 @@ lean_object* x_402; x_402 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_402, 0, x_391); lean_ctor_set(x_402, 1, x_393); -x_255 = x_273; -x_256 = x_292; -x_257 = x_370; -x_258 = x_294; +x_255 = x_370; +x_256 = x_273; +x_257 = x_294; +x_258 = x_292; x_259 = x_402; goto block_264; } @@ -23431,10 +23602,10 @@ x_406 = lean_array_uset(x_404, x_387, x_405); x_407 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_407, 0, x_368); lean_ctor_set(x_407, 1, x_406); -x_255 = x_273; -x_256 = x_292; -x_257 = x_370; -x_258 = x_294; +x_255 = x_370; +x_256 = x_273; +x_257 = x_294; +x_258 = x_292; x_259 = x_407; goto block_264; } @@ -23475,12 +23646,12 @@ if (lean_is_scalar(x_414)) { x_415 = x_414; } lean_ctor_set(x_415, 0, x_412); -lean_ctor_set_uint8(x_415, sizeof(void*)*1, x_271); -lean_ctor_set_uint8(x_415, sizeof(void*)*1 + 1, x_268); +lean_ctor_set_uint8(x_415, sizeof(void*)*1, x_270); +lean_ctor_set_uint8(x_415, sizeof(void*)*1 + 1, x_269); lean_ctor_set_uint8(x_415, sizeof(void*)*1 + 2, x_413); x_416 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_416, 0, x_415); -lean_ctor_set_uint8(x_416, sizeof(void*)*1, x_269); +lean_ctor_set_uint8(x_416, sizeof(void*)*1, x_271); x_417 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_417, 0, x_416); lean_ctor_set(x_417, 1, x_276); @@ -23532,10 +23703,10 @@ if (lean_is_scalar(x_411)) { } lean_ctor_set(x_444, 0, x_434); lean_ctor_set(x_444, 1, x_443); -x_255 = x_273; -x_256 = x_292; -x_257 = x_412; -x_258 = x_408; +x_255 = x_412; +x_256 = x_273; +x_257 = x_408; +x_258 = x_292; x_259 = x_444; goto block_264; } @@ -23549,10 +23720,10 @@ if (lean_is_scalar(x_411)) { } lean_ctor_set(x_445, 0, x_434); lean_ctor_set(x_445, 1, x_436); -x_255 = x_273; -x_256 = x_292; -x_257 = x_412; -x_258 = x_408; +x_255 = x_412; +x_256 = x_273; +x_257 = x_408; +x_258 = x_292; x_259 = x_445; goto block_264; } @@ -23572,10 +23743,10 @@ if (lean_is_scalar(x_411)) { } lean_ctor_set(x_450, 0, x_409); lean_ctor_set(x_450, 1, x_449); -x_255 = x_273; -x_256 = x_292; -x_257 = x_412; -x_258 = x_408; +x_255 = x_412; +x_256 = x_273; +x_257 = x_408; +x_258 = x_292; x_259 = x_450; goto block_264; } @@ -23596,7 +23767,7 @@ else { uint8_t x_451; lean_dec(x_273); -lean_dec(x_270); +lean_dec(x_268); lean_dec_ref(x_267); lean_dec(x_11); lean_dec(x_4); @@ -23673,9 +23844,9 @@ lean_inc(x_486); lean_dec_ref(x_484); lean_inc(x_11); x_268 = x_456; -x_269 = x_461; -x_270 = x_458; -x_271 = x_460; +x_269 = x_457; +x_270 = x_459; +x_271 = x_461; x_272 = x_485; x_273 = x_11; x_274 = x_486; @@ -23684,7 +23855,7 @@ goto block_455; else { uint8_t x_487; -lean_dec(x_458); +lean_dec(x_456); lean_dec_ref(x_267); lean_dec(x_11); lean_dec(x_4); @@ -23717,9 +23888,9 @@ lean_inc(x_491); lean_dec(x_483); lean_inc(x_11); x_268 = x_456; -x_269 = x_461; -x_270 = x_458; -x_271 = x_460; +x_269 = x_457; +x_270 = x_459; +x_271 = x_461; x_272 = x_491; x_273 = x_11; x_274 = x_465; @@ -23729,7 +23900,7 @@ goto block_455; else { lean_dec_ref(x_267); -if (x_460 == 0) +if (x_459 == 0) { lean_object* x_492; lean_object* x_493; lean_object* x_494; uint8_t x_495; x_492 = lean_ctor_get(x_482, 0); @@ -23742,16 +23913,16 @@ lean_inc_ref(x_494); lean_dec_ref(x_493); x_495 = lean_ctor_get_uint8(x_494, sizeof(void*)*1); lean_dec_ref(x_494); -x_234 = x_456; -x_235 = x_492; -x_236 = x_467; +x_234 = x_467; +x_235 = x_456; +x_236 = x_457; x_237 = x_465; -x_238 = x_478; -x_239 = x_457; +x_238 = x_458; +x_239 = x_492; x_240 = x_476; -x_241 = x_461; -x_242 = x_458; -x_243 = x_459; +x_241 = x_460; +x_242 = x_478; +x_243 = x_461; x_244 = x_495; goto block_254; } @@ -23761,17 +23932,17 @@ lean_object* x_496; x_496 = lean_ctor_get(x_482, 0); lean_inc(x_496); lean_dec(x_482); -x_234 = x_456; -x_235 = x_496; -x_236 = x_467; +x_234 = x_467; +x_235 = x_456; +x_236 = x_457; x_237 = x_465; -x_238 = x_478; -x_239 = x_457; +x_238 = x_458; +x_239 = x_496; x_240 = x_476; -x_241 = x_461; -x_242 = x_458; -x_243 = x_459; -x_244 = x_460; +x_241 = x_460; +x_242 = x_478; +x_243 = x_461; +x_244 = x_459; goto block_254; } } @@ -23782,8 +23953,8 @@ uint8_t x_503; x_503 = 1; x_456 = x_498; x_457 = x_499; -x_458 = x_500; -x_459 = x_501; +x_458 = x_501; +x_459 = x_500; x_460 = x_502; x_461 = x_503; goto block_497; @@ -23804,7 +23975,7 @@ lean_closure_set(x_514, 2, x_511); lean_closure_set(x_514, 3, x_4); lean_closure_set(x_514, 4, x_512); lean_closure_set(x_514, 5, x_513); -if (x_507 == 0) +if (x_506 == 0) { if (x_2 == 0) { @@ -23814,31 +23985,31 @@ if (x_515 == 0) { uint8_t x_516; x_516 = 0; -x_456 = x_509; -x_457 = x_506; -x_458 = x_514; -x_459 = x_505; -x_460 = x_508; +x_456 = x_514; +x_457 = x_509; +x_458 = x_505; +x_459 = x_508; +x_460 = x_507; x_461 = x_516; goto block_497; } else { -x_498 = x_509; -x_499 = x_506; -x_500 = x_514; +x_498 = x_514; +x_499 = x_509; +x_500 = x_508; x_501 = x_505; -x_502 = x_508; +x_502 = x_507; goto block_504; } } else { -x_498 = x_509; -x_499 = x_506; -x_500 = x_514; +x_498 = x_514; +x_499 = x_509; +x_500 = x_508; x_501 = x_505; -x_502 = x_508; +x_502 = x_507; goto block_504; } } @@ -23846,11 +24017,11 @@ else { uint8_t x_517; x_517 = 2; -x_456 = x_509; -x_457 = x_506; -x_458 = x_514; -x_459 = x_505; -x_460 = x_508; +x_456 = x_514; +x_457 = x_509; +x_458 = x_505; +x_459 = x_508; +x_460 = x_507; x_461 = x_517; goto block_497; } @@ -23894,9 +24065,9 @@ else { if (x_6 == 0) { -x_519 = x_525; +x_519 = x_526; x_520 = x_526; -x_521 = x_526; +x_521 = x_525; x_522 = x_6; goto block_524; } @@ -23904,9 +24075,9 @@ else { uint8_t x_527; x_527 = lean_ctor_get_uint8(x_267, sizeof(void*)*1); -x_519 = x_525; +x_519 = x_526; x_520 = x_526; -x_521 = x_526; +x_521 = x_525; x_522 = x_527; goto block_524; } @@ -23928,16 +24099,16 @@ block_32: lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_24 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_19); +lean_ctor_set(x_24, 1, x_20); x_25 = lean_st_ref_set(x_11, x_24, x_22); x_26 = lean_ctor_get(x_25, 1); lean_inc(x_26); lean_dec_ref(x_25); -x_27 = l___private_Lean_Environment_0__Lean_ImportedModule_mainModule_x3f(x_20); -lean_dec_ref(x_20); +x_27 = l___private_Lean_Environment_0__Lean_ImportedModule_mainModule_x3f(x_21); +lean_dec_ref(x_21); if (lean_obj_tag(x_27) == 0) { -lean_dec(x_21); +lean_dec(x_19); x_13 = x_1; x_14 = x_26; goto block_18; @@ -23952,7 +24123,7 @@ x_29 = lean_ctor_get(x_28, 0); lean_inc_ref(x_29); lean_dec(x_28); lean_inc(x_11); -x_30 = lean_apply_3(x_21, x_29, x_11, x_26); +x_30 = lean_apply_3(x_19, x_29, x_11, x_26); if (lean_obj_tag(x_30) == 0) { lean_object* x_31; @@ -23974,7 +24145,7 @@ return x_30; block_169: { lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -x_44 = lean_st_ref_take(x_11, x_36); +x_44 = lean_st_ref_take(x_11, x_39); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); x_46 = lean_ctor_get(x_45, 0); @@ -23993,26 +24164,26 @@ x_51 = !lean_is_exclusive(x_46); if (x_51 == 0) { uint8_t x_52; -x_52 = !lean_is_exclusive(x_40); +x_52 = !lean_is_exclusive(x_43); if (x_52 == 0) { lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; size_t x_57; size_t x_58; size_t x_59; lean_object* x_60; uint8_t x_61; x_53 = lean_ctor_get(x_46, 0); x_54 = lean_ctor_get(x_46, 1); -lean_ctor_set_uint8(x_40, sizeof(void*)*1, x_42); -lean_ctor_set_uint8(x_40, sizeof(void*)*1 + 1, x_38); +lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_37); +lean_ctor_set_uint8(x_43, sizeof(void*)*1 + 1, x_34); x_55 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_55, 0, x_40); -lean_ctor_set_uint8(x_55, sizeof(void*)*1, x_41); -lean_ctor_set(x_45, 1, x_43); +lean_ctor_set(x_55, 0, x_43); +lean_ctor_set_uint8(x_55, sizeof(void*)*1, x_36); +lean_ctor_set(x_45, 1, x_33); lean_ctor_set(x_45, 0, x_55); x_56 = lean_array_get_size(x_54); x_57 = lean_usize_of_nat(x_56); lean_dec(x_56); -x_58 = lean_usize_sub(x_57, x_35); -x_59 = lean_usize_land(x_37, x_58); +x_58 = lean_usize_sub(x_57, x_42); +x_59 = lean_usize_land(x_41, x_58); x_60 = lean_array_uget(x_54, x_59); -x_61 = l_Std_DHashMap_Internal_AssocList_contains___at___Lean_NameHashSet_insert_spec__0___redArg(x_33, x_60); +x_61 = l_Std_DHashMap_Internal_AssocList_contains___at___Lean_NameHashSet_insert_spec__0___redArg(x_35, x_60); if (x_61 == 0) { 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; uint8_t x_71; @@ -24020,7 +24191,7 @@ x_62 = lean_unsigned_to_nat(1u); x_63 = lean_nat_add(x_53, x_62); lean_dec(x_53); x_64 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_64, 0, x_33); +lean_ctor_set(x_64, 0, x_35); lean_ctor_set(x_64, 1, x_45); lean_ctor_set(x_64, 2, x_60); x_65 = lean_array_uset(x_54, x_59, x_64); @@ -24039,9 +24210,9 @@ lean_object* x_72; x_72 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_NameHashSet_insert_spec__1___redArg(x_65); lean_ctor_set(x_46, 1, x_72); lean_ctor_set(x_46, 0, x_63); -x_19 = x_49; -x_20 = x_34; -x_21 = x_39; +x_19 = x_38; +x_20 = x_49; +x_21 = x_40; x_22 = x_47; x_23 = x_46; goto block_32; @@ -24050,9 +24221,9 @@ else { lean_ctor_set(x_46, 1, x_65); lean_ctor_set(x_46, 0, x_63); -x_19 = x_49; -x_20 = x_34; -x_21 = x_39; +x_19 = x_38; +x_20 = x_49; +x_21 = x_40; x_22 = x_47; x_23 = x_46; goto block_32; @@ -24063,12 +24234,12 @@ else lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; x_73 = lean_box(0); x_74 = lean_array_uset(x_54, x_59, x_73); -x_75 = l_Std_DHashMap_Internal_AssocList_replace___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__1___redArg(x_33, x_45, x_60); +x_75 = l_Std_DHashMap_Internal_AssocList_replace___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__1___redArg(x_35, x_45, x_60); x_76 = lean_array_uset(x_74, x_59, x_75); lean_ctor_set(x_46, 1, x_76); -x_19 = x_49; -x_20 = x_34; -x_21 = x_39; +x_19 = x_38; +x_20 = x_49; +x_21 = x_40; x_22 = x_47; x_23 = x_46; goto block_32; @@ -24079,27 +24250,27 @@ else lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; size_t x_84; size_t x_85; size_t x_86; lean_object* x_87; uint8_t x_88; x_77 = lean_ctor_get(x_46, 0); x_78 = lean_ctor_get(x_46, 1); -x_79 = lean_ctor_get(x_40, 0); -x_80 = lean_ctor_get_uint8(x_40, sizeof(void*)*1 + 2); +x_79 = lean_ctor_get(x_43, 0); +x_80 = lean_ctor_get_uint8(x_43, sizeof(void*)*1 + 2); lean_inc(x_79); -lean_dec(x_40); +lean_dec(x_43); x_81 = lean_alloc_ctor(0, 1, 3); lean_ctor_set(x_81, 0, x_79); -lean_ctor_set_uint8(x_81, sizeof(void*)*1, x_42); -lean_ctor_set_uint8(x_81, sizeof(void*)*1 + 1, x_38); +lean_ctor_set_uint8(x_81, sizeof(void*)*1, x_37); +lean_ctor_set_uint8(x_81, sizeof(void*)*1 + 1, x_34); lean_ctor_set_uint8(x_81, sizeof(void*)*1 + 2, x_80); x_82 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_82, 0, x_81); -lean_ctor_set_uint8(x_82, sizeof(void*)*1, x_41); -lean_ctor_set(x_45, 1, x_43); +lean_ctor_set_uint8(x_82, sizeof(void*)*1, x_36); +lean_ctor_set(x_45, 1, x_33); lean_ctor_set(x_45, 0, x_82); x_83 = lean_array_get_size(x_78); x_84 = lean_usize_of_nat(x_83); lean_dec(x_83); -x_85 = lean_usize_sub(x_84, x_35); -x_86 = lean_usize_land(x_37, x_85); +x_85 = lean_usize_sub(x_84, x_42); +x_86 = lean_usize_land(x_41, x_85); x_87 = lean_array_uget(x_78, x_86); -x_88 = l_Std_DHashMap_Internal_AssocList_contains___at___Lean_NameHashSet_insert_spec__0___redArg(x_33, x_87); +x_88 = l_Std_DHashMap_Internal_AssocList_contains___at___Lean_NameHashSet_insert_spec__0___redArg(x_35, x_87); if (x_88 == 0) { lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; @@ -24107,7 +24278,7 @@ x_89 = lean_unsigned_to_nat(1u); x_90 = lean_nat_add(x_77, x_89); lean_dec(x_77); x_91 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_91, 0, x_33); +lean_ctor_set(x_91, 0, x_35); lean_ctor_set(x_91, 1, x_45); lean_ctor_set(x_91, 2, x_87); x_92 = lean_array_uset(x_78, x_86, x_91); @@ -24126,9 +24297,9 @@ lean_object* x_99; x_99 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_NameHashSet_insert_spec__1___redArg(x_92); lean_ctor_set(x_46, 1, x_99); lean_ctor_set(x_46, 0, x_90); -x_19 = x_49; -x_20 = x_34; -x_21 = x_39; +x_19 = x_38; +x_20 = x_49; +x_21 = x_40; x_22 = x_47; x_23 = x_46; goto block_32; @@ -24137,9 +24308,9 @@ else { lean_ctor_set(x_46, 1, x_92); lean_ctor_set(x_46, 0, x_90); -x_19 = x_49; -x_20 = x_34; -x_21 = x_39; +x_19 = x_38; +x_20 = x_49; +x_21 = x_40; x_22 = x_47; x_23 = x_46; goto block_32; @@ -24150,12 +24321,12 @@ else lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; x_100 = lean_box(0); x_101 = lean_array_uset(x_78, x_86, x_100); -x_102 = l_Std_DHashMap_Internal_AssocList_replace___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__1___redArg(x_33, x_45, x_87); +x_102 = l_Std_DHashMap_Internal_AssocList_replace___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__1___redArg(x_35, x_45, x_87); x_103 = lean_array_uset(x_101, x_86, x_102); lean_ctor_set(x_46, 1, x_103); -x_19 = x_49; -x_20 = x_34; -x_21 = x_39; +x_19 = x_38; +x_20 = x_49; +x_21 = x_40; x_22 = x_47; x_23 = x_46; goto block_32; @@ -24170,14 +24341,14 @@ x_105 = lean_ctor_get(x_46, 1); lean_inc(x_105); lean_inc(x_104); lean_dec(x_46); -x_106 = lean_ctor_get(x_40, 0); +x_106 = lean_ctor_get(x_43, 0); lean_inc(x_106); -x_107 = lean_ctor_get_uint8(x_40, sizeof(void*)*1 + 2); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - x_108 = x_40; +x_107 = lean_ctor_get_uint8(x_43, sizeof(void*)*1 + 2); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + x_108 = x_43; } else { - lean_dec_ref(x_40); + lean_dec_ref(x_43); x_108 = lean_box(0); } if (lean_is_scalar(x_108)) { @@ -24186,21 +24357,21 @@ if (lean_is_scalar(x_108)) { x_109 = x_108; } lean_ctor_set(x_109, 0, x_106); -lean_ctor_set_uint8(x_109, sizeof(void*)*1, x_42); -lean_ctor_set_uint8(x_109, sizeof(void*)*1 + 1, x_38); +lean_ctor_set_uint8(x_109, sizeof(void*)*1, x_37); +lean_ctor_set_uint8(x_109, sizeof(void*)*1 + 1, x_34); lean_ctor_set_uint8(x_109, sizeof(void*)*1 + 2, x_107); x_110 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_110, 0, x_109); -lean_ctor_set_uint8(x_110, sizeof(void*)*1, x_41); -lean_ctor_set(x_45, 1, x_43); +lean_ctor_set_uint8(x_110, sizeof(void*)*1, x_36); +lean_ctor_set(x_45, 1, x_33); lean_ctor_set(x_45, 0, x_110); x_111 = lean_array_get_size(x_105); x_112 = lean_usize_of_nat(x_111); lean_dec(x_111); -x_113 = lean_usize_sub(x_112, x_35); -x_114 = lean_usize_land(x_37, x_113); +x_113 = lean_usize_sub(x_112, x_42); +x_114 = lean_usize_land(x_41, x_113); x_115 = lean_array_uget(x_105, x_114); -x_116 = l_Std_DHashMap_Internal_AssocList_contains___at___Lean_NameHashSet_insert_spec__0___redArg(x_33, x_115); +x_116 = l_Std_DHashMap_Internal_AssocList_contains___at___Lean_NameHashSet_insert_spec__0___redArg(x_35, x_115); if (x_116 == 0) { lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; @@ -24208,7 +24379,7 @@ x_117 = lean_unsigned_to_nat(1u); x_118 = lean_nat_add(x_104, x_117); lean_dec(x_104); x_119 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_119, 0, x_33); +lean_ctor_set(x_119, 0, x_35); lean_ctor_set(x_119, 1, x_45); lean_ctor_set(x_119, 2, x_115); x_120 = lean_array_uset(x_105, x_114, x_119); @@ -24228,9 +24399,9 @@ x_127 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_NameHashSet_insert_ x_128 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_128, 0, x_118); lean_ctor_set(x_128, 1, x_127); -x_19 = x_49; -x_20 = x_34; -x_21 = x_39; +x_19 = x_38; +x_20 = x_49; +x_21 = x_40; x_22 = x_47; x_23 = x_128; goto block_32; @@ -24241,9 +24412,9 @@ lean_object* x_129; x_129 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_129, 0, x_118); lean_ctor_set(x_129, 1, x_120); -x_19 = x_49; -x_20 = x_34; -x_21 = x_39; +x_19 = x_38; +x_20 = x_49; +x_21 = x_40; x_22 = x_47; x_23 = x_129; goto block_32; @@ -24254,14 +24425,14 @@ else lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; x_130 = lean_box(0); x_131 = lean_array_uset(x_105, x_114, x_130); -x_132 = l_Std_DHashMap_Internal_AssocList_replace___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__1___redArg(x_33, x_45, x_115); +x_132 = l_Std_DHashMap_Internal_AssocList_replace___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__1___redArg(x_35, x_45, x_115); x_133 = lean_array_uset(x_131, x_114, x_132); x_134 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_134, 0, x_104); lean_ctor_set(x_134, 1, x_133); -x_19 = x_49; -x_20 = x_34; -x_21 = x_39; +x_19 = x_38; +x_20 = x_49; +x_21 = x_40; x_22 = x_47; x_23 = x_134; goto block_32; @@ -24286,14 +24457,14 @@ if (lean_is_exclusive(x_46)) { lean_dec_ref(x_46); x_138 = lean_box(0); } -x_139 = lean_ctor_get(x_40, 0); +x_139 = lean_ctor_get(x_43, 0); lean_inc(x_139); -x_140 = lean_ctor_get_uint8(x_40, sizeof(void*)*1 + 2); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - x_141 = x_40; +x_140 = lean_ctor_get_uint8(x_43, sizeof(void*)*1 + 2); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + x_141 = x_43; } else { - lean_dec_ref(x_40); + lean_dec_ref(x_43); x_141 = lean_box(0); } if (lean_is_scalar(x_141)) { @@ -24302,22 +24473,22 @@ if (lean_is_scalar(x_141)) { x_142 = x_141; } lean_ctor_set(x_142, 0, x_139); -lean_ctor_set_uint8(x_142, sizeof(void*)*1, x_42); -lean_ctor_set_uint8(x_142, sizeof(void*)*1 + 1, x_38); +lean_ctor_set_uint8(x_142, sizeof(void*)*1, x_37); +lean_ctor_set_uint8(x_142, sizeof(void*)*1 + 1, x_34); lean_ctor_set_uint8(x_142, sizeof(void*)*1 + 2, x_140); x_143 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_143, 0, x_142); -lean_ctor_set_uint8(x_143, sizeof(void*)*1, x_41); +lean_ctor_set_uint8(x_143, sizeof(void*)*1, x_36); x_144 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_43); +lean_ctor_set(x_144, 1, x_33); x_145 = lean_array_get_size(x_137); x_146 = lean_usize_of_nat(x_145); lean_dec(x_145); -x_147 = lean_usize_sub(x_146, x_35); -x_148 = lean_usize_land(x_37, x_147); +x_147 = lean_usize_sub(x_146, x_42); +x_148 = lean_usize_land(x_41, x_147); x_149 = lean_array_uget(x_137, x_148); -x_150 = l_Std_DHashMap_Internal_AssocList_contains___at___Lean_NameHashSet_insert_spec__0___redArg(x_33, x_149); +x_150 = l_Std_DHashMap_Internal_AssocList_contains___at___Lean_NameHashSet_insert_spec__0___redArg(x_35, x_149); if (x_150 == 0) { 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; uint8_t x_160; @@ -24325,7 +24496,7 @@ x_151 = lean_unsigned_to_nat(1u); x_152 = lean_nat_add(x_136, x_151); lean_dec(x_136); x_153 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_153, 0, x_33); +lean_ctor_set(x_153, 0, x_35); lean_ctor_set(x_153, 1, x_144); lean_ctor_set(x_153, 2, x_149); x_154 = lean_array_uset(x_137, x_148, x_153); @@ -24349,9 +24520,9 @@ if (lean_is_scalar(x_138)) { } lean_ctor_set(x_162, 0, x_152); lean_ctor_set(x_162, 1, x_161); -x_19 = x_135; -x_20 = x_34; -x_21 = x_39; +x_19 = x_38; +x_20 = x_135; +x_21 = x_40; x_22 = x_47; x_23 = x_162; goto block_32; @@ -24366,9 +24537,9 @@ if (lean_is_scalar(x_138)) { } lean_ctor_set(x_163, 0, x_152); lean_ctor_set(x_163, 1, x_154); -x_19 = x_135; -x_20 = x_34; -x_21 = x_39; +x_19 = x_38; +x_20 = x_135; +x_21 = x_40; x_22 = x_47; x_23 = x_163; goto block_32; @@ -24379,7 +24550,7 @@ else lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; x_164 = lean_box(0); x_165 = lean_array_uset(x_137, x_148, x_164); -x_166 = l_Std_DHashMap_Internal_AssocList_replace___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__1___redArg(x_33, x_144, x_149); +x_166 = l_Std_DHashMap_Internal_AssocList_replace___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__1___redArg(x_35, x_144, x_149); x_167 = lean_array_uset(x_165, x_148, x_166); if (lean_is_scalar(x_138)) { x_168 = lean_alloc_ctor(0, 2, 0); @@ -24388,9 +24559,9 @@ if (lean_is_scalar(x_138)) { } lean_ctor_set(x_168, 0, x_136); lean_ctor_set(x_168, 1, x_167); -x_19 = x_135; -x_20 = x_34; -x_21 = x_39; +x_19 = x_38; +x_20 = x_135; +x_21 = x_40; x_22 = x_47; x_23 = x_168; goto block_32; @@ -24400,31 +24571,31 @@ goto block_32; block_183: { uint8_t x_182; -x_182 = l_Lean_beqIRPhases____x40_Lean_Environment___hyg_362_(x_181, x_178); +x_182 = l_Lean_beqIRPhases____x40_Lean_Environment___hyg_362_(x_177, x_178); if (x_182 == 0) { -x_33 = x_175; -x_34 = x_176; -x_35 = x_177; -x_36 = x_170; -x_37 = x_179; -x_38 = x_171; -x_39 = x_180; -x_40 = x_172; -x_41 = x_181; -x_42 = x_173; -x_43 = x_174; +x_33 = x_170; +x_34 = x_171; +x_35 = x_172; +x_36 = x_177; +x_37 = x_173; +x_38 = x_174; +x_39 = x_179; +x_40 = x_180; +x_41 = x_175; +x_42 = x_181; +x_43 = x_176; goto block_169; } else { -lean_dec(x_180); +lean_dec_ref(x_180); lean_dec_ref(x_176); -lean_dec(x_175); -lean_dec_ref(x_174); -lean_dec_ref(x_172); +lean_dec(x_174); +lean_dec(x_172); +lean_dec_ref(x_170); x_13 = x_1; -x_14 = x_170; +x_14 = x_179; goto block_18; } } @@ -24432,24 +24603,24 @@ block_199: { if (x_196 == 0) { -if (x_191 == 0) +if (x_184 == 0) { uint8_t x_197; -x_197 = lean_ctor_get_uint8(x_192, sizeof(void*)*1 + 1); +x_197 = lean_ctor_get_uint8(x_195, sizeof(void*)*1 + 1); if (x_197 == 0) { -x_170 = x_187; -x_171 = x_191; -x_172 = x_192; -x_173 = x_194; -x_174 = x_195; -x_175 = x_185; -x_176 = x_184; -x_177 = x_186; -x_178 = x_188; -x_179 = x_189; -x_180 = x_190; -x_181 = x_193; +x_170 = x_185; +x_171 = x_184; +x_172 = x_186; +x_173 = x_188; +x_174 = x_189; +x_175 = x_193; +x_176 = x_195; +x_177 = x_187; +x_178 = x_190; +x_179 = x_191; +x_180 = x_192; +x_181 = x_194; goto block_183; } else @@ -24458,9 +24629,9 @@ x_33 = x_185; x_34 = x_184; x_35 = x_186; x_36 = x_187; -x_37 = x_189; -x_38 = x_191; -x_39 = x_190; +x_37 = x_188; +x_38 = x_189; +x_39 = x_191; x_40 = x_192; x_41 = x_193; x_42 = x_194; @@ -24471,16 +24642,16 @@ goto block_169; else { uint8_t x_198; -x_198 = lean_ctor_get_uint8(x_192, sizeof(void*)*1 + 1); +x_198 = lean_ctor_get_uint8(x_195, sizeof(void*)*1 + 1); if (x_198 == 0) { x_33 = x_185; x_34 = x_184; x_35 = x_186; x_36 = x_187; -x_37 = x_189; -x_38 = x_191; -x_39 = x_190; +x_37 = x_188; +x_38 = x_189; +x_39 = x_191; x_40 = x_192; x_41 = x_193; x_42 = x_194; @@ -24489,18 +24660,18 @@ goto block_169; } else { -x_170 = x_187; -x_171 = x_191; -x_172 = x_192; -x_173 = x_194; -x_174 = x_195; -x_175 = x_185; -x_176 = x_184; -x_177 = x_186; -x_178 = x_188; -x_179 = x_189; -x_180 = x_190; -x_181 = x_193; +x_170 = x_185; +x_171 = x_184; +x_172 = x_186; +x_173 = x_188; +x_174 = x_189; +x_175 = x_193; +x_176 = x_195; +x_177 = x_187; +x_178 = x_190; +x_179 = x_191; +x_180 = x_192; +x_181 = x_194; goto block_183; } } @@ -24511,9 +24682,9 @@ x_33 = x_185; x_34 = x_184; x_35 = x_186; x_36 = x_187; -x_37 = x_189; -x_38 = x_191; -x_39 = x_190; +x_37 = x_188; +x_38 = x_189; +x_39 = x_191; x_40 = x_192; x_41 = x_193; x_42 = x_194; @@ -24526,78 +24697,78 @@ block_216: if (x_203 == 0) { uint8_t x_214; -x_214 = lean_ctor_get_uint8(x_202, sizeof(void*)*1); +x_214 = lean_ctor_get_uint8(x_207, sizeof(void*)*1); if (x_214 == 0) { -x_184 = x_206; -x_185 = x_205; -x_186 = x_207; -x_187 = x_200; -x_188 = x_208; -x_189 = x_210; -x_190 = x_211; -x_191 = x_201; -x_192 = x_202; -x_193 = x_213; -x_194 = x_203; -x_195 = x_204; -x_196 = x_212; +x_184 = x_201; +x_185 = x_200; +x_186 = x_202; +x_187 = x_213; +x_188 = x_203; +x_189 = x_204; +x_190 = x_208; +x_191 = x_209; +x_192 = x_211; +x_193 = x_205; +x_194 = x_212; +x_195 = x_207; +x_196 = x_210; goto block_199; } else { -x_184 = x_206; -x_185 = x_205; -x_186 = x_207; -x_187 = x_200; -x_188 = x_208; -x_189 = x_210; -x_190 = x_211; -x_191 = x_201; -x_192 = x_202; -x_193 = x_213; -x_194 = x_203; -x_195 = x_204; -x_196 = x_209; +x_184 = x_201; +x_185 = x_200; +x_186 = x_202; +x_187 = x_213; +x_188 = x_203; +x_189 = x_204; +x_190 = x_208; +x_191 = x_209; +x_192 = x_211; +x_193 = x_205; +x_194 = x_212; +x_195 = x_207; +x_196 = x_206; goto block_199; } } else { uint8_t x_215; -x_215 = lean_ctor_get_uint8(x_202, sizeof(void*)*1); +x_215 = lean_ctor_get_uint8(x_207, sizeof(void*)*1); if (x_215 == 0) { -x_184 = x_206; -x_185 = x_205; -x_186 = x_207; -x_187 = x_200; -x_188 = x_208; -x_189 = x_210; -x_190 = x_211; -x_191 = x_201; -x_192 = x_202; -x_193 = x_213; -x_194 = x_203; -x_195 = x_204; -x_196 = x_209; +x_184 = x_201; +x_185 = x_200; +x_186 = x_202; +x_187 = x_213; +x_188 = x_203; +x_189 = x_204; +x_190 = x_208; +x_191 = x_209; +x_192 = x_211; +x_193 = x_205; +x_194 = x_212; +x_195 = x_207; +x_196 = x_206; goto block_199; } else { -x_184 = x_206; -x_185 = x_205; -x_186 = x_207; -x_187 = x_200; -x_188 = x_208; -x_189 = x_210; -x_190 = x_211; -x_191 = x_201; -x_192 = x_202; -x_193 = x_213; -x_194 = x_203; -x_195 = x_204; -x_196 = x_212; +x_184 = x_201; +x_185 = x_200; +x_186 = x_202; +x_187 = x_213; +x_188 = x_203; +x_189 = x_204; +x_190 = x_208; +x_191 = x_209; +x_192 = x_211; +x_193 = x_205; +x_194 = x_212; +x_195 = x_207; +x_196 = x_210; goto block_199; } } @@ -24605,113 +24776,113 @@ goto block_199; block_233: { uint8_t x_231; -x_231 = l_Lean_beqIRPhases____x40_Lean_Environment___hyg_362_(x_225, x_220); +x_231 = l_Lean_beqIRPhases____x40_Lean_Environment___hyg_362_(x_228, x_224); if (x_231 == 0) { uint8_t x_232; x_232 = 2; -x_200 = x_223; +x_200 = x_225; x_201 = x_230; -x_202 = x_219; -x_203 = x_229; -x_204 = x_221; -x_205 = x_217; -x_206 = x_218; -x_207 = x_222; -x_208 = x_220; -x_209 = x_224; -x_210 = x_226; -x_211 = x_227; -x_212 = x_228; +x_202 = x_217; +x_203 = x_218; +x_204 = x_219; +x_205 = x_227; +x_206 = x_226; +x_207 = x_223; +x_208 = x_224; +x_209 = x_221; +x_210 = x_220; +x_211 = x_222; +x_212 = x_229; x_213 = x_232; goto block_216; } else { -x_200 = x_223; +x_200 = x_225; x_201 = x_230; -x_202 = x_219; -x_203 = x_229; -x_204 = x_221; -x_205 = x_217; -x_206 = x_218; -x_207 = x_222; -x_208 = x_220; -x_209 = x_224; -x_210 = x_226; -x_211 = x_227; -x_212 = x_228; -x_213 = x_225; +x_202 = x_217; +x_203 = x_218; +x_204 = x_219; +x_205 = x_227; +x_206 = x_226; +x_207 = x_223; +x_208 = x_224; +x_209 = x_221; +x_210 = x_220; +x_211 = x_222; +x_212 = x_229; +x_213 = x_228; goto block_216; } } block_254: { -if (x_234 == 0) +if (x_236 == 0) { lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; uint8_t x_249; -x_245 = lean_ctor_get(x_235, 0); +x_245 = lean_ctor_get(x_239, 0); lean_inc_ref(x_245); x_246 = lean_ctor_get(x_245, 0); lean_inc_ref(x_246); -x_247 = lean_ctor_get(x_235, 1); +x_247 = lean_ctor_get(x_239, 1); lean_inc_ref(x_247); x_248 = lean_ctor_get_uint8(x_245, sizeof(void*)*1); lean_dec_ref(x_245); x_249 = lean_ctor_get_uint8(x_246, sizeof(void*)*1 + 1); -x_217 = x_236; -x_218 = x_235; -x_219 = x_246; -x_220 = x_248; -x_221 = x_247; -x_222 = x_238; -x_223 = x_237; -x_224 = x_239; -x_225 = x_241; -x_226 = x_240; -x_227 = x_242; +x_217 = x_234; +x_218 = x_244; +x_219 = x_235; +x_220 = x_238; +x_221 = x_237; +x_222 = x_239; +x_223 = x_246; +x_224 = x_248; +x_225 = x_247; +x_226 = x_241; +x_227 = x_240; x_228 = x_243; -x_229 = x_244; +x_229 = x_242; x_230 = x_249; goto block_233; } else { lean_object* x_250; lean_object* x_251; lean_object* x_252; uint8_t x_253; -x_250 = lean_ctor_get(x_235, 0); +x_250 = lean_ctor_get(x_239, 0); lean_inc_ref(x_250); -x_251 = lean_ctor_get(x_235, 1); +x_251 = lean_ctor_get(x_239, 1); lean_inc_ref(x_251); x_252 = lean_ctor_get(x_250, 0); lean_inc_ref(x_252); x_253 = lean_ctor_get_uint8(x_250, sizeof(void*)*1); lean_dec_ref(x_250); -x_217 = x_236; -x_218 = x_235; -x_219 = x_252; -x_220 = x_253; -x_221 = x_251; -x_222 = x_238; -x_223 = x_237; -x_224 = x_239; -x_225 = x_241; -x_226 = x_240; -x_227 = x_242; +x_217 = x_234; +x_218 = x_244; +x_219 = x_235; +x_220 = x_238; +x_221 = x_237; +x_222 = x_239; +x_223 = x_252; +x_224 = x_253; +x_225 = x_251; +x_226 = x_241; +x_227 = x_240; x_228 = x_243; -x_229 = x_244; -x_230 = x_234; +x_229 = x_242; +x_230 = x_236; goto block_233; } } block_264: { lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; -x_260 = lean_array_push(x_258, x_257); +x_260 = lean_array_push(x_257, x_255); x_261 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_261, 0, x_259); lean_ctor_set(x_261, 1, x_260); -x_262 = lean_st_ref_set(x_255, x_261, x_256); -lean_dec(x_255); +x_262 = lean_st_ref_set(x_256, x_261, x_258); +lean_dec(x_256); x_263 = lean_ctor_get(x_262, 1); lean_inc(x_263); lean_dec_ref(x_262); @@ -26835,7 +27006,7 @@ if (lean_is_scalar(x_15)) { x_36 = x_15; } lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_34); +lean_ctor_set(x_36, 1, x_33); if (lean_is_scalar(x_12)) { x_37 = lean_alloc_ctor(0, 2, 0); } else { @@ -26847,7 +27018,7 @@ x_38 = 1; x_39 = lean_usize_add(x_5, x_38); x_5 = x_39; x_6 = x_37; -x_7 = x_33; +x_7 = x_34; goto _start; } block_87: @@ -26907,8 +27078,8 @@ lean_object* x_74; x_74 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_NameHashSet_insert_spec__1___redArg(x_67); lean_ctor_set(x_42, 1, x_74); lean_ctor_set(x_42, 0, x_65); -x_33 = x_44; -x_34 = x_43; +x_33 = x_43; +x_34 = x_44; x_35 = x_42; goto block_41; } @@ -26916,8 +27087,8 @@ else { lean_ctor_set(x_42, 1, x_67); lean_ctor_set(x_42, 0, x_65); -x_33 = x_44; -x_34 = x_43; +x_33 = x_43; +x_34 = x_44; x_35 = x_42; goto block_41; } @@ -26950,8 +27121,8 @@ x_84 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_NameHashSet_insert_s x_85 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_85, 0, x_75); lean_ctor_set(x_85, 1, x_84); -x_33 = x_44; -x_34 = x_43; +x_33 = x_43; +x_34 = x_44; x_35 = x_85; goto block_41; } @@ -26961,8 +27132,8 @@ lean_object* x_86; x_86 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_86, 0, x_75); lean_ctor_set(x_86, 1, x_77); -x_33 = x_44; -x_34 = x_43; +x_33 = x_43; +x_34 = x_44; x_35 = x_86; goto block_41; } @@ -26974,8 +27145,8 @@ lean_dec(x_60); lean_dec_ref(x_46); lean_dec(x_45); lean_dec(x_29); -x_33 = x_44; -x_34 = x_43; +x_33 = x_43; +x_34 = x_44; x_35 = x_42; goto block_41; } @@ -27337,7 +27508,7 @@ if (lean_is_scalar(x_15)) { x_217 = x_15; } lean_ctor_set(x_217, 0, x_216); -lean_ctor_set(x_217, 1, x_215); +lean_ctor_set(x_217, 1, x_214); if (lean_is_scalar(x_12)) { x_218 = lean_alloc_ctor(0, 2, 0); } else { @@ -27349,7 +27520,7 @@ x_219 = 1; x_220 = lean_usize_add(x_5, x_219); x_5 = x_220; x_6 = x_218; -x_7 = x_214; +x_7 = x_215; goto _start; } block_256: @@ -27414,8 +27585,8 @@ if (lean_is_scalar(x_243)) { } lean_ctor_set(x_254, 0, x_244); lean_ctor_set(x_254, 1, x_253); -x_214 = x_225; -x_215 = x_224; +x_214 = x_224; +x_215 = x_225; x_216 = x_254; goto block_222; } @@ -27429,8 +27600,8 @@ if (lean_is_scalar(x_243)) { } lean_ctor_set(x_255, 0, x_244); lean_ctor_set(x_255, 1, x_246); -x_214 = x_225; -x_215 = x_224; +x_214 = x_224; +x_215 = x_225; x_216 = x_255; goto block_222; } @@ -27441,8 +27612,8 @@ lean_dec(x_241); lean_dec_ref(x_227); lean_dec(x_226); lean_dec(x_209); -x_214 = x_225; -x_215 = x_224; +x_214 = x_224; +x_215 = x_225; x_216 = x_223; goto block_222; } @@ -29039,7 +29210,7 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_finalizeImport(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint32_t x_4, uint8_t x_5, uint8_t x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_10; lean_object* x_11; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; size_t 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; uint8_t x_72; size_t x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_141; lean_object* x_142; uint8_t x_143; size_t 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; uint8_t x_153; size_t x_154; uint8_t x_155; lean_object* x_166; lean_object* x_167; size_t x_168; uint8_t x_169; lean_object* x_170; lean_object* x_171; size_t x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_190; lean_object* x_191; lean_object* x_192; size_t x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; size_t x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_207; lean_object* x_208; size_t x_209; lean_object* x_210; lean_object* x_211; uint8_t x_212; size_t x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_224; lean_object* x_225; lean_object* x_226; size_t x_227; uint8_t x_228; lean_object* x_229; lean_object* x_230; size_t x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_267; lean_object* x_268; lean_object* x_269; size_t x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; size_t x_274; lean_object* x_275; uint8_t x_282; uint8_t x_302; uint8_t x_303; +lean_object* x_10; lean_object* x_11; lean_object* x_42; lean_object* x_43; lean_object* x_44; 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; size_t x_67; lean_object* x_68; uint8_t x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; size_t x_73; lean_object* x_74; uint8_t x_75; lean_object* x_76; 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; size_t x_148; uint8_t x_149; lean_object* x_150; lean_object* x_151; size_t x_152; lean_object* x_153; uint8_t x_154; uint8_t x_155; size_t x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; lean_object* x_170; lean_object* x_171; size_t x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; size_t x_190; lean_object* x_191; lean_object* x_192; uint8_t x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; size_t x_199; lean_object* x_200; lean_object* x_201; size_t x_207; lean_object* x_208; lean_object* x_209; uint8_t x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; size_t x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_224; size_t x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; lean_object* x_229; lean_object* x_230; size_t x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; size_t x_267; lean_object* x_268; uint8_t x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; size_t x_273; lean_object* x_274; lean_object* x_275; uint8_t x_282; uint8_t x_302; uint8_t x_303; x_54 = l_Lean_Environment_addDeclCore___closed__0; x_55 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f_x27___at___Lean_Kernel_Environment_find_x3f_spec__0_spec__1___redArg___closed__0; x_56 = l_Lean_PersistentHashMap_insert___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__0___redArg___closed__0; @@ -29206,17 +29377,17 @@ return x_45; block_140: { lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -lean_inc(x_70); -lean_inc_ref(x_59); -lean_inc_ref(x_68); -x_77 = l___private_Lean_Environment_0__Lean_setImportedEntries(x_68, x_59, x_70, x_58); +lean_inc(x_64); +lean_inc_ref(x_58); +lean_inc_ref(x_74); +x_77 = l___private_Lean_Environment_0__Lean_setImportedEntries(x_74, x_58, x_64, x_66); x_78 = lean_ctor_get(x_77, 0); lean_inc(x_78); x_79 = lean_ctor_get(x_77, 1); lean_inc(x_79); lean_dec_ref(x_77); -lean_inc_ref(x_71); -x_80 = l_Array_mapMUnsafe_map___at___Lean_finalizeImport_spec__7(x_8, x_7, x_73, x_61, x_71, x_79); +lean_inc_ref(x_72); +x_80 = l_Array_mapMUnsafe_map___at___Lean_finalizeImport_spec__7(x_8, x_7, x_67, x_73, x_72, x_79); if (lean_obj_tag(x_80) == 0) { lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; @@ -29227,84 +29398,84 @@ lean_inc(x_82); lean_dec_ref(x_80); x_83 = lean_array_get_size(x_81); x_84 = lean_mk_empty_array_with_capacity(x_83); -lean_inc(x_70); +lean_inc(x_64); lean_inc(x_83); -x_85 = l_Array_mapFinIdxM_map___at___Lean_finalizeImport_spec__8___redArg(x_57, x_59, x_81, x_83, x_70, x_84); -lean_inc(x_70); -lean_inc_ref(x_68); -x_86 = l___private_Lean_Environment_0__Lean_setImportedEntries(x_68, x_85, x_70, x_82); +x_85 = l_Array_mapFinIdxM_map___at___Lean_finalizeImport_spec__8___redArg(x_57, x_58, x_81, x_83, x_64, x_84); +lean_inc(x_64); +lean_inc_ref(x_74); +x_86 = l___private_Lean_Environment_0__Lean_setImportedEntries(x_74, x_85, x_64, x_82); x_87 = lean_ctor_get(x_86, 0); lean_inc(x_87); x_88 = lean_ctor_get(x_86, 1); lean_inc(x_88); lean_dec_ref(x_86); -x_89 = lean_mk_empty_array_with_capacity(x_65); -lean_inc(x_70); -x_90 = l_Array_mapFinIdxM_map___at___Lean_finalizeImport_spec__9___redArg(x_7, x_57, x_59, x_71, x_65, x_70, x_89); -lean_inc(x_70); +x_89 = lean_mk_empty_array_with_capacity(x_60); +lean_inc(x_64); +x_90 = l_Array_mapFinIdxM_map___at___Lean_finalizeImport_spec__9___redArg(x_7, x_57, x_58, x_72, x_60, x_64, x_89); +lean_inc(x_64); lean_inc(x_78); -x_91 = l___private_Lean_Environment_0__Lean_setImportedEntries(x_78, x_90, x_70, x_88); +x_91 = l___private_Lean_Environment_0__Lean_setImportedEntries(x_78, x_90, x_64, x_88); x_92 = !lean_is_exclusive(x_91); if (x_92 == 0) { lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; x_93 = lean_ctor_get(x_91, 0); x_94 = lean_ctor_get(x_91, 1); -x_95 = l_Array_mapMUnsafe_map___at___Lean_finalizeImport_spec__10(x_73, x_61, x_71); +x_95 = l_Array_mapMUnsafe_map___at___Lean_finalizeImport_spec__10(x_67, x_73, x_72); x_96 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_96, 0, x_64); -lean_ctor_set(x_96, 1, x_62); -lean_ctor_set_uint8(x_96, sizeof(void*)*2, x_60); -x_97 = lean_mk_empty_array_with_capacity(x_70); -lean_inc_ref(x_59); +lean_ctor_set(x_96, 0, x_71); +lean_ctor_set(x_96, 1, x_61); +lean_ctor_set_uint8(x_96, sizeof(void*)*2, x_75); +x_97 = lean_mk_empty_array_with_capacity(x_64); +lean_inc_ref(x_58); lean_inc_ref(x_95); lean_inc_ref(x_2); -lean_inc(x_63); +lean_inc(x_62); x_98 = lean_alloc_ctor(0, 5, 5); -lean_ctor_set(x_98, 0, x_63); +lean_ctor_set(x_98, 0, x_62); lean_ctor_set(x_98, 1, x_2); lean_ctor_set(x_98, 2, x_97); lean_ctor_set(x_98, 3, x_95); -lean_ctor_set(x_98, 4, x_59); +lean_ctor_set(x_98, 4, x_58); lean_ctor_set_uint32(x_98, sizeof(void*)*5, x_4); -lean_ctor_set_uint8(x_98, sizeof(void*)*5 + 4, x_72); -lean_inc(x_67); -lean_inc_ref(x_68); -lean_inc_ref(x_69); -lean_inc_ref(x_75); +lean_ctor_set_uint8(x_98, sizeof(void*)*5 + 4, x_70); +lean_inc(x_68); +lean_inc_ref(x_74); +lean_inc_ref(x_63); +lean_inc_ref(x_59); x_99 = lean_alloc_ctor(0, 7, 1); lean_ctor_set(x_99, 0, x_96); -lean_ctor_set(x_99, 1, x_75); -lean_ctor_set(x_99, 2, x_69); -lean_ctor_set(x_99, 3, x_68); -lean_ctor_set(x_99, 4, x_68); -lean_ctor_set(x_99, 5, x_67); +lean_ctor_set(x_99, 1, x_59); +lean_ctor_set(x_99, 2, x_63); +lean_ctor_set(x_99, 3, x_74); +lean_ctor_set(x_99, 4, x_74); +lean_ctor_set(x_99, 5, x_68); lean_ctor_set(x_99, 6, x_98); -lean_ctor_set_uint8(x_99, sizeof(void*)*7, x_74); -x_100 = l_Array_filterMapM___at___Lean_finalizeImport_spec__11(x_81, x_70, x_83); +lean_ctor_set_uint8(x_99, sizeof(void*)*7, x_69); +x_100 = l_Array_filterMapM___at___Lean_finalizeImport_spec__11(x_81, x_64, x_83); lean_dec(x_83); -lean_dec(x_70); +lean_dec(x_64); lean_dec(x_81); x_101 = l_Array_append___redArg(x_76, x_100); lean_dec_ref(x_100); -lean_inc_ref(x_59); +lean_inc_ref(x_58); x_102 = lean_alloc_ctor(0, 5, 5); -lean_ctor_set(x_102, 0, x_63); +lean_ctor_set(x_102, 0, x_62); lean_ctor_set(x_102, 1, x_2); lean_ctor_set(x_102, 2, x_101); lean_ctor_set(x_102, 3, x_95); -lean_ctor_set(x_102, 4, x_59); +lean_ctor_set(x_102, 4, x_58); lean_ctor_set_uint32(x_102, sizeof(void*)*5, x_4); -lean_ctor_set_uint8(x_102, sizeof(void*)*5 + 4, x_72); +lean_ctor_set_uint8(x_102, sizeof(void*)*5 + 4, x_70); x_103 = lean_alloc_ctor(0, 7, 1); -lean_ctor_set(x_103, 0, x_66); -lean_ctor_set(x_103, 1, x_75); -lean_ctor_set(x_103, 2, x_69); +lean_ctor_set(x_103, 0, x_65); +lean_ctor_set(x_103, 1, x_59); +lean_ctor_set(x_103, 2, x_63); lean_ctor_set(x_103, 3, x_78); lean_ctor_set(x_103, 4, x_87); -lean_ctor_set(x_103, 5, x_67); +lean_ctor_set(x_103, 5, x_68); lean_ctor_set(x_103, 6, x_102); -lean_ctor_set_uint8(x_103, sizeof(void*)*7, x_74); +lean_ctor_set_uint8(x_103, sizeof(void*)*7, x_69); lean_inc_ref(x_103); lean_ctor_set(x_91, 1, x_99); lean_ctor_set(x_91, 0, x_103); @@ -29323,10 +29494,10 @@ lean_ctor_set(x_110, 4, x_107); lean_ctor_set(x_110, 5, x_108); lean_ctor_set(x_110, 6, x_105); lean_ctor_set(x_110, 7, x_109); -lean_ctor_set_uint8(x_110, sizeof(void*)*8, x_60); +lean_ctor_set_uint8(x_110, sizeof(void*)*8, x_75); if (x_5 == 0) { -x_42 = x_59; +x_42 = x_58; x_43 = x_110; x_44 = x_94; goto block_53; @@ -29340,7 +29511,7 @@ lean_inc(x_112); x_113 = lean_ctor_get(x_111, 1); lean_inc(x_113); lean_dec_ref(x_111); -x_42 = x_59; +x_42 = x_58; x_43 = x_112; x_44 = x_113; goto block_53; @@ -29354,61 +29525,61 @@ x_115 = lean_ctor_get(x_91, 1); lean_inc(x_115); lean_inc(x_114); lean_dec(x_91); -x_116 = l_Array_mapMUnsafe_map___at___Lean_finalizeImport_spec__10(x_73, x_61, x_71); +x_116 = l_Array_mapMUnsafe_map___at___Lean_finalizeImport_spec__10(x_67, x_73, x_72); x_117 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_117, 0, x_64); -lean_ctor_set(x_117, 1, x_62); -lean_ctor_set_uint8(x_117, sizeof(void*)*2, x_60); -x_118 = lean_mk_empty_array_with_capacity(x_70); -lean_inc_ref(x_59); +lean_ctor_set(x_117, 0, x_71); +lean_ctor_set(x_117, 1, x_61); +lean_ctor_set_uint8(x_117, sizeof(void*)*2, x_75); +x_118 = lean_mk_empty_array_with_capacity(x_64); +lean_inc_ref(x_58); lean_inc_ref(x_116); lean_inc_ref(x_2); -lean_inc(x_63); +lean_inc(x_62); x_119 = lean_alloc_ctor(0, 5, 5); -lean_ctor_set(x_119, 0, x_63); +lean_ctor_set(x_119, 0, x_62); lean_ctor_set(x_119, 1, x_2); lean_ctor_set(x_119, 2, x_118); lean_ctor_set(x_119, 3, x_116); -lean_ctor_set(x_119, 4, x_59); +lean_ctor_set(x_119, 4, x_58); lean_ctor_set_uint32(x_119, sizeof(void*)*5, x_4); -lean_ctor_set_uint8(x_119, sizeof(void*)*5 + 4, x_72); -lean_inc(x_67); -lean_inc_ref(x_68); -lean_inc_ref(x_69); -lean_inc_ref(x_75); +lean_ctor_set_uint8(x_119, sizeof(void*)*5 + 4, x_70); +lean_inc(x_68); +lean_inc_ref(x_74); +lean_inc_ref(x_63); +lean_inc_ref(x_59); x_120 = lean_alloc_ctor(0, 7, 1); lean_ctor_set(x_120, 0, x_117); -lean_ctor_set(x_120, 1, x_75); -lean_ctor_set(x_120, 2, x_69); -lean_ctor_set(x_120, 3, x_68); -lean_ctor_set(x_120, 4, x_68); -lean_ctor_set(x_120, 5, x_67); +lean_ctor_set(x_120, 1, x_59); +lean_ctor_set(x_120, 2, x_63); +lean_ctor_set(x_120, 3, x_74); +lean_ctor_set(x_120, 4, x_74); +lean_ctor_set(x_120, 5, x_68); lean_ctor_set(x_120, 6, x_119); -lean_ctor_set_uint8(x_120, sizeof(void*)*7, x_74); -x_121 = l_Array_filterMapM___at___Lean_finalizeImport_spec__11(x_81, x_70, x_83); +lean_ctor_set_uint8(x_120, sizeof(void*)*7, x_69); +x_121 = l_Array_filterMapM___at___Lean_finalizeImport_spec__11(x_81, x_64, x_83); lean_dec(x_83); -lean_dec(x_70); +lean_dec(x_64); lean_dec(x_81); x_122 = l_Array_append___redArg(x_76, x_121); lean_dec_ref(x_121); -lean_inc_ref(x_59); +lean_inc_ref(x_58); x_123 = lean_alloc_ctor(0, 5, 5); -lean_ctor_set(x_123, 0, x_63); +lean_ctor_set(x_123, 0, x_62); lean_ctor_set(x_123, 1, x_2); lean_ctor_set(x_123, 2, x_122); lean_ctor_set(x_123, 3, x_116); -lean_ctor_set(x_123, 4, x_59); +lean_ctor_set(x_123, 4, x_58); lean_ctor_set_uint32(x_123, sizeof(void*)*5, x_4); -lean_ctor_set_uint8(x_123, sizeof(void*)*5 + 4, x_72); +lean_ctor_set_uint8(x_123, sizeof(void*)*5 + 4, x_70); x_124 = lean_alloc_ctor(0, 7, 1); -lean_ctor_set(x_124, 0, x_66); -lean_ctor_set(x_124, 1, x_75); -lean_ctor_set(x_124, 2, x_69); +lean_ctor_set(x_124, 0, x_65); +lean_ctor_set(x_124, 1, x_59); +lean_ctor_set(x_124, 2, x_63); lean_ctor_set(x_124, 3, x_78); lean_ctor_set(x_124, 4, x_87); -lean_ctor_set(x_124, 5, x_67); +lean_ctor_set(x_124, 5, x_68); lean_ctor_set(x_124, 6, x_123); -lean_ctor_set_uint8(x_124, sizeof(void*)*7, x_74); +lean_ctor_set_uint8(x_124, sizeof(void*)*7, x_69); lean_inc_ref(x_124); x_125 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_125, 0, x_124); @@ -29428,10 +29599,10 @@ lean_ctor_set(x_132, 4, x_129); lean_ctor_set(x_132, 5, x_130); lean_ctor_set(x_132, 6, x_127); lean_ctor_set(x_132, 7, x_131); -lean_ctor_set_uint8(x_132, sizeof(void*)*8, x_60); +lean_ctor_set_uint8(x_132, sizeof(void*)*8, x_75); if (x_5 == 0) { -x_42 = x_59; +x_42 = x_58; x_43 = x_132; x_44 = x_115; goto block_53; @@ -29445,7 +29616,7 @@ lean_inc(x_134); x_135 = lean_ctor_get(x_133, 1); lean_inc(x_135); lean_dec_ref(x_133); -x_42 = x_59; +x_42 = x_58; x_43 = x_134; x_44 = x_135; goto block_53; @@ -29457,18 +29628,18 @@ else uint8_t x_136; lean_dec(x_78); lean_dec_ref(x_76); -lean_dec_ref(x_75); +lean_dec_ref(x_74); +lean_dec_ref(x_72); lean_dec_ref(x_71); -lean_dec(x_70); -lean_dec_ref(x_69); -lean_dec_ref(x_68); -lean_dec(x_67); -lean_dec_ref(x_66); -lean_dec(x_65); -lean_dec_ref(x_64); -lean_dec(x_63); -lean_dec_ref(x_62); +lean_dec(x_68); +lean_dec_ref(x_65); +lean_dec(x_64); +lean_dec_ref(x_63); +lean_dec(x_62); +lean_dec_ref(x_61); +lean_dec(x_60); lean_dec_ref(x_59); +lean_dec_ref(x_58); lean_dec(x_3); lean_dec_ref(x_2); x_136 = !lean_is_exclusive(x_80); @@ -29497,84 +29668,84 @@ lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; x_156 = l_Lean_Kernel_instInhabitedDiagnostics___closed__1; x_157 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_157, 0, x_156); -lean_ctor_set_uint8(x_157, sizeof(void*)*1, x_143); +lean_ctor_set_uint8(x_157, sizeof(void*)*1, x_154); x_158 = lean_box(0); x_159 = lean_box(0); x_160 = l_Lean_finalizeImport___closed__0; -x_161 = lean_nat_dec_lt(x_151, x_147); +x_161 = lean_nat_dec_lt(x_145, x_142); if (x_161 == 0) { x_58 = x_141; -x_59 = x_142; -x_60 = x_143; -x_61 = x_144; -x_62 = x_145; -x_63 = x_159; -x_64 = x_146; -x_65 = x_147; -x_66 = x_148; -x_67 = x_158; -x_68 = x_149; -x_69 = x_150; -x_70 = x_151; -x_71 = x_152; -x_72 = x_153; -x_73 = x_154; -x_74 = x_155; -x_75 = x_157; +x_59 = x_157; +x_60 = x_142; +x_61 = x_143; +x_62 = x_159; +x_63 = x_144; +x_64 = x_145; +x_65 = x_146; +x_66 = x_147; +x_67 = x_148; +x_68 = x_158; +x_69 = x_155; +x_70 = x_149; +x_71 = x_150; +x_72 = x_151; +x_73 = x_152; +x_74 = x_153; +x_75 = x_154; x_76 = x_160; goto block_140; } else { uint8_t x_162; -x_162 = lean_nat_dec_le(x_147, x_147); +x_162 = lean_nat_dec_le(x_142, x_142); if (x_162 == 0) { x_58 = x_141; -x_59 = x_142; -x_60 = x_143; -x_61 = x_144; -x_62 = x_145; -x_63 = x_159; -x_64 = x_146; -x_65 = x_147; -x_66 = x_148; -x_67 = x_158; -x_68 = x_149; -x_69 = x_150; -x_70 = x_151; -x_71 = x_152; -x_72 = x_153; -x_73 = x_154; -x_74 = x_155; -x_75 = x_157; +x_59 = x_157; +x_60 = x_142; +x_61 = x_143; +x_62 = x_159; +x_63 = x_144; +x_64 = x_145; +x_65 = x_146; +x_66 = x_147; +x_67 = x_148; +x_68 = x_158; +x_69 = x_155; +x_70 = x_149; +x_71 = x_150; +x_72 = x_151; +x_73 = x_152; +x_74 = x_153; +x_75 = x_154; x_76 = x_160; goto block_140; } else { size_t x_163; lean_object* x_164; -x_163 = lean_usize_of_nat(x_147); -x_164 = l_Array_foldlMUnsafe_fold___at___Lean_finalizeImport_spec__13(x_152, x_144, x_163, x_160); +x_163 = lean_usize_of_nat(x_142); +x_164 = l_Array_foldlMUnsafe_fold___at___Lean_finalizeImport_spec__13(x_151, x_152, x_163, x_160); x_58 = x_141; -x_59 = x_142; -x_60 = x_143; -x_61 = x_144; -x_62 = x_145; -x_63 = x_159; -x_64 = x_146; -x_65 = x_147; -x_66 = x_148; -x_67 = x_158; -x_68 = x_149; -x_69 = x_150; -x_70 = x_151; -x_71 = x_152; -x_72 = x_153; -x_73 = x_154; -x_74 = x_155; -x_75 = x_157; +x_59 = x_157; +x_60 = x_142; +x_61 = x_143; +x_62 = x_159; +x_63 = x_144; +x_64 = x_145; +x_65 = x_146; +x_66 = x_147; +x_67 = x_148; +x_68 = x_158; +x_69 = x_155; +x_70 = x_149; +x_71 = x_150; +x_72 = x_151; +x_73 = x_152; +x_74 = x_153; +x_75 = x_154; x_76 = x_164; goto block_140; } @@ -29603,39 +29774,39 @@ if (x_183 == 0) { uint8_t x_184; x_184 = 1; -x_141 = x_179; -x_142 = x_166; -x_143 = x_180; -x_144 = x_168; -x_145 = x_181; -x_146 = x_175; -x_147 = x_173; -x_148 = x_182; -x_149 = x_178; -x_150 = x_167; +x_141 = x_167; +x_142 = x_168; +x_143 = x_181; +x_144 = x_170; +x_145 = x_173; +x_146 = x_182; +x_147 = x_179; +x_148 = x_166; +x_149 = x_169; +x_150 = x_175; x_151 = x_171; -x_152 = x_170; -x_153 = x_169; -x_154 = x_172; +x_152 = x_172; +x_153 = x_178; +x_154 = x_180; x_155 = x_184; goto block_165; } else { -x_141 = x_179; -x_142 = x_166; -x_143 = x_180; -x_144 = x_168; -x_145 = x_181; -x_146 = x_175; -x_147 = x_173; -x_148 = x_182; -x_149 = x_178; -x_150 = x_167; +x_141 = x_167; +x_142 = x_168; +x_143 = x_181; +x_144 = x_170; +x_145 = x_173; +x_146 = x_182; +x_147 = x_179; +x_148 = x_166; +x_149 = x_169; +x_150 = x_175; x_151 = x_171; -x_152 = x_170; -x_153 = x_169; -x_154 = x_172; +x_152 = x_172; +x_153 = x_178; +x_154 = x_180; x_155 = x_180; goto block_165; } @@ -29646,10 +29817,10 @@ uint8_t x_185; lean_dec_ref(x_175); lean_dec_ref(x_174); lean_dec(x_173); -lean_dec(x_171); +lean_dec_ref(x_171); lean_dec_ref(x_170); +lean_dec(x_168); lean_dec_ref(x_167); -lean_dec_ref(x_166); lean_dec(x_3); lean_dec_ref(x_2); x_185 = !lean_is_exclusive(x_177); @@ -29676,100 +29847,100 @@ block_206: { size_t x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; x_202 = lean_array_size(x_201); -x_203 = l_Array_forIn_x27Unsafe_loop___at___Lean_finalizeImport_spec__15(x_55, x_56, x_201, x_202, x_193, x_190, x_200); +x_203 = l_Array_forIn_x27Unsafe_loop___at___Lean_finalizeImport_spec__15(x_55, x_56, x_201, x_202, x_199, x_196, x_198); lean_dec_ref(x_201); x_204 = lean_ctor_get(x_203, 0); lean_inc(x_204); x_205 = lean_ctor_get(x_203, 1); lean_inc(x_205); lean_dec_ref(x_203); -x_166 = x_191; -x_167 = x_192; -x_168 = x_193; -x_169 = x_196; -x_170 = x_195; -x_171 = x_194; -x_172 = x_197; -x_173 = x_199; -x_174 = x_198; +x_166 = x_190; +x_167 = x_191; +x_168 = x_192; +x_169 = x_193; +x_170 = x_194; +x_171 = x_195; +x_172 = x_199; +x_173 = x_197; +x_174 = x_200; x_175 = x_204; x_176 = x_205; goto block_189; } block_223: { -if (x_212 == 0) +if (x_210 == 0) { -x_166 = x_208; -x_167 = x_215; +x_166 = x_207; +x_167 = x_208; x_168 = x_209; -x_169 = x_212; -x_170 = x_211; -x_171 = x_210; -x_172 = x_213; -x_173 = x_214; +x_169 = x_210; +x_170 = x_215; +x_171 = x_212; +x_172 = x_214; +x_173 = x_213; x_174 = x_216; -x_175 = x_207; +x_175 = x_211; x_176 = x_217; goto block_189; } else { lean_object* x_218; uint8_t x_219; -x_218 = lean_mk_empty_array_with_capacity(x_210); -x_219 = lean_nat_dec_lt(x_210, x_214); +x_218 = lean_mk_empty_array_with_capacity(x_213); +x_219 = lean_nat_dec_lt(x_213, x_209); if (x_219 == 0) { x_190 = x_207; x_191 = x_208; -x_192 = x_215; -x_193 = x_209; -x_194 = x_210; -x_195 = x_211; -x_196 = x_212; +x_192 = x_209; +x_193 = x_210; +x_194 = x_215; +x_195 = x_212; +x_196 = x_211; x_197 = x_213; -x_198 = x_216; +x_198 = x_217; x_199 = x_214; -x_200 = x_217; +x_200 = x_216; x_201 = x_218; goto block_206; } else { uint8_t x_220; -x_220 = lean_nat_dec_le(x_214, x_214); +x_220 = lean_nat_dec_le(x_209, x_209); if (x_220 == 0) { x_190 = x_207; x_191 = x_208; -x_192 = x_215; -x_193 = x_209; -x_194 = x_210; -x_195 = x_211; -x_196 = x_212; +x_192 = x_209; +x_193 = x_210; +x_194 = x_215; +x_195 = x_212; +x_196 = x_211; x_197 = x_213; -x_198 = x_216; +x_198 = x_217; x_199 = x_214; -x_200 = x_217; +x_200 = x_216; x_201 = x_218; goto block_206; } else { size_t x_221; lean_object* x_222; -x_221 = lean_usize_of_nat(x_214); -x_222 = l_Array_foldlMUnsafe_fold___at___Lean_finalizeImport_spec__16(x_211, x_209, x_221, x_218); +x_221 = lean_usize_of_nat(x_209); +x_222 = l_Array_foldlMUnsafe_fold___at___Lean_finalizeImport_spec__16(x_212, x_214, x_221, x_218); x_190 = x_207; x_191 = x_208; -x_192 = x_215; -x_193 = x_209; -x_194 = x_210; -x_195 = x_211; -x_196 = x_212; +x_192 = x_209; +x_193 = x_210; +x_194 = x_215; +x_195 = x_212; +x_196 = x_211; x_197 = x_213; -x_198 = x_216; +x_198 = x_217; x_199 = x_214; -x_200 = x_217; +x_200 = x_216; x_201 = x_222; goto block_206; } @@ -29779,7 +29950,7 @@ goto block_206; block_266: { lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; uint8_t x_254; -x_235 = lean_nat_add(x_233, x_234); +x_235 = lean_nat_add(x_224, x_234); x_236 = lean_unsigned_to_nat(4u); x_237 = lean_nat_mul(x_235, x_236); lean_dec(x_235); @@ -29790,20 +29961,20 @@ x_240 = l_Nat_nextPowerOfTwo(x_239); lean_dec(x_239); x_241 = lean_box(0); x_242 = lean_mk_array(x_240, x_241); -lean_inc(x_230); +lean_inc(x_232); x_243 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_243, 0, x_230); +lean_ctor_set(x_243, 0, x_232); lean_ctor_set(x_243, 1, x_242); -x_244 = lean_nat_mul(x_233, x_236); -lean_dec(x_233); +x_244 = lean_nat_mul(x_224, x_236); +lean_dec(x_224); x_245 = lean_nat_div(x_244, x_238); lean_dec(x_244); x_246 = l_Nat_nextPowerOfTwo(x_245); lean_dec(x_245); x_247 = lean_mk_array(x_246, x_241); -lean_inc(x_230); +lean_inc(x_232); x_248 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_248, 0, x_230); +lean_ctor_set(x_248, 0, x_232); lean_ctor_set(x_248, 1, x_247); x_249 = lean_nat_mul(x_234, x_236); lean_dec(x_234); @@ -29812,26 +29983,26 @@ lean_dec(x_249); x_251 = l_Nat_nextPowerOfTwo(x_250); lean_dec(x_250); x_252 = lean_mk_array(x_251, x_241); -lean_inc(x_230); +lean_inc(x_232); x_253 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_253, 0, x_230); +lean_ctor_set(x_253, 0, x_232); lean_ctor_set(x_253, 1, x_252); -x_254 = lean_nat_dec_lt(x_230, x_226); +x_254 = lean_nat_dec_lt(x_232, x_229); if (x_254 == 0) { -lean_dec(x_226); +lean_dec(x_229); lean_dec_ref(x_1); -x_207 = x_253; -x_208 = x_225; +x_207 = x_225; +x_208 = x_226; x_209 = x_227; -x_210 = x_230; -x_211 = x_229; -x_212 = x_228; -x_213 = x_231; -x_214 = x_232; +x_210 = x_228; +x_211 = x_253; +x_212 = x_230; +x_213 = x_232; +x_214 = x_231; x_215 = x_243; x_216 = x_248; -x_217 = x_224; +x_217 = x_233; goto block_223; } else @@ -29841,9 +30012,9 @@ x_255 = 0; x_256 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_256, 0, x_243); lean_ctor_set(x_256, 1, x_248); -lean_inc(x_230); -x_257 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_finalizeImport_spec__17___redArg(x_55, x_56, x_1, x_225, x_255, x_226, x_230, x_256, x_230, x_224); -lean_dec(x_226); +lean_inc(x_232); +x_257 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_finalizeImport_spec__17___redArg(x_55, x_56, x_1, x_226, x_255, x_229, x_232, x_256, x_232, x_233); +lean_dec(x_229); if (lean_obj_tag(x_257) == 0) { lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; @@ -29857,14 +30028,14 @@ lean_inc(x_260); x_261 = lean_ctor_get(x_258, 1); lean_inc(x_261); lean_dec(x_258); -x_207 = x_253; -x_208 = x_225; +x_207 = x_225; +x_208 = x_226; x_209 = x_227; -x_210 = x_230; -x_211 = x_229; -x_212 = x_228; -x_213 = x_231; -x_214 = x_232; +x_210 = x_228; +x_211 = x_253; +x_212 = x_230; +x_213 = x_232; +x_214 = x_231; x_215 = x_260; x_216 = x_261; x_217 = x_259; @@ -29875,9 +30046,9 @@ else uint8_t x_262; lean_dec_ref(x_253); lean_dec(x_232); -lean_dec(x_230); -lean_dec_ref(x_229); -lean_dec_ref(x_225); +lean_dec_ref(x_230); +lean_dec(x_227); +lean_dec_ref(x_226); lean_dec(x_3); lean_dec_ref(x_2); x_262 = !lean_is_exclusive(x_257); @@ -29904,22 +30075,22 @@ return x_265; block_281: { lean_object* x_276; uint8_t x_277; -x_276 = lean_array_get_size(x_273); -x_277 = lean_nat_dec_lt(x_271, x_276); +x_276 = lean_array_get_size(x_271); +x_277 = lean_nat_dec_lt(x_272, x_276); if (x_277 == 0) { -lean_inc(x_271); -x_224 = x_267; -x_225 = x_268; -x_226 = x_269; -x_227 = x_270; -x_228 = x_272; -x_229 = x_273; +lean_inc(x_272); +x_224 = x_275; +x_225 = x_267; +x_226 = x_268; +x_227 = x_276; +x_228 = x_269; +x_229 = x_270; x_230 = x_271; -x_231 = x_274; -x_232 = x_276; -x_233 = x_275; -x_234 = x_271; +x_231 = x_273; +x_232 = x_272; +x_233 = x_274; +x_234 = x_272; goto block_266; } else @@ -29928,36 +30099,36 @@ uint8_t x_278; x_278 = lean_nat_dec_le(x_276, x_276); if (x_278 == 0) { -lean_inc(x_271); -x_224 = x_267; -x_225 = x_268; -x_226 = x_269; -x_227 = x_270; -x_228 = x_272; -x_229 = x_273; +lean_inc(x_272); +x_224 = x_275; +x_225 = x_267; +x_226 = x_268; +x_227 = x_276; +x_228 = x_269; +x_229 = x_270; x_230 = x_271; -x_231 = x_274; -x_232 = x_276; -x_233 = x_275; -x_234 = x_271; +x_231 = x_273; +x_232 = x_272; +x_233 = x_274; +x_234 = x_272; goto block_266; } else { size_t x_279; lean_object* x_280; x_279 = lean_usize_of_nat(x_276); -lean_inc(x_271); -x_280 = l_Array_foldlMUnsafe_fold___at___Lean_finalizeImport_spec__19(x_273, x_270, x_279, x_271); -x_224 = x_267; -x_225 = x_268; -x_226 = x_269; -x_227 = x_270; -x_228 = x_272; -x_229 = x_273; +lean_inc(x_272); +x_280 = l_Array_foldlMUnsafe_fold___at___Lean_finalizeImport_spec__19(x_271, x_273, x_279, x_272); +x_224 = x_275; +x_225 = x_267; +x_226 = x_268; +x_227 = x_276; +x_228 = x_269; +x_229 = x_270; x_230 = x_271; -x_231 = x_274; -x_232 = x_276; -x_233 = x_275; +x_231 = x_273; +x_232 = x_272; +x_233 = x_274; x_234 = x_280; goto block_266; } @@ -29989,14 +30160,14 @@ x_292 = lean_array_get_size(x_290); x_293 = lean_nat_dec_lt(x_284, x_292); if (x_293 == 0) { -x_267 = x_291; +x_267 = x_287; x_268 = x_290; -x_269 = x_292; -x_270 = x_288; -x_271 = x_284; -x_272 = x_282; -x_273 = x_286; -x_274 = x_287; +x_269 = x_282; +x_270 = x_292; +x_271 = x_286; +x_272 = x_284; +x_273 = x_288; +x_274 = x_291; x_275 = x_284; goto block_281; } @@ -30006,14 +30177,14 @@ uint8_t x_294; x_294 = lean_nat_dec_le(x_292, x_292); if (x_294 == 0) { -x_267 = x_291; +x_267 = x_287; x_268 = x_290; -x_269 = x_292; -x_270 = x_288; -x_271 = x_284; -x_272 = x_282; -x_273 = x_286; -x_274 = x_287; +x_269 = x_282; +x_270 = x_292; +x_271 = x_286; +x_272 = x_284; +x_273 = x_288; +x_274 = x_291; x_275 = x_284; goto block_281; } @@ -30022,14 +30193,14 @@ else size_t x_295; lean_object* x_296; x_295 = lean_usize_of_nat(x_292); x_296 = l_Array_foldlMUnsafe_fold___at___Lean_finalizeImport_spec__20(x_290, x_288, x_295, x_284); -x_267 = x_291; +x_267 = x_287; x_268 = x_290; -x_269 = x_292; -x_270 = x_288; -x_271 = x_284; -x_272 = x_282; -x_273 = x_286; -x_274 = x_287; +x_269 = x_282; +x_270 = x_292; +x_271 = x_286; +x_272 = x_284; +x_273 = x_288; +x_274 = x_291; x_275 = x_296; goto block_281; } @@ -31783,9 +31954,9 @@ block_23: { lean_object* x_20; lean_object* x_21; lean_object* x_22; x_20 = l_Nat_reprFast(x_19); -x_21 = lean_string_append(x_17, x_20); +x_21 = lean_string_append(x_18, x_20); lean_dec_ref(x_20); -x_22 = l_IO_println___at___Lean_Environment_displayStats_spec__2(x_21, x_18); +x_22 = l_IO_println___at___Lean_Environment_displayStats_spec__2(x_21, x_17); x_10 = x_22; goto block_16; } @@ -31803,8 +31974,8 @@ if (x_29 == 0) lean_dec(x_28); lean_dec_ref(x_26); lean_inc(x_4); -x_17 = x_27; -x_18 = x_25; +x_17 = x_25; +x_18 = x_27; x_19 = x_4; goto block_23; } @@ -31817,8 +31988,8 @@ if (x_30 == 0) lean_dec(x_28); lean_dec_ref(x_26); lean_inc(x_4); -x_17 = x_27; -x_18 = x_25; +x_17 = x_25; +x_18 = x_27; x_19 = x_4; goto block_23; } @@ -31831,8 +32002,8 @@ lean_dec(x_28); lean_inc(x_4); x_33 = l_Array_foldlMUnsafe_fold___at___Lean_Environment_displayStats_spec__4(x_26, x_31, x_32, x_4); lean_dec_ref(x_26); -x_17 = x_27; -x_18 = x_25; +x_17 = x_25; +x_18 = x_27; x_19 = x_33; goto block_23; } @@ -31991,9 +32162,9 @@ block_23: { lean_object* x_20; lean_object* x_21; lean_object* x_22; x_20 = l_Nat_reprFast(x_19); -x_21 = lean_string_append(x_17, x_20); +x_21 = lean_string_append(x_18, x_20); lean_dec_ref(x_20); -x_22 = l_IO_println___at___Lean_Environment_displayStats_spec__2(x_21, x_18); +x_22 = l_IO_println___at___Lean_Environment_displayStats_spec__2(x_21, x_17); x_10 = x_22; goto block_16; } @@ -32011,8 +32182,8 @@ if (x_29 == 0) lean_dec(x_28); lean_dec_ref(x_26); lean_inc(x_4); -x_17 = x_27; -x_18 = x_25; +x_17 = x_25; +x_18 = x_27; x_19 = x_4; goto block_23; } @@ -32025,8 +32196,8 @@ if (x_30 == 0) lean_dec(x_28); lean_dec_ref(x_26); lean_inc(x_4); -x_17 = x_27; -x_18 = x_25; +x_17 = x_25; +x_18 = x_27; x_19 = x_4; goto block_23; } @@ -32039,8 +32210,8 @@ lean_dec(x_28); lean_inc(x_4); x_33 = l_Array_foldlMUnsafe_fold___at___Lean_Environment_displayStats_spec__4(x_26, x_31, x_32, x_4); lean_dec_ref(x_26); -x_17 = x_27; -x_18 = x_25; +x_17 = x_25; +x_18 = x_27; x_19 = x_33; goto block_23; } @@ -33200,7 +33371,7 @@ x_33 = lean_alloc_closure((void*)(l_List_forIn_x27_loop___at___Lean_Environment_ lean_closure_set(x_33, 0, x_32); x_34 = l___private_Lean_Environment_0__Lean_AsyncConsts_add___closed__0; x_35 = l_List_forIn_x27_loop___at___Lean_Environment_replayConsts_replayKernel_spec__2___redArg___closed__0; -x_36 = lean_unsigned_to_nat(2355u); +x_36 = lean_unsigned_to_nat(2359u); x_37 = lean_unsigned_to_nat(17u); x_38 = 1; x_39 = l_Lean_Name_toString(x_31, x_38, x_33); @@ -34929,28 +35100,28 @@ return x_10; block_166: { lean_object* x_34; -x_34 = lean_st_ref_set(x_27, x_33, x_31); -lean_dec(x_27); +x_34 = lean_st_ref_set(x_30, x_33, x_25); +lean_dec(x_30); if (lean_obj_tag(x_32) == 0) { lean_object* x_35; uint8_t x_36; x_35 = lean_ctor_get(x_34, 1); lean_inc(x_35); lean_dec_ref(x_34); -x_36 = !lean_is_exclusive(x_28); +x_36 = !lean_is_exclusive(x_27); if (x_36 == 0) { lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t 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; uint8_t x_56; -x_37 = lean_ctor_get(x_28, 6); -x_38 = lean_ctor_get(x_28, 5); +x_37 = lean_ctor_get(x_27, 6); +x_38 = lean_ctor_get(x_27, 5); lean_dec(x_38); -x_39 = l_Lean_RBNode_insert___at___Lean_NameMap_insert_spec__0___redArg(x_37, x_2, x_25); -lean_ctor_set(x_28, 6, x_39); -lean_ctor_set(x_28, 5, x_21); -x_40 = l___private_Lean_Environment_0__Lean_Environment_enterAsyncRealizing(x_3, x_28); +x_39 = l_Lean_RBNode_insert___at___Lean_NameMap_insert_spec__0___redArg(x_37, x_2, x_29); +lean_ctor_set(x_27, 6, x_39); +lean_ctor_set(x_27, 5, x_21); +x_40 = l___private_Lean_Environment_0__Lean_Environment_enterAsyncRealizing(x_3, x_27); x_41 = l_Lean_Environment_realizeConst___closed__0; x_42 = 1; -x_43 = l_Lean_Option_set___at___Lean_Environment_realizeConst_spec__2(x_26, x_41, x_42); +x_43 = l_Lean_Option_set___at___Lean_Environment_realizeConst_spec__2(x_31, x_41, x_42); lean_inc_ref(x_40); x_44 = lean_apply_3(x_4, x_40, x_43, x_35); x_45 = lean_ctor_get(x_44, 0); @@ -35039,12 +35210,12 @@ lean_ctor_set(x_79, 0, x_53); lean_ctor_set(x_79, 1, x_78); lean_ctor_set(x_79, 2, x_48); lean_inc_ref(x_79); -x_80 = lean_io_promise_resolve(x_79, x_30, x_60); -lean_dec(x_30); +x_80 = lean_io_promise_resolve(x_79, x_28, x_60); +lean_dec(x_28); x_81 = lean_ctor_get(x_80, 1); lean_inc(x_81); lean_dec_ref(x_80); -x_82 = lean_apply_2(x_29, x_79, x_81); +x_82 = lean_apply_2(x_26, x_79, x_81); x_6 = x_82; goto block_11; } @@ -35111,12 +35282,12 @@ lean_ctor_set(x_105, 0, x_104); lean_ctor_set(x_105, 1, x_103); lean_ctor_set(x_105, 2, x_48); lean_inc_ref(x_105); -x_106 = lean_io_promise_resolve(x_105, x_30, x_85); -lean_dec(x_30); +x_106 = lean_io_promise_resolve(x_105, x_28, x_85); +lean_dec(x_28); x_107 = lean_ctor_get(x_106, 1); lean_inc(x_107); lean_dec_ref(x_106); -x_108 = lean_apply_2(x_29, x_105, x_107); +x_108 = lean_apply_2(x_26, x_105, x_107); x_6 = x_108; goto block_11; } @@ -35124,14 +35295,14 @@ goto block_11; else { 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; uint8_t x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_109 = lean_ctor_get(x_28, 0); -x_110 = lean_ctor_get(x_28, 1); -x_111 = lean_ctor_get(x_28, 2); -x_112 = lean_ctor_get(x_28, 3); -x_113 = lean_ctor_get(x_28, 4); -x_114 = lean_ctor_get(x_28, 6); -x_115 = lean_ctor_get(x_28, 7); -x_116 = lean_ctor_get_uint8(x_28, sizeof(void*)*8); +x_109 = lean_ctor_get(x_27, 0); +x_110 = lean_ctor_get(x_27, 1); +x_111 = lean_ctor_get(x_27, 2); +x_112 = lean_ctor_get(x_27, 3); +x_113 = lean_ctor_get(x_27, 4); +x_114 = lean_ctor_get(x_27, 6); +x_115 = lean_ctor_get(x_27, 7); +x_116 = lean_ctor_get_uint8(x_27, sizeof(void*)*8); lean_inc(x_115); lean_inc(x_114); lean_inc(x_113); @@ -35139,8 +35310,8 @@ lean_inc(x_112); lean_inc(x_111); lean_inc(x_110); lean_inc(x_109); -lean_dec(x_28); -x_117 = l_Lean_RBNode_insert___at___Lean_NameMap_insert_spec__0___redArg(x_114, x_2, x_25); +lean_dec(x_27); +x_117 = l_Lean_RBNode_insert___at___Lean_NameMap_insert_spec__0___redArg(x_114, x_2, x_29); x_118 = lean_alloc_ctor(0, 8, 1); lean_ctor_set(x_118, 0, x_109); lean_ctor_set(x_118, 1, x_110); @@ -35154,7 +35325,7 @@ lean_ctor_set_uint8(x_118, sizeof(void*)*8, x_116); x_119 = l___private_Lean_Environment_0__Lean_Environment_enterAsyncRealizing(x_3, x_118); x_120 = l_Lean_Environment_realizeConst___closed__0; x_121 = 1; -x_122 = l_Lean_Option_set___at___Lean_Environment_realizeConst_spec__2(x_26, x_120, x_121); +x_122 = l_Lean_Option_set___at___Lean_Environment_realizeConst_spec__2(x_31, x_120, x_121); lean_inc_ref(x_119); x_123 = lean_apply_3(x_4, x_119, x_122, x_35); x_124 = lean_ctor_get(x_123, 0); @@ -35251,12 +35422,12 @@ lean_ctor_set(x_158, 0, x_157); lean_ctor_set(x_158, 1, x_156); lean_ctor_set(x_158, 2, x_127); lean_inc_ref(x_158); -x_159 = lean_io_promise_resolve(x_158, x_30, x_138); -lean_dec(x_30); +x_159 = lean_io_promise_resolve(x_158, x_28, x_138); +lean_dec(x_28); x_160 = lean_ctor_get(x_159, 1); lean_inc(x_160); lean_dec_ref(x_159); -x_161 = lean_apply_2(x_29, x_158, x_160); +x_161 = lean_apply_2(x_26, x_158, x_160); x_6 = x_161; goto block_11; } @@ -35264,10 +35435,10 @@ goto block_11; else { lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; -lean_dec(x_30); +lean_dec(x_31); +lean_dec_ref(x_29); lean_dec(x_28); -lean_dec(x_26); -lean_dec_ref(x_25); +lean_dec(x_27); lean_dec(x_21); lean_dec(x_4); lean_dec(x_3); @@ -35279,7 +35450,7 @@ x_163 = lean_ctor_get(x_32, 0); lean_inc(x_163); lean_dec(x_32); x_164 = lean_task_get_own(x_163); -x_165 = lean_apply_2(x_29, x_164, x_162); +x_165 = lean_apply_2(x_26, x_164, x_162); x_6 = x_165; goto block_11; } @@ -35312,26 +35483,26 @@ lean_object* x_180; lean_object* x_181; x_180 = l_IO_Promise_result_x21___redArg(x_171); lean_inc(x_3); x_181 = l_Lean_RBNode_insert___at___Lean_NameMap_insert_spec__0___redArg(x_177, x_3, x_180); -x_25 = x_168; -x_26 = x_174; -x_27 = x_175; -x_28 = x_173; -x_29 = x_167; -x_30 = x_171; -x_31 = x_178; +x_25 = x_178; +x_26 = x_167; +x_27 = x_173; +x_28 = x_171; +x_29 = x_168; +x_30 = x_175; +x_31 = x_174; x_32 = x_179; x_33 = x_181; goto block_166; } else { -x_25 = x_168; -x_26 = x_174; -x_27 = x_175; -x_28 = x_173; -x_29 = x_167; -x_30 = x_171; -x_31 = x_178; +x_25 = x_178; +x_26 = x_167; +x_27 = x_173; +x_28 = x_171; +x_29 = x_168; +x_30 = x_175; +x_31 = x_174; x_32 = x_179; x_33 = x_177; goto block_166; @@ -35884,47 +36055,57 @@ x_1 = lean_alloc_closure((void*)(l_Lean_withExporting___redArg___lam__1___boxed) return x_1; } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_withoutExporting___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_5 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_5); -x_6 = lean_ctor_get(x_1, 1); -lean_inc(x_6); -lean_dec_ref(x_1); -x_7 = lean_ctor_get(x_2, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_2, 1); -lean_inc(x_8); +if (x_5 == 0) +{ +lean_dec(x_3); lean_dec_ref(x_2); -x_9 = lean_ctor_get(x_5, 0); -lean_inc_ref(x_9); -lean_dec_ref(x_5); -x_10 = l_Lean_withoutExporting___redArg___closed__0; -x_11 = 0; -x_12 = lean_box(x_11); -x_13 = lean_alloc_closure((void*)(l_Lean_withoutExporting___redArg___lam__1___boxed), 2, 1); -lean_closure_set(x_13, 0, x_12); -lean_inc(x_6); -x_14 = lean_alloc_closure((void*)(l_Lean_withExporting___redArg___lam__4___boxed), 8, 7); -lean_closure_set(x_14, 0, x_9); -lean_closure_set(x_14, 1, x_8); -lean_closure_set(x_14, 2, x_3); -lean_closure_set(x_14, 3, x_4); -lean_closure_set(x_14, 4, x_10); -lean_closure_set(x_14, 5, x_13); -lean_closure_set(x_14, 6, x_6); -x_15 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_7, x_14); -return x_15; +lean_dec_ref(x_1); +return x_4; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_6 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_6); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec_ref(x_1); +x_8 = lean_ctor_get(x_2, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_2, 1); +lean_inc(x_9); +lean_dec_ref(x_2); +x_10 = lean_ctor_get(x_6, 0); +lean_inc_ref(x_10); +lean_dec_ref(x_6); +x_11 = l_Lean_withoutExporting___redArg___closed__0; +x_12 = 0; +x_13 = lean_box(x_12); +x_14 = lean_alloc_closure((void*)(l_Lean_withoutExporting___redArg___lam__1___boxed), 2, 1); +lean_closure_set(x_14, 0, x_13); +lean_inc(x_7); +x_15 = lean_alloc_closure((void*)(l_Lean_withExporting___redArg___lam__4___boxed), 8, 7); +lean_closure_set(x_15, 0, x_10); +lean_closure_set(x_15, 1, x_9); +lean_closure_set(x_15, 2, x_3); +lean_closure_set(x_15, 3, x_4); +lean_closure_set(x_15, 4, x_11); +lean_closure_set(x_15, 5, x_14); +lean_closure_set(x_15, 6, x_7); +x_16 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_8, x_15); +return x_16; } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting(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_EXPORT lean_object* l_Lean_withoutExporting(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, uint8_t x_8) { _start: { -lean_object* x_8; -x_8 = l_Lean_withoutExporting___redArg(x_3, x_4, x_5, x_7); -return x_8; +lean_object* x_9; +x_9 = l_Lean_withoutExporting___redArg(x_3, x_4, x_5, x_7, x_8); +return x_9; } } LEAN_EXPORT lean_object* l_Lean_withoutExporting___redArg___lam__1___boxed(lean_object* x_1, lean_object* x_2) { @@ -35936,13 +36117,23 @@ x_4 = l_Lean_withoutExporting___redArg___lam__1(x_3, x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___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_EXPORT lean_object* l_Lean_withoutExporting___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_8; -x_8 = l_Lean_withoutExporting(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_5); +x_7 = l_Lean_withoutExporting___redArg(x_1, x_2, x_3, x_4, x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_8); +x_10 = l_Lean_withoutExporting(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_9); lean_dec(x_6); -return x_8; +return x_10; } } LEAN_EXPORT lean_object* l_Lean_mkDefinitionValInferrringUnsafe___redArg___lam__0(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) { diff --git a/stage0/stdlib/Lean/Meta/AbstractNestedProofs.c b/stage0/stdlib/Lean/Meta/AbstractNestedProofs.c index 9950b93b2a..7ca8ddf65e 100644 --- a/stage0/stdlib/Lean/Meta/AbstractNestedProofs.c +++ b/stage0/stdlib/Lean/Meta/AbstractNestedProofs.c @@ -15,28 +15,27 @@ extern "C" { #endif LEAN_EXPORT lean_object* l_Lean_Meta_abstractNestedProofs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_lambdaLetTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__7___redArg___lam__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___at___Lean_Meta_AbstractNestedProofs_visit_spec__9___lam__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Meta_AbstractNestedProofs_visit_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Meta_AbstractNestedProofs_visit_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at_____private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit_spec__0___redArg(lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3___redArg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__8___redArg(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__7; lean_object* l_Lean_Meta_mkAuxTheorem___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_lambdaLetTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__7___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__3; size_t lean_uint64_to_usize(uint64_t); lean_object* l_Lean_Expr_sort___override(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__8___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___closed__0; +LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* l_Lean_Expr_mdata___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_abstractNestedProofs(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_AbstractNestedProofs_visit___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_proj___override(lean_object*, lean_object*, lean_object*); @@ -44,21 +43,23 @@ lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_____private_Lean_Meta static lean_object* l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___closed__4; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_AbstractNestedProofs_getLambdaBody___boxed(lean_object*); -static lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__8___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* l_Lean_LocalDecl_setType(lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); static lean_object* l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_AbstractNestedProofs_visit___lam__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_setValue(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_AbstractNestedProofs_visit(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___lam__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isAtomic(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__6; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Meta_AbstractNestedProofs_isNonTrivialProof_spec__1(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_insert___at___Lean_LocalContext_mkLocalDecl_spec__0___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_abstractNestedProofs___closed__1; static lean_object* l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___closed__2; static lean_object* l_Lean_Meta_abstractNestedProofs___closed__3; @@ -67,18 +68,19 @@ size_t lean_ptr_addr(lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); -lean_object* l_Lean_withoutExporting___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_withoutExporting___redArg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_AbstractNestedProofs_visit___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3___redArg___lam__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_AbstractNestedProofs_visit___lam__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_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Meta_AbstractNestedProofs_isNonTrivialProof_spec__0(uint8_t, uint8_t, lean_object*, size_t, size_t); uint64_t lean_uint64_shift_right(uint64_t, uint64_t); lean_object* lean_nat_div(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__1_spec__1(uint8_t, lean_object*, size_t, size_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__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*); static lean_object* l_Lean_Meta_abstractNestedProofs___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_lambdaLetTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); @@ -87,47 +89,45 @@ LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg(lean_object*, lean_o lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___at___Lean_Meta_AbstractNestedProofs_visit_spec__9(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_AbstractNestedProofs_visit___lam__3(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__4; lean_object* l_Lean_Meta_inferType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_abstractNestedProofs___closed__4; +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux___redArg(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg___lam__0(lean_object*, uint8_t, lean_object*, lean_object*); -static lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__0; +LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg___lam__0(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); uint64_t l_Lean_Expr_hash(lean_object*); -static lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__1; -static lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__6; lean_object* l_Lean_PersistentArray_set___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Meta_AbstractNestedProofs_isNonTrivialProof_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Meta_AbstractNestedProofs_visit_spec__0(size_t, size_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_AbstractNestedProofs_visit___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Expr_withAppAux___at___Lean_Meta_AbstractNestedProofs_isNonTrivialProof_spec__1_spec__1___redArg(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_DHashMap_Internal_AssocList_replace___at_____private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit_spec__5___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_AbstractNestedProofs_visit___lam__1(uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_lambdaLetTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__7___redArg(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Meta_AbstractNestedProofs_isNonTrivialProof_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Expr_withAppAux___at___Lean_Meta_AbstractNestedProofs_isNonTrivialProof_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_AbstractNestedProofs_getLambdaBody(lean_object*); static lean_object* l_Lean_Meta_abstractNestedProofs___closed__0; lean_object* l_Lean_Meta_mkAuxTheorem(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_betaReduce(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgs(lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__2_spec__2(uint8_t, lean_object*, size_t, size_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_lambdaLetTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__7___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__5; -static lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__2; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__1; lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_xor(uint64_t, uint64_t); +static lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__5; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Expr_withAppAux___at___Lean_Meta_AbstractNestedProofs_isNonTrivialProof_spec__1_spec__1(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__2_spec__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_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_nextPowerOfTwo(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___redArg(lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); @@ -137,7 +137,6 @@ size_t lean_usize_sub(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_AbstractNestedProofs_visit___lam__4(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Expr_withAppAux___at___Lean_Meta_AbstractNestedProofs_isNonTrivialProof_spec__1_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__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* l_Lean_FVarId_getDecl___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_AbstractNestedProofs_visit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -153,37 +152,37 @@ LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___Lean_Meta_AbstractNe LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Expr_withAppAux___at___Lean_Meta_AbstractNestedProofs_visit_spec__5_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_value_x3f(lean_object*, uint8_t); lean_object* lean_array_get_size(lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__0; lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__2(uint8_t, lean_object*, size_t, size_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Environment_setExporting(lean_object*, uint8_t); -static lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__4; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Meta_AbstractNestedProofs_visit_spec__5(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_AbstractNestedProofs_visit___lam__5___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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__1(uint8_t, lean_object*, size_t, size_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_zetaReduce(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Expr_withAppAux___at___Lean_Meta_AbstractNestedProofs_visit_spec__5_spec__5(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg___lam__0(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg___lam__0(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) { _start: { -uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_5 = 1; +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_6 = lean_box(0); -x_7 = lean_box(x_5); -x_8 = lean_box(x_2); +x_7 = lean_box(x_2); +x_8 = lean_box(x_3); x_9 = lean_alloc_closure((void*)(l_Lean_Meta_mkAuxTheorem___boxed), 10, 5); -lean_closure_set(x_9, 0, x_4); +lean_closure_set(x_9, 0, x_5); lean_closure_set(x_9, 1, x_1); lean_closure_set(x_9, 2, x_7); lean_closure_set(x_9, 3, x_6); lean_closure_set(x_9, 4, x_8); -x_10 = lean_apply_2(x_3, lean_box(0), x_9); +x_10 = lean_apply_2(x_4, lean_box(0), x_9); return x_10; } } @@ -229,39 +228,42 @@ return x_7; LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7) { _start: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_8 = lean_ctor_get(x_1, 1); lean_inc(x_8); -x_9 = lean_box(x_6); -lean_inc(x_2); lean_inc_ref(x_5); -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_abstractProof___redArg___lam__0___boxed), 4, 3); -lean_closure_set(x_10, 0, x_5); -lean_closure_set(x_10, 1, x_9); -lean_closure_set(x_10, 2, x_2); -lean_inc(x_8); -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_abstractProof___redArg___lam__1), 4, 3); -lean_closure_set(x_11, 0, x_7); -lean_closure_set(x_11, 1, x_8); -lean_closure_set(x_11, 2, x_10); -lean_inc(x_8); +x_9 = lean_alloc_closure((void*)(l_Lean_Meta_inferType___boxed), 6, 1); +lean_closure_set(x_9, 0, x_5); lean_inc(x_2); -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_abstractProof___redArg___lam__2), 4, 3); -lean_closure_set(x_12, 0, x_2); -lean_closure_set(x_12, 1, x_8); -lean_closure_set(x_12, 2, x_11); -lean_inc(x_8); +x_10 = lean_apply_2(x_2, lean_box(0), x_9); +x_11 = 1; +x_12 = lean_box(x_11); +x_13 = lean_box(x_6); lean_inc(x_2); -x_13 = lean_alloc_closure((void*)(l_Lean_Meta_abstractProof___redArg___lam__4), 4, 3); -lean_closure_set(x_13, 0, x_2); -lean_closure_set(x_13, 1, x_8); -lean_closure_set(x_13, 2, x_12); -x_14 = lean_alloc_closure((void*)(l_Lean_Meta_inferType___boxed), 6, 1); +x_14 = lean_alloc_closure((void*)(l_Lean_Meta_abstractProof___redArg___lam__0___boxed), 5, 4); lean_closure_set(x_14, 0, x_5); -x_15 = lean_apply_2(x_2, lean_box(0), x_14); -x_16 = l_Lean_withoutExporting___redArg(x_1, x_3, x_4, x_15); -x_17 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_16, x_13); -return x_17; +lean_closure_set(x_14, 1, x_12); +lean_closure_set(x_14, 2, x_13); +lean_closure_set(x_14, 3, x_2); +lean_inc(x_8); +x_15 = lean_alloc_closure((void*)(l_Lean_Meta_abstractProof___redArg___lam__1), 4, 3); +lean_closure_set(x_15, 0, x_7); +lean_closure_set(x_15, 1, x_8); +lean_closure_set(x_15, 2, x_14); +lean_inc(x_8); +lean_inc(x_2); +x_16 = lean_alloc_closure((void*)(l_Lean_Meta_abstractProof___redArg___lam__2), 4, 3); +lean_closure_set(x_16, 0, x_2); +lean_closure_set(x_16, 1, x_8); +lean_closure_set(x_16, 2, x_15); +lean_inc(x_8); +x_17 = lean_alloc_closure((void*)(l_Lean_Meta_abstractProof___redArg___lam__4), 4, 3); +lean_closure_set(x_17, 0, x_2); +lean_closure_set(x_17, 1, x_8); +lean_closure_set(x_17, 2, x_16); +x_18 = l_Lean_withoutExporting___redArg(x_1, x_3, x_4, x_10, x_11); +x_19 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_18, x_17); +return x_19; } } LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof(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, uint8_t x_8, lean_object* x_9) { @@ -272,13 +274,14 @@ x_10 = l_Lean_Meta_abstractProof___redArg(x_2, x_3, x_4, x_6, x_7, x_8, x_9); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -uint8_t x_5; lean_object* x_6; -x_5 = lean_unbox(x_2); -x_6 = l_Lean_Meta_abstractProof___redArg___lam__0(x_1, x_5, x_3, x_4); -return x_6; +uint8_t x_6; uint8_t x_7; lean_object* x_8; +x_6 = lean_unbox(x_2); +x_7 = lean_unbox(x_3); +x_8 = l_Lean_Meta_abstractProof___redArg___lam__0(x_1, x_6, x_7, x_4, x_5); +return x_8; } } LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___redArg___lam__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) { @@ -868,7 +871,566 @@ return x_26; } } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___lam__0(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__1_spec__1(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, uint8_t 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_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_29; +x_29 = lean_usize_dec_lt(x_4, x_3); +if (x_29 == 0) +{ +lean_object* x_30; +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_5); +lean_ctor_set(x_30, 1, x_12); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_44; +x_31 = lean_array_uget(x_2, x_4); +x_32 = l_Lean_Expr_fvarId_x21(x_31); +lean_dec_ref(x_31); +lean_inc_ref(x_8); +lean_inc(x_32); +x_44 = l_Lean_FVarId_getDecl___redArg(x_32, x_8, x_10, x_11, x_12); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_67; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec_ref(x_44); +x_67 = lean_ctor_get(x_45, 3); +lean_inc_ref(x_67); +x_47 = x_67; +goto block_66; +block_66: +{ +lean_object* x_48; +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +x_48 = l_Lean_Meta_AbstractNestedProofs_visit(x_47, x_6, x_7, x_8, x_9, x_10, x_11, x_46); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec_ref(x_48); +x_51 = l_Lean_LocalDecl_setType(x_45, x_49); +x_52 = l_Lean_LocalDecl_value_x3f(x_51, x_1); +if (lean_obj_tag(x_52) == 0) +{ +x_33 = x_5; +x_34 = x_51; +x_35 = x_50; +goto block_43; +} +else +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +lean_dec(x_52); +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +x_54 = l_Lean_Meta_AbstractNestedProofs_visit(x_53, x_6, x_7, x_8, x_9, x_10, x_11, x_50); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec_ref(x_54); +x_57 = l_Lean_LocalDecl_setValue(x_51, x_55); +x_33 = x_5; +x_34 = x_57; +x_35 = x_56; +goto block_43; +} +else +{ +uint8_t x_58; +lean_dec_ref(x_51); +lean_dec(x_32); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_5); +x_58 = !lean_is_exclusive(x_54); +if (x_58 == 0) +{ +return x_54; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_54, 0); +x_60 = lean_ctor_get(x_54, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_54); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; +} +} +} +} +else +{ +uint8_t x_62; +lean_dec(x_45); +lean_dec(x_32); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_5); +x_62 = !lean_is_exclusive(x_48); +if (x_62 == 0) +{ +return x_48; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_48, 0); +x_64 = lean_ctor_get(x_48, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_48); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +} +} +else +{ +uint8_t x_68; +lean_dec(x_32); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_5); +x_68 = !lean_is_exclusive(x_44); +if (x_68 == 0) +{ +return x_44; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_44, 0); +x_70 = lean_ctor_get(x_44, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_44); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +block_43: +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_33, 0); +lean_inc_ref(x_36); +x_37 = lean_ctor_get(x_33, 1); +lean_inc_ref(x_37); +x_38 = lean_ctor_get(x_33, 2); +lean_inc(x_38); +lean_inc_ref(x_33); +x_39 = lean_local_ctx_find(x_33, x_32); +if (lean_obj_tag(x_39) == 0) +{ +lean_dec(x_38); +lean_dec_ref(x_37); +lean_dec_ref(x_36); +lean_dec_ref(x_34); +x_13 = x_33; +x_14 = x_35; +goto block_18; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_39); +lean_dec_ref(x_33); +x_40 = lean_ctor_get(x_34, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_34, 1); +lean_inc(x_41); +lean_inc_ref(x_34); +x_42 = l_Lean_PersistentHashMap_insert___at___Lean_LocalContext_mkLocalDecl_spec__0___redArg(x_36, x_41, x_34); +x_19 = x_37; +x_20 = x_42; +x_21 = x_35; +x_22 = x_38; +x_23 = x_34; +x_24 = x_40; +goto block_28; +} +} +} +block_18: +{ +size_t x_15; size_t x_16; +x_15 = 1; +x_16 = lean_usize_add(x_4, x_15); +x_4 = x_16; +x_5 = x_13; +x_12 = x_14; +goto _start; +} +block_28: +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_23); +x_26 = l_Lean_PersistentArray_set___redArg(x_19, x_24, x_25); +lean_dec(x_24); +x_27 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_27, 0, x_20); +lean_ctor_set(x_27, 1, x_26); +lean_ctor_set(x_27, 2, x_22); +x_13 = x_27; +x_14 = x_21; +goto block_18; +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__1(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, uint8_t 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_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_29; +x_29 = lean_usize_dec_lt(x_4, x_3); +if (x_29 == 0) +{ +lean_object* x_30; +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_5); +lean_ctor_set(x_30, 1, x_12); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_44; +x_31 = lean_array_uget(x_2, x_4); +x_32 = l_Lean_Expr_fvarId_x21(x_31); +lean_dec_ref(x_31); +lean_inc_ref(x_8); +lean_inc(x_32); +x_44 = l_Lean_FVarId_getDecl___redArg(x_32, x_8, x_10, x_11, x_12); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_67; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec_ref(x_44); +x_67 = lean_ctor_get(x_45, 3); +lean_inc_ref(x_67); +x_47 = x_67; +goto block_66; +block_66: +{ +lean_object* x_48; +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +x_48 = l_Lean_Meta_AbstractNestedProofs_visit(x_47, x_6, x_7, x_8, x_9, x_10, x_11, x_46); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec_ref(x_48); +x_51 = l_Lean_LocalDecl_setType(x_45, x_49); +x_52 = l_Lean_LocalDecl_value_x3f(x_51, x_1); +if (lean_obj_tag(x_52) == 0) +{ +x_33 = x_5; +x_34 = x_51; +x_35 = x_50; +goto block_43; +} +else +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +lean_dec(x_52); +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +x_54 = l_Lean_Meta_AbstractNestedProofs_visit(x_53, x_6, x_7, x_8, x_9, x_10, x_11, x_50); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec_ref(x_54); +x_57 = l_Lean_LocalDecl_setValue(x_51, x_55); +x_33 = x_5; +x_34 = x_57; +x_35 = x_56; +goto block_43; +} +else +{ +uint8_t x_58; +lean_dec_ref(x_51); +lean_dec(x_32); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_5); +x_58 = !lean_is_exclusive(x_54); +if (x_58 == 0) +{ +return x_54; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_54, 0); +x_60 = lean_ctor_get(x_54, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_54); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; +} +} +} +} +else +{ +uint8_t x_62; +lean_dec(x_45); +lean_dec(x_32); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_5); +x_62 = !lean_is_exclusive(x_48); +if (x_62 == 0) +{ +return x_48; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_48, 0); +x_64 = lean_ctor_get(x_48, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_48); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +} +} +else +{ +uint8_t x_68; +lean_dec(x_32); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_5); +x_68 = !lean_is_exclusive(x_44); +if (x_68 == 0) +{ +return x_44; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_44, 0); +x_70 = lean_ctor_get(x_44, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_44); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +block_43: +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_33, 0); +lean_inc_ref(x_36); +x_37 = lean_ctor_get(x_33, 1); +lean_inc_ref(x_37); +x_38 = lean_ctor_get(x_33, 2); +lean_inc(x_38); +lean_inc_ref(x_33); +x_39 = lean_local_ctx_find(x_33, x_32); +if (lean_obj_tag(x_39) == 0) +{ +lean_dec(x_38); +lean_dec_ref(x_37); +lean_dec_ref(x_36); +lean_dec_ref(x_34); +x_13 = x_33; +x_14 = x_35; +goto block_18; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_39); +lean_dec_ref(x_33); +x_40 = lean_ctor_get(x_34, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_34, 1); +lean_inc(x_41); +lean_inc_ref(x_34); +x_42 = l_Lean_PersistentHashMap_insert___at___Lean_LocalContext_mkLocalDecl_spec__0___redArg(x_36, x_41, x_34); +x_19 = x_37; +x_20 = x_34; +x_21 = x_35; +x_22 = x_38; +x_23 = x_42; +x_24 = x_40; +goto block_28; +} +} +} +block_18: +{ +size_t x_15; size_t x_16; lean_object* x_17; +x_15 = 1; +x_16 = lean_usize_add(x_4, x_15); +x_17 = l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__1_spec__1(x_1, x_2, x_3, x_16, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_14); +return x_17; +} +block_28: +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_20); +x_26 = l_Lean_PersistentArray_set___redArg(x_19, x_24, x_25); +lean_dec(x_24); +x_27 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_27, 0, x_23); +lean_ctor_set(x_27, 1, x_26); +lean_ctor_set(x_27, 2, x_22); +x_13 = x_27; +x_14 = x_21; +goto block_18; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3___redArg___lam__0(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_box(x_2); +x_10 = lean_apply_7(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_box(x_4); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3___redArg___lam__0___boxed), 8, 3); +lean_closure_set(x_12, 0, x_3); +lean_closure_set(x_12, 1, x_11); +lean_closure_set(x_12, 2, x_5); +x_13 = l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalContextImp___redArg(x_1, x_2, x_12, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_13) == 0) +{ +return x_13; +} +else +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +return x_13; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_13); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; @@ -1062,7 +1624,7 @@ return x_64; } } } -static lean_object* _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__0() { +static lean_object* _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__0() { _start: { lean_object* x_1; @@ -1070,75 +1632,75 @@ x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); return x_1; } } -static lean_object* _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__1() { +static lean_object* _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__0; +x_1 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__0; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__2() { +static lean_object* _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__1; +x_1 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__1; x_2 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_2, 0, x_1); lean_ctor_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__3() { +static lean_object* _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__0; +x_1 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__0; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__4() { +static lean_object* _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__0; +x_1 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__0; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__5() { +static lean_object* _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__0; +x_1 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__0; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__6() { +static lean_object* _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__0; +x_1 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__0; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__7() { +static lean_object* _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___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_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__6; -x_2 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__5; -x_3 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__4; -x_4 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__3; +x_1 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__6; +x_2 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__5; +x_3 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__4; +x_4 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__3; x_5 = lean_alloc_ctor(0, 6, 0); lean_ctor_set(x_5, 0, x_4); lean_ctor_set(x_5, 1, x_3); @@ -1149,946 +1711,397 @@ lean_ctor_set(x_5, 5, x_1); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_9 = lean_st_ref_get(x_7, x_8); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_10, 0); -lean_inc_ref(x_11); -lean_dec(x_10); -x_12 = lean_ctor_get(x_9, 1); -lean_inc(x_12); -lean_dec_ref(x_9); -x_13 = lean_ctor_get_uint8(x_11, sizeof(void*)*8); -lean_dec_ref(x_11); -x_14 = lean_st_ref_take(x_7, x_12); -x_15 = lean_ctor_get(x_14, 0); +if (x_2 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(x_3); +x_11 = lean_apply_7(x_1, x_10, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_12 = lean_st_ref_get(x_8, x_9); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_13, 0); +lean_inc_ref(x_14); +lean_dec(x_13); +x_15 = lean_ctor_get(x_12, 1); lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); +lean_dec_ref(x_12); +x_16 = lean_ctor_get_uint8(x_14, sizeof(void*)*8); lean_dec_ref(x_14); -x_17 = !lean_is_exclusive(x_15); -if (x_17 == 0) +x_17 = lean_st_ref_take(x_8, x_15); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec_ref(x_17); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) { -lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_18 = lean_ctor_get(x_15, 0); -x_19 = lean_ctor_get(x_15, 5); -lean_dec(x_19); -x_20 = 0; -x_21 = l_Lean_Environment_setExporting(x_18, x_20); -x_22 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__2; -lean_ctor_set(x_15, 5, x_22); -lean_ctor_set(x_15, 0, x_21); -x_23 = lean_st_ref_set(x_7, x_15, x_16); -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec_ref(x_23); -x_25 = lean_st_ref_take(x_5, x_24); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); +lean_object* x_21; lean_object* x_22; uint8_t 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; uint8_t x_31; +x_21 = lean_ctor_get(x_18, 0); +x_22 = lean_ctor_get(x_18, 5); +lean_dec(x_22); +x_23 = 0; +x_24 = l_Lean_Environment_setExporting(x_21, x_23); +x_25 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__2; +lean_ctor_set(x_18, 5, x_25); +lean_ctor_set(x_18, 0, x_24); +x_26 = lean_st_ref_set(x_8, x_18, x_19); +x_27 = lean_ctor_get(x_26, 1); lean_inc(x_27); -lean_dec_ref(x_25); -x_28 = !lean_is_exclusive(x_26); -if (x_28 == 0) +lean_dec_ref(x_26); +x_28 = lean_st_ref_take(x_6, x_27); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec_ref(x_28); +x_31 = !lean_is_exclusive(x_29); +if (x_31 == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_29 = lean_ctor_get(x_26, 1); -lean_dec(x_29); -x_30 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__7; -lean_ctor_set(x_26, 1, x_30); -x_31 = lean_st_ref_set(x_5, x_26, x_27); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec_ref(x_31); -x_33 = lean_box(x_2); -lean_inc(x_7); -lean_inc(x_5); -x_34 = lean_apply_7(x_1, x_33, x_3, x_4, x_5, x_6, x_7, x_32); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_35 = lean_ctor_get(x_34, 0); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_32 = lean_ctor_get(x_29, 1); +lean_dec(x_32); +x_33 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__7; +lean_ctor_set(x_29, 1, x_33); +x_34 = lean_st_ref_set(x_6, x_29, x_30); +x_35 = lean_ctor_get(x_34, 1); lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); lean_dec_ref(x_34); -lean_inc(x_35); -x_37 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_37, 0, x_35); -x_38 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___lam__0(x_7, x_13, x_22, x_5, x_30, x_37, x_36); +x_36 = lean_box(x_3); +lean_inc(x_8); +lean_inc(x_6); +x_37 = lean_apply_7(x_1, x_36, x_4, x_5, x_6, x_7, x_8, x_35); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); lean_dec_ref(x_37); -lean_dec(x_5); -lean_dec(x_7); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) +lean_inc(x_38); +x_40 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_40, 0, x_38); +x_41 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0(x_8, x_16, x_25, x_6, x_33, x_40, x_39); +lean_dec_ref(x_40); +lean_dec(x_6); +lean_dec(x_8); +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) { -lean_object* x_40; -x_40 = lean_ctor_get(x_38, 0); -lean_dec(x_40); -lean_ctor_set(x_38, 0, x_35); -return x_38; +lean_object* x_43; +x_43 = lean_ctor_get(x_41, 0); +lean_dec(x_43); +lean_ctor_set(x_41, 0, x_38); +return x_41; } else { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_38, 1); -lean_inc(x_41); -lean_dec(x_38); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_35); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_43 = lean_ctor_get(x_34, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_34, 1); +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_41, 1); lean_inc(x_44); -lean_dec_ref(x_34); -x_45 = lean_box(0); -x_46 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___lam__0(x_7, x_13, x_22, x_5, x_30, x_45, x_44); -lean_dec(x_5); -lean_dec(x_7); -x_47 = !lean_is_exclusive(x_46); -if (x_47 == 0) -{ -lean_object* x_48; -x_48 = lean_ctor_get(x_46, 0); -lean_dec(x_48); -lean_ctor_set_tag(x_46, 1); -lean_ctor_set(x_46, 0, x_43); -return x_46; -} -else -{ -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_46, 1); -lean_inc(x_49); -lean_dec(x_46); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_43); -lean_ctor_set(x_50, 1, x_49); -return x_50; -} +lean_dec(x_41); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_38); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } else { -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; -x_51 = lean_ctor_get(x_26, 0); -x_52 = lean_ctor_get(x_26, 2); -x_53 = lean_ctor_get(x_26, 3); -x_54 = lean_ctor_get(x_26, 4); -lean_inc(x_54); -lean_inc(x_53); +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_46 = lean_ctor_get(x_37, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_37, 1); +lean_inc(x_47); +lean_dec_ref(x_37); +x_48 = lean_box(0); +x_49 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0(x_8, x_16, x_25, x_6, x_33, x_48, x_47); +lean_dec(x_6); +lean_dec(x_8); +x_50 = !lean_is_exclusive(x_49); +if (x_50 == 0) +{ +lean_object* x_51; +x_51 = lean_ctor_get(x_49, 0); +lean_dec(x_51); +lean_ctor_set_tag(x_49, 1); +lean_ctor_set(x_49, 0, x_46); +return x_49; +} +else +{ +lean_object* x_52; lean_object* x_53; +x_52 = lean_ctor_get(x_49, 1); lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_26); -x_55 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__7; -x_56 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_56, 0, x_51); -lean_ctor_set(x_56, 1, x_55); -lean_ctor_set(x_56, 2, x_52); -lean_ctor_set(x_56, 3, x_53); -lean_ctor_set(x_56, 4, x_54); -x_57 = lean_st_ref_set(x_5, x_56, x_27); -x_58 = lean_ctor_get(x_57, 1); -lean_inc(x_58); -lean_dec_ref(x_57); -x_59 = lean_box(x_2); -lean_inc(x_7); -lean_inc(x_5); -x_60 = lean_apply_7(x_1, x_59, x_3, x_4, x_5, x_6, x_7, x_58); -if (lean_obj_tag(x_60) == 0) +lean_dec(x_49); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_46); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +else { -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; -x_61 = lean_ctor_get(x_60, 0); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_54 = lean_ctor_get(x_29, 0); +x_55 = lean_ctor_get(x_29, 2); +x_56 = lean_ctor_get(x_29, 3); +x_57 = lean_ctor_get(x_29, 4); +lean_inc(x_57); +lean_inc(x_56); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_29); +x_58 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__7; +x_59 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_59, 0, x_54); +lean_ctor_set(x_59, 1, x_58); +lean_ctor_set(x_59, 2, x_55); +lean_ctor_set(x_59, 3, x_56); +lean_ctor_set(x_59, 4, x_57); +x_60 = lean_st_ref_set(x_6, x_59, x_30); +x_61 = lean_ctor_get(x_60, 1); lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); lean_dec_ref(x_60); -lean_inc(x_61); -x_63 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_63, 0, x_61); -x_64 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___lam__0(x_7, x_13, x_22, x_5, x_55, x_63, x_62); -lean_dec_ref(x_63); -lean_dec(x_5); -lean_dec(x_7); -x_65 = lean_ctor_get(x_64, 1); +x_62 = lean_box(x_3); +lean_inc(x_8); +lean_inc(x_6); +x_63 = lean_apply_7(x_1, x_62, x_4, x_5, x_6, x_7, x_8, x_61); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); lean_inc(x_65); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_66 = x_64; -} else { - lean_dec_ref(x_64); - x_66 = lean_box(0); -} -if (lean_is_scalar(x_66)) { - x_67 = lean_alloc_ctor(0, 2, 0); -} else { - x_67 = x_66; -} -lean_ctor_set(x_67, 0, x_61); -lean_ctor_set(x_67, 1, x_65); -return x_67; -} -else -{ -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; -x_68 = lean_ctor_get(x_60, 0); +lean_dec_ref(x_63); +lean_inc(x_64); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_64); +x_67 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0(x_8, x_16, x_25, x_6, x_58, x_66, x_65); +lean_dec_ref(x_66); +lean_dec(x_6); +lean_dec(x_8); +x_68 = lean_ctor_get(x_67, 1); lean_inc(x_68); -x_69 = lean_ctor_get(x_60, 1); -lean_inc(x_69); -lean_dec_ref(x_60); -x_70 = lean_box(0); -x_71 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___lam__0(x_7, x_13, x_22, x_5, x_55, x_70, x_69); -lean_dec(x_5); -lean_dec(x_7); -x_72 = lean_ctor_get(x_71, 1); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_69 = x_67; +} else { + lean_dec_ref(x_67); + x_69 = lean_box(0); +} +if (lean_is_scalar(x_69)) { + x_70 = lean_alloc_ctor(0, 2, 0); +} else { + x_70 = x_69; +} +lean_ctor_set(x_70, 0, x_64); +lean_ctor_set(x_70, 1, x_68); +return x_70; +} +else +{ +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; +x_71 = lean_ctor_get(x_63, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_63, 1); lean_inc(x_72); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - lean_ctor_release(x_71, 1); - x_73 = x_71; +lean_dec_ref(x_63); +x_73 = lean_box(0); +x_74 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0(x_8, x_16, x_25, x_6, x_58, x_73, x_72); +lean_dec(x_6); +lean_dec(x_8); +x_75 = lean_ctor_get(x_74, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_76 = x_74; } else { - lean_dec_ref(x_71); - x_73 = lean_box(0); + lean_dec_ref(x_74); + x_76 = lean_box(0); } -if (lean_is_scalar(x_73)) { - x_74 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); } else { - x_74 = x_73; - lean_ctor_set_tag(x_74, 1); + x_77 = x_76; + lean_ctor_set_tag(x_77, 1); } -lean_ctor_set(x_74, 0, x_68); -lean_ctor_set(x_74, 1, x_72); -return x_74; +lean_ctor_set(x_77, 0, x_71); +lean_ctor_set(x_77, 1, x_75); +return x_77; } } } else { -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; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_75 = lean_ctor_get(x_15, 0); -x_76 = lean_ctor_get(x_15, 1); -x_77 = lean_ctor_get(x_15, 2); -x_78 = lean_ctor_get(x_15, 3); -x_79 = lean_ctor_get(x_15, 4); -x_80 = lean_ctor_get(x_15, 6); -x_81 = lean_ctor_get(x_15, 7); -x_82 = lean_ctor_get(x_15, 8); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_78 = lean_ctor_get(x_18, 0); +x_79 = lean_ctor_get(x_18, 1); +x_80 = lean_ctor_get(x_18, 2); +x_81 = lean_ctor_get(x_18, 3); +x_82 = lean_ctor_get(x_18, 4); +x_83 = lean_ctor_get(x_18, 6); +x_84 = lean_ctor_get(x_18, 7); +x_85 = lean_ctor_get(x_18, 8); +lean_inc(x_85); +lean_inc(x_84); +lean_inc(x_83); lean_inc(x_82); lean_inc(x_81); lean_inc(x_80); lean_inc(x_79); lean_inc(x_78); -lean_inc(x_77); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_15); -x_83 = 0; -x_84 = l_Lean_Environment_setExporting(x_75, x_83); -x_85 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__2; -x_86 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_76); -lean_ctor_set(x_86, 2, x_77); -lean_ctor_set(x_86, 3, x_78); -lean_ctor_set(x_86, 4, x_79); -lean_ctor_set(x_86, 5, x_85); -lean_ctor_set(x_86, 6, x_80); -lean_ctor_set(x_86, 7, x_81); -lean_ctor_set(x_86, 8, x_82); -x_87 = lean_st_ref_set(x_7, x_86, x_16); -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -lean_dec_ref(x_87); -x_89 = lean_st_ref_take(x_5, x_88); -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); +lean_dec(x_18); +x_86 = 0; +x_87 = l_Lean_Environment_setExporting(x_78, x_86); +x_88 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__2; +x_89 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_79); +lean_ctor_set(x_89, 2, x_80); +lean_ctor_set(x_89, 3, x_81); +lean_ctor_set(x_89, 4, x_82); +lean_ctor_set(x_89, 5, x_88); +lean_ctor_set(x_89, 6, x_83); +lean_ctor_set(x_89, 7, x_84); +lean_ctor_set(x_89, 8, x_85); +x_90 = lean_st_ref_set(x_8, x_89, x_19); +x_91 = lean_ctor_get(x_90, 1); lean_inc(x_91); -lean_dec_ref(x_89); -x_92 = lean_ctor_get(x_90, 0); -lean_inc_ref(x_92); -x_93 = lean_ctor_get(x_90, 2); +lean_dec_ref(x_90); +x_92 = lean_st_ref_take(x_6, x_91); +x_93 = lean_ctor_get(x_92, 0); lean_inc(x_93); -x_94 = lean_ctor_get(x_90, 3); -lean_inc_ref(x_94); -x_95 = lean_ctor_get(x_90, 4); +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +lean_dec_ref(x_92); +x_95 = lean_ctor_get(x_93, 0); lean_inc_ref(x_95); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - lean_ctor_release(x_90, 2); - lean_ctor_release(x_90, 3); - lean_ctor_release(x_90, 4); - x_96 = x_90; +x_96 = lean_ctor_get(x_93, 2); +lean_inc(x_96); +x_97 = lean_ctor_get(x_93, 3); +lean_inc_ref(x_97); +x_98 = lean_ctor_get(x_93, 4); +lean_inc_ref(x_98); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + lean_ctor_release(x_93, 2); + lean_ctor_release(x_93, 3); + lean_ctor_release(x_93, 4); + x_99 = x_93; } else { - lean_dec_ref(x_90); - x_96 = lean_box(0); + lean_dec_ref(x_93); + x_99 = lean_box(0); } -x_97 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__7; -if (lean_is_scalar(x_96)) { - x_98 = lean_alloc_ctor(0, 5, 0); +x_100 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__7; +if (lean_is_scalar(x_99)) { + x_101 = lean_alloc_ctor(0, 5, 0); } else { - x_98 = x_96; + x_101 = x_99; } -lean_ctor_set(x_98, 0, x_92); -lean_ctor_set(x_98, 1, x_97); -lean_ctor_set(x_98, 2, x_93); -lean_ctor_set(x_98, 3, x_94); -lean_ctor_set(x_98, 4, x_95); -x_99 = lean_st_ref_set(x_5, x_98, x_91); -x_100 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -lean_dec_ref(x_99); -x_101 = lean_box(x_2); -lean_inc(x_7); -lean_inc(x_5); -x_102 = lean_apply_7(x_1, x_101, x_3, x_4, x_5, x_6, x_7, x_100); -if (lean_obj_tag(x_102) == 0) -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_103 = lean_ctor_get(x_102, 0); +lean_ctor_set(x_101, 0, x_95); +lean_ctor_set(x_101, 1, x_100); +lean_ctor_set(x_101, 2, x_96); +lean_ctor_set(x_101, 3, x_97); +lean_ctor_set(x_101, 4, x_98); +x_102 = lean_st_ref_set(x_6, x_101, x_94); +x_103 = lean_ctor_get(x_102, 1); lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); lean_dec_ref(x_102); -lean_inc(x_103); -x_105 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_105, 0, x_103); -x_106 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___lam__0(x_7, x_13, x_85, x_5, x_97, x_105, x_104); -lean_dec_ref(x_105); -lean_dec(x_5); -lean_dec(x_7); -x_107 = lean_ctor_get(x_106, 1); +x_104 = lean_box(x_3); +lean_inc(x_8); +lean_inc(x_6); +x_105 = lean_apply_7(x_1, x_104, x_4, x_5, x_6, x_7, x_8, x_103); +if (lean_obj_tag(x_105) == 0) +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); lean_inc(x_107); -if (lean_is_exclusive(x_106)) { - lean_ctor_release(x_106, 0); - lean_ctor_release(x_106, 1); - x_108 = x_106; -} else { - lean_dec_ref(x_106); - x_108 = lean_box(0); -} -if (lean_is_scalar(x_108)) { - x_109 = lean_alloc_ctor(0, 2, 0); -} else { - x_109 = x_108; -} -lean_ctor_set(x_109, 0, x_103); -lean_ctor_set(x_109, 1, x_107); -return x_109; -} -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_110 = lean_ctor_get(x_102, 0); +lean_dec_ref(x_105); +lean_inc(x_106); +x_108 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_108, 0, x_106); +x_109 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0(x_8, x_16, x_88, x_6, x_100, x_108, x_107); +lean_dec_ref(x_108); +lean_dec(x_6); +lean_dec(x_8); +x_110 = lean_ctor_get(x_109, 1); lean_inc(x_110); -x_111 = lean_ctor_get(x_102, 1); -lean_inc(x_111); -lean_dec_ref(x_102); -x_112 = lean_box(0); -x_113 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___lam__0(x_7, x_13, x_85, x_5, x_97, x_112, x_111); -lean_dec(x_5); -lean_dec(x_7); -x_114 = lean_ctor_get(x_113, 1); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_111 = x_109; +} else { + lean_dec_ref(x_109); + x_111 = lean_box(0); +} +if (lean_is_scalar(x_111)) { + x_112 = lean_alloc_ctor(0, 2, 0); +} else { + x_112 = x_111; +} +lean_ctor_set(x_112, 0, x_106); +lean_ctor_set(x_112, 1, x_110); +return x_112; +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_113 = lean_ctor_get(x_105, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_105, 1); lean_inc(x_114); -if (lean_is_exclusive(x_113)) { - lean_ctor_release(x_113, 0); - lean_ctor_release(x_113, 1); - x_115 = x_113; +lean_dec_ref(x_105); +x_115 = lean_box(0); +x_116 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0(x_8, x_16, x_88, x_6, x_100, x_115, x_114); +lean_dec(x_6); +lean_dec(x_8); +x_117 = lean_ctor_get(x_116, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_118 = x_116; } else { - lean_dec_ref(x_113); - x_115 = lean_box(0); + lean_dec_ref(x_116); + x_118 = lean_box(0); } -if (lean_is_scalar(x_115)) { - x_116 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(1, 2, 0); } else { - x_116 = x_115; - lean_ctor_set_tag(x_116, 1); + x_119 = x_118; + lean_ctor_set_tag(x_119, 1); } -lean_ctor_set(x_116, 0, x_110); -lean_ctor_set(x_116, 1, x_114); -return x_116; +lean_ctor_set(x_119, 0, x_113); +lean_ctor_set(x_119, 1, x_117); +return x_119; } } } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1(lean_object* x_1, lean_object* x_2, uint8_t 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_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_10; -x_10 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__2_spec__2(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, uint8_t 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_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_29; -x_29 = lean_usize_dec_lt(x_4, x_3); -if (x_29 == 0) -{ -lean_object* x_30; -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_5); -lean_ctor_set(x_30, 1, x_12); -return x_30; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_44; -x_31 = lean_array_uget(x_2, x_4); -x_32 = l_Lean_Expr_fvarId_x21(x_31); -lean_dec_ref(x_31); -lean_inc_ref(x_8); -lean_inc(x_32); -x_44 = l_Lean_FVarId_getDecl___redArg(x_32, x_8, x_10, x_11, x_12); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_67; -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec_ref(x_44); -x_67 = lean_ctor_get(x_45, 3); -lean_inc_ref(x_67); -x_47 = x_67; -goto block_66; -block_66: -{ -lean_object* x_48; -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -x_48 = l_Lean_Meta_AbstractNestedProofs_visit(x_47, x_6, x_7, x_8, x_9, x_10, x_11, x_46); -if (lean_obj_tag(x_48) == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -lean_dec_ref(x_48); -x_51 = l_Lean_LocalDecl_setType(x_45, x_49); -x_52 = l_Lean_LocalDecl_value_x3f(x_51, x_1); -if (lean_obj_tag(x_52) == 0) -{ -x_33 = x_5; -x_34 = x_51; -x_35 = x_50; -goto block_43; -} -else -{ -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -lean_dec(x_52); -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -x_54 = l_Lean_Meta_AbstractNestedProofs_visit(x_53, x_6, x_7, x_8, x_9, x_10, x_11, x_50); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec_ref(x_54); -x_57 = l_Lean_LocalDecl_setValue(x_51, x_55); -x_33 = x_5; -x_34 = x_57; -x_35 = x_56; -goto block_43; -} -else -{ -uint8_t x_58; -lean_dec_ref(x_51); -lean_dec(x_32); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_5); -x_58 = !lean_is_exclusive(x_54); -if (x_58 == 0) -{ -return x_54; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_54, 0); -x_60 = lean_ctor_get(x_54, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_54); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -return x_61; -} -} -} -} -else -{ -uint8_t x_62; -lean_dec(x_45); -lean_dec(x_32); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_5); -x_62 = !lean_is_exclusive(x_48); -if (x_62 == 0) -{ -return x_48; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_48, 0); -x_64 = lean_ctor_get(x_48, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_48); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -return x_65; -} -} -} -} -else -{ -uint8_t x_68; -lean_dec(x_32); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_5); -x_68 = !lean_is_exclusive(x_44); -if (x_68 == 0) -{ -return x_44; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_44, 0); -x_70 = lean_ctor_get(x_44, 1); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_44); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} -} -block_43: -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_36 = lean_ctor_get(x_33, 0); -lean_inc_ref(x_36); -x_37 = lean_ctor_get(x_33, 1); -lean_inc_ref(x_37); -x_38 = lean_ctor_get(x_33, 2); -lean_inc(x_38); -lean_inc_ref(x_33); -x_39 = lean_local_ctx_find(x_33, x_32); -if (lean_obj_tag(x_39) == 0) -{ -lean_dec(x_38); -lean_dec_ref(x_37); -lean_dec_ref(x_36); -lean_dec_ref(x_34); -x_13 = x_33; -x_14 = x_35; -goto block_18; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_39); -lean_dec_ref(x_33); -x_40 = lean_ctor_get(x_34, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_34, 1); -lean_inc(x_41); -lean_inc_ref(x_34); -x_42 = l_Lean_PersistentHashMap_insert___at___Lean_LocalContext_mkLocalDecl_spec__0___redArg(x_36, x_41, x_34); -x_19 = x_34; -x_20 = x_35; -x_21 = x_42; -x_22 = x_37; -x_23 = x_38; -x_24 = x_40; -goto block_28; -} -} -} -block_18: -{ -size_t x_15; size_t x_16; -x_15 = 1; -x_16 = lean_usize_add(x_4, x_15); -x_4 = x_16; -x_5 = x_13; -x_12 = x_14; -goto _start; -} -block_28: -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_19); -x_26 = l_Lean_PersistentArray_set___redArg(x_22, x_24, x_25); -lean_dec(x_24); -x_27 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_27, 0, x_21); -lean_ctor_set(x_27, 1, x_26); -lean_ctor_set(x_27, 2, x_23); -x_13 = x_27; -x_14 = x_20; -goto block_18; -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__2(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, uint8_t 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_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_29; -x_29 = lean_usize_dec_lt(x_4, x_3); -if (x_29 == 0) -{ -lean_object* x_30; -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_5); -lean_ctor_set(x_30, 1, x_12); -return x_30; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_44; -x_31 = lean_array_uget(x_2, x_4); -x_32 = l_Lean_Expr_fvarId_x21(x_31); -lean_dec_ref(x_31); -lean_inc_ref(x_8); -lean_inc(x_32); -x_44 = l_Lean_FVarId_getDecl___redArg(x_32, x_8, x_10, x_11, x_12); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_67; -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec_ref(x_44); -x_67 = lean_ctor_get(x_45, 3); -lean_inc_ref(x_67); -x_47 = x_67; -goto block_66; -block_66: -{ -lean_object* x_48; -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -x_48 = l_Lean_Meta_AbstractNestedProofs_visit(x_47, x_6, x_7, x_8, x_9, x_10, x_11, x_46); -if (lean_obj_tag(x_48) == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -lean_dec_ref(x_48); -x_51 = l_Lean_LocalDecl_setType(x_45, x_49); -x_52 = l_Lean_LocalDecl_value_x3f(x_51, x_1); -if (lean_obj_tag(x_52) == 0) -{ -x_33 = x_5; -x_34 = x_51; -x_35 = x_50; -goto block_43; -} -else -{ -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -lean_dec(x_52); -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -x_54 = l_Lean_Meta_AbstractNestedProofs_visit(x_53, x_6, x_7, x_8, x_9, x_10, x_11, x_50); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec_ref(x_54); -x_57 = l_Lean_LocalDecl_setValue(x_51, x_55); -x_33 = x_5; -x_34 = x_57; -x_35 = x_56; -goto block_43; -} -else -{ -uint8_t x_58; -lean_dec_ref(x_51); -lean_dec(x_32); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_5); -x_58 = !lean_is_exclusive(x_54); -if (x_58 == 0) -{ -return x_54; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_54, 0); -x_60 = lean_ctor_get(x_54, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_54); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -return x_61; -} -} -} -} -else -{ -uint8_t x_62; -lean_dec(x_45); -lean_dec(x_32); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_5); -x_62 = !lean_is_exclusive(x_48); -if (x_62 == 0) -{ -return x_48; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_48, 0); -x_64 = lean_ctor_get(x_48, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_48); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -return x_65; -} -} -} -} -else -{ -uint8_t x_68; -lean_dec(x_32); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_5); -x_68 = !lean_is_exclusive(x_44); -if (x_68 == 0) -{ -return x_44; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_44, 0); -x_70 = lean_ctor_get(x_44, 1); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_44); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} -} -block_43: -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_36 = lean_ctor_get(x_33, 0); -lean_inc_ref(x_36); -x_37 = lean_ctor_get(x_33, 1); -lean_inc_ref(x_37); -x_38 = lean_ctor_get(x_33, 2); -lean_inc(x_38); -lean_inc_ref(x_33); -x_39 = lean_local_ctx_find(x_33, x_32); -if (lean_obj_tag(x_39) == 0) -{ -lean_dec(x_38); -lean_dec_ref(x_37); -lean_dec_ref(x_36); -lean_dec_ref(x_34); -x_13 = x_33; -x_14 = x_35; -goto block_18; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_39); -lean_dec_ref(x_33); -x_40 = lean_ctor_get(x_34, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_34, 1); -lean_inc(x_41); -lean_inc_ref(x_34); -x_42 = l_Lean_PersistentHashMap_insert___at___Lean_LocalContext_mkLocalDecl_spec__0___redArg(x_36, x_41, x_34); -x_19 = x_35; -x_20 = x_37; -x_21 = x_42; -x_22 = x_34; -x_23 = x_38; -x_24 = x_40; -goto block_28; -} -} -} -block_18: -{ -size_t x_15; size_t x_16; lean_object* x_17; -x_15 = 1; -x_16 = lean_usize_add(x_4, x_15); -x_17 = l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__2_spec__2(x_1, x_2, x_3, x_16, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_14); -return x_17; -} -block_28: -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_22); -x_26 = l_Lean_PersistentArray_set___redArg(x_20, x_24, x_25); -lean_dec(x_24); -x_27 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_27, 0, x_21); -lean_ctor_set(x_27, 1, x_26); -lean_ctor_set(x_27, 2, x_23); -x_13 = x_27; -x_14 = x_19; -goto block_18; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_box(x_2); -x_10 = lean_apply_7(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_box(x_4); -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0___boxed), 8, 3); -lean_closure_set(x_12, 0, x_3); -lean_closure_set(x_12, 1, x_11); -lean_closure_set(x_12, 2, x_5); -x_13 = l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalContextImp___redArg(x_1, x_2, x_12, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_13) == 0) -{ -return x_13; -} -else -{ -uint8_t x_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -return x_13; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_13); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_12; +lean_object* x_11; +x_11 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_11; } } LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Expr_withAppAux___at___Lean_Meta_AbstractNestedProofs_visit_spec__5_spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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) { @@ -2418,65 +2431,65 @@ return x_9; LEAN_EXPORT lean_object* l_Lean_Meta_abstractProof___at___Lean_Meta_AbstractNestedProofs_visit_spec__9(lean_object* x_1, uint8_t x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_11; lean_object* x_12; +lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_inc_ref(x_1); x_11 = lean_alloc_closure((void*)(l_Lean_Meta_abstractProof___at___Lean_Meta_AbstractNestedProofs_visit_spec__9___lam__0___boxed), 8, 1); lean_closure_set(x_11, 0, x_1); +x_12 = 1; lean_inc(x_9); lean_inc_ref(x_8); lean_inc(x_7); lean_inc_ref(x_6); lean_inc(x_5); -x_12 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg(x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_12) == 0) +x_13 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg(x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -lean_dec_ref(x_12); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec_ref(x_13); lean_inc(x_9); lean_inc_ref(x_8); -x_15 = l_Lean_Core_betaReduce(x_13, x_8, x_9, x_14); -if (lean_obj_tag(x_15) == 0) +x_16 = l_Lean_Core_betaReduce(x_14, x_8, x_9, x_15); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -lean_dec_ref(x_15); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec_ref(x_16); lean_inc(x_9); lean_inc_ref(x_8); lean_inc(x_7); lean_inc_ref(x_6); -x_18 = l_Lean_Meta_zetaReduce(x_16, x_6, x_7, x_8, x_9, x_17); -if (lean_obj_tag(x_18) == 0) +x_19 = l_Lean_Meta_zetaReduce(x_17, x_6, x_7, x_8, x_9, x_18); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec_ref(x_18); -x_21 = lean_box(x_4); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec_ref(x_19); +x_22 = lean_box(x_4); lean_inc(x_9); lean_inc_ref(x_8); lean_inc(x_7); lean_inc_ref(x_6); -x_22 = lean_apply_8(x_3, x_19, x_21, x_5, x_6, x_7, x_8, x_9, x_20); -if (lean_obj_tag(x_22) == 0) +x_23 = lean_apply_8(x_3, x_20, x_22, x_5, x_6, x_7, x_8, x_9, x_21); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); -lean_dec_ref(x_22); -x_25 = 1; +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec_ref(x_23); x_26 = lean_box(0); -x_27 = l_Lean_Meta_mkAuxTheorem(x_23, x_1, x_25, x_26, x_2, x_6, x_7, x_8, x_9, x_24); +x_27 = l_Lean_Meta_mkAuxTheorem(x_24, x_1, x_12, x_26, x_2, x_6, x_7, x_8, x_9, x_25); return x_27; } else @@ -2486,7 +2499,7 @@ lean_dec_ref(x_8); lean_dec(x_7); lean_dec_ref(x_6); lean_dec_ref(x_1); -return x_22; +return x_23; } } else @@ -2498,7 +2511,7 @@ lean_dec_ref(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec_ref(x_1); -return x_18; +return x_19; } } else @@ -2510,7 +2523,7 @@ lean_dec_ref(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec_ref(x_1); -return x_15; +return x_16; } } else @@ -2522,7 +2535,7 @@ lean_dec_ref(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec_ref(x_1); -return x_12; +return x_13; } } } @@ -2553,7 +2566,7 @@ lean_inc_ref(x_8); lean_inc(x_7); lean_inc_ref(x_6); lean_inc(x_5); -x_17 = l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__2(x_1, x_2, x_15, x_16, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_17 = l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__1(x_1, x_2, x_15, x_16, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_13); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; @@ -2562,7 +2575,7 @@ lean_inc(x_18); x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec_ref(x_17); -x_20 = l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg(x_18, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_19); +x_20 = l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3___redArg(x_18, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_19); return x_20; } else @@ -2738,31 +2751,31 @@ x_116 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_____private_Lean_MetavarC lean_dec(x_115); if (lean_obj_tag(x_116) == 0) { -lean_object* x_117; lean_object* x_118; +lean_object* x_117; uint8_t x_118; lean_object* x_119; lean_free_object(x_97); lean_inc_ref(x_1); x_117 = lean_alloc_closure((void*)(l_Lean_Meta_AbstractNestedProofs_visit___lam__0___boxed), 8, 1); lean_closure_set(x_117, 0, x_1); +x_118 = 1; lean_inc(x_7); lean_inc_ref(x_6); lean_inc(x_5); lean_inc_ref(x_4); lean_inc(x_3); -x_118 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg(x_117, x_2, x_3, x_4, x_5, x_6, x_7, x_100); -if (lean_obj_tag(x_118) == 0) +x_119 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg(x_117, x_118, x_2, x_3, x_4, x_5, x_6, x_7, x_100); +if (lean_obj_tag(x_119) == 0) { -lean_object* x_119; uint8_t x_120; -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -x_120 = lean_unbox(x_119); -if (x_120 == 0) +lean_object* x_120; uint8_t x_121; +x_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +x_121 = lean_unbox(x_120); +if (x_121 == 0) { -lean_object* x_121; uint8_t x_122; lean_object* x_123; lean_object* x_124; -x_121 = lean_ctor_get(x_118, 1); -lean_inc(x_121); -lean_dec_ref(x_118); -x_122 = 1; -x_123 = lean_box(x_122); +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_119, 1); +lean_inc(x_122); +lean_dec_ref(x_119); +x_123 = lean_box(x_118); x_124 = lean_alloc_closure((void*)(l_Lean_Meta_AbstractNestedProofs_visit___lam__1___boxed), 10, 1); lean_closure_set(x_124, 0, x_123); switch (lean_obj_tag(x_1)) { @@ -2770,7 +2783,7 @@ case 5: { lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_dec_ref(x_124); -lean_dec(x_119); +lean_dec(x_120); x_125 = l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___closed__4; x_126 = l_Lean_Expr_getAppNumArgs(x_1); lean_inc(x_126); @@ -2780,7 +2793,7 @@ x_129 = lean_nat_sub(x_126, x_128); lean_dec(x_126); lean_inc(x_3); lean_inc_ref(x_1); -x_130 = l_Lean_Expr_withAppAux___at___Lean_Meta_AbstractNestedProofs_visit_spec__5(x_1, x_127, x_129, x_2, x_3, x_4, x_5, x_6, x_7, x_121); +x_130 = l_Lean_Expr_withAppAux___at___Lean_Meta_AbstractNestedProofs_visit_spec__5(x_1, x_127, x_129, x_2, x_3, x_4, x_5, x_6, x_7, x_122); lean_dec(x_129); x_92 = x_130; goto block_95; @@ -2788,47 +2801,47 @@ goto block_95; case 6: { lean_object* x_131; uint8_t x_132; lean_object* x_133; -lean_inc(x_119); +lean_inc(x_120); x_131 = lean_alloc_closure((void*)(l_Lean_Meta_AbstractNestedProofs_visit___lam__3___boxed), 11, 2); -lean_closure_set(x_131, 0, x_119); +lean_closure_set(x_131, 0, x_120); lean_closure_set(x_131, 1, x_124); -x_132 = lean_unbox(x_119); -lean_dec(x_119); +x_132 = lean_unbox(x_120); +lean_dec(x_120); lean_inc(x_3); lean_inc_ref(x_1); -x_133 = l_Lean_Meta_lambdaLetTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__7___redArg(x_1, x_131, x_132, x_122, x_2, x_3, x_4, x_5, x_6, x_7, x_121); +x_133 = l_Lean_Meta_lambdaLetTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__7___redArg(x_1, x_131, x_132, x_118, x_2, x_3, x_4, x_5, x_6, x_7, x_122); x_92 = x_133; goto block_95; } case 7: { lean_object* x_134; lean_object* x_135; uint8_t x_136; lean_object* x_137; -x_134 = lean_box(x_122); -lean_inc(x_119); +x_134 = lean_box(x_118); +lean_inc(x_120); x_135 = lean_alloc_closure((void*)(l_Lean_Meta_AbstractNestedProofs_visit___lam__5___boxed), 12, 3); -lean_closure_set(x_135, 0, x_119); +lean_closure_set(x_135, 0, x_120); lean_closure_set(x_135, 1, x_134); lean_closure_set(x_135, 2, x_124); -x_136 = lean_unbox(x_119); -lean_dec(x_119); +x_136 = lean_unbox(x_120); +lean_dec(x_120); lean_inc(x_3); lean_inc_ref(x_1); -x_137 = l_Lean_Meta_forallTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__8___redArg(x_1, x_135, x_136, x_2, x_3, x_4, x_5, x_6, x_7, x_121); +x_137 = l_Lean_Meta_forallTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__8___redArg(x_1, x_135, x_136, x_2, x_3, x_4, x_5, x_6, x_7, x_122); x_92 = x_137; goto block_95; } case 8: { lean_object* x_138; uint8_t x_139; lean_object* x_140; -lean_inc(x_119); +lean_inc(x_120); x_138 = lean_alloc_closure((void*)(l_Lean_Meta_AbstractNestedProofs_visit___lam__3___boxed), 11, 2); -lean_closure_set(x_138, 0, x_119); +lean_closure_set(x_138, 0, x_120); lean_closure_set(x_138, 1, x_124); -x_139 = lean_unbox(x_119); -lean_dec(x_119); +x_139 = lean_unbox(x_120); +lean_dec(x_120); lean_inc(x_3); lean_inc_ref(x_1); -x_140 = l_Lean_Meta_lambdaLetTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__7___redArg(x_1, x_138, x_139, x_122, x_2, x_3, x_4, x_5, x_6, x_7, x_121); +x_140 = l_Lean_Meta_lambdaLetTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__7___redArg(x_1, x_138, x_139, x_118, x_2, x_3, x_4, x_5, x_6, x_7, x_122); x_92 = x_140; goto block_95; } @@ -2836,14 +2849,14 @@ case 10: { lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_dec_ref(x_124); -lean_dec(x_119); +lean_dec(x_120); x_141 = lean_ctor_get(x_1, 0); lean_inc(x_141); x_142 = lean_ctor_get(x_1, 1); lean_inc_ref(x_142); lean_inc(x_3); lean_inc_ref(x_142); -x_143 = l_Lean_Meta_AbstractNestedProofs_visit(x_142, x_2, x_3, x_4, x_5, x_6, x_7, x_121); +x_143 = l_Lean_Meta_AbstractNestedProofs_visit(x_142, x_2, x_3, x_4, x_5, x_6, x_7, x_122); if (lean_obj_tag(x_143) == 0) { lean_object* x_144; lean_object* x_145; size_t x_146; size_t x_147; uint8_t x_148; @@ -2886,7 +2899,7 @@ case 11: { lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_dec_ref(x_124); -lean_dec(x_119); +lean_dec(x_120); x_150 = lean_ctor_get(x_1, 0); lean_inc(x_150); x_151 = lean_ctor_get(x_1, 1); @@ -2895,7 +2908,7 @@ x_152 = lean_ctor_get(x_1, 2); lean_inc_ref(x_152); lean_inc(x_3); lean_inc_ref(x_152); -x_153 = l_Lean_Meta_AbstractNestedProofs_visit(x_152, x_2, x_3, x_4, x_5, x_6, x_7, x_121); +x_153 = l_Lean_Meta_AbstractNestedProofs_visit(x_152, x_2, x_3, x_4, x_5, x_6, x_7, x_122); if (lean_obj_tag(x_153) == 0) { lean_object* x_154; lean_object* x_155; size_t x_156; size_t x_157; uint8_t x_158; @@ -2939,14 +2952,14 @@ goto block_95; default: { lean_dec_ref(x_124); -lean_dec(x_119); +lean_dec(x_120); lean_dec(x_7); lean_dec_ref(x_6); lean_dec(x_5); lean_dec_ref(x_4); lean_inc_ref(x_1); x_18 = x_1; -x_19 = x_121; +x_19 = x_122; goto block_91; } } @@ -2954,10 +2967,10 @@ goto block_91; else { lean_object* x_160; lean_object* x_161; lean_object* x_162; -lean_dec(x_119); -x_160 = lean_ctor_get(x_118, 1); +lean_dec(x_120); +x_160 = lean_ctor_get(x_119, 1); lean_inc(x_160); -lean_dec_ref(x_118); +lean_dec_ref(x_119); x_161 = lean_alloc_closure((void*)(l_Lean_Meta_AbstractNestedProofs_visit___boxed), 8, 0); lean_inc(x_3); lean_inc_ref(x_1); @@ -2975,19 +2988,19 @@ lean_dec(x_5); lean_dec_ref(x_4); lean_dec(x_3); lean_dec_ref(x_1); -x_163 = !lean_is_exclusive(x_118); +x_163 = !lean_is_exclusive(x_119); if (x_163 == 0) { -return x_118; +return x_119; } else { lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_164 = lean_ctor_get(x_118, 0); -x_165 = lean_ctor_get(x_118, 1); +x_164 = lean_ctor_get(x_119, 0); +x_165 = lean_ctor_get(x_119, 1); lean_inc(x_165); lean_inc(x_164); -lean_dec(x_118); +lean_dec(x_119); x_166 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_166, 0, x_164); lean_ctor_set(x_166, 1, x_165); @@ -3042,30 +3055,30 @@ x_185 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_____private_Lean_MetavarC lean_dec(x_184); if (lean_obj_tag(x_185) == 0) { -lean_object* x_186; lean_object* x_187; +lean_object* x_186; uint8_t x_187; lean_object* x_188; lean_inc_ref(x_1); x_186 = lean_alloc_closure((void*)(l_Lean_Meta_AbstractNestedProofs_visit___lam__0___boxed), 8, 1); lean_closure_set(x_186, 0, x_1); +x_187 = 1; lean_inc(x_7); lean_inc_ref(x_6); lean_inc(x_5); lean_inc_ref(x_4); lean_inc(x_3); -x_187 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg(x_186, x_2, x_3, x_4, x_5, x_6, x_7, x_169); -if (lean_obj_tag(x_187) == 0) +x_188 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg(x_186, x_187, x_2, x_3, x_4, x_5, x_6, x_7, x_169); +if (lean_obj_tag(x_188) == 0) { -lean_object* x_188; uint8_t x_189; -x_188 = lean_ctor_get(x_187, 0); -lean_inc(x_188); -x_189 = lean_unbox(x_188); -if (x_189 == 0) +lean_object* x_189; uint8_t x_190; +x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_189); +x_190 = lean_unbox(x_189); +if (x_190 == 0) { -lean_object* x_190; uint8_t x_191; lean_object* x_192; lean_object* x_193; -x_190 = lean_ctor_get(x_187, 1); -lean_inc(x_190); -lean_dec_ref(x_187); -x_191 = 1; -x_192 = lean_box(x_191); +lean_object* x_191; lean_object* x_192; lean_object* x_193; +x_191 = lean_ctor_get(x_188, 1); +lean_inc(x_191); +lean_dec_ref(x_188); +x_192 = lean_box(x_187); x_193 = lean_alloc_closure((void*)(l_Lean_Meta_AbstractNestedProofs_visit___lam__1___boxed), 10, 1); lean_closure_set(x_193, 0, x_192); switch (lean_obj_tag(x_1)) { @@ -3073,7 +3086,7 @@ case 5: { 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_dec_ref(x_193); -lean_dec(x_188); +lean_dec(x_189); x_194 = l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___closed__4; x_195 = l_Lean_Expr_getAppNumArgs(x_1); lean_inc(x_195); @@ -3083,7 +3096,7 @@ x_198 = lean_nat_sub(x_195, x_197); lean_dec(x_195); lean_inc(x_3); lean_inc_ref(x_1); -x_199 = l_Lean_Expr_withAppAux___at___Lean_Meta_AbstractNestedProofs_visit_spec__5(x_1, x_196, x_198, x_2, x_3, x_4, x_5, x_6, x_7, x_190); +x_199 = l_Lean_Expr_withAppAux___at___Lean_Meta_AbstractNestedProofs_visit_spec__5(x_1, x_196, x_198, x_2, x_3, x_4, x_5, x_6, x_7, x_191); lean_dec(x_198); x_92 = x_199; goto block_95; @@ -3091,47 +3104,47 @@ goto block_95; case 6: { lean_object* x_200; uint8_t x_201; lean_object* x_202; -lean_inc(x_188); +lean_inc(x_189); x_200 = lean_alloc_closure((void*)(l_Lean_Meta_AbstractNestedProofs_visit___lam__3___boxed), 11, 2); -lean_closure_set(x_200, 0, x_188); +lean_closure_set(x_200, 0, x_189); lean_closure_set(x_200, 1, x_193); -x_201 = lean_unbox(x_188); -lean_dec(x_188); +x_201 = lean_unbox(x_189); +lean_dec(x_189); lean_inc(x_3); lean_inc_ref(x_1); -x_202 = l_Lean_Meta_lambdaLetTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__7___redArg(x_1, x_200, x_201, x_191, x_2, x_3, x_4, x_5, x_6, x_7, x_190); +x_202 = l_Lean_Meta_lambdaLetTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__7___redArg(x_1, x_200, x_201, x_187, x_2, x_3, x_4, x_5, x_6, x_7, x_191); x_92 = x_202; goto block_95; } case 7: { lean_object* x_203; lean_object* x_204; uint8_t x_205; lean_object* x_206; -x_203 = lean_box(x_191); -lean_inc(x_188); +x_203 = lean_box(x_187); +lean_inc(x_189); x_204 = lean_alloc_closure((void*)(l_Lean_Meta_AbstractNestedProofs_visit___lam__5___boxed), 12, 3); -lean_closure_set(x_204, 0, x_188); +lean_closure_set(x_204, 0, x_189); lean_closure_set(x_204, 1, x_203); lean_closure_set(x_204, 2, x_193); -x_205 = lean_unbox(x_188); -lean_dec(x_188); +x_205 = lean_unbox(x_189); +lean_dec(x_189); lean_inc(x_3); lean_inc_ref(x_1); -x_206 = l_Lean_Meta_forallTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__8___redArg(x_1, x_204, x_205, x_2, x_3, x_4, x_5, x_6, x_7, x_190); +x_206 = l_Lean_Meta_forallTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__8___redArg(x_1, x_204, x_205, x_2, x_3, x_4, x_5, x_6, x_7, x_191); x_92 = x_206; goto block_95; } case 8: { lean_object* x_207; uint8_t x_208; lean_object* x_209; -lean_inc(x_188); +lean_inc(x_189); x_207 = lean_alloc_closure((void*)(l_Lean_Meta_AbstractNestedProofs_visit___lam__3___boxed), 11, 2); -lean_closure_set(x_207, 0, x_188); +lean_closure_set(x_207, 0, x_189); lean_closure_set(x_207, 1, x_193); -x_208 = lean_unbox(x_188); -lean_dec(x_188); +x_208 = lean_unbox(x_189); +lean_dec(x_189); lean_inc(x_3); lean_inc_ref(x_1); -x_209 = l_Lean_Meta_lambdaLetTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__7___redArg(x_1, x_207, x_208, x_191, x_2, x_3, x_4, x_5, x_6, x_7, x_190); +x_209 = l_Lean_Meta_lambdaLetTelescope___at___Lean_Meta_AbstractNestedProofs_visit_spec__7___redArg(x_1, x_207, x_208, x_187, x_2, x_3, x_4, x_5, x_6, x_7, x_191); x_92 = x_209; goto block_95; } @@ -3139,14 +3152,14 @@ case 10: { lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_dec_ref(x_193); -lean_dec(x_188); +lean_dec(x_189); x_210 = lean_ctor_get(x_1, 0); lean_inc(x_210); x_211 = lean_ctor_get(x_1, 1); lean_inc_ref(x_211); lean_inc(x_3); lean_inc_ref(x_211); -x_212 = l_Lean_Meta_AbstractNestedProofs_visit(x_211, x_2, x_3, x_4, x_5, x_6, x_7, x_190); +x_212 = l_Lean_Meta_AbstractNestedProofs_visit(x_211, x_2, x_3, x_4, x_5, x_6, x_7, x_191); if (lean_obj_tag(x_212) == 0) { lean_object* x_213; lean_object* x_214; size_t x_215; size_t x_216; uint8_t x_217; @@ -3189,7 +3202,7 @@ case 11: { lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_dec_ref(x_193); -lean_dec(x_188); +lean_dec(x_189); x_219 = lean_ctor_get(x_1, 0); lean_inc(x_219); x_220 = lean_ctor_get(x_1, 1); @@ -3198,7 +3211,7 @@ x_221 = lean_ctor_get(x_1, 2); lean_inc_ref(x_221); lean_inc(x_3); lean_inc_ref(x_221); -x_222 = l_Lean_Meta_AbstractNestedProofs_visit(x_221, x_2, x_3, x_4, x_5, x_6, x_7, x_190); +x_222 = l_Lean_Meta_AbstractNestedProofs_visit(x_221, x_2, x_3, x_4, x_5, x_6, x_7, x_191); if (lean_obj_tag(x_222) == 0) { lean_object* x_223; lean_object* x_224; size_t x_225; size_t x_226; uint8_t x_227; @@ -3242,14 +3255,14 @@ goto block_95; default: { lean_dec_ref(x_193); -lean_dec(x_188); +lean_dec(x_189); lean_dec(x_7); lean_dec_ref(x_6); lean_dec(x_5); lean_dec_ref(x_4); lean_inc_ref(x_1); x_18 = x_1; -x_19 = x_190; +x_19 = x_191; goto block_91; } } @@ -3257,10 +3270,10 @@ goto block_91; else { lean_object* x_229; lean_object* x_230; lean_object* x_231; -lean_dec(x_188); -x_229 = lean_ctor_get(x_187, 1); +lean_dec(x_189); +x_229 = lean_ctor_get(x_188, 1); lean_inc(x_229); -lean_dec_ref(x_187); +lean_dec_ref(x_188); x_230 = lean_alloc_closure((void*)(l_Lean_Meta_AbstractNestedProofs_visit___boxed), 8, 0); lean_inc(x_3); lean_inc_ref(x_1); @@ -3278,16 +3291,16 @@ lean_dec(x_5); lean_dec_ref(x_4); lean_dec(x_3); lean_dec_ref(x_1); -x_232 = lean_ctor_get(x_187, 0); +x_232 = lean_ctor_get(x_188, 0); lean_inc(x_232); -x_233 = lean_ctor_get(x_187, 1); +x_233 = lean_ctor_get(x_188, 1); lean_inc(x_233); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_234 = x_187; +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + x_234 = x_188; } else { - lean_dec_ref(x_187); + lean_dec_ref(x_188); x_234 = lean_box(0); } if (lean_is_scalar(x_234)) { @@ -3569,90 +3582,92 @@ x_14 = l_Array_mapMUnsafe_map___at___Lean_Meta_AbstractNestedProofs_visit_spec__ return x_14; } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___lam__0___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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__1_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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: +{ +uint8_t x_13; size_t x_14; size_t x_15; uint8_t x_16; lean_object* x_17; +x_13 = lean_unbox(x_1); +x_14 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_15 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_16 = lean_unbox(x_6); +x_17 = l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__1_spec__1(x_13, x_2, x_14, x_15, x_5, x_16, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec_ref(x_2); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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: +{ +uint8_t x_13; size_t x_14; size_t x_15; uint8_t x_16; lean_object* x_17; +x_13 = lean_unbox(x_1); +x_14 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_15 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_16 = lean_unbox(x_6); +x_17 = l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__1(x_13, x_2, x_14, x_15, x_5, x_16, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec_ref(x_2); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3___redArg___lam__0___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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_2); +x_10 = l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3___redArg___lam__0(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_4); +x_12 = l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3___redArg(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_5); +x_13 = l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__3(x_1, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { uint8_t x_8; lean_object* x_9; x_8 = lean_unbox(x_2); -x_9 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___lam__0(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +x_9 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0(x_1, x_8, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___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_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_9; lean_object* x_10; -x_9 = lean_unbox(x_2); -x_10 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_3); -x_11 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1(x_1, x_2, x_10, x_4, x_5, x_6, x_7, x_8, x_9); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__2_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -uint8_t x_13; size_t x_14; size_t x_15; uint8_t x_16; lean_object* x_17; -x_13 = lean_unbox(x_1); -x_14 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_15 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_16 = lean_unbox(x_6); -x_17 = l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__2_spec__2(x_13, x_2, x_14, x_15, x_5, x_16, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec_ref(x_2); -return x_17; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -uint8_t x_13; size_t x_14; size_t x_15; uint8_t x_16; lean_object* x_17; -x_13 = lean_unbox(x_1); -x_14 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_15 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_16 = lean_unbox(x_6); -x_17 = l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_AbstractNestedProofs_visit_spec__2(x_13, x_2, x_14, x_15, x_5, x_16, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec_ref(x_2); -return x_17; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0___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) { -_start: -{ -uint8_t x_9; lean_object* x_10; -x_9 = lean_unbox(x_2); -x_10 = l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___lam__0(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_4); -x_12 = l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +uint8_t x_10; uint8_t x_11; lean_object* x_12; +x_10 = lean_unbox(x_2); +x_11 = lean_unbox(x_3); +x_12 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg(x_1, x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_9); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -uint8_t x_12; lean_object* x_13; -x_12 = lean_unbox(x_5); -x_13 = l_Lean_Meta_withLCtx___at___Lean_Meta_AbstractNestedProofs_visit_spec__4(x_1, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10, x_11); +uint8_t x_11; uint8_t x_12; lean_object* x_13; +x_11 = lean_unbox(x_3); +x_12 = lean_unbox(x_4); +x_13 = l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); return x_13; } } @@ -4032,22 +4047,22 @@ l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___closed__3 = _init_l_Lean_Me lean_mark_persistent(l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___closed__3); l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___closed__4 = _init_l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___closed__4(); lean_mark_persistent(l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___closed__4); -l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__0 = _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__0(); -lean_mark_persistent(l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__0); -l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__1 = _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__1(); -lean_mark_persistent(l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__1); -l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__2 = _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__2(); -lean_mark_persistent(l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__2); -l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__3 = _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__3(); -lean_mark_persistent(l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__3); -l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__4 = _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__4(); -lean_mark_persistent(l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__4); -l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__5 = _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__5(); -lean_mark_persistent(l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__5); -l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__6 = _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__6(); -lean_mark_persistent(l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__6); -l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__7 = _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__7(); -lean_mark_persistent(l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__1___redArg___closed__7); +l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__0 = _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__0(); +lean_mark_persistent(l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__0); +l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__1 = _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__1(); +lean_mark_persistent(l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__1); +l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__2 = _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__2(); +lean_mark_persistent(l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__2); +l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__3 = _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__3(); +lean_mark_persistent(l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__3); +l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__4 = _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__4(); +lean_mark_persistent(l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__4); +l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__5 = _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__5(); +lean_mark_persistent(l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__5); +l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__6 = _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__6(); +lean_mark_persistent(l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__6); +l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__7 = _init_l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__7(); +lean_mark_persistent(l_Lean_withoutExporting___at___Lean_Meta_AbstractNestedProofs_visit_spec__4___redArg___closed__7); l_Lean_Meta_abstractNestedProofs___closed__0 = _init_l_Lean_Meta_abstractNestedProofs___closed__0(); lean_mark_persistent(l_Lean_Meta_abstractNestedProofs___closed__0); l_Lean_Meta_abstractNestedProofs___closed__1 = _init_l_Lean_Meta_abstractNestedProofs___closed__1(); diff --git a/stage0/stdlib/Lean/Meta/Eqns.c b/stage0/stdlib/Lean/Meta/Eqns.c index bbf8534f77..89c6f99ecd 100644 --- a/stage0/stdlib/Lean/Meta/Eqns.c +++ b/stage0/stdlib/Lean/Meta/Eqns.c @@ -175,7 +175,7 @@ static lean_object* l_Lean_Meta_initFn___lam__1___closed__22____x40_Lean_Meta_Eq static lean_object* l_Lean_Meta_initFn___closed__1____x40_Lean_Meta_Eqns___hyg_44_; static lean_object* l_Lean_Meta_generateEagerEqns___closed__1; static lean_object* l_Lean_Meta_initFn___closed__3____x40_Lean_Meta_Eqns___hyg_44_; -lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_registerGetEqnsFn___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Eqns_0__Lean_Meta_alreadyGenerated_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_task_get_own(lean_object*); @@ -5516,7 +5516,7 @@ x_8 = lean_st_ref_get(x_6, x_7); x_9 = !lean_is_exclusive(x_8); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; x_10 = lean_ctor_get(x_8, 0); x_11 = lean_ctor_get(x_8, 1); x_12 = lean_ctor_get(x_10, 0); @@ -5531,146 +5531,147 @@ x_16 = lean_alloc_closure((void*)(l_Lean_Meta_getUnfoldEqnFor_x3f___lam__0___box lean_closure_set(x_16, 0, x_14); lean_closure_set(x_16, 1, x_1); lean_closure_set(x_16, 2, x_15); +x_17 = 1; lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc_ref(x_3); -x_17 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_16, x_3, x_4, x_5, x_6, x_11); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); +x_18 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_16, x_17, x_3, x_4, x_5, x_6, x_11); if (lean_obj_tag(x_18) == 0) { +lean_object* x_19; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) +{ lean_dec(x_14); lean_free_object(x_8); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -return x_17; +return x_18; } else { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 0); +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); -lean_dec(x_18); -x_21 = lean_name_eq(x_20, x_14); -if (x_21 == 0) -{ -uint8_t x_22; -x_22 = !lean_is_exclusive(x_17); +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_name_eq(x_21, x_14); if (x_22 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_23 = lean_ctor_get(x_17, 1); -lean_dec(x_23); -x_24 = lean_ctor_get(x_17, 0); +uint8_t x_23; +x_23 = !lean_is_exclusive(x_18); +if (x_23 == 0) +{ +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; uint8_t x_34; +x_24 = lean_ctor_get(x_18, 1); lean_dec(x_24); -x_25 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__1; -x_26 = l_Lean_MessageData_ofName(x_20); -lean_ctor_set_tag(x_17, 7); -lean_ctor_set(x_17, 1, x_26); -lean_ctor_set(x_17, 0, x_25); -x_27 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__3; +x_25 = lean_ctor_get(x_18, 0); +lean_dec(x_25); +x_26 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__1; +x_27 = l_Lean_MessageData_ofName(x_21); +lean_ctor_set_tag(x_18, 7); +lean_ctor_set(x_18, 1, x_27); +lean_ctor_set(x_18, 0, x_26); +x_28 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__3; lean_ctor_set_tag(x_8, 7); -lean_ctor_set(x_8, 1, x_27); -lean_ctor_set(x_8, 0, x_17); -x_28 = l_Lean_MessageData_ofName(x_14); -x_29 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_29, 0, x_8); -lean_ctor_set(x_29, 1, x_28); -x_30 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__5; -x_31 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -x_32 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0_spec__0___redArg(x_31, x_3, x_4, x_5, x_6, x_19); +lean_ctor_set(x_8, 1, x_28); +lean_ctor_set(x_8, 0, x_18); +x_29 = l_Lean_MessageData_ofName(x_14); +x_30 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_30, 0, x_8); +lean_ctor_set(x_30, 1, x_29); +x_31 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__5; +x_32 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +x_33 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0_spec__0___redArg(x_32, x_3, x_4, x_5, x_6, x_20); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) { -return x_32; +return x_33; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_32, 0); -x_35 = lean_ctor_get(x_32, 1); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_32); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -return x_36; +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } else { -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_dec(x_17); -x_37 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__1; -x_38 = l_Lean_MessageData_ofName(x_20); -x_39 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -x_40 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__3; +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_dec(x_18); +x_38 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__1; +x_39 = l_Lean_MessageData_ofName(x_21); +x_40 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +x_41 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__3; lean_ctor_set_tag(x_8, 7); -lean_ctor_set(x_8, 1, x_40); -lean_ctor_set(x_8, 0, x_39); -x_41 = l_Lean_MessageData_ofName(x_14); -x_42 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_42, 0, x_8); -lean_ctor_set(x_42, 1, x_41); -x_43 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__5; -x_44 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -x_45 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0_spec__0___redArg(x_44, x_3, x_4, x_5, x_6, x_19); +lean_ctor_set(x_8, 1, x_41); +lean_ctor_set(x_8, 0, x_40); +x_42 = l_Lean_MessageData_ofName(x_14); +x_43 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_43, 0, x_8); +lean_ctor_set(x_43, 1, x_42); +x_44 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__5; +x_45 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +x_46 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0_spec__0___redArg(x_45, x_3, x_4, x_5, x_6, x_20); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); +x_47 = lean_ctor_get(x_46, 0); lean_inc(x_47); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_48 = x_45; +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_49 = x_46; } else { - lean_dec_ref(x_45); - x_48 = lean_box(0); + lean_dec_ref(x_46); + x_49 = lean_box(0); } -if (lean_is_scalar(x_48)) { - x_49 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(1, 2, 0); } else { - x_49 = x_48; + x_50 = x_49; } -lean_ctor_set(x_49, 0, x_46); -lean_ctor_set(x_49, 1, x_47); -return x_49; +lean_ctor_set(x_50, 0, x_47); +lean_ctor_set(x_50, 1, x_48); +return x_50; } } else { +lean_dec(x_21); lean_dec(x_20); -lean_dec(x_19); lean_dec(x_14); lean_free_object(x_8); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -return x_17; +return x_18; } } } @@ -5682,137 +5683,138 @@ lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -return x_17; +return x_18; } } else { -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; -x_50 = lean_ctor_get(x_8, 0); -x_51 = lean_ctor_get(x_8, 1); +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; uint8_t x_58; lean_object* x_59; +x_51 = lean_ctor_get(x_8, 0); +x_52 = lean_ctor_get(x_8, 1); +lean_inc(x_52); lean_inc(x_51); -lean_inc(x_50); lean_dec(x_8); -x_52 = lean_ctor_get(x_50, 0); -lean_inc_ref(x_52); -lean_dec(x_50); -x_53 = l_Lean_Meta_unfoldThmSuffix___closed__0; +x_53 = lean_ctor_get(x_51, 0); +lean_inc_ref(x_53); +lean_dec(x_51); +x_54 = l_Lean_Meta_unfoldThmSuffix___closed__0; lean_inc(x_1); -x_54 = l_Lean_Meta_mkEqLikeNameFor(x_52, x_1, x_53); -x_55 = lean_box(x_2); -lean_inc(x_54); -x_56 = lean_alloc_closure((void*)(l_Lean_Meta_getUnfoldEqnFor_x3f___lam__0___boxed), 8, 3); -lean_closure_set(x_56, 0, x_54); -lean_closure_set(x_56, 1, x_1); -lean_closure_set(x_56, 2, x_55); +x_55 = l_Lean_Meta_mkEqLikeNameFor(x_53, x_1, x_54); +x_56 = lean_box(x_2); +lean_inc(x_55); +x_57 = lean_alloc_closure((void*)(l_Lean_Meta_getUnfoldEqnFor_x3f___lam__0___boxed), 8, 3); +lean_closure_set(x_57, 0, x_55); +lean_closure_set(x_57, 1, x_1); +lean_closure_set(x_57, 2, x_56); +x_58 = 1; lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc_ref(x_3); -x_57 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_56, x_3, x_4, x_5, x_6, x_51); -if (lean_obj_tag(x_57) == 0) +x_59 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_57, x_58, x_3, x_4, x_5, x_6, x_52); +if (lean_obj_tag(x_59) == 0) { -lean_object* x_58; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -if (lean_obj_tag(x_58) == 0) +lean_object* x_60; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +if (lean_obj_tag(x_60) == 0) { -lean_dec(x_54); +lean_dec(x_55); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -return x_57; +return x_59; } else { -lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 0); -lean_inc(x_60); -lean_dec(x_58); -x_61 = lean_name_eq(x_60, x_54); -if (x_61 == 0) +lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 0); +lean_inc(x_62); +lean_dec(x_60); +x_63 = lean_name_eq(x_62, x_55); +if (x_63 == 0) { -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; -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_62 = x_57; +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; +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_64 = x_59; } else { - lean_dec_ref(x_57); - x_62 = lean_box(0); + lean_dec_ref(x_59); + x_64 = lean_box(0); } -x_63 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__1; -x_64 = l_Lean_MessageData_ofName(x_60); -if (lean_is_scalar(x_62)) { - x_65 = lean_alloc_ctor(7, 2, 0); +x_65 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__1; +x_66 = l_Lean_MessageData_ofName(x_62); +if (lean_is_scalar(x_64)) { + x_67 = lean_alloc_ctor(7, 2, 0); } else { - x_65 = x_62; - lean_ctor_set_tag(x_65, 7); + x_67 = x_64; + lean_ctor_set_tag(x_67, 7); } -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -x_66 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__3; -x_67 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_67, 0, x_65); lean_ctor_set(x_67, 1, x_66); -x_68 = l_Lean_MessageData_ofName(x_54); +x_68 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__3; x_69 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_69, 0, x_67); lean_ctor_set(x_69, 1, x_68); -x_70 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__5; +x_70 = l_Lean_MessageData_ofName(x_55); x_71 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_71, 0, x_69); lean_ctor_set(x_71, 1, x_70); -x_72 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0_spec__0___redArg(x_71, x_3, x_4, x_5, x_6, x_59); +x_72 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__5; +x_73 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +x_74 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0_spec__0___redArg(x_73, x_3, x_4, x_5, x_6, x_61); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_75 = x_72; +x_75 = lean_ctor_get(x_74, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_74, 1); +lean_inc(x_76); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_77 = x_74; } else { - lean_dec_ref(x_72); - x_75 = lean_box(0); + lean_dec_ref(x_74); + x_77 = lean_box(0); } -if (lean_is_scalar(x_75)) { - x_76 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_77)) { + x_78 = lean_alloc_ctor(1, 2, 0); } else { - x_76 = x_75; + x_78 = x_77; } -lean_ctor_set(x_76, 0, x_73); -lean_ctor_set(x_76, 1, x_74); -return x_76; +lean_ctor_set(x_78, 0, x_75); +lean_ctor_set(x_78, 1, x_76); +return x_78; } else { -lean_dec(x_60); -lean_dec(x_59); -lean_dec(x_54); +lean_dec(x_62); +lean_dec(x_61); +lean_dec(x_55); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -return x_57; +return x_59; } } } else { -lean_dec(x_54); +lean_dec(x_55); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -return x_57; +return x_59; } } } diff --git a/stage0/stdlib/Lean/Meta/LetToHave.c b/stage0/stdlib/Lean/Meta/LetToHave.c index 0ed4fa73cd..68aa7830db 100644 --- a/stage0/stdlib/Lean/Meta/LetToHave.c +++ b/stage0/stdlib/Lean/Meta/LetToHave.c @@ -225,7 +225,7 @@ static lean_object* l_Lean_Meta_LetToHave_instInhabitedResult___closed__0; lean_object* l_Lean_MessageData_ofFormat(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_findCacheNoBVars_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitProj___closed__4; -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at_____private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitDepExpr_spec__3_spec__3___closed__3; static uint64_t l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_main___lam__4___closed__10; lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Util_Trace_0__Lean_addTraceNode___at___Lean_withTraceNode___at___Lean_Core_wrapAsyncAsSnapshot_spec__18_spec__19_spec__19(size_t, size_t, lean_object*); @@ -276,6 +276,7 @@ static lean_object* l_Lean_Meta_letToHave___closed__0; static lean_object* l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitLambdaLet_finalize___closed__10; static lean_object* l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitLambdaLet_go___lam__0___closed__0; lean_object* l_Lean_Expr_letE___override(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_____private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitDepExpr_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); @@ -296,6 +297,7 @@ static lean_object* l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at_____ uint8_t l_Lean_LocalDecl_isLet(lean_object*, uint8_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitLambdaLet_go(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_Std_DHashMap_Internal_AssocList_replace___at_____private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit_spec__5___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_____private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visit_spec__0___redArg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_lower_loose_bvars(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forM___at_____private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_checkMVar_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -305,7 +307,7 @@ static lean_object* l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visit LEAN_EXPORT lean_object* l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitDepExpr_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectFVars_main(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at_____private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitLambdaLet_go_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_findCacheNoBVars_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at_____private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitLambdaLet_go_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -15913,384 +15915,393 @@ lean_ctor_set(x_5, 5, x_1); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(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_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_7 = lean_st_ref_get(x_5, x_6); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_8, 0); -lean_inc_ref(x_9); -lean_dec(x_8); -x_10 = lean_ctor_get(x_7, 1); +if (x_2 == 0) +{ +lean_object* x_8; +x_8 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_9 = lean_st_ref_get(x_6, x_7); +x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -lean_dec_ref(x_7); -x_11 = lean_ctor_get_uint8(x_9, sizeof(void*)*8); +x_11 = lean_ctor_get(x_10, 0); +lean_inc_ref(x_11); +lean_dec(x_10); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); lean_dec_ref(x_9); -x_12 = lean_st_ref_take(x_5, x_10); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec_ref(x_12); -x_15 = !lean_is_exclusive(x_13); -if (x_15 == 0) +x_13 = lean_ctor_get_uint8(x_11, sizeof(void*)*8); +lean_dec_ref(x_11); +x_14 = lean_st_ref_take(x_6, x_12); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec_ref(x_14); +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) { -lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_16 = lean_ctor_get(x_13, 0); -x_17 = lean_ctor_get(x_13, 5); -lean_dec(x_17); -x_18 = 0; -x_19 = l_Lean_Environment_setExporting(x_16, x_18); -x_20 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__2; -lean_ctor_set(x_13, 5, x_20); -lean_ctor_set(x_13, 0, x_19); -x_21 = lean_st_ref_set(x_5, x_13, x_14); -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec_ref(x_21); -x_23 = lean_st_ref_take(x_3, x_22); -x_24 = lean_ctor_get(x_23, 0); +lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_18 = lean_ctor_get(x_15, 0); +x_19 = lean_ctor_get(x_15, 5); +lean_dec(x_19); +x_20 = 0; +x_21 = l_Lean_Environment_setExporting(x_18, x_20); +x_22 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__2; +lean_ctor_set(x_15, 5, x_22); +lean_ctor_set(x_15, 0, x_21); +x_23 = lean_st_ref_set(x_6, x_15, x_16); +x_24 = lean_ctor_get(x_23, 1); lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); lean_dec_ref(x_23); -x_26 = !lean_is_exclusive(x_24); -if (x_26 == 0) +x_25 = lean_st_ref_take(x_4, x_24); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec_ref(x_25); +x_28 = !lean_is_exclusive(x_26); +if (x_28 == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_27 = lean_ctor_get(x_24, 1); -lean_dec(x_27); -x_28 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__7; -lean_ctor_set(x_24, 1, x_28); -x_29 = lean_st_ref_set(x_3, x_24, x_25); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec_ref(x_29); -lean_inc(x_5); -lean_inc(x_3); -x_31 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_30); -if (lean_obj_tag(x_31) == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_32 = lean_ctor_get(x_31, 0); +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_29 = lean_ctor_get(x_26, 1); +lean_dec(x_29); +x_30 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__7; +lean_ctor_set(x_26, 1, x_30); +x_31 = lean_st_ref_set(x_4, x_26, x_27); +x_32 = lean_ctor_get(x_31, 1); lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); lean_dec_ref(x_31); -lean_inc(x_32); -x_34 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_34, 0, x_32); -x_35 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_5, x_11, x_20, x_3, x_28, x_34, x_33); -lean_dec_ref(x_34); -lean_dec(x_3); -lean_dec(x_5); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) +lean_inc(x_6); +lean_inc(x_4); +x_33 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_32); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_37; -x_37 = lean_ctor_get(x_35, 0); -lean_dec(x_37); -lean_ctor_set(x_35, 0, x_32); -return x_35; +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec_ref(x_33); +lean_inc(x_34); +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_34); +x_37 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_6, x_13, x_22, x_4, x_30, x_36, x_35); +lean_dec_ref(x_36); +lean_dec(x_4); +lean_dec(x_6); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_37, 0); +lean_dec(x_39); +lean_ctor_set(x_37, 0, x_34); +return x_37; } else { -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_dec(x_35); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_32); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_40 = lean_ctor_get(x_31, 0); +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 1); lean_inc(x_40); -x_41 = lean_ctor_get(x_31, 1); -lean_inc(x_41); -lean_dec_ref(x_31); -x_42 = lean_box(0); -x_43 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_5, x_11, x_20, x_3, x_28, x_42, x_41); -lean_dec(x_3); -lean_dec(x_5); -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) +lean_dec(x_37); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_34); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +else { -lean_object* x_45; -x_45 = lean_ctor_get(x_43, 0); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_42 = lean_ctor_get(x_33, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_33, 1); +lean_inc(x_43); +lean_dec_ref(x_33); +x_44 = lean_box(0); +x_45 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_6, x_13, x_22, x_4, x_30, x_44, x_43); +lean_dec(x_4); +lean_dec(x_6); +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +lean_object* x_47; +x_47 = lean_ctor_get(x_45, 0); +lean_dec(x_47); +lean_ctor_set_tag(x_45, 1); +lean_ctor_set(x_45, 0, x_42); +return x_45; +} +else +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); lean_dec(x_45); -lean_ctor_set_tag(x_43, 1); -lean_ctor_set(x_43, 0, x_40); -return x_43; -} -else -{ -lean_object* x_46; lean_object* x_47; -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); -lean_dec(x_43); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_40); -lean_ctor_set(x_47, 1, x_46); -return x_47; +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_42); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } } else { -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; -x_48 = lean_ctor_get(x_24, 0); -x_49 = lean_ctor_get(x_24, 2); -x_50 = lean_ctor_get(x_24, 3); -x_51 = lean_ctor_get(x_24, 4); +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; +x_50 = lean_ctor_get(x_26, 0); +x_51 = lean_ctor_get(x_26, 2); +x_52 = lean_ctor_get(x_26, 3); +x_53 = lean_ctor_get(x_26, 4); +lean_inc(x_53); +lean_inc(x_52); lean_inc(x_51); lean_inc(x_50); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_24); -x_52 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__7; -x_53 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_53, 0, x_48); -lean_ctor_set(x_53, 1, x_52); -lean_ctor_set(x_53, 2, x_49); -lean_ctor_set(x_53, 3, x_50); -lean_ctor_set(x_53, 4, x_51); -x_54 = lean_st_ref_set(x_3, x_53, x_25); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec_ref(x_54); -lean_inc(x_5); -lean_inc(x_3); -x_56 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_55); -if (lean_obj_tag(x_56) == 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 = lean_ctor_get(x_56, 0); +lean_dec(x_26); +x_54 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__7; +x_55 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_55, 0, x_50); +lean_ctor_set(x_55, 1, x_54); +lean_ctor_set(x_55, 2, x_51); +lean_ctor_set(x_55, 3, x_52); +lean_ctor_set(x_55, 4, x_53); +x_56 = lean_st_ref_set(x_4, x_55, x_27); +x_57 = lean_ctor_get(x_56, 1); lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); lean_dec_ref(x_56); -lean_inc(x_57); -x_59 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_59, 0, x_57); -x_60 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_5, x_11, x_20, x_3, x_52, x_59, x_58); -lean_dec_ref(x_59); -lean_dec(x_3); -lean_dec(x_5); -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_62 = x_60; +lean_inc(x_6); +lean_inc(x_4); +x_58 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_57); +if (lean_obj_tag(x_58) == 0) +{ +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; +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec_ref(x_58); +lean_inc(x_59); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_59); +x_62 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_6, x_13, x_22, x_4, x_54, x_61, x_60); +lean_dec_ref(x_61); +lean_dec(x_4); +lean_dec(x_6); +x_63 = lean_ctor_get(x_62, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_64 = x_62; } else { - lean_dec_ref(x_60); - x_62 = lean_box(0); + lean_dec_ref(x_62); + x_64 = lean_box(0); } -if (lean_is_scalar(x_62)) { - x_63 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_64)) { + x_65 = lean_alloc_ctor(0, 2, 0); } else { - x_63 = x_62; + x_65 = x_64; } -lean_ctor_set(x_63, 0, x_57); -lean_ctor_set(x_63, 1, x_61); -return x_63; +lean_ctor_set(x_65, 0, x_59); +lean_ctor_set(x_65, 1, x_63); +return x_65; } 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; -x_64 = lean_ctor_get(x_56, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_56, 1); -lean_inc(x_65); -lean_dec_ref(x_56); -x_66 = lean_box(0); -x_67 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_5, x_11, x_20, x_3, x_52, x_66, x_65); -lean_dec(x_3); -lean_dec(x_5); -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_69 = x_67; +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_66 = lean_ctor_get(x_58, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_58, 1); +lean_inc(x_67); +lean_dec_ref(x_58); +x_68 = lean_box(0); +x_69 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_6, x_13, x_22, x_4, x_54, x_68, x_67); +lean_dec(x_4); +lean_dec(x_6); +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_71 = x_69; } else { - lean_dec_ref(x_67); - x_69 = lean_box(0); + lean_dec_ref(x_69); + x_71 = lean_box(0); } -if (lean_is_scalar(x_69)) { - x_70 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(1, 2, 0); } else { - x_70 = x_69; - lean_ctor_set_tag(x_70, 1); + x_72 = x_71; + lean_ctor_set_tag(x_72, 1); } -lean_ctor_set(x_70, 0, x_64); -lean_ctor_set(x_70, 1, x_68); -return x_70; +lean_ctor_set(x_72, 0, x_66); +lean_ctor_set(x_72, 1, x_70); +return x_72; } } } else { -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; uint8_t x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_71 = lean_ctor_get(x_13, 0); -x_72 = lean_ctor_get(x_13, 1); -x_73 = lean_ctor_get(x_13, 2); -x_74 = lean_ctor_get(x_13, 3); -x_75 = lean_ctor_get(x_13, 4); -x_76 = lean_ctor_get(x_13, 6); -x_77 = lean_ctor_get(x_13, 7); -x_78 = lean_ctor_get(x_13, 8); +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; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_73 = lean_ctor_get(x_15, 0); +x_74 = lean_ctor_get(x_15, 1); +x_75 = lean_ctor_get(x_15, 2); +x_76 = lean_ctor_get(x_15, 3); +x_77 = lean_ctor_get(x_15, 4); +x_78 = lean_ctor_get(x_15, 6); +x_79 = lean_ctor_get(x_15, 7); +x_80 = lean_ctor_get(x_15, 8); +lean_inc(x_80); +lean_inc(x_79); lean_inc(x_78); lean_inc(x_77); lean_inc(x_76); lean_inc(x_75); lean_inc(x_74); lean_inc(x_73); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_13); -x_79 = 0; -x_80 = l_Lean_Environment_setExporting(x_71, x_79); -x_81 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__2; -x_82 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_72); -lean_ctor_set(x_82, 2, x_73); -lean_ctor_set(x_82, 3, x_74); -lean_ctor_set(x_82, 4, x_75); -lean_ctor_set(x_82, 5, x_81); -lean_ctor_set(x_82, 6, x_76); -lean_ctor_set(x_82, 7, x_77); -lean_ctor_set(x_82, 8, x_78); -x_83 = lean_st_ref_set(x_5, x_82, x_14); -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -lean_dec_ref(x_83); -x_85 = lean_st_ref_take(x_3, x_84); -x_86 = lean_ctor_get(x_85, 0); +lean_dec(x_15); +x_81 = 0; +x_82 = l_Lean_Environment_setExporting(x_73, x_81); +x_83 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__2; +x_84 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_74); +lean_ctor_set(x_84, 2, x_75); +lean_ctor_set(x_84, 3, x_76); +lean_ctor_set(x_84, 4, x_77); +lean_ctor_set(x_84, 5, x_83); +lean_ctor_set(x_84, 6, x_78); +lean_ctor_set(x_84, 7, x_79); +lean_ctor_set(x_84, 8, x_80); +x_85 = lean_st_ref_set(x_6, x_84, x_16); +x_86 = lean_ctor_get(x_85, 1); lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); lean_dec_ref(x_85); -x_88 = lean_ctor_get(x_86, 0); -lean_inc_ref(x_88); -x_89 = lean_ctor_get(x_86, 2); +x_87 = lean_st_ref_take(x_4, x_86); +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); lean_inc(x_89); -x_90 = lean_ctor_get(x_86, 3); +lean_dec_ref(x_87); +x_90 = lean_ctor_get(x_88, 0); lean_inc_ref(x_90); -x_91 = lean_ctor_get(x_86, 4); -lean_inc_ref(x_91); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - lean_ctor_release(x_86, 2); - lean_ctor_release(x_86, 3); - lean_ctor_release(x_86, 4); - x_92 = x_86; +x_91 = lean_ctor_get(x_88, 2); +lean_inc(x_91); +x_92 = lean_ctor_get(x_88, 3); +lean_inc_ref(x_92); +x_93 = lean_ctor_get(x_88, 4); +lean_inc_ref(x_93); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + lean_ctor_release(x_88, 2); + lean_ctor_release(x_88, 3); + lean_ctor_release(x_88, 4); + x_94 = x_88; } else { - lean_dec_ref(x_86); - x_92 = lean_box(0); + lean_dec_ref(x_88); + x_94 = lean_box(0); } -x_93 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__7; -if (lean_is_scalar(x_92)) { - x_94 = lean_alloc_ctor(0, 5, 0); +x_95 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__7; +if (lean_is_scalar(x_94)) { + x_96 = lean_alloc_ctor(0, 5, 0); } else { - x_94 = x_92; + x_96 = x_94; } -lean_ctor_set(x_94, 0, x_88); -lean_ctor_set(x_94, 1, x_93); -lean_ctor_set(x_94, 2, x_89); -lean_ctor_set(x_94, 3, x_90); -lean_ctor_set(x_94, 4, x_91); -x_95 = lean_st_ref_set(x_3, x_94, x_87); -x_96 = lean_ctor_get(x_95, 1); -lean_inc(x_96); -lean_dec_ref(x_95); -lean_inc(x_5); -lean_inc(x_3); -x_97 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_96); -if (lean_obj_tag(x_97) == 0) -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_98 = lean_ctor_get(x_97, 0); +lean_ctor_set(x_96, 0, x_90); +lean_ctor_set(x_96, 1, x_95); +lean_ctor_set(x_96, 2, x_91); +lean_ctor_set(x_96, 3, x_92); +lean_ctor_set(x_96, 4, x_93); +x_97 = lean_st_ref_set(x_4, x_96, x_89); +x_98 = lean_ctor_get(x_97, 1); lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); lean_dec_ref(x_97); -lean_inc(x_98); -x_100 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_100, 0, x_98); -x_101 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_5, x_11, x_81, x_3, x_93, x_100, x_99); -lean_dec_ref(x_100); -lean_dec(x_3); -lean_dec(x_5); -x_102 = lean_ctor_get(x_101, 1); -lean_inc(x_102); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_103 = x_101; +lean_inc(x_6); +lean_inc(x_4); +x_99 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_98); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec_ref(x_99); +lean_inc(x_100); +x_102 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_102, 0, x_100); +x_103 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_6, x_13, x_83, x_4, x_95, x_102, x_101); +lean_dec_ref(x_102); +lean_dec(x_4); +lean_dec(x_6); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_105 = x_103; } else { - lean_dec_ref(x_101); - x_103 = lean_box(0); + lean_dec_ref(x_103); + x_105 = lean_box(0); } -if (lean_is_scalar(x_103)) { - x_104 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(0, 2, 0); } else { - x_104 = x_103; + x_106 = x_105; } -lean_ctor_set(x_104, 0, x_98); -lean_ctor_set(x_104, 1, x_102); -return x_104; +lean_ctor_set(x_106, 0, x_100); +lean_ctor_set(x_106, 1, x_104); +return x_106; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_105 = lean_ctor_get(x_97, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_97, 1); -lean_inc(x_106); -lean_dec_ref(x_97); -x_107 = lean_box(0); -x_108 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_5, x_11, x_81, x_3, x_93, x_107, x_106); -lean_dec(x_3); -lean_dec(x_5); -x_109 = lean_ctor_get(x_108, 1); -lean_inc(x_109); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_110 = x_108; +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_107 = lean_ctor_get(x_99, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_99, 1); +lean_inc(x_108); +lean_dec_ref(x_99); +x_109 = lean_box(0); +x_110 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_6, x_13, x_83, x_4, x_95, x_109, x_108); +lean_dec(x_4); +lean_dec(x_6); +x_111 = lean_ctor_get(x_110, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + x_112 = x_110; } else { - lean_dec_ref(x_108); - x_110 = lean_box(0); + lean_dec_ref(x_110); + x_112 = lean_box(0); } -if (lean_is_scalar(x_110)) { - x_111 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_112)) { + x_113 = lean_alloc_ctor(1, 2, 0); } else { - x_111 = x_110; - lean_ctor_set_tag(x_111, 1); + x_113 = x_112; + lean_ctor_set_tag(x_113, 1); } -lean_ctor_set(x_111, 0, x_105); -lean_ctor_set(x_111, 1, x_109); -return x_111; +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_111); +return x_113; } } } } -LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0(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_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_8; -x_8 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_2, x_3, x_4, x_5, x_6, x_7); -return x_8; +lean_object* x_9; +x_9 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_9; } } LEAN_EXPORT lean_object* l_Lean_profileitM___at___Lean_Meta_letToHave_spec__1___redArg(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) { @@ -16313,7 +16324,7 @@ return x_11; LEAN_EXPORT lean_object* l_Lean_Meta_letToHave___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; x_7 = l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__1___redArg(x_1, x_3, x_6); x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); @@ -16322,8 +16333,9 @@ lean_inc(x_9); lean_dec_ref(x_7); x_10 = lean_alloc_closure((void*)(l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_main), 6, 1); lean_closure_set(x_10, 0, x_8); -x_11 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_10, x_2, x_3, x_4, x_5, x_9); -return x_11; +x_11 = 1; +x_12 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_10, x_11, x_2, x_3, x_4, x_5, x_9); +return x_12; } } static lean_object* _init_l_Lean_Meta_letToHave___closed__0() { @@ -16361,6 +16373,24 @@ lean_dec(x_1); return x_9; } } +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_2); +x_9 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_3); +x_10 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} LEAN_EXPORT lean_object* l_Lean_profileitM___at___Lean_Meta_letToHave_spec__1___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { diff --git a/stage0/stdlib/Lean/Meta/SizeOf.c b/stage0/stdlib/Lean/Meta/SizeOf.c index 73455a46ea..b50890b64e 100644 --- a/stage0/stdlib/Lean/Meta/SizeOf.c +++ b/stage0/stdlib/Lean/Meta/SizeOf.c @@ -15,7 +15,6 @@ extern "C" { #endif static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof___closed__10; LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_7533_(lean_object*); -static lean_object* l_Lean_Meta_initFn___closed__4____x40_Lean_Meta_SizeOf___hyg_8343_; static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof___closed__9; lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma___closed__0; @@ -24,7 +23,7 @@ static lean_object* l_Lean_Meta_mkSizeOfSpecLemmaInstance___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProofStep_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof___closed__8; static lean_object* l_Lean_Meta_initFn___closed__0____x40_Lean_Meta_SizeOf___hyg_7567_; -static lean_object* l_Lean_Meta_initFn___closed__2____x40_Lean_Meta_SizeOf___hyg_8343_; +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_8354_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof_mkSizeOf___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn___closed__1____x40_Lean_Meta_SizeOf___hyg_7567_; static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___redArg___lam__0___closed__0; @@ -50,17 +49,18 @@ lean_object* l_Lean_Meta_unfoldDefinition(lean_object*, lean_object*, lean_objec lean_object* l_Lean_getConstInfoInduct___at___Lean_Meta_mkProjections_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkSizeOfInstances___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__3___closed__3; -static lean_object* l_Lean_Meta_initFn___closed__7____x40_Lean_Meta_SizeOf___hyg_8343_; static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___redArg___closed__2; lean_object* lean_name_append_after(lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_type(lean_object*); lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn___closed__1____x40_Lean_Meta_SizeOf___hyg_8354_; LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___Lean_getConstInfoRec___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_7567_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqSymm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Exception_isInterrupt(lean_object*); +static lean_object* l_Lean_Meta_initFn___closed__7____x40_Lean_Meta_SizeOf___hyg_8354_; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof_spec__3___redArg(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -84,7 +84,6 @@ static lean_object* l_Lean_Meta_mkSizeOfSpecLemmaName___closed__0; static lean_object* l_Lean_Meta_mkSizeOfFn___lam__1___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___redArg___closed__6; -static lean_object* l_Lean_Meta_initFn___closed__1____x40_Lean_Meta_SizeOf___hyg_8343_; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Meta_mkSizeOfInstances_spec__0___redArg(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__3___closed__25; static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma___closed__2; @@ -99,7 +98,6 @@ static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheore LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_mkSizeOfInstances_spec__0_spec__0___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn___closed__10____x40_Lean_Meta_SizeOf___hyg_8343_; LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma___lam__0___boxed(lean_object**); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__3___closed__10; static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma___lam__1___closed__0; @@ -112,19 +110,18 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta static lean_object* l_Lean_Meta_mkSizeOfFns___closed__3; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_mkSizeOfInstances_spec__0_spec__0___redArg___lam__1___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Meta_mkSizeOfFns_spec__0___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* l_Lean_inferDefEqAttr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__3___closed__13; static lean_object* l_Lean_Meta_initFn___closed__3____x40_Lean_Meta_SizeOf___hyg_7533_; LEAN_EXPORT lean_object* l_Lean_Meta_SizeOfSpecNested_throwUnexpected___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_mkSizeOfInstances_spec__0_spec__0___redArg___lam__1___closed__5; -static lean_object* l_Lean_Meta_initFn___closed__5____x40_Lean_Meta_SizeOf___hyg_8343_; LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof___lam__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*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof_mkSizeOf___closed__0; static lean_object* l_Lean_Meta_mkSizeOfFn___lam__1___closed__13; static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof___closed__4; lean_object* l_Lean_stringToMessageData(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_8343_(lean_object*); static lean_object* l_Lean_addTrace___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof_spec__1___redArg___closed__1; static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__3___closed__14; LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -161,6 +158,7 @@ lean_object* l_Std_Iterators_instIteratorMap___redArg(lean_object*, lean_object* lean_object* l_Lean_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAux___redArg(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn___closed__3____x40_Lean_Meta_SizeOf___hyg_8354_; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_mkSizeOfInstances_spec__0_spec__0(lean_object*, uint8_t, uint8_t, 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_Expr_natAdd_x3f(lean_object*); static lean_object* l_Lean_Meta_mkSizeOfFn___lam__1___closed__12; @@ -216,6 +214,7 @@ lean_object* l_Lean_Meta_withLocalDecl___at___Lean_Meta_withLocalDeclD___at___Le static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__3___closed__17; uint8_t l_Lean_InductiveVal_isNested(lean_object*); static lean_object* l_Lean_Meta_mkSizeOfFn___lam__1___closed__9; +static lean_object* l_Lean_Meta_initFn___closed__4____x40_Lean_Meta_SizeOf___hyg_8354_; LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___Lean_Meta_withLocalDeclD___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma_spec__1_spec__1___redArg___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* l_Id_instMonad___lam__2___boxed(lean_object*, lean_object*); @@ -235,7 +234,6 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn___closed__2____x40_Lean_Meta_SizeOf___hyg_7533_; LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqTrans(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn___closed__9____x40_Lean_Meta_SizeOf___hyg_8343_; lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof_spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof_spec__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*); @@ -264,7 +262,8 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNes extern lean_object* l_Lean_instInhabitedExpr; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma_spec__3___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn___closed__2____x40_Lean_Meta_SizeOf___hyg_7567_; -LEAN_EXPORT lean_object* l_Lean_Meta_mkSizeOfInstances___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn___closed__10____x40_Lean_Meta_SizeOf___hyg_8354_; +LEAN_EXPORT lean_object* l_Lean_Meta_mkSizeOfInstances___lam__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*); lean_object* l_Lean_PersistentArray_push___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_mkSizeOfInstances_spec__0_spec__0___redArg___lam__1___boxed(lean_object**); @@ -284,10 +283,6 @@ uint8_t l_Lean_Expr_isArrow(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof___lam__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_ofExcept___at___Lean_evalConstCheck___at___Lean_Meta_reduceBoolNativeUnsafe_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__3___closed__18; -static lean_object* l_Lean_Meta_initFn___closed__3____x40_Lean_Meta_SizeOf___hyg_8343_; -static lean_object* l_Lean_Meta_initFn___closed__8____x40_Lean_Meta_SizeOf___hyg_8343_; -static lean_object* l_Lean_Meta_initFn___closed__6____x40_Lean_Meta_SizeOf___hyg_8343_; -static lean_object* l_Lean_Meta_initFn___closed__11____x40_Lean_Meta_SizeOf___hyg_8343_; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof_spec__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_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -306,6 +301,7 @@ static lean_object* l_Lean_getConstInfo___at___Lean_getConstInfoRec___at_____pri static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___closed__0; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_mkSizeOfInstances_spec__0_spec__0___redArg___lam__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn___closed__2____x40_Lean_Meta_SizeOf___hyg_8354_; static lean_object* l_Lean_Meta_mkSizeOfFn___lam__1___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SizeOfSpecNested_throwFailed___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -343,6 +339,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_____private_Le LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof___lam__0___closed__0; LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof___lam__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*, lean_object*); +static lean_object* l_Lean_Meta_initFn___closed__6____x40_Lean_Meta_SizeOf___hyg_8354_; LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkSizeOfFns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -352,6 +349,7 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_SizeOfSpecNested_thr lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_constLevels_x21(lean_object*); +static lean_object* l_Lean_Meta_mkSizeOfInstances___closed__1; lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f___closed__0; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_mkSizeOfInstances_spec__0_spec__0___redArg___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*); @@ -375,12 +373,13 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___Lean_Meta_withLocalDec uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, 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___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___redArg___lam__0___closed__0; -LEAN_EXPORT lean_object* l_Lean_Meta_mkSizeOfInstances___lam__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_mkSizeOfInstances___lam__2(uint8_t, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkSizeOfFn___lam__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*, lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__3___closed__7; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof_mkSizeOf_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn___closed__5____x40_Lean_Meta_SizeOf___hyg_8354_; lean_object* l_Lean_Meta_mkEqRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkSizeOfFn___lam__1(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -389,6 +388,7 @@ LEAN_EXPORT lean_object* l_Lean_addTrace___at_____private_Lean_Meta_SizeOf_0__Le uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Meta_mkSizeOfFns_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn___closed__11____x40_Lean_Meta_SizeOf___hyg_8354_; LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -397,6 +397,7 @@ static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheore LEAN_EXPORT lean_object* l_Lean_Meta_SizeOfSpecNested_throwFailed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_reverse___redArg(lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___redArg___closed__5; +static lean_object* l_Lean_Meta_initFn___closed__8____x40_Lean_Meta_SizeOf___hyg_8354_; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_Array_append___redArg(lean_object*, lean_object*); @@ -412,7 +413,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHy static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfRecFieldFormIH___closed__2; uint8_t l_Lean_isPrivateName(lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__3___closed__21; -static lean_object* l_Lean_Meta_initFn___closed__0____x40_Lean_Meta_SizeOf___hyg_8343_; static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___redArg___closed__1; static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances___redArg___closed__0; lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); @@ -425,6 +425,7 @@ static lean_object* l_Lean_Meta_mkSizeOfSpecLemmaInstance___closed__1; lean_object* l_Lean_withTraceNode___at___Lean_Meta_processPostponed_spec__0___redArg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkSizeOfFn___lam__1___closed__3; +lean_object* l_Lean_getConstInfoInduct___at___Lean_Meta_mkProjections_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDeclD___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_toArrayMapped_go___at___Lean_Meta_mkSizeOfSpecLemmaInstance_spec__0___redArg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_mk(lean_object*); @@ -439,6 +440,7 @@ size_t lean_usize_add(size_t, size_t); lean_object* l_mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkSizeOfFn___lam__4___boxed(lean_object**); static lean_object* l_Lean_Meta_SizeOfSpecNested_throwUnexpected___redArg___closed__2; +lean_object* l_Lean_isPrivateName___boxed(lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___redArg___lam__0___closed__1; static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__3___closed__9; static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof___closed__5; @@ -466,6 +468,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_SizeOfSpecNested_throwUnexpected(lean_objec lean_object* l_Lean_getAttributeImpl(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static double l_Lean_addTrace___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof_spec__1___redArg___closed__0; +static lean_object* l_Lean_Meta_initFn___closed__9____x40_Lean_Meta_SizeOf___hyg_8354_; lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma_spec__3___redArg(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProofStep_spec__0___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*); @@ -482,6 +485,7 @@ LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at__ uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_mkSizeOfFn___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SizeOfSpecNested_throwFailed___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_any___redArg(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__3___closed__23; static lean_object* l_Lean_Meta_mkSizeOfInstances___closed__0; @@ -508,6 +512,7 @@ LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at__ static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___redArg___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_genSizeOfSpec; lean_object* l_Lean_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn___closed__0____x40_Lean_Meta_SizeOf___hyg_8354_; LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof_spec__3___redArg___boxed(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___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof___closed__2; LEAN_EXPORT lean_object* l_Lean_addTrace___at_____private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -19642,257 +19647,194 @@ x_1 = l_Lean_Meta_genSizeOfSpec; return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkSizeOfInstances___lam__2(lean_object* x_1, lean_object* x_2, uint8_t 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_EXPORT lean_object* l_Lean_Meta_mkSizeOfInstances___lam__2(uint8_t x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t 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_11; -lean_inc(x_1); -x_11 = l_Lean_getConstInfoInduct___at___Lean_Meta_mkProjections_spec__0(x_1, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_11) == 0) +if (x_1 == 0) { -lean_object* x_12; uint8_t x_13; -x_12 = lean_ctor_get(x_11, 0); +lean_object* x_14; lean_inc(x_12); -x_13 = lean_ctor_get_uint8(x_12, sizeof(void*)*6 + 1); -if (x_13 == 0) +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +x_14 = l_Lean_Meta_mkSizeOfFns(x_2, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); -lean_dec_ref(x_11); -x_15 = lean_ctor_get(x_12, 3); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -lean_dec(x_12); -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -lean_inc_ref(x_6); -x_16 = l_Lean_Meta_mkSizeOfFns(x_1, x_6, x_7, x_8, x_9, x_14); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_17 = lean_ctor_get(x_16, 0); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec_ref(x_14); +x_17 = lean_ctor_get(x_15, 0); lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); +x_18 = lean_ctor_get(x_15, 1); lean_inc(x_18); -lean_dec_ref(x_16); -x_19 = lean_ctor_get(x_17, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_dec(x_17); -x_21 = lean_unsigned_to_nat(0u); -x_22 = lean_array_get_size(x_19); -lean_inc(x_19); -x_23 = l_Array_toSubarray___redArg(x_19, x_21, x_22); -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -lean_inc_ref(x_6); -lean_inc(x_15); -x_24 = l_List_forIn_x27_loop___at___Lean_Meta_mkSizeOfInstances_spec__0___redArg(x_2, x_13, x_3, x_4, x_5, x_15, x_15, x_23, x_6, x_7, x_8, x_9, x_18); -if (lean_obj_tag(x_24) == 0) -{ -uint8_t x_25; -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_26 = lean_ctor_get(x_24, 1); -x_27 = lean_ctor_get(x_24, 0); -lean_dec(x_27); -x_28 = lean_ctor_get(x_8, 2); -lean_inc(x_28); -x_29 = l_Lean_Meta_mkSizeOfInstances___lam__2___closed__0; -x_30 = l_Lean_Option_get___at_____private_Lean_Util_Profile_0__Lean_get__profiler_spec__0(x_28, x_29); -lean_dec(x_28); -if (x_30 == 0) -{ -lean_object* x_31; -lean_dec(x_20); -lean_dec(x_19); lean_dec(x_15); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -x_31 = lean_box(0); -lean_ctor_set(x_24, 0, x_31); -return x_24; +x_19 = lean_unsigned_to_nat(0u); +x_20 = lean_array_get_size(x_17); +lean_inc(x_17); +x_21 = l_Array_toSubarray___redArg(x_17, x_19, x_20); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +x_22 = l_List_forIn_x27_loop___at___Lean_Meta_mkSizeOfInstances_spec__0___redArg(x_3, x_4, x_5, x_6, x_7, x_8, x_8, x_21, x_9, x_10, x_11, x_12, x_16); +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_22, 1); +x_25 = lean_ctor_get(x_22, 0); +lean_dec(x_25); +x_26 = lean_ctor_get(x_11, 2); +lean_inc(x_26); +x_27 = l_Lean_Meta_mkSizeOfInstances___lam__2___closed__0; +x_28 = l_Lean_Option_get___at_____private_Lean_Util_Profile_0__Lean_get__profiler_spec__0(x_26, x_27); +lean_dec(x_26); +if (x_28 == 0) +{ +lean_object* x_29; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +x_29 = lean_box(0); +lean_ctor_set(x_22, 0, x_29); +return x_22; } else { -lean_object* x_32; lean_object* x_33; -lean_free_object(x_24); -x_32 = lean_array_mk(x_15); -x_33 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems(x_32, x_19, x_20, x_6, x_7, x_8, x_9, x_26); -lean_dec_ref(x_32); -return x_33; +lean_object* x_30; lean_object* x_31; +lean_free_object(x_22); +x_30 = lean_array_mk(x_8); +x_31 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems(x_30, x_17, x_18, x_9, x_10, x_11, x_12, x_24); +lean_dec_ref(x_30); +return x_31; } } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_34 = lean_ctor_get(x_24, 1); -lean_inc(x_34); -lean_dec(x_24); -x_35 = lean_ctor_get(x_8, 2); -lean_inc(x_35); -x_36 = l_Lean_Meta_mkSizeOfInstances___lam__2___closed__0; -x_37 = l_Lean_Option_get___at_____private_Lean_Util_Profile_0__Lean_get__profiler_spec__0(x_35, x_36); -lean_dec(x_35); -if (x_37 == 0) +lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_32 = lean_ctor_get(x_22, 1); +lean_inc(x_32); +lean_dec(x_22); +x_33 = lean_ctor_get(x_11, 2); +lean_inc(x_33); +x_34 = l_Lean_Meta_mkSizeOfInstances___lam__2___closed__0; +x_35 = l_Lean_Option_get___at_____private_Lean_Util_Profile_0__Lean_get__profiler_spec__0(x_33, x_34); +lean_dec(x_33); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_32); +return x_37; +} +else { lean_object* x_38; lean_object* x_39; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_15); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -x_38 = lean_box(0); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_34); +x_38 = lean_array_mk(x_8); +x_39 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems(x_38, x_17, x_18, x_9, x_10, x_11, x_12, x_32); +lean_dec_ref(x_38); return x_39; } -else -{ -lean_object* x_40; lean_object* x_41; -x_40 = lean_array_mk(x_15); -x_41 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems(x_40, x_19, x_20, x_6, x_7, x_8, x_9, x_34); -lean_dec_ref(x_40); -return x_41; -} } } else { -uint8_t x_42; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_15); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -x_42 = !lean_is_exclusive(x_24); -if (x_42 == 0) -{ -return x_24; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_24, 0); -x_44 = lean_ctor_get(x_24, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_24); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; -} -} -} -else -{ -uint8_t x_46; -lean_dec(x_15); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_2); -x_46 = !lean_is_exclusive(x_16); -if (x_46 == 0) -{ -return x_16; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_16, 0); -x_48 = lean_ctor_get(x_16, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_16); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -else -{ -uint8_t x_50; +uint8_t x_40; +lean_dec(x_18); +lean_dec(x_17); lean_dec(x_12); -lean_dec(x_9); -lean_dec_ref(x_8); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +x_40 = !lean_is_exclusive(x_22); +if (x_40 == 0) +{ +return x_22; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_22, 0); +x_42 = lean_ctor_get(x_22, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_22); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +} +else +{ +uint8_t x_44; +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); lean_dec(x_7); lean_dec_ref(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_50 = !lean_is_exclusive(x_11); -if (x_50 == 0) +lean_dec(x_3); +x_44 = !lean_is_exclusive(x_14); +if (x_44 == 0) { -lean_object* x_51; lean_object* x_52; -x_51 = lean_ctor_get(x_11, 0); -lean_dec(x_51); -x_52 = lean_box(0); -lean_ctor_set(x_11, 0, x_52); -return x_11; +return x_14; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_11, 1); -lean_inc(x_53); -lean_dec(x_11); -x_54 = lean_box(0); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_53); -return x_55; +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_14, 0); +x_46 = lean_ctor_get(x_14, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_14); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; } } } else { -uint8_t x_56; -lean_dec(x_9); -lean_dec_ref(x_8); +lean_object* x_48; lean_object* x_49; +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); lean_dec(x_7); lean_dec_ref(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); +lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_56 = !lean_is_exclusive(x_11); -if (x_56 == 0) -{ -return x_11; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_11, 0); -x_58 = lean_ctor_get(x_11, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_11); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; -} +x_48 = lean_box(0); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_13); +return x_49; } } } @@ -19904,32 +19846,625 @@ x_1 = l_Lean_Meta_genSizeOf; return x_1; } } +static lean_object* _init_l_Lean_Meta_mkSizeOfInstances___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_isPrivateName___boxed), 1, 0); +return x_1; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_mkSizeOfInstances(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_27; lean_object* x_28; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; uint8_t x_38; uint8_t x_49; uint8_t x_171; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_17; lean_object* x_18; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_inc(x_1); -x_31 = lean_alloc_closure((void*)(l_Lean_Meta_mkSizeOfInstances___lam__0___boxed), 7, 1); +x_31 = lean_alloc_closure((void*)(l_Lean_getConstInfoInduct___at___Lean_Meta_mkProjections_spec__0___boxed), 6, 1); lean_closure_set(x_31, 0, x_1); -x_171 = l_Lean_isPrivateName(x_1); -if (x_171 == 0) +x_32 = 1; +lean_inc(x_5); +lean_inc_ref(x_4); +lean_inc(x_3); +lean_inc_ref(x_2); +x_33 = l_Lean_withoutExporting___at___Lean_validateDefEqAttr_spec__0___redArg(x_31, x_32, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_33) == 0) { -uint8_t x_172; -x_172 = 1; -x_49 = x_172; -goto block_170; +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; uint8_t x_43; uint8_t x_58; uint8_t x_183; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec_ref(x_33); +lean_inc(x_1); +x_36 = lean_alloc_closure((void*)(l_Lean_Meta_mkSizeOfInstances___lam__0___boxed), 7, 1); +lean_closure_set(x_36, 0, x_1); +x_183 = l_Lean_isPrivateName(x_1); +if (x_183 == 0) +{ +lean_object* x_184; lean_object* x_185; uint8_t x_186; +x_184 = lean_ctor_get(x_34, 4); +lean_inc(x_184); +x_185 = l_Lean_Meta_mkSizeOfInstances___closed__1; +x_186 = l_List_any___redArg(x_184, x_185); +if (x_186 == 0) +{ +x_58 = x_32; +goto block_182; } else { -uint8_t x_173; -x_173 = 0; -x_49 = x_173; -goto block_170; +x_58 = x_183; +goto block_182; +} +} +else +{ +uint8_t x_187; +x_187 = 0; +x_58 = x_187; +goto block_182; +} +block_57: +{ +if (x_43 == 0) +{ +lean_dec(x_39); +lean_dec_ref(x_37); +lean_dec_ref(x_36); +lean_dec(x_34); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec(x_1); +x_17 = x_40; +x_18 = x_42; +goto block_20; +} +else +{ +if (x_41 == 0) +{ +lean_object* x_44; uint8_t 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_34, 3); +lean_inc(x_44); +x_45 = lean_ctor_get_uint8(x_34, sizeof(void*)*6 + 1); +lean_dec(x_34); +x_46 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___redArg___closed__2; +x_47 = lean_box(x_45); +x_48 = lean_box(x_38); +x_49 = lean_box(x_32); +x_50 = lean_alloc_closure((void*)(l_Lean_Meta_mkSizeOfInstances___lam__2___boxed), 13, 8); +lean_closure_set(x_50, 0, x_47); +lean_closure_set(x_50, 1, x_1); +lean_closure_set(x_50, 2, x_39); +lean_closure_set(x_50, 3, x_48); +lean_closure_set(x_50, 4, x_49); +lean_closure_set(x_50, 5, x_37); +lean_closure_set(x_50, 6, x_46); +lean_closure_set(x_50, 7, x_44); +x_51 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___redArg___closed__5; +x_52 = l_Lean_withTraceNode___at___Lean_Meta_processPostponed_spec__0___redArg(x_46, x_36, x_50, x_32, x_51, x_2, x_3, x_4, x_5, x_42); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec_ref(x_52); +x_7 = x_40; +x_8 = x_53; +x_9 = x_54; +goto block_16; +} +else +{ +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_52, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_52, 1); +lean_inc(x_56); +lean_dec_ref(x_52); +x_21 = x_40; +x_22 = x_55; +x_23 = x_56; +goto block_30; +} +} +else +{ +lean_dec(x_39); +lean_dec_ref(x_37); +lean_dec_ref(x_36); +lean_dec(x_34); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec(x_1); +x_17 = x_40; +x_18 = x_42; +goto block_20; +} +} +} +block_182: +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_59 = lean_st_ref_get(x_5, x_35); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec_ref(x_59); +x_62 = lean_st_ref_take(x_5, x_61); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec_ref(x_62); +x_65 = !lean_is_exclusive(x_63); +if (x_65 == 0) +{ +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; uint8_t x_75; +x_66 = lean_ctor_get(x_63, 0); +x_67 = lean_ctor_get(x_63, 5); +lean_dec(x_67); +x_68 = l_Lean_Environment_setExporting(x_66, x_58); +x_69 = l_Lean_Meta_mkSizeOfFn___lam__1___closed__2; +lean_ctor_set(x_63, 5, x_69); +lean_ctor_set(x_63, 0, x_68); +x_70 = lean_st_ref_set(x_5, x_63, x_64); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec_ref(x_70); +x_72 = lean_st_ref_take(x_3, x_71); +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec_ref(x_72); +x_75 = !lean_is_exclusive(x_73); +if (x_75 == 0) +{ +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; uint8_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_76 = lean_ctor_get(x_73, 1); +lean_dec(x_76); +x_77 = l_Lean_Meta_mkSizeOfFn___lam__1___closed__7; +lean_ctor_set(x_73, 1, x_77); +x_78 = lean_st_ref_set(x_3, x_73, x_74); +x_79 = lean_ctor_get(x_78, 1); +lean_inc(x_79); +lean_dec_ref(x_78); +x_80 = lean_st_ref_get(x_5, x_79); +x_81 = lean_ctor_get(x_60, 0); +lean_inc_ref(x_81); +lean_dec(x_60); +x_82 = lean_ctor_get(x_80, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_80, 1); +lean_inc(x_83); +lean_dec_ref(x_80); +x_84 = lean_ctor_get_uint8(x_81, sizeof(void*)*8); +lean_dec_ref(x_81); +x_85 = lean_box(x_84); +lean_inc(x_3); +lean_inc(x_5); +x_86 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__2___boxed), 7, 5); +lean_closure_set(x_86, 0, x_5); +lean_closure_set(x_86, 1, x_85); +lean_closure_set(x_86, 2, x_69); +lean_closure_set(x_86, 3, x_3); +lean_closure_set(x_86, 4, x_77); +lean_inc(x_5); +lean_inc_ref(x_4); +lean_inc(x_3); +lean_inc_ref(x_2); +lean_inc(x_1); +x_87 = l_Lean_Meta_isInductivePredicate(x_1, x_2, x_3, x_4, x_5, x_83); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec_ref(x_87); +x_90 = lean_ctor_get(x_82, 0); +lean_inc_ref(x_90); +lean_dec(x_82); +x_91 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___redArg___lam__0___closed__0; +x_92 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___redArg___lam__0___closed__1; +x_93 = l_Lean_Environment_contains(x_90, x_92, x_32); +if (x_93 == 0) +{ +uint8_t x_94; uint8_t x_95; +x_94 = lean_unbox(x_88); +x_95 = lean_unbox(x_88); +lean_dec(x_88); +x_37 = x_91; +x_38 = x_94; +x_39 = x_92; +x_40 = x_86; +x_41 = x_95; +x_42 = x_89; +x_43 = x_93; +goto block_57; +} +else +{ +lean_object* x_96; lean_object* x_97; uint8_t x_98; uint8_t x_99; uint8_t x_100; +x_96 = lean_ctor_get(x_4, 2); +lean_inc(x_96); +x_97 = l_Lean_Meta_mkSizeOfInstances___closed__0; +x_98 = l_Lean_Option_get___at_____private_Lean_Util_Profile_0__Lean_get__profiler_spec__0(x_96, x_97); +lean_dec(x_96); +x_99 = lean_unbox(x_88); +x_100 = lean_unbox(x_88); +lean_dec(x_88); +x_37 = x_91; +x_38 = x_99; +x_39 = x_92; +x_40 = x_86; +x_41 = x_100; +x_42 = x_89; +x_43 = x_98; +goto block_57; +} +} +else +{ +lean_object* x_101; lean_object* x_102; +lean_dec(x_82); +lean_dec_ref(x_36); +lean_dec(x_34); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec(x_1); +x_101 = lean_ctor_get(x_87, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_87, 1); +lean_inc(x_102); +lean_dec_ref(x_87); +x_21 = x_86; +x_22 = x_101; +x_23 = x_102; +goto block_30; +} +} +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; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_103 = lean_ctor_get(x_73, 0); +x_104 = lean_ctor_get(x_73, 2); +x_105 = lean_ctor_get(x_73, 3); +x_106 = lean_ctor_get(x_73, 4); +lean_inc(x_106); +lean_inc(x_105); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_73); +x_107 = l_Lean_Meta_mkSizeOfFn___lam__1___closed__7; +x_108 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_108, 0, x_103); +lean_ctor_set(x_108, 1, x_107); +lean_ctor_set(x_108, 2, x_104); +lean_ctor_set(x_108, 3, x_105); +lean_ctor_set(x_108, 4, x_106); +x_109 = lean_st_ref_set(x_3, x_108, x_74); +x_110 = lean_ctor_get(x_109, 1); +lean_inc(x_110); +lean_dec_ref(x_109); +x_111 = lean_st_ref_get(x_5, x_110); +x_112 = lean_ctor_get(x_60, 0); +lean_inc_ref(x_112); +lean_dec(x_60); +x_113 = lean_ctor_get(x_111, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_111, 1); +lean_inc(x_114); +lean_dec_ref(x_111); +x_115 = lean_ctor_get_uint8(x_112, sizeof(void*)*8); +lean_dec_ref(x_112); +x_116 = lean_box(x_115); +lean_inc(x_3); +lean_inc(x_5); +x_117 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__2___boxed), 7, 5); +lean_closure_set(x_117, 0, x_5); +lean_closure_set(x_117, 1, x_116); +lean_closure_set(x_117, 2, x_69); +lean_closure_set(x_117, 3, x_3); +lean_closure_set(x_117, 4, x_107); +lean_inc(x_5); +lean_inc_ref(x_4); +lean_inc(x_3); +lean_inc_ref(x_2); +lean_inc(x_1); +x_118 = l_Lean_Meta_isInductivePredicate(x_1, x_2, x_3, x_4, x_5, x_114); +if (lean_obj_tag(x_118) == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); +lean_dec_ref(x_118); +x_121 = lean_ctor_get(x_113, 0); +lean_inc_ref(x_121); +lean_dec(x_113); +x_122 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___redArg___lam__0___closed__0; +x_123 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___redArg___lam__0___closed__1; +x_124 = l_Lean_Environment_contains(x_121, x_123, x_32); +if (x_124 == 0) +{ +uint8_t x_125; uint8_t x_126; +x_125 = lean_unbox(x_119); +x_126 = lean_unbox(x_119); +lean_dec(x_119); +x_37 = x_122; +x_38 = x_125; +x_39 = x_123; +x_40 = x_117; +x_41 = x_126; +x_42 = x_120; +x_43 = x_124; +goto block_57; +} +else +{ +lean_object* x_127; lean_object* x_128; uint8_t x_129; uint8_t x_130; uint8_t x_131; +x_127 = lean_ctor_get(x_4, 2); +lean_inc(x_127); +x_128 = l_Lean_Meta_mkSizeOfInstances___closed__0; +x_129 = l_Lean_Option_get___at_____private_Lean_Util_Profile_0__Lean_get__profiler_spec__0(x_127, x_128); +lean_dec(x_127); +x_130 = lean_unbox(x_119); +x_131 = lean_unbox(x_119); +lean_dec(x_119); +x_37 = x_122; +x_38 = x_130; +x_39 = x_123; +x_40 = x_117; +x_41 = x_131; +x_42 = x_120; +x_43 = x_129; +goto block_57; +} +} +else +{ +lean_object* x_132; lean_object* x_133; +lean_dec(x_113); +lean_dec_ref(x_36); +lean_dec(x_34); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec(x_1); +x_132 = lean_ctor_get(x_118, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_118, 1); +lean_inc(x_133); +lean_dec_ref(x_118); +x_21 = x_117; +x_22 = x_132; +x_23 = x_133; +goto block_30; +} +} +} +else +{ +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; uint8_t x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; +x_134 = lean_ctor_get(x_63, 0); +x_135 = lean_ctor_get(x_63, 1); +x_136 = lean_ctor_get(x_63, 2); +x_137 = lean_ctor_get(x_63, 3); +x_138 = lean_ctor_get(x_63, 4); +x_139 = lean_ctor_get(x_63, 6); +x_140 = lean_ctor_get(x_63, 7); +x_141 = lean_ctor_get(x_63, 8); +lean_inc(x_141); +lean_inc(x_140); +lean_inc(x_139); +lean_inc(x_138); +lean_inc(x_137); +lean_inc(x_136); +lean_inc(x_135); +lean_inc(x_134); +lean_dec(x_63); +x_142 = l_Lean_Environment_setExporting(x_134, x_58); +x_143 = l_Lean_Meta_mkSizeOfFn___lam__1___closed__2; +x_144 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_135); +lean_ctor_set(x_144, 2, x_136); +lean_ctor_set(x_144, 3, x_137); +lean_ctor_set(x_144, 4, x_138); +lean_ctor_set(x_144, 5, x_143); +lean_ctor_set(x_144, 6, x_139); +lean_ctor_set(x_144, 7, x_140); +lean_ctor_set(x_144, 8, x_141); +x_145 = lean_st_ref_set(x_5, x_144, x_64); +x_146 = lean_ctor_get(x_145, 1); +lean_inc(x_146); +lean_dec_ref(x_145); +x_147 = lean_st_ref_take(x_3, x_146); +x_148 = lean_ctor_get(x_147, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_147, 1); +lean_inc(x_149); +lean_dec_ref(x_147); +x_150 = lean_ctor_get(x_148, 0); +lean_inc_ref(x_150); +x_151 = lean_ctor_get(x_148, 2); +lean_inc(x_151); +x_152 = lean_ctor_get(x_148, 3); +lean_inc_ref(x_152); +x_153 = lean_ctor_get(x_148, 4); +lean_inc_ref(x_153); +if (lean_is_exclusive(x_148)) { + lean_ctor_release(x_148, 0); + lean_ctor_release(x_148, 1); + lean_ctor_release(x_148, 2); + lean_ctor_release(x_148, 3); + lean_ctor_release(x_148, 4); + x_154 = x_148; +} else { + lean_dec_ref(x_148); + x_154 = lean_box(0); +} +x_155 = l_Lean_Meta_mkSizeOfFn___lam__1___closed__7; +if (lean_is_scalar(x_154)) { + x_156 = lean_alloc_ctor(0, 5, 0); +} else { + x_156 = x_154; +} +lean_ctor_set(x_156, 0, x_150); +lean_ctor_set(x_156, 1, x_155); +lean_ctor_set(x_156, 2, x_151); +lean_ctor_set(x_156, 3, x_152); +lean_ctor_set(x_156, 4, x_153); +x_157 = lean_st_ref_set(x_3, x_156, x_149); +x_158 = lean_ctor_get(x_157, 1); +lean_inc(x_158); +lean_dec_ref(x_157); +x_159 = lean_st_ref_get(x_5, x_158); +x_160 = lean_ctor_get(x_60, 0); +lean_inc_ref(x_160); +lean_dec(x_60); +x_161 = lean_ctor_get(x_159, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_159, 1); +lean_inc(x_162); +lean_dec_ref(x_159); +x_163 = lean_ctor_get_uint8(x_160, sizeof(void*)*8); +lean_dec_ref(x_160); +x_164 = lean_box(x_163); +lean_inc(x_3); +lean_inc(x_5); +x_165 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__2___boxed), 7, 5); +lean_closure_set(x_165, 0, x_5); +lean_closure_set(x_165, 1, x_164); +lean_closure_set(x_165, 2, x_143); +lean_closure_set(x_165, 3, x_3); +lean_closure_set(x_165, 4, x_155); +lean_inc(x_5); +lean_inc_ref(x_4); +lean_inc(x_3); +lean_inc_ref(x_2); +lean_inc(x_1); +x_166 = l_Lean_Meta_isInductivePredicate(x_1, x_2, x_3, x_4, x_5, x_162); +if (lean_obj_tag(x_166) == 0) +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; uint8_t x_172; +x_167 = lean_ctor_get(x_166, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_166, 1); +lean_inc(x_168); +lean_dec_ref(x_166); +x_169 = lean_ctor_get(x_161, 0); +lean_inc_ref(x_169); +lean_dec(x_161); +x_170 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___redArg___lam__0___closed__0; +x_171 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___redArg___lam__0___closed__1; +x_172 = l_Lean_Environment_contains(x_169, x_171, x_32); +if (x_172 == 0) +{ +uint8_t x_173; uint8_t x_174; +x_173 = lean_unbox(x_167); +x_174 = lean_unbox(x_167); +lean_dec(x_167); +x_37 = x_170; +x_38 = x_173; +x_39 = x_171; +x_40 = x_165; +x_41 = x_174; +x_42 = x_168; +x_43 = x_172; +goto block_57; +} +else +{ +lean_object* x_175; lean_object* x_176; uint8_t x_177; uint8_t x_178; uint8_t x_179; +x_175 = lean_ctor_get(x_4, 2); +lean_inc(x_175); +x_176 = l_Lean_Meta_mkSizeOfInstances___closed__0; +x_177 = l_Lean_Option_get___at_____private_Lean_Util_Profile_0__Lean_get__profiler_spec__0(x_175, x_176); +lean_dec(x_175); +x_178 = lean_unbox(x_167); +x_179 = lean_unbox(x_167); +lean_dec(x_167); +x_37 = x_170; +x_38 = x_178; +x_39 = x_171; +x_40 = x_165; +x_41 = x_179; +x_42 = x_168; +x_43 = x_177; +goto block_57; +} +} +else +{ +lean_object* x_180; lean_object* x_181; +lean_dec(x_161); +lean_dec_ref(x_36); +lean_dec(x_34); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec(x_1); +x_180 = lean_ctor_get(x_166, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_166, 1); +lean_inc(x_181); +lean_dec_ref(x_166); +x_21 = x_165; +x_22 = x_180; +x_23 = x_181; +goto block_30; +} +} +} +} +else +{ +uint8_t x_188; +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec(x_1); +x_188 = !lean_is_exclusive(x_33); +if (x_188 == 0) +{ +return x_33; +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_189 = lean_ctor_get(x_33, 0); +x_190 = lean_ctor_get(x_33, 1); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_33); +x_191 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_191, 0, x_189); +lean_ctor_set(x_191, 1, x_190); +return x_191; +} } block_16: { lean_object* x_10; lean_object* x_11; -x_10 = lean_box(0); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_8); x_11 = lean_apply_2(x_7, x_10, x_9); if (lean_obj_tag(x_11) == 0) { @@ -19940,7 +20475,6 @@ if (x_12 == 0) lean_object* x_13; x_13 = lean_ctor_get(x_11, 0); lean_dec(x_13); -lean_ctor_set_tag(x_11, 1); lean_ctor_set(x_11, 0, x_8); return x_11; } @@ -19950,7 +20484,7 @@ lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_11, 1); lean_inc(x_14); lean_dec(x_11); -x_15 = lean_alloc_ctor(1, 2, 0); +x_15 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_15, 0, x_8); lean_ctor_set(x_15, 1, x_14); return x_15; @@ -19958,563 +20492,52 @@ return x_15; } else { -lean_dec_ref(x_8); return x_11; } } -block_26: +block_20: { -lean_object* x_20; lean_object* x_21; -x_20 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_20, 0, x_18); -x_21 = lean_apply_2(x_17, x_20, x_19); -if (lean_obj_tag(x_21) == 0) -{ -uint8_t x_22; -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_21, 0); -lean_dec(x_23); -lean_ctor_set(x_21, 0, x_18); -return x_21; -} -else -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec(x_21); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_18); -lean_ctor_set(x_25, 1, x_24); -return x_25; -} -} -else -{ -return x_21; -} +lean_object* x_19; +x_19 = lean_box(0); +x_7 = x_17; +x_8 = x_19; +x_9 = x_18; +goto block_16; } block_30: { -lean_object* x_29; -x_29 = lean_box(0); -x_17 = x_28; -x_18 = x_29; -x_19 = x_27; -goto block_26; -} -block_48: +lean_object* x_24; lean_object* x_25; +x_24 = lean_box(0); +x_25 = lean_apply_2(x_21, x_24, x_23); +if (lean_obj_tag(x_25) == 0) { -if (x_38 == 0) +uint8_t x_26; +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) { -lean_dec(x_34); -lean_dec_ref(x_32); -lean_dec_ref(x_31); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_3); -lean_dec_ref(x_2); -lean_dec(x_1); -x_27 = x_35; -x_28 = x_36; -goto block_30; +lean_object* x_27; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +lean_ctor_set_tag(x_25, 1); +lean_ctor_set(x_25, 0, x_22); +return x_25; } else { -if (x_37 == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_39 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___redArg___closed__2; -x_40 = lean_box(x_33); -x_41 = lean_alloc_closure((void*)(l_Lean_Meta_mkSizeOfInstances___lam__2___boxed), 10, 5); -lean_closure_set(x_41, 0, x_1); -lean_closure_set(x_41, 1, x_34); -lean_closure_set(x_41, 2, x_40); -lean_closure_set(x_41, 3, x_32); -lean_closure_set(x_41, 4, x_39); -x_42 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___redArg___closed__5; -x_43 = l_Lean_withTraceNode___at___Lean_Meta_processPostponed_spec__0___redArg(x_39, x_31, x_41, x_33, x_42, x_2, x_3, x_4, x_5, x_35); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec_ref(x_43); -x_17 = x_36; -x_18 = x_44; -x_19 = x_45; -goto block_26; -} -else -{ -lean_object* x_46; lean_object* x_47; -x_46 = lean_ctor_get(x_43, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_43, 1); -lean_inc(x_47); -lean_dec_ref(x_43); -x_7 = x_36; -x_8 = x_46; -x_9 = x_47; -goto block_16; +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_22); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } else { -lean_dec(x_34); -lean_dec_ref(x_32); -lean_dec_ref(x_31); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_3); -lean_dec_ref(x_2); -lean_dec(x_1); -x_27 = x_35; -x_28 = x_36; -goto block_30; -} -} -} -block_170: -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_50 = lean_st_ref_get(x_5, x_6); -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); -lean_inc(x_52); -lean_dec_ref(x_50); -x_53 = lean_st_ref_take(x_5, x_52); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec_ref(x_53); -x_56 = !lean_is_exclusive(x_54); -if (x_56 == 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; lean_object* x_64; lean_object* x_65; uint8_t x_66; -x_57 = lean_ctor_get(x_54, 0); -x_58 = lean_ctor_get(x_54, 5); -lean_dec(x_58); -x_59 = l_Lean_Environment_setExporting(x_57, x_49); -x_60 = l_Lean_Meta_mkSizeOfFn___lam__1___closed__2; -lean_ctor_set(x_54, 5, x_60); -lean_ctor_set(x_54, 0, x_59); -x_61 = lean_st_ref_set(x_5, x_54, x_55); -x_62 = lean_ctor_get(x_61, 1); -lean_inc(x_62); -lean_dec_ref(x_61); -x_63 = lean_st_ref_take(x_3, x_62); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec_ref(x_63); -x_66 = !lean_is_exclusive(x_64); -if (x_66 == 0) -{ -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; uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_67 = lean_ctor_get(x_64, 1); -lean_dec(x_67); -x_68 = l_Lean_Meta_mkSizeOfFn___lam__1___closed__7; -lean_ctor_set(x_64, 1, x_68); -x_69 = lean_st_ref_set(x_3, x_64, x_65); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec_ref(x_69); -x_71 = lean_st_ref_get(x_5, x_70); -x_72 = lean_ctor_get(x_51, 0); -lean_inc_ref(x_72); -lean_dec(x_51); -x_73 = lean_ctor_get(x_71, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_71, 1); -lean_inc(x_74); -lean_dec_ref(x_71); -x_75 = lean_ctor_get_uint8(x_72, sizeof(void*)*8); -lean_dec_ref(x_72); -x_76 = lean_box(x_75); -lean_inc(x_3); -lean_inc(x_5); -x_77 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__2___boxed), 7, 5); -lean_closure_set(x_77, 0, x_5); -lean_closure_set(x_77, 1, x_76); -lean_closure_set(x_77, 2, x_60); -lean_closure_set(x_77, 3, x_3); -lean_closure_set(x_77, 4, x_68); -lean_inc(x_5); -lean_inc_ref(x_4); -lean_inc(x_3); -lean_inc_ref(x_2); -lean_inc(x_1); -x_78 = l_Lean_Meta_isInductivePredicate(x_1, x_2, x_3, x_4, x_5, x_74); -if (lean_obj_tag(x_78) == 0) -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; uint8_t x_85; -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec_ref(x_78); -x_81 = lean_ctor_get(x_73, 0); -lean_inc_ref(x_81); -lean_dec(x_73); -x_82 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___redArg___lam__0___closed__0; -x_83 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___redArg___lam__0___closed__1; -x_84 = 1; -x_85 = l_Lean_Environment_contains(x_81, x_83, x_84); -if (x_85 == 0) -{ -uint8_t x_86; -x_86 = lean_unbox(x_79); -lean_dec(x_79); -x_32 = x_82; -x_33 = x_84; -x_34 = x_83; -x_35 = x_80; -x_36 = x_77; -x_37 = x_86; -x_38 = x_85; -goto block_48; -} -else -{ -lean_object* x_87; lean_object* x_88; uint8_t x_89; uint8_t x_90; -x_87 = lean_ctor_get(x_4, 2); -lean_inc(x_87); -x_88 = l_Lean_Meta_mkSizeOfInstances___closed__0; -x_89 = l_Lean_Option_get___at_____private_Lean_Util_Profile_0__Lean_get__profiler_spec__0(x_87, x_88); -lean_dec(x_87); -x_90 = lean_unbox(x_79); -lean_dec(x_79); -x_32 = x_82; -x_33 = x_84; -x_34 = x_83; -x_35 = x_80; -x_36 = x_77; -x_37 = x_90; -x_38 = x_89; -goto block_48; -} -} -else -{ -lean_object* x_91; lean_object* x_92; -lean_dec(x_73); -lean_dec_ref(x_31); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_3); -lean_dec_ref(x_2); -lean_dec(x_1); -x_91 = lean_ctor_get(x_78, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_78, 1); -lean_inc(x_92); -lean_dec_ref(x_78); -x_7 = x_77; -x_8 = x_91; -x_9 = x_92; -goto block_16; -} -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_93 = lean_ctor_get(x_64, 0); -x_94 = lean_ctor_get(x_64, 2); -x_95 = lean_ctor_get(x_64, 3); -x_96 = lean_ctor_get(x_64, 4); -lean_inc(x_96); -lean_inc(x_95); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_64); -x_97 = l_Lean_Meta_mkSizeOfFn___lam__1___closed__7; -x_98 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_98, 0, x_93); -lean_ctor_set(x_98, 1, x_97); -lean_ctor_set(x_98, 2, x_94); -lean_ctor_set(x_98, 3, x_95); -lean_ctor_set(x_98, 4, x_96); -x_99 = lean_st_ref_set(x_3, x_98, x_65); -x_100 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -lean_dec_ref(x_99); -x_101 = lean_st_ref_get(x_5, x_100); -x_102 = lean_ctor_get(x_51, 0); -lean_inc_ref(x_102); -lean_dec(x_51); -x_103 = lean_ctor_get(x_101, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_101, 1); -lean_inc(x_104); -lean_dec_ref(x_101); -x_105 = lean_ctor_get_uint8(x_102, sizeof(void*)*8); -lean_dec_ref(x_102); -x_106 = lean_box(x_105); -lean_inc(x_3); -lean_inc(x_5); -x_107 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__2___boxed), 7, 5); -lean_closure_set(x_107, 0, x_5); -lean_closure_set(x_107, 1, x_106); -lean_closure_set(x_107, 2, x_60); -lean_closure_set(x_107, 3, x_3); -lean_closure_set(x_107, 4, x_97); -lean_inc(x_5); -lean_inc_ref(x_4); -lean_inc(x_3); -lean_inc_ref(x_2); -lean_inc(x_1); -x_108 = l_Lean_Meta_isInductivePredicate(x_1, x_2, x_3, x_4, x_5, x_104); -if (lean_obj_tag(x_108) == 0) -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; uint8_t x_115; -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -lean_dec_ref(x_108); -x_111 = lean_ctor_get(x_103, 0); -lean_inc_ref(x_111); -lean_dec(x_103); -x_112 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___redArg___lam__0___closed__0; -x_113 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___redArg___lam__0___closed__1; -x_114 = 1; -x_115 = l_Lean_Environment_contains(x_111, x_113, x_114); -if (x_115 == 0) -{ -uint8_t x_116; -x_116 = lean_unbox(x_109); -lean_dec(x_109); -x_32 = x_112; -x_33 = x_114; -x_34 = x_113; -x_35 = x_110; -x_36 = x_107; -x_37 = x_116; -x_38 = x_115; -goto block_48; -} -else -{ -lean_object* x_117; lean_object* x_118; uint8_t x_119; uint8_t x_120; -x_117 = lean_ctor_get(x_4, 2); -lean_inc(x_117); -x_118 = l_Lean_Meta_mkSizeOfInstances___closed__0; -x_119 = l_Lean_Option_get___at_____private_Lean_Util_Profile_0__Lean_get__profiler_spec__0(x_117, x_118); -lean_dec(x_117); -x_120 = lean_unbox(x_109); -lean_dec(x_109); -x_32 = x_112; -x_33 = x_114; -x_34 = x_113; -x_35 = x_110; -x_36 = x_107; -x_37 = x_120; -x_38 = x_119; -goto block_48; -} -} -else -{ -lean_object* x_121; lean_object* x_122; -lean_dec(x_103); -lean_dec_ref(x_31); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_3); -lean_dec_ref(x_2); -lean_dec(x_1); -x_121 = lean_ctor_get(x_108, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_108, 1); -lean_inc(x_122); -lean_dec_ref(x_108); -x_7 = x_107; -x_8 = x_121; -x_9 = x_122; -goto block_16; -} -} -} -else -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; uint8_t x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_123 = lean_ctor_get(x_54, 0); -x_124 = lean_ctor_get(x_54, 1); -x_125 = lean_ctor_get(x_54, 2); -x_126 = lean_ctor_get(x_54, 3); -x_127 = lean_ctor_get(x_54, 4); -x_128 = lean_ctor_get(x_54, 6); -x_129 = lean_ctor_get(x_54, 7); -x_130 = lean_ctor_get(x_54, 8); -lean_inc(x_130); -lean_inc(x_129); -lean_inc(x_128); -lean_inc(x_127); -lean_inc(x_126); -lean_inc(x_125); -lean_inc(x_124); -lean_inc(x_123); -lean_dec(x_54); -x_131 = l_Lean_Environment_setExporting(x_123, x_49); -x_132 = l_Lean_Meta_mkSizeOfFn___lam__1___closed__2; -x_133 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_133, 0, x_131); -lean_ctor_set(x_133, 1, x_124); -lean_ctor_set(x_133, 2, x_125); -lean_ctor_set(x_133, 3, x_126); -lean_ctor_set(x_133, 4, x_127); -lean_ctor_set(x_133, 5, x_132); -lean_ctor_set(x_133, 6, x_128); -lean_ctor_set(x_133, 7, x_129); -lean_ctor_set(x_133, 8, x_130); -x_134 = lean_st_ref_set(x_5, x_133, x_55); -x_135 = lean_ctor_get(x_134, 1); -lean_inc(x_135); -lean_dec_ref(x_134); -x_136 = lean_st_ref_take(x_3, x_135); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_136, 1); -lean_inc(x_138); -lean_dec_ref(x_136); -x_139 = lean_ctor_get(x_137, 0); -lean_inc_ref(x_139); -x_140 = lean_ctor_get(x_137, 2); -lean_inc(x_140); -x_141 = lean_ctor_get(x_137, 3); -lean_inc_ref(x_141); -x_142 = lean_ctor_get(x_137, 4); -lean_inc_ref(x_142); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - lean_ctor_release(x_137, 2); - lean_ctor_release(x_137, 3); - lean_ctor_release(x_137, 4); - x_143 = x_137; -} else { - lean_dec_ref(x_137); - x_143 = lean_box(0); -} -x_144 = l_Lean_Meta_mkSizeOfFn___lam__1___closed__7; -if (lean_is_scalar(x_143)) { - x_145 = lean_alloc_ctor(0, 5, 0); -} else { - x_145 = x_143; -} -lean_ctor_set(x_145, 0, x_139); -lean_ctor_set(x_145, 1, x_144); -lean_ctor_set(x_145, 2, x_140); -lean_ctor_set(x_145, 3, x_141); -lean_ctor_set(x_145, 4, x_142); -x_146 = lean_st_ref_set(x_3, x_145, x_138); -x_147 = lean_ctor_get(x_146, 1); -lean_inc(x_147); -lean_dec_ref(x_146); -x_148 = lean_st_ref_get(x_5, x_147); -x_149 = lean_ctor_get(x_51, 0); -lean_inc_ref(x_149); -lean_dec(x_51); -x_150 = lean_ctor_get(x_148, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_148, 1); -lean_inc(x_151); -lean_dec_ref(x_148); -x_152 = lean_ctor_get_uint8(x_149, sizeof(void*)*8); -lean_dec_ref(x_149); -x_153 = lean_box(x_152); -lean_inc(x_3); -lean_inc(x_5); -x_154 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lam__2___boxed), 7, 5); -lean_closure_set(x_154, 0, x_5); -lean_closure_set(x_154, 1, x_153); -lean_closure_set(x_154, 2, x_132); -lean_closure_set(x_154, 3, x_3); -lean_closure_set(x_154, 4, x_144); -lean_inc(x_5); -lean_inc_ref(x_4); -lean_inc(x_3); -lean_inc_ref(x_2); -lean_inc(x_1); -x_155 = l_Lean_Meta_isInductivePredicate(x_1, x_2, x_3, x_4, x_5, x_151); -if (lean_obj_tag(x_155) == 0) -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; uint8_t x_162; -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_155, 1); -lean_inc(x_157); -lean_dec_ref(x_155); -x_158 = lean_ctor_get(x_150, 0); -lean_inc_ref(x_158); -lean_dec(x_150); -x_159 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___redArg___lam__0___closed__0; -x_160 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___redArg___lam__0___closed__1; -x_161 = 1; -x_162 = l_Lean_Environment_contains(x_158, x_160, x_161); -if (x_162 == 0) -{ -uint8_t x_163; -x_163 = lean_unbox(x_156); -lean_dec(x_156); -x_32 = x_159; -x_33 = x_161; -x_34 = x_160; -x_35 = x_157; -x_36 = x_154; -x_37 = x_163; -x_38 = x_162; -goto block_48; -} -else -{ -lean_object* x_164; lean_object* x_165; uint8_t x_166; uint8_t x_167; -x_164 = lean_ctor_get(x_4, 2); -lean_inc(x_164); -x_165 = l_Lean_Meta_mkSizeOfInstances___closed__0; -x_166 = l_Lean_Option_get___at_____private_Lean_Util_Profile_0__Lean_get__profiler_spec__0(x_164, x_165); -lean_dec(x_164); -x_167 = lean_unbox(x_156); -lean_dec(x_156); -x_32 = x_159; -x_33 = x_161; -x_34 = x_160; -x_35 = x_157; -x_36 = x_154; -x_37 = x_167; -x_38 = x_166; -goto block_48; -} -} -else -{ -lean_object* x_168; lean_object* x_169; -lean_dec(x_150); -lean_dec_ref(x_31); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_3); -lean_dec_ref(x_2); -lean_dec(x_1); -x_168 = lean_ctor_get(x_155, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_155, 1); -lean_inc(x_169); -lean_dec_ref(x_155); -x_7 = x_154; -x_8 = x_168; -x_9 = x_169; -goto block_16; -} +lean_dec_ref(x_22); +return x_25; } } } @@ -20656,16 +20679,18 @@ lean_dec_ref(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkSizeOfInstances___lam__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_EXPORT lean_object* l_Lean_Meta_mkSizeOfInstances___lam__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: { -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_3); -x_12 = l_Lean_Meta_mkSizeOfInstances___lam__2(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_12; +uint8_t x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; +x_14 = lean_unbox(x_1); +x_15 = lean_unbox(x_4); +x_16 = lean_unbox(x_5); +x_17 = l_Lean_Meta_mkSizeOfInstances___lam__2(x_14, x_2, x_3, x_15, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_17; } } -static lean_object* _init_l_Lean_Meta_initFn___closed__0____x40_Lean_Meta_SizeOf___hyg_8343_() { +static lean_object* _init_l_Lean_Meta_initFn___closed__0____x40_Lean_Meta_SizeOf___hyg_8354_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -20675,17 +20700,17 @@ x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn___closed__1____x40_Lean_Meta_SizeOf___hyg_8343_() { +static lean_object* _init_l_Lean_Meta_initFn___closed__1____x40_Lean_Meta_SizeOf___hyg_8354_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___redArg___closed__0; -x_2 = l_Lean_Meta_initFn___closed__0____x40_Lean_Meta_SizeOf___hyg_8343_; +x_2 = l_Lean_Meta_initFn___closed__0____x40_Lean_Meta_SizeOf___hyg_8354_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn___closed__2____x40_Lean_Meta_SizeOf___hyg_8343_() { +static lean_object* _init_l_Lean_Meta_initFn___closed__2____x40_Lean_Meta_SizeOf___hyg_8354_() { _start: { lean_object* x_1; @@ -20693,17 +20718,17 @@ x_1 = lean_mk_string_unchecked("initFn", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn___closed__3____x40_Lean_Meta_SizeOf___hyg_8343_() { +static lean_object* _init_l_Lean_Meta_initFn___closed__3____x40_Lean_Meta_SizeOf___hyg_8354_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn___closed__2____x40_Lean_Meta_SizeOf___hyg_8343_; -x_2 = l_Lean_Meta_initFn___closed__1____x40_Lean_Meta_SizeOf___hyg_8343_; +x_1 = l_Lean_Meta_initFn___closed__2____x40_Lean_Meta_SizeOf___hyg_8354_; +x_2 = l_Lean_Meta_initFn___closed__1____x40_Lean_Meta_SizeOf___hyg_8354_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn___closed__4____x40_Lean_Meta_SizeOf___hyg_8343_() { +static lean_object* _init_l_Lean_Meta_initFn___closed__4____x40_Lean_Meta_SizeOf___hyg_8354_() { _start: { lean_object* x_1; @@ -20711,47 +20736,47 @@ x_1 = lean_mk_string_unchecked("_@", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn___closed__5____x40_Lean_Meta_SizeOf___hyg_8343_() { +static lean_object* _init_l_Lean_Meta_initFn___closed__5____x40_Lean_Meta_SizeOf___hyg_8354_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn___closed__4____x40_Lean_Meta_SizeOf___hyg_8343_; -x_2 = l_Lean_Meta_initFn___closed__3____x40_Lean_Meta_SizeOf___hyg_8343_; +x_1 = l_Lean_Meta_initFn___closed__4____x40_Lean_Meta_SizeOf___hyg_8354_; +x_2 = l_Lean_Meta_initFn___closed__3____x40_Lean_Meta_SizeOf___hyg_8354_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn___closed__6____x40_Lean_Meta_SizeOf___hyg_8343_() { +static lean_object* _init_l_Lean_Meta_initFn___closed__6____x40_Lean_Meta_SizeOf___hyg_8354_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_initFn___closed__4____x40_Lean_Meta_SizeOf___hyg_7533_; -x_2 = l_Lean_Meta_initFn___closed__5____x40_Lean_Meta_SizeOf___hyg_8343_; +x_2 = l_Lean_Meta_initFn___closed__5____x40_Lean_Meta_SizeOf___hyg_8354_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn___closed__7____x40_Lean_Meta_SizeOf___hyg_8343_() { +static lean_object* _init_l_Lean_Meta_initFn___closed__7____x40_Lean_Meta_SizeOf___hyg_8354_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___redArg___closed__0; -x_2 = l_Lean_Meta_initFn___closed__6____x40_Lean_Meta_SizeOf___hyg_8343_; +x_2 = l_Lean_Meta_initFn___closed__6____x40_Lean_Meta_SizeOf___hyg_8354_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn___closed__8____x40_Lean_Meta_SizeOf___hyg_8343_() { +static lean_object* _init_l_Lean_Meta_initFn___closed__8____x40_Lean_Meta_SizeOf___hyg_8354_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___redArg___lam__0___closed__0; -x_2 = l_Lean_Meta_initFn___closed__7____x40_Lean_Meta_SizeOf___hyg_8343_; +x_2 = l_Lean_Meta_initFn___closed__7____x40_Lean_Meta_SizeOf___hyg_8354_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn___closed__9____x40_Lean_Meta_SizeOf___hyg_8343_() { +static lean_object* _init_l_Lean_Meta_initFn___closed__9____x40_Lean_Meta_SizeOf___hyg_8354_() { _start: { lean_object* x_1; @@ -20759,33 +20784,33 @@ x_1 = lean_mk_string_unchecked("_hyg", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn___closed__10____x40_Lean_Meta_SizeOf___hyg_8343_() { +static lean_object* _init_l_Lean_Meta_initFn___closed__10____x40_Lean_Meta_SizeOf___hyg_8354_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn___closed__9____x40_Lean_Meta_SizeOf___hyg_8343_; -x_2 = l_Lean_Meta_initFn___closed__8____x40_Lean_Meta_SizeOf___hyg_8343_; +x_1 = l_Lean_Meta_initFn___closed__9____x40_Lean_Meta_SizeOf___hyg_8354_; +x_2 = l_Lean_Meta_initFn___closed__8____x40_Lean_Meta_SizeOf___hyg_8354_; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn___closed__11____x40_Lean_Meta_SizeOf___hyg_8343_() { +static lean_object* _init_l_Lean_Meta_initFn___closed__11____x40_Lean_Meta_SizeOf___hyg_8354_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(8343u); -x_2 = l_Lean_Meta_initFn___closed__10____x40_Lean_Meta_SizeOf___hyg_8343_; +x_1 = lean_unsigned_to_nat(8354u); +x_2 = l_Lean_Meta_initFn___closed__10____x40_Lean_Meta_SizeOf___hyg_8354_; x_3 = l_Lean_Name_num___override(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_8343_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_8354_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; x_2 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___redArg___closed__2; x_3 = 0; -x_4 = l_Lean_Meta_initFn___closed__11____x40_Lean_Meta_SizeOf___hyg_8343_; +x_4 = l_Lean_Meta_initFn___closed__11____x40_Lean_Meta_SizeOf___hyg_8354_; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); if (lean_obj_tag(x_5) == 0) { @@ -21170,31 +21195,33 @@ l_Lean_Meta_mkSizeOfInstances___lam__2___closed__0 = _init_l_Lean_Meta_mkSizeOfI lean_mark_persistent(l_Lean_Meta_mkSizeOfInstances___lam__2___closed__0); l_Lean_Meta_mkSizeOfInstances___closed__0 = _init_l_Lean_Meta_mkSizeOfInstances___closed__0(); lean_mark_persistent(l_Lean_Meta_mkSizeOfInstances___closed__0); -l_Lean_Meta_initFn___closed__0____x40_Lean_Meta_SizeOf___hyg_8343_ = _init_l_Lean_Meta_initFn___closed__0____x40_Lean_Meta_SizeOf___hyg_8343_(); -lean_mark_persistent(l_Lean_Meta_initFn___closed__0____x40_Lean_Meta_SizeOf___hyg_8343_); -l_Lean_Meta_initFn___closed__1____x40_Lean_Meta_SizeOf___hyg_8343_ = _init_l_Lean_Meta_initFn___closed__1____x40_Lean_Meta_SizeOf___hyg_8343_(); -lean_mark_persistent(l_Lean_Meta_initFn___closed__1____x40_Lean_Meta_SizeOf___hyg_8343_); -l_Lean_Meta_initFn___closed__2____x40_Lean_Meta_SizeOf___hyg_8343_ = _init_l_Lean_Meta_initFn___closed__2____x40_Lean_Meta_SizeOf___hyg_8343_(); -lean_mark_persistent(l_Lean_Meta_initFn___closed__2____x40_Lean_Meta_SizeOf___hyg_8343_); -l_Lean_Meta_initFn___closed__3____x40_Lean_Meta_SizeOf___hyg_8343_ = _init_l_Lean_Meta_initFn___closed__3____x40_Lean_Meta_SizeOf___hyg_8343_(); -lean_mark_persistent(l_Lean_Meta_initFn___closed__3____x40_Lean_Meta_SizeOf___hyg_8343_); -l_Lean_Meta_initFn___closed__4____x40_Lean_Meta_SizeOf___hyg_8343_ = _init_l_Lean_Meta_initFn___closed__4____x40_Lean_Meta_SizeOf___hyg_8343_(); -lean_mark_persistent(l_Lean_Meta_initFn___closed__4____x40_Lean_Meta_SizeOf___hyg_8343_); -l_Lean_Meta_initFn___closed__5____x40_Lean_Meta_SizeOf___hyg_8343_ = _init_l_Lean_Meta_initFn___closed__5____x40_Lean_Meta_SizeOf___hyg_8343_(); -lean_mark_persistent(l_Lean_Meta_initFn___closed__5____x40_Lean_Meta_SizeOf___hyg_8343_); -l_Lean_Meta_initFn___closed__6____x40_Lean_Meta_SizeOf___hyg_8343_ = _init_l_Lean_Meta_initFn___closed__6____x40_Lean_Meta_SizeOf___hyg_8343_(); -lean_mark_persistent(l_Lean_Meta_initFn___closed__6____x40_Lean_Meta_SizeOf___hyg_8343_); -l_Lean_Meta_initFn___closed__7____x40_Lean_Meta_SizeOf___hyg_8343_ = _init_l_Lean_Meta_initFn___closed__7____x40_Lean_Meta_SizeOf___hyg_8343_(); -lean_mark_persistent(l_Lean_Meta_initFn___closed__7____x40_Lean_Meta_SizeOf___hyg_8343_); -l_Lean_Meta_initFn___closed__8____x40_Lean_Meta_SizeOf___hyg_8343_ = _init_l_Lean_Meta_initFn___closed__8____x40_Lean_Meta_SizeOf___hyg_8343_(); -lean_mark_persistent(l_Lean_Meta_initFn___closed__8____x40_Lean_Meta_SizeOf___hyg_8343_); -l_Lean_Meta_initFn___closed__9____x40_Lean_Meta_SizeOf___hyg_8343_ = _init_l_Lean_Meta_initFn___closed__9____x40_Lean_Meta_SizeOf___hyg_8343_(); -lean_mark_persistent(l_Lean_Meta_initFn___closed__9____x40_Lean_Meta_SizeOf___hyg_8343_); -l_Lean_Meta_initFn___closed__10____x40_Lean_Meta_SizeOf___hyg_8343_ = _init_l_Lean_Meta_initFn___closed__10____x40_Lean_Meta_SizeOf___hyg_8343_(); -lean_mark_persistent(l_Lean_Meta_initFn___closed__10____x40_Lean_Meta_SizeOf___hyg_8343_); -l_Lean_Meta_initFn___closed__11____x40_Lean_Meta_SizeOf___hyg_8343_ = _init_l_Lean_Meta_initFn___closed__11____x40_Lean_Meta_SizeOf___hyg_8343_(); -lean_mark_persistent(l_Lean_Meta_initFn___closed__11____x40_Lean_Meta_SizeOf___hyg_8343_); -if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_8343_(lean_io_mk_world()); +l_Lean_Meta_mkSizeOfInstances___closed__1 = _init_l_Lean_Meta_mkSizeOfInstances___closed__1(); +lean_mark_persistent(l_Lean_Meta_mkSizeOfInstances___closed__1); +l_Lean_Meta_initFn___closed__0____x40_Lean_Meta_SizeOf___hyg_8354_ = _init_l_Lean_Meta_initFn___closed__0____x40_Lean_Meta_SizeOf___hyg_8354_(); +lean_mark_persistent(l_Lean_Meta_initFn___closed__0____x40_Lean_Meta_SizeOf___hyg_8354_); +l_Lean_Meta_initFn___closed__1____x40_Lean_Meta_SizeOf___hyg_8354_ = _init_l_Lean_Meta_initFn___closed__1____x40_Lean_Meta_SizeOf___hyg_8354_(); +lean_mark_persistent(l_Lean_Meta_initFn___closed__1____x40_Lean_Meta_SizeOf___hyg_8354_); +l_Lean_Meta_initFn___closed__2____x40_Lean_Meta_SizeOf___hyg_8354_ = _init_l_Lean_Meta_initFn___closed__2____x40_Lean_Meta_SizeOf___hyg_8354_(); +lean_mark_persistent(l_Lean_Meta_initFn___closed__2____x40_Lean_Meta_SizeOf___hyg_8354_); +l_Lean_Meta_initFn___closed__3____x40_Lean_Meta_SizeOf___hyg_8354_ = _init_l_Lean_Meta_initFn___closed__3____x40_Lean_Meta_SizeOf___hyg_8354_(); +lean_mark_persistent(l_Lean_Meta_initFn___closed__3____x40_Lean_Meta_SizeOf___hyg_8354_); +l_Lean_Meta_initFn___closed__4____x40_Lean_Meta_SizeOf___hyg_8354_ = _init_l_Lean_Meta_initFn___closed__4____x40_Lean_Meta_SizeOf___hyg_8354_(); +lean_mark_persistent(l_Lean_Meta_initFn___closed__4____x40_Lean_Meta_SizeOf___hyg_8354_); +l_Lean_Meta_initFn___closed__5____x40_Lean_Meta_SizeOf___hyg_8354_ = _init_l_Lean_Meta_initFn___closed__5____x40_Lean_Meta_SizeOf___hyg_8354_(); +lean_mark_persistent(l_Lean_Meta_initFn___closed__5____x40_Lean_Meta_SizeOf___hyg_8354_); +l_Lean_Meta_initFn___closed__6____x40_Lean_Meta_SizeOf___hyg_8354_ = _init_l_Lean_Meta_initFn___closed__6____x40_Lean_Meta_SizeOf___hyg_8354_(); +lean_mark_persistent(l_Lean_Meta_initFn___closed__6____x40_Lean_Meta_SizeOf___hyg_8354_); +l_Lean_Meta_initFn___closed__7____x40_Lean_Meta_SizeOf___hyg_8354_ = _init_l_Lean_Meta_initFn___closed__7____x40_Lean_Meta_SizeOf___hyg_8354_(); +lean_mark_persistent(l_Lean_Meta_initFn___closed__7____x40_Lean_Meta_SizeOf___hyg_8354_); +l_Lean_Meta_initFn___closed__8____x40_Lean_Meta_SizeOf___hyg_8354_ = _init_l_Lean_Meta_initFn___closed__8____x40_Lean_Meta_SizeOf___hyg_8354_(); +lean_mark_persistent(l_Lean_Meta_initFn___closed__8____x40_Lean_Meta_SizeOf___hyg_8354_); +l_Lean_Meta_initFn___closed__9____x40_Lean_Meta_SizeOf___hyg_8354_ = _init_l_Lean_Meta_initFn___closed__9____x40_Lean_Meta_SizeOf___hyg_8354_(); +lean_mark_persistent(l_Lean_Meta_initFn___closed__9____x40_Lean_Meta_SizeOf___hyg_8354_); +l_Lean_Meta_initFn___closed__10____x40_Lean_Meta_SizeOf___hyg_8354_ = _init_l_Lean_Meta_initFn___closed__10____x40_Lean_Meta_SizeOf___hyg_8354_(); +lean_mark_persistent(l_Lean_Meta_initFn___closed__10____x40_Lean_Meta_SizeOf___hyg_8354_); +l_Lean_Meta_initFn___closed__11____x40_Lean_Meta_SizeOf___hyg_8354_ = _init_l_Lean_Meta_initFn___closed__11____x40_Lean_Meta_SizeOf___hyg_8354_(); +lean_mark_persistent(l_Lean_Meta_initFn___closed__11____x40_Lean_Meta_SizeOf___hyg_8354_); +if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_8354_(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)); diff --git a/stage0/stdlib/Lean/Meta/Tactic/AuxLemma.c b/stage0/stdlib/Lean/Meta/Tactic/AuxLemma.c index 8c6f70657d..51e0feb423 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/AuxLemma.c +++ b/stage0/stdlib/Lean/Meta/Tactic/AuxLemma.c @@ -13,51 +13,174 @@ #ifdef __cplusplus extern "C" { #endif -static lean_object* l_Lean_Meta_mkAuxLemma___closed__10; LEAN_EXPORT lean_object* l_Lean_Meta_mkAuxLemma___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkAuxDeclName___at___Lean_Meta_mkAuxLemma_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkAuxDeclName___at___Lean_Meta_mkAuxLemma_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_eqv___boxed(lean_object*, lean_object*); +uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); size_t lean_uint64_to_usize(uint64_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Meta_mkAuxLemma_spec__1___redArg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert_spec__0___redArg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_registerEnvExtension___redArg(lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkAuxDeclName___at___Lean_Meta_mkAuxLemma_spec__0___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkAuxLemma___closed__0; LEAN_EXPORT lean_object* l_Lean_mkAuxDeclName___at___Lean_Meta_mkAuxLemma_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_inferDefEqAttr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn___lam__0____x40_Lean_Meta_Tactic_AuxLemma___hyg_45_(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__2___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instInhabitedAuxLemmas; LEAN_EXPORT lean_object* l_Lean_Meta_mkAuxLemma(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint64_t l_Lean_Meta_hashAuxLemmaKey____x40_Lean_Meta_Tactic_AuxLemma___hyg_102_(lean_object*); +static lean_object* l_Lean_Meta_mkAuxLemma___lam__2___closed__1; uint8_t l_List_beq___at___Lean_beqConstantVal____x40_Lean_Declaration___hyg_445__spec__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_beqAuxLemmaKey____x40_Lean_Meta_Tactic_AuxLemma___hyg_28____boxed(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_mkAuxLemma___closed__7; +uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l_Lean_EnvExtension_modifyState___redArg(lean_object*, lean_object*, lean_object*, uint8_t); -static lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg___closed__0; +static lean_object* l_Lean_Meta_instBEqAuxLemmaKey___closed__0; +static lean_object* l_Lean_Meta_mkAuxLemma___lam__2___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_initFn___lam__0____x40_Lean_Meta_Tactic_AuxLemma___hyg_185_(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_mkAuxLemma___lam__2___closed__7; +static lean_object* l_Lean_Meta_instHashableAuxLemmaKey___closed__0; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__2(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_mkAuxLemma___lam__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_mkAuxLemma___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_mkAuxLemma___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_instBEqAuxLemmaKey; +LEAN_EXPORT lean_object* l_Lean_Meta_instHashableAuxLemmaKey; uint64_t l_Lean_Expr_hash(lean_object*); +LEAN_EXPORT uint8_t l_Lean_Meta_beqAuxLemmaKey____x40_Lean_Meta_Tactic_AuxLemma___hyg_28_(lean_object*, lean_object*); uint8_t l_Lean_Environment_hasUnsafe(lean_object*, lean_object*); -lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Meta_recordSynthPendingFailure_spec__4___redArg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_mkAuxLemma___lam__2___closed__6; static lean_object* l_Lean_Meta_instInhabitedAuxLemmas___closed__1; static lean_object* l_Lean_Meta_instInhabitedAuxLemmas___closed__0; lean_object* l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg(lean_object*, lean_object*, lean_object*, uint8_t); -static lean_object* l_Lean_Meta_mkAuxLemma___closed__8; +LEAN_EXPORT lean_object* l_Lean_Meta_mkAuxLemma___lam__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*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Meta_mkAuxLemma_spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkAuxLemma___closed__2; lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f_spec__0___redArg(lean_object*, lean_object*, size_t, lean_object*); +static lean_object* l_Lean_Meta_mkAuxLemma___lam__2___closed__0; +LEAN_EXPORT lean_object* l_Lean_Meta_mkAuxLemma___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_mkAuxLemma___lam__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_auxLemmasExt; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_mkAuxLemma___lam__2___closed__5; lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_hashAuxLemmaKey____x40_Lean_Meta_Tactic_AuxLemma___hyg_102____boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_AuxLemma___hyg_185_(lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr1(lean_object*); -static lean_object* l_Lean_Meta_mkAuxLemma___closed__9; lean_object* l_Lean_DeclNameGenerator_mkUniqueName(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_mkAuxLemma___closed__4; -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_AuxLemma___hyg_45_(lean_object*); -static lean_object* l_Lean_Meta_mkAuxLemma___closed__6; -static lean_object* l_Lean_Meta_mkAuxLemma___closed__5; static lean_object* l_Lean_Meta_mkAuxLemma___closed__1; lean_object* l_Lean_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Meta_beqAuxLemmaKey____x40_Lean_Meta_Tactic_AuxLemma___hyg_28_(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); +x_5 = lean_ctor_get(x_2, 0); +x_6 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +x_7 = lean_expr_eqv(x_3, x_5); +if (x_7 == 0) +{ +return x_7; +} +else +{ +if (x_4 == 0) +{ +if (x_6 == 0) +{ +return x_7; +} +else +{ +return x_4; +} +} +else +{ +return x_6; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_beqAuxLemmaKey____x40_Lean_Meta_Tactic_AuxLemma___hyg_28____boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Meta_beqAuxLemmaKey____x40_Lean_Meta_Tactic_AuxLemma___hyg_28_(x_1, x_2); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Meta_instBEqAuxLemmaKey___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_beqAuxLemmaKey____x40_Lean_Meta_Tactic_AuxLemma___hyg_28____boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_instBEqAuxLemmaKey() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_instBEqAuxLemmaKey___closed__0; +return x_1; +} +} +LEAN_EXPORT uint64_t l_Lean_Meta_hashAuxLemmaKey____x40_Lean_Meta_Tactic_AuxLemma___hyg_102_(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; uint64_t x_4; uint64_t x_5; uint64_t x_6; +x_2 = lean_ctor_get(x_1, 0); +x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); +x_4 = 0; +x_5 = l_Lean_Expr_hash(x_2); +x_6 = lean_uint64_mix_hash(x_4, x_5); +if (x_3 == 0) +{ +uint64_t x_7; uint64_t x_8; +x_7 = 13; +x_8 = lean_uint64_mix_hash(x_6, x_7); +return x_8; +} +else +{ +uint64_t x_9; uint64_t x_10; +x_9 = 11; +x_10 = lean_uint64_mix_hash(x_6, x_9); +return x_10; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_hashAuxLemmaKey____x40_Lean_Meta_Tactic_AuxLemma___hyg_102____boxed(lean_object* x_1) { +_start: +{ +uint64_t x_2; lean_object* x_3; +x_2 = l_Lean_Meta_hashAuxLemmaKey____x40_Lean_Meta_Tactic_AuxLemma___hyg_102_(x_1); +lean_dec_ref(x_1); +x_3 = lean_box_uint64(x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_instHashableAuxLemmaKey___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_hashAuxLemmaKey____x40_Lean_Meta_Tactic_AuxLemma___hyg_102____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_instHashableAuxLemmaKey() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_instHashableAuxLemmaKey___closed__0; +return x_1; +} +} static lean_object* _init_l_Lean_Meta_instInhabitedAuxLemmas___closed__0() { _start: { @@ -84,7 +207,7 @@ x_1 = l_Lean_Meta_instInhabitedAuxLemmas___closed__1; return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn___lam__0____x40_Lean_Meta_Tactic_AuxLemma___hyg_45_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn___lam__0____x40_Lean_Meta_Tactic_AuxLemma___hyg_185_(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -94,12 +217,12 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_AuxLemma___hyg_45_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_AuxLemma___hyg_185_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; x_2 = l_Lean_Meta_instInhabitedAuxLemmas___closed__1; -x_3 = lean_alloc_closure((void*)(l_Lean_Meta_initFn___lam__0____x40_Lean_Meta_Tactic_AuxLemma___hyg_45_), 2, 1); +x_3 = lean_alloc_closure((void*)(l_Lean_Meta_initFn___lam__0____x40_Lean_Meta_Tactic_AuxLemma___hyg_185_), 2, 1); lean_closure_set(x_3, 0, x_2); x_4 = lean_box(0); x_5 = 1; @@ -230,30 +353,43 @@ x_7 = l_Lean_mkAuxDeclName___at___Lean_Meta_mkAuxLemma_spec__0___redArg(x_1, x_5 return x_7; } } -static lean_object* _init_l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg___closed__0() { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Meta_mkAuxLemma_spec__1___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Expr_eqv___boxed), 2, 0); -return x_1; +lean_object* x_4; lean_object* x_5; uint64_t x_6; size_t x_7; size_t x_8; lean_object* x_9; +x_4 = l_Lean_Meta_instBEqAuxLemmaKey___closed__0; +x_5 = l_Lean_Meta_instHashableAuxLemmaKey___closed__0; +x_6 = l_Lean_Meta_hashAuxLemmaKey____x40_Lean_Meta_Tactic_AuxLemma___hyg_102_(x_2); +x_7 = lean_uint64_to_usize(x_6); +x_8 = 1; +x_9 = l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert_spec__0___redArg(x_4, x_5, x_1, x_7, x_8, x_2, x_3); +return x_9; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Meta_mkAuxLemma_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_2, x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__2___redArg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint64_t x_4; size_t x_5; lean_object* x_6; -x_3 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg___closed__0; -x_4 = l_Lean_Expr_hash(x_2); +x_3 = l_Lean_Meta_instBEqAuxLemmaKey___closed__0; +x_4 = l_Lean_Meta_hashAuxLemmaKey____x40_Lean_Meta_Tactic_AuxLemma___hyg_102_(x_2); x_5 = lean_uint64_to_usize(x_4); x_6 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f_spec__0___redArg(x_3, x_1, x_5, x_2); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_2, x_3); +x_4 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__2___redArg(x_2, x_3); return x_4; } } @@ -264,10 +400,497 @@ lean_object* x_5; lean_object* x_6; x_5 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); -x_6 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_recordSynthPendingFailure_spec__4___redArg(x_4, x_3, x_5); +x_6 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_4, x_3, x_5); return x_6; } } +static lean_object* _init_l_Lean_Meta_mkAuxLemma___lam__2___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_mkAuxLemma___lam__2___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_mkAuxLemma___lam__2___closed__0; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_mkAuxLemma___lam__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_mkAuxLemma___lam__2___closed__1; +x_2 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_mkAuxLemma___lam__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_mkAuxLemma___lam__2___closed__0; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_mkAuxLemma___lam__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_mkAuxLemma___lam__2___closed__0; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_mkAuxLemma___lam__2___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_mkAuxLemma___lam__2___closed__0; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_mkAuxLemma___lam__2___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_mkAuxLemma___lam__2___closed__0; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_mkAuxLemma___lam__2___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_Lean_Meta_mkAuxLemma___lam__2___closed__6; +x_2 = l_Lean_Meta_mkAuxLemma___lam__2___closed__5; +x_3 = l_Lean_Meta_mkAuxLemma___lam__2___closed__4; +x_4 = l_Lean_Meta_mkAuxLemma___lam__2___closed__3; +x_5 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_2); +lean_ctor_set(x_5, 3, x_4); +lean_ctor_set(x_5, 4, x_1); +lean_ctor_set(x_5, 5, x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_mkAuxLemma___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_82; uint8_t x_97; uint8_t x_111; +x_15 = l_Lean_mkAuxDeclName___at___Lean_Meta_mkAuxLemma_spec__0___redArg(x_1, x_13, x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +if (lean_is_exclusive(x_15)) { + lean_ctor_release(x_15, 0); + lean_ctor_release(x_15, 1); + x_18 = x_15; +} else { + lean_dec_ref(x_15); + x_18 = lean_box(0); +} +lean_inc(x_2); +lean_inc(x_16); +x_19 = lean_alloc_closure((void*)(l_Lean_Meta_mkAuxLemma___lam__0), 4, 3); +lean_closure_set(x_19, 0, x_16); +lean_closure_set(x_19, 1, x_2); +lean_closure_set(x_19, 2, x_3); +lean_inc_ref(x_9); +x_111 = l_Lean_Environment_hasUnsafe(x_9, x_7); +if (x_111 == 0) +{ +uint8_t x_112; +x_112 = l_Lean_Environment_hasUnsafe(x_9, x_8); +x_97 = x_112; +goto block_110; +} +else +{ +lean_dec_ref(x_9); +x_97 = x_111; +goto block_110; +} +block_81: +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_st_ref_take(x_21, x_22); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec_ref(x_23); +x_26 = !lean_is_exclusive(x_24); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_27 = lean_ctor_get(x_24, 0); +x_28 = lean_ctor_get(x_24, 5); +lean_dec(x_28); +x_29 = l_Lean_EnvExtension_modifyState___redArg(x_4, x_27, x_19, x_5); +x_30 = l_Lean_Meta_mkAuxLemma___lam__2___closed__2; +lean_ctor_set(x_24, 5, x_30); +lean_ctor_set(x_24, 0, x_29); +x_31 = lean_st_ref_set(x_21, x_24, x_25); +lean_dec(x_21); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec_ref(x_31); +x_33 = lean_st_ref_take(x_20, x_32); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec_ref(x_33); +x_36 = !lean_is_exclusive(x_34); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_37 = lean_ctor_get(x_34, 1); +lean_dec(x_37); +x_38 = l_Lean_Meta_mkAuxLemma___lam__2___closed__7; +lean_ctor_set(x_34, 1, x_38); +x_39 = lean_st_ref_set(x_20, x_34, x_35); +lean_dec(x_20); +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) +{ +lean_object* x_41; +x_41 = lean_ctor_get(x_39, 0); +lean_dec(x_41); +lean_ctor_set(x_39, 0, x_16); +return x_39; +} +else +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_16); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_44 = lean_ctor_get(x_34, 0); +x_45 = lean_ctor_get(x_34, 2); +x_46 = lean_ctor_get(x_34, 3); +x_47 = lean_ctor_get(x_34, 4); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_34); +x_48 = l_Lean_Meta_mkAuxLemma___lam__2___closed__7; +x_49 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_49, 0, x_44); +lean_ctor_set(x_49, 1, x_48); +lean_ctor_set(x_49, 2, x_45); +lean_ctor_set(x_49, 3, x_46); +lean_ctor_set(x_49, 4, x_47); +x_50 = lean_st_ref_set(x_20, x_49, x_35); +lean_dec(x_20); +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_52 = x_50; +} else { + lean_dec_ref(x_50); + x_52 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(0, 2, 0); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_16); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +} +else +{ +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; +x_54 = lean_ctor_get(x_24, 0); +x_55 = lean_ctor_get(x_24, 1); +x_56 = lean_ctor_get(x_24, 2); +x_57 = lean_ctor_get(x_24, 3); +x_58 = lean_ctor_get(x_24, 4); +x_59 = lean_ctor_get(x_24, 6); +x_60 = lean_ctor_get(x_24, 7); +x_61 = lean_ctor_get(x_24, 8); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_inc(x_56); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_24); +x_62 = l_Lean_EnvExtension_modifyState___redArg(x_4, x_54, x_19, x_5); +x_63 = l_Lean_Meta_mkAuxLemma___lam__2___closed__2; +x_64 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_55); +lean_ctor_set(x_64, 2, x_56); +lean_ctor_set(x_64, 3, x_57); +lean_ctor_set(x_64, 4, x_58); +lean_ctor_set(x_64, 5, x_63); +lean_ctor_set(x_64, 6, x_59); +lean_ctor_set(x_64, 7, x_60); +lean_ctor_set(x_64, 8, x_61); +x_65 = lean_st_ref_set(x_21, x_64, x_25); +lean_dec(x_21); +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +lean_dec_ref(x_65); +x_67 = lean_st_ref_take(x_20, x_66); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec_ref(x_67); +x_70 = lean_ctor_get(x_68, 0); +lean_inc_ref(x_70); +x_71 = lean_ctor_get(x_68, 2); +lean_inc(x_71); +x_72 = lean_ctor_get(x_68, 3); +lean_inc_ref(x_72); +x_73 = lean_ctor_get(x_68, 4); +lean_inc_ref(x_73); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + lean_ctor_release(x_68, 2); + lean_ctor_release(x_68, 3); + lean_ctor_release(x_68, 4); + x_74 = x_68; +} else { + lean_dec_ref(x_68); + x_74 = lean_box(0); +} +x_75 = l_Lean_Meta_mkAuxLemma___lam__2___closed__7; +if (lean_is_scalar(x_74)) { + x_76 = lean_alloc_ctor(0, 5, 0); +} else { + x_76 = x_74; +} +lean_ctor_set(x_76, 0, x_70); +lean_ctor_set(x_76, 1, x_75); +lean_ctor_set(x_76, 2, x_71); +lean_ctor_set(x_76, 3, x_72); +lean_ctor_set(x_76, 4, x_73); +x_77 = lean_st_ref_set(x_20, x_76, x_69); +lean_dec(x_20); +x_78 = lean_ctor_get(x_77, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_79 = x_77; +} else { + lean_dec_ref(x_77); + x_79 = lean_box(0); +} +if (lean_is_scalar(x_79)) { + x_80 = lean_alloc_ctor(0, 2, 0); +} else { + x_80 = x_79; +} +lean_ctor_set(x_80, 0, x_16); +lean_ctor_set(x_80, 1, x_78); +return x_80; +} +} +block_96: +{ +lean_object* x_83; +lean_inc(x_13); +lean_inc_ref(x_12); +x_83 = l_Lean_addDecl(x_82, x_12, x_13, x_17); +if (lean_obj_tag(x_83) == 0) +{ +if (x_6 == 0) +{ +lean_object* x_84; +lean_dec_ref(x_12); +lean_dec_ref(x_10); +x_84 = lean_ctor_get(x_83, 1); +lean_inc(x_84); +lean_dec_ref(x_83); +x_20 = x_11; +x_21 = x_13; +x_22 = x_84; +goto block_81; +} +else +{ +lean_object* x_85; lean_object* x_86; +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec_ref(x_83); +lean_inc(x_13); +lean_inc(x_11); +lean_inc(x_16); +x_86 = l_Lean_inferDefEqAttr(x_16, x_10, x_11, x_12, x_13, x_85); +if (lean_obj_tag(x_86) == 0) +{ +lean_object* x_87; +x_87 = lean_ctor_get(x_86, 1); +lean_inc(x_87); +lean_dec_ref(x_86); +x_20 = x_11; +x_21 = x_13; +x_22 = x_87; +goto block_81; +} +else +{ +uint8_t x_88; +lean_dec_ref(x_19); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_11); +lean_dec_ref(x_4); +x_88 = !lean_is_exclusive(x_86); +if (x_88 == 0) +{ +return x_86; +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_86, 0); +x_90 = lean_ctor_get(x_86, 1); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_86); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +return x_91; +} +} +} +} +else +{ +uint8_t x_92; +lean_dec_ref(x_19); +lean_dec(x_16); +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec_ref(x_4); +x_92 = !lean_is_exclusive(x_83); +if (x_92 == 0) +{ +return x_83; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_83, 0); +x_94 = lean_ctor_get(x_83, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_83); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +} +block_110: +{ +if (x_97 == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_inc(x_16); +x_98 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_98, 0, x_16); +lean_ctor_set(x_98, 1, x_2); +lean_ctor_set(x_98, 2, x_7); +x_99 = lean_box(0); +lean_inc(x_16); +if (lean_is_scalar(x_18)) { + x_100 = lean_alloc_ctor(1, 2, 0); +} else { + x_100 = x_18; + lean_ctor_set_tag(x_100, 1); +} +lean_ctor_set(x_100, 0, x_16); +lean_ctor_set(x_100, 1, x_99); +x_101 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_101, 0, x_98); +lean_ctor_set(x_101, 1, x_8); +lean_ctor_set(x_101, 2, x_100); +x_102 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_102, 0, x_101); +x_82 = x_102; +goto block_96; +} +else +{ +lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_inc(x_16); +x_103 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_103, 0, x_16); +lean_ctor_set(x_103, 1, x_2); +lean_ctor_set(x_103, 2, x_7); +x_104 = lean_box(0); +x_105 = 0; +x_106 = lean_box(0); +lean_inc(x_16); +if (lean_is_scalar(x_18)) { + x_107 = lean_alloc_ctor(1, 2, 0); +} else { + x_107 = x_18; + lean_ctor_set_tag(x_107, 1); +} +lean_ctor_set(x_107, 0, x_16); +lean_ctor_set(x_107, 1, x_106); +x_108 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_108, 0, x_103); +lean_ctor_set(x_108, 1, x_8); +lean_ctor_set(x_108, 2, x_104); +lean_ctor_set(x_108, 3, x_107); +lean_ctor_set_uint8(x_108, sizeof(void*)*4, x_105); +x_109 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_109, 0, x_108); +x_82 = x_109; +goto block_96; +} +} +} +} static lean_object* _init_l_Lean_Meta_mkAuxLemma___closed__0() { _start: { @@ -280,7 +903,7 @@ static lean_object* _init_l_Lean_Meta_mkAuxLemma___closed__1() { _start: { lean_object* x_1; -x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); +x_1 = lean_mk_string_unchecked("_proof", 6, 6); return x_1; } } @@ -289,93 +912,6 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Meta_mkAuxLemma___closed__1; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_mkAuxLemma___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_mkAuxLemma___closed__2; -x_2 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2, 0, x_1); -lean_ctor_set(x_2, 1, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_mkAuxLemma___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_mkAuxLemma___closed__1; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_mkAuxLemma___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_mkAuxLemma___closed__1; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_mkAuxLemma___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_mkAuxLemma___closed__1; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_mkAuxLemma___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_mkAuxLemma___closed__1; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_mkAuxLemma___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_mkAuxLemma___closed__7; -x_2 = l_Lean_Meta_mkAuxLemma___closed__6; -x_3 = l_Lean_Meta_mkAuxLemma___closed__5; -x_4 = l_Lean_Meta_mkAuxLemma___closed__4; -x_5 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_5, 0, x_4); -lean_ctor_set(x_5, 1, x_3); -lean_ctor_set(x_5, 2, x_2); -lean_ctor_set(x_5, 3, x_4); -lean_ctor_set(x_5, 4, x_1); -lean_ctor_set(x_5, 5, x_1); -return x_5; -} -} -static lean_object* _init_l_Lean_Meta_mkAuxLemma___closed__9() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("_proof", 6, 6); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_mkAuxLemma___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_mkAuxLemma___closed__9; x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } @@ -383,7 +919,7 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Meta_mkAuxLemma(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t 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_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; 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_238; lean_object* x_239; lean_object* x_240; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t 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_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; uint8_t x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_140; lean_object* x_141; lean_object* x_142; uint8_t x_163; x_12 = lean_st_ref_get(x_10, x_11); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); @@ -402,24 +938,23 @@ lean_inc_ref(x_16); lean_dec(x_13); x_17 = l_Lean_Meta_mkAuxLemma___closed__0; x_18 = lean_ctor_get_uint8(x_17, sizeof(void*)*3); -x_238 = l_Lean_Meta_instInhabitedAuxLemmas; +x_118 = lean_ctor_get_uint8(x_16, sizeof(void*)*8); +x_119 = l_Lean_Meta_instInhabitedAuxLemmas; lean_inc_ref(x_16); -x_239 = l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg(x_238, x_17, x_16, x_18); -if (lean_obj_tag(x_4) == 0) +x_120 = l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg(x_119, x_17, x_16, x_18); +if (x_118 == 0) { -lean_object* x_254; -x_254 = l_Lean_Meta_mkAuxLemma___closed__10; -x_240 = x_254; -goto block_253; +uint8_t x_168; +x_168 = 1; +x_163 = x_168; +goto block_167; } else { -lean_object* x_255; -x_255 = lean_ctor_get(x_4, 0); -lean_inc(x_255); -lean_dec(x_4); -x_240 = x_255; -goto block_253; +uint8_t x_169; +x_169 = 0; +x_163 = x_169; +goto block_167; } block_82: { @@ -438,7 +973,7 @@ x_28 = lean_ctor_get(x_25, 0); x_29 = lean_ctor_get(x_25, 5); lean_dec(x_29); x_30 = l_Lean_EnvExtension_modifyState___redArg(x_17, x_28, x_19, x_18); -x_31 = l_Lean_Meta_mkAuxLemma___closed__3; +x_31 = l_Lean_Meta_mkAuxLemma___lam__2___closed__2; lean_ctor_set(x_25, 5, x_31); lean_ctor_set(x_25, 0, x_30); x_32 = lean_st_ref_set(x_22, x_25, x_26); @@ -458,7 +993,7 @@ if (x_37 == 0) lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; x_38 = lean_ctor_get(x_35, 1); lean_dec(x_38); -x_39 = l_Lean_Meta_mkAuxLemma___closed__8; +x_39 = l_Lean_Meta_mkAuxLemma___lam__2___closed__7; lean_ctor_set(x_35, 1, x_39); x_40 = lean_st_ref_set(x_21, x_35, x_36); lean_dec(x_21); @@ -495,7 +1030,7 @@ lean_inc(x_47); lean_inc(x_46); lean_inc(x_45); lean_dec(x_35); -x_49 = l_Lean_Meta_mkAuxLemma___closed__8; +x_49 = l_Lean_Meta_mkAuxLemma___lam__2___closed__7; x_50 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_50, 0, x_45); lean_ctor_set(x_50, 1, x_49); @@ -545,7 +1080,7 @@ lean_inc(x_56); lean_inc(x_55); lean_dec(x_25); x_63 = l_Lean_EnvExtension_modifyState___redArg(x_17, x_55, x_19, x_18); -x_64 = l_Lean_Meta_mkAuxLemma___closed__3; +x_64 = l_Lean_Meta_mkAuxLemma___lam__2___closed__2; x_65 = lean_alloc_ctor(0, 9, 0); lean_ctor_set(x_65, 0, x_63); lean_ctor_set(x_65, 1, x_56); @@ -586,7 +1121,7 @@ if (lean_is_exclusive(x_69)) { lean_dec_ref(x_69); x_75 = lean_box(0); } -x_76 = l_Lean_Meta_mkAuxLemma___closed__8; +x_76 = l_Lean_Meta_mkAuxLemma___lam__2___closed__7; if (lean_is_scalar(x_75)) { x_77 = lean_alloc_ctor(0, 5, 0); } else { @@ -624,7 +1159,7 @@ block_100: lean_object* x_87; lean_inc(x_10); lean_inc_ref(x_9); -x_87 = l_Lean_addDecl(x_86, x_9, x_10, x_85); +x_87 = l_Lean_addDecl(x_86, x_9, x_10, x_84); if (lean_obj_tag(x_87) == 0) { if (x_6 == 0) @@ -636,7 +1171,7 @@ x_88 = lean_ctor_get(x_87, 1); lean_inc(x_88); lean_dec_ref(x_87); x_19 = x_83; -x_20 = x_84; +x_20 = x_85; x_21 = x_8; x_22 = x_10; x_23 = x_88; @@ -650,8 +1185,8 @@ lean_inc(x_89); lean_dec_ref(x_87); lean_inc(x_10); lean_inc(x_8); -lean_inc(x_84); -x_90 = l_Lean_inferDefEqAttr(x_84, x_7, x_8, x_9, x_10, x_89); +lean_inc(x_85); +x_90 = l_Lean_inferDefEqAttr(x_85, x_7, x_8, x_9, x_10, x_89); if (lean_obj_tag(x_90) == 0) { lean_object* x_91; @@ -659,7 +1194,7 @@ x_91 = lean_ctor_get(x_90, 1); lean_inc(x_91); lean_dec_ref(x_90); x_19 = x_83; -x_20 = x_84; +x_20 = x_85; x_21 = x_8; x_22 = x_10; x_23 = x_91; @@ -668,7 +1203,7 @@ goto block_82; else { uint8_t x_92; -lean_dec(x_84); +lean_dec(x_85); lean_dec(x_83); lean_dec(x_10); lean_dec(x_8); @@ -696,7 +1231,7 @@ return x_95; else { uint8_t x_96; -lean_dec(x_84); +lean_dec(x_85); lean_dec(x_83); lean_dec(x_10); lean_dec_ref(x_9); @@ -727,15 +1262,15 @@ block_117: if (x_104 == 0) { lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -lean_inc(x_102); +lean_inc(x_103); x_105 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 0, x_103); lean_ctor_set(x_105, 1, x_1); lean_ctor_set(x_105, 2, x_2); x_106 = lean_box(0); -lean_inc(x_102); +lean_inc(x_103); x_107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_107, 0, x_102); +lean_ctor_set(x_107, 0, x_103); lean_ctor_set(x_107, 1, x_106); x_108 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_108, 0, x_105); @@ -743,8 +1278,8 @@ lean_ctor_set(x_108, 1, x_3); lean_ctor_set(x_108, 2, x_107); x_109 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_109, 0, x_108); -x_83 = x_101; -x_84 = x_102; +x_83 = x_102; +x_84 = x_101; x_85 = x_103; x_86 = x_109; goto block_100; @@ -752,17 +1287,17 @@ goto block_100; else { lean_object* x_110; lean_object* x_111; uint8_t x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -lean_inc(x_102); +lean_inc(x_103); x_110 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_110, 0, x_102); +lean_ctor_set(x_110, 0, x_103); lean_ctor_set(x_110, 1, x_1); lean_ctor_set(x_110, 2, x_2); x_111 = lean_box(0); x_112 = 0; x_113 = lean_box(0); -lean_inc(x_102); +lean_inc(x_103); x_114 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_114, 0, x_102); +lean_ctor_set(x_114, 0, x_103); lean_ctor_set(x_114, 1, x_113); x_115 = lean_alloc_ctor(0, 4, 1); lean_ctor_set(x_115, 0, x_110); @@ -772,533 +1307,269 @@ lean_ctor_set(x_115, 3, x_114); lean_ctor_set_uint8(x_115, sizeof(void*)*4, x_112); x_116 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_116, 0, x_115); -x_83 = x_101; -x_84 = x_102; +x_83 = x_102; +x_84 = x_101; x_85 = x_103; x_86 = x_116; goto block_100; } } -block_181: +block_139: { -lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; -x_123 = lean_st_ref_take(x_121, x_122); -x_124 = lean_ctor_get(x_123, 0); -lean_inc(x_124); -x_125 = lean_ctor_get(x_123, 1); -lean_inc(x_125); -lean_dec_ref(x_123); -x_126 = !lean_is_exclusive(x_124); -if (x_126 == 0) +if (x_121 == 0) { -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; -x_127 = lean_ctor_get(x_124, 0); -x_128 = lean_ctor_get(x_124, 5); -lean_dec(x_128); -x_129 = l_Lean_EnvExtension_modifyState___redArg(x_17, x_127, x_119, x_18); -x_130 = l_Lean_Meta_mkAuxLemma___closed__3; -lean_ctor_set(x_124, 5, x_130); -lean_ctor_set(x_124, 0, x_129); -x_131 = lean_st_ref_set(x_121, x_124, x_125); -lean_dec(x_121); -x_132 = lean_ctor_get(x_131, 1); -lean_inc(x_132); -lean_dec_ref(x_131); -x_133 = lean_st_ref_take(x_120, x_132); +lean_object* x_128; +lean_dec(x_120); +lean_dec(x_15); +lean_dec_ref(x_2); +lean_dec(x_1); +x_128 = lean_apply_5(x_122, x_123, x_124, x_125, x_126, x_127); +return x_128; +} +else +{ +uint8_t x_129; lean_object* x_130; lean_object* x_131; +x_129 = 0; +x_130 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_130, 0, x_2); +lean_ctor_set_uint8(x_130, sizeof(void*)*1, x_129); +x_131 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__2___redArg(x_120, x_130); +if (lean_obj_tag(x_131) == 0) +{ +lean_object* x_132; +lean_dec(x_15); +lean_dec(x_1); +x_132 = lean_apply_5(x_122, x_123, x_124, x_125, x_126, x_127); +return x_132; +} +else +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_133 = lean_ctor_get(x_131, 0); +lean_inc(x_133); +lean_dec(x_131); x_134 = lean_ctor_get(x_133, 0); lean_inc(x_134); x_135 = lean_ctor_get(x_133, 1); lean_inc(x_135); -lean_dec_ref(x_133); -x_136 = !lean_is_exclusive(x_134); +lean_dec(x_133); +x_136 = l_List_beq___at___Lean_beqConstantVal____x40_Lean_Declaration___hyg_445__spec__0(x_1, x_135); +lean_dec(x_135); +lean_dec(x_1); if (x_136 == 0) { -lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; -x_137 = lean_ctor_get(x_134, 1); -lean_dec(x_137); -x_138 = l_Lean_Meta_mkAuxLemma___closed__8; -lean_ctor_set(x_134, 1, x_138); -x_139 = lean_st_ref_set(x_120, x_134, x_135); -lean_dec(x_120); -x_140 = !lean_is_exclusive(x_139); -if (x_140 == 0) -{ -lean_object* x_141; -x_141 = lean_ctor_get(x_139, 0); -lean_dec(x_141); -lean_ctor_set(x_139, 0, x_118); -return x_139; -} -else -{ -lean_object* x_142; lean_object* x_143; -x_142 = lean_ctor_get(x_139, 1); -lean_inc(x_142); -lean_dec(x_139); -x_143 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_143, 0, x_118); -lean_ctor_set(x_143, 1, x_142); -return x_143; -} -} -else -{ -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; -x_144 = lean_ctor_get(x_134, 0); -x_145 = lean_ctor_get(x_134, 2); -x_146 = lean_ctor_get(x_134, 3); -x_147 = lean_ctor_get(x_134, 4); -lean_inc(x_147); -lean_inc(x_146); -lean_inc(x_145); -lean_inc(x_144); +lean_object* x_137; lean_dec(x_134); -x_148 = l_Lean_Meta_mkAuxLemma___closed__8; -x_149 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_149, 0, x_144); -lean_ctor_set(x_149, 1, x_148); -lean_ctor_set(x_149, 2, x_145); -lean_ctor_set(x_149, 3, x_146); -lean_ctor_set(x_149, 4, x_147); -x_150 = lean_st_ref_set(x_120, x_149, x_135); +lean_dec(x_15); +x_137 = lean_apply_5(x_122, x_123, x_124, x_125, x_126, x_127); +return x_137; +} +else +{ +lean_object* x_138; +lean_dec(x_126); +lean_dec_ref(x_125); +lean_dec(x_124); +lean_dec_ref(x_123); +lean_dec(x_122); +if (lean_is_scalar(x_15)) { + x_138 = lean_alloc_ctor(0, 2, 0); +} else { + x_138 = x_15; +} +lean_ctor_set(x_138, 0, x_134); +lean_ctor_set(x_138, 1, x_127); +return x_138; +} +} +} +} +block_162: +{ +if (x_5 == 0) +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; uint8_t x_147; lean_dec(x_120); -x_151 = lean_ctor_get(x_150, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_152 = x_150; -} else { - lean_dec_ref(x_150); - x_152 = lean_box(0); +lean_dec(x_15); +x_143 = l_Lean_mkAuxDeclName___at___Lean_Meta_mkAuxLemma_spec__0___redArg(x_142, x_10, x_14); +x_144 = lean_ctor_get(x_143, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_143, 1); +lean_inc(x_145); +lean_dec_ref(x_143); +lean_inc(x_1); +lean_inc(x_144); +x_146 = lean_alloc_closure((void*)(l_Lean_Meta_mkAuxLemma___lam__0), 4, 3); +lean_closure_set(x_146, 0, x_144); +lean_closure_set(x_146, 1, x_1); +lean_closure_set(x_146, 2, x_141); +lean_inc_ref(x_16); +x_147 = l_Lean_Environment_hasUnsafe(x_16, x_2); +if (x_147 == 0) +{ +uint8_t x_148; +x_148 = l_Lean_Environment_hasUnsafe(x_16, x_3); +x_101 = x_145; +x_102 = x_146; +x_103 = x_144; +x_104 = x_148; +goto block_117; } -if (lean_is_scalar(x_152)) { - x_153 = lean_alloc_ctor(0, 2, 0); -} else { - x_153 = x_152; +else +{ +lean_dec_ref(x_16); +x_101 = x_145; +x_102 = x_146; +x_103 = x_144; +x_104 = x_147; +goto block_117; } -lean_ctor_set(x_153, 0, x_118); -lean_ctor_set(x_153, 1, x_151); +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_149 = lean_box(x_18); +x_150 = lean_box(x_6); +lean_inc_ref(x_2); +lean_inc_ref(x_141); +lean_inc(x_1); +x_151 = lean_alloc_closure((void*)(l_Lean_Meta_mkAuxLemma___lam__2___boxed), 14, 9); +lean_closure_set(x_151, 0, x_142); +lean_closure_set(x_151, 1, x_1); +lean_closure_set(x_151, 2, x_141); +lean_closure_set(x_151, 3, x_17); +lean_closure_set(x_151, 4, x_149); +lean_closure_set(x_151, 5, x_150); +lean_closure_set(x_151, 6, x_2); +lean_closure_set(x_151, 7, x_3); +lean_closure_set(x_151, 8, x_16); +lean_inc(x_120); +x_152 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__2___redArg(x_120, x_141); +if (lean_obj_tag(x_152) == 0) +{ +x_121 = x_140; +x_122 = x_151; +x_123 = x_7; +x_124 = x_8; +x_125 = x_9; +x_126 = x_10; +x_127 = x_14; +goto block_139; +} +else +{ +lean_object* x_153; uint8_t x_154; +x_153 = lean_ctor_get(x_152, 0); +lean_inc(x_153); +lean_dec(x_152); +x_154 = !lean_is_exclusive(x_153); +if (x_154 == 0) +{ +lean_object* x_155; lean_object* x_156; uint8_t x_157; +x_155 = lean_ctor_get(x_153, 0); +x_156 = lean_ctor_get(x_153, 1); +x_157 = l_List_beq___at___Lean_beqConstantVal____x40_Lean_Declaration___hyg_445__spec__0(x_1, x_156); +lean_dec(x_156); +if (x_157 == 0) +{ +lean_free_object(x_153); +lean_dec(x_155); +x_121 = x_140; +x_122 = x_151; +x_123 = x_7; +x_124 = x_8; +x_125 = x_9; +x_126 = x_10; +x_127 = x_14; +goto block_139; +} +else +{ +lean_dec_ref(x_151); +lean_dec(x_120); +lean_dec(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_2); +lean_dec(x_1); +lean_ctor_set(x_153, 1, x_14); return x_153; } } else { -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; -x_154 = lean_ctor_get(x_124, 0); -x_155 = lean_ctor_get(x_124, 1); -x_156 = lean_ctor_get(x_124, 2); -x_157 = lean_ctor_get(x_124, 3); -x_158 = lean_ctor_get(x_124, 4); -x_159 = lean_ctor_get(x_124, 6); -x_160 = lean_ctor_get(x_124, 7); -x_161 = lean_ctor_get(x_124, 8); -lean_inc(x_161); -lean_inc(x_160); +lean_object* x_158; lean_object* x_159; uint8_t x_160; +x_158 = lean_ctor_get(x_153, 0); +x_159 = lean_ctor_get(x_153, 1); lean_inc(x_159); lean_inc(x_158); -lean_inc(x_157); -lean_inc(x_156); -lean_inc(x_155); -lean_inc(x_154); -lean_dec(x_124); -x_162 = l_Lean_EnvExtension_modifyState___redArg(x_17, x_154, x_119, x_18); -x_163 = l_Lean_Meta_mkAuxLemma___closed__3; -x_164 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_164, 0, x_162); -lean_ctor_set(x_164, 1, x_155); -lean_ctor_set(x_164, 2, x_156); -lean_ctor_set(x_164, 3, x_157); -lean_ctor_set(x_164, 4, x_158); -lean_ctor_set(x_164, 5, x_163); -lean_ctor_set(x_164, 6, x_159); -lean_ctor_set(x_164, 7, x_160); -lean_ctor_set(x_164, 8, x_161); -x_165 = lean_st_ref_set(x_121, x_164, x_125); -lean_dec(x_121); -x_166 = lean_ctor_get(x_165, 1); -lean_inc(x_166); -lean_dec_ref(x_165); -x_167 = lean_st_ref_take(x_120, x_166); -x_168 = lean_ctor_get(x_167, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 1); -lean_inc(x_169); -lean_dec_ref(x_167); -x_170 = lean_ctor_get(x_168, 0); -lean_inc_ref(x_170); -x_171 = lean_ctor_get(x_168, 2); -lean_inc(x_171); -x_172 = lean_ctor_get(x_168, 3); -lean_inc_ref(x_172); -x_173 = lean_ctor_get(x_168, 4); -lean_inc_ref(x_173); -if (lean_is_exclusive(x_168)) { - lean_ctor_release(x_168, 0); - lean_ctor_release(x_168, 1); - lean_ctor_release(x_168, 2); - lean_ctor_release(x_168, 3); - lean_ctor_release(x_168, 4); - x_174 = x_168; -} else { - lean_dec_ref(x_168); - x_174 = lean_box(0); +lean_dec(x_153); +x_160 = l_List_beq___at___Lean_beqConstantVal____x40_Lean_Declaration___hyg_445__spec__0(x_1, x_159); +lean_dec(x_159); +if (x_160 == 0) +{ +lean_dec(x_158); +x_121 = x_140; +x_122 = x_151; +x_123 = x_7; +x_124 = x_8; +x_125 = x_9; +x_126 = x_10; +x_127 = x_14; +goto block_139; } -x_175 = l_Lean_Meta_mkAuxLemma___closed__8; -if (lean_is_scalar(x_174)) { - x_176 = lean_alloc_ctor(0, 5, 0); -} else { - x_176 = x_174; -} -lean_ctor_set(x_176, 0, x_170); -lean_ctor_set(x_176, 1, x_175); -lean_ctor_set(x_176, 2, x_171); -lean_ctor_set(x_176, 3, x_172); -lean_ctor_set(x_176, 4, x_173); -x_177 = lean_st_ref_set(x_120, x_176, x_169); +else +{ +lean_object* x_161; +lean_dec_ref(x_151); lean_dec(x_120); -x_178 = lean_ctor_get(x_177, 1); -lean_inc(x_178); -if (lean_is_exclusive(x_177)) { - lean_ctor_release(x_177, 0); - lean_ctor_release(x_177, 1); - x_179 = x_177; -} else { - lean_dec_ref(x_177); - x_179 = lean_box(0); -} -if (lean_is_scalar(x_179)) { - x_180 = lean_alloc_ctor(0, 2, 0); -} else { - x_180 = x_179; -} -lean_ctor_set(x_180, 0, x_118); -lean_ctor_set(x_180, 1, x_178); -return x_180; -} -} -block_203: -{ -lean_object* x_190; -lean_inc(x_182); -lean_inc_ref(x_188); -x_190 = l_Lean_addDecl(x_189, x_188, x_182, x_187); -if (lean_obj_tag(x_190) == 0) -{ -if (x_6 == 0) -{ -lean_object* x_191; -lean_dec_ref(x_188); -lean_dec_ref(x_185); -x_191 = lean_ctor_get(x_190, 1); -lean_inc(x_191); -lean_dec_ref(x_190); -x_118 = x_184; -x_119 = x_183; -x_120 = x_186; -x_121 = x_182; -x_122 = x_191; -goto block_181; -} -else -{ -lean_object* x_192; lean_object* x_193; -x_192 = lean_ctor_get(x_190, 1); -lean_inc(x_192); -lean_dec_ref(x_190); -lean_inc(x_182); -lean_inc(x_186); -lean_inc(x_184); -x_193 = l_Lean_inferDefEqAttr(x_184, x_185, x_186, x_188, x_182, x_192); -if (lean_obj_tag(x_193) == 0) -{ -lean_object* x_194; -x_194 = lean_ctor_get(x_193, 1); -lean_inc(x_194); -lean_dec_ref(x_193); -x_118 = x_184; -x_119 = x_183; -x_120 = x_186; -x_121 = x_182; -x_122 = x_194; -goto block_181; -} -else -{ -uint8_t x_195; -lean_dec(x_186); -lean_dec(x_184); -lean_dec(x_183); -lean_dec(x_182); -x_195 = !lean_is_exclusive(x_193); -if (x_195 == 0) -{ -return x_193; -} -else -{ -lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_196 = lean_ctor_get(x_193, 0); -x_197 = lean_ctor_get(x_193, 1); -lean_inc(x_197); -lean_inc(x_196); -lean_dec(x_193); -x_198 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_198, 0, x_196); -lean_ctor_set(x_198, 1, x_197); -return x_198; -} -} -} -} -else -{ -uint8_t x_199; -lean_dec_ref(x_188); -lean_dec(x_186); -lean_dec_ref(x_185); -lean_dec(x_184); -lean_dec(x_183); -lean_dec(x_182); -x_199 = !lean_is_exclusive(x_190); -if (x_199 == 0) -{ -return x_190; -} -else -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_200 = lean_ctor_get(x_190, 0); -x_201 = lean_ctor_get(x_190, 1); -lean_inc(x_201); -lean_inc(x_200); -lean_dec(x_190); -x_202 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_202, 0, x_200); -lean_ctor_set(x_202, 1, x_201); -return x_202; -} -} -} -block_224: -{ -if (x_211 == 0) -{ -lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; -lean_inc(x_205); -x_212 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_212, 0, x_205); -lean_ctor_set(x_212, 1, x_1); -lean_ctor_set(x_212, 2, x_2); -x_213 = lean_box(0); -lean_inc(x_205); -x_214 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_214, 0, x_205); -lean_ctor_set(x_214, 1, x_213); -x_215 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_215, 0, x_212); -lean_ctor_set(x_215, 1, x_3); -lean_ctor_set(x_215, 2, x_214); -x_216 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_216, 0, x_215); -x_182 = x_204; -x_183 = x_206; -x_184 = x_205; -x_185 = x_207; -x_186 = x_208; -x_187 = x_209; -x_188 = x_210; -x_189 = x_216; -goto block_203; -} -else -{ -lean_object* x_217; lean_object* x_218; uint8_t x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; -lean_inc(x_205); -x_217 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_217, 0, x_205); -lean_ctor_set(x_217, 1, x_1); -lean_ctor_set(x_217, 2, x_2); -x_218 = lean_box(0); -x_219 = 0; -x_220 = lean_box(0); -lean_inc(x_205); -x_221 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_221, 0, x_205); -lean_ctor_set(x_221, 1, x_220); -x_222 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_222, 0, x_217); -lean_ctor_set(x_222, 1, x_3); -lean_ctor_set(x_222, 2, x_218); -lean_ctor_set(x_222, 3, x_221); -lean_ctor_set_uint8(x_222, sizeof(void*)*4, x_219); -x_223 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_223, 0, x_222); -x_182 = x_204; -x_183 = x_206; -x_184 = x_205; -x_185 = x_207; -x_186 = x_208; -x_187 = x_209; -x_188 = x_210; -x_189 = x_223; -goto block_203; -} -} -block_237: -{ -lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; uint8_t x_235; -x_231 = l_Lean_mkAuxDeclName___at___Lean_Meta_mkAuxLemma_spec__0___redArg(x_225, x_229, x_230); -x_232 = lean_ctor_get(x_231, 0); -lean_inc(x_232); -x_233 = lean_ctor_get(x_231, 1); -lean_inc(x_233); -lean_dec_ref(x_231); -lean_inc_ref(x_2); -lean_inc(x_1); -lean_inc(x_232); -x_234 = lean_alloc_closure((void*)(l_Lean_Meta_mkAuxLemma___lam__0), 4, 3); -lean_closure_set(x_234, 0, x_232); -lean_closure_set(x_234, 1, x_1); -lean_closure_set(x_234, 2, x_2); -lean_inc_ref(x_16); -x_235 = l_Lean_Environment_hasUnsafe(x_16, x_2); -if (x_235 == 0) -{ -uint8_t x_236; -x_236 = l_Lean_Environment_hasUnsafe(x_16, x_3); -x_204 = x_229; -x_205 = x_232; -x_206 = x_234; -x_207 = x_226; -x_208 = x_227; -x_209 = x_233; -x_210 = x_228; -x_211 = x_236; -goto block_224; -} -else -{ -lean_dec_ref(x_16); -x_204 = x_229; -x_205 = x_232; -x_206 = x_234; -x_207 = x_226; -x_208 = x_227; -x_209 = x_233; -x_210 = x_228; -x_211 = x_235; -goto block_224; -} -} -block_253: -{ -if (x_5 == 0) -{ -lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; uint8_t x_245; -lean_dec(x_239); lean_dec(x_15); -x_241 = l_Lean_mkAuxDeclName___at___Lean_Meta_mkAuxLemma_spec__0___redArg(x_240, x_10, x_14); -x_242 = lean_ctor_get(x_241, 0); -lean_inc(x_242); -x_243 = lean_ctor_get(x_241, 1); -lean_inc(x_243); -lean_dec_ref(x_241); -lean_inc_ref(x_2); -lean_inc(x_1); -lean_inc(x_242); -x_244 = lean_alloc_closure((void*)(l_Lean_Meta_mkAuxLemma___lam__0), 4, 3); -lean_closure_set(x_244, 0, x_242); -lean_closure_set(x_244, 1, x_1); -lean_closure_set(x_244, 2, x_2); -lean_inc_ref(x_16); -x_245 = l_Lean_Environment_hasUnsafe(x_16, x_2); -if (x_245 == 0) -{ -uint8_t x_246; -x_246 = l_Lean_Environment_hasUnsafe(x_16, x_3); -x_101 = x_244; -x_102 = x_242; -x_103 = x_243; -x_104 = x_246; -goto block_117; -} -else -{ -lean_dec_ref(x_16); -x_101 = x_244; -x_102 = x_242; -x_103 = x_243; -x_104 = x_245; -goto block_117; -} -} -else -{ -lean_object* x_247; -lean_inc_ref(x_2); -x_247 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_239, x_2); -if (lean_obj_tag(x_247) == 0) -{ -lean_dec(x_15); -x_225 = x_240; -x_226 = x_7; -x_227 = x_8; -x_228 = x_9; -x_229 = x_10; -x_230 = x_14; -goto block_237; -} -else -{ -lean_object* x_248; lean_object* x_249; lean_object* x_250; uint8_t x_251; -x_248 = lean_ctor_get(x_247, 0); -lean_inc(x_248); -lean_dec(x_247); -x_249 = lean_ctor_get(x_248, 0); -lean_inc(x_249); -x_250 = lean_ctor_get(x_248, 1); -lean_inc(x_250); -lean_dec(x_248); -x_251 = l_List_beq___at___Lean_beqConstantVal____x40_Lean_Declaration___hyg_445__spec__0(x_1, x_250); -lean_dec(x_250); -if (x_251 == 0) -{ -lean_dec(x_249); -lean_dec(x_15); -x_225 = x_240; -x_226 = x_7; -x_227 = x_8; -x_228 = x_9; -x_229 = x_10; -x_230 = x_14; -goto block_237; -} -else -{ -lean_object* x_252; -lean_dec(x_240); -lean_dec_ref(x_16); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); lean_dec_ref(x_7); -lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec(x_1); -if (lean_is_scalar(x_15)) { - x_252 = lean_alloc_ctor(0, 2, 0); -} else { - x_252 = x_15; -} -lean_ctor_set(x_252, 0, x_249); -lean_ctor_set(x_252, 1, x_14); -return x_252; +x_161 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_161, 0, x_158); +lean_ctor_set(x_161, 1, x_14); +return x_161; } } } } } +block_167: +{ +lean_object* x_164; +lean_inc_ref(x_2); +x_164 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_164, 0, x_2); +lean_ctor_set_uint8(x_164, sizeof(void*)*1, x_163); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_165; +x_165 = l_Lean_Meta_mkAuxLemma___closed__2; +x_140 = x_163; +x_141 = x_164; +x_142 = x_165; +goto block_162; +} +else +{ +lean_object* x_166; +x_166 = lean_ctor_get(x_4, 0); +lean_inc(x_166); +lean_dec(x_4); +x_140 = x_163; +x_141 = x_164; +x_142 = x_166; +goto block_162; +} +} +} } LEAN_EXPORT lean_object* l_Lean_mkAuxDeclName___at___Lean_Meta_mkAuxLemma_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: @@ -1321,6 +1592,16 @@ lean_dec_ref(x_2); return x_7; } } +LEAN_EXPORT lean_object* l_Lean_Meta_mkAuxLemma___lam__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, lean_object* x_14) { +_start: +{ +uint8_t x_15; uint8_t x_16; lean_object* x_17; +x_15 = lean_unbox(x_5); +x_16 = lean_unbox(x_6); +x_17 = l_Lean_Meta_mkAuxLemma___lam__2(x_1, x_2, x_3, x_4, x_15, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_17; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_mkAuxLemma___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) { _start: { @@ -1348,41 +1629,47 @@ lean_dec_ref(res); res = initialize_Lean_DefEqAttrib(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Meta_instBEqAuxLemmaKey___closed__0 = _init_l_Lean_Meta_instBEqAuxLemmaKey___closed__0(); +lean_mark_persistent(l_Lean_Meta_instBEqAuxLemmaKey___closed__0); +l_Lean_Meta_instBEqAuxLemmaKey = _init_l_Lean_Meta_instBEqAuxLemmaKey(); +lean_mark_persistent(l_Lean_Meta_instBEqAuxLemmaKey); +l_Lean_Meta_instHashableAuxLemmaKey___closed__0 = _init_l_Lean_Meta_instHashableAuxLemmaKey___closed__0(); +lean_mark_persistent(l_Lean_Meta_instHashableAuxLemmaKey___closed__0); +l_Lean_Meta_instHashableAuxLemmaKey = _init_l_Lean_Meta_instHashableAuxLemmaKey(); +lean_mark_persistent(l_Lean_Meta_instHashableAuxLemmaKey); l_Lean_Meta_instInhabitedAuxLemmas___closed__0 = _init_l_Lean_Meta_instInhabitedAuxLemmas___closed__0(); lean_mark_persistent(l_Lean_Meta_instInhabitedAuxLemmas___closed__0); l_Lean_Meta_instInhabitedAuxLemmas___closed__1 = _init_l_Lean_Meta_instInhabitedAuxLemmas___closed__1(); lean_mark_persistent(l_Lean_Meta_instInhabitedAuxLemmas___closed__1); l_Lean_Meta_instInhabitedAuxLemmas = _init_l_Lean_Meta_instInhabitedAuxLemmas(); lean_mark_persistent(l_Lean_Meta_instInhabitedAuxLemmas); -if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_AuxLemma___hyg_45_(lean_io_mk_world()); +if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_AuxLemma___hyg_185_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Meta_auxLemmasExt = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Meta_auxLemmasExt); lean_dec_ref(res); -}l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg___closed__0 = _init_l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg___closed__0(); -lean_mark_persistent(l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg___closed__0); +}l_Lean_Meta_mkAuxLemma___lam__2___closed__0 = _init_l_Lean_Meta_mkAuxLemma___lam__2___closed__0(); +lean_mark_persistent(l_Lean_Meta_mkAuxLemma___lam__2___closed__0); +l_Lean_Meta_mkAuxLemma___lam__2___closed__1 = _init_l_Lean_Meta_mkAuxLemma___lam__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_mkAuxLemma___lam__2___closed__1); +l_Lean_Meta_mkAuxLemma___lam__2___closed__2 = _init_l_Lean_Meta_mkAuxLemma___lam__2___closed__2(); +lean_mark_persistent(l_Lean_Meta_mkAuxLemma___lam__2___closed__2); +l_Lean_Meta_mkAuxLemma___lam__2___closed__3 = _init_l_Lean_Meta_mkAuxLemma___lam__2___closed__3(); +lean_mark_persistent(l_Lean_Meta_mkAuxLemma___lam__2___closed__3); +l_Lean_Meta_mkAuxLemma___lam__2___closed__4 = _init_l_Lean_Meta_mkAuxLemma___lam__2___closed__4(); +lean_mark_persistent(l_Lean_Meta_mkAuxLemma___lam__2___closed__4); +l_Lean_Meta_mkAuxLemma___lam__2___closed__5 = _init_l_Lean_Meta_mkAuxLemma___lam__2___closed__5(); +lean_mark_persistent(l_Lean_Meta_mkAuxLemma___lam__2___closed__5); +l_Lean_Meta_mkAuxLemma___lam__2___closed__6 = _init_l_Lean_Meta_mkAuxLemma___lam__2___closed__6(); +lean_mark_persistent(l_Lean_Meta_mkAuxLemma___lam__2___closed__6); +l_Lean_Meta_mkAuxLemma___lam__2___closed__7 = _init_l_Lean_Meta_mkAuxLemma___lam__2___closed__7(); +lean_mark_persistent(l_Lean_Meta_mkAuxLemma___lam__2___closed__7); l_Lean_Meta_mkAuxLemma___closed__0 = _init_l_Lean_Meta_mkAuxLemma___closed__0(); lean_mark_persistent(l_Lean_Meta_mkAuxLemma___closed__0); l_Lean_Meta_mkAuxLemma___closed__1 = _init_l_Lean_Meta_mkAuxLemma___closed__1(); lean_mark_persistent(l_Lean_Meta_mkAuxLemma___closed__1); l_Lean_Meta_mkAuxLemma___closed__2 = _init_l_Lean_Meta_mkAuxLemma___closed__2(); lean_mark_persistent(l_Lean_Meta_mkAuxLemma___closed__2); -l_Lean_Meta_mkAuxLemma___closed__3 = _init_l_Lean_Meta_mkAuxLemma___closed__3(); -lean_mark_persistent(l_Lean_Meta_mkAuxLemma___closed__3); -l_Lean_Meta_mkAuxLemma___closed__4 = _init_l_Lean_Meta_mkAuxLemma___closed__4(); -lean_mark_persistent(l_Lean_Meta_mkAuxLemma___closed__4); -l_Lean_Meta_mkAuxLemma___closed__5 = _init_l_Lean_Meta_mkAuxLemma___closed__5(); -lean_mark_persistent(l_Lean_Meta_mkAuxLemma___closed__5); -l_Lean_Meta_mkAuxLemma___closed__6 = _init_l_Lean_Meta_mkAuxLemma___closed__6(); -lean_mark_persistent(l_Lean_Meta_mkAuxLemma___closed__6); -l_Lean_Meta_mkAuxLemma___closed__7 = _init_l_Lean_Meta_mkAuxLemma___closed__7(); -lean_mark_persistent(l_Lean_Meta_mkAuxLemma___closed__7); -l_Lean_Meta_mkAuxLemma___closed__8 = _init_l_Lean_Meta_mkAuxLemma___closed__8(); -lean_mark_persistent(l_Lean_Meta_mkAuxLemma___closed__8); -l_Lean_Meta_mkAuxLemma___closed__9 = _init_l_Lean_Meta_mkAuxLemma___closed__9(); -lean_mark_persistent(l_Lean_Meta_mkAuxLemma___closed__9); -l_Lean_Meta_mkAuxLemma___closed__10 = _init_l_Lean_Meta_mkAuxLemma___closed__10(); -lean_mark_persistent(l_Lean_Meta_mkAuxLemma___closed__10); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Canon.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Canon.c index f80a3ae403..a547760cd7 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Canon.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Canon.c @@ -25,7 +25,6 @@ static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_ lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Canon_0__Lean_Meta_Grind_Canon_get_x27___redArg(lean_object*, lean_object*); -lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Meta_Grind_Canon_canon_visit_spec__7_spec__7___redArg___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Canon_canon_visit_spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Lean_Meta_Grind_Canon_canon_visit_spec__9___boxed(lean_object*, lean_object*, lean_object*); @@ -183,6 +182,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Canon_0__Lean_Meta_G LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Canon_canonImplicit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Canon_canon___lam__0(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_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Canon_0__Lean_Meta_Grind_Canon_isDefEqBounded___lam__0___closed__4; static lean_object* l_Lean_Meta_Grind_Canon_canon_visit___closed__5; lean_object* l_instBEqProd___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -7035,7 +7035,7 @@ x_22 = lean_ctor_get(x_17, 1); lean_inc_ref(x_22); lean_dec_ref(x_17); lean_inc_ref(x_4); -x_23 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_22, x_4); +x_23 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(x_22, x_4); if (lean_obj_tag(x_23) == 0) { lean_object* x_24; @@ -8457,7 +8457,7 @@ x_330 = lean_ctor_get(x_17, 1); lean_inc_ref(x_330); lean_dec_ref(x_17); lean_inc_ref(x_4); -x_331 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_330, x_4); +x_331 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(x_330, x_4); if (lean_obj_tag(x_331) == 0) { lean_object* x_332; @@ -13643,7 +13643,7 @@ x_205 = lean_ctor_get(x_201, 2); lean_inc_ref(x_205); lean_dec_ref(x_201); lean_inc(x_197); -x_206 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_205, x_197); +x_206 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(x_205, x_197); if (lean_obj_tag(x_206) == 0) { uint8_t x_207; @@ -13699,7 +13699,7 @@ x_212 = lean_ctor_get(x_201, 2); lean_inc_ref(x_212); lean_dec_ref(x_201); lean_inc(x_197); -x_213 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_212, x_197); +x_213 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(x_212, x_197); if (lean_obj_tag(x_213) == 0) { uint8_t x_214; @@ -14582,7 +14582,7 @@ x_205 = lean_ctor_get(x_201, 2); lean_inc_ref(x_205); lean_dec_ref(x_201); lean_inc(x_197); -x_206 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_205, x_197); +x_206 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(x_205, x_197); if (lean_obj_tag(x_206) == 0) { uint8_t x_207; @@ -14638,7 +14638,7 @@ x_212 = lean_ctor_get(x_201, 2); lean_inc_ref(x_212); lean_dec_ref(x_201); lean_inc(x_197); -x_213 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_212, x_197); +x_213 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(x_212, x_197); if (lean_obj_tag(x_213) == 0) { uint8_t x_214; diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c index 708fb098a3..b218eeea7d 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c @@ -61,7 +61,6 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsa LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Meta_Simp_congr_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); -lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_cacheResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getProjectionFnInfo_x3f___at_____private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f_spec__0___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___Lean_Meta_transformWithCache_visit_visitLet___at___Lean_Meta_transformWithCache_visit___at_____private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimpImpl_spec__0_spec__7_spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -87,6 +86,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Sim lean_object* l_instBEqOfDecidableEq___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simpHaveTelescope_simpHaveTelescopeAux___closed__13; LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToFVarId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_eqv___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpForall___lam__1(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Expr_withAppAux___at___Lean_Meta_transformWithCache_visit___at_____private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimpImpl_spec__0_spec__2_spec__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*, lean_object*, lean_object*, lean_object*); @@ -565,6 +565,7 @@ lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkOfEqTrue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); static lean_object* l_Lean_Meta_Simp_simpHaveTelescope_simpHaveTelescopeAux___lam__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Meta_Simp_processCongrHypothesis_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at___Lean_Meta_Simp_congrArgs_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Option_get___at_____private_Lean_Util_Profile_0__Lean_get__profiler_spec__0(lean_object*, lean_object*); @@ -603,6 +604,7 @@ static lean_object* l_Lean_Meta_Simp_simpForall___lam__3___closed__4; static lean_object* l_Lean_Meta_Simp_withNewLemmas___redArg___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_doNotVisit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_instInhabitedHaveTelescopeInfo___closed__0; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_reprHeadIndex____x40_Lean_HeadIndex___hyg_311_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_toArrayMapped_go___at___Lean_Meta_Simp_trySimpCongrTheorem_x3f_spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); @@ -617,6 +619,7 @@ LEAN_EXPORT lean_object* l_Lean_isProjectionFn___at_____private_Lean_Meta_Tactic lean_object* l_Lean_indentExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at___Lean_Meta_transformWithCache_visit___at_____private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimpImpl_spec__0_spec__9___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_dsimpGoal_spec__0___redArg___closed__8; +static lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg___closed__0; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpLoop_visitPreContinue___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isProjectionFn___at_____private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_unfold_x3f_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -642,6 +645,7 @@ static lean_object* l_Lean_Meta_simpGoal___lam__0___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_transformWithCache_visit_visitForall___at___Lean_Meta_transformWithCache_visit___at_____private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimpImpl_spec__0_spec__6___lam__0(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_foldRawNatLit___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpLoop_visitPostContinue___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* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f_spec__0___redArg(lean_object*, lean_object*, size_t, lean_object*); static lean_object* l_Lean_Meta_Simp_getHaveTelescopeInfo___closed__0; static lean_object* l_Lean_Meta_Simp_withNewLemmas___redArg___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_backward_dsimp_proofs; @@ -33082,6 +33086,33 @@ return x_23; } } } +static lean_object* _init_l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Expr_eqv___boxed), 2, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint64_t x_4; size_t x_5; lean_object* x_6; +x_3 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg___closed__0; +x_4 = l_Lean_Expr_hash(x_2); +x_5 = lean_uint64_to_usize(x_4); +x_6 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f_spec__0___redArg(x_3, x_1, x_5, x_2); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(x_2, x_3); +return x_4; +} +} LEAN_EXPORT lean_object* l_Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0___redArg(lean_object* x_1, lean_object* x_2) { _start: { @@ -33096,7 +33127,7 @@ x_5 = lean_ctor_get(x_1, 1); lean_inc_ref(x_5); lean_dec_ref(x_1); lean_inc_ref(x_2); -x_6 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_5, x_2); +x_6 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(x_5, x_2); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; uint64_t x_15; size_t x_16; size_t x_17; size_t x_18; size_t x_19; size_t x_20; lean_object* x_21; lean_object* x_22; @@ -44316,6 +44347,8 @@ l_Lean_Meta_Simp_simpLoop_visitPreContinue___closed__0 = _init_l_Lean_Meta_Simp_ lean_mark_persistent(l_Lean_Meta_Simp_simpLoop_visitPreContinue___closed__0); l_Lean_Meta_Simp_simpLoop_visitPreContinue___closed__1 = _init_l_Lean_Meta_Simp_simpLoop_visitPreContinue___closed__1(); lean_mark_persistent(l_Lean_Meta_Simp_simpLoop_visitPreContinue___closed__1); +l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg___closed__0 = _init_l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg___closed__0(); +lean_mark_persistent(l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg___closed__0); l_Lean_Meta_Simp_simpLoop___closed__0 = _init_l_Lean_Meta_Simp_simpLoop___closed__0(); lean_mark_persistent(l_Lean_Meta_Simp_simpLoop___closed__0); l_Lean_Meta_Simp_simpLoop___closed__1 = _init_l_Lean_Meta_Simp_simpLoop___closed__1(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c index 0817ffb725..234d47a1a0 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c @@ -344,7 +344,7 @@ lean_object* l_Lean_Expr_appFn_x21(lean_object*); LEAN_EXPORT lean_object* l_Lean_isProjectionFn___at___Lean_Meta_Simp_ignoreEquations_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkBadRewrite(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_isPerm___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___redArg___lam__2(lean_object*, lean_object*); static lean_object* l_Lean_Meta_ppOrigin___redArg___closed__1; lean_object* l_List_appendTR___redArg(lean_object*, lean_object*); @@ -522,7 +522,7 @@ size_t lean_usize_shift_left(size_t, size_t); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at_____private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at___Lean_Meta_DiscrTree_insertCore___at___Lean_Meta_SimpTheorems_addSimpTheorem_spec__0_spec__5(lean_object*); -lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_binInsertM___at_____private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at___Lean_Meta_DiscrTree_insertCore___at___Lean_Meta_SimpTheorems_addSimpTheorem_spec__0_spec__0_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_addDeclToUnfold(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpExtension_getTheorems___redArg(lean_object*, lean_object*, lean_object*); @@ -2195,11 +2195,12 @@ return x_7; LEAN_EXPORT lean_object* l_Lean_Meta_isRflTheorem(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; +lean_object* x_5; uint8_t x_6; lean_object* x_7; x_5 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_isRflTheoremCore), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_5, x_2, x_3, x_4); -return x_6; +x_6 = 1; +x_7 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_5, x_6, x_2, x_3, x_4); +return x_7; } } LEAN_EXPORT lean_object* l_Lean_Meta_isRflProof___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { @@ -2266,11 +2267,12 @@ return x_16; LEAN_EXPORT lean_object* l_Lean_Meta_isRflProof(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; +lean_object* x_7; uint8_t x_8; lean_object* x_9; x_7 = lean_alloc_closure((void*)(l_Lean_Meta_isRflProof___lam__0), 6, 1); lean_closure_set(x_7, 0, x_1); -x_8 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_7, x_2, x_3, x_4, x_5, x_6); -return x_8; +x_8 = 1; +x_9 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_7, x_8, x_2, x_3, x_4, x_5, x_6); +return x_9; } } LEAN_EXPORT uint8_t l_Lean_Meta_instToFormatSimpTheorem___lam__0(lean_object* x_1) { @@ -7740,7 +7742,7 @@ lean_inc(x_12); lean_inc_ref(x_11); lean_inc(x_10); lean_inc_ref(x_9); -x_31 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_30, x_9, x_10, x_11, x_12, x_22); +x_31 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_30, x_2, x_9, x_10, x_11, x_12, x_22); if (lean_obj_tag(x_31) == 0) { lean_object* x_32; lean_object* x_33; lean_object* x_34; @@ -7901,7 +7903,7 @@ lean_inc(x_13); lean_inc_ref(x_12); lean_inc(x_11); lean_inc_ref(x_10); -x_32 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_31, x_10, x_11, x_12, x_13, x_23); +x_32 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_31, x_2, x_10, x_11, x_12, x_13, x_23); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; @@ -8094,71 +8096,72 @@ uint8_t x_42; x_42 = lean_unbox(x_28); if (x_42 == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_dec(x_23); lean_dec(x_20); lean_dec(x_13); -x_43 = l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_mkSimpTheoremFromConst_spec__0_spec__0___redArg___closed__3; -x_44 = l_Lean_Expr_const___override(x_1, x_19); -x_45 = lean_box(x_2); -x_46 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___boxed), 12, 7); -lean_closure_set(x_46, 0, x_30); -lean_closure_set(x_46, 1, x_21); -lean_closure_set(x_46, 2, x_43); -lean_closure_set(x_46, 3, x_44); -lean_closure_set(x_46, 4, x_45); -lean_closure_set(x_46, 5, x_4); -lean_closure_set(x_46, 6, x_28); -x_47 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_46, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_47) == 0) +x_43 = 1; +x_44 = l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_mkSimpTheoremFromConst_spec__0_spec__0___redArg___closed__3; +x_45 = l_Lean_Expr_const___override(x_1, x_19); +x_46 = lean_box(x_2); +x_47 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___boxed), 12, 7); +lean_closure_set(x_47, 0, x_30); +lean_closure_set(x_47, 1, x_21); +lean_closure_set(x_47, 2, x_44); +lean_closure_set(x_47, 3, x_45); +lean_closure_set(x_47, 4, x_46); +lean_closure_set(x_47, 5, x_4); +lean_closure_set(x_47, 6, x_28); +x_48 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_47, x_43, x_5, x_6, x_7, x_8, x_29); +if (lean_obj_tag(x_48) == 0) { -uint8_t x_48; -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) +uint8_t x_49; +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_47, 0); -x_50 = l_Lean_Meta_mkSimpTheoremFromConst___closed__1; -x_51 = lean_array_push(x_50, x_49); -lean_ctor_set(x_47, 0, x_51); -return x_47; +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_48, 0); +x_51 = l_Lean_Meta_mkSimpTheoremFromConst___closed__1; +x_52 = lean_array_push(x_51, x_50); +lean_ctor_set(x_48, 0, x_52); +return x_48; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_52 = lean_ctor_get(x_47, 0); -x_53 = lean_ctor_get(x_47, 1); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_53 = lean_ctor_get(x_48, 0); +x_54 = lean_ctor_get(x_48, 1); +lean_inc(x_54); lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_47); -x_54 = l_Lean_Meta_mkSimpTheoremFromConst___closed__1; -x_55 = lean_array_push(x_54, x_52); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_53); -return x_56; +lean_dec(x_48); +x_55 = l_Lean_Meta_mkSimpTheoremFromConst___closed__1; +x_56 = lean_array_push(x_55, x_53); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_54); +return x_57; } } else { -uint8_t x_57; -x_57 = !lean_is_exclusive(x_47); -if (x_57 == 0) +uint8_t x_58; +x_58 = !lean_is_exclusive(x_48); +if (x_58 == 0) { -return x_47; +return x_48; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_47, 0); -x_59 = lean_ctor_get(x_47, 1); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_48, 0); +x_60 = lean_ctor_get(x_48, 1); +lean_inc(x_60); lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_47); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +lean_dec(x_48); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } } @@ -8232,7 +8235,7 @@ return x_40; } else { -uint8_t x_61; +uint8_t x_62; lean_dec(x_23); lean_dec_ref(x_5); lean_dec_ref(x_21); @@ -8243,29 +8246,29 @@ lean_dec_ref(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_61 = !lean_is_exclusive(x_27); -if (x_61 == 0) +x_62 = !lean_is_exclusive(x_27); +if (x_62 == 0) { return x_27; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_27, 0); -x_63 = lean_ctor_get(x_27, 1); +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_27, 0); +x_64 = lean_ctor_get(x_27, 1); +lean_inc(x_64); lean_inc(x_63); -lean_inc(x_62); lean_dec(x_27); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; } } } else { -uint8_t x_65; +uint8_t x_66; lean_dec(x_23); lean_dec_ref(x_5); lean_dec_ref(x_21); @@ -8276,29 +8279,29 @@ lean_dec_ref(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_65 = !lean_is_exclusive(x_25); -if (x_65 == 0) +x_66 = !lean_is_exclusive(x_25); +if (x_66 == 0) { return x_25; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_25, 0); -x_67 = lean_ctor_get(x_25, 1); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_25, 0); +x_68 = lean_ctor_get(x_25, 1); +lean_inc(x_68); lean_inc(x_67); -lean_inc(x_66); lean_dec(x_25); -x_68 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_67); -return x_68; +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; } } } else { -uint8_t x_69; +uint8_t x_70; lean_dec_ref(x_5); lean_dec_ref(x_21); lean_dec(x_20); @@ -8308,382 +8311,383 @@ lean_dec_ref(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_69 = !lean_is_exclusive(x_22); -if (x_69 == 0) +x_70 = !lean_is_exclusive(x_22); +if (x_70 == 0) { return x_22; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_22, 0); -x_71 = lean_ctor_get(x_22, 1); +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_22, 0); +x_72 = lean_ctor_get(x_22, 1); +lean_inc(x_72); lean_inc(x_71); -lean_inc(x_70); lean_dec(x_22); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -return x_72; +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; } } } else { -uint8_t 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; uint8_t x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_73 = lean_ctor_get_uint8(x_5, sizeof(void*)*7 + 8); -x_74 = lean_ctor_get(x_5, 1); -x_75 = lean_ctor_get(x_5, 2); -x_76 = lean_ctor_get(x_5, 3); -x_77 = lean_ctor_get(x_5, 4); -x_78 = lean_ctor_get(x_5, 5); -x_79 = lean_ctor_get(x_5, 6); -x_80 = lean_ctor_get_uint8(x_5, sizeof(void*)*7 + 9); -x_81 = lean_ctor_get_uint8(x_5, sizeof(void*)*7 + 10); +uint8_t 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; uint8_t x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_74 = lean_ctor_get_uint8(x_5, sizeof(void*)*7 + 8); +x_75 = lean_ctor_get(x_5, 1); +x_76 = lean_ctor_get(x_5, 2); +x_77 = lean_ctor_get(x_5, 3); +x_78 = lean_ctor_get(x_5, 4); +x_79 = lean_ctor_get(x_5, 5); +x_80 = lean_ctor_get(x_5, 6); +x_81 = lean_ctor_get_uint8(x_5, sizeof(void*)*7 + 9); +x_82 = lean_ctor_get_uint8(x_5, sizeof(void*)*7 + 10); +lean_inc(x_80); lean_inc(x_79); lean_inc(x_78); lean_inc(x_77); lean_inc(x_76); lean_inc(x_75); -lean_inc(x_74); lean_dec(x_5); -x_82 = lean_box(0); +x_83 = lean_box(0); lean_inc(x_13); -x_83 = l_List_mapTR_loop___at___Lean_mkConstWithLevelParams___at___Lean_Meta_registerCoercion_spec__0_spec__0(x_13, x_82); -lean_inc(x_83); +x_84 = l_List_mapTR_loop___at___Lean_mkConstWithLevelParams___at___Lean_Meta_registerCoercion_spec__0_spec__0(x_13, x_83); +lean_inc(x_84); lean_inc(x_1); -x_84 = l_Lean_Expr_const___override(x_1, x_83); -x_85 = lean_alloc_ctor(0, 7, 11); -lean_ctor_set(x_85, 0, x_15); -lean_ctor_set(x_85, 1, x_74); -lean_ctor_set(x_85, 2, x_75); -lean_ctor_set(x_85, 3, x_76); -lean_ctor_set(x_85, 4, x_77); -lean_ctor_set(x_85, 5, x_78); -lean_ctor_set(x_85, 6, x_79); -lean_ctor_set_uint64(x_85, sizeof(void*)*7, x_16); -lean_ctor_set_uint8(x_85, sizeof(void*)*7 + 8, x_73); -lean_ctor_set_uint8(x_85, sizeof(void*)*7 + 9, x_80); -lean_ctor_set_uint8(x_85, sizeof(void*)*7 + 10, x_81); +x_85 = l_Lean_Expr_const___override(x_1, x_84); +x_86 = lean_alloc_ctor(0, 7, 11); +lean_ctor_set(x_86, 0, x_15); +lean_ctor_set(x_86, 1, x_75); +lean_ctor_set(x_86, 2, x_76); +lean_ctor_set(x_86, 3, x_77); +lean_ctor_set(x_86, 4, x_78); +lean_ctor_set(x_86, 5, x_79); +lean_ctor_set(x_86, 6, x_80); +lean_ctor_set_uint64(x_86, sizeof(void*)*7, x_16); +lean_ctor_set_uint8(x_86, sizeof(void*)*7 + 8, x_74); +lean_ctor_set_uint8(x_86, sizeof(void*)*7 + 9, x_81); +lean_ctor_set_uint8(x_86, sizeof(void*)*7 + 10, x_82); lean_inc(x_8); lean_inc_ref(x_7); lean_inc(x_6); +lean_inc_ref(x_86); lean_inc_ref(x_85); -lean_inc_ref(x_84); -x_86 = lean_infer_type(x_84, x_85, x_6, x_7, x_8, x_12); -if (lean_obj_tag(x_86) == 0) +x_87 = lean_infer_type(x_85, x_86, x_6, x_7, x_8, x_12); +if (lean_obj_tag(x_87) == 0) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); -lean_dec_ref(x_86); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec_ref(x_87); lean_inc(x_8); lean_inc_ref(x_7); lean_inc(x_6); -lean_inc_ref(x_85); -lean_inc(x_87); -x_89 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkTypeIsProp(x_87, x_85, x_6, x_7, x_8, x_88); -if (lean_obj_tag(x_89) == 0) +lean_inc_ref(x_86); +lean_inc(x_88); +x_90 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkTypeIsProp(x_88, x_86, x_6, x_7, x_8, x_89); +if (lean_obj_tag(x_90) == 0) { -lean_object* x_90; lean_object* x_91; -x_90 = lean_ctor_get(x_89, 1); -lean_inc(x_90); -lean_dec_ref(x_89); +lean_object* x_91; lean_object* x_92; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec_ref(x_90); lean_inc(x_8); lean_inc_ref(x_7); lean_inc(x_6); -lean_inc_ref(x_85); -lean_inc(x_87); -x_91 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_shouldPreprocess(x_87, x_85, x_6, x_7, x_8, x_90); -if (lean_obj_tag(x_91) == 0) +lean_inc_ref(x_86); +lean_inc(x_88); +x_92 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_shouldPreprocess(x_88, x_86, x_6, x_7, x_8, x_91); +if (lean_obj_tag(x_92) == 0) { -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_92, 0); lean_inc(x_93); -lean_dec_ref(x_91); +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +lean_dec_ref(x_92); lean_inc(x_1); -x_94 = lean_alloc_ctor(0, 1, 2); -lean_ctor_set(x_94, 0, x_1); -lean_ctor_set_uint8(x_94, sizeof(void*)*1, x_2); -lean_ctor_set_uint8(x_94, sizeof(void*)*1 + 1, x_3); +x_95 = lean_alloc_ctor(0, 1, 2); +lean_ctor_set(x_95, 0, x_1); +lean_ctor_set_uint8(x_95, sizeof(void*)*1, x_2); +lean_ctor_set_uint8(x_95, sizeof(void*)*1 + 1, x_3); if (x_3 == 0) { -uint8_t x_106; -x_106 = lean_unbox(x_92); -if (x_106 == 0) +uint8_t x_107; +x_107 = lean_unbox(x_93); +if (x_107 == 0) { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -lean_dec(x_87); -lean_dec(x_83); +uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_88); +lean_dec(x_84); lean_dec(x_13); -x_107 = l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_mkSimpTheoremFromConst_spec__0_spec__0___redArg___closed__3; -x_108 = l_Lean_Expr_const___override(x_1, x_82); -x_109 = lean_box(x_2); -x_110 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___boxed), 12, 7); -lean_closure_set(x_110, 0, x_94); -lean_closure_set(x_110, 1, x_84); -lean_closure_set(x_110, 2, x_107); -lean_closure_set(x_110, 3, x_108); -lean_closure_set(x_110, 4, x_109); -lean_closure_set(x_110, 5, x_4); -lean_closure_set(x_110, 6, x_92); -x_111 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_110, x_85, x_6, x_7, x_8, x_93); -if (lean_obj_tag(x_111) == 0) +x_108 = 1; +x_109 = l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_mkSimpTheoremFromConst_spec__0_spec__0___redArg___closed__3; +x_110 = l_Lean_Expr_const___override(x_1, x_83); +x_111 = lean_box(x_2); +x_112 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___boxed), 12, 7); +lean_closure_set(x_112, 0, x_95); +lean_closure_set(x_112, 1, x_85); +lean_closure_set(x_112, 2, x_109); +lean_closure_set(x_112, 3, x_110); +lean_closure_set(x_112, 4, x_111); +lean_closure_set(x_112, 5, x_4); +lean_closure_set(x_112, 6, x_93); +x_113 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_112, x_108, x_86, x_6, x_7, x_8, x_94); +if (lean_obj_tag(x_113) == 0) { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_114 = x_111; +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_116 = x_113; } else { - lean_dec_ref(x_111); - x_114 = lean_box(0); + lean_dec_ref(x_113); + x_116 = lean_box(0); } -x_115 = l_Lean_Meta_mkSimpTheoremFromConst___closed__1; -x_116 = lean_array_push(x_115, x_112); -if (lean_is_scalar(x_114)) { - x_117 = lean_alloc_ctor(0, 2, 0); +x_117 = l_Lean_Meta_mkSimpTheoremFromConst___closed__1; +x_118 = lean_array_push(x_117, x_114); +if (lean_is_scalar(x_116)) { + x_119 = lean_alloc_ctor(0, 2, 0); } else { - x_117 = x_114; + x_119 = x_116; } -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_113); -return x_117; +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_115); +return x_119; } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_118 = lean_ctor_get(x_111, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_111, 1); -lean_inc(x_119); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_120 = x_111; +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_120 = lean_ctor_get(x_113, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_113, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_122 = x_113; } else { - lean_dec_ref(x_111); - x_120 = lean_box(0); + lean_dec_ref(x_113); + x_122 = lean_box(0); } -if (lean_is_scalar(x_120)) { - x_121 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_122)) { + x_123 = lean_alloc_ctor(1, 2, 0); } else { - x_121 = x_120; + x_123 = x_122; } -lean_ctor_set(x_121, 0, x_118); -lean_ctor_set(x_121, 1, x_119); -return x_121; +lean_ctor_set(x_123, 0, x_120); +lean_ctor_set(x_123, 1, x_121); +return x_123; } } else { -lean_dec(x_92); +lean_dec(x_93); lean_dec(x_1); -goto block_105; +goto block_106; } } else { -lean_dec(x_92); +lean_dec(x_93); lean_dec(x_1); -goto block_105; +goto block_106; } -block_105: +block_106: { -uint8_t x_95; lean_object* x_96; -x_95 = 1; +uint8_t x_96; lean_object* x_97; +x_96 = 1; lean_inc(x_8); lean_inc_ref(x_7); lean_inc(x_6); -lean_inc_ref(x_85); -x_96 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go(x_3, x_95, x_84, x_87, x_85, x_6, x_7, x_8, x_93); -if (lean_obj_tag(x_96) == 0) +lean_inc_ref(x_86); +x_97 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go(x_3, x_96, x_85, x_88, x_86, x_6, x_7, x_8, x_94); +if (lean_obj_tag(x_97) == 0) { -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_98 = lean_ctor_get(x_97, 0); lean_inc(x_98); -lean_dec_ref(x_96); -x_99 = l_Lean_Meta_mkSimpTheoremFromConst___closed__0; -lean_inc(x_97); -x_100 = l_List_forIn_x27_loop___at___Lean_Meta_mkSimpTheoremFromConst_spec__0___redArg(x_13, x_95, x_83, x_94, x_2, x_4, x_97, x_97, x_99, x_85, x_6, x_7, x_8, x_98); -lean_dec(x_97); -return x_100; +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +lean_dec_ref(x_97); +x_100 = l_Lean_Meta_mkSimpTheoremFromConst___closed__0; +lean_inc(x_98); +x_101 = l_List_forIn_x27_loop___at___Lean_Meta_mkSimpTheoremFromConst_spec__0___redArg(x_13, x_96, x_84, x_95, x_2, x_4, x_98, x_98, x_100, x_86, x_6, x_7, x_8, x_99); +lean_dec(x_98); +return x_101; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -lean_dec_ref(x_94); -lean_dec_ref(x_85); -lean_dec(x_83); +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec_ref(x_95); +lean_dec_ref(x_86); +lean_dec(x_84); lean_dec(x_13); lean_dec(x_8); lean_dec_ref(x_7); lean_dec(x_6); lean_dec(x_4); -x_101 = lean_ctor_get(x_96, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_96, 1); +x_102 = lean_ctor_get(x_97, 0); lean_inc(x_102); -if (lean_is_exclusive(x_96)) { - lean_ctor_release(x_96, 0); - lean_ctor_release(x_96, 1); - x_103 = x_96; +x_103 = lean_ctor_get(x_97, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_104 = x_97; } else { - lean_dec_ref(x_96); - x_103 = lean_box(0); + lean_dec_ref(x_97); + x_104 = lean_box(0); } -if (lean_is_scalar(x_103)) { - x_104 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); } else { - x_104 = x_103; + x_105 = x_104; } -lean_ctor_set(x_104, 0, x_101); -lean_ctor_set(x_104, 1, x_102); -return x_104; +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; } } } else { -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; -lean_dec(x_87); +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_88); +lean_dec_ref(x_86); lean_dec_ref(x_85); -lean_dec_ref(x_84); -lean_dec(x_83); +lean_dec(x_84); lean_dec(x_13); lean_dec(x_8); lean_dec_ref(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_122 = lean_ctor_get(x_91, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_91, 1); -lean_inc(x_123); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_124 = x_91; +x_124 = lean_ctor_get(x_92, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_92, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_126 = x_92; } else { - lean_dec_ref(x_91); - x_124 = lean_box(0); + lean_dec_ref(x_92); + x_126 = lean_box(0); } -if (lean_is_scalar(x_124)) { - x_125 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_126)) { + x_127 = lean_alloc_ctor(1, 2, 0); } else { - x_125 = x_124; + x_127 = x_126; } -lean_ctor_set(x_125, 0, x_122); -lean_ctor_set(x_125, 1, x_123); -return x_125; +lean_ctor_set(x_127, 0, x_124); +lean_ctor_set(x_127, 1, x_125); +return x_127; } } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -lean_dec(x_87); +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +lean_dec(x_88); +lean_dec_ref(x_86); lean_dec_ref(x_85); -lean_dec_ref(x_84); -lean_dec(x_83); +lean_dec(x_84); lean_dec(x_13); lean_dec(x_8); lean_dec_ref(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_126 = lean_ctor_get(x_89, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_89, 1); -lean_inc(x_127); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_128 = x_89; +x_128 = lean_ctor_get(x_90, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_90, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_130 = x_90; } else { - lean_dec_ref(x_89); - x_128 = lean_box(0); + lean_dec_ref(x_90); + x_130 = lean_box(0); } -if (lean_is_scalar(x_128)) { - x_129 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_130)) { + x_131 = lean_alloc_ctor(1, 2, 0); } else { - x_129 = x_128; + x_131 = x_130; } -lean_ctor_set(x_129, 0, x_126); -lean_ctor_set(x_129, 1, x_127); -return x_129; +lean_ctor_set(x_131, 0, x_128); +lean_ctor_set(x_131, 1, x_129); +return x_131; } } else { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +lean_dec_ref(x_86); lean_dec_ref(x_85); -lean_dec_ref(x_84); -lean_dec(x_83); +lean_dec(x_84); lean_dec(x_13); lean_dec(x_8); lean_dec_ref(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_130 = lean_ctor_get(x_86, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_86, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_132 = x_86; +x_132 = lean_ctor_get(x_87, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_87, 1); +lean_inc(x_133); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_134 = x_87; } else { - lean_dec_ref(x_86); - x_132 = lean_box(0); + lean_dec_ref(x_87); + x_134 = lean_box(0); } -if (lean_is_scalar(x_132)) { - x_133 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_134)) { + x_135 = lean_alloc_ctor(1, 2, 0); } else { - x_133 = x_132; + x_135 = x_134; } -lean_ctor_set(x_133, 0, x_130); -lean_ctor_set(x_133, 1, x_131); -return x_133; +lean_ctor_set(x_135, 0, x_132); +lean_ctor_set(x_135, 1, x_133); +return x_135; } } } else { -uint8_t x_134; +uint8_t x_136; lean_dec(x_8); lean_dec_ref(x_7); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_1); -x_134 = !lean_is_exclusive(x_10); -if (x_134 == 0) +x_136 = !lean_is_exclusive(x_10); +if (x_136 == 0) { return x_10; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_135 = lean_ctor_get(x_10, 0); -x_136 = lean_ctor_get(x_10, 1); -lean_inc(x_136); -lean_inc(x_135); +lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_137 = lean_ctor_get(x_10, 0); +x_138 = lean_ctor_get(x_10, 1); +lean_inc(x_138); +lean_inc(x_137); lean_dec(x_10); -x_137 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_137, 0, x_135); -lean_ctor_set(x_137, 1, x_136); -return x_137; +x_139 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_139, 0, x_137); +lean_ctor_set(x_139, 1, x_138); +return x_139; } } } diff --git a/stage0/stdlib/Lean/Modifiers.c b/stage0/stdlib/Lean/Modifiers.c index 1cc00ea7ee..5682e2fda6 100644 --- a/stage0/stdlib/Lean/Modifiers.c +++ b/stage0/stdlib/Lean/Modifiers.c @@ -15,6 +15,7 @@ extern "C" { #endif LEAN_EXPORT lean_object* l_Lean_isProtected___boxed(lean_object*, lean_object*); lean_object* lean_private_to_user_name(lean_object*); +lean_object* l_Lean_Environment_header(lean_object*); static lean_object* l_Lean_initFn___closed__2____x40_Lean_Modifiers___hyg_3_; LEAN_EXPORT lean_object* l_Lean_isPrivateNameFromImportedModule___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addProtected(lean_object*, lean_object*); @@ -25,6 +26,7 @@ LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Modifiers___hyg_3_(lean_objec LEAN_EXPORT uint8_t l_Lean_isProtected(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); static lean_object* l_Lean_initFn___closed__1____x40_Lean_Modifiers___hyg_3_; +uint8_t l_Lean_Environment_contains(lean_object*, lean_object*, uint8_t); static lean_object* l_Lean_initFn___closed__0____x40_Lean_Modifiers___hyg_3_; lean_object* l_Lean_Environment_mainModule(lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); @@ -34,6 +36,7 @@ lean_object* l_Lean_TagDeclarationExtension_tag(lean_object*, lean_object*, lean LEAN_EXPORT lean_object* l_Lean_protectedExt; static lean_object* l_Lean_addProtected___closed__0; lean_object* l_Lean_mkTagDeclarationExtension(lean_object*, uint8_t, lean_object*); +lean_object* l_Lean_Environment_setExporting(lean_object*, uint8_t); lean_object* l_Lean_mkPrivateNameCore(lean_object*, lean_object*); static lean_object* _init_l_Lean_initFn___closed__0____x40_Lean_Modifiers___hyg_3_() { _start: @@ -128,37 +131,64 @@ return x_3; LEAN_EXPORT uint8_t l_Lean_isPrivateNameFromImportedModule(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; -lean_inc(x_2); -x_3 = lean_private_to_user_name(x_2); -if (lean_obj_tag(x_3) == 0) +lean_object* x_3; uint8_t x_4; +x_3 = l_Lean_Environment_header(x_1); +x_4 = lean_ctor_get_uint8(x_3, sizeof(void*)*5 + 4); +lean_dec_ref(x_3); +if (x_4 == 0) +{ +lean_object* x_5; +lean_inc(x_2); +x_5 = lean_private_to_user_name(x_2); +if (lean_obj_tag(x_5) == 0) { -uint8_t x_4; lean_dec(x_2); -x_4 = 0; +lean_dec_ref(x_1); return x_4; } else { -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -lean_dec(x_3); -x_6 = l_Lean_mkPrivateName(x_1, x_5); -x_7 = lean_name_eq(x_6, x_2); +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +lean_dec(x_5); +x_7 = l_Lean_mkPrivateName(x_1, x_6); +lean_dec_ref(x_1); +x_8 = lean_name_eq(x_7, x_2); lean_dec(x_2); -lean_dec(x_6); -if (x_7 == 0) +lean_dec(x_7); +if (x_8 == 0) { -uint8_t x_8; -x_8 = 1; -return x_8; +uint8_t x_9; +x_9 = 1; +return x_9; } else { -uint8_t x_9; -x_9 = 0; -return x_9; +return x_4; +} +} +} +else +{ +uint8_t x_10; +lean_inc(x_2); +lean_inc_ref(x_1); +x_10 = l_Lean_Environment_contains(x_1, x_2, x_4); +if (x_10 == 0) +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_Environment_setExporting(x_1, x_10); +x_12 = l_Lean_Environment_contains(x_11, x_2, x_4); +return x_12; +} +else +{ +uint8_t x_13; +lean_dec(x_2); +lean_dec_ref(x_1); +x_13 = 0; +return x_13; } } } @@ -168,7 +198,6 @@ _start: { uint8_t x_3; lean_object* x_4; x_3 = l_Lean_isPrivateNameFromImportedModule(x_1, x_2); -lean_dec_ref(x_1); x_4 = lean_box(x_3); return x_4; }